var M3=Object.defineProperty;var x3=(e,r,a)=>r in e?M3(e,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[r]=a;var dv=(e,r,a)=>x3(e,typeof r!="symbol"?r+"":r,a);import{i as j3,g as Jb,a as C3,b as Rn,E as GS}from"./_virtual_wxt-plugins-BkTap6B4.js";function P3(e,r){for(var a=0;a<r.length;a++){const i=r[a];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in e)){const s=Object.getOwnPropertyDescriptor(i,u);s&&Object.defineProperty(e,u,s.get?s:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const s of u)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function a(u){const s={};return u.integrity&&(s.integrity=u.integrity),u.referrerPolicy&&(s.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?s.credentials="include":u.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(u){if(u.ep)return;u.ep=!0;const s=a(u);fetch(u.href,s)}})();try{j3()}catch(e){console.error("[wxt] Failed to initialize plugins",e)}var wy={exports:{}},fl={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var WS;function D3(){if(WS)return fl;WS=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(i,u,s){var l=null;if(s!==void 0&&(l=""+s),u.key!==void 0&&(l=""+u.key),"key"in u){s={};for(var c in u)c!=="key"&&(s[c]=u[c])}else s=u;return u=s.ref,{$$typeof:e,type:i,key:l,ref:u!==void 0?u:null,props:s}}return fl.Fragment=r,fl.jsx=a,fl.jsxs=a,fl}var QS;function NM(){return QS||(QS=1,wy.exports=D3()),wy.exports}var $=NM(),Oy={exports:{}},Be={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var XS;function N3(){if(XS)return Be;XS=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.iterator;function y(k){return k===null||typeof k!="object"?null:(k=v&&k[v]||k["@@iterator"],typeof k=="function"?k:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,_={};function w(k,Y,me){this.props=k,this.context=Y,this.refs=_,this.updater=me||g}w.prototype.isReactComponent={},w.prototype.setState=function(k,Y){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,Y,"setState")},w.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=w.prototype;function R(k,Y,me){this.props=k,this.context=Y,this.refs=_,this.updater=me||g}var T=R.prototype=new E;T.constructor=R,S(T,w.prototype),T.isPureReactComponent=!0;var j=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},V=Object.prototype.hasOwnProperty;function U(k,Y,me,ue,ge,Pe){return me=Pe.ref,{$$typeof:e,type:k,key:Y,ref:me!==void 0?me:null,props:Pe}}function N(k,Y){return U(k.type,Y,void 0,void 0,void 0,k.props)}function D(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function J(k){var Y={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(me){return Y[me]})}var le=/\/+/g;function I(k,Y){return typeof k=="object"&&k!==null&&k.key!=null?J(""+k.key):Y.toString(36)}function oe(){}function de(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(oe,oe):(k.status="pending",k.then(function(Y){k.status==="pending"&&(k.status="fulfilled",k.value=Y)},function(Y){k.status==="pending"&&(k.status="rejected",k.reason=Y)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function ye(k,Y,me,ue,ge){var Pe=typeof k;(Pe==="undefined"||Pe==="boolean")&&(k=null);var we=!1;if(k===null)we=!0;else switch(Pe){case"bigint":case"string":case"number":we=!0;break;case"object":switch(k.$$typeof){case e:case r:we=!0;break;case m:return we=k._init,ye(we(k._payload),Y,me,ue,ge)}}if(we)return ge=ge(k),we=ue===""?"."+I(k,0):ue,j(ge)?(me="",we!=null&&(me=we.replace(le,"$&/")+"/"),ye(ge,Y,me,"",function(et){return et})):ge!=null&&(D(ge)&&(ge=N(ge,me+(ge.key==null||k&&k.key===ge.key?"":(""+ge.key).replace(le,"$&/")+"/")+we)),Y.push(ge)),1;we=0;var Ve=ue===""?".":ue+":";if(j(k))for(var Ie=0;Ie<k.length;Ie++)ue=k[Ie],Pe=Ve+I(ue,Ie),we+=ye(ue,Y,me,Pe,ge);else if(Ie=y(k),typeof Ie=="function")for(k=Ie.call(k),Ie=0;!(ue=k.next()).done;)ue=ue.value,Pe=Ve+I(ue,Ie++),we+=ye(ue,Y,me,Pe,ge);else if(Pe==="object"){if(typeof k.then=="function")return ye(de(k),Y,me,ue,ge);throw Y=String(k),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return we}function C(k,Y,me){if(k==null)return k;var ue=[],ge=0;return ye(k,ue,"","",function(Pe){return Y.call(me,Pe,ge++)}),ue}function te(k){if(k._status===-1){var Y=k._result;Y=Y(),Y.then(function(me){(k._status===0||k._status===-1)&&(k._status=1,k._result=me)},function(me){(k._status===0||k._status===-1)&&(k._status=2,k._result=me)}),k._status===-1&&(k._status=0,k._result=Y)}if(k._status===1)return k._result.default;throw k._result}var ae=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function xe(){}return Be.Children={map:C,forEach:function(k,Y,me){C(k,function(){Y.apply(this,arguments)},me)},count:function(k){var Y=0;return C(k,function(){Y++}),Y},toArray:function(k){return C(k,function(Y){return Y})||[]},only:function(k){if(!D(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},Be.Component=w,Be.Fragment=a,Be.Profiler=u,Be.PureComponent=R,Be.StrictMode=i,Be.Suspense=f,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Be.__COMPILER_RUNTIME={__proto__:null,c:function(k){return M.H.useMemoCache(k)}},Be.cache=function(k){return function(){return k.apply(null,arguments)}},Be.cloneElement=function(k,Y,me){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var ue=S({},k.props),ge=k.key,Pe=void 0;if(Y!=null)for(we in Y.ref!==void 0&&(Pe=void 0),Y.key!==void 0&&(ge=""+Y.key),Y)!V.call(Y,we)||we==="key"||we==="__self"||we==="__source"||we==="ref"&&Y.ref===void 0||(ue[we]=Y[we]);var we=arguments.length-2;if(we===1)ue.children=me;else if(1<we){for(var Ve=Array(we),Ie=0;Ie<we;Ie++)Ve[Ie]=arguments[Ie+2];ue.children=Ve}return U(k.type,ge,void 0,void 0,Pe,ue)},Be.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},Be.createElement=function(k,Y,me){var ue,ge={},Pe=null;if(Y!=null)for(ue in Y.key!==void 0&&(Pe=""+Y.key),Y)V.call(Y,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ge[ue]=Y[ue]);var we=arguments.length-2;if(we===1)ge.children=me;else if(1<we){for(var Ve=Array(we),Ie=0;Ie<we;Ie++)Ve[Ie]=arguments[Ie+2];ge.children=Ve}if(k&&k.defaultProps)for(ue in we=k.defaultProps,we)ge[ue]===void 0&&(ge[ue]=we[ue]);return U(k,Pe,void 0,void 0,null,ge)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(k){return{$$typeof:c,render:k}},Be.isValidElement=D,Be.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:te}},Be.memo=function(k,Y){return{$$typeof:h,type:k,compare:Y===void 0?null:Y}},Be.startTransition=function(k){var Y=M.T,me={};M.T=me;try{var ue=k(),ge=M.S;ge!==null&&ge(me,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(xe,ae)}catch(Pe){ae(Pe)}finally{M.T=Y}},Be.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Be.use=function(k){return M.H.use(k)},Be.useActionState=function(k,Y,me){return M.H.useActionState(k,Y,me)},Be.useCallback=function(k,Y){return M.H.useCallback(k,Y)},Be.useContext=function(k){return M.H.useContext(k)},Be.useDebugValue=function(){},Be.useDeferredValue=function(k,Y){return M.H.useDeferredValue(k,Y)},Be.useEffect=function(k,Y,me){var ue=M.H;if(typeof me=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ue.useEffect(k,Y)},Be.useId=function(){return M.H.useId()},Be.useImperativeHandle=function(k,Y,me){return M.H.useImperativeHandle(k,Y,me)},Be.useInsertionEffect=function(k,Y){return M.H.useInsertionEffect(k,Y)},Be.useLayoutEffect=function(k,Y){return M.H.useLayoutEffect(k,Y)},Be.useMemo=function(k,Y){return M.H.useMemo(k,Y)},Be.useOptimistic=function(k,Y){return M.H.useOptimistic(k,Y)},Be.useReducer=function(k,Y,me){return M.H.useReducer(k,Y,me)},Be.useRef=function(k){return M.H.useRef(k)},Be.useState=function(k){return M.H.useState(k)},Be.useSyncExternalStore=function(k,Y,me){return M.H.useSyncExternalStore(k,Y,me)},Be.useTransition=function(){return M.H.useTransition()},Be.version="19.1.0",Be}var KS;function Pd(){return KS||(KS=1,Oy.exports=N3()),Oy.exports}var F=Pd();const ce=Jb(F),kM=P3({__proto__:null,default:ce},[F]);var Ey={exports:{}},dl={},Ay={exports:{}},Ry={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ZS;function k3(){return ZS||(ZS=1,function(e){function r(C,te){var ae=C.length;C.push(te);e:for(;0<ae;){var xe=ae-1>>>1,k=C[xe];if(0<u(k,te))C[xe]=te,C[ae]=k,ae=xe;else break e}}function a(C){return C.length===0?null:C[0]}function i(C){if(C.length===0)return null;var te=C[0],ae=C.pop();if(ae!==te){C[0]=ae;e:for(var xe=0,k=C.length,Y=k>>>1;xe<Y;){var me=2*(xe+1)-1,ue=C[me],ge=me+1,Pe=C[ge];if(0>u(ue,ae))ge<k&&0>u(Pe,ue)?(C[xe]=Pe,C[ge]=ae,xe=ge):(C[xe]=ue,C[me]=ae,xe=me);else if(ge<k&&0>u(Pe,ae))C[xe]=Pe,C[ge]=ae,xe=ge;else break e}}return te}function u(C,te){var ae=C.sortIndex-te.sortIndex;return ae!==0?ae:C.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],h=[],m=1,v=null,y=3,g=!1,S=!1,_=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function j(C){for(var te=a(h);te!==null;){if(te.callback===null)i(h);else if(te.startTime<=C)i(h),te.sortIndex=te.expirationTime,r(f,te);else break;te=a(h)}}function M(C){if(_=!1,j(C),!S)if(a(f)!==null)S=!0,V||(V=!0,I());else{var te=a(h);te!==null&&ye(M,te.startTime-C)}}var V=!1,U=-1,N=5,D=-1;function J(){return w?!0:!(e.unstable_now()-D<N)}function le(){if(w=!1,V){var C=e.unstable_now();D=C;var te=!0;try{e:{S=!1,_&&(_=!1,R(U),U=-1),g=!0;var ae=y;try{t:{for(j(C),v=a(f);v!==null&&!(v.expirationTime>C&&J());){var xe=v.callback;if(typeof xe=="function"){v.callback=null,y=v.priorityLevel;var k=xe(v.expirationTime<=C);if(C=e.unstable_now(),typeof k=="function"){v.callback=k,j(C),te=!0;break t}v===a(f)&&i(f),j(C)}else i(f);v=a(f)}if(v!==null)te=!0;else{var Y=a(h);Y!==null&&ye(M,Y.startTime-C),te=!1}}break e}finally{v=null,y=ae,g=!1}te=void 0}}finally{te?I():V=!1}}}var I;if(typeof T=="function")I=function(){T(le)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,de=oe.port2;oe.port1.onmessage=le,I=function(){de.postMessage(null)}}else I=function(){E(le,0)};function ye(C,te){U=E(function(){C(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(C){switch(y){case 1:case 2:case 3:var te=3;break;default:te=y}var ae=y;y=te;try{return C()}finally{y=ae}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(C,te){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var ae=y;y=C;try{return te()}finally{y=ae}},e.unstable_scheduleCallback=function(C,te,ae){var xe=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?xe+ae:xe):ae=xe,C){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=ae+k,C={id:m++,callback:te,priorityLevel:C,startTime:ae,expirationTime:k,sortIndex:-1},ae>xe?(C.sortIndex=ae,r(h,C),a(f)===null&&C===a(h)&&(_?(R(U),U=-1):_=!0,ye(M,ae-xe))):(C.sortIndex=k,r(f,C),S||g||(S=!0,V||(V=!0,I()))),C},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(C){var te=y;return function(){var ae=y;y=te;try{return C.apply(this,arguments)}finally{y=ae}}}}(Ry)),Ry}var JS;function q3(){return JS||(JS=1,Ay.exports=k3()),Ay.exports}var Ty={exports:{}},br={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ew;function V3(){if(ew)return br;ew=1;var e=Pd();function r(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var i={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},u=Symbol.for("react.portal");function s(f,h,m){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:v==null?null:""+v,children:f,containerInfo:h,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return br.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,br.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return s(f,h,null,m)},br.flushSync=function(f){var h=l.T,m=i.p;try{if(l.T=null,i.p=2,f)return f()}finally{l.T=h,i.p=m,i.d.f()}},br.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},br.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},br.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,v=c(m,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,g=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:y,fetchPriority:g}):m==="script"&&i.d.X(f,{crossOrigin:v,integrity:y,fetchPriority:g,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},br.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=c(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},br.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,v=c(m,h.crossOrigin);i.d.L(f,m,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},br.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=c(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},br.requestFormReset=function(f){i.d.r(f)},br.unstable_batchedUpdates=function(f,h){return f(h)},br.useFormState=function(f,h,m){return l.H.useFormState(f,h,m)},br.useFormStatus=function(){return l.H.useHostTransitionStatus()},br.version="19.1.0",br}var tw;function qM(){if(tw)return Ty.exports;tw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Ty.exports=V3(),Ty.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rw;function L3(){if(rw)return dl;rw=1;var e=q3(),r=Pd(),a=qM();function i(t){var n="https://react.dev/errors/"+t;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function s(t){var n=t,o=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(o=n.return),t=n.return;while(t)}return n.tag===3?o:null}function l(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function c(t){if(s(t)!==t)throw Error(i(188))}function f(t){var n=t.alternate;if(!n){if(n=s(t),n===null)throw Error(i(188));return n!==t?null:t}for(var o=t,d=n;;){var p=o.return;if(p===null)break;var b=p.alternate;if(b===null){if(d=p.return,d!==null){o=d;continue}break}if(p.child===b.child){for(b=p.child;b;){if(b===o)return c(p),t;if(b===d)return c(p),n;b=b.sibling}throw Error(i(188))}if(o.return!==d.return)o=p,d=b;else{for(var O=!1,A=p.child;A;){if(A===o){O=!0,o=p,d=b;break}if(A===d){O=!0,d=p,o=b;break}A=A.sibling}if(!O){for(A=b.child;A;){if(A===o){O=!0,o=b,d=p;break}if(A===d){O=!0,d=b,o=p;break}A=A.sibling}if(!O)throw Error(i(189))}}if(o.alternate!==d)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?t:n}function h(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=h(t),n!==null)return n;t=t.sibling}return null}var m=Object.assign,v=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),R=Symbol.for("react.consumer"),T=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function I(t){return t===null||typeof t!="object"?null:(t=le&&t[le]||t["@@iterator"],typeof t=="function"?t:null)}var oe=Symbol.for("react.client.reference");function de(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===oe?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case S:return"Fragment";case w:return"Profiler";case _:return"StrictMode";case M:return"Suspense";case V:return"SuspenseList";case D:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case g:return"Portal";case T:return(t.displayName||"Context")+".Provider";case R:return(t._context.displayName||"Context")+".Consumer";case j:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case U:return n=t.displayName||null,n!==null?n:de(t.type)||"Memo";case N:n=t._payload,t=t._init;try{return de(t(n))}catch{}}return null}var ye=Array.isArray,C=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},xe=[],k=-1;function Y(t){return{current:t}}function me(t){0>k||(t.current=xe[k],xe[k]=null,k--)}function ue(t,n){k++,xe[k]=t.current,t.current=n}var ge=Y(null),Pe=Y(null),we=Y(null),Ve=Y(null);function Ie(t,n){switch(ue(we,n),ue(Pe,t),ue(ge,null),n.nodeType){case 9:case 11:t=(t=n.documentElement)&&(t=t.namespaceURI)?SS(t):0;break;default:if(t=n.tagName,n=n.namespaceURI)n=SS(n),t=wS(n,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}me(ge),ue(ge,t)}function et(){me(ge),me(Pe),me(we)}function _t(t){t.memoizedState!==null&&ue(Ve,t);var n=ge.current,o=wS(n,t.type);n!==o&&(ue(Pe,t),ue(ge,o))}function Rt(t){Pe.current===t&&(me(ge),me(Pe)),Ve.current===t&&(me(Ve),ol._currentValue=ae)}var Lt=Object.prototype.hasOwnProperty,Nr=e.unstable_scheduleCallback,tt=e.unstable_cancelCallback,kr=e.unstable_shouldYield,Yr=e.unstable_requestPaint,yt=e.unstable_now,sn=e.unstable_getCurrentPriorityLevel,Tt=e.unstable_ImmediatePriority,q=e.unstable_UserBlockingPriority,G=e.unstable_NormalPriority,re=e.unstable_LowPriority,_e=e.unstable_IdlePriority,be=e.log,pe=e.unstable_setDisableYieldValue,Se=null,De=null;function Fe(t){if(typeof be=="function"&&pe(t),De&&typeof De.setStrictMode=="function")try{De.setStrictMode(Se,t)}catch{}}var Xe=Math.clz32?Math.clz32:fr,Ft=Math.log,Bt=Math.LN2;function fr(t){return t>>>=0,t===0?32:31-(Ft(t)/Bt|0)|0}var dr=256,Xt=4194304;function Kt(t){var n=t&42;if(n!==0)return n;switch(t&-t){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:return 64;case 128:return 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 t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function hr(t,n,o){var d=t.pendingLanes;if(d===0)return 0;var p=0,b=t.suspendedLanes,O=t.pingedLanes;t=t.warmLanes;var A=d&134217727;return A!==0?(d=A&~b,d!==0?p=Kt(d):(O&=A,O!==0?p=Kt(O):o||(o=A&~t,o!==0&&(p=Kt(o))))):(A=d&~b,A!==0?p=Kt(A):O!==0?p=Kt(O):o||(o=d&~t,o!==0&&(p=Kt(o)))),p===0?0:n!==0&&n!==p&&(n&b)===0&&(b=p&-p,o=n&-n,b>=o||b===32&&(o&4194048)!==0)?n:p}function Ar(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function Rr(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32: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 n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ar(){var t=dr;return dr<<=1,(dr&4194048)===0&&(dr=256),t}function kn(){var t=Xt;return Xt<<=1,(Xt&62914560)===0&&(Xt=4194304),t}function _n(t){for(var n=[],o=0;31>o;o++)n.push(t);return n}function qr(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function qn(t,n,o,d,p,b){var O=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var A=t.entanglements,P=t.expirationTimes,W=t.hiddenUpdates;for(o=O&~o;0<o;){var se=31-Xe(o),he=1<<se;A[se]=0,P[se]=-1;var Q=W[se];if(Q!==null)for(W[se]=null,se=0;se<Q.length;se++){var K=Q[se];K!==null&&(K.lane&=-536870913)}o&=~he}d!==0&&qe(t,d,0),b!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=b&~(O&~n))}function qe(t,n,o){t.pendingLanes|=n,t.suspendedLanes&=~n;var d=31-Xe(n);t.entangledLanes|=n,t.entanglements[d]=t.entanglements[d]|1073741824|o&4194090}function x(t,n){var o=t.entangledLanes|=n;for(t=t.entanglements;o;){var d=31-Xe(o),p=1<<d;p&n|t[d]&n&&(t[d]|=n),o&=~p}}function z(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ne(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ee(){var t=te.p;return t!==0?t:(t=window.event,t===void 0?32:IS(t.type))}function X(t,n){var o=te.p;try{return te.p=t,n()}finally{te.p=o}}var Z=Math.random().toString(36).slice(2),ie="__reactFiber$"+Z,ve="__reactProps$"+Z,Me="__reactContainer$"+Z,Le="__reactEvents$"+Z,Ke="__reactListeners$"+Z,rt="__reactHandles$"+Z,St="__reactResources$"+Z,Zt="__reactMarker$"+Z;function Ut(t){delete t[ie],delete t[ve],delete t[Le],delete t[Ke],delete t[rt]}function wt(t){var n=t[ie];if(n)return n;for(var o=t.parentNode;o;){if(n=o[Me]||o[ie]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(t=RS(t);t!==null;){if(o=t[ie])return o;t=RS(t)}return n}t=o,o=t.parentNode}return null}function Vr(t){if(t=t[ie]||t[Me]){var n=t.tag;if(n===5||n===6||n===13||n===26||n===27||n===3)return t}return null}function $t(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error(i(33))}function Mt(t){var n=t[St];return n||(n=t[St]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function mt(t){t[Zt]=!0}var st=new Set,Tr={};function vr(t,n){Mr(t,n),Mr(t+"Capture",n)}function Mr(t,n){for(Tr[t]=n,t=0;t<n.length;t++)st.add(n[t])}var Sn=RegExp("^[: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]*$"),Vn={},mr={};function cs(t){return Lt.call(mr,t)?!0:Lt.call(Vn,t)?!1:Sn.test(t)?mr[t]=!0:(Vn[t]=!0,!1)}function Ua(t,n,o){if(cs(n))if(o===null)t.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var d=n.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){t.removeAttribute(n);return}}t.setAttribute(n,""+o)}}function za(t,n,o){if(o===null)t.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttribute(n,""+o)}}function Gr(t,n,o,d){if(d===null)t.removeAttribute(o);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}t.setAttributeNS(n,o,""+d)}}var Mi,Qo;function Ia(t){if(Mi===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);Mi=n&&n[1]||"",Qo=-1<o.stack.indexOf(`
    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Mi+t+Qo}var fs=!1;function ds(t,n){if(!t||fs)return"";fs=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(n){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(K){var Q=K}Reflect.construct(t,[],he)}else{try{he.call()}catch(K){Q=K}t.call(he.prototype)}}else{try{throw Error()}catch(K){Q=K}(he=t())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(K){if(K&&Q&&typeof K.stack=="string")return[K.stack,Q.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=d.DetermineComponentFrameRoot(),O=b[0],A=b[1];if(O&&A){var P=O.split(`
`),W=A.split(`
`);for(p=d=0;d<P.length&&!P[d].includes("DetermineComponentFrameRoot");)d++;for(;p<W.length&&!W[p].includes("DetermineComponentFrameRoot");)p++;if(d===P.length||p===W.length)for(d=P.length-1,p=W.length-1;1<=d&&0<=p&&P[d]!==W[p];)p--;for(;1<=d&&0<=p;d--,p--)if(P[d]!==W[p]){if(d!==1||p!==1)do if(d--,p--,0>p||P[d]!==W[p]){var se=`
`+P[d].replace(" at new "," at ");return t.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",t.displayName)),se}while(1<=d&&0<=p);break}}}finally{fs=!1,Error.prepareStackTrace=o}return(o=t?t.displayName||t.name:"")?Ia(o):""}function wm(t){switch(t.tag){case 26:case 27:case 5:return Ia(t.type);case 16:return Ia("Lazy");case 13:return Ia("Suspense");case 19:return Ia("SuspenseList");case 0:case 15:return ds(t.type,!1);case 11:return ds(t.type.render,!1);case 1:return ds(t.type,!0);case 31:return Ia("Activity");default:return""}}function Jd(t){try{var n="";do n+=wm(t),t=t.return;while(t);return n}catch(o){return`
Error generating stack: `+o.message+`
`+o.stack}}function Lr(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function eh(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function Om(t){var n=eh(t)?"checked":"value",o=Object.getOwnPropertyDescriptor(t.constructor.prototype,n),d=""+t[n];if(!t.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var p=o.get,b=o.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return p.call(this)},set:function(O){d=""+O,b.call(this,O)}}),Object.defineProperty(t,n,{enumerable:o.enumerable}),{getValue:function(){return d},setValue:function(O){d=""+O},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function Xo(t){t._valueTracker||(t._valueTracker=Om(t))}function th(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var o=n.getValue(),d="";return t&&(d=eh(t)?t.checked?"true":"false":t.value),t=d,t!==o?(n.setValue(t),!0):!1}function Ko(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Em=/[\n"\\]/g;function Ur(t){return t.replace(Em,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function hs(t,n,o,d,p,b,O,A){t.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?t.type=O:t.removeAttribute("type"),n!=null?O==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+Lr(n)):t.value!==""+Lr(n)&&(t.value=""+Lr(n)):O!=="submit"&&O!=="reset"||t.removeAttribute("value"),n!=null?vs(t,O,Lr(n)):o!=null?vs(t,O,Lr(o)):d!=null&&t.removeAttribute("value"),p==null&&b!=null&&(t.defaultChecked=!!b),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?t.name=""+Lr(A):t.removeAttribute("name")}function rh(t,n,o,d,p,b,O,A){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(t.type=b),n!=null||o!=null){if(!(b!=="submit"&&b!=="reset"||n!=null))return;o=o!=null?""+Lr(o):"",n=n!=null?""+Lr(n):o,A||n===t.value||(t.value=n),t.defaultValue=n}d=d??p,d=typeof d!="function"&&typeof d!="symbol"&&!!d,t.checked=A?t.checked:!!d,t.defaultChecked=!!d,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(t.name=O)}function vs(t,n,o){n==="number"&&Ko(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function Fa(t,n,o,d){if(t=t.options,n){n={};for(var p=0;p<o.length;p++)n["$"+o[p]]=!0;for(o=0;o<t.length;o++)p=n.hasOwnProperty("$"+t[o].value),t[o].selected!==p&&(t[o].selected=p),p&&d&&(t[o].defaultSelected=!0)}else{for(o=""+Lr(o),n=null,p=0;p<t.length;p++){if(t[p].value===o){t[p].selected=!0,d&&(t[p].defaultSelected=!0);return}n!==null||t[p].disabled||(n=t[p])}n!==null&&(n.selected=!0)}}function nh(t,n,o){if(n!=null&&(n=""+Lr(n),n!==t.value&&(t.value=n),o==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=o!=null?""+Lr(o):""}function ah(t,n,o,d){if(n==null){if(d!=null){if(o!=null)throw Error(i(92));if(ye(d)){if(1<d.length)throw Error(i(93));d=d[0]}o=d}o==null&&(o=""),n=o}o=Lr(n),t.defaultValue=o,d=t.textContent,d===o&&d!==""&&d!==null&&(t.value=d)}function Ba(t,n){if(n){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=n;return}}t.textContent=n}var Am=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ih(t,n,o){var d=n.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?d?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":d?t.setProperty(n,o):typeof o!="number"||o===0||Am.has(n)?n==="float"?t.cssFloat=o:t[n]=(""+o).trim():t[n]=o+"px"}function oh(t,n,o){if(n!=null&&typeof n!="object")throw Error(i(62));if(t=t.style,o!=null){for(var d in o)!o.hasOwnProperty(d)||n!=null&&n.hasOwnProperty(d)||(d.indexOf("--")===0?t.setProperty(d,""):d==="float"?t.cssFloat="":t[d]="");for(var p in n)d=n[p],n.hasOwnProperty(p)&&o[p]!==d&&ih(t,p,d)}else for(var b in n)n.hasOwnProperty(b)&&ih(t,b,n[b])}function ms(t){if(t.indexOf("-")===-1)return!1;switch(t){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 Rm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Tm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Zo(t){return Tm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var ps=null;function ys(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var $a=null,Ha=null;function uh(t){var n=Vr(t);if(n&&(t=n.stateNode)){var o=t[ve]||null;e:switch(t=n.stateNode,n.type){case"input":if(hs(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),n=o.name,o.type==="radio"&&n!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Ur(""+n)+'"][type="radio"]'),n=0;n<o.length;n++){var d=o[n];if(d!==t&&d.form===t.form){var p=d[ve]||null;if(!p)throw Error(i(90));hs(d,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(n=0;n<o.length;n++)d=o[n],d.form===t.form&&th(d)}break e;case"textarea":nh(t,o.value,o.defaultValue);break e;case"select":n=o.value,n!=null&&Fa(t,!!o.multiple,n,!1)}}}var bs=!1;function sh(t,n,o){if(bs)return t(n,o);bs=!0;try{var d=t(n);return d}finally{if(bs=!1,($a!==null||Ha!==null)&&(Hh(),$a&&(n=$a,t=Ha,Ha=$a=null,uh(n),t)))for(n=0;n<t.length;n++)uh(t[n])}}function xi(t,n){var o=t.stateNode;if(o===null)return null;var d=o[ve]||null;if(d===null)return null;o=d[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(t=t.type,d=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!d;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(i(231,n,typeof o));return o}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gs=!1;if(wn)try{var ji={};Object.defineProperty(ji,"passive",{get:function(){gs=!0}}),window.addEventListener("test",ji,ji),window.removeEventListener("test",ji,ji)}catch{gs=!1}var Ln=null,_s=null,Jo=null;function lh(){if(Jo)return Jo;var t,n=_s,o=n.length,d,p="value"in Ln?Ln.value:Ln.textContent,b=p.length;for(t=0;t<o&&n[t]===p[t];t++);var O=o-t;for(d=1;d<=O&&n[o-d]===p[b-d];d++);return Jo=p.slice(t,1<d?1-d:void 0)}function eu(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function tu(){return!0}function ch(){return!1}function pr(t){function n(o,d,p,b,O){this._reactName=o,this._targetInst=p,this.type=d,this.nativeEvent=b,this.target=O,this.currentTarget=null;for(var A in t)t.hasOwnProperty(A)&&(o=t[A],this[A]=o?o(b):b[A]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?tu:ch,this.isPropagationStopped=ch,this}return m(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=tu)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=tu)},persist:function(){},isPersistent:tu}),n}var Zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ru=pr(Zn),Ci=m({},Zn,{view:0,detail:0}),Mm=pr(Ci),Ss,ws,Pi,nu=m({},Ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jm,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Pi&&(Pi&&t.type==="mousemove"?(Ss=t.screenX-Pi.screenX,ws=t.screenY-Pi.screenY):ws=Ss=0,Pi=t),Ss)},movementY:function(t){return"movementY"in t?t.movementY:ws}}),fh=pr(nu),xm=m({},nu,{dataTransfer:0}),Ya=pr(xm),Ga=m({},Ci,{relatedTarget:0}),Wr=pr(Ga),Jn=m({},Zn,{animationName:0,elapsedTime:0,pseudoElement:0}),DD=pr(Jn),ND=m({},Zn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),kD=pr(ND),qD=m({},Zn,{data:0}),M0=pr(qD),VD={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LD={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"},UD={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zD(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=UD[t])?!!n[t]:!1}function jm(){return zD}var ID=m({},Ci,{key:function(t){if(t.key){var n=VD[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=eu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?LD[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jm,charCode:function(t){return t.type==="keypress"?eu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?eu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),FD=pr(ID),BD=m({},nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),x0=pr(BD),$D=m({},Ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jm}),HD=pr($D),YD=m({},Zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),GD=pr(YD),WD=m({},nu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),QD=pr(WD),XD=m({},Zn,{newState:0,oldState:0}),KD=pr(XD),ZD=[9,13,27,32],Cm=wn&&"CompositionEvent"in window,Os=null;wn&&"documentMode"in document&&(Os=document.documentMode);var JD=wn&&"TextEvent"in window&&!Os,j0=wn&&(!Cm||Os&&8<Os&&11>=Os),C0=" ",P0=!1;function D0(t,n){switch(t){case"keyup":return ZD.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function N0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var au=!1;function e5(t,n){switch(t){case"compositionend":return N0(n);case"keypress":return n.which!==32?null:(P0=!0,C0);case"textInput":return t=n.data,t===C0&&P0?null:t;default:return null}}function t5(t,n){if(au)return t==="compositionend"||!Cm&&D0(t,n)?(t=lh(),Jo=_s=Ln=null,au=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return j0&&n.locale!=="ko"?null:n.data;default:return null}}var r5={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 k0(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!r5[t.type]:n==="textarea"}function q0(t,n,o,d){$a?Ha?Ha.push(d):Ha=[d]:$a=d,n=Kh(n,"onChange"),0<n.length&&(o=new ru("onChange","change",null,o,d),t.push({event:o,listeners:n}))}var Es=null,As=null;function n5(t){pS(t,0)}function dh(t){var n=$t(t);if(th(n))return t}function V0(t,n){if(t==="change")return n}var L0=!1;if(wn){var Pm;if(wn){var Dm="oninput"in document;if(!Dm){var U0=document.createElement("div");U0.setAttribute("oninput","return;"),Dm=typeof U0.oninput=="function"}Pm=Dm}else Pm=!1;L0=Pm&&(!document.documentMode||9<document.documentMode)}function z0(){Es&&(Es.detachEvent("onpropertychange",I0),As=Es=null)}function I0(t){if(t.propertyName==="value"&&dh(As)){var n=[];q0(n,As,t,ys(t)),sh(n5,n)}}function a5(t,n,o){t==="focusin"?(z0(),Es=n,As=o,Es.attachEvent("onpropertychange",I0)):t==="focusout"&&z0()}function i5(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return dh(As)}function o5(t,n){if(t==="click")return dh(n)}function u5(t,n){if(t==="input"||t==="change")return dh(n)}function s5(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}var Qr=typeof Object.is=="function"?Object.is:s5;function Rs(t,n){if(Qr(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var o=Object.keys(t),d=Object.keys(n);if(o.length!==d.length)return!1;for(d=0;d<o.length;d++){var p=o[d];if(!Lt.call(n,p)||!Qr(t[p],n[p]))return!1}return!0}function F0(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function B0(t,n){var o=F0(t);t=0;for(var d;o;){if(o.nodeType===3){if(d=t+o.textContent.length,t<=n&&d>=n)return{node:o,offset:n-t};t=d}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=F0(o)}}function $0(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?$0(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function H0(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=Ko(t.document);n instanceof t.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)t=n.contentWindow;else break;n=Ko(t.document)}return n}function Nm(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}var l5=wn&&"documentMode"in document&&11>=document.documentMode,iu=null,km=null,Ts=null,qm=!1;function Y0(t,n,o){var d=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;qm||iu==null||iu!==Ko(d)||(d=iu,"selectionStart"in d&&Nm(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Ts&&Rs(Ts,d)||(Ts=d,d=Kh(km,"onSelect"),0<d.length&&(n=new ru("onSelect","select",null,n,o),t.push({event:n,listeners:d}),n.target=iu)))}function Di(t,n){var o={};return o[t.toLowerCase()]=n.toLowerCase(),o["Webkit"+t]="webkit"+n,o["Moz"+t]="moz"+n,o}var ou={animationend:Di("Animation","AnimationEnd"),animationiteration:Di("Animation","AnimationIteration"),animationstart:Di("Animation","AnimationStart"),transitionrun:Di("Transition","TransitionRun"),transitionstart:Di("Transition","TransitionStart"),transitioncancel:Di("Transition","TransitionCancel"),transitionend:Di("Transition","TransitionEnd")},Vm={},G0={};wn&&(G0=document.createElement("div").style,"AnimationEvent"in window||(delete ou.animationend.animation,delete ou.animationiteration.animation,delete ou.animationstart.animation),"TransitionEvent"in window||delete ou.transitionend.transition);function Ni(t){if(Vm[t])return Vm[t];if(!ou[t])return t;var n=ou[t],o;for(o in n)if(n.hasOwnProperty(o)&&o in G0)return Vm[t]=n[o];return t}var W0=Ni("animationend"),Q0=Ni("animationiteration"),X0=Ni("animationstart"),c5=Ni("transitionrun"),f5=Ni("transitionstart"),d5=Ni("transitioncancel"),K0=Ni("transitionend"),Z0=new Map,Lm="abort auxClick beforeToggle 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(" ");Lm.push("scrollEnd");function On(t,n){Z0.set(t,n),vr(n,[t])}var J0=new WeakMap;function ln(t,n){if(typeof t=="object"&&t!==null){var o=J0.get(t);return o!==void 0?o:(n={value:t,source:n,stack:Jd(n)},J0.set(t,n),n)}return{value:t,source:n,stack:Jd(n)}}var cn=[],uu=0,Um=0;function hh(){for(var t=uu,n=Um=uu=0;n<t;){var o=cn[n];cn[n++]=null;var d=cn[n];cn[n++]=null;var p=cn[n];cn[n++]=null;var b=cn[n];if(cn[n++]=null,d!==null&&p!==null){var O=d.pending;O===null?p.next=p:(p.next=O.next,O.next=p),d.pending=p}b!==0&&e1(o,p,b)}}function vh(t,n,o,d){cn[uu++]=t,cn[uu++]=n,cn[uu++]=o,cn[uu++]=d,Um|=d,t.lanes|=d,t=t.alternate,t!==null&&(t.lanes|=d)}function zm(t,n,o,d){return vh(t,n,o,d),mh(t)}function su(t,n){return vh(t,null,null,n),mh(t)}function e1(t,n,o){t.lanes|=o;var d=t.alternate;d!==null&&(d.lanes|=o);for(var p=!1,b=t.return;b!==null;)b.childLanes|=o,d=b.alternate,d!==null&&(d.childLanes|=o),b.tag===22&&(t=b.stateNode,t===null||t._visibility&1||(p=!0)),t=b,b=b.return;return t.tag===3?(b=t.stateNode,p&&n!==null&&(p=31-Xe(o),t=b.hiddenUpdates,d=t[p],d===null?t[p]=[n]:d.push(n),n.lane=o|536870912),b):null}function mh(t){if(50<Zs)throw Zs=0,Yp=null,Error(i(185));for(var n=t.return;n!==null;)t=n,n=t.return;return t.tag===3?t.stateNode:null}var lu={};function h5(t,n,o,d){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xr(t,n,o,d){return new h5(t,n,o,d)}function Im(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ea(t,n){var o=t.alternate;return o===null?(o=Xr(t.tag,n,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=n,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,n=t.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o}function t1(t,n){t.flags&=65011714;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,n=o.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),t}function ph(t,n,o,d,p,b){var O=0;if(d=t,typeof t=="function")Im(t)&&(O=1);else if(typeof t=="string")O=m3(t,o,ge.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case D:return t=Xr(31,o,n,p),t.elementType=D,t.lanes=b,t;case S:return ki(o.children,p,b,n);case _:O=8,p|=24;break;case w:return t=Xr(12,o,n,p|2),t.elementType=w,t.lanes=b,t;case M:return t=Xr(13,o,n,p),t.elementType=M,t.lanes=b,t;case V:return t=Xr(19,o,n,p),t.elementType=V,t.lanes=b,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case E:case T:O=10;break e;case R:O=9;break e;case j:O=11;break e;case U:O=14;break e;case N:O=16,d=null;break e}O=29,o=Error(i(130,t===null?"null":typeof t,"")),d=null}return n=Xr(O,o,n,p),n.elementType=t,n.type=d,n.lanes=b,n}function ki(t,n,o,d){return t=Xr(7,t,d,n),t.lanes=o,t}function Fm(t,n,o){return t=Xr(6,t,null,n),t.lanes=o,t}function Bm(t,n,o){return n=Xr(4,t.children!==null?t.children:[],t.key,n),n.lanes=o,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}var cu=[],fu=0,yh=null,bh=0,fn=[],dn=0,qi=null,ta=1,ra="";function Vi(t,n){cu[fu++]=bh,cu[fu++]=yh,yh=t,bh=n}function r1(t,n,o){fn[dn++]=ta,fn[dn++]=ra,fn[dn++]=qi,qi=t;var d=ta;t=ra;var p=32-Xe(d)-1;d&=~(1<<p),o+=1;var b=32-Xe(n)+p;if(30<b){var O=p-p%5;b=(d&(1<<O)-1).toString(32),d>>=O,p-=O,ta=1<<32-Xe(n)+p|o<<p|d,ra=b+t}else ta=1<<b|o<<p|d,ra=t}function $m(t){t.return!==null&&(Vi(t,1),r1(t,1,0))}function Hm(t){for(;t===yh;)yh=cu[--fu],cu[fu]=null,bh=cu[--fu],cu[fu]=null;for(;t===qi;)qi=fn[--dn],fn[dn]=null,ra=fn[--dn],fn[dn]=null,ta=fn[--dn],fn[dn]=null}var xr=null,xt=null,nt=!1,Li=null,Un=!1,Ym=Error(i(519));function Ui(t){var n=Error(i(418,""));throw js(ln(n,t)),Ym}function n1(t){var n=t.stateNode,o=t.type,d=t.memoizedProps;switch(n[ie]=t,n[ve]=d,o){case"dialog":Qe("cancel",n),Qe("close",n);break;case"iframe":case"object":case"embed":Qe("load",n);break;case"video":case"audio":for(o=0;o<el.length;o++)Qe(el[o],n);break;case"source":Qe("error",n);break;case"img":case"image":case"link":Qe("error",n),Qe("load",n);break;case"details":Qe("toggle",n);break;case"input":Qe("invalid",n),rh(n,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0),Xo(n);break;case"select":Qe("invalid",n);break;case"textarea":Qe("invalid",n),ah(n,d.value,d.defaultValue,d.children),Xo(n)}o=d.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||n.textContent===""+o||d.suppressHydrationWarning===!0||_S(n.textContent,o)?(d.popover!=null&&(Qe("beforetoggle",n),Qe("toggle",n)),d.onScroll!=null&&Qe("scroll",n),d.onScrollEnd!=null&&Qe("scrollend",n),d.onClick!=null&&(n.onclick=Zh),n=!0):n=!1,n||Ui(t)}function a1(t){for(xr=t.return;xr;)switch(xr.tag){case 5:case 13:Un=!1;return;case 27:case 3:Un=!0;return;default:xr=xr.return}}function Ms(t){if(t!==xr)return!1;if(!nt)return a1(t),nt=!0,!1;var n=t.tag,o;if((o=n!==3&&n!==27)&&((o=n===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||sy(t.type,t.memoizedProps)),o=!o),o&&xt&&Ui(t),a1(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(i(317));e:{for(t=t.nextSibling,n=0;t;){if(t.nodeType===8)if(o=t.data,o==="/$"){if(n===0){xt=An(t.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++;t=t.nextSibling}xt=null}}else n===27?(n=xt,li(t.type)?(t=dy,dy=null,xt=t):xt=n):xt=xr?An(t.stateNode.nextSibling):null;return!0}function xs(){xt=xr=null,nt=!1}function i1(){var t=Li;return t!==null&&(Fr===null?Fr=t:Fr.push.apply(Fr,t),Li=null),t}function js(t){Li===null?Li=[t]:Li.push(t)}var Gm=Y(null),zi=null,na=null;function Wa(t,n,o){ue(Gm,n._currentValue),n._currentValue=o}function aa(t){t._currentValue=Gm.current,me(Gm)}function Wm(t,n,o){for(;t!==null;){var d=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,d!==null&&(d.childLanes|=n)):d!==null&&(d.childLanes&n)!==n&&(d.childLanes|=n),t===o)break;t=t.return}}function Qm(t,n,o,d){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var b=p.dependencies;if(b!==null){var O=p.child;b=b.firstContext;e:for(;b!==null;){var A=b;b=p;for(var P=0;P<n.length;P++)if(A.context===n[P]){b.lanes|=o,A=b.alternate,A!==null&&(A.lanes|=o),Wm(b.return,o,t),d||(O=null);break e}b=A.next}}else if(p.tag===18){if(O=p.return,O===null)throw Error(i(341));O.lanes|=o,b=O.alternate,b!==null&&(b.lanes|=o),Wm(O,o,t),O=null}else O=p.child;if(O!==null)O.return=p;else for(O=p;O!==null;){if(O===t){O=null;break}if(p=O.sibling,p!==null){p.return=O.return,O=p;break}O=O.return}p=O}}function Cs(t,n,o,d){t=null;for(var p=n,b=!1;p!==null;){if(!b){if((p.flags&524288)!==0)b=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var O=p.alternate;if(O===null)throw Error(i(387));if(O=O.memoizedProps,O!==null){var A=p.type;Qr(p.pendingProps.value,O.value)||(t!==null?t.push(A):t=[A])}}else if(p===Ve.current){if(O=p.alternate,O===null)throw Error(i(387));O.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(ol):t=[ol])}p=p.return}t!==null&&Qm(n,t,o,d),n.flags|=262144}function gh(t){for(t=t.firstContext;t!==null;){if(!Qr(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Ii(t){zi=t,na=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function yr(t){return o1(zi,t)}function _h(t,n){return zi===null&&Ii(t),o1(t,n)}function o1(t,n){var o=n._currentValue;if(n={context:n,memoizedValue:o,next:null},na===null){if(t===null)throw Error(i(308));na=n,t.dependencies={lanes:0,firstContext:n},t.flags|=524288}else na=na.next=n;return o}var v5=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(o,d){t.push(d)}};this.abort=function(){n.aborted=!0,t.forEach(function(o){return o()})}},m5=e.unstable_scheduleCallback,p5=e.unstable_NormalPriority,Ht={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xm(){return{controller:new v5,data:new Map,refCount:0}}function Ps(t){t.refCount--,t.refCount===0&&m5(p5,function(){t.controller.abort()})}var Ds=null,Km=0,du=0,hu=null;function y5(t,n){if(Ds===null){var o=Ds=[];Km=0,du=Jp(),hu={status:"pending",value:void 0,then:function(d){o.push(d)}}}return Km++,n.then(u1,u1),n}function u1(){if(--Km===0&&Ds!==null){hu!==null&&(hu.status="fulfilled");var t=Ds;Ds=null,du=0,hu=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function b5(t,n){var o=[],d={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return t.then(function(){d.status="fulfilled",d.value=n;for(var p=0;p<o.length;p++)(0,o[p])(n)},function(p){for(d.status="rejected",d.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),d}var s1=C.S;C.S=function(t,n){typeof n=="object"&&n!==null&&typeof n.then=="function"&&y5(t,n),s1!==null&&s1(t,n)};var Fi=Y(null);function Zm(){var t=Fi.current;return t!==null?t:pt.pooledCache}function Sh(t,n){n===null?ue(Fi,Fi.current):ue(Fi,n.pool)}function l1(){var t=Zm();return t===null?null:{parent:Ht._currentValue,pool:t}}var Ns=Error(i(460)),c1=Error(i(474)),wh=Error(i(542)),Jm={then:function(){}};function f1(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Oh(){}function d1(t,n,o){switch(o=t[o],o===void 0?t.push(n):o!==n&&(n.then(Oh,Oh),n=o),n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,v1(t),t;default:if(typeof n.status=="string")n.then(Oh,Oh);else{if(t=pt,t!==null&&100<t.shellSuspendCounter)throw Error(i(482));t=n,t.status="pending",t.then(function(d){if(n.status==="pending"){var p=n;p.status="fulfilled",p.value=d}},function(d){if(n.status==="pending"){var p=n;p.status="rejected",p.reason=d}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,v1(t),t}throw ks=n,Ns}}var ks=null;function h1(){if(ks===null)throw Error(i(459));var t=ks;return ks=null,t}function v1(t){if(t===Ns||t===wh)throw Error(i(483))}var Qa=!1;function ep(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tp(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Xa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ka(t,n,o){var d=t.updateQueue;if(d===null)return null;if(d=d.shared,(ot&2)!==0){var p=d.pending;return p===null?n.next=n:(n.next=p.next,p.next=n),d.pending=n,n=mh(t),e1(t,null,o),n}return vh(t,d,n,o),mh(t)}function qs(t,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194048)!==0)){var d=n.lanes;d&=t.pendingLanes,o|=d,n.lanes=o,x(t,o)}}function rp(t,n){var o=t.updateQueue,d=t.alternate;if(d!==null&&(d=d.updateQueue,o===d)){var p=null,b=null;if(o=o.firstBaseUpdate,o!==null){do{var O={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};b===null?p=b=O:b=b.next=O,o=o.next}while(o!==null);b===null?p=b=n:b=b.next=n}else p=b=n;o={baseState:d.baseState,firstBaseUpdate:p,lastBaseUpdate:b,shared:d.shared,callbacks:d.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=n:t.next=n,o.lastBaseUpdate=n}var np=!1;function Vs(){if(np){var t=hu;if(t!==null)throw t}}function Ls(t,n,o,d){np=!1;var p=t.updateQueue;Qa=!1;var b=p.firstBaseUpdate,O=p.lastBaseUpdate,A=p.shared.pending;if(A!==null){p.shared.pending=null;var P=A,W=P.next;P.next=null,O===null?b=W:O.next=W,O=P;var se=t.alternate;se!==null&&(se=se.updateQueue,A=se.lastBaseUpdate,A!==O&&(A===null?se.firstBaseUpdate=W:A.next=W,se.lastBaseUpdate=P))}if(b!==null){var he=p.baseState;O=0,se=W=P=null,A=b;do{var Q=A.lane&-536870913,K=Q!==A.lane;if(K?(Ze&Q)===Q:(d&Q)===Q){Q!==0&&Q===du&&(np=!0),se!==null&&(se=se.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Ue=t,Ne=A;Q=n;var ft=o;switch(Ne.tag){case 1:if(Ue=Ne.payload,typeof Ue=="function"){he=Ue.call(ft,he,Q);break e}he=Ue;break e;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=Ne.payload,Q=typeof Ue=="function"?Ue.call(ft,he,Q):Ue,Q==null)break e;he=m({},he,Q);break e;case 2:Qa=!0}}Q=A.callback,Q!==null&&(t.flags|=64,K&&(t.flags|=8192),K=p.callbacks,K===null?p.callbacks=[Q]:K.push(Q))}else K={lane:Q,tag:A.tag,payload:A.payload,callback:A.callback,next:null},se===null?(W=se=K,P=he):se=se.next=K,O|=Q;if(A=A.next,A===null){if(A=p.shared.pending,A===null)break;K=A,A=K.next,K.next=null,p.lastBaseUpdate=K,p.shared.pending=null}}while(!0);se===null&&(P=he),p.baseState=P,p.firstBaseUpdate=W,p.lastBaseUpdate=se,b===null&&(p.shared.lanes=0),ii|=O,t.lanes=O,t.memoizedState=he}}function m1(t,n){if(typeof t!="function")throw Error(i(191,t));t.call(n)}function p1(t,n){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)m1(o[t],n)}var vu=Y(null),Eh=Y(0);function y1(t,n){t=fa,ue(Eh,t),ue(vu,n),fa=t|n.baseLanes}function ap(){ue(Eh,fa),ue(vu,vu.current)}function ip(){fa=Eh.current,me(vu),me(Eh)}var Za=0,He=null,lt=null,zt=null,Ah=!1,mu=!1,Bi=!1,Rh=0,Us=0,pu=null,g5=0;function Dt(){throw Error(i(321))}function op(t,n){if(n===null)return!1;for(var o=0;o<n.length&&o<t.length;o++)if(!Qr(t[o],n[o]))return!1;return!0}function up(t,n,o,d,p,b){return Za=b,He=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,C.H=t===null||t.memoizedState===null?e_:t_,Bi=!1,b=o(d,p),Bi=!1,mu&&(b=g1(n,o,d,p)),b1(t),b}function b1(t){C.H=Ph;var n=lt!==null&&lt.next!==null;if(Za=0,zt=lt=He=null,Ah=!1,Us=0,pu=null,n)throw Error(i(300));t===null||Jt||(t=t.dependencies,t!==null&&gh(t)&&(Jt=!0))}function g1(t,n,o,d){He=t;var p=0;do{if(mu&&(pu=null),Us=0,mu=!1,25<=p)throw Error(i(301));if(p+=1,zt=lt=null,t.updateQueue!=null){var b=t.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}C.H=R5,b=n(o,d)}while(mu);return b}function _5(){var t=C.H,n=t.useState()[0];return n=typeof n.then=="function"?zs(n):n,t=t.useState()[0],(lt!==null?lt.memoizedState:null)!==t&&(He.flags|=1024),n}function sp(){var t=Rh!==0;return Rh=0,t}function lp(t,n,o){n.updateQueue=t.updateQueue,n.flags&=-2053,t.lanes&=~o}function cp(t){if(Ah){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Ah=!1}Za=0,zt=lt=He=null,mu=!1,Us=Rh=0,pu=null}function zr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?He.memoizedState=zt=t:zt=zt.next=t,zt}function It(){if(lt===null){var t=He.alternate;t=t!==null?t.memoizedState:null}else t=lt.next;var n=zt===null?He.memoizedState:zt.next;if(n!==null)zt=n,lt=t;else{if(t===null)throw He.alternate===null?Error(i(467)):Error(i(310));lt=t,t={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},zt===null?He.memoizedState=zt=t:zt=zt.next=t}return zt}function fp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zs(t){var n=Us;return Us+=1,pu===null&&(pu=[]),t=d1(pu,t,n),n=He,(zt===null?n.memoizedState:zt.next)===null&&(n=n.alternate,C.H=n===null||n.memoizedState===null?e_:t_),t}function Th(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return zs(t);if(t.$$typeof===T)return yr(t)}throw Error(i(438,String(t)))}function dp(t){var n=null,o=He.updateQueue;if(o!==null&&(n=o.memoCache),n==null){var d=He.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(n={data:d.data.map(function(p){return p.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),o===null&&(o=fp(),He.updateQueue=o),o.memoCache=n,o=n.data[n.index],o===void 0)for(o=n.data[n.index]=Array(t),d=0;d<t;d++)o[d]=J;return n.index++,o}function ia(t,n){return typeof n=="function"?n(t):n}function Mh(t){var n=It();return hp(n,lt,t)}function hp(t,n,o){var d=t.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=o;var p=t.baseQueue,b=d.pending;if(b!==null){if(p!==null){var O=p.next;p.next=b.next,b.next=O}n.baseQueue=p=b,d.pending=null}if(b=t.baseState,p===null)t.memoizedState=b;else{n=p.next;var A=O=null,P=null,W=n,se=!1;do{var he=W.lane&-536870913;if(he!==W.lane?(Ze&he)===he:(Za&he)===he){var Q=W.revertLane;if(Q===0)P!==null&&(P=P.next={lane:0,revertLane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),he===du&&(se=!0);else if((Za&Q)===Q){W=W.next,Q===du&&(se=!0);continue}else he={lane:0,revertLane:W.revertLane,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},P===null?(A=P=he,O=b):P=P.next=he,He.lanes|=Q,ii|=Q;he=W.action,Bi&&o(b,he),b=W.hasEagerState?W.eagerState:o(b,he)}else Q={lane:he,revertLane:W.revertLane,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},P===null?(A=P=Q,O=b):P=P.next=Q,He.lanes|=he,ii|=he;W=W.next}while(W!==null&&W!==n);if(P===null?O=b:P.next=A,!Qr(b,t.memoizedState)&&(Jt=!0,se&&(o=hu,o!==null)))throw o;t.memoizedState=b,t.baseState=O,t.baseQueue=P,d.lastRenderedState=b}return p===null&&(d.lanes=0),[t.memoizedState,d.dispatch]}function vp(t){var n=It(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=t;var d=o.dispatch,p=o.pending,b=n.memoizedState;if(p!==null){o.pending=null;var O=p=p.next;do b=t(b,O.action),O=O.next;while(O!==p);Qr(b,n.memoizedState)||(Jt=!0),n.memoizedState=b,n.baseQueue===null&&(n.baseState=b),o.lastRenderedState=b}return[b,d]}function _1(t,n,o){var d=He,p=It(),b=nt;if(b){if(o===void 0)throw Error(i(407));o=o()}else o=n();var O=!Qr((lt||p).memoizedState,o);O&&(p.memoizedState=o,Jt=!0),p=p.queue;var A=O1.bind(null,d,p,t);if(Is(2048,8,A,[t]),p.getSnapshot!==n||O||zt!==null&&zt.memoizedState.tag&1){if(d.flags|=2048,yu(9,xh(),w1.bind(null,d,p,o,n),null),pt===null)throw Error(i(349));b||(Za&124)!==0||S1(d,n,o)}return o}function S1(t,n,o){t.flags|=16384,t={getSnapshot:n,value:o},n=He.updateQueue,n===null?(n=fp(),He.updateQueue=n,n.stores=[t]):(o=n.stores,o===null?n.stores=[t]:o.push(t))}function w1(t,n,o,d){n.value=o,n.getSnapshot=d,E1(n)&&A1(t)}function O1(t,n,o){return o(function(){E1(n)&&A1(t)})}function E1(t){var n=t.getSnapshot;t=t.value;try{var o=n();return!Qr(t,o)}catch{return!0}}function A1(t){var n=su(t,2);n!==null&&tn(n,t,2)}function mp(t){var n=zr();if(typeof t=="function"){var o=t;if(t=o(),Bi){Fe(!0);try{o()}finally{Fe(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:t},n}function R1(t,n,o,d){return t.baseState=o,hp(t,lt,typeof d=="function"?d:ia)}function S5(t,n,o,d,p){if(Ch(t))throw Error(i(485));if(t=n.action,t!==null){var b={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){b.listeners.push(O)}};C.T!==null?o(!0):b.isTransition=!1,d(b),o=n.pending,o===null?(b.next=n.pending=b,T1(n,b)):(b.next=o.next,n.pending=o.next=b)}}function T1(t,n){var o=n.action,d=n.payload,p=t.state;if(n.isTransition){var b=C.T,O={};C.T=O;try{var A=o(p,d),P=C.S;P!==null&&P(O,A),M1(t,n,A)}catch(W){pp(t,n,W)}finally{C.T=b}}else try{b=o(p,d),M1(t,n,b)}catch(W){pp(t,n,W)}}function M1(t,n,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(d){x1(t,n,d)},function(d){return pp(t,n,d)}):x1(t,n,o)}function x1(t,n,o){n.status="fulfilled",n.value=o,j1(n),t.state=o,n=t.pending,n!==null&&(o=n.next,o===n?t.pending=null:(o=o.next,n.next=o,T1(t,o)))}function pp(t,n,o){var d=t.pending;if(t.pending=null,d!==null){d=d.next;do n.status="rejected",n.reason=o,j1(n),n=n.next;while(n!==d)}t.action=null}function j1(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function C1(t,n){return n}function P1(t,n){if(nt){var o=pt.formState;if(o!==null){e:{var d=He;if(nt){if(xt){t:{for(var p=xt,b=Un;p.nodeType!==8;){if(!b){p=null;break t}if(p=An(p.nextSibling),p===null){p=null;break t}}b=p.data,p=b==="F!"||b==="F"?p:null}if(p){xt=An(p.nextSibling),d=p.data==="F!";break e}}Ui(d)}d=!1}d&&(n=o[0])}}return o=zr(),o.memoizedState=o.baseState=n,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:C1,lastRenderedState:n},o.queue=d,o=K1.bind(null,He,d),d.dispatch=o,d=mp(!1),b=Sp.bind(null,He,!1,d.queue),d=zr(),p={state:n,dispatch:null,action:t,pending:null},d.queue=p,o=S5.bind(null,He,p,b,o),p.dispatch=o,d.memoizedState=t,[n,o,!1]}function D1(t){var n=It();return N1(n,lt,t)}function N1(t,n,o){if(n=hp(t,n,C1)[0],t=Mh(ia)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var d=zs(n)}catch(O){throw O===Ns?wh:O}else d=n;n=It();var p=n.queue,b=p.dispatch;return o!==n.memoizedState&&(He.flags|=2048,yu(9,xh(),w5.bind(null,p,o),null)),[d,b,t]}function w5(t,n){t.action=n}function k1(t){var n=It(),o=lt;if(o!==null)return N1(n,o,t);It(),n=n.memoizedState,o=It();var d=o.queue.dispatch;return o.memoizedState=t,[n,d,!1]}function yu(t,n,o,d){return t={tag:t,create:o,deps:d,inst:n,next:null},n=He.updateQueue,n===null&&(n=fp(),He.updateQueue=n),o=n.lastEffect,o===null?n.lastEffect=t.next=t:(d=o.next,o.next=t,t.next=d,n.lastEffect=t),t}function xh(){return{destroy:void 0,resource:void 0}}function q1(){return It().memoizedState}function jh(t,n,o,d){var p=zr();d=d===void 0?null:d,He.flags|=t,p.memoizedState=yu(1|n,xh(),o,d)}function Is(t,n,o,d){var p=It();d=d===void 0?null:d;var b=p.memoizedState.inst;lt!==null&&d!==null&&op(d,lt.memoizedState.deps)?p.memoizedState=yu(n,b,o,d):(He.flags|=t,p.memoizedState=yu(1|n,b,o,d))}function V1(t,n){jh(8390656,8,t,n)}function L1(t,n){Is(2048,8,t,n)}function U1(t,n){return Is(4,2,t,n)}function z1(t,n){return Is(4,4,t,n)}function I1(t,n){if(typeof n=="function"){t=t();var o=n(t);return function(){typeof o=="function"?o():n(null)}}if(n!=null)return t=t(),n.current=t,function(){n.current=null}}function F1(t,n,o){o=o!=null?o.concat([t]):null,Is(4,4,I1.bind(null,n,t),o)}function yp(){}function B1(t,n){var o=It();n=n===void 0?null:n;var d=o.memoizedState;return n!==null&&op(n,d[1])?d[0]:(o.memoizedState=[t,n],t)}function $1(t,n){var o=It();n=n===void 0?null:n;var d=o.memoizedState;if(n!==null&&op(n,d[1]))return d[0];if(d=t(),Bi){Fe(!0);try{t()}finally{Fe(!1)}}return o.memoizedState=[d,n],d}function bp(t,n,o){return o===void 0||(Za&1073741824)!==0?t.memoizedState=n:(t.memoizedState=o,t=G_(),He.lanes|=t,ii|=t,o)}function H1(t,n,o,d){return Qr(o,n)?o:vu.current!==null?(t=bp(t,o,d),Qr(t,n)||(Jt=!0),t):(Za&42)===0?(Jt=!0,t.memoizedState=o):(t=G_(),He.lanes|=t,ii|=t,n)}function Y1(t,n,o,d,p){var b=te.p;te.p=b!==0&&8>b?b:8;var O=C.T,A={};C.T=A,Sp(t,!1,n,o);try{var P=p(),W=C.S;if(W!==null&&W(A,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var se=b5(P,d);Fs(t,n,se,en(t))}else Fs(t,n,d,en(t))}catch(he){Fs(t,n,{then:function(){},status:"rejected",reason:he},en())}finally{te.p=b,C.T=O}}function O5(){}function gp(t,n,o,d){if(t.tag!==5)throw Error(i(476));var p=G1(t).queue;Y1(t,p,n,ae,o===null?O5:function(){return W1(t),o(d)})}function G1(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:ae},next:null};var o={};return n.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:o},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function W1(t){var n=G1(t).next.queue;Fs(t,n,{},en())}function _p(){return yr(ol)}function Q1(){return It().memoizedState}function X1(){return It().memoizedState}function E5(t){for(var n=t.return;n!==null;){switch(n.tag){case 24:case 3:var o=en();t=Xa(o);var d=Ka(n,t,o);d!==null&&(tn(d,n,o),qs(d,n,o)),n={cache:Xm()},t.payload=n;return}n=n.return}}function A5(t,n,o){var d=en();o={lane:d,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},Ch(t)?Z1(n,o):(o=zm(t,n,o,d),o!==null&&(tn(o,t,d),J1(o,n,d)))}function K1(t,n,o){var d=en();Fs(t,n,o,d)}function Fs(t,n,o,d){var p={lane:d,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ch(t))Z1(n,p);else{var b=t.alternate;if(t.lanes===0&&(b===null||b.lanes===0)&&(b=n.lastRenderedReducer,b!==null))try{var O=n.lastRenderedState,A=b(O,o);if(p.hasEagerState=!0,p.eagerState=A,Qr(A,O))return vh(t,n,p,0),pt===null&&hh(),!1}catch{}finally{}if(o=zm(t,n,p,d),o!==null)return tn(o,t,d),J1(o,n,d),!0}return!1}function Sp(t,n,o,d){if(d={lane:2,revertLane:Jp(),action:d,hasEagerState:!1,eagerState:null,next:null},Ch(t)){if(n)throw Error(i(479))}else n=zm(t,o,d,2),n!==null&&tn(n,t,2)}function Ch(t){var n=t.alternate;return t===He||n!==null&&n===He}function Z1(t,n){mu=Ah=!0;var o=t.pending;o===null?n.next=n:(n.next=o.next,o.next=n),t.pending=n}function J1(t,n,o){if((o&4194048)!==0){var d=n.lanes;d&=t.pendingLanes,o|=d,n.lanes=o,x(t,o)}}var Ph={readContext:yr,use:Th,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useLayoutEffect:Dt,useInsertionEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useSyncExternalStore:Dt,useId:Dt,useHostTransitionStatus:Dt,useFormState:Dt,useActionState:Dt,useOptimistic:Dt,useMemoCache:Dt,useCacheRefresh:Dt},e_={readContext:yr,use:Th,useCallback:function(t,n){return zr().memoizedState=[t,n===void 0?null:n],t},useContext:yr,useEffect:V1,useImperativeHandle:function(t,n,o){o=o!=null?o.concat([t]):null,jh(4194308,4,I1.bind(null,n,t),o)},useLayoutEffect:function(t,n){return jh(4194308,4,t,n)},useInsertionEffect:function(t,n){jh(4,2,t,n)},useMemo:function(t,n){var o=zr();n=n===void 0?null:n;var d=t();if(Bi){Fe(!0);try{t()}finally{Fe(!1)}}return o.memoizedState=[d,n],d},useReducer:function(t,n,o){var d=zr();if(o!==void 0){var p=o(n);if(Bi){Fe(!0);try{o(n)}finally{Fe(!1)}}}else p=n;return d.memoizedState=d.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},d.queue=t,t=t.dispatch=A5.bind(null,He,t),[d.memoizedState,t]},useRef:function(t){var n=zr();return t={current:t},n.memoizedState=t},useState:function(t){t=mp(t);var n=t.queue,o=K1.bind(null,He,n);return n.dispatch=o,[t.memoizedState,o]},useDebugValue:yp,useDeferredValue:function(t,n){var o=zr();return bp(o,t,n)},useTransition:function(){var t=mp(!1);return t=Y1.bind(null,He,t.queue,!0,!1),zr().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,n,o){var d=He,p=zr();if(nt){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),pt===null)throw Error(i(349));(Ze&124)!==0||S1(d,n,o)}p.memoizedState=o;var b={value:o,getSnapshot:n};return p.queue=b,V1(O1.bind(null,d,b,t),[t]),d.flags|=2048,yu(9,xh(),w1.bind(null,d,b,o,n),null),o},useId:function(){var t=zr(),n=pt.identifierPrefix;if(nt){var o=ra,d=ta;o=(d&~(1<<32-Xe(d)-1)).toString(32)+o,n="«"+n+"R"+o,o=Rh++,0<o&&(n+="H"+o.toString(32)),n+="»"}else o=g5++,n="«"+n+"r"+o.toString(32)+"»";return t.memoizedState=n},useHostTransitionStatus:_p,useFormState:P1,useActionState:P1,useOptimistic:function(t){var n=zr();n.memoizedState=n.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=o,n=Sp.bind(null,He,!0,o),o.dispatch=n,[t,n]},useMemoCache:dp,useCacheRefresh:function(){return zr().memoizedState=E5.bind(null,He)}},t_={readContext:yr,use:Th,useCallback:B1,useContext:yr,useEffect:L1,useImperativeHandle:F1,useInsertionEffect:U1,useLayoutEffect:z1,useMemo:$1,useReducer:Mh,useRef:q1,useState:function(){return Mh(ia)},useDebugValue:yp,useDeferredValue:function(t,n){var o=It();return H1(o,lt.memoizedState,t,n)},useTransition:function(){var t=Mh(ia)[0],n=It().memoizedState;return[typeof t=="boolean"?t:zs(t),n]},useSyncExternalStore:_1,useId:Q1,useHostTransitionStatus:_p,useFormState:D1,useActionState:D1,useOptimistic:function(t,n){var o=It();return R1(o,lt,t,n)},useMemoCache:dp,useCacheRefresh:X1},R5={readContext:yr,use:Th,useCallback:B1,useContext:yr,useEffect:L1,useImperativeHandle:F1,useInsertionEffect:U1,useLayoutEffect:z1,useMemo:$1,useReducer:vp,useRef:q1,useState:function(){return vp(ia)},useDebugValue:yp,useDeferredValue:function(t,n){var o=It();return lt===null?bp(o,t,n):H1(o,lt.memoizedState,t,n)},useTransition:function(){var t=vp(ia)[0],n=It().memoizedState;return[typeof t=="boolean"?t:zs(t),n]},useSyncExternalStore:_1,useId:Q1,useHostTransitionStatus:_p,useFormState:k1,useActionState:k1,useOptimistic:function(t,n){var o=It();return lt!==null?R1(o,lt,t,n):(o.baseState=t,[t,o.queue.dispatch])},useMemoCache:dp,useCacheRefresh:X1},bu=null,Bs=0;function Dh(t){var n=Bs;return Bs+=1,bu===null&&(bu=[]),d1(bu,t,n)}function $s(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Nh(t,n){throw n.$$typeof===v?Error(i(525)):(t=Object.prototype.toString.call(n),Error(i(31,t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)))}function r_(t){var n=t._init;return n(t._payload)}function n_(t){function n(B,L){if(t){var H=B.deletions;H===null?(B.deletions=[L],B.flags|=16):H.push(L)}}function o(B,L){if(!t)return null;for(;L!==null;)n(B,L),L=L.sibling;return null}function d(B){for(var L=new Map;B!==null;)B.key!==null?L.set(B.key,B):L.set(B.index,B),B=B.sibling;return L}function p(B,L){return B=ea(B,L),B.index=0,B.sibling=null,B}function b(B,L,H){return B.index=H,t?(H=B.alternate,H!==null?(H=H.index,H<L?(B.flags|=67108866,L):H):(B.flags|=67108866,L)):(B.flags|=1048576,L)}function O(B){return t&&B.alternate===null&&(B.flags|=67108866),B}function A(B,L,H,fe){return L===null||L.tag!==6?(L=Fm(H,B.mode,fe),L.return=B,L):(L=p(L,H),L.return=B,L)}function P(B,L,H,fe){var Ae=H.type;return Ae===S?se(B,L,H.props.children,fe,H.key):L!==null&&(L.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===N&&r_(Ae)===L.type)?(L=p(L,H.props),$s(L,H),L.return=B,L):(L=ph(H.type,H.key,H.props,null,B.mode,fe),$s(L,H),L.return=B,L)}function W(B,L,H,fe){return L===null||L.tag!==4||L.stateNode.containerInfo!==H.containerInfo||L.stateNode.implementation!==H.implementation?(L=Bm(H,B.mode,fe),L.return=B,L):(L=p(L,H.children||[]),L.return=B,L)}function se(B,L,H,fe,Ae){return L===null||L.tag!==7?(L=ki(H,B.mode,fe,Ae),L.return=B,L):(L=p(L,H),L.return=B,L)}function he(B,L,H){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Fm(""+L,B.mode,H),L.return=B,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case y:return H=ph(L.type,L.key,L.props,null,B.mode,H),$s(H,L),H.return=B,H;case g:return L=Bm(L,B.mode,H),L.return=B,L;case N:var fe=L._init;return L=fe(L._payload),he(B,L,H)}if(ye(L)||I(L))return L=ki(L,B.mode,H,null),L.return=B,L;if(typeof L.then=="function")return he(B,Dh(L),H);if(L.$$typeof===T)return he(B,_h(B,L),H);Nh(B,L)}return null}function Q(B,L,H,fe){var Ae=L!==null?L.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return Ae!==null?null:A(B,L,""+H,fe);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case y:return H.key===Ae?P(B,L,H,fe):null;case g:return H.key===Ae?W(B,L,H,fe):null;case N:return Ae=H._init,H=Ae(H._payload),Q(B,L,H,fe)}if(ye(H)||I(H))return Ae!==null?null:se(B,L,H,fe,null);if(typeof H.then=="function")return Q(B,L,Dh(H),fe);if(H.$$typeof===T)return Q(B,L,_h(B,H),fe);Nh(B,H)}return null}function K(B,L,H,fe,Ae){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return B=B.get(H)||null,A(L,B,""+fe,Ae);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case y:return B=B.get(fe.key===null?H:fe.key)||null,P(L,B,fe,Ae);case g:return B=B.get(fe.key===null?H:fe.key)||null,W(L,B,fe,Ae);case N:var Ge=fe._init;return fe=Ge(fe._payload),K(B,L,H,fe,Ae)}if(ye(fe)||I(fe))return B=B.get(H)||null,se(L,B,fe,Ae,null);if(typeof fe.then=="function")return K(B,L,H,Dh(fe),Ae);if(fe.$$typeof===T)return K(B,L,H,_h(L,fe),Ae);Nh(L,fe)}return null}function Ue(B,L,H,fe){for(var Ae=null,Ge=null,Ce=L,ke=L=0,tr=null;Ce!==null&&ke<H.length;ke++){Ce.index>ke?(tr=Ce,Ce=null):tr=Ce.sibling;var Je=Q(B,Ce,H[ke],fe);if(Je===null){Ce===null&&(Ce=tr);break}t&&Ce&&Je.alternate===null&&n(B,Ce),L=b(Je,L,ke),Ge===null?Ae=Je:Ge.sibling=Je,Ge=Je,Ce=tr}if(ke===H.length)return o(B,Ce),nt&&Vi(B,ke),Ae;if(Ce===null){for(;ke<H.length;ke++)Ce=he(B,H[ke],fe),Ce!==null&&(L=b(Ce,L,ke),Ge===null?Ae=Ce:Ge.sibling=Ce,Ge=Ce);return nt&&Vi(B,ke),Ae}for(Ce=d(Ce);ke<H.length;ke++)tr=K(Ce,B,ke,H[ke],fe),tr!==null&&(t&&tr.alternate!==null&&Ce.delete(tr.key===null?ke:tr.key),L=b(tr,L,ke),Ge===null?Ae=tr:Ge.sibling=tr,Ge=tr);return t&&Ce.forEach(function(vi){return n(B,vi)}),nt&&Vi(B,ke),Ae}function Ne(B,L,H,fe){if(H==null)throw Error(i(151));for(var Ae=null,Ge=null,Ce=L,ke=L=0,tr=null,Je=H.next();Ce!==null&&!Je.done;ke++,Je=H.next()){Ce.index>ke?(tr=Ce,Ce=null):tr=Ce.sibling;var vi=Q(B,Ce,Je.value,fe);if(vi===null){Ce===null&&(Ce=tr);break}t&&Ce&&vi.alternate===null&&n(B,Ce),L=b(vi,L,ke),Ge===null?Ae=vi:Ge.sibling=vi,Ge=vi,Ce=tr}if(Je.done)return o(B,Ce),nt&&Vi(B,ke),Ae;if(Ce===null){for(;!Je.done;ke++,Je=H.next())Je=he(B,Je.value,fe),Je!==null&&(L=b(Je,L,ke),Ge===null?Ae=Je:Ge.sibling=Je,Ge=Je);return nt&&Vi(B,ke),Ae}for(Ce=d(Ce);!Je.done;ke++,Je=H.next())Je=K(Ce,B,ke,Je.value,fe),Je!==null&&(t&&Je.alternate!==null&&Ce.delete(Je.key===null?ke:Je.key),L=b(Je,L,ke),Ge===null?Ae=Je:Ge.sibling=Je,Ge=Je);return t&&Ce.forEach(function(T3){return n(B,T3)}),nt&&Vi(B,ke),Ae}function ft(B,L,H,fe){if(typeof H=="object"&&H!==null&&H.type===S&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case y:e:{for(var Ae=H.key;L!==null;){if(L.key===Ae){if(Ae=H.type,Ae===S){if(L.tag===7){o(B,L.sibling),fe=p(L,H.props.children),fe.return=B,B=fe;break e}}else if(L.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===N&&r_(Ae)===L.type){o(B,L.sibling),fe=p(L,H.props),$s(fe,H),fe.return=B,B=fe;break e}o(B,L);break}else n(B,L);L=L.sibling}H.type===S?(fe=ki(H.props.children,B.mode,fe,H.key),fe.return=B,B=fe):(fe=ph(H.type,H.key,H.props,null,B.mode,fe),$s(fe,H),fe.return=B,B=fe)}return O(B);case g:e:{for(Ae=H.key;L!==null;){if(L.key===Ae)if(L.tag===4&&L.stateNode.containerInfo===H.containerInfo&&L.stateNode.implementation===H.implementation){o(B,L.sibling),fe=p(L,H.children||[]),fe.return=B,B=fe;break e}else{o(B,L);break}else n(B,L);L=L.sibling}fe=Bm(H,B.mode,fe),fe.return=B,B=fe}return O(B);case N:return Ae=H._init,H=Ae(H._payload),ft(B,L,H,fe)}if(ye(H))return Ue(B,L,H,fe);if(I(H)){if(Ae=I(H),typeof Ae!="function")throw Error(i(150));return H=Ae.call(H),Ne(B,L,H,fe)}if(typeof H.then=="function")return ft(B,L,Dh(H),fe);if(H.$$typeof===T)return ft(B,L,_h(B,H),fe);Nh(B,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,L!==null&&L.tag===6?(o(B,L.sibling),fe=p(L,H),fe.return=B,B=fe):(o(B,L),fe=Fm(H,B.mode,fe),fe.return=B,B=fe),O(B)):o(B,L)}return function(B,L,H,fe){try{Bs=0;var Ae=ft(B,L,H,fe);return bu=null,Ae}catch(Ce){if(Ce===Ns||Ce===wh)throw Ce;var Ge=Xr(29,Ce,null,B.mode);return Ge.lanes=fe,Ge.return=B,Ge}finally{}}}var gu=n_(!0),a_=n_(!1),hn=Y(null),zn=null;function Ja(t){var n=t.alternate;ue(Yt,Yt.current&1),ue(hn,t),zn===null&&(n===null||vu.current!==null||n.memoizedState!==null)&&(zn=t)}function i_(t){if(t.tag===22){if(ue(Yt,Yt.current),ue(hn,t),zn===null){var n=t.alternate;n!==null&&n.memoizedState!==null&&(zn=t)}}else ei()}function ei(){ue(Yt,Yt.current),ue(hn,hn.current)}function oa(t){me(hn),zn===t&&(zn=null),me(Yt)}var Yt=Y(0);function kh(t){for(var n=t;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||fy(o)))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function wp(t,n,o,d){n=t.memoizedState,o=o(d,n),o=o==null?n:m({},n,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var Op={enqueueSetState:function(t,n,o){t=t._reactInternals;var d=en(),p=Xa(d);p.payload=n,o!=null&&(p.callback=o),n=Ka(t,p,d),n!==null&&(tn(n,t,d),qs(n,t,d))},enqueueReplaceState:function(t,n,o){t=t._reactInternals;var d=en(),p=Xa(d);p.tag=1,p.payload=n,o!=null&&(p.callback=o),n=Ka(t,p,d),n!==null&&(tn(n,t,d),qs(n,t,d))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var o=en(),d=Xa(o);d.tag=2,n!=null&&(d.callback=n),n=Ka(t,d,o),n!==null&&(tn(n,t,o),qs(n,t,o))}};function o_(t,n,o,d,p,b,O){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(d,b,O):n.prototype&&n.prototype.isPureReactComponent?!Rs(o,d)||!Rs(p,b):!0}function u_(t,n,o,d){t=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,d),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,d),n.state!==t&&Op.enqueueReplaceState(n,n.state,null)}function $i(t,n){var o=n;if("ref"in n){o={};for(var d in n)d!=="ref"&&(o[d]=n[d])}if(t=t.defaultProps){o===n&&(o=m({},o));for(var p in t)o[p]===void 0&&(o[p]=t[p])}return o}var qh=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function s_(t){qh(t)}function l_(t){console.error(t)}function c_(t){qh(t)}function Vh(t,n){try{var o=t.onUncaughtError;o(n.value,{componentStack:n.stack})}catch(d){setTimeout(function(){throw d})}}function f_(t,n,o){try{var d=t.onCaughtError;d(o.value,{componentStack:o.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Ep(t,n,o){return o=Xa(o),o.tag=3,o.payload={element:null},o.callback=function(){Vh(t,n)},o}function d_(t){return t=Xa(t),t.tag=3,t}function h_(t,n,o,d){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var b=d.value;t.payload=function(){return p(b)},t.callback=function(){f_(n,o,d)}}var O=o.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(t.callback=function(){f_(n,o,d),typeof p!="function"&&(oi===null?oi=new Set([this]):oi.add(this));var A=d.stack;this.componentDidCatch(d.value,{componentStack:A!==null?A:""})})}function T5(t,n,o,d,p){if(o.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(n=o.alternate,n!==null&&Cs(n,o,p,!0),o=hn.current,o!==null){switch(o.tag){case 13:return zn===null?Wp():o.alternate===null&&jt===0&&(jt=3),o.flags&=-257,o.flags|=65536,o.lanes=p,d===Jm?o.flags|=16384:(n=o.updateQueue,n===null?o.updateQueue=new Set([d]):n.add(d),Xp(t,d,p)),!1;case 22:return o.flags|=65536,d===Jm?o.flags|=16384:(n=o.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([d])},o.updateQueue=n):(o=n.retryQueue,o===null?n.retryQueue=new Set([d]):o.add(d)),Xp(t,d,p)),!1}throw Error(i(435,o.tag))}return Xp(t,d,p),Wp(),!1}if(nt)return n=hn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=p,d!==Ym&&(t=Error(i(422),{cause:d}),js(ln(t,o)))):(d!==Ym&&(n=Error(i(423),{cause:d}),js(ln(n,o))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,d=ln(d,o),p=Ep(t.stateNode,d,p),rp(t,p),jt!==4&&(jt=2)),!1;var b=Error(i(520),{cause:d});if(b=ln(b,o),Ks===null?Ks=[b]:Ks.push(b),jt!==4&&(jt=2),n===null)return!0;d=ln(d,o),o=n;do{switch(o.tag){case 3:return o.flags|=65536,t=p&-p,o.lanes|=t,t=Ep(o.stateNode,d,t),rp(o,t),!1;case 1:if(n=o.type,b=o.stateNode,(o.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(oi===null||!oi.has(b))))return o.flags|=65536,p&=-p,o.lanes|=p,p=d_(p),h_(p,t,o,d),rp(o,p),!1}o=o.return}while(o!==null);return!1}var v_=Error(i(461)),Jt=!1;function ir(t,n,o,d){n.child=t===null?a_(n,null,o,d):gu(n,t.child,o,d)}function m_(t,n,o,d,p){o=o.render;var b=n.ref;if("ref"in d){var O={};for(var A in d)A!=="ref"&&(O[A]=d[A])}else O=d;return Ii(n),d=up(t,n,o,O,b,p),A=sp(),t!==null&&!Jt?(lp(t,n,p),ua(t,n,p)):(nt&&A&&$m(n),n.flags|=1,ir(t,n,d,p),n.child)}function p_(t,n,o,d,p){if(t===null){var b=o.type;return typeof b=="function"&&!Im(b)&&b.defaultProps===void 0&&o.compare===null?(n.tag=15,n.type=b,y_(t,n,b,d,p)):(t=ph(o.type,null,d,n,n.mode,p),t.ref=n.ref,t.return=n,n.child=t)}if(b=t.child,!Pp(t,p)){var O=b.memoizedProps;if(o=o.compare,o=o!==null?o:Rs,o(O,d)&&t.ref===n.ref)return ua(t,n,p)}return n.flags|=1,t=ea(b,d),t.ref=n.ref,t.return=n,n.child=t}function y_(t,n,o,d,p){if(t!==null){var b=t.memoizedProps;if(Rs(b,d)&&t.ref===n.ref)if(Jt=!1,n.pendingProps=d=b,Pp(t,p))(t.flags&131072)!==0&&(Jt=!0);else return n.lanes=t.lanes,ua(t,n,p)}return Ap(t,n,o,d,p)}function b_(t,n,o){var d=n.pendingProps,p=d.children,b=t!==null?t.memoizedState:null;if(d.mode==="hidden"){if((n.flags&128)!==0){if(d=b!==null?b.baseLanes|o:o,t!==null){for(p=n.child=t.child,b=0;p!==null;)b=b|p.lanes|p.childLanes,p=p.sibling;n.childLanes=b&~d}else n.childLanes=0,n.child=null;return g_(t,n,d,o)}if((o&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Sh(n,b!==null?b.cachePool:null),b!==null?y1(n,b):ap(),i_(n);else return n.lanes=n.childLanes=536870912,g_(t,n,b!==null?b.baseLanes|o:o,o)}else b!==null?(Sh(n,b.cachePool),y1(n,b),ei(),n.memoizedState=null):(t!==null&&Sh(n,null),ap(),ei());return ir(t,n,p,o),n.child}function g_(t,n,o,d){var p=Zm();return p=p===null?null:{parent:Ht._currentValue,pool:p},n.memoizedState={baseLanes:o,cachePool:p},t!==null&&Sh(n,null),ap(),i_(n),t!==null&&Cs(t,n,d,!0),null}function Lh(t,n){var o=n.ref;if(o===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(t===null||t.ref!==o)&&(n.flags|=4194816)}}function Ap(t,n,o,d,p){return Ii(n),o=up(t,n,o,d,void 0,p),d=sp(),t!==null&&!Jt?(lp(t,n,p),ua(t,n,p)):(nt&&d&&$m(n),n.flags|=1,ir(t,n,o,p),n.child)}function __(t,n,o,d,p,b){return Ii(n),n.updateQueue=null,o=g1(n,d,o,p),b1(t),d=sp(),t!==null&&!Jt?(lp(t,n,b),ua(t,n,b)):(nt&&d&&$m(n),n.flags|=1,ir(t,n,o,b),n.child)}function S_(t,n,o,d,p){if(Ii(n),n.stateNode===null){var b=lu,O=o.contextType;typeof O=="object"&&O!==null&&(b=yr(O)),b=new o(d,b),n.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Op,n.stateNode=b,b._reactInternals=n,b=n.stateNode,b.props=d,b.state=n.memoizedState,b.refs={},ep(n),O=o.contextType,b.context=typeof O=="object"&&O!==null?yr(O):lu,b.state=n.memoizedState,O=o.getDerivedStateFromProps,typeof O=="function"&&(wp(n,o,O,d),b.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(O=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),O!==b.state&&Op.enqueueReplaceState(b,b.state,null),Ls(n,d,b,p),Vs(),b.state=n.memoizedState),typeof b.componentDidMount=="function"&&(n.flags|=4194308),d=!0}else if(t===null){b=n.stateNode;var A=n.memoizedProps,P=$i(o,A);b.props=P;var W=b.context,se=o.contextType;O=lu,typeof se=="object"&&se!==null&&(O=yr(se));var he=o.getDerivedStateFromProps;se=typeof he=="function"||typeof b.getSnapshotBeforeUpdate=="function",A=n.pendingProps!==A,se||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(A||W!==O)&&u_(n,b,d,O),Qa=!1;var Q=n.memoizedState;b.state=Q,Ls(n,d,b,p),Vs(),W=n.memoizedState,A||Q!==W||Qa?(typeof he=="function"&&(wp(n,o,he,d),W=n.memoizedState),(P=Qa||o_(n,o,P,d,Q,W,O))?(se||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(n.flags|=4194308)):(typeof b.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=d,n.memoizedState=W),b.props=d,b.state=W,b.context=O,d=P):(typeof b.componentDidMount=="function"&&(n.flags|=4194308),d=!1)}else{b=n.stateNode,tp(t,n),O=n.memoizedProps,se=$i(o,O),b.props=se,he=n.pendingProps,Q=b.context,W=o.contextType,P=lu,typeof W=="object"&&W!==null&&(P=yr(W)),A=o.getDerivedStateFromProps,(W=typeof A=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(O!==he||Q!==P)&&u_(n,b,d,P),Qa=!1,Q=n.memoizedState,b.state=Q,Ls(n,d,b,p),Vs();var K=n.memoizedState;O!==he||Q!==K||Qa||t!==null&&t.dependencies!==null&&gh(t.dependencies)?(typeof A=="function"&&(wp(n,o,A,d),K=n.memoizedState),(se=Qa||o_(n,o,se,d,Q,K,P)||t!==null&&t.dependencies!==null&&gh(t.dependencies))?(W||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(d,K,P),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(d,K,P)),typeof b.componentDidUpdate=="function"&&(n.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof b.componentDidUpdate!="function"||O===t.memoizedProps&&Q===t.memoizedState||(n.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||O===t.memoizedProps&&Q===t.memoizedState||(n.flags|=1024),n.memoizedProps=d,n.memoizedState=K),b.props=d,b.state=K,b.context=P,d=se):(typeof b.componentDidUpdate!="function"||O===t.memoizedProps&&Q===t.memoizedState||(n.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||O===t.memoizedProps&&Q===t.memoizedState||(n.flags|=1024),d=!1)}return b=d,Lh(t,n),d=(n.flags&128)!==0,b||d?(b=n.stateNode,o=d&&typeof o.getDerivedStateFromError!="function"?null:b.render(),n.flags|=1,t!==null&&d?(n.child=gu(n,t.child,null,p),n.child=gu(n,null,o,p)):ir(t,n,o,p),n.memoizedState=b.state,t=n.child):t=ua(t,n,p),t}function w_(t,n,o,d){return xs(),n.flags|=256,ir(t,n,o,d),n.child}var Rp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tp(t){return{baseLanes:t,cachePool:l1()}}function Mp(t,n,o){return t=t!==null?t.childLanes&~o:0,n&&(t|=vn),t}function O_(t,n,o){var d=n.pendingProps,p=!1,b=(n.flags&128)!==0,O;if((O=b)||(O=t!==null&&t.memoizedState===null?!1:(Yt.current&2)!==0),O&&(p=!0,n.flags&=-129),O=(n.flags&32)!==0,n.flags&=-33,t===null){if(nt){if(p?Ja(n):ei(),nt){var A=xt,P;if(P=A){e:{for(P=A,A=Un;P.nodeType!==8;){if(!A){A=null;break e}if(P=An(P.nextSibling),P===null){A=null;break e}}A=P}A!==null?(n.memoizedState={dehydrated:A,treeContext:qi!==null?{id:ta,overflow:ra}:null,retryLane:536870912,hydrationErrors:null},P=Xr(18,null,null,0),P.stateNode=A,P.return=n,n.child=P,xr=n,xt=null,P=!0):P=!1}P||Ui(n)}if(A=n.memoizedState,A!==null&&(A=A.dehydrated,A!==null))return fy(A)?n.lanes=32:n.lanes=536870912,null;oa(n)}return A=d.children,d=d.fallback,p?(ei(),p=n.mode,A=Uh({mode:"hidden",children:A},p),d=ki(d,p,o,null),A.return=n,d.return=n,A.sibling=d,n.child=A,p=n.child,p.memoizedState=Tp(o),p.childLanes=Mp(t,O,o),n.memoizedState=Rp,d):(Ja(n),xp(n,A))}if(P=t.memoizedState,P!==null&&(A=P.dehydrated,A!==null)){if(b)n.flags&256?(Ja(n),n.flags&=-257,n=jp(t,n,o)):n.memoizedState!==null?(ei(),n.child=t.child,n.flags|=128,n=null):(ei(),p=d.fallback,A=n.mode,d=Uh({mode:"visible",children:d.children},A),p=ki(p,A,o,null),p.flags|=2,d.return=n,p.return=n,d.sibling=p,n.child=d,gu(n,t.child,null,o),d=n.child,d.memoizedState=Tp(o),d.childLanes=Mp(t,O,o),n.memoizedState=Rp,n=p);else if(Ja(n),fy(A)){if(O=A.nextSibling&&A.nextSibling.dataset,O)var W=O.dgst;O=W,d=Error(i(419)),d.stack="",d.digest=O,js({value:d,source:null,stack:null}),n=jp(t,n,o)}else if(Jt||Cs(t,n,o,!1),O=(o&t.childLanes)!==0,Jt||O){if(O=pt,O!==null&&(d=o&-o,d=(d&42)!==0?1:z(d),d=(d&(O.suspendedLanes|o))!==0?0:d,d!==0&&d!==P.retryLane))throw P.retryLane=d,su(t,d),tn(O,t,d),v_;A.data==="$?"||Wp(),n=jp(t,n,o)}else A.data==="$?"?(n.flags|=192,n.child=t.child,n=null):(t=P.treeContext,xt=An(A.nextSibling),xr=n,nt=!0,Li=null,Un=!1,t!==null&&(fn[dn++]=ta,fn[dn++]=ra,fn[dn++]=qi,ta=t.id,ra=t.overflow,qi=n),n=xp(n,d.children),n.flags|=4096);return n}return p?(ei(),p=d.fallback,A=n.mode,P=t.child,W=P.sibling,d=ea(P,{mode:"hidden",children:d.children}),d.subtreeFlags=P.subtreeFlags&65011712,W!==null?p=ea(W,p):(p=ki(p,A,o,null),p.flags|=2),p.return=n,d.return=n,d.sibling=p,n.child=d,d=p,p=n.child,A=t.child.memoizedState,A===null?A=Tp(o):(P=A.cachePool,P!==null?(W=Ht._currentValue,P=P.parent!==W?{parent:W,pool:W}:P):P=l1(),A={baseLanes:A.baseLanes|o,cachePool:P}),p.memoizedState=A,p.childLanes=Mp(t,O,o),n.memoizedState=Rp,d):(Ja(n),o=t.child,t=o.sibling,o=ea(o,{mode:"visible",children:d.children}),o.return=n,o.sibling=null,t!==null&&(O=n.deletions,O===null?(n.deletions=[t],n.flags|=16):O.push(t)),n.child=o,n.memoizedState=null,o)}function xp(t,n){return n=Uh({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function Uh(t,n){return t=Xr(22,t,null,n),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function jp(t,n,o){return gu(n,t.child,null,o),t=xp(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function E_(t,n,o){t.lanes|=n;var d=t.alternate;d!==null&&(d.lanes|=n),Wm(t.return,n,o)}function Cp(t,n,o,d,p){var b=t.memoizedState;b===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:d,tail:o,tailMode:p}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=d,b.tail=o,b.tailMode=p)}function A_(t,n,o){var d=n.pendingProps,p=d.revealOrder,b=d.tail;if(ir(t,n,d.children,o),d=Yt.current,(d&2)!==0)d=d&1|2,n.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&E_(t,o,n);else if(t.tag===19)E_(t,o,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}d&=1}switch(ue(Yt,d),p){case"forwards":for(o=n.child,p=null;o!==null;)t=o.alternate,t!==null&&kh(t)===null&&(p=o),o=o.sibling;o=p,o===null?(p=n.child,n.child=null):(p=o.sibling,o.sibling=null),Cp(n,!1,p,o,b);break;case"backwards":for(o=null,p=n.child,n.child=null;p!==null;){if(t=p.alternate,t!==null&&kh(t)===null){n.child=p;break}t=p.sibling,p.sibling=o,o=p,p=t}Cp(n,!0,o,null,b);break;case"together":Cp(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function ua(t,n,o){if(t!==null&&(n.dependencies=t.dependencies),ii|=n.lanes,(o&n.childLanes)===0)if(t!==null){if(Cs(t,n,o,!1),(o&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error(i(153));if(n.child!==null){for(t=n.child,o=ea(t,t.pendingProps),n.child=o,o.return=n;t.sibling!==null;)t=t.sibling,o=o.sibling=ea(t,t.pendingProps),o.return=n;o.sibling=null}return n.child}function Pp(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&gh(t)))}function M5(t,n,o){switch(n.tag){case 3:Ie(n,n.stateNode.containerInfo),Wa(n,Ht,t.memoizedState.cache),xs();break;case 27:case 5:_t(n);break;case 4:Ie(n,n.stateNode.containerInfo);break;case 10:Wa(n,n.type,n.memoizedProps.value);break;case 13:var d=n.memoizedState;if(d!==null)return d.dehydrated!==null?(Ja(n),n.flags|=128,null):(o&n.child.childLanes)!==0?O_(t,n,o):(Ja(n),t=ua(t,n,o),t!==null?t.sibling:null);Ja(n);break;case 19:var p=(t.flags&128)!==0;if(d=(o&n.childLanes)!==0,d||(Cs(t,n,o,!1),d=(o&n.childLanes)!==0),p){if(d)return A_(t,n,o);n.flags|=128}if(p=n.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),ue(Yt,Yt.current),d)break;return null;case 22:case 23:return n.lanes=0,b_(t,n,o);case 24:Wa(n,Ht,t.memoizedState.cache)}return ua(t,n,o)}function R_(t,n,o){if(t!==null)if(t.memoizedProps!==n.pendingProps)Jt=!0;else{if(!Pp(t,o)&&(n.flags&128)===0)return Jt=!1,M5(t,n,o);Jt=(t.flags&131072)!==0}else Jt=!1,nt&&(n.flags&1048576)!==0&&r1(n,bh,n.index);switch(n.lanes=0,n.tag){case 16:e:{t=n.pendingProps;var d=n.elementType,p=d._init;if(d=p(d._payload),n.type=d,typeof d=="function")Im(d)?(t=$i(d,t),n.tag=1,n=S_(null,n,d,t,o)):(n.tag=0,n=Ap(null,n,d,t,o));else{if(d!=null){if(p=d.$$typeof,p===j){n.tag=11,n=m_(null,n,d,t,o);break e}else if(p===U){n.tag=14,n=p_(null,n,d,t,o);break e}}throw n=de(d)||d,Error(i(306,n,""))}}return n;case 0:return Ap(t,n,n.type,n.pendingProps,o);case 1:return d=n.type,p=$i(d,n.pendingProps),S_(t,n,d,p,o);case 3:e:{if(Ie(n,n.stateNode.containerInfo),t===null)throw Error(i(387));d=n.pendingProps;var b=n.memoizedState;p=b.element,tp(t,n),Ls(n,d,null,o);var O=n.memoizedState;if(d=O.cache,Wa(n,Ht,d),d!==b.cache&&Qm(n,[Ht],o,!0),Vs(),d=O.element,b.isDehydrated)if(b={element:d,isDehydrated:!1,cache:O.cache},n.updateQueue.baseState=b,n.memoizedState=b,n.flags&256){n=w_(t,n,d,o);break e}else if(d!==p){p=ln(Error(i(424)),n),js(p),n=w_(t,n,d,o);break e}else{switch(t=n.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(xt=An(t.firstChild),xr=n,nt=!0,Li=null,Un=!0,o=a_(n,null,d,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(xs(),d===p){n=ua(t,n,o);break e}ir(t,n,d,o)}n=n.child}return n;case 26:return Lh(t,n),t===null?(o=jS(n.type,null,n.pendingProps,null))?n.memoizedState=o:nt||(o=n.type,t=n.pendingProps,d=Jh(we.current).createElement(o),d[ie]=n,d[ve]=t,ur(d,o,t),mt(d),n.stateNode=d):n.memoizedState=jS(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return _t(n),t===null&&nt&&(d=n.stateNode=TS(n.type,n.pendingProps,we.current),xr=n,Un=!0,p=xt,li(n.type)?(dy=p,xt=An(d.firstChild)):xt=p),ir(t,n,n.pendingProps.children,o),Lh(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&nt&&((p=d=xt)&&(d=r3(d,n.type,n.pendingProps,Un),d!==null?(n.stateNode=d,xr=n,xt=An(d.firstChild),Un=!1,p=!0):p=!1),p||Ui(n)),_t(n),p=n.type,b=n.pendingProps,O=t!==null?t.memoizedProps:null,d=b.children,sy(p,b)?d=null:O!==null&&sy(p,O)&&(n.flags|=32),n.memoizedState!==null&&(p=up(t,n,_5,null,null,o),ol._currentValue=p),Lh(t,n),ir(t,n,d,o),n.child;case 6:return t===null&&nt&&((t=o=xt)&&(o=n3(o,n.pendingProps,Un),o!==null?(n.stateNode=o,xr=n,xt=null,t=!0):t=!1),t||Ui(n)),null;case 13:return O_(t,n,o);case 4:return Ie(n,n.stateNode.containerInfo),d=n.pendingProps,t===null?n.child=gu(n,null,d,o):ir(t,n,d,o),n.child;case 11:return m_(t,n,n.type,n.pendingProps,o);case 7:return ir(t,n,n.pendingProps,o),n.child;case 8:return ir(t,n,n.pendingProps.children,o),n.child;case 12:return ir(t,n,n.pendingProps.children,o),n.child;case 10:return d=n.pendingProps,Wa(n,n.type,d.value),ir(t,n,d.children,o),n.child;case 9:return p=n.type._context,d=n.pendingProps.children,Ii(n),p=yr(p),d=d(p),n.flags|=1,ir(t,n,d,o),n.child;case 14:return p_(t,n,n.type,n.pendingProps,o);case 15:return y_(t,n,n.type,n.pendingProps,o);case 19:return A_(t,n,o);case 31:return d=n.pendingProps,o=n.mode,d={mode:d.mode,children:d.children},t===null?(o=Uh(d,o),o.ref=n.ref,n.child=o,o.return=n,n=o):(o=ea(t.child,d),o.ref=n.ref,n.child=o,o.return=n,n=o),n;case 22:return b_(t,n,o);case 24:return Ii(n),d=yr(Ht),t===null?(p=Zm(),p===null&&(p=pt,b=Xm(),p.pooledCache=b,b.refCount++,b!==null&&(p.pooledCacheLanes|=o),p=b),n.memoizedState={parent:d,cache:p},ep(n),Wa(n,Ht,p)):((t.lanes&o)!==0&&(tp(t,n),Ls(n,null,null,o),Vs()),p=t.memoizedState,b=n.memoizedState,p.parent!==d?(p={parent:d,cache:d},n.memoizedState=p,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=p),Wa(n,Ht,d)):(d=b.cache,Wa(n,Ht,d),d!==p.cache&&Qm(n,[Ht],o,!0))),ir(t,n,n.pendingProps.children,o),n.child;case 29:throw n.pendingProps}throw Error(i(156,n.tag))}function sa(t){t.flags|=4}function T_(t,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!kS(n)){if(n=hn.current,n!==null&&((Ze&4194048)===Ze?zn!==null:(Ze&62914560)!==Ze&&(Ze&536870912)===0||n!==zn))throw ks=Jm,c1;t.flags|=8192}}function zh(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?kn():536870912,t.lanes|=n,Ou|=n)}function Hs(t,n){if(!nt)switch(t.tailMode){case"hidden":n=t.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var d=null;o!==null;)o.alternate!==null&&(d=o),o=o.sibling;d===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:d.sibling=null}}function Ot(t){var n=t.alternate!==null&&t.alternate.child===t.child,o=0,d=0;if(n)for(var p=t.child;p!==null;)o|=p.lanes|p.childLanes,d|=p.subtreeFlags&65011712,d|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)o|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=d,t.childLanes=o,n}function x5(t,n,o){var d=n.pendingProps;switch(Hm(n),n.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ot(n),null;case 1:return Ot(n),null;case 3:return o=n.stateNode,d=null,t!==null&&(d=t.memoizedState.cache),n.memoizedState.cache!==d&&(n.flags|=2048),aa(Ht),et(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(Ms(n)?sa(n):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,i1())),Ot(n),null;case 26:return o=n.memoizedState,t===null?(sa(n),o!==null?(Ot(n),T_(n,o)):(Ot(n),n.flags&=-16777217)):o?o!==t.memoizedState?(sa(n),Ot(n),T_(n,o)):(Ot(n),n.flags&=-16777217):(t.memoizedProps!==d&&sa(n),Ot(n),n.flags&=-16777217),null;case 27:Rt(n),o=we.current;var p=n.type;if(t!==null&&n.stateNode!=null)t.memoizedProps!==d&&sa(n);else{if(!d){if(n.stateNode===null)throw Error(i(166));return Ot(n),null}t=ge.current,Ms(n)?n1(n):(t=TS(p,d,o),n.stateNode=t,sa(n))}return Ot(n),null;case 5:if(Rt(n),o=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==d&&sa(n);else{if(!d){if(n.stateNode===null)throw Error(i(166));return Ot(n),null}if(t=ge.current,Ms(n))n1(n);else{switch(p=Jh(we.current),t){case 1:t=p.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:t=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":t=p.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":t=p.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":t=p.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof d.is=="string"?p.createElement("select",{is:d.is}):p.createElement("select"),d.multiple?t.multiple=!0:d.size&&(t.size=d.size);break;default:t=typeof d.is=="string"?p.createElement(o,{is:d.is}):p.createElement(o)}}t[ie]=n,t[ve]=d;e:for(p=n.child;p!==null;){if(p.tag===5||p.tag===6)t.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===n)break e;for(;p.sibling===null;){if(p.return===null||p.return===n)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}n.stateNode=t;e:switch(ur(t,o,d),o){case"button":case"input":case"select":case"textarea":t=!!d.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&sa(n)}}return Ot(n),n.flags&=-16777217,null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==d&&sa(n);else{if(typeof d!="string"&&n.stateNode===null)throw Error(i(166));if(t=we.current,Ms(n)){if(t=n.stateNode,o=n.memoizedProps,d=null,p=xr,p!==null)switch(p.tag){case 27:case 5:d=p.memoizedProps}t[ie]=n,t=!!(t.nodeValue===o||d!==null&&d.suppressHydrationWarning===!0||_S(t.nodeValue,o)),t||Ui(n)}else t=Jh(t).createTextNode(d),t[ie]=n,n.stateNode=t}return Ot(n),null;case 13:if(d=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=Ms(n),d!==null&&d.dehydrated!==null){if(t===null){if(!p)throw Error(i(318));if(p=n.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[ie]=n}else xs(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Ot(n),p=!1}else p=i1(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return n.flags&256?(oa(n),n):(oa(n),null)}if(oa(n),(n.flags&128)!==0)return n.lanes=o,n;if(o=d!==null,t=t!==null&&t.memoizedState!==null,o){d=n.child,p=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(p=d.alternate.memoizedState.cachePool.pool);var b=null;d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(b=d.memoizedState.cachePool.pool),b!==p&&(d.flags|=2048)}return o!==t&&o&&(n.child.flags|=8192),zh(n,n.updateQueue),Ot(n),null;case 4:return et(),t===null&&ny(n.stateNode.containerInfo),Ot(n),null;case 10:return aa(n.type),Ot(n),null;case 19:if(me(Yt),p=n.memoizedState,p===null)return Ot(n),null;if(d=(n.flags&128)!==0,b=p.rendering,b===null)if(d)Hs(p,!1);else{if(jt!==0||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(b=kh(t),b!==null){for(n.flags|=128,Hs(p,!1),t=b.updateQueue,n.updateQueue=t,zh(n,t),n.subtreeFlags=0,t=o,o=n.child;o!==null;)t1(o,t),o=o.sibling;return ue(Yt,Yt.current&1|2),n.child}t=t.sibling}p.tail!==null&&yt()>Bh&&(n.flags|=128,d=!0,Hs(p,!1),n.lanes=4194304)}else{if(!d)if(t=kh(b),t!==null){if(n.flags|=128,d=!0,t=t.updateQueue,n.updateQueue=t,zh(n,t),Hs(p,!0),p.tail===null&&p.tailMode==="hidden"&&!b.alternate&&!nt)return Ot(n),null}else 2*yt()-p.renderingStartTime>Bh&&o!==536870912&&(n.flags|=128,d=!0,Hs(p,!1),n.lanes=4194304);p.isBackwards?(b.sibling=n.child,n.child=b):(t=p.last,t!==null?t.sibling=b:n.child=b,p.last=b)}return p.tail!==null?(n=p.tail,p.rendering=n,p.tail=n.sibling,p.renderingStartTime=yt(),n.sibling=null,t=Yt.current,ue(Yt,d?t&1|2:t&1),n):(Ot(n),null);case 22:case 23:return oa(n),ip(),d=n.memoizedState!==null,t!==null?t.memoizedState!==null!==d&&(n.flags|=8192):d&&(n.flags|=8192),d?(o&536870912)!==0&&(n.flags&128)===0&&(Ot(n),n.subtreeFlags&6&&(n.flags|=8192)):Ot(n),o=n.updateQueue,o!==null&&zh(n,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),d=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(d=n.memoizedState.cachePool.pool),d!==o&&(n.flags|=2048),t!==null&&me(Fi),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),aa(Ht),Ot(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function j5(t,n){switch(Hm(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 3:return aa(Ht),et(),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return Rt(n),null;case 13:if(oa(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error(i(340));xs()}return t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 19:return me(Yt),null;case 4:return et(),null;case 10:return aa(n.type),null;case 22:case 23:return oa(n),ip(),t!==null&&me(Fi),t=n.flags,t&65536?(n.flags=t&-65537|128,n):null;case 24:return aa(Ht),null;case 25:return null;default:return null}}function M_(t,n){switch(Hm(n),n.tag){case 3:aa(Ht),et();break;case 26:case 27:case 5:Rt(n);break;case 4:et();break;case 13:oa(n);break;case 19:me(Yt);break;case 10:aa(n.type);break;case 22:case 23:oa(n),ip(),t!==null&&me(Fi);break;case 24:aa(Ht)}}function Ys(t,n){try{var o=n.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var p=d.next;o=p;do{if((o.tag&t)===t){d=void 0;var b=o.create,O=o.inst;d=b(),O.destroy=d}o=o.next}while(o!==p)}}catch(A){ht(n,n.return,A)}}function ti(t,n,o){try{var d=n.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var b=p.next;d=b;do{if((d.tag&t)===t){var O=d.inst,A=O.destroy;if(A!==void 0){O.destroy=void 0,p=n;var P=o,W=A;try{W()}catch(se){ht(p,P,se)}}}d=d.next}while(d!==b)}}catch(se){ht(n,n.return,se)}}function x_(t){var n=t.updateQueue;if(n!==null){var o=t.stateNode;try{p1(n,o)}catch(d){ht(t,t.return,d)}}}function j_(t,n,o){o.props=$i(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount()}catch(d){ht(t,n,d)}}function Gs(t,n){try{var o=t.ref;if(o!==null){switch(t.tag){case 26:case 27:case 5:var d=t.stateNode;break;case 30:d=t.stateNode;break;default:d=t.stateNode}typeof o=="function"?t.refCleanup=o(d):o.current=d}}catch(p){ht(t,n,p)}}function In(t,n){var o=t.ref,d=t.refCleanup;if(o!==null)if(typeof d=="function")try{d()}catch(p){ht(t,n,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){ht(t,n,p)}else o.current=null}function C_(t){var n=t.type,o=t.memoizedProps,d=t.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":o.autoFocus&&d.focus();break e;case"img":o.src?d.src=o.src:o.srcSet&&(d.srcset=o.srcSet)}}catch(p){ht(t,t.return,p)}}function Dp(t,n,o){try{var d=t.stateNode;K5(d,t.type,o,n),d[ve]=n}catch(p){ht(t,t.return,p)}}function P_(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&li(t.type)||t.tag===4}function Np(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||P_(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&li(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function kp(t,n,o){var d=t.tag;if(d===5||d===6)t=t.stateNode,n?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,n):(n=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,n.appendChild(t),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=Zh));else if(d!==4&&(d===27&&li(t.type)&&(o=t.stateNode,n=null),t=t.child,t!==null))for(kp(t,n,o),t=t.sibling;t!==null;)kp(t,n,o),t=t.sibling}function Ih(t,n,o){var d=t.tag;if(d===5||d===6)t=t.stateNode,n?o.insertBefore(t,n):o.appendChild(t);else if(d!==4&&(d===27&&li(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(Ih(t,n,o),t=t.sibling;t!==null;)Ih(t,n,o),t=t.sibling}function D_(t){var n=t.stateNode,o=t.memoizedProps;try{for(var d=t.type,p=n.attributes;p.length;)n.removeAttributeNode(p[0]);ur(n,d,o),n[ie]=t,n[ve]=o}catch(b){ht(t,t.return,b)}}var la=!1,Nt=!1,qp=!1,N_=typeof WeakSet=="function"?WeakSet:Set,er=null;function C5(t,n){if(t=t.containerInfo,oy=iv,t=H0(t),Nm(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var d=o.getSelection&&o.getSelection();if(d&&d.rangeCount!==0){o=d.anchorNode;var p=d.anchorOffset,b=d.focusNode;d=d.focusOffset;try{o.nodeType,b.nodeType}catch{o=null;break e}var O=0,A=-1,P=-1,W=0,se=0,he=t,Q=null;t:for(;;){for(var K;he!==o||p!==0&&he.nodeType!==3||(A=O+p),he!==b||d!==0&&he.nodeType!==3||(P=O+d),he.nodeType===3&&(O+=he.nodeValue.length),(K=he.firstChild)!==null;)Q=he,he=K;for(;;){if(he===t)break t;if(Q===o&&++W===p&&(A=O),Q===b&&++se===d&&(P=O),(K=he.nextSibling)!==null)break;he=Q,Q=he.parentNode}he=K}o=A===-1||P===-1?null:{start:A,end:P}}else o=null}o=o||{start:0,end:0}}else o=null;for(uy={focusedElem:t,selectionRange:o},iv=!1,er=n;er!==null;)if(n=er,t=n.child,(n.subtreeFlags&1024)!==0&&t!==null)t.return=n,er=t;else for(;er!==null;){switch(n=er,b=n.alternate,t=n.flags,n.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&b!==null){t=void 0,o=n,p=b.memoizedProps,b=b.memoizedState,d=o.stateNode;try{var Ue=$i(o.type,p,o.elementType===o.type);t=d.getSnapshotBeforeUpdate(Ue,b),d.__reactInternalSnapshotBeforeUpdate=t}catch(Ne){ht(o,o.return,Ne)}}break;case 3:if((t&1024)!==0){if(t=n.stateNode.containerInfo,o=t.nodeType,o===9)cy(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":cy(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(i(163))}if(t=n.sibling,t!==null){t.return=n.return,er=t;break}er=n.return}}function k_(t,n,o){var d=o.flags;switch(o.tag){case 0:case 11:case 15:ri(t,o),d&4&&Ys(5,o);break;case 1:if(ri(t,o),d&4)if(t=o.stateNode,n===null)try{t.componentDidMount()}catch(O){ht(o,o.return,O)}else{var p=$i(o.type,n.memoizedProps);n=n.memoizedState;try{t.componentDidUpdate(p,n,t.__reactInternalSnapshotBeforeUpdate)}catch(O){ht(o,o.return,O)}}d&64&&x_(o),d&512&&Gs(o,o.return);break;case 3:if(ri(t,o),d&64&&(t=o.updateQueue,t!==null)){if(n=null,o.child!==null)switch(o.child.tag){case 27:case 5:n=o.child.stateNode;break;case 1:n=o.child.stateNode}try{p1(t,n)}catch(O){ht(o,o.return,O)}}break;case 27:n===null&&d&4&&D_(o);case 26:case 5:ri(t,o),n===null&&d&4&&C_(o),d&512&&Gs(o,o.return);break;case 12:ri(t,o);break;case 13:ri(t,o),d&4&&L_(t,o),d&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=z5.bind(null,o),a3(t,o))));break;case 22:if(d=o.memoizedState!==null||la,!d){n=n!==null&&n.memoizedState!==null||Nt,p=la;var b=Nt;la=d,(Nt=n)&&!b?ni(t,o,(o.subtreeFlags&8772)!==0):ri(t,o),la=p,Nt=b}break;case 30:break;default:ri(t,o)}}function q_(t){var n=t.alternate;n!==null&&(t.alternate=null,q_(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&Ut(n)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var gt=null,Ir=!1;function ca(t,n,o){for(o=o.child;o!==null;)V_(t,n,o),o=o.sibling}function V_(t,n,o){if(De&&typeof De.onCommitFiberUnmount=="function")try{De.onCommitFiberUnmount(Se,o)}catch{}switch(o.tag){case 26:Nt||In(o,n),ca(t,n,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Nt||In(o,n);var d=gt,p=Ir;li(o.type)&&(gt=o.stateNode,Ir=!1),ca(t,n,o),rl(o.stateNode),gt=d,Ir=p;break;case 5:Nt||In(o,n);case 6:if(d=gt,p=Ir,gt=null,ca(t,n,o),gt=d,Ir=p,gt!==null)if(Ir)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(o.stateNode)}catch(b){ht(o,n,b)}else try{gt.removeChild(o.stateNode)}catch(b){ht(o,n,b)}break;case 18:gt!==null&&(Ir?(t=gt,AS(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),cl(t)):AS(gt,o.stateNode));break;case 4:d=gt,p=Ir,gt=o.stateNode.containerInfo,Ir=!0,ca(t,n,o),gt=d,Ir=p;break;case 0:case 11:case 14:case 15:Nt||ti(2,o,n),Nt||ti(4,o,n),ca(t,n,o);break;case 1:Nt||(In(o,n),d=o.stateNode,typeof d.componentWillUnmount=="function"&&j_(o,n,d)),ca(t,n,o);break;case 21:ca(t,n,o);break;case 22:Nt=(d=Nt)||o.memoizedState!==null,ca(t,n,o),Nt=d;break;default:ca(t,n,o)}}function L_(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{cl(t)}catch(o){ht(n,n.return,o)}}function P5(t){switch(t.tag){case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new N_),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new N_),n;default:throw Error(i(435,t.tag))}}function Vp(t,n){var o=P5(t);n.forEach(function(d){var p=I5.bind(null,t,d);o.has(d)||(o.add(d),d.then(p,p))})}function Kr(t,n){var o=n.deletions;if(o!==null)for(var d=0;d<o.length;d++){var p=o[d],b=t,O=n,A=O;e:for(;A!==null;){switch(A.tag){case 27:if(li(A.type)){gt=A.stateNode,Ir=!1;break e}break;case 5:gt=A.stateNode,Ir=!1;break e;case 3:case 4:gt=A.stateNode.containerInfo,Ir=!0;break e}A=A.return}if(gt===null)throw Error(i(160));V_(b,O,p),gt=null,Ir=!1,b=p.alternate,b!==null&&(b.return=null),p.return=null}if(n.subtreeFlags&13878)for(n=n.child;n!==null;)U_(n,t),n=n.sibling}var En=null;function U_(t,n){var o=t.alternate,d=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Kr(n,t),Zr(t),d&4&&(ti(3,t,t.return),Ys(3,t),ti(5,t,t.return));break;case 1:Kr(n,t),Zr(t),d&512&&(Nt||o===null||In(o,o.return)),d&64&&la&&(t=t.updateQueue,t!==null&&(d=t.callbacks,d!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?d:o.concat(d))));break;case 26:var p=En;if(Kr(n,t),Zr(t),d&512&&(Nt||o===null||In(o,o.return)),d&4){var b=o!==null?o.memoizedState:null;if(d=t.memoizedState,o===null)if(d===null)if(t.stateNode===null){e:{d=t.type,o=t.memoizedProps,p=p.ownerDocument||p;t:switch(d){case"title":b=p.getElementsByTagName("title")[0],(!b||b[Zt]||b[ie]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=p.createElement(d),p.head.insertBefore(b,p.querySelector("head > title"))),ur(b,d,o),b[ie]=t,mt(b),d=b;break e;case"link":var O=DS("link","href",p).get(d+(o.href||""));if(O){for(var A=0;A<O.length;A++)if(b=O[A],b.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&b.getAttribute("rel")===(o.rel==null?null:o.rel)&&b.getAttribute("title")===(o.title==null?null:o.title)&&b.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){O.splice(A,1);break t}}b=p.createElement(d),ur(b,d,o),p.head.appendChild(b);break;case"meta":if(O=DS("meta","content",p).get(d+(o.content||""))){for(A=0;A<O.length;A++)if(b=O[A],b.getAttribute("content")===(o.content==null?null:""+o.content)&&b.getAttribute("name")===(o.name==null?null:o.name)&&b.getAttribute("property")===(o.property==null?null:o.property)&&b.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&b.getAttribute("charset")===(o.charSet==null?null:o.charSet)){O.splice(A,1);break t}}b=p.createElement(d),ur(b,d,o),p.head.appendChild(b);break;default:throw Error(i(468,d))}b[ie]=t,mt(b),d=b}t.stateNode=d}else NS(p,t.type,t.stateNode);else t.stateNode=PS(p,d,t.memoizedProps);else b!==d?(b===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):b.count--,d===null?NS(p,t.type,t.stateNode):PS(p,d,t.memoizedProps)):d===null&&t.stateNode!==null&&Dp(t,t.memoizedProps,o.memoizedProps)}break;case 27:Kr(n,t),Zr(t),d&512&&(Nt||o===null||In(o,o.return)),o!==null&&d&4&&Dp(t,t.memoizedProps,o.memoizedProps);break;case 5:if(Kr(n,t),Zr(t),d&512&&(Nt||o===null||In(o,o.return)),t.flags&32){p=t.stateNode;try{Ba(p,"")}catch(K){ht(t,t.return,K)}}d&4&&t.stateNode!=null&&(p=t.memoizedProps,Dp(t,p,o!==null?o.memoizedProps:p)),d&1024&&(qp=!0);break;case 6:if(Kr(n,t),Zr(t),d&4){if(t.stateNode===null)throw Error(i(162));d=t.memoizedProps,o=t.stateNode;try{o.nodeValue=d}catch(K){ht(t,t.return,K)}}break;case 3:if(rv=null,p=En,En=ev(n.containerInfo),Kr(n,t),En=p,Zr(t),d&4&&o!==null&&o.memoizedState.isDehydrated)try{cl(n.containerInfo)}catch(K){ht(t,t.return,K)}qp&&(qp=!1,z_(t));break;case 4:d=En,En=ev(t.stateNode.containerInfo),Kr(n,t),Zr(t),En=d;break;case 12:Kr(n,t),Zr(t);break;case 13:Kr(n,t),Zr(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Bp=yt()),d&4&&(d=t.updateQueue,d!==null&&(t.updateQueue=null,Vp(t,d)));break;case 22:p=t.memoizedState!==null;var P=o!==null&&o.memoizedState!==null,W=la,se=Nt;if(la=W||p,Nt=se||P,Kr(n,t),Nt=se,la=W,Zr(t),d&8192)e:for(n=t.stateNode,n._visibility=p?n._visibility&-2:n._visibility|1,p&&(o===null||P||la||Nt||Hi(t)),o=null,n=t;;){if(n.tag===5||n.tag===26){if(o===null){P=o=n;try{if(b=P.stateNode,p)O=b.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{A=P.stateNode;var he=P.memoizedProps.style,Q=he!=null&&he.hasOwnProperty("display")?he.display:null;A.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(K){ht(P,P.return,K)}}}else if(n.tag===6){if(o===null){P=n;try{P.stateNode.nodeValue=p?"":P.memoizedProps}catch(K){ht(P,P.return,K)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;o===n&&(o=null),n=n.return}o===n&&(o=null),n.sibling.return=n.return,n=n.sibling}d&4&&(d=t.updateQueue,d!==null&&(o=d.retryQueue,o!==null&&(d.retryQueue=null,Vp(t,o))));break;case 19:Kr(n,t),Zr(t),d&4&&(d=t.updateQueue,d!==null&&(t.updateQueue=null,Vp(t,d)));break;case 30:break;case 21:break;default:Kr(n,t),Zr(t)}}function Zr(t){var n=t.flags;if(n&2){try{for(var o,d=t.return;d!==null;){if(P_(d)){o=d;break}d=d.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var p=o.stateNode,b=Np(t);Ih(t,b,p);break;case 5:var O=o.stateNode;o.flags&32&&(Ba(O,""),o.flags&=-33);var A=Np(t);Ih(t,A,O);break;case 3:case 4:var P=o.stateNode.containerInfo,W=Np(t);kp(t,W,P);break;default:throw Error(i(161))}}catch(se){ht(t,t.return,se)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function z_(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;z_(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function ri(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)k_(t,n.alternate,n),n=n.sibling}function Hi(t){for(t=t.child;t!==null;){var n=t;switch(n.tag){case 0:case 11:case 14:case 15:ti(4,n,n.return),Hi(n);break;case 1:In(n,n.return);var o=n.stateNode;typeof o.componentWillUnmount=="function"&&j_(n,n.return,o),Hi(n);break;case 27:rl(n.stateNode);case 26:case 5:In(n,n.return),Hi(n);break;case 22:n.memoizedState===null&&Hi(n);break;case 30:Hi(n);break;default:Hi(n)}t=t.sibling}}function ni(t,n,o){for(o=o&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var d=n.alternate,p=t,b=n,O=b.flags;switch(b.tag){case 0:case 11:case 15:ni(p,b,o),Ys(4,b);break;case 1:if(ni(p,b,o),d=b,p=d.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(W){ht(d,d.return,W)}if(d=b,p=d.updateQueue,p!==null){var A=d.stateNode;try{var P=p.shared.hiddenCallbacks;if(P!==null)for(p.shared.hiddenCallbacks=null,p=0;p<P.length;p++)m1(P[p],A)}catch(W){ht(d,d.return,W)}}o&&O&64&&x_(b),Gs(b,b.return);break;case 27:D_(b);case 26:case 5:ni(p,b,o),o&&d===null&&O&4&&C_(b),Gs(b,b.return);break;case 12:ni(p,b,o);break;case 13:ni(p,b,o),o&&O&4&&L_(p,b);break;case 22:b.memoizedState===null&&ni(p,b,o),Gs(b,b.return);break;case 30:break;default:ni(p,b,o)}n=n.sibling}}function Lp(t,n){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==o&&(t!=null&&t.refCount++,o!=null&&Ps(o))}function Up(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Ps(t))}function Fn(t,n,o,d){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)I_(t,n,o,d),n=n.sibling}function I_(t,n,o,d){var p=n.flags;switch(n.tag){case 0:case 11:case 15:Fn(t,n,o,d),p&2048&&Ys(9,n);break;case 1:Fn(t,n,o,d);break;case 3:Fn(t,n,o,d),p&2048&&(t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(n.refCount++,t!=null&&Ps(t)));break;case 12:if(p&2048){Fn(t,n,o,d),t=n.stateNode;try{var b=n.memoizedProps,O=b.id,A=b.onPostCommit;typeof A=="function"&&A(O,n.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(P){ht(n,n.return,P)}}else Fn(t,n,o,d);break;case 13:Fn(t,n,o,d);break;case 23:break;case 22:b=n.stateNode,O=n.alternate,n.memoizedState!==null?b._visibility&2?Fn(t,n,o,d):Ws(t,n):b._visibility&2?Fn(t,n,o,d):(b._visibility|=2,_u(t,n,o,d,(n.subtreeFlags&10256)!==0)),p&2048&&Lp(O,n);break;case 24:Fn(t,n,o,d),p&2048&&Up(n.alternate,n);break;default:Fn(t,n,o,d)}}function _u(t,n,o,d,p){for(p=p&&(n.subtreeFlags&10256)!==0,n=n.child;n!==null;){var b=t,O=n,A=o,P=d,W=O.flags;switch(O.tag){case 0:case 11:case 15:_u(b,O,A,P,p),Ys(8,O);break;case 23:break;case 22:var se=O.stateNode;O.memoizedState!==null?se._visibility&2?_u(b,O,A,P,p):Ws(b,O):(se._visibility|=2,_u(b,O,A,P,p)),p&&W&2048&&Lp(O.alternate,O);break;case 24:_u(b,O,A,P,p),p&&W&2048&&Up(O.alternate,O);break;default:_u(b,O,A,P,p)}n=n.sibling}}function Ws(t,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var o=t,d=n,p=d.flags;switch(d.tag){case 22:Ws(o,d),p&2048&&Lp(d.alternate,d);break;case 24:Ws(o,d),p&2048&&Up(d.alternate,d);break;default:Ws(o,d)}n=n.sibling}}var Qs=8192;function Su(t){if(t.subtreeFlags&Qs)for(t=t.child;t!==null;)F_(t),t=t.sibling}function F_(t){switch(t.tag){case 26:Su(t),t.flags&Qs&&t.memoizedState!==null&&y3(En,t.memoizedState,t.memoizedProps);break;case 5:Su(t);break;case 3:case 4:var n=En;En=ev(t.stateNode.containerInfo),Su(t),En=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Qs,Qs=16777216,Su(t),Qs=n):Su(t));break;default:Su(t)}}function B_(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function Xs(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var d=n[o];er=d,H_(d,t)}B_(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$_(t),t=t.sibling}function $_(t){switch(t.tag){case 0:case 11:case 15:Xs(t),t.flags&2048&&ti(9,t,t.return);break;case 3:Xs(t);break;case 12:Xs(t);break;case 22:var n=t.stateNode;t.memoizedState!==null&&n._visibility&2&&(t.return===null||t.return.tag!==13)?(n._visibility&=-3,Fh(t)):Xs(t);break;default:Xs(t)}}function Fh(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var d=n[o];er=d,H_(d,t)}B_(t)}for(t=t.child;t!==null;){switch(n=t,n.tag){case 0:case 11:case 15:ti(8,n,n.return),Fh(n);break;case 22:o=n.stateNode,o._visibility&2&&(o._visibility&=-3,Fh(n));break;default:Fh(n)}t=t.sibling}}function H_(t,n){for(;er!==null;){var o=er;switch(o.tag){case 0:case 11:case 15:ti(8,o,n);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var d=o.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:Ps(o.memoizedState.cache)}if(d=o.child,d!==null)d.return=o,er=d;else e:for(o=t;er!==null;){d=er;var p=d.sibling,b=d.return;if(q_(d),d===o){er=null;break e}if(p!==null){p.return=b,er=p;break e}er=b}}}var D5={getCacheForType:function(t){var n=yr(Ht),o=n.data.get(t);return o===void 0&&(o=t(),n.data.set(t,o)),o}},N5=typeof WeakMap=="function"?WeakMap:Map,ot=0,pt=null,We=null,Ze=0,ut=0,Jr=null,ai=!1,wu=!1,zp=!1,fa=0,jt=0,ii=0,Yi=0,Ip=0,vn=0,Ou=0,Ks=null,Fr=null,Fp=!1,Bp=0,Bh=1/0,$h=null,oi=null,or=0,ui=null,Eu=null,Au=0,$p=0,Hp=null,Y_=null,Zs=0,Yp=null;function en(){if((ot&2)!==0&&Ze!==0)return Ze&-Ze;if(C.T!==null){var t=du;return t!==0?t:Jp()}return ee()}function G_(){vn===0&&(vn=(Ze&536870912)===0||nt?ar():536870912);var t=hn.current;return t!==null&&(t.flags|=32),vn}function tn(t,n,o){(t===pt&&(ut===2||ut===9)||t.cancelPendingCommit!==null)&&(Ru(t,0),si(t,Ze,vn,!1)),qr(t,o),((ot&2)===0||t!==pt)&&(t===pt&&((ot&2)===0&&(Yi|=o),jt===4&&si(t,Ze,vn,!1)),Bn(t))}function W_(t,n,o){if((ot&6)!==0)throw Error(i(327));var d=!o&&(n&124)===0&&(n&t.expiredLanes)===0||Ar(t,n),p=d?V5(t,n):Qp(t,n,!0),b=d;do{if(p===0){wu&&!d&&si(t,n,0,!1);break}else{if(o=t.current.alternate,b&&!k5(o)){p=Qp(t,n,!1),b=!1;continue}if(p===2){if(b=n,t.errorRecoveryDisabledLanes&b)var O=0;else O=t.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){n=O;e:{var A=t;p=Ks;var P=A.current.memoizedState.isDehydrated;if(P&&(Ru(A,O).flags|=256),O=Qp(A,O,!1),O!==2){if(zp&&!P){A.errorRecoveryDisabledLanes|=b,Yi|=b,p=4;break e}b=Fr,Fr=p,b!==null&&(Fr===null?Fr=b:Fr.push.apply(Fr,b))}p=O}if(b=!1,p!==2)continue}}if(p===1){Ru(t,0),si(t,n,0,!0);break}e:{switch(d=t,b=p,b){case 0:case 1:throw Error(i(345));case 4:if((n&4194048)!==n)break;case 6:si(d,n,vn,!ai);break e;case 2:Fr=null;break;case 3:case 5:break;default:throw Error(i(329))}if((n&62914560)===n&&(p=Bp+300-yt(),10<p)){if(si(d,n,vn,!ai),hr(d,0,!0)!==0)break e;d.timeoutHandle=OS(Q_.bind(null,d,o,Fr,$h,Fp,n,vn,Yi,Ou,ai,b,2,-0,0),p);break e}Q_(d,o,Fr,$h,Fp,n,vn,Yi,Ou,ai,b,0,-0,0)}}break}while(!0);Bn(t)}function Q_(t,n,o,d,p,b,O,A,P,W,se,he,Q,K){if(t.timeoutHandle=-1,he=n.subtreeFlags,(he&8192||(he&16785408)===16785408)&&(il={stylesheets:null,count:0,unsuspend:p3},F_(n),he=b3(),he!==null)){t.cancelPendingCommit=he(rS.bind(null,t,n,b,o,d,p,O,A,P,se,1,Q,K)),si(t,b,O,!W);return}rS(t,n,b,o,d,p,O,A,P)}function k5(t){for(var n=t;;){var o=n.tag;if((o===0||o===11||o===15)&&n.flags&16384&&(o=n.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var d=0;d<o.length;d++){var p=o[d],b=p.getSnapshot;p=p.value;try{if(!Qr(b(),p))return!1}catch{return!1}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function si(t,n,o,d){n&=~Ip,n&=~Yi,t.suspendedLanes|=n,t.pingedLanes&=~n,d&&(t.warmLanes|=n),d=t.expirationTimes;for(var p=n;0<p;){var b=31-Xe(p),O=1<<b;d[b]=-1,p&=~O}o!==0&&qe(t,o,n)}function Hh(){return(ot&6)===0?(Js(0),!1):!0}function Gp(){if(We!==null){if(ut===0)var t=We.return;else t=We,na=zi=null,cp(t),bu=null,Bs=0,t=We;for(;t!==null;)M_(t.alternate,t),t=t.return;We=null}}function Ru(t,n){var o=t.timeoutHandle;o!==-1&&(t.timeoutHandle=-1,J5(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),Gp(),pt=t,We=o=ea(t.current,null),Ze=n,ut=0,Jr=null,ai=!1,wu=Ar(t,n),zp=!1,Ou=vn=Ip=Yi=ii=jt=0,Fr=Ks=null,Fp=!1,(n&8)!==0&&(n|=n&32);var d=t.entangledLanes;if(d!==0)for(t=t.entanglements,d&=n;0<d;){var p=31-Xe(d),b=1<<p;n|=t[p],d&=~b}return fa=n,hh(),o}function X_(t,n){He=null,C.H=Ph,n===Ns||n===wh?(n=h1(),ut=3):n===c1?(n=h1(),ut=4):ut=n===v_?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Jr=n,We===null&&(jt=1,Vh(t,ln(n,t.current)))}function K_(){var t=C.H;return C.H=Ph,t===null?Ph:t}function Z_(){var t=C.A;return C.A=D5,t}function Wp(){jt=4,ai||(Ze&4194048)!==Ze&&hn.current!==null||(wu=!0),(ii&134217727)===0&&(Yi&134217727)===0||pt===null||si(pt,Ze,vn,!1)}function Qp(t,n,o){var d=ot;ot|=2;var p=K_(),b=Z_();(pt!==t||Ze!==n)&&($h=null,Ru(t,n)),n=!1;var O=jt;e:do try{if(ut!==0&&We!==null){var A=We,P=Jr;switch(ut){case 8:Gp(),O=6;break e;case 3:case 2:case 9:case 6:hn.current===null&&(n=!0);var W=ut;if(ut=0,Jr=null,Tu(t,A,P,W),o&&wu){O=0;break e}break;default:W=ut,ut=0,Jr=null,Tu(t,A,P,W)}}q5(),O=jt;break}catch(se){X_(t,se)}while(!0);return n&&t.shellSuspendCounter++,na=zi=null,ot=d,C.H=p,C.A=b,We===null&&(pt=null,Ze=0,hh()),O}function q5(){for(;We!==null;)J_(We)}function V5(t,n){var o=ot;ot|=2;var d=K_(),p=Z_();pt!==t||Ze!==n?($h=null,Bh=yt()+500,Ru(t,n)):wu=Ar(t,n);e:do try{if(ut!==0&&We!==null){n=We;var b=Jr;t:switch(ut){case 1:ut=0,Jr=null,Tu(t,n,b,1);break;case 2:case 9:if(f1(b)){ut=0,Jr=null,eS(n);break}n=function(){ut!==2&&ut!==9||pt!==t||(ut=7),Bn(t)},b.then(n,n);break e;case 3:ut=7;break e;case 4:ut=5;break e;case 7:f1(b)?(ut=0,Jr=null,eS(n)):(ut=0,Jr=null,Tu(t,n,b,7));break;case 5:var O=null;switch(We.tag){case 26:O=We.memoizedState;case 5:case 27:var A=We;if(!O||kS(O)){ut=0,Jr=null;var P=A.sibling;if(P!==null)We=P;else{var W=A.return;W!==null?(We=W,Yh(W)):We=null}break t}}ut=0,Jr=null,Tu(t,n,b,5);break;case 6:ut=0,Jr=null,Tu(t,n,b,6);break;case 8:Gp(),jt=6;break e;default:throw Error(i(462))}}L5();break}catch(se){X_(t,se)}while(!0);return na=zi=null,C.H=d,C.A=p,ot=o,We!==null?0:(pt=null,Ze=0,hh(),jt)}function L5(){for(;We!==null&&!kr();)J_(We)}function J_(t){var n=R_(t.alternate,t,fa);t.memoizedProps=t.pendingProps,n===null?Yh(t):We=n}function eS(t){var n=t,o=n.alternate;switch(n.tag){case 15:case 0:n=__(o,n,n.pendingProps,n.type,void 0,Ze);break;case 11:n=__(o,n,n.pendingProps,n.type.render,n.ref,Ze);break;case 5:cp(n);default:M_(o,n),n=We=t1(n,fa),n=R_(o,n,fa)}t.memoizedProps=t.pendingProps,n===null?Yh(t):We=n}function Tu(t,n,o,d){na=zi=null,cp(n),bu=null,Bs=0;var p=n.return;try{if(T5(t,p,n,o,Ze)){jt=1,Vh(t,ln(o,t.current)),We=null;return}}catch(b){if(p!==null)throw We=p,b;jt=1,Vh(t,ln(o,t.current)),We=null;return}n.flags&32768?(nt||d===1?t=!0:wu||(Ze&536870912)!==0?t=!1:(ai=t=!0,(d===2||d===9||d===3||d===6)&&(d=hn.current,d!==null&&d.tag===13&&(d.flags|=16384))),tS(n,t)):Yh(n)}function Yh(t){var n=t;do{if((n.flags&32768)!==0){tS(n,ai);return}t=n.return;var o=x5(n.alternate,n,fa);if(o!==null){We=o;return}if(n=n.sibling,n!==null){We=n;return}We=n=t}while(n!==null);jt===0&&(jt=5)}function tS(t,n){do{var o=j5(t.alternate,t);if(o!==null){o.flags&=32767,We=o;return}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!n&&(t=t.sibling,t!==null)){We=t;return}We=t=o}while(t!==null);jt=6,We=null}function rS(t,n,o,d,p,b,O,A,P){t.cancelPendingCommit=null;do Gh();while(or!==0);if((ot&6)!==0)throw Error(i(327));if(n!==null){if(n===t.current)throw Error(i(177));if(b=n.lanes|n.childLanes,b|=Um,qn(t,o,b,O,A,P),t===pt&&(We=pt=null,Ze=0),Eu=n,ui=t,Au=o,$p=b,Hp=p,Y_=d,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,F5(G,function(){return uS(),null})):(t.callbackNode=null,t.callbackPriority=0),d=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||d){d=C.T,C.T=null,p=te.p,te.p=2,O=ot,ot|=4;try{C5(t,n,o)}finally{ot=O,te.p=p,C.T=d}}or=1,nS(),aS(),iS()}}function nS(){if(or===1){or=0;var t=ui,n=Eu,o=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||o){o=C.T,C.T=null;var d=te.p;te.p=2;var p=ot;ot|=4;try{U_(n,t);var b=uy,O=H0(t.containerInfo),A=b.focusedElem,P=b.selectionRange;if(O!==A&&A&&A.ownerDocument&&$0(A.ownerDocument.documentElement,A)){if(P!==null&&Nm(A)){var W=P.start,se=P.end;if(se===void 0&&(se=W),"selectionStart"in A)A.selectionStart=W,A.selectionEnd=Math.min(se,A.value.length);else{var he=A.ownerDocument||document,Q=he&&he.defaultView||window;if(Q.getSelection){var K=Q.getSelection(),Ue=A.textContent.length,Ne=Math.min(P.start,Ue),ft=P.end===void 0?Ne:Math.min(P.end,Ue);!K.extend&&Ne>ft&&(O=ft,ft=Ne,Ne=O);var B=B0(A,Ne),L=B0(A,ft);if(B&&L&&(K.rangeCount!==1||K.anchorNode!==B.node||K.anchorOffset!==B.offset||K.focusNode!==L.node||K.focusOffset!==L.offset)){var H=he.createRange();H.setStart(B.node,B.offset),K.removeAllRanges(),Ne>ft?(K.addRange(H),K.extend(L.node,L.offset)):(H.setEnd(L.node,L.offset),K.addRange(H))}}}}for(he=[],K=A;K=K.parentNode;)K.nodeType===1&&he.push({element:K,left:K.scrollLeft,top:K.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<he.length;A++){var fe=he[A];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}iv=!!oy,uy=oy=null}finally{ot=p,te.p=d,C.T=o}}t.current=n,or=2}}function aS(){if(or===2){or=0;var t=ui,n=Eu,o=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||o){o=C.T,C.T=null;var d=te.p;te.p=2;var p=ot;ot|=4;try{k_(t,n.alternate,n)}finally{ot=p,te.p=d,C.T=o}}or=3}}function iS(){if(or===4||or===3){or=0,Yr();var t=ui,n=Eu,o=Au,d=Y_;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?or=5:(or=0,Eu=ui=null,oS(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(oi=null),ne(o),n=n.stateNode,De&&typeof De.onCommitFiberRoot=="function")try{De.onCommitFiberRoot(Se,n,void 0,(n.current.flags&128)===128)}catch{}if(d!==null){n=C.T,p=te.p,te.p=2,C.T=null;try{for(var b=t.onRecoverableError,O=0;O<d.length;O++){var A=d[O];b(A.value,{componentStack:A.stack})}}finally{C.T=n,te.p=p}}(Au&3)!==0&&Gh(),Bn(t),p=t.pendingLanes,(o&4194090)!==0&&(p&42)!==0?t===Yp?Zs++:(Zs=0,Yp=t):Zs=0,Js(0)}}function oS(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,Ps(n)))}function Gh(t){return nS(),aS(),iS(),uS()}function uS(){if(or!==5)return!1;var t=ui,n=$p;$p=0;var o=ne(Au),d=C.T,p=te.p;try{te.p=32>o?32:o,C.T=null,o=Hp,Hp=null;var b=ui,O=Au;if(or=0,Eu=ui=null,Au=0,(ot&6)!==0)throw Error(i(331));var A=ot;if(ot|=4,$_(b.current),I_(b,b.current,O,o),ot=A,Js(0,!1),De&&typeof De.onPostCommitFiberRoot=="function")try{De.onPostCommitFiberRoot(Se,b)}catch{}return!0}finally{te.p=p,C.T=d,oS(t,n)}}function sS(t,n,o){n=ln(o,n),n=Ep(t.stateNode,n,2),t=Ka(t,n,2),t!==null&&(qr(t,2),Bn(t))}function ht(t,n,o){if(t.tag===3)sS(t,t,o);else for(;n!==null;){if(n.tag===3){sS(n,t,o);break}else if(n.tag===1){var d=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(oi===null||!oi.has(d))){t=ln(o,t),o=d_(2),d=Ka(n,o,2),d!==null&&(h_(o,d,n,t),qr(d,2),Bn(d));break}}n=n.return}}function Xp(t,n,o){var d=t.pingCache;if(d===null){d=t.pingCache=new N5;var p=new Set;d.set(n,p)}else p=d.get(n),p===void 0&&(p=new Set,d.set(n,p));p.has(o)||(zp=!0,p.add(o),t=U5.bind(null,t,n,o),n.then(t,t))}function U5(t,n,o){var d=t.pingCache;d!==null&&d.delete(n),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,pt===t&&(Ze&o)===o&&(jt===4||jt===3&&(Ze&62914560)===Ze&&300>yt()-Bp?(ot&2)===0&&Ru(t,0):Ip|=o,Ou===Ze&&(Ou=0)),Bn(t)}function lS(t,n){n===0&&(n=kn()),t=su(t,n),t!==null&&(qr(t,n),Bn(t))}function z5(t){var n=t.memoizedState,o=0;n!==null&&(o=n.retryLane),lS(t,o)}function I5(t,n){var o=0;switch(t.tag){case 13:var d=t.stateNode,p=t.memoizedState;p!==null&&(o=p.retryLane);break;case 19:d=t.stateNode;break;case 22:d=t.stateNode._retryCache;break;default:throw Error(i(314))}d!==null&&d.delete(n),lS(t,o)}function F5(t,n){return Nr(t,n)}var Wh=null,Mu=null,Kp=!1,Qh=!1,Zp=!1,Gi=0;function Bn(t){t!==Mu&&t.next===null&&(Mu===null?Wh=Mu=t:Mu=Mu.next=t),Qh=!0,Kp||(Kp=!0,$5())}function Js(t,n){if(!Zp&&Qh){Zp=!0;do for(var o=!1,d=Wh;d!==null;){if(t!==0){var p=d.pendingLanes;if(p===0)var b=0;else{var O=d.suspendedLanes,A=d.pingedLanes;b=(1<<31-Xe(42|t)+1)-1,b&=p&~(O&~A),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(o=!0,hS(d,b))}else b=Ze,b=hr(d,d===pt?b:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(b&3)===0||Ar(d,b)||(o=!0,hS(d,b));d=d.next}while(o);Zp=!1}}function B5(){cS()}function cS(){Qh=Kp=!1;var t=0;Gi!==0&&(Z5()&&(t=Gi),Gi=0);for(var n=yt(),o=null,d=Wh;d!==null;){var p=d.next,b=fS(d,n);b===0?(d.next=null,o===null?Wh=p:o.next=p,p===null&&(Mu=o)):(o=d,(t!==0||(b&3)!==0)&&(Qh=!0)),d=p}Js(t)}function fS(t,n){for(var o=t.suspendedLanes,d=t.pingedLanes,p=t.expirationTimes,b=t.pendingLanes&-62914561;0<b;){var O=31-Xe(b),A=1<<O,P=p[O];P===-1?((A&o)===0||(A&d)!==0)&&(p[O]=Rr(A,n)):P<=n&&(t.expiredLanes|=A),b&=~A}if(n=pt,o=Ze,o=hr(t,t===n?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),d=t.callbackNode,o===0||t===n&&(ut===2||ut===9)||t.cancelPendingCommit!==null)return d!==null&&d!==null&&tt(d),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||Ar(t,o)){if(n=o&-o,n===t.callbackPriority)return n;switch(d!==null&&tt(d),ne(o)){case 2:case 8:o=q;break;case 32:o=G;break;case 268435456:o=_e;break;default:o=G}return d=dS.bind(null,t),o=Nr(o,d),t.callbackPriority=n,t.callbackNode=o,n}return d!==null&&d!==null&&tt(d),t.callbackPriority=2,t.callbackNode=null,2}function dS(t,n){if(or!==0&&or!==5)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(Gh()&&t.callbackNode!==o)return null;var d=Ze;return d=hr(t,t===pt?d:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),d===0?null:(W_(t,d,n),fS(t,yt()),t.callbackNode!=null&&t.callbackNode===o?dS.bind(null,t):null)}function hS(t,n){if(Gh())return null;W_(t,n,!0)}function $5(){e3(function(){(ot&6)!==0?Nr(Tt,B5):cS()})}function Jp(){return Gi===0&&(Gi=ar()),Gi}function vS(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Zo(""+t)}function mS(t,n){var o=n.ownerDocument.createElement("input");return o.name=n.name,o.value=n.value,t.id&&o.setAttribute("form",t.id),n.parentNode.insertBefore(o,n),t=new FormData(t),o.parentNode.removeChild(o),t}function H5(t,n,o,d,p){if(n==="submit"&&o&&o.stateNode===p){var b=vS((p[ve]||null).action),O=d.submitter;O&&(n=(n=O[ve]||null)?vS(n.formAction):O.getAttribute("formAction"),n!==null&&(b=n,O=null));var A=new ru("action","action",null,d,p);t.push({event:A,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Gi!==0){var P=O?mS(p,O):new FormData(p);gp(o,{pending:!0,data:P,method:p.method,action:b},null,P)}}else typeof b=="function"&&(A.preventDefault(),P=O?mS(p,O):new FormData(p),gp(o,{pending:!0,data:P,method:p.method,action:b},b,P))},currentTarget:p}]})}}for(var ey=0;ey<Lm.length;ey++){var ty=Lm[ey],Y5=ty.toLowerCase(),G5=ty[0].toUpperCase()+ty.slice(1);On(Y5,"on"+G5)}On(W0,"onAnimationEnd"),On(Q0,"onAnimationIteration"),On(X0,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(c5,"onTransitionRun"),On(f5,"onTransitionStart"),On(d5,"onTransitionCancel"),On(K0,"onTransitionEnd"),Mr("onMouseEnter",["mouseout","mouseover"]),Mr("onMouseLeave",["mouseout","mouseover"]),Mr("onPointerEnter",["pointerout","pointerover"]),Mr("onPointerLeave",["pointerout","pointerover"]),vr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vr("onBeforeInput",["compositionend","keypress","textInput","paste"]),vr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var el="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(" "),W5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(el));function pS(t,n){n=(n&4)!==0;for(var o=0;o<t.length;o++){var d=t[o],p=d.event;d=d.listeners;e:{var b=void 0;if(n)for(var O=d.length-1;0<=O;O--){var A=d[O],P=A.instance,W=A.currentTarget;if(A=A.listener,P!==b&&p.isPropagationStopped())break e;b=A,p.currentTarget=W;try{b(p)}catch(se){qh(se)}p.currentTarget=null,b=P}else for(O=0;O<d.length;O++){if(A=d[O],P=A.instance,W=A.currentTarget,A=A.listener,P!==b&&p.isPropagationStopped())break e;b=A,p.currentTarget=W;try{b(p)}catch(se){qh(se)}p.currentTarget=null,b=P}}}}function Qe(t,n){var o=n[Le];o===void 0&&(o=n[Le]=new Set);var d=t+"__bubble";o.has(d)||(yS(n,t,2,!1),o.add(d))}function ry(t,n,o){var d=0;n&&(d|=4),yS(o,t,d,n)}var Xh="_reactListening"+Math.random().toString(36).slice(2);function ny(t){if(!t[Xh]){t[Xh]=!0,st.forEach(function(o){o!=="selectionchange"&&(W5.has(o)||ry(o,!1,t),ry(o,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[Xh]||(n[Xh]=!0,ry("selectionchange",!1,n))}}function yS(t,n,o,d){switch(IS(n)){case 2:var p=S3;break;case 8:p=w3;break;default:p=yy}o=p.bind(null,n,o,t),p=void 0,!gs||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(p=!0),d?p!==void 0?t.addEventListener(n,o,{capture:!0,passive:p}):t.addEventListener(n,o,!0):p!==void 0?t.addEventListener(n,o,{passive:p}):t.addEventListener(n,o,!1)}function ay(t,n,o,d,p){var b=d;if((n&1)===0&&(n&2)===0&&d!==null)e:for(;;){if(d===null)return;var O=d.tag;if(O===3||O===4){var A=d.stateNode.containerInfo;if(A===p)break;if(O===4)for(O=d.return;O!==null;){var P=O.tag;if((P===3||P===4)&&O.stateNode.containerInfo===p)return;O=O.return}for(;A!==null;){if(O=wt(A),O===null)return;if(P=O.tag,P===5||P===6||P===26||P===27){d=b=O;continue e}A=A.parentNode}}d=d.return}sh(function(){var W=b,se=ys(o),he=[];e:{var Q=Z0.get(t);if(Q!==void 0){var K=ru,Ue=t;switch(t){case"keypress":if(eu(o)===0)break e;case"keydown":case"keyup":K=FD;break;case"focusin":Ue="focus",K=Wr;break;case"focusout":Ue="blur",K=Wr;break;case"beforeblur":case"afterblur":K=Wr;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":K=fh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Ya;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=HD;break;case W0:case Q0:case X0:K=DD;break;case K0:K=GD;break;case"scroll":case"scrollend":K=Mm;break;case"wheel":K=QD;break;case"copy":case"cut":case"paste":K=kD;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=x0;break;case"toggle":case"beforetoggle":K=KD}var Ne=(n&4)!==0,ft=!Ne&&(t==="scroll"||t==="scrollend"),B=Ne?Q!==null?Q+"Capture":null:Q;Ne=[];for(var L=W,H;L!==null;){var fe=L;if(H=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||H===null||B===null||(fe=xi(L,B),fe!=null&&Ne.push(tl(L,fe,H))),ft)break;L=L.return}0<Ne.length&&(Q=new K(Q,Ue,null,o,se),he.push({event:Q,listeners:Ne}))}}if((n&7)===0){e:{if(Q=t==="mouseover"||t==="pointerover",K=t==="mouseout"||t==="pointerout",Q&&o!==ps&&(Ue=o.relatedTarget||o.fromElement)&&(wt(Ue)||Ue[Me]))break e;if((K||Q)&&(Q=se.window===se?se:(Q=se.ownerDocument)?Q.defaultView||Q.parentWindow:window,K?(Ue=o.relatedTarget||o.toElement,K=W,Ue=Ue?wt(Ue):null,Ue!==null&&(ft=s(Ue),Ne=Ue.tag,Ue!==ft||Ne!==5&&Ne!==27&&Ne!==6)&&(Ue=null)):(K=null,Ue=W),K!==Ue)){if(Ne=fh,fe="onMouseLeave",B="onMouseEnter",L="mouse",(t==="pointerout"||t==="pointerover")&&(Ne=x0,fe="onPointerLeave",B="onPointerEnter",L="pointer"),ft=K==null?Q:$t(K),H=Ue==null?Q:$t(Ue),Q=new Ne(fe,L+"leave",K,o,se),Q.target=ft,Q.relatedTarget=H,fe=null,wt(se)===W&&(Ne=new Ne(B,L+"enter",Ue,o,se),Ne.target=H,Ne.relatedTarget=ft,fe=Ne),ft=fe,K&&Ue)t:{for(Ne=K,B=Ue,L=0,H=Ne;H;H=xu(H))L++;for(H=0,fe=B;fe;fe=xu(fe))H++;for(;0<L-H;)Ne=xu(Ne),L--;for(;0<H-L;)B=xu(B),H--;for(;L--;){if(Ne===B||B!==null&&Ne===B.alternate)break t;Ne=xu(Ne),B=xu(B)}Ne=null}else Ne=null;K!==null&&bS(he,Q,K,Ne,!1),Ue!==null&&ft!==null&&bS(he,ft,Ue,Ne,!0)}}e:{if(Q=W?$t(W):window,K=Q.nodeName&&Q.nodeName.toLowerCase(),K==="select"||K==="input"&&Q.type==="file")var Ae=V0;else if(k0(Q))if(L0)Ae=u5;else{Ae=i5;var Ge=a5}else K=Q.nodeName,!K||K.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?W&&ms(W.elementType)&&(Ae=V0):Ae=o5;if(Ae&&(Ae=Ae(t,W))){q0(he,Ae,o,se);break e}Ge&&Ge(t,Q,W),t==="focusout"&&W&&Q.type==="number"&&W.memoizedProps.value!=null&&vs(Q,"number",Q.value)}switch(Ge=W?$t(W):window,t){case"focusin":(k0(Ge)||Ge.contentEditable==="true")&&(iu=Ge,km=W,Ts=null);break;case"focusout":Ts=km=iu=null;break;case"mousedown":qm=!0;break;case"contextmenu":case"mouseup":case"dragend":qm=!1,Y0(he,o,se);break;case"selectionchange":if(l5)break;case"keydown":case"keyup":Y0(he,o,se)}var Ce;if(Cm)e:{switch(t){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else au?D0(t,o)&&(ke="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(ke="onCompositionStart");ke&&(j0&&o.locale!=="ko"&&(au||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&au&&(Ce=lh()):(Ln=se,_s="value"in Ln?Ln.value:Ln.textContent,au=!0)),Ge=Kh(W,ke),0<Ge.length&&(ke=new M0(ke,t,null,o,se),he.push({event:ke,listeners:Ge}),Ce?ke.data=Ce:(Ce=N0(o),Ce!==null&&(ke.data=Ce)))),(Ce=JD?e5(t,o):t5(t,o))&&(ke=Kh(W,"onBeforeInput"),0<ke.length&&(Ge=new M0("onBeforeInput","beforeinput",null,o,se),he.push({event:Ge,listeners:ke}),Ge.data=Ce)),H5(he,t,W,o,se)}pS(he,n)})}function tl(t,n,o){return{instance:t,listener:n,currentTarget:o}}function Kh(t,n){for(var o=n+"Capture",d=[];t!==null;){var p=t,b=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||b===null||(p=xi(t,o),p!=null&&d.unshift(tl(t,p,b)),p=xi(t,n),p!=null&&d.push(tl(t,p,b))),t.tag===3)return d;t=t.return}return[]}function xu(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function bS(t,n,o,d,p){for(var b=n._reactName,O=[];o!==null&&o!==d;){var A=o,P=A.alternate,W=A.stateNode;if(A=A.tag,P!==null&&P===d)break;A!==5&&A!==26&&A!==27||W===null||(P=W,p?(W=xi(o,b),W!=null&&O.unshift(tl(o,W,P))):p||(W=xi(o,b),W!=null&&O.push(tl(o,W,P)))),o=o.return}O.length!==0&&t.push({event:n,listeners:O})}var Q5=/\r\n?/g,X5=/\u0000|\uFFFD/g;function gS(t){return(typeof t=="string"?t:""+t).replace(Q5,`
`).replace(X5,"")}function _S(t,n){return n=gS(n),gS(t)===n}function Zh(){}function ct(t,n,o,d,p,b){switch(o){case"children":typeof d=="string"?n==="body"||n==="textarea"&&d===""||Ba(t,d):(typeof d=="number"||typeof d=="bigint")&&n!=="body"&&Ba(t,""+d);break;case"className":za(t,"class",d);break;case"tabIndex":za(t,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":za(t,o,d);break;case"style":oh(t,d,b);break;case"data":if(n!=="object"){za(t,"data",d);break}case"src":case"href":if(d===""&&(n!=="a"||o!=="href")){t.removeAttribute(o);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){t.removeAttribute(o);break}d=Zo(""+d),t.setAttribute(o,d);break;case"action":case"formAction":if(typeof d=="function"){t.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(o==="formAction"?(n!=="input"&&ct(t,n,"name",p.name,p,null),ct(t,n,"formEncType",p.formEncType,p,null),ct(t,n,"formMethod",p.formMethod,p,null),ct(t,n,"formTarget",p.formTarget,p,null)):(ct(t,n,"encType",p.encType,p,null),ct(t,n,"method",p.method,p,null),ct(t,n,"target",p.target,p,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){t.removeAttribute(o);break}d=Zo(""+d),t.setAttribute(o,d);break;case"onClick":d!=null&&(t.onclick=Zh);break;case"onScroll":d!=null&&Qe("scroll",t);break;case"onScrollEnd":d!=null&&Qe("scrollend",t);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(o=d.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"multiple":t.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":t.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){t.removeAttribute("xlink:href");break}o=Zo(""+d),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?t.setAttribute(o,""+d):t.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":d===!0?t.setAttribute(o,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?t.setAttribute(o,d):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?t.setAttribute(o,d):t.removeAttribute(o);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?t.removeAttribute(o):t.setAttribute(o,d);break;case"popover":Qe("beforetoggle",t),Qe("toggle",t),Ua(t,"popover",d);break;case"xlinkActuate":Gr(t,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":Gr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":Gr(t,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":Gr(t,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":Gr(t,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":Gr(t,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":Gr(t,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":Gr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":Gr(t,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Ua(t,"is",d);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=Rm.get(o)||o,Ua(t,o,d))}}function iy(t,n,o,d,p,b){switch(o){case"style":oh(t,d,b);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(o=d.__html,o!=null){if(p.children!=null)throw Error(i(60));t.innerHTML=o}}break;case"children":typeof d=="string"?Ba(t,d):(typeof d=="number"||typeof d=="bigint")&&Ba(t,""+d);break;case"onScroll":d!=null&&Qe("scroll",t);break;case"onScrollEnd":d!=null&&Qe("scrollend",t);break;case"onClick":d!=null&&(t.onclick=Zh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tr.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),n=o.slice(2,p?o.length-7:void 0),b=t[ve]||null,b=b!=null?b[o]:null,typeof b=="function"&&t.removeEventListener(n,b,p),typeof d=="function")){typeof b!="function"&&b!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(n,d,p);break e}o in t?t[o]=d:d===!0?t.setAttribute(o,""):Ua(t,o,d)}}}function ur(t,n,o){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",t),Qe("load",t);var d=!1,p=!1,b;for(b in o)if(o.hasOwnProperty(b)){var O=o[b];if(O!=null)switch(b){case"src":d=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:ct(t,n,b,O,o,null)}}p&&ct(t,n,"srcSet",o.srcSet,o,null),d&&ct(t,n,"src",o.src,o,null);return;case"input":Qe("invalid",t);var A=b=O=p=null,P=null,W=null;for(d in o)if(o.hasOwnProperty(d)){var se=o[d];if(se!=null)switch(d){case"name":p=se;break;case"type":O=se;break;case"checked":P=se;break;case"defaultChecked":W=se;break;case"value":b=se;break;case"defaultValue":A=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(i(137,n));break;default:ct(t,n,d,se,o,null)}}rh(t,b,A,P,W,O,p,!1),Xo(t);return;case"select":Qe("invalid",t),d=O=b=null;for(p in o)if(o.hasOwnProperty(p)&&(A=o[p],A!=null))switch(p){case"value":b=A;break;case"defaultValue":O=A;break;case"multiple":d=A;default:ct(t,n,p,A,o,null)}n=b,o=O,t.multiple=!!d,n!=null?Fa(t,!!d,n,!1):o!=null&&Fa(t,!!d,o,!0);return;case"textarea":Qe("invalid",t),b=p=d=null;for(O in o)if(o.hasOwnProperty(O)&&(A=o[O],A!=null))switch(O){case"value":d=A;break;case"defaultValue":p=A;break;case"children":b=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(i(91));break;default:ct(t,n,O,A,o,null)}ah(t,d,p,b),Xo(t);return;case"option":for(P in o)if(o.hasOwnProperty(P)&&(d=o[P],d!=null))switch(P){case"selected":t.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:ct(t,n,P,d,o,null)}return;case"dialog":Qe("beforetoggle",t),Qe("toggle",t),Qe("cancel",t),Qe("close",t);break;case"iframe":case"object":Qe("load",t);break;case"video":case"audio":for(d=0;d<el.length;d++)Qe(el[d],t);break;case"image":Qe("error",t),Qe("load",t);break;case"details":Qe("toggle",t);break;case"embed":case"source":case"link":Qe("error",t),Qe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(W in o)if(o.hasOwnProperty(W)&&(d=o[W],d!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,n));default:ct(t,n,W,d,o,null)}return;default:if(ms(n)){for(se in o)o.hasOwnProperty(se)&&(d=o[se],d!==void 0&&iy(t,n,se,d,o,void 0));return}}for(A in o)o.hasOwnProperty(A)&&(d=o[A],d!=null&&ct(t,n,A,d,o,null))}function K5(t,n,o,d){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,b=null,O=null,A=null,P=null,W=null,se=null;for(K in o){var he=o[K];if(o.hasOwnProperty(K)&&he!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":P=he;default:d.hasOwnProperty(K)||ct(t,n,K,null,d,he)}}for(var Q in d){var K=d[Q];if(he=o[Q],d.hasOwnProperty(Q)&&(K!=null||he!=null))switch(Q){case"type":b=K;break;case"name":p=K;break;case"checked":W=K;break;case"defaultChecked":se=K;break;case"value":O=K;break;case"defaultValue":A=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,n));break;default:K!==he&&ct(t,n,Q,K,d,he)}}hs(t,O,A,P,W,se,b,p);return;case"select":K=O=A=Q=null;for(b in o)if(P=o[b],o.hasOwnProperty(b)&&P!=null)switch(b){case"value":break;case"multiple":K=P;default:d.hasOwnProperty(b)||ct(t,n,b,null,d,P)}for(p in d)if(b=d[p],P=o[p],d.hasOwnProperty(p)&&(b!=null||P!=null))switch(p){case"value":Q=b;break;case"defaultValue":A=b;break;case"multiple":O=b;default:b!==P&&ct(t,n,p,b,d,P)}n=A,o=O,d=K,Q!=null?Fa(t,!!o,Q,!1):!!d!=!!o&&(n!=null?Fa(t,!!o,n,!0):Fa(t,!!o,o?[]:"",!1));return;case"textarea":K=Q=null;for(A in o)if(p=o[A],o.hasOwnProperty(A)&&p!=null&&!d.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:ct(t,n,A,null,d,p)}for(O in d)if(p=d[O],b=o[O],d.hasOwnProperty(O)&&(p!=null||b!=null))switch(O){case"value":Q=p;break;case"defaultValue":K=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==b&&ct(t,n,O,p,d,b)}nh(t,Q,K);return;case"option":for(var Ue in o)if(Q=o[Ue],o.hasOwnProperty(Ue)&&Q!=null&&!d.hasOwnProperty(Ue))switch(Ue){case"selected":t.selected=!1;break;default:ct(t,n,Ue,null,d,Q)}for(P in d)if(Q=d[P],K=o[P],d.hasOwnProperty(P)&&Q!==K&&(Q!=null||K!=null))switch(P){case"selected":t.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:ct(t,n,P,Q,d,K)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ne in o)Q=o[Ne],o.hasOwnProperty(Ne)&&Q!=null&&!d.hasOwnProperty(Ne)&&ct(t,n,Ne,null,d,Q);for(W in d)if(Q=d[W],K=o[W],d.hasOwnProperty(W)&&Q!==K&&(Q!=null||K!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,n));break;default:ct(t,n,W,Q,d,K)}return;default:if(ms(n)){for(var ft in o)Q=o[ft],o.hasOwnProperty(ft)&&Q!==void 0&&!d.hasOwnProperty(ft)&&iy(t,n,ft,void 0,d,Q);for(se in d)Q=d[se],K=o[se],!d.hasOwnProperty(se)||Q===K||Q===void 0&&K===void 0||iy(t,n,se,Q,d,K);return}}for(var B in o)Q=o[B],o.hasOwnProperty(B)&&Q!=null&&!d.hasOwnProperty(B)&&ct(t,n,B,null,d,Q);for(he in d)Q=d[he],K=o[he],!d.hasOwnProperty(he)||Q===K||Q==null&&K==null||ct(t,n,he,Q,d,K)}var oy=null,uy=null;function Jh(t){return t.nodeType===9?t:t.ownerDocument}function SS(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function wS(t,n){if(t===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&n==="foreignObject"?0:t}function sy(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var ly=null;function Z5(){var t=window.event;return t&&t.type==="popstate"?t===ly?!1:(ly=t,!0):(ly=null,!1)}var OS=typeof setTimeout=="function"?setTimeout:void 0,J5=typeof clearTimeout=="function"?clearTimeout:void 0,ES=typeof Promise=="function"?Promise:void 0,e3=typeof queueMicrotask=="function"?queueMicrotask:typeof ES<"u"?function(t){return ES.resolve(null).then(t).catch(t3)}:OS;function t3(t){setTimeout(function(){throw t})}function li(t){return t==="head"}function AS(t,n){var o=n,d=0,p=0;do{var b=o.nextSibling;if(t.removeChild(o),b&&b.nodeType===8)if(o=b.data,o==="/$"){if(0<d&&8>d){o=d;var O=t.ownerDocument;if(o&1&&rl(O.documentElement),o&2&&rl(O.body),o&4)for(o=O.head,rl(o),O=o.firstChild;O;){var A=O.nextSibling,P=O.nodeName;O[Zt]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&O.rel.toLowerCase()==="stylesheet"||o.removeChild(O),O=A}}if(p===0){t.removeChild(b),cl(n);return}p--}else o==="$"||o==="$?"||o==="$!"?p++:d=o.charCodeAt(0)-48;else d=0;o=b}while(o);cl(n)}function cy(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var o=n;switch(n=n.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":cy(o),Ut(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function r3(t,n,o,d){for(;t.nodeType===1;){var p=o;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!d&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(d){if(!t[Zt])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(b=t.getAttribute("rel"),b==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(b!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(b=t.getAttribute("src"),(b!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&b&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){var b=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===b)return t}else return t;if(t=An(t.nextSibling),t===null)break}return null}function n3(t,n,o){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=An(t.nextSibling),t===null))return null;return t}function fy(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function a3(t,n){var o=t.ownerDocument;if(t.data!=="$?"||o.readyState==="complete")n();else{var d=function(){n(),o.removeEventListener("DOMContentLoaded",d)};o.addEventListener("DOMContentLoaded",d),t._reactRetry=d}}function An(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n==="$"||n==="$!"||n==="$?"||n==="F!"||n==="F")break;if(n==="/$")return null}}return t}var dy=null;function RS(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return t;n--}else o==="/$"&&n++}t=t.previousSibling}return null}function TS(t,n,o){switch(n=Jh(o),t){case"html":if(t=n.documentElement,!t)throw Error(i(452));return t;case"head":if(t=n.head,!t)throw Error(i(453));return t;case"body":if(t=n.body,!t)throw Error(i(454));return t;default:throw Error(i(451))}}function rl(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);Ut(t)}var mn=new Map,MS=new Set;function ev(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var da=te.d;te.d={f:i3,r:o3,D:u3,C:s3,L:l3,m:c3,X:d3,S:f3,M:h3};function i3(){var t=da.f(),n=Hh();return t||n}function o3(t){var n=Vr(t);n!==null&&n.tag===5&&n.type==="form"?W1(n):da.r(t)}var ju=typeof document>"u"?null:document;function xS(t,n,o){var d=ju;if(d&&typeof n=="string"&&n){var p=Ur(n);p='link[rel="'+t+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),MS.has(p)||(MS.add(p),t={rel:t,crossOrigin:o,href:n},d.querySelector(p)===null&&(n=d.createElement("link"),ur(n,"link",t),mt(n),d.head.appendChild(n)))}}function u3(t){da.D(t),xS("dns-prefetch",t,null)}function s3(t,n){da.C(t,n),xS("preconnect",t,n)}function l3(t,n,o){da.L(t,n,o);var d=ju;if(d&&t&&n){var p='link[rel="preload"][as="'+Ur(n)+'"]';n==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Ur(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Ur(o.imageSizes)+'"]')):p+='[href="'+Ur(t)+'"]';var b=p;switch(n){case"style":b=Cu(t);break;case"script":b=Pu(t)}mn.has(b)||(t=m({rel:"preload",href:n==="image"&&o&&o.imageSrcSet?void 0:t,as:n},o),mn.set(b,t),d.querySelector(p)!==null||n==="style"&&d.querySelector(nl(b))||n==="script"&&d.querySelector(al(b))||(n=d.createElement("link"),ur(n,"link",t),mt(n),d.head.appendChild(n)))}}function c3(t,n){da.m(t,n);var o=ju;if(o&&t){var d=n&&typeof n.as=="string"?n.as:"script",p='link[rel="modulepreload"][as="'+Ur(d)+'"][href="'+Ur(t)+'"]',b=p;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Pu(t)}if(!mn.has(b)&&(t=m({rel:"modulepreload",href:t},n),mn.set(b,t),o.querySelector(p)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(al(b)))return}d=o.createElement("link"),ur(d,"link",t),mt(d),o.head.appendChild(d)}}}function f3(t,n,o){da.S(t,n,o);var d=ju;if(d&&t){var p=Mt(d).hoistableStyles,b=Cu(t);n=n||"default";var O=p.get(b);if(!O){var A={loading:0,preload:null};if(O=d.querySelector(nl(b)))A.loading=5;else{t=m({rel:"stylesheet",href:t,"data-precedence":n},o),(o=mn.get(b))&&hy(t,o);var P=O=d.createElement("link");mt(P),ur(P,"link",t),P._p=new Promise(function(W,se){P.onload=W,P.onerror=se}),P.addEventListener("load",function(){A.loading|=1}),P.addEventListener("error",function(){A.loading|=2}),A.loading|=4,tv(O,n,d)}O={type:"stylesheet",instance:O,count:1,state:A},p.set(b,O)}}}function d3(t,n){da.X(t,n);var o=ju;if(o&&t){var d=Mt(o).hoistableScripts,p=Pu(t),b=d.get(p);b||(b=o.querySelector(al(p)),b||(t=m({src:t,async:!0},n),(n=mn.get(p))&&vy(t,n),b=o.createElement("script"),mt(b),ur(b,"link",t),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},d.set(p,b))}}function h3(t,n){da.M(t,n);var o=ju;if(o&&t){var d=Mt(o).hoistableScripts,p=Pu(t),b=d.get(p);b||(b=o.querySelector(al(p)),b||(t=m({src:t,async:!0,type:"module"},n),(n=mn.get(p))&&vy(t,n),b=o.createElement("script"),mt(b),ur(b,"link",t),o.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},d.set(p,b))}}function jS(t,n,o,d){var p=(p=we.current)?ev(p):null;if(!p)throw Error(i(446));switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(n=Cu(o.href),o=Mt(p).hoistableStyles,d=o.get(n),d||(d={type:"style",instance:null,count:0,state:null},o.set(n,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=Cu(o.href);var b=Mt(p).hoistableStyles,O=b.get(t);if(O||(p=p.ownerDocument||p,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(t,O),(b=p.querySelector(nl(t)))&&!b._p&&(O.instance=b,O.state.loading=5),mn.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},mn.set(t,o),b||v3(p,t,o,O.state))),n&&d===null)throw Error(i(528,""));return O}if(n&&d!==null)throw Error(i(529,""));return null;case"script":return n=o.async,o=o.src,typeof o=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Pu(o),o=Mt(p).hoistableScripts,d=o.get(n),d||(d={type:"script",instance:null,count:0,state:null},o.set(n,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,t))}}function Cu(t){return'href="'+Ur(t)+'"'}function nl(t){return'link[rel="stylesheet"]['+t+"]"}function CS(t){return m({},t,{"data-precedence":t.precedence,precedence:null})}function v3(t,n,o,d){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?d.loading=1:(n=t.createElement("link"),d.preload=n,n.addEventListener("load",function(){return d.loading|=1}),n.addEventListener("error",function(){return d.loading|=2}),ur(n,"link",o),mt(n),t.head.appendChild(n))}function Pu(t){return'[src="'+Ur(t)+'"]'}function al(t){return"script[async]"+t}function PS(t,n,o){if(n.count++,n.instance===null)switch(n.type){case"style":var d=t.querySelector('style[data-href~="'+Ur(o.href)+'"]');if(d)return n.instance=d,mt(d),d;var p=m({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return d=(t.ownerDocument||t).createElement("style"),mt(d),ur(d,"style",p),tv(d,o.precedence,t),n.instance=d;case"stylesheet":p=Cu(o.href);var b=t.querySelector(nl(p));if(b)return n.state.loading|=4,n.instance=b,mt(b),b;d=CS(o),(p=mn.get(p))&&hy(d,p),b=(t.ownerDocument||t).createElement("link"),mt(b);var O=b;return O._p=new Promise(function(A,P){O.onload=A,O.onerror=P}),ur(b,"link",d),n.state.loading|=4,tv(b,o.precedence,t),n.instance=b;case"script":return b=Pu(o.src),(p=t.querySelector(al(b)))?(n.instance=p,mt(p),p):(d=o,(p=mn.get(b))&&(d=m({},o),vy(d,p)),t=t.ownerDocument||t,p=t.createElement("script"),mt(p),ur(p,"link",d),t.head.appendChild(p),n.instance=p);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(d=n.instance,n.state.loading|=4,tv(d,o.precedence,t));return n.instance}function tv(t,n,o){for(var d=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=d.length?d[d.length-1]:null,b=p,O=0;O<d.length;O++){var A=d[O];if(A.dataset.precedence===n)b=A;else if(b!==p)break}b?b.parentNode.insertBefore(t,b.nextSibling):(n=o.nodeType===9?o.head:o,n.insertBefore(t,n.firstChild))}function hy(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function vy(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}var rv=null;function DS(t,n,o){if(rv===null){var d=new Map,p=rv=new Map;p.set(o,d)}else p=rv,d=p.get(o),d||(d=new Map,p.set(o,d));if(d.has(t))return d;for(d.set(t,null),o=o.getElementsByTagName(t),p=0;p<o.length;p++){var b=o[p];if(!(b[Zt]||b[ie]||t==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var O=b.getAttribute(n)||"";O=t+O;var A=d.get(O);A?A.push(b):d.set(O,[b])}}return d}function NS(t,n,o){t=t.ownerDocument||t,t.head.insertBefore(o,n==="title"?t.querySelector("head > title"):null)}function m3(t,n,o){if(o===1||n.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return t=n.disabled,typeof n.precedence=="string"&&t==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function kS(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var il=null;function p3(){}function y3(t,n,o){if(il===null)throw Error(i(475));var d=il;if(n.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var p=Cu(o.href),b=t.querySelector(nl(p));if(b){t=b._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(d.count++,d=nv.bind(d),t.then(d,d)),n.state.loading|=4,n.instance=b,mt(b);return}b=t.ownerDocument||t,o=CS(o),(p=mn.get(p))&&hy(o,p),b=b.createElement("link"),mt(b);var O=b;O._p=new Promise(function(A,P){O.onload=A,O.onerror=P}),ur(b,"link",o),n.instance=b}d.stylesheets===null&&(d.stylesheets=new Map),d.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(d.count++,n=nv.bind(d),t.addEventListener("load",n),t.addEventListener("error",n))}}function b3(){if(il===null)throw Error(i(475));var t=il;return t.stylesheets&&t.count===0&&my(t,t.stylesheets),0<t.count?function(n){var o=setTimeout(function(){if(t.stylesheets&&my(t,t.stylesheets),t.unsuspend){var d=t.unsuspend;t.unsuspend=null,d()}},6e4);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(o)}}:null}function nv(){if(this.count--,this.count===0){if(this.stylesheets)my(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var av=null;function my(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,av=new Map,n.forEach(g3,t),av=null,nv.call(t))}function g3(t,n){if(!(n.state.loading&4)){var o=av.get(t);if(o)var d=o.get(null);else{o=new Map,av.set(t,o);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<p.length;b++){var O=p[b];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(o.set(O.dataset.precedence,O),d=O)}d&&o.set(null,d)}p=n.instance,O=p.getAttribute("data-precedence"),b=o.get(O)||d,b===d&&o.set(null,p),o.set(O,p),this.count++,d=nv.bind(this),p.addEventListener("load",d),p.addEventListener("error",d),b?b.parentNode.insertBefore(p,b.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),n.state.loading|=4}}var ol={$$typeof:T,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function _3(t,n,o,d,p,b,O,A){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=_n(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_n(0),this.hiddenUpdates=_n(null),this.identifierPrefix=d,this.onUncaughtError=p,this.onCaughtError=b,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function qS(t,n,o,d,p,b,O,A,P,W,se,he){return t=new _3(t,n,o,O,A,P,W,he),n=1,b===!0&&(n|=24),b=Xr(3,null,null,n),t.current=b,b.stateNode=t,n=Xm(),n.refCount++,t.pooledCache=n,n.refCount++,b.memoizedState={element:d,isDehydrated:o,cache:n},ep(b),t}function VS(t){return t?(t=lu,t):lu}function LS(t,n,o,d,p,b){p=VS(p),d.context===null?d.context=p:d.pendingContext=p,d=Xa(n),d.payload={element:o},b=b===void 0?null:b,b!==null&&(d.callback=b),o=Ka(t,d,n),o!==null&&(tn(o,t,n),qs(o,t,n))}function US(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<n?o:n}}function py(t,n){US(t,n),(t=t.alternate)&&US(t,n)}function zS(t){if(t.tag===13){var n=su(t,67108864);n!==null&&tn(n,t,67108864),py(t,67108864)}}var iv=!0;function S3(t,n,o,d){var p=C.T;C.T=null;var b=te.p;try{te.p=2,yy(t,n,o,d)}finally{te.p=b,C.T=p}}function w3(t,n,o,d){var p=C.T;C.T=null;var b=te.p;try{te.p=8,yy(t,n,o,d)}finally{te.p=b,C.T=p}}function yy(t,n,o,d){if(iv){var p=by(d);if(p===null)ay(t,n,d,ov,o),FS(t,d);else if(E3(p,t,n,o,d))d.stopPropagation();else if(FS(t,d),n&4&&-1<O3.indexOf(t)){for(;p!==null;){var b=Vr(p);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var O=Kt(b.pendingLanes);if(O!==0){var A=b;for(A.pendingLanes|=2,A.entangledLanes|=2;O;){var P=1<<31-Xe(O);A.entanglements[1]|=P,O&=~P}Bn(b),(ot&6)===0&&(Bh=yt()+500,Js(0))}}break;case 13:A=su(b,2),A!==null&&tn(A,b,2),Hh(),py(b,2)}if(b=by(d),b===null&&ay(t,n,d,ov,o),b===p)break;p=b}p!==null&&d.stopPropagation()}else ay(t,n,d,null,o)}}function by(t){return t=ys(t),gy(t)}var ov=null;function gy(t){if(ov=null,t=wt(t),t!==null){var n=s(t);if(n===null)t=null;else{var o=n.tag;if(o===13){if(t=l(n),t!==null)return t;t=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return ov=t,null}function IS(t){switch(t){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(sn()){case Tt:return 2;case q:return 8;case G:case re:return 32;case _e:return 268435456;default:return 32}default:return 32}}var _y=!1,ci=null,fi=null,di=null,ul=new Map,sl=new Map,hi=[],O3="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".split(" ");function FS(t,n){switch(t){case"focusin":case"focusout":ci=null;break;case"dragenter":case"dragleave":fi=null;break;case"mouseover":case"mouseout":di=null;break;case"pointerover":case"pointerout":ul.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":sl.delete(n.pointerId)}}function ll(t,n,o,d,p,b){return t===null||t.nativeEvent!==b?(t={blockedOn:n,domEventName:o,eventSystemFlags:d,nativeEvent:b,targetContainers:[p]},n!==null&&(n=Vr(n),n!==null&&zS(n)),t):(t.eventSystemFlags|=d,n=t.targetContainers,p!==null&&n.indexOf(p)===-1&&n.push(p),t)}function E3(t,n,o,d,p){switch(n){case"focusin":return ci=ll(ci,t,n,o,d,p),!0;case"dragenter":return fi=ll(fi,t,n,o,d,p),!0;case"mouseover":return di=ll(di,t,n,o,d,p),!0;case"pointerover":var b=p.pointerId;return ul.set(b,ll(ul.get(b)||null,t,n,o,d,p)),!0;case"gotpointercapture":return b=p.pointerId,sl.set(b,ll(sl.get(b)||null,t,n,o,d,p)),!0}return!1}function BS(t){var n=wt(t.target);if(n!==null){var o=s(n);if(o!==null){if(n=o.tag,n===13){if(n=l(o),n!==null){t.blockedOn=n,X(t.priority,function(){if(o.tag===13){var d=en();d=z(d);var p=su(o,d);p!==null&&tn(p,o,d),py(o,d)}});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function uv(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var o=by(t.nativeEvent);if(o===null){o=t.nativeEvent;var d=new o.constructor(o.type,o);ps=d,o.target.dispatchEvent(d),ps=null}else return n=Vr(o),n!==null&&zS(n),t.blockedOn=o,!1;n.shift()}return!0}function $S(t,n,o){uv(t)&&o.delete(n)}function A3(){_y=!1,ci!==null&&uv(ci)&&(ci=null),fi!==null&&uv(fi)&&(fi=null),di!==null&&uv(di)&&(di=null),ul.forEach($S),sl.forEach($S)}function sv(t,n){t.blockedOn===n&&(t.blockedOn=null,_y||(_y=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,A3)))}var lv=null;function HS(t){lv!==t&&(lv=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){lv===t&&(lv=null);for(var n=0;n<t.length;n+=3){var o=t[n],d=t[n+1],p=t[n+2];if(typeof d!="function"){if(gy(d||o)===null)continue;break}var b=Vr(o);b!==null&&(t.splice(n,3),n-=3,gp(b,{pending:!0,data:p,method:o.method,action:d},d,p))}}))}function cl(t){function n(P){return sv(P,t)}ci!==null&&sv(ci,t),fi!==null&&sv(fi,t),di!==null&&sv(di,t),ul.forEach(n),sl.forEach(n);for(var o=0;o<hi.length;o++){var d=hi[o];d.blockedOn===t&&(d.blockedOn=null)}for(;0<hi.length&&(o=hi[0],o.blockedOn===null);)BS(o),o.blockedOn===null&&hi.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(d=0;d<o.length;d+=3){var p=o[d],b=o[d+1],O=p[ve]||null;if(typeof b=="function")O||HS(o);else if(O){var A=null;if(b&&b.hasAttribute("formAction")){if(p=b,O=b[ve]||null)A=O.formAction;else if(gy(p)!==null)continue}else A=O.action;typeof A=="function"?o[d+1]=A:(o.splice(d,3),d-=3),HS(o)}}}function Sy(t){this._internalRoot=t}cv.prototype.render=Sy.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error(i(409));var o=n.current,d=en();LS(o,d,t,n,null,null)},cv.prototype.unmount=Sy.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var n=t.containerInfo;LS(t.current,2,null,t,null,null),Hh(),n[Me]=null}};function cv(t){this._internalRoot=t}cv.prototype.unstable_scheduleHydration=function(t){if(t){var n=ee();t={blockedOn:null,target:t,priority:n};for(var o=0;o<hi.length&&n!==0&&n<hi[o].priority;o++);hi.splice(o,0,t),o===0&&BS(t)}};var YS=r.version;if(YS!=="19.1.0")throw Error(i(527,YS,"19.1.0"));te.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error(i(188)):(t=Object.keys(t).join(","),Error(i(268,t)));return t=f(n),t=t!==null?h(t):null,t=t===null?null:t.stateNode,t};var R3={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fv.isDisabled&&fv.supportsFiber)try{Se=fv.inject(R3),De=fv}catch{}}return dl.createRoot=function(t,n){if(!u(t))throw Error(i(299));var o=!1,d="",p=s_,b=l_,O=c_,A=null;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(d=n.identifierPrefix),n.onUncaughtError!==void 0&&(p=n.onUncaughtError),n.onCaughtError!==void 0&&(b=n.onCaughtError),n.onRecoverableError!==void 0&&(O=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(A=n.unstable_transitionCallbacks)),n=qS(t,1,!1,null,null,o,d,p,b,O,A,null),t[Me]=n.current,ny(t),new Sy(n)},dl.hydrateRoot=function(t,n,o){if(!u(t))throw Error(i(299));var d=!1,p="",b=s_,O=l_,A=c_,P=null,W=null;return o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(b=o.onUncaughtError),o.onCaughtError!==void 0&&(O=o.onCaughtError),o.onRecoverableError!==void 0&&(A=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(P=o.unstable_transitionCallbacks),o.formState!==void 0&&(W=o.formState)),n=qS(t,1,!0,n,o??null,d,p,b,O,A,P,W),n.context=VS(null),o=n.current,d=en(),d=z(d),p=Xa(d),p.callback=null,Ka(o,p,d),o=d,n.current.lanes=o,qr(n,o),Bn(n),t[Me]=n.current,ny(t),new cv(n)},dl.version="19.1.0",dl}var nw;function U3(){if(nw)return Ey.exports;nw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Ey.exports=L3(),Ey.exports}var z3=U3();const I3=Jb(z3);var My={},bb=function(e,r){return bb=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,i){a.__proto__=i}||function(a,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=i[u])},bb(e,r)};function Dd(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");bb(e,r);function a(){this.constructor=e}e.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}var Vv=function(){return Vv=Object.assign||function(r){for(var a,i=1,u=arguments.length;i<u;i++){a=arguments[i];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(r[s]=a[s])}return r},Vv.apply(this,arguments)};function VM(e,r){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,i=Object.getOwnPropertySymbols(e);u<i.length;u++)r.indexOf(i[u])<0&&Object.prototype.propertyIsEnumerable.call(e,i[u])&&(a[i[u]]=e[i[u]]);return a}function LM(e,r,a,i){var u=arguments.length,s=u<3?r:i===null?i=Object.getOwnPropertyDescriptor(r,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,r,a,i);else for(var c=e.length-1;c>=0;c--)(l=e[c])&&(s=(u<3?l(s):u>3?l(r,a,s):l(r,a))||s);return u>3&&s&&Object.defineProperty(r,a,s),s}function UM(e,r){return function(a,i){r(a,i,e)}}function zM(e,r,a,i,u,s){function l(E){if(E!==void 0&&typeof E!="function")throw new TypeError("Function expected");return E}for(var c=i.kind,f=c==="getter"?"get":c==="setter"?"set":"value",h=!r&&e?i.static?e:e.prototype:null,m=r||(h?Object.getOwnPropertyDescriptor(h,i.name):{}),v,y=!1,g=a.length-1;g>=0;g--){var S={};for(var _ in i)S[_]=_==="access"?{}:i[_];for(var _ in i.access)S.access[_]=i.access[_];S.addInitializer=function(E){if(y)throw new TypeError("Cannot add initializers after decoration has completed");s.push(l(E||null))};var w=(0,a[g])(c==="accessor"?{get:m.get,set:m.set}:m[f],S);if(c==="accessor"){if(w===void 0)continue;if(w===null||typeof w!="object")throw new TypeError("Object expected");(v=l(w.get))&&(m.get=v),(v=l(w.set))&&(m.set=v),(v=l(w.init))&&u.unshift(v)}else(v=l(w))&&(c==="field"?u.unshift(v):m[f]=v)}h&&Object.defineProperty(h,i.name,m),y=!0}function IM(e,r,a){for(var i=arguments.length>2,u=0;u<r.length;u++)a=i?r[u].call(e,a):r[u].call(e);return i?a:void 0}function FM(e){return typeof e=="symbol"?e:"".concat(e)}function BM(e,r,a){return typeof r=="symbol"&&(r=r.description?"[".concat(r.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:a?"".concat(a," ",r):r})}function $M(e,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,r)}function eg(e,r,a,i){function u(s){return s instanceof a?s:new a(function(l){l(s)})}return new(a||(a=Promise))(function(s,l){function c(m){try{h(i.next(m))}catch(v){l(v)}}function f(m){try{h(i.throw(m))}catch(v){l(v)}}function h(m){m.done?s(m.value):u(m.value).then(c,f)}h((i=i.apply(e,r||[])).next())})}function Zv(e,r){var a={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,u,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=c(0),l.throw=c(1),l.return=c(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(h){return function(m){return f([h,m])}}function f(h){if(i)throw new TypeError("Generator is already executing.");for(;l&&(l=0,h[0]&&(a=0)),a;)try{if(i=1,u&&(s=h[0]&2?u.return:h[0]?u.throw||((s=u.return)&&s.call(u),0):u.next)&&!(s=s.call(u,h[1])).done)return s;switch(u=0,s&&(h=[h[0]&2,s.value]),h[0]){case 0:case 1:s=h;break;case 4:return a.label++,{value:h[1],done:!1};case 5:a.label++,u=h[1],h=[0];continue;case 7:h=a.ops.pop(),a.trys.pop();continue;default:if(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(h[0]===6||h[0]===2)){a=0;continue}if(h[0]===3&&(!s||h[1]>s[0]&&h[1]<s[3])){a.label=h[1];break}if(h[0]===6&&a.label<s[1]){a.label=s[1],s=h;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(h);break}s[2]&&a.ops.pop(),a.trys.pop();continue}h=r.call(e,a)}catch(m){h=[6,m],u=0}finally{i=s=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}var Jv=Object.create?function(e,r,a,i){i===void 0&&(i=a);var u=Object.getOwnPropertyDescriptor(r,a);(!u||("get"in u?!r.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return r[a]}}),Object.defineProperty(e,i,u)}:function(e,r,a,i){i===void 0&&(i=a),e[i]=r[a]};function HM(e,r){for(var a in e)a!=="default"&&!Object.prototype.hasOwnProperty.call(r,a)&&Jv(r,e,a)}function Fo(e){var r=typeof Symbol=="function"&&Symbol.iterator,a=r&&e[r],i=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ku(e,r){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var i=a.call(e),u,s=[],l;try{for(;(r===void 0||r-- >0)&&!(u=i.next()).done;)s.push(u.value)}catch(c){l={error:c}}finally{try{u&&!u.done&&(a=i.return)&&a.call(i)}finally{if(l)throw l.error}}return s}function YM(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Ku(arguments[r]));return e}function GM(){for(var e=0,r=0,a=arguments.length;r<a;r++)e+=arguments[r].length;for(var i=Array(e),u=0,r=0;r<a;r++)for(var s=arguments[r],l=0,c=s.length;l<c;l++,u++)i[u]=s[l];return i}function wd(e,r,a){if(a||arguments.length===2)for(var i=0,u=r.length,s;i<u;i++)(s||!(i in r))&&(s||(s=Array.prototype.slice.call(r,0,i)),s[i]=r[i]);return e.concat(s||Array.prototype.slice.call(r))}function ka(e){return this instanceof ka?(this.v=e,this):new ka(e)}function tg(e,r,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=a.apply(e,r||[]),u,s=[];return u=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",l),u[Symbol.asyncIterator]=function(){return this},u;function l(g){return function(S){return Promise.resolve(S).then(g,v)}}function c(g,S){i[g]&&(u[g]=function(_){return new Promise(function(w,E){s.push([g,_,w,E])>1||f(g,_)})},S&&(u[g]=S(u[g])))}function f(g,S){try{h(i[g](S))}catch(_){y(s[0][3],_)}}function h(g){g.value instanceof ka?Promise.resolve(g.value.v).then(m,v):y(s[0][2],g)}function m(g){f("next",g)}function v(g){f("throw",g)}function y(g,S){g(S),s.shift(),s.length&&f(s[0][0],s[0][1])}}function WM(e){var r,a;return r={},i("next"),i("throw",function(u){throw u}),i("return"),r[Symbol.iterator]=function(){return this},r;function i(u,s){r[u]=e[u]?function(l){return(a=!a)?{value:ka(e[u](l)),done:!1}:s?s(l):l}:s}}function rg(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],a;return r?r.call(e):(e=typeof Fo=="function"?Fo(e):e[Symbol.iterator](),a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a);function i(s){a[s]=e[s]&&function(l){return new Promise(function(c,f){l=e[s](l),u(c,f,l.done,l.value)})}}function u(s,l,c,f){Promise.resolve(f).then(function(h){s({value:h,done:c})},l)}}function QM(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}var F3=Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r},gb=function(e){return gb=Object.getOwnPropertyNames||function(r){var a=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(a[a.length]=i);return a},gb(e)};function XM(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var a=gb(e),i=0;i<a.length;i++)a[i]!=="default"&&Jv(r,e,a[i]);return F3(r,e),r}function KM(e){return e&&e.__esModule?e:{default:e}}function ZM(e,r,a,i){if(a==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof r=="function"?e!==r||!i:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?i:a==="a"?i.call(e):i?i.value:r.get(e)}function JM(e,r,a,i,u){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!u)throw new TypeError("Private accessor was defined without a setter");if(typeof r=="function"?e!==r||!u:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?u.call(e,a):u?u.value=a:r.set(e,a),a}function e2(e,r){if(r===null||typeof r!="object"&&typeof r!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?r===e:e.has(r)}function t2(e,r,a){if(r!=null){if(typeof r!="object"&&typeof r!="function")throw new TypeError("Object expected.");var i,u;if(a){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");i=r[Symbol.asyncDispose]}if(i===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");i=r[Symbol.dispose],a&&(u=i)}if(typeof i!="function")throw new TypeError("Object not disposable.");u&&(i=function(){try{u.call(this)}catch(s){return Promise.reject(s)}}),e.stack.push({value:r,dispose:i,async:a})}else a&&e.stack.push({async:!0});return r}var B3=typeof SuppressedError=="function"?SuppressedError:function(e,r,a){var i=new Error(a);return i.name="SuppressedError",i.error=e,i.suppressed=r,i};function r2(e){function r(s){e.error=e.hasError?new B3(s,e.error,"An error was suppressed during disposal."):s,e.hasError=!0}var a,i=0;function u(){for(;a=e.stack.pop();)try{if(!a.async&&i===1)return i=0,e.stack.push(a),Promise.resolve().then(u);if(a.dispose){var s=a.dispose.call(a.value);if(a.async)return i|=2,Promise.resolve(s).then(u,function(l){return r(l),u()})}else i|=1}catch(l){r(l)}if(i===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return u()}function n2(e,r){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(a,i,u,s,l){return i?r?".jsx":".js":u&&(!s||!l)?a:u+s+"."+l.toLowerCase()+"js"}):e}const $3={__extends:Dd,__assign:Vv,__rest:VM,__decorate:LM,__param:UM,__esDecorate:zM,__runInitializers:IM,__propKey:FM,__setFunctionName:BM,__metadata:$M,__awaiter:eg,__generator:Zv,__createBinding:Jv,__exportStar:HM,__values:Fo,__read:Ku,__spread:YM,__spreadArrays:GM,__spreadArray:wd,__await:ka,__asyncGenerator:tg,__asyncDelegator:WM,__asyncValues:rg,__makeTemplateObject:QM,__importStar:XM,__importDefault:KM,__classPrivateFieldGet:ZM,__classPrivateFieldSet:JM,__classPrivateFieldIn:e2,__addDisposableResource:t2,__disposeResources:r2,__rewriteRelativeImportExtension:n2},H3=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:t2,get __assign(){return Vv},__asyncDelegator:WM,__asyncGenerator:tg,__asyncValues:rg,__await:ka,__awaiter:eg,__classPrivateFieldGet:ZM,__classPrivateFieldIn:e2,__classPrivateFieldSet:JM,__createBinding:Jv,__decorate:LM,__disposeResources:r2,__esDecorate:zM,__exportStar:HM,__extends:Dd,__generator:Zv,__importDefault:KM,__importStar:XM,__makeTemplateObject:QM,__metadata:$M,__param:UM,__propKey:FM,__read:Ku,__rest:VM,__rewriteRelativeImportExtension:n2,__runInitializers:IM,__setFunctionName:BM,__spread:YM,__spreadArray:wd,__spreadArrays:GM,__values:Fo,default:$3},Symbol.toStringTag,{value:"Module"})),es=C3(H3);var xy={},jy,aw;function Y3(){return aw||(aw=1,jy=function(r,a,i,u){var s=i?i.call(u,r,a):void 0;if(s!==void 0)return!!s;if(r===a)return!0;if(typeof r!="object"||!r||typeof a!="object"||!a)return!1;var l=Object.keys(r),c=Object.keys(a);if(l.length!==c.length)return!1;for(var f=Object.prototype.hasOwnProperty.bind(a),h=0;h<l.length;h++){var m=l[h];if(!f(m))return!1;var v=r[m],y=a[m];if(s=i?i.call(u,v,y,m):void 0,s===!1||s===void 0&&v!==y)return!1}return!0}),jy}var hv={},iw;function G3(){if(iw)return hv;iw=1,Object.defineProperty(hv,"__esModule",{value:!0});/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */function e(a){return Object.prototype.toString.call(a)==="[object Object]"}function r(a){var i,u;return e(a)===!1?!1:(i=a.constructor,i===void 0?!0:(u=i.prototype,!(e(u)===!1||u.hasOwnProperty("isPrototypeOf")===!1)))}return hv.isPlainObject=r,hv}var ow;function Lv(){return ow||(ow=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultDomain=e.RemeshDomain=e.RemeshModule=e.toValidRemeshDomainDefinition=e.RemeshExtern=e.RemeshCommand=e.getCommandTaskSet=e.RemeshQuery=e.RemeshState=e.defaultCompare=e.DefaultStateValue=e.internalToOriginalEvent=e.toRemeshSubscribeOnlyEvent=e.RemeshEvent=void 0;var r=es,a=r.__importDefault(Y3()),i=G3(),u=0;function s(D){var J,le=u++,I=function(oe){return{type:"RemeshEventAction",arg:oe,Event:I}};return I.type="RemeshEvent",I.eventId=le,I.eventName=D.name,I.owner=(0,e.DefaultDomain)(),I.inspectable="inspectable"in D&&(J=D.inspectable)!==null&&J!==void 0?J:!0,I.toSubscribeOnlyEvent=function(){return(0,e.toRemeshSubscribeOnlyEvent)(I)},"impl"in D&&(I.impl=D.impl),I.emitted=function(oe){if(w.emitted.has(I))return w.emitted.get(I).add(oe);var de=new Set;return w.emitted.set(I,de),de.add(oe),de},I}e.RemeshEvent=s;var l=new WeakMap,c=new WeakMap,f=function(D){var J=l.get(D);if(J)return J;var le={type:"RemeshSubscribeOnlyEvent",eventId:D.eventId,eventName:D.eventName};return l.set(D,le),c.set(le,D),le};e.toRemeshSubscribeOnlyEvent=f;var h=function(D){var J=c.get(D);if(J)return J;throw new Error("SubscribeOnlyEvent ".concat(D.eventName," does not have an associated Event"))};e.internalToOriginalEvent=h,e.DefaultStateValue=Symbol("DefaultStateValue");var m=0,v=function(D,J){return(0,i.isPlainObject)(D)&&(0,i.isPlainObject)(J)||Array.isArray(D)&&Array.isArray(J)?(0,a.default)(D,J):D===J};e.defaultCompare=v;var y=function(D){var J,le,I=m++,oe=null,de=function(){if(oe)return oe;var ye={type:"RemeshStateItem",State:de,new:function(C){return{type:"RemeshStateItemUpdatePayload",value:C,stateItem:ye}}};return oe=ye,ye};return de.type="RemeshState",de.stateId=I,de.stateName=D.name,"default"in D?de.default=D.default:D.defer&&(de.default=e.DefaultStateValue),de.compare=(J=D.compare)!==null&&J!==void 0?J:e.defaultCompare,de.owner=(0,e.DefaultDomain)(),de.inspectable=(le=D.inspectable)!==null&&le!==void 0?le:!0,de};e.RemeshState=y;var g=0,S=function(D){var J,le,I=g++,oe=null,de=function(ye){if(ye===void 0&&oe)return oe;var C={type:"RemeshQueryAction",Query:de,arg:ye};return ye===void 0&&(oe=C),C};return de.type="RemeshQuery",de.queryId=I,de.queryName=D.name,de.impl=D.impl,de.compare=(J=D.compare)!==null&&J!==void 0?J:e.defaultCompare,de.owner=(0,e.DefaultDomain)(),de.inspectable=(le=D.inspectable)!==null&&le!==void 0?le:!0,de.onError=D.onError,de.changed=function(ye){if(w.changed.has(de))return w.changed.get(de).add(ye);var C=new Set;return w.changed.set(de,C),C.add(ye),C},de};e.RemeshQuery=S;var _=0,w={before:new WeakMap,after:new WeakMap,changed:new WeakMap,emitted:new WeakMap},E=function(D,J){return w[J].get(D)};e.getCommandTaskSet=E;var R=function(D){var J,le=_++,I=function(oe){return{type:"RemeshCommandAction",arg:oe,Command:I}};return I.type="RemeshCommand",I.commandId=le,I.commandName=D.name,I.impl=D.impl,I.owner=(0,e.DefaultDomain)(),I.inspectable=(J=D.inspectable)!==null&&J!==void 0?J:!0,I.before=function(oe){if(w.before.has(I))return w.before.get(I).add(oe);var de=new Set;return w.before.set(I,de),de.add(oe),de},I.after=function(oe){if(w.after.has(I))return w.after.get(I).add(oe);var de=new Set;return w.after.set(I,de),de.add(oe),de},I};e.RemeshCommand=R;var T=0,j=function(D){var J={type:"RemeshExtern",externId:T++,default:D.default,impl:function(le){return{type:"RemeshExternImpl",Extern:J,value:le}}};return J};e.RemeshExtern=j;var M=function(D){var J={};if(D.event){var le={};for(var I in D.event){var oe=D.event[I];oe.type==="RemeshSubscribeOnlyEvent"?le[I]=oe:le[I]=(0,e.toRemeshSubscribeOnlyEvent)(oe)}J.event=le}return D.query&&(J.query=D.query),D.command&&(J.command=D.command),J};e.toValidRemeshDomainDefinition=M;var V=function(D){return(0,e.toValidRemeshDomainDefinition)(D)};e.RemeshModule=V;var U=0,N=function(D){var J,le=null,I=function(oe){if(oe===void 0&&le)return le;var de={type:"RemeshDomainAction",Domain:I,arg:oe};return oe===void 0&&(le=de),de};return I.type="RemeshDomain",I.domainId=U++,I.domainName=D.name,I.impl=D.impl,I.inspectable=(J=D.inspectable)!==null&&J!==void 0?J:!0,I};e.RemeshDomain=N,e.DefaultDomain=(0,e.RemeshDomain)({name:"DefaultDomain",impl:function(){return{}}})}(xy)),xy}var hl={},Wi={},vl={},ml={},pl={},uw;function dt(){if(uw)return pl;uw=1,Object.defineProperty(pl,"__esModule",{value:!0}),pl.isFunction=void 0;function e(r){return typeof r=="function"}return pl.isFunction=e,pl}var jr={},yl={},bl={},sw;function Bo(){if(sw)return bl;sw=1,Object.defineProperty(bl,"__esModule",{value:!0}),bl.createErrorClass=void 0;function e(r){var a=function(u){Error.call(u),u.stack=new Error().stack},i=r(a);return i.prototype=Object.create(Error.prototype),i.prototype.constructor=i,i}return bl.createErrorClass=e,bl}var lw;function a2(){if(lw)return yl;lw=1,Object.defineProperty(yl,"__esModule",{value:!0}),yl.UnsubscriptionError=void 0;var e=Bo();return yl.UnsubscriptionError=e.createErrorClass(function(r){return function(i){r(this),this.message=i?i.length+` errors occurred during unsubscription:
`+i.map(function(u,s){return s+1+") "+u.toString()}).join(`
  `):"",this.name="UnsubscriptionError",this.errors=i}}),yl}var gl={},cw;function wi(){if(cw)return gl;cw=1,Object.defineProperty(gl,"__esModule",{value:!0}),gl.arrRemove=void 0;function e(r,a){if(r){var i=r.indexOf(a);0<=i&&r.splice(i,1)}}return gl.arrRemove=e,gl}var fw;function gn(){if(fw)return jr;fw=1;var e=jr&&jr.__values||function(h){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&h[m],y=0;if(v)return v.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&y>=h.length&&(h=void 0),{value:h&&h[y++],done:!h}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")},r=jr&&jr.__read||function(h,m){var v=typeof Symbol=="function"&&h[Symbol.iterator];if(!v)return h;var y=v.call(h),g,S=[],_;try{for(;(m===void 0||m-- >0)&&!(g=y.next()).done;)S.push(g.value)}catch(w){_={error:w}}finally{try{g&&!g.done&&(v=y.return)&&v.call(y)}finally{if(_)throw _.error}}return S},a=jr&&jr.__spreadArray||function(h,m){for(var v=0,y=m.length,g=h.length;v<y;v++,g++)h[g]=m[v];return h};Object.defineProperty(jr,"__esModule",{value:!0}),jr.isSubscription=jr.EMPTY_SUBSCRIPTION=jr.Subscription=void 0;var i=dt(),u=a2(),s=wi(),l=function(){function h(m){this.initialTeardown=m,this.closed=!1,this._parentage=null,this._finalizers=null}return h.prototype.unsubscribe=function(){var m,v,y,g,S;if(!this.closed){this.closed=!0;var _=this._parentage;if(_)if(this._parentage=null,Array.isArray(_))try{for(var w=e(_),E=w.next();!E.done;E=w.next()){var R=E.value;R.remove(this)}}catch(N){m={error:N}}finally{try{E&&!E.done&&(v=w.return)&&v.call(w)}finally{if(m)throw m.error}}else _.remove(this);var T=this.initialTeardown;if(i.isFunction(T))try{T()}catch(N){S=N instanceof u.UnsubscriptionError?N.errors:[N]}var j=this._finalizers;if(j){this._finalizers=null;try{for(var M=e(j),V=M.next();!V.done;V=M.next()){var U=V.value;try{f(U)}catch(N){S=S??[],N instanceof u.UnsubscriptionError?S=a(a([],r(S)),r(N.errors)):S.push(N)}}}catch(N){y={error:N}}finally{try{V&&!V.done&&(g=M.return)&&g.call(M)}finally{if(y)throw y.error}}}if(S)throw new u.UnsubscriptionError(S)}},h.prototype.add=function(m){var v;if(m&&m!==this)if(this.closed)f(m);else{if(m instanceof h){if(m.closed||m._hasParent(this))return;m._addParent(this)}(this._finalizers=(v=this._finalizers)!==null&&v!==void 0?v:[]).push(m)}},h.prototype._hasParent=function(m){var v=this._parentage;return v===m||Array.isArray(v)&&v.includes(m)},h.prototype._addParent=function(m){var v=this._parentage;this._parentage=Array.isArray(v)?(v.push(m),v):v?[v,m]:m},h.prototype._removeParent=function(m){var v=this._parentage;v===m?this._parentage=null:Array.isArray(v)&&s.arrRemove(v,m)},h.prototype.remove=function(m){var v=this._finalizers;v&&s.arrRemove(v,m),m instanceof h&&m._removeParent(this)},h.EMPTY=function(){var m=new h;return m.closed=!0,m}(),h}();jr.Subscription=l,jr.EMPTY_SUBSCRIPTION=l.EMPTY;function c(h){return h instanceof l||h&&"closed"in h&&i.isFunction(h.remove)&&i.isFunction(h.add)&&i.isFunction(h.unsubscribe)}jr.isSubscription=c;function f(h){i.isFunction(h)?h():h.unsubscribe()}return jr}var _l={},dw;function Nd(){return dw||(dw=1,Object.defineProperty(_l,"__esModule",{value:!0}),_l.config=void 0,_l.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}),_l}var Sl={},Qi={},hw;function i2(){return hw||(hw=1,function(e){var r=Qi&&Qi.__read||function(i,u){var s=typeof Symbol=="function"&&i[Symbol.iterator];if(!s)return i;var l=s.call(i),c,f=[],h;try{for(;(u===void 0||u-- >0)&&!(c=l.next()).done;)f.push(c.value)}catch(m){h={error:m}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(h)throw h.error}}return f},a=Qi&&Qi.__spreadArray||function(i,u){for(var s=0,l=u.length,c=i.length;s<l;s++,c++)i[c]=u[s];return i};Object.defineProperty(e,"__esModule",{value:!0}),e.timeoutProvider=void 0,e.timeoutProvider={setTimeout:function(i,u){for(var s=[],l=2;l<arguments.length;l++)s[l-2]=arguments[l];var c=e.timeoutProvider.delegate;return c!=null&&c.setTimeout?c.setTimeout.apply(c,a([i,u],r(s))):setTimeout.apply(void 0,a([i,u],r(s)))},clearTimeout:function(i){var u=e.timeoutProvider.delegate;return((u==null?void 0:u.clearTimeout)||clearTimeout)(i)},delegate:void 0}}(Qi)),Qi}var vw;function o2(){if(vw)return Sl;vw=1,Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.reportUnhandledError=void 0;var e=Nd(),r=i2();function a(i){r.timeoutProvider.setTimeout(function(){var u=e.config.onUnhandledError;if(u)u(i);else throw i})}return Sl.reportUnhandledError=a,Sl}var wl={},mw;function wr(){if(mw)return wl;mw=1,Object.defineProperty(wl,"__esModule",{value:!0}),wl.noop=void 0;function e(){}return wl.noop=e,wl}var Tn={},pw;function W3(){if(pw)return Tn;pw=1,Object.defineProperty(Tn,"__esModule",{value:!0}),Tn.createNotification=Tn.nextNotification=Tn.errorNotification=Tn.COMPLETE_NOTIFICATION=void 0,Tn.COMPLETE_NOTIFICATION=function(){return a("C",void 0,void 0)}();function e(i){return a("E",void 0,i)}Tn.errorNotification=e;function r(i){return a("N",i,void 0)}Tn.nextNotification=r;function a(i,u,s){return{kind:i,value:u,error:s}}return Tn.createNotification=a,Tn}var Xi={},yw;function ng(){if(yw)return Xi;yw=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.captureError=Xi.errorContext=void 0;var e=Nd(),r=null;function a(u){if(e.config.useDeprecatedSynchronousErrorHandling){var s=!r;if(s&&(r={errorThrown:!1,error:null}),u(),s){var l=r,c=l.errorThrown,f=l.error;if(r=null,c)throw f}}else u()}Xi.errorContext=a;function i(u){e.config.useDeprecatedSynchronousErrorHandling&&r&&(r.errorThrown=!0,r.error=u)}return Xi.captureError=i,Xi}var bw;function kd(){return bw||(bw=1,function(e){var r=ml&&ml.__extends||function(){var R=function(T,j){return R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,V){M.__proto__=V}||function(M,V){for(var U in V)Object.prototype.hasOwnProperty.call(V,U)&&(M[U]=V[U])},R(T,j)};return function(T,j){if(typeof j!="function"&&j!==null)throw new TypeError("Class extends value "+String(j)+" is not a constructor or null");R(T,j);function M(){this.constructor=T}T.prototype=j===null?Object.create(j):(M.prototype=j.prototype,new M)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.EMPTY_OBSERVER=e.SafeSubscriber=e.Subscriber=void 0;var a=dt(),i=gn(),u=Nd(),s=o2(),l=wr(),c=W3(),f=i2(),h=ng(),m=function(R){r(T,R);function T(j){var M=R.call(this)||this;return M.isStopped=!1,j?(M.destination=j,i.isSubscription(j)&&j.add(M)):M.destination=e.EMPTY_OBSERVER,M}return T.create=function(j,M,V){return new S(j,M,V)},T.prototype.next=function(j){this.isStopped?E(c.nextNotification(j),this):this._next(j)},T.prototype.error=function(j){this.isStopped?E(c.errorNotification(j),this):(this.isStopped=!0,this._error(j))},T.prototype.complete=function(){this.isStopped?E(c.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},T.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,R.prototype.unsubscribe.call(this),this.destination=null)},T.prototype._next=function(j){this.destination.next(j)},T.prototype._error=function(j){try{this.destination.error(j)}finally{this.unsubscribe()}},T.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},T}(i.Subscription);e.Subscriber=m;var v=Function.prototype.bind;function y(R,T){return v.call(R,T)}var g=function(){function R(T){this.partialObserver=T}return R.prototype.next=function(T){var j=this.partialObserver;if(j.next)try{j.next(T)}catch(M){_(M)}},R.prototype.error=function(T){var j=this.partialObserver;if(j.error)try{j.error(T)}catch(M){_(M)}else _(T)},R.prototype.complete=function(){var T=this.partialObserver;if(T.complete)try{T.complete()}catch(j){_(j)}},R}(),S=function(R){r(T,R);function T(j,M,V){var U=R.call(this)||this,N;if(a.isFunction(j)||!j)N={next:j??void 0,error:M??void 0,complete:V??void 0};else{var D;U&&u.config.useDeprecatedNextContext?(D=Object.create(j),D.unsubscribe=function(){return U.unsubscribe()},N={next:j.next&&y(j.next,D),error:j.error&&y(j.error,D),complete:j.complete&&y(j.complete,D)}):N=j}return U.destination=new g(N),U}return T}(m);e.SafeSubscriber=S;function _(R){u.config.useDeprecatedSynchronousErrorHandling?h.captureError(R):s.reportUnhandledError(R)}function w(R){throw R}function E(R,T){var j=u.config.onStoppedNotification;j&&f.timeoutProvider.setTimeout(function(){return j(R,T)})}e.EMPTY_OBSERVER={closed:!0,next:l.noop,error:w,complete:l.noop}}(ml)),ml}var Ol={},gw;function em(){return gw||(gw=1,Object.defineProperty(Ol,"__esModule",{value:!0}),Ol.observable=void 0,Ol.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()),Ol}var Ki={},El={},_w;function Or(){if(_w)return El;_w=1,Object.defineProperty(El,"__esModule",{value:!0}),El.identity=void 0;function e(r){return r}return El.identity=e,El}var Sw;function tm(){if(Sw)return Ki;Sw=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.pipeFromArray=Ki.pipe=void 0;var e=Or();function r(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];return a(i)}Ki.pipe=r;function a(i){return i.length===0?e.identity:i.length===1?i[0]:function(s){return i.reduce(function(l,c){return c(l)},s)}}return Ki.pipeFromArray=a,Ki}var ww;function vt(){if(ww)return vl;ww=1,Object.defineProperty(vl,"__esModule",{value:!0}),vl.Observable=void 0;var e=kd(),r=gn(),a=em(),i=tm(),u=Nd(),s=dt(),l=ng(),c=function(){function v(y){y&&(this._subscribe=y)}return v.prototype.lift=function(y){var g=new v;return g.source=this,g.operator=y,g},v.prototype.subscribe=function(y,g,S){var _=this,w=m(y)?y:new e.SafeSubscriber(y,g,S);return l.errorContext(function(){var E=_,R=E.operator,T=E.source;w.add(R?R.call(w,T):T?_._subscribe(w):_._trySubscribe(w))}),w},v.prototype._trySubscribe=function(y){try{return this._subscribe(y)}catch(g){y.error(g)}},v.prototype.forEach=function(y,g){var S=this;return g=f(g),new g(function(_,w){var E=new e.SafeSubscriber({next:function(R){try{y(R)}catch(T){w(T),E.unsubscribe()}},error:w,complete:_});S.subscribe(E)})},v.prototype._subscribe=function(y){var g;return(g=this.source)===null||g===void 0?void 0:g.subscribe(y)},v.prototype[a.observable]=function(){return this},v.prototype.pipe=function(){for(var y=[],g=0;g<arguments.length;g++)y[g]=arguments[g];return i.pipeFromArray(y)(this)},v.prototype.toPromise=function(y){var g=this;return y=f(y),new y(function(S,_){var w;g.subscribe(function(E){return w=E},function(E){return _(E)},function(){return S(w)})})},v.create=function(y){return new v(y)},v}();vl.Observable=c;function f(v){var y;return(y=v??u.config.Promise)!==null&&y!==void 0?y:Promise}function h(v){return v&&s.isFunction(v.next)&&s.isFunction(v.error)&&s.isFunction(v.complete)}function m(v){return v&&v instanceof e.Subscriber||h(v)&&r.isSubscription(v)}return vl}var Zi={},Al={},Ji={},Ow;function Ee(){if(Ow)return Ji;Ow=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.operate=Ji.hasLift=void 0;var e=dt();function r(i){return e.isFunction(i==null?void 0:i.lift)}Ji.hasLift=r;function a(i){return function(u){if(r(u))return u.lift(function(s){try{return i(s,this)}catch(l){this.error(l)}});throw new TypeError("Unable to lift unknown Observable type")}}return Ji.operate=a,Ji}var ha={},Ew;function je(){if(Ew)return ha;Ew=1;var e=ha&&ha.__extends||function(){var u=function(s,l){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(c[h]=f[h])},u(s,l)};return function(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");u(s,l);function c(){this.constructor=s}s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(ha,"__esModule",{value:!0}),ha.OperatorSubscriber=ha.createOperatorSubscriber=void 0;var r=kd();function a(u,s,l,c,f){return new i(u,s,l,c,f)}ha.createOperatorSubscriber=a;var i=function(u){e(s,u);function s(l,c,f,h,m,v){var y=u.call(this,l)||this;return y.onFinalize=m,y.shouldUnsubscribe=v,y._next=c?function(g){try{c(g)}catch(S){l.error(S)}}:u.prototype._next,y._error=h?function(g){try{h(g)}catch(S){l.error(S)}finally{this.unsubscribe()}}:u.prototype._error,y._complete=f?function(){try{f()}catch(g){l.error(g)}finally{this.unsubscribe()}}:u.prototype._complete,y}return s.prototype.unsubscribe=function(){var l;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var c=this.closed;u.prototype.unsubscribe.call(this),!c&&((l=this.onFinalize)===null||l===void 0||l.call(this))}},s}(r.Subscriber);return ha.OperatorSubscriber=i,ha}var Aw;function ag(){if(Aw)return Al;Aw=1,Object.defineProperty(Al,"__esModule",{value:!0}),Al.refCount=void 0;var e=Ee(),r=je();function a(){return e.operate(function(i,u){var s=null;i._refCount++;var l=r.createOperatorSubscriber(u,void 0,void 0,void 0,function(){if(!i||i._refCount<=0||0<--i._refCount){s=null;return}var c=i._connection,f=s;s=null,c&&(!f||c===f)&&c.unsubscribe(),u.unsubscribe()});i.subscribe(l),l.closed||(s=i.connect())})}return Al.refCount=a,Al}var Rw;function rm(){if(Rw)return Zi;Rw=1;var e=Zi&&Zi.__extends||function(){var c=function(f,h){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(m[y]=v[y])},c(f,h)};return function(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");c(f,h);function m(){this.constructor=f}f.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)}}();Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.ConnectableObservable=void 0;var r=vt(),a=gn(),i=ag(),u=je(),s=Ee(),l=function(c){e(f,c);function f(h,m){var v=c.call(this)||this;return v.source=h,v.subjectFactory=m,v._subject=null,v._refCount=0,v._connection=null,s.hasLift(h)&&(v.lift=h.lift),v}return f.prototype._subscribe=function(h){return this.getSubject().subscribe(h)},f.prototype.getSubject=function(){var h=this._subject;return(!h||h.isStopped)&&(this._subject=this.subjectFactory()),this._subject},f.prototype._teardown=function(){this._refCount=0;var h=this._connection;this._subject=this._connection=null,h==null||h.unsubscribe()},f.prototype.connect=function(){var h=this,m=this._connection;if(!m){m=this._connection=new a.Subscription;var v=this.getSubject();m.add(this.source.subscribe(u.createOperatorSubscriber(v,void 0,function(){h._teardown(),v.complete()},function(y){h._teardown(),v.error(y)},function(){return h._teardown()}))),m.closed&&(this._connection=null,m=a.Subscription.EMPTY)}return m},f.prototype.refCount=function(){return i.refCount()(this)},f}(r.Observable);return Zi.ConnectableObservable=l,Zi}var Rl={},Cy={},Tw;function Q3(){return Tw||(Tw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.performanceTimestampProvider=void 0,e.performanceTimestampProvider={now:function(){return(e.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}}(Cy)),Cy}var eo={},Mw;function u2(){return Mw||(Mw=1,function(e){var r=eo&&eo.__read||function(u,s){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var c=l.call(u),f,h=[],m;try{for(;(s===void 0||s-- >0)&&!(f=c.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=c.return)&&l.call(c)}finally{if(m)throw m.error}}return h},a=eo&&eo.__spreadArray||function(u,s){for(var l=0,c=s.length,f=u.length;l<c;l++,f++)u[f]=s[l];return u};Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrameProvider=void 0;var i=gn();e.animationFrameProvider={schedule:function(u){var s=requestAnimationFrame,l=cancelAnimationFrame,c=e.animationFrameProvider.delegate;c&&(s=c.requestAnimationFrame,l=c.cancelAnimationFrame);var f=s(function(h){l=void 0,u(h)});return new i.Subscription(function(){return l==null?void 0:l(f)})},requestAnimationFrame:function(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];var l=e.animationFrameProvider.delegate;return((l==null?void 0:l.requestAnimationFrame)||requestAnimationFrame).apply(void 0,a([],r(u)))},cancelAnimationFrame:function(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];var l=e.animationFrameProvider.delegate;return((l==null?void 0:l.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,a([],r(u)))},delegate:void 0}}(eo)),eo}var xw;function X3(){if(xw)return Rl;xw=1,Object.defineProperty(Rl,"__esModule",{value:!0}),Rl.animationFrames=void 0;var e=vt(),r=Q3(),a=u2();function i(l){return l?u(l):s}Rl.animationFrames=i;function u(l){return new e.Observable(function(c){var f=l||r.performanceTimestampProvider,h=f.now(),m=0,v=function(){c.closed||(m=a.animationFrameProvider.requestAnimationFrame(function(y){m=0;var g=f.now();c.next({timestamp:l?g:y,elapsed:g-h}),v()}))};return v(),function(){m&&a.animationFrameProvider.cancelAnimationFrame(m)}})}var s=u();return Rl}var Mn={},Tl={},jw;function s2(){if(jw)return Tl;jw=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.ObjectUnsubscribedError=void 0;var e=Bo();return Tl.ObjectUnsubscribedError=e.createErrorClass(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Tl}var Cw;function Er(){if(Cw)return Mn;Cw=1;var e=Mn&&Mn.__extends||function(){var h=function(m,v){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,g){y.__proto__=g}||function(y,g){for(var S in g)Object.prototype.hasOwnProperty.call(g,S)&&(y[S]=g[S])},h(m,v)};return function(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");h(m,v);function y(){this.constructor=m}m.prototype=v===null?Object.create(v):(y.prototype=v.prototype,new y)}}(),r=Mn&&Mn.__values||function(h){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&h[m],y=0;if(v)return v.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&y>=h.length&&(h=void 0),{value:h&&h[y++],done:!h}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Mn,"__esModule",{value:!0}),Mn.AnonymousSubject=Mn.Subject=void 0;var a=vt(),i=gn(),u=s2(),s=wi(),l=ng(),c=function(h){e(m,h);function m(){var v=h.call(this)||this;return v.closed=!1,v.currentObservers=null,v.observers=[],v.isStopped=!1,v.hasError=!1,v.thrownError=null,v}return m.prototype.lift=function(v){var y=new f(this,this);return y.operator=v,y},m.prototype._throwIfClosed=function(){if(this.closed)throw new u.ObjectUnsubscribedError},m.prototype.next=function(v){var y=this;l.errorContext(function(){var g,S;if(y._throwIfClosed(),!y.isStopped){y.currentObservers||(y.currentObservers=Array.from(y.observers));try{for(var _=r(y.currentObservers),w=_.next();!w.done;w=_.next()){var E=w.value;E.next(v)}}catch(R){g={error:R}}finally{try{w&&!w.done&&(S=_.return)&&S.call(_)}finally{if(g)throw g.error}}}})},m.prototype.error=function(v){var y=this;l.errorContext(function(){if(y._throwIfClosed(),!y.isStopped){y.hasError=y.isStopped=!0,y.thrownError=v;for(var g=y.observers;g.length;)g.shift().error(v)}})},m.prototype.complete=function(){var v=this;l.errorContext(function(){if(v._throwIfClosed(),!v.isStopped){v.isStopped=!0;for(var y=v.observers;y.length;)y.shift().complete()}})},m.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(m.prototype,"observed",{get:function(){var v;return((v=this.observers)===null||v===void 0?void 0:v.length)>0},enumerable:!1,configurable:!0}),m.prototype._trySubscribe=function(v){return this._throwIfClosed(),h.prototype._trySubscribe.call(this,v)},m.prototype._subscribe=function(v){return this._throwIfClosed(),this._checkFinalizedStatuses(v),this._innerSubscribe(v)},m.prototype._innerSubscribe=function(v){var y=this,g=this,S=g.hasError,_=g.isStopped,w=g.observers;return S||_?i.EMPTY_SUBSCRIPTION:(this.currentObservers=null,w.push(v),new i.Subscription(function(){y.currentObservers=null,s.arrRemove(w,v)}))},m.prototype._checkFinalizedStatuses=function(v){var y=this,g=y.hasError,S=y.thrownError,_=y.isStopped;g?v.error(S):_&&v.complete()},m.prototype.asObservable=function(){var v=new a.Observable;return v.source=this,v},m.create=function(v,y){return new f(v,y)},m}(a.Observable);Mn.Subject=c;var f=function(h){e(m,h);function m(v,y){var g=h.call(this)||this;return g.destination=v,g.source=y,g}return m.prototype.next=function(v){var y,g;(g=(y=this.destination)===null||y===void 0?void 0:y.next)===null||g===void 0||g.call(y,v)},m.prototype.error=function(v){var y,g;(g=(y=this.destination)===null||y===void 0?void 0:y.error)===null||g===void 0||g.call(y,v)},m.prototype.complete=function(){var v,y;(y=(v=this.destination)===null||v===void 0?void 0:v.complete)===null||y===void 0||y.call(v)},m.prototype._subscribe=function(v){var y,g;return(g=(y=this.source)===null||y===void 0?void 0:y.subscribe(v))!==null&&g!==void 0?g:i.EMPTY_SUBSCRIPTION},m}(c);return Mn.AnonymousSubject=f,Mn}var to={},Pw;function l2(){if(Pw)return to;Pw=1;var e=to&&to.__extends||function(){var i=function(u,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])},i(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(to,"__esModule",{value:!0}),to.BehaviorSubject=void 0;var r=Er(),a=function(i){e(u,i);function u(s){var l=i.call(this)||this;return l._value=s,l}return Object.defineProperty(u.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),u.prototype._subscribe=function(s){var l=i.prototype._subscribe.call(this,s);return!l.closed&&s.next(this._value),l},u.prototype.getValue=function(){var s=this,l=s.hasError,c=s.thrownError,f=s._value;if(l)throw c;return this._throwIfClosed(),f},u.prototype.next=function(s){i.prototype.next.call(this,this._value=s)},u}(r.Subject);return to.BehaviorSubject=a,to}var ro={},Py={},Dw;function ig(){return Dw||(Dw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.dateTimestampProvider=void 0,e.dateTimestampProvider={now:function(){return(e.dateTimestampProvider.delegate||Date).now()},delegate:void 0}}(Py)),Py}var Nw;function og(){if(Nw)return ro;Nw=1;var e=ro&&ro.__extends||function(){var u=function(s,l){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(c[h]=f[h])},u(s,l)};return function(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");u(s,l);function c(){this.constructor=s}s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(ro,"__esModule",{value:!0}),ro.ReplaySubject=void 0;var r=Er(),a=ig(),i=function(u){e(s,u);function s(l,c,f){l===void 0&&(l=1/0),c===void 0&&(c=1/0),f===void 0&&(f=a.dateTimestampProvider);var h=u.call(this)||this;return h._bufferSize=l,h._windowTime=c,h._timestampProvider=f,h._buffer=[],h._infiniteTimeWindow=!0,h._infiniteTimeWindow=c===1/0,h._bufferSize=Math.max(1,l),h._windowTime=Math.max(1,c),h}return s.prototype.next=function(l){var c=this,f=c.isStopped,h=c._buffer,m=c._infiniteTimeWindow,v=c._timestampProvider,y=c._windowTime;f||(h.push(l),!m&&h.push(v.now()+y)),this._trimBuffer(),u.prototype.next.call(this,l)},s.prototype._subscribe=function(l){this._throwIfClosed(),this._trimBuffer();for(var c=this._innerSubscribe(l),f=this,h=f._infiniteTimeWindow,m=f._buffer,v=m.slice(),y=0;y<v.length&&!l.closed;y+=h?1:2)l.next(v[y]);return this._checkFinalizedStatuses(l),c},s.prototype._trimBuffer=function(){var l=this,c=l._bufferSize,f=l._timestampProvider,h=l._buffer,m=l._infiniteTimeWindow,v=(m?1:2)*c;if(c<1/0&&v<h.length&&h.splice(0,h.length-v),!m){for(var y=f.now(),g=0,S=1;S<h.length&&h[S]<=y;S+=2)g=S;g&&h.splice(0,g+1)}},s}(r.Subject);return ro.ReplaySubject=i,ro}var no={},kw;function ug(){if(kw)return no;kw=1;var e=no&&no.__extends||function(){var i=function(u,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])},i(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(no,"__esModule",{value:!0}),no.AsyncSubject=void 0;var r=Er(),a=function(i){e(u,i);function u(){var s=i!==null&&i.apply(this,arguments)||this;return s._value=null,s._hasValue=!1,s._isComplete=!1,s}return u.prototype._checkFinalizedStatuses=function(s){var l=this,c=l.hasError,f=l._hasValue,h=l._value,m=l.thrownError,v=l.isStopped,y=l._isComplete;c?s.error(m):(v||y)&&(f&&s.next(h),s.complete())},u.prototype.next=function(s){this.isStopped||(this._value=s,this._hasValue=!0)},u.prototype.complete=function(){var s=this,l=s._hasValue,c=s._value,f=s._isComplete;f||(this._isComplete=!0,l&&i.prototype.next.call(this,c),i.prototype.complete.call(this))},u}(r.Subject);return no.AsyncSubject=a,no}var Dy={},ao={},io={},oo={},qw;function K3(){if(qw)return oo;qw=1;var e=oo&&oo.__extends||function(){var i=function(u,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])},i(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(oo,"__esModule",{value:!0}),oo.Action=void 0;var r=gn(),a=function(i){e(u,i);function u(s,l){return i.call(this)||this}return u.prototype.schedule=function(s,l){return this},u}(r.Subscription);return oo.Action=a,oo}var uo={},Vw;function Z3(){return Vw||(Vw=1,function(e){var r=uo&&uo.__read||function(i,u){var s=typeof Symbol=="function"&&i[Symbol.iterator];if(!s)return i;var l=s.call(i),c,f=[],h;try{for(;(u===void 0||u-- >0)&&!(c=l.next()).done;)f.push(c.value)}catch(m){h={error:m}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(h)throw h.error}}return f},a=uo&&uo.__spreadArray||function(i,u){for(var s=0,l=u.length,c=i.length;s<l;s++,c++)i[c]=u[s];return i};Object.defineProperty(e,"__esModule",{value:!0}),e.intervalProvider=void 0,e.intervalProvider={setInterval:function(i,u){for(var s=[],l=2;l<arguments.length;l++)s[l-2]=arguments[l];var c=e.intervalProvider.delegate;return c!=null&&c.setInterval?c.setInterval.apply(c,a([i,u],r(s))):setInterval.apply(void 0,a([i,u],r(s)))},clearInterval:function(i){var u=e.intervalProvider.delegate;return((u==null?void 0:u.clearInterval)||clearInterval)(i)},delegate:void 0}}(uo)),uo}var Lw;function qd(){if(Lw)return io;Lw=1;var e=io&&io.__extends||function(){var s=function(l,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m])},s(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");s(l,c);function f(){this.constructor=l}l.prototype=c===null?Object.create(c):(f.prototype=c.prototype,new f)}}();Object.defineProperty(io,"__esModule",{value:!0}),io.AsyncAction=void 0;var r=K3(),a=Z3(),i=wi(),u=function(s){e(l,s);function l(c,f){var h=s.call(this,c,f)||this;return h.scheduler=c,h.work=f,h.pending=!1,h}return l.prototype.schedule=function(c,f){var h;if(f===void 0&&(f=0),this.closed)return this;this.state=c;var m=this.id,v=this.scheduler;return m!=null&&(this.id=this.recycleAsyncId(v,m,f)),this.pending=!0,this.delay=f,this.id=(h=this.id)!==null&&h!==void 0?h:this.requestAsyncId(v,this.id,f),this},l.prototype.requestAsyncId=function(c,f,h){return h===void 0&&(h=0),a.intervalProvider.setInterval(c.flush.bind(c,this),h)},l.prototype.recycleAsyncId=function(c,f,h){if(h===void 0&&(h=0),h!=null&&this.delay===h&&this.pending===!1)return f;f!=null&&a.intervalProvider.clearInterval(f)},l.prototype.execute=function(c,f){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var h=this._execute(c,f);if(h)return h;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},l.prototype._execute=function(c,f){var h=!1,m;try{this.work(c)}catch(v){h=!0,m=v||new Error("Scheduled action threw falsy error")}if(h)return this.unsubscribe(),m},l.prototype.unsubscribe=function(){if(!this.closed){var c=this,f=c.id,h=c.scheduler,m=h.actions;this.work=this.state=this.scheduler=null,this.pending=!1,i.arrRemove(m,this),f!=null&&(this.id=this.recycleAsyncId(h,f,null)),this.delay=null,s.prototype.unsubscribe.call(this)}},l}(r.Action);return io.AsyncAction=u,io}var so={},lo={},Uw;function J3(){if(Uw)return lo;Uw=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.TestTools=lo.Immediate=void 0;var e=1,r,a={};function i(u){return u in a?(delete a[u],!0):!1}return lo.Immediate={setImmediate:function(u){var s=e++;return a[s]=!0,r||(r=Promise.resolve()),r.then(function(){return i(s)&&u()}),s},clearImmediate:function(u){i(u)}},lo.TestTools={pending:function(){return Object.keys(a).length}},lo}var zw;function eN(){return zw||(zw=1,function(e){var r=so&&so.__read||function(l,c){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var h=f.call(l),m,v=[],y;try{for(;(c===void 0||c-- >0)&&!(m=h.next()).done;)v.push(m.value)}catch(g){y={error:g}}finally{try{m&&!m.done&&(f=h.return)&&f.call(h)}finally{if(y)throw y.error}}return v},a=so&&so.__spreadArray||function(l,c){for(var f=0,h=c.length,m=l.length;f<h;f++,m++)l[m]=c[f];return l};Object.defineProperty(e,"__esModule",{value:!0}),e.immediateProvider=void 0;var i=J3(),u=i.Immediate.setImmediate,s=i.Immediate.clearImmediate;e.immediateProvider={setImmediate:function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];var f=e.immediateProvider.delegate;return((f==null?void 0:f.setImmediate)||u).apply(void 0,a([],r(l)))},clearImmediate:function(l){var c=e.immediateProvider.delegate;return((c==null?void 0:c.clearImmediate)||s)(l)},delegate:void 0}}(so)),so}var Iw;function tN(){if(Iw)return ao;Iw=1;var e=ao&&ao.__extends||function(){var u=function(s,l){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(c[h]=f[h])},u(s,l)};return function(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");u(s,l);function c(){this.constructor=s}s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(ao,"__esModule",{value:!0}),ao.AsapAction=void 0;var r=qd(),a=eN(),i=function(u){e(s,u);function s(l,c){var f=u.call(this,l,c)||this;return f.scheduler=l,f.work=c,f}return s.prototype.requestAsyncId=function(l,c,f){return f===void 0&&(f=0),f!==null&&f>0?u.prototype.requestAsyncId.call(this,l,c,f):(l.actions.push(this),l._scheduled||(l._scheduled=a.immediateProvider.setImmediate(l.flush.bind(l,void 0))))},s.prototype.recycleAsyncId=function(l,c,f){var h;if(f===void 0&&(f=0),f!=null?f>0:this.delay>0)return u.prototype.recycleAsyncId.call(this,l,c,f);var m=l.actions;c!=null&&((h=m[m.length-1])===null||h===void 0?void 0:h.id)!==c&&(a.immediateProvider.clearImmediate(c),l._scheduled===c&&(l._scheduled=void 0))},s}(r.AsyncAction);return ao.AsapAction=i,ao}var co={},fo={},Ml={},Fw;function c2(){if(Fw)return Ml;Fw=1,Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.Scheduler=void 0;var e=ig(),r=function(){function a(i,u){u===void 0&&(u=a.now),this.schedulerActionCtor=i,this.now=u}return a.prototype.schedule=function(i,u,s){return u===void 0&&(u=0),new this.schedulerActionCtor(this,i).schedule(s,u)},a.now=e.dateTimestampProvider.now,a}();return Ml.Scheduler=r,Ml}var Bw;function Vd(){if(Bw)return fo;Bw=1;var e=fo&&fo.__extends||function(){var i=function(u,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])},i(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(fo,"__esModule",{value:!0}),fo.AsyncScheduler=void 0;var r=c2(),a=function(i){e(u,i);function u(s,l){l===void 0&&(l=r.Scheduler.now);var c=i.call(this,s,l)||this;return c.actions=[],c._active=!1,c}return u.prototype.flush=function(s){var l=this.actions;if(this._active){l.push(s);return}var c;this._active=!0;do if(c=s.execute(s.state,s.delay))break;while(s=l.shift());if(this._active=!1,c){for(;s=l.shift();)s.unsubscribe();throw c}},u}(r.Scheduler);return fo.AsyncScheduler=a,fo}var $w;function rN(){if($w)return co;$w=1;var e=co&&co.__extends||function(){var i=function(u,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])},i(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(co,"__esModule",{value:!0}),co.AsapScheduler=void 0;var r=Vd(),a=function(i){e(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.flush=function(s){this._active=!0;var l=this._scheduled;this._scheduled=void 0;var c=this.actions,f;s=s||c.shift();do if(f=s.execute(s.state,s.delay))break;while((s=c[0])&&s.id===l&&c.shift());if(this._active=!1,f){for(;(s=c[0])&&s.id===l&&c.shift();)s.unsubscribe();throw f}},u}(r.AsyncScheduler);return co.AsapScheduler=a,co}var Hw;function nN(){return Hw||(Hw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.asap=e.asapScheduler=void 0;var r=tN(),a=rN();e.asapScheduler=new a.AsapScheduler(r.AsapAction),e.asap=e.asapScheduler}(Dy)),Dy}var Ny={},Yw;function an(){return Yw||(Yw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.async=e.asyncScheduler=void 0;var r=qd(),a=Vd();e.asyncScheduler=new a.AsyncScheduler(r.AsyncAction),e.async=e.asyncScheduler}(Ny)),Ny}var ky={},ho={},Gw;function aN(){if(Gw)return ho;Gw=1;var e=ho&&ho.__extends||function(){var i=function(u,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])},i(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(ho,"__esModule",{value:!0}),ho.QueueAction=void 0;var r=qd(),a=function(i){e(u,i);function u(s,l){var c=i.call(this,s,l)||this;return c.scheduler=s,c.work=l,c}return u.prototype.schedule=function(s,l){return l===void 0&&(l=0),l>0?i.prototype.schedule.call(this,s,l):(this.delay=l,this.state=s,this.scheduler.flush(this),this)},u.prototype.execute=function(s,l){return l>0||this.closed?i.prototype.execute.call(this,s,l):this._execute(s,l)},u.prototype.requestAsyncId=function(s,l,c){return c===void 0&&(c=0),c!=null&&c>0||c==null&&this.delay>0?i.prototype.requestAsyncId.call(this,s,l,c):(s.flush(this),0)},u}(r.AsyncAction);return ho.QueueAction=a,ho}var vo={},Ww;function iN(){if(Ww)return vo;Ww=1;var e=vo&&vo.__extends||function(){var i=function(u,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])},i(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(vo,"__esModule",{value:!0}),vo.QueueScheduler=void 0;var r=Vd(),a=function(i){e(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u}(r.AsyncScheduler);return vo.QueueScheduler=a,vo}var Qw;function oN(){return Qw||(Qw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.queue=e.queueScheduler=void 0;var r=aN(),a=iN();e.queueScheduler=new a.QueueScheduler(r.QueueAction),e.queue=e.queueScheduler}(ky)),ky}var qy={},mo={},Xw;function uN(){if(Xw)return mo;Xw=1;var e=mo&&mo.__extends||function(){var u=function(s,l){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(c[h]=f[h])},u(s,l)};return function(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");u(s,l);function c(){this.constructor=s}s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}}();Object.defineProperty(mo,"__esModule",{value:!0}),mo.AnimationFrameAction=void 0;var r=qd(),a=u2(),i=function(u){e(s,u);function s(l,c){var f=u.call(this,l,c)||this;return f.scheduler=l,f.work=c,f}return s.prototype.requestAsyncId=function(l,c,f){return f===void 0&&(f=0),f!==null&&f>0?u.prototype.requestAsyncId.call(this,l,c,f):(l.actions.push(this),l._scheduled||(l._scheduled=a.animationFrameProvider.requestAnimationFrame(function(){return l.flush(void 0)})))},s.prototype.recycleAsyncId=function(l,c,f){var h;if(f===void 0&&(f=0),f!=null?f>0:this.delay>0)return u.prototype.recycleAsyncId.call(this,l,c,f);var m=l.actions;c!=null&&c===l._scheduled&&((h=m[m.length-1])===null||h===void 0?void 0:h.id)!==c&&(a.animationFrameProvider.cancelAnimationFrame(c),l._scheduled=void 0)},s}(r.AsyncAction);return mo.AnimationFrameAction=i,mo}var po={},Kw;function sN(){if(Kw)return po;Kw=1;var e=po&&po.__extends||function(){var i=function(u,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(l[f]=c[f])},i(u,s)};return function(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(u,s);function l(){this.constructor=u}u.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}();Object.defineProperty(po,"__esModule",{value:!0}),po.AnimationFrameScheduler=void 0;var r=Vd(),a=function(i){e(u,i);function u(){return i!==null&&i.apply(this,arguments)||this}return u.prototype.flush=function(s){this._active=!0;var l;s?l=s.id:(l=this._scheduled,this._scheduled=void 0);var c=this.actions,f;s=s||c.shift();do if(f=s.execute(s.state,s.delay))break;while((s=c[0])&&s.id===l&&c.shift());if(this._active=!1,f){for(;(s=c[0])&&s.id===l&&c.shift();)s.unsubscribe();throw f}},u}(r.AsyncScheduler);return po.AnimationFrameScheduler=a,po}var Zw;function lN(){return Zw||(Zw=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.animationFrame=e.animationFrameScheduler=void 0;var r=uN(),a=sN();e.animationFrameScheduler=new a.AnimationFrameScheduler(r.AnimationFrameAction),e.animationFrame=e.animationFrameScheduler}(qy)),qy}var va={},Jw;function cN(){if(Jw)return va;Jw=1;var e=va&&va.__extends||function(){var l=function(c,f){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(h[v]=m[v])},l(c,f)};return function(c,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");l(c,f);function h(){this.constructor=c}c.prototype=f===null?Object.create(f):(h.prototype=f.prototype,new h)}}();Object.defineProperty(va,"__esModule",{value:!0}),va.VirtualAction=va.VirtualTimeScheduler=void 0;var r=qd(),a=gn(),i=Vd(),u=function(l){e(c,l);function c(f,h){f===void 0&&(f=s),h===void 0&&(h=1/0);var m=l.call(this,f,function(){return m.frame})||this;return m.maxFrames=h,m.frame=0,m.index=-1,m}return c.prototype.flush=function(){for(var f=this,h=f.actions,m=f.maxFrames,v,y;(y=h[0])&&y.delay<=m&&(h.shift(),this.frame=y.delay,!(v=y.execute(y.state,y.delay))););if(v){for(;y=h.shift();)y.unsubscribe();throw v}},c.frameTimeFactor=10,c}(i.AsyncScheduler);va.VirtualTimeScheduler=u;var s=function(l){e(c,l);function c(f,h,m){m===void 0&&(m=f.index+=1);var v=l.call(this,f,h)||this;return v.scheduler=f,v.work=h,v.index=m,v.active=!0,v.index=f.index=m,v}return c.prototype.schedule=function(f,h){if(h===void 0&&(h=0),Number.isFinite(h)){if(!this.id)return l.prototype.schedule.call(this,f,h);this.active=!1;var m=new c(this.scheduler,this.work);return this.add(m),m.schedule(f,h)}else return a.Subscription.EMPTY},c.prototype.requestAsyncId=function(f,h,m){m===void 0&&(m=0),this.delay=f.frame+m;var v=f.actions;return v.push(this),v.sort(c.sortActions),1},c.prototype.recycleAsyncId=function(f,h,m){},c.prototype._execute=function(f,h){if(this.active===!0)return l.prototype._execute.call(this,f,h)},c.sortActions=function(f,h){return f.delay===h.delay?f.index===h.index?0:f.index>h.index?1:-1:f.delay>h.delay?1:-1},c}(r.AsyncAction);return va.VirtualAction=s,va}var Vy={},Ly={},eO;function Qn(){return eO||(eO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.EMPTY=void 0;var r=vt();e.EMPTY=new r.Observable(function(u){return u.complete()});function a(u){return u?i(u):e.EMPTY}e.empty=a;function i(u){return new r.Observable(function(s){return u.schedule(function(){return s.complete()})})}}(Ly)),Ly}var xl={},ma={},jl={},tO;function nm(){if(tO)return jl;tO=1,Object.defineProperty(jl,"__esModule",{value:!0}),jl.isScheduler=void 0;var e=dt();function r(a){return a&&e.isFunction(a.schedule)}return jl.isScheduler=r,jl}var rO;function on(){if(rO)return ma;rO=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.popNumber=ma.popScheduler=ma.popResultSelector=void 0;var e=dt(),r=nm();function a(l){return l[l.length-1]}function i(l){return e.isFunction(a(l))?l.pop():void 0}ma.popResultSelector=i;function u(l){return r.isScheduler(a(l))?l.pop():void 0}ma.popScheduler=u;function s(l,c){return typeof a(l)=="number"?l.pop():c}return ma.popNumber=s,ma}var Cl={},Pl={},Dl={},bt={},Nl={},nO;function sg(){return nO||(nO=1,Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.isArrayLike=void 0,Nl.isArrayLike=function(e){return e&&typeof e.length=="number"&&typeof e!="function"}),Nl}var kl={},aO;function f2(){if(aO)return kl;aO=1,Object.defineProperty(kl,"__esModule",{value:!0}),kl.isPromise=void 0;var e=dt();function r(a){return e.isFunction(a==null?void 0:a.then)}return kl.isPromise=r,kl}var ql={},iO;function d2(){if(iO)return ql;iO=1,Object.defineProperty(ql,"__esModule",{value:!0}),ql.isInteropObservable=void 0;var e=em(),r=dt();function a(i){return r.isFunction(i[e.observable])}return ql.isInteropObservable=a,ql}var Vl={},oO;function h2(){if(oO)return Vl;oO=1,Object.defineProperty(Vl,"__esModule",{value:!0}),Vl.isAsyncIterable=void 0;var e=dt();function r(a){return Symbol.asyncIterator&&e.isFunction(a==null?void 0:a[Symbol.asyncIterator])}return Vl.isAsyncIterable=r,Vl}var Ll={},uO;function v2(){if(uO)return Ll;uO=1,Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.createInvalidObservableTypeError=void 0;function e(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}return Ll.createInvalidObservableTypeError=e,Ll}var Ul={},yo={},sO;function m2(){if(sO)return yo;sO=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.iterator=yo.getSymbolIterator=void 0;function e(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}return yo.getSymbolIterator=e,yo.iterator=e(),yo}var lO;function p2(){if(lO)return Ul;lO=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.isIterable=void 0;var e=m2(),r=dt();function a(i){return r.isFunction(i==null?void 0:i[e.iterator])}return Ul.isIterable=a,Ul}var rn={},cO;function lg(){if(cO)return rn;cO=1;var e=rn&&rn.__generator||function(l,c){var f={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]},h,m,v,y;return y={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function g(_){return function(w){return S([_,w])}}function S(_){if(h)throw new TypeError("Generator is already executing.");for(;f;)try{if(h=1,m&&(v=_[0]&2?m.return:_[0]?m.throw||((v=m.return)&&v.call(m),0):m.next)&&!(v=v.call(m,_[1])).done)return v;switch(m=0,v&&(_=[_[0]&2,v.value]),_[0]){case 0:case 1:v=_;break;case 4:return f.label++,{value:_[1],done:!1};case 5:f.label++,m=_[1],_=[0];continue;case 7:_=f.ops.pop(),f.trys.pop();continue;default:if(v=f.trys,!(v=v.length>0&&v[v.length-1])&&(_[0]===6||_[0]===2)){f=0;continue}if(_[0]===3&&(!v||_[1]>v[0]&&_[1]<v[3])){f.label=_[1];break}if(_[0]===6&&f.label<v[1]){f.label=v[1],v=_;break}if(v&&f.label<v[2]){f.label=v[2],f.ops.push(_);break}v[2]&&f.ops.pop(),f.trys.pop();continue}_=c.call(l,f)}catch(w){_=[6,w],m=0}finally{h=v=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},r=rn&&rn.__await||function(l){return this instanceof r?(this.v=l,this):new r(l)},a=rn&&rn.__asyncGenerator||function(l,c,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var h=f.apply(l,c||[]),m,v=[];return m={},y("next"),y("throw"),y("return"),m[Symbol.asyncIterator]=function(){return this},m;function y(R){h[R]&&(m[R]=function(T){return new Promise(function(j,M){v.push([R,T,j,M])>1||g(R,T)})})}function g(R,T){try{S(h[R](T))}catch(j){E(v[0][3],j)}}function S(R){R.value instanceof r?Promise.resolve(R.value.v).then(_,w):E(v[0][2],R)}function _(R){g("next",R)}function w(R){g("throw",R)}function E(R,T){R(T),v.shift(),v.length&&g(v[0][0],v[0][1])}};Object.defineProperty(rn,"__esModule",{value:!0}),rn.isReadableStreamLike=rn.readableStreamLikeToAsyncGenerator=void 0;var i=dt();function u(l){return a(this,arguments,function(){var f,h,m,v;return e(this,function(y){switch(y.label){case 0:f=l.getReader(),y.label=1;case 1:y.trys.push([1,,9,10]),y.label=2;case 2:return[4,r(f.read())];case 3:return h=y.sent(),m=h.value,v=h.done,v?[4,r(void 0)]:[3,5];case 4:return[2,y.sent()];case 5:return[4,r(m)];case 6:return[4,y.sent()];case 7:return y.sent(),[3,2];case 8:return[3,10];case 9:return f.releaseLock(),[7];case 10:return[2]}})})}rn.readableStreamLikeToAsyncGenerator=u;function s(l){return i.isFunction(l==null?void 0:l.getReader)}return rn.isReadableStreamLike=s,rn}var fO;function $e(){if(fO)return bt;fO=1;var e=bt&&bt.__awaiter||function(U,N,D,J){function le(I){return I instanceof D?I:new D(function(oe){oe(I)})}return new(D||(D=Promise))(function(I,oe){function de(te){try{C(J.next(te))}catch(ae){oe(ae)}}function ye(te){try{C(J.throw(te))}catch(ae){oe(ae)}}function C(te){te.done?I(te.value):le(te.value).then(de,ye)}C((J=J.apply(U,N||[])).next())})},r=bt&&bt.__generator||function(U,N){var D={label:0,sent:function(){if(I[0]&1)throw I[1];return I[1]},trys:[],ops:[]},J,le,I,oe;return oe={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function de(C){return function(te){return ye([C,te])}}function ye(C){if(J)throw new TypeError("Generator is already executing.");for(;D;)try{if(J=1,le&&(I=C[0]&2?le.return:C[0]?le.throw||((I=le.return)&&I.call(le),0):le.next)&&!(I=I.call(le,C[1])).done)return I;switch(le=0,I&&(C=[C[0]&2,I.value]),C[0]){case 0:case 1:I=C;break;case 4:return D.label++,{value:C[1],done:!1};case 5:D.label++,le=C[1],C=[0];continue;case 7:C=D.ops.pop(),D.trys.pop();continue;default:if(I=D.trys,!(I=I.length>0&&I[I.length-1])&&(C[0]===6||C[0]===2)){D=0;continue}if(C[0]===3&&(!I||C[1]>I[0]&&C[1]<I[3])){D.label=C[1];break}if(C[0]===6&&D.label<I[1]){D.label=I[1],I=C;break}if(I&&D.label<I[2]){D.label=I[2],D.ops.push(C);break}I[2]&&D.ops.pop(),D.trys.pop();continue}C=N.call(U,D)}catch(te){C=[6,te],le=0}finally{J=I=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}},a=bt&&bt.__asyncValues||function(U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var N=U[Symbol.asyncIterator],D;return N?N.call(U):(U=typeof i=="function"?i(U):U[Symbol.iterator](),D={},J("next"),J("throw"),J("return"),D[Symbol.asyncIterator]=function(){return this},D);function J(I){D[I]=U[I]&&function(oe){return new Promise(function(de,ye){oe=U[I](oe),le(de,ye,oe.done,oe.value)})}}function le(I,oe,de,ye){Promise.resolve(ye).then(function(C){I({value:C,done:de})},oe)}},i=bt&&bt.__values||function(U){var N=typeof Symbol=="function"&&Symbol.iterator,D=N&&U[N],J=0;if(D)return D.call(U);if(U&&typeof U.length=="number")return{next:function(){return U&&J>=U.length&&(U=void 0),{value:U&&U[J++],done:!U}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(bt,"__esModule",{value:!0}),bt.fromReadableStreamLike=bt.fromAsyncIterable=bt.fromIterable=bt.fromPromise=bt.fromArrayLike=bt.fromInteropObservable=bt.innerFrom=void 0;var u=sg(),s=f2(),l=vt(),c=d2(),f=h2(),h=v2(),m=p2(),v=lg(),y=dt(),g=o2(),S=em();function _(U){if(U instanceof l.Observable)return U;if(U!=null){if(c.isInteropObservable(U))return w(U);if(u.isArrayLike(U))return E(U);if(s.isPromise(U))return R(U);if(f.isAsyncIterable(U))return j(U);if(m.isIterable(U))return T(U);if(v.isReadableStreamLike(U))return M(U)}throw h.createInvalidObservableTypeError(U)}bt.innerFrom=_;function w(U){return new l.Observable(function(N){var D=U[S.observable]();if(y.isFunction(D.subscribe))return D.subscribe(N);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}bt.fromInteropObservable=w;function E(U){return new l.Observable(function(N){for(var D=0;D<U.length&&!N.closed;D++)N.next(U[D]);N.complete()})}bt.fromArrayLike=E;function R(U){return new l.Observable(function(N){U.then(function(D){N.closed||(N.next(D),N.complete())},function(D){return N.error(D)}).then(null,g.reportUnhandledError)})}bt.fromPromise=R;function T(U){return new l.Observable(function(N){var D,J;try{for(var le=i(U),I=le.next();!I.done;I=le.next()){var oe=I.value;if(N.next(oe),N.closed)return}}catch(de){D={error:de}}finally{try{I&&!I.done&&(J=le.return)&&J.call(le)}finally{if(D)throw D.error}}N.complete()})}bt.fromIterable=T;function j(U){return new l.Observable(function(N){V(U,N).catch(function(D){return N.error(D)})})}bt.fromAsyncIterable=j;function M(U){return j(v.readableStreamLikeToAsyncGenerator(U))}bt.fromReadableStreamLike=M;function V(U,N){var D,J,le,I;return e(this,void 0,void 0,function(){var oe,de;return r(this,function(ye){switch(ye.label){case 0:ye.trys.push([0,5,6,11]),D=a(U),ye.label=1;case 1:return[4,D.next()];case 2:if(J=ye.sent(),!!J.done)return[3,4];if(oe=J.value,N.next(oe),N.closed)return[2];ye.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return de=ye.sent(),le={error:de},[3,11];case 6:return ye.trys.push([6,,9,10]),J&&!J.done&&(I=D.return)?[4,I.call(D)]:[3,8];case 7:ye.sent(),ye.label=8;case 8:return[3,10];case 9:if(le)throw le.error;return[7];case 10:return[7];case 11:return N.complete(),[2]}})})}return bt}var zl={},Il={},dO;function Oi(){if(dO)return Il;dO=1,Object.defineProperty(Il,"__esModule",{value:!0}),Il.executeSchedule=void 0;function e(r,a,i,u,s){u===void 0&&(u=0),s===void 0&&(s=!1);var l=a.schedule(function(){i(),s?r.add(this.schedule(null,u)):this.unsubscribe()},u);if(r.add(l),!s)return l}return Il.executeSchedule=e,Il}var hO;function Ld(){if(hO)return zl;hO=1,Object.defineProperty(zl,"__esModule",{value:!0}),zl.observeOn=void 0;var e=Oi(),r=Ee(),a=je();function i(u,s){return s===void 0&&(s=0),r.operate(function(l,c){l.subscribe(a.createOperatorSubscriber(c,function(f){return e.executeSchedule(c,u,function(){return c.next(f)},s)},function(){return e.executeSchedule(c,u,function(){return c.complete()},s)},function(f){return e.executeSchedule(c,u,function(){return c.error(f)},s)}))})}return zl.observeOn=i,zl}var Fl={},vO;function Ud(){if(vO)return Fl;vO=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.subscribeOn=void 0;var e=Ee();function r(a,i){return i===void 0&&(i=0),e.operate(function(u,s){s.add(a.schedule(function(){return u.subscribe(s)},i))})}return Fl.subscribeOn=r,Fl}var mO;function fN(){if(mO)return Dl;mO=1,Object.defineProperty(Dl,"__esModule",{value:!0}),Dl.scheduleObservable=void 0;var e=$e(),r=Ld(),a=Ud();function i(u,s){return e.innerFrom(u).pipe(a.subscribeOn(s),r.observeOn(s))}return Dl.scheduleObservable=i,Dl}var Bl={},pO;function dN(){if(pO)return Bl;pO=1,Object.defineProperty(Bl,"__esModule",{value:!0}),Bl.schedulePromise=void 0;var e=$e(),r=Ld(),a=Ud();function i(u,s){return e.innerFrom(u).pipe(a.subscribeOn(s),r.observeOn(s))}return Bl.schedulePromise=i,Bl}var $l={},yO;function hN(){if(yO)return $l;yO=1,Object.defineProperty($l,"__esModule",{value:!0}),$l.scheduleArray=void 0;var e=vt();function r(a,i){return new e.Observable(function(u){var s=0;return i.schedule(function(){s===a.length?u.complete():(u.next(a[s++]),u.closed||this.schedule())})})}return $l.scheduleArray=r,$l}var Hl={},bO;function y2(){if(bO)return Hl;bO=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.scheduleIterable=void 0;var e=vt(),r=m2(),a=dt(),i=Oi();function u(s,l){return new e.Observable(function(c){var f;return i.executeSchedule(c,l,function(){f=s[r.iterator](),i.executeSchedule(c,l,function(){var h,m,v;try{h=f.next(),m=h.value,v=h.done}catch(y){c.error(y);return}v?c.complete():c.next(m)},0,!0)}),function(){return a.isFunction(f==null?void 0:f.return)&&f.return()}})}return Hl.scheduleIterable=u,Hl}var Yl={},gO;function b2(){if(gO)return Yl;gO=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.scheduleAsyncIterable=void 0;var e=vt(),r=Oi();function a(i,u){if(!i)throw new Error("Iterable cannot be null");return new e.Observable(function(s){r.executeSchedule(s,u,function(){var l=i[Symbol.asyncIterator]();r.executeSchedule(s,u,function(){l.next().then(function(c){c.done?s.complete():s.next(c.value)})},0,!0)})})}return Yl.scheduleAsyncIterable=a,Yl}var Gl={},_O;function vN(){if(_O)return Gl;_O=1,Object.defineProperty(Gl,"__esModule",{value:!0}),Gl.scheduleReadableStreamLike=void 0;var e=b2(),r=lg();function a(i,u){return e.scheduleAsyncIterable(r.readableStreamLikeToAsyncGenerator(i),u)}return Gl.scheduleReadableStreamLike=a,Gl}var SO;function g2(){if(SO)return Pl;SO=1,Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.scheduled=void 0;var e=fN(),r=dN(),a=hN(),i=y2(),u=b2(),s=d2(),l=f2(),c=sg(),f=p2(),h=h2(),m=v2(),v=lg(),y=vN();function g(S,_){if(S!=null){if(s.isInteropObservable(S))return e.scheduleObservable(S,_);if(c.isArrayLike(S))return a.scheduleArray(S,_);if(l.isPromise(S))return r.schedulePromise(S,_);if(h.isAsyncIterable(S))return u.scheduleAsyncIterable(S,_);if(f.isIterable(S))return i.scheduleIterable(S,_);if(v.isReadableStreamLike(S))return y.scheduleReadableStreamLike(S,_)}throw m.createInvalidObservableTypeError(S)}return Pl.scheduled=g,Pl}var wO;function Ei(){if(wO)return Cl;wO=1,Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.from=void 0;var e=g2(),r=$e();function a(i,u){return u?e.scheduled(i,u):r.innerFrom(i)}return Cl.from=a,Cl}var OO;function cg(){if(OO)return xl;OO=1,Object.defineProperty(xl,"__esModule",{value:!0}),xl.of=void 0;var e=on(),r=Ei();function a(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var s=e.popScheduler(i);return r.from(i,s)}return xl.of=a,xl}var Wl={},EO;function _2(){if(EO)return Wl;EO=1,Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.throwError=void 0;var e=vt(),r=dt();function a(i,u){var s=r.isFunction(i)?i:function(){return i},l=function(c){return c.error(s())};return new e.Observable(u?function(c){return u.schedule(l,0,c)}:l)}return Wl.throwError=a,Wl}var AO;function fg(){return AO||(AO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.observeNotification=e.Notification=e.NotificationKind=void 0;var r=Qn(),a=cg(),i=_2(),u=dt();(function(c){c.NEXT="N",c.ERROR="E",c.COMPLETE="C"})(e.NotificationKind||(e.NotificationKind={}));var s=function(){function c(f,h,m){this.kind=f,this.value=h,this.error=m,this.hasValue=f==="N"}return c.prototype.observe=function(f){return l(this,f)},c.prototype.do=function(f,h,m){var v=this,y=v.kind,g=v.value,S=v.error;return y==="N"?f==null?void 0:f(g):y==="E"?h==null?void 0:h(S):m==null?void 0:m()},c.prototype.accept=function(f,h,m){var v;return u.isFunction((v=f)===null||v===void 0?void 0:v.next)?this.observe(f):this.do(f,h,m)},c.prototype.toObservable=function(){var f=this,h=f.kind,m=f.value,v=f.error,y=h==="N"?a.of(m):h==="E"?i.throwError(function(){return v}):h==="C"?r.EMPTY:0;if(!y)throw new TypeError("Unexpected notification kind "+h);return y},c.createNext=function(f){return new c("N",f)},c.createError=function(f){return new c("E",void 0,f)},c.createComplete=function(){return c.completeNotification},c.completeNotification=new c("C"),c}();e.Notification=s;function l(c,f){var h,m,v,y=c,g=y.kind,S=y.value,_=y.error;if(typeof g!="string")throw new TypeError('Invalid notification, missing "kind"');g==="N"?(h=f.next)===null||h===void 0||h.call(f,S):g==="E"?(m=f.error)===null||m===void 0||m.call(f,_):(v=f.complete)===null||v===void 0||v.call(f)}e.observeNotification=l}(Vy)),Vy}var Ql={},RO;function mN(){if(RO)return Ql;RO=1,Object.defineProperty(Ql,"__esModule",{value:!0}),Ql.isObservable=void 0;var e=vt(),r=dt();function a(i){return!!i&&(i instanceof e.Observable||r.isFunction(i.lift)&&r.isFunction(i.subscribe))}return Ql.isObservable=a,Ql}var Xl={},Kl={},TO;function $o(){if(TO)return Kl;TO=1,Object.defineProperty(Kl,"__esModule",{value:!0}),Kl.EmptyError=void 0;var e=Bo();return Kl.EmptyError=e.createErrorClass(function(r){return function(){r(this),this.name="EmptyError",this.message="no elements in sequence"}}),Kl}var MO;function pN(){if(MO)return Xl;MO=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.lastValueFrom=void 0;var e=$o();function r(a,i){var u=typeof i=="object";return new Promise(function(s,l){var c=!1,f;a.subscribe({next:function(h){f=h,c=!0},error:l,complete:function(){c?s(f):u?s(i.defaultValue):l(new e.EmptyError)}})})}return Xl.lastValueFrom=r,Xl}var Zl={},xO;function yN(){if(xO)return Zl;xO=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.firstValueFrom=void 0;var e=$o(),r=kd();function a(i,u){var s=typeof u=="object";return new Promise(function(l,c){var f=new r.SafeSubscriber({next:function(h){l(h),f.unsubscribe()},error:c,complete:function(){s?l(u.defaultValue):c(new e.EmptyError)}});i.subscribe(f)})}return Zl.firstValueFrom=a,Zl}var Jl={},jO;function S2(){if(jO)return Jl;jO=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.ArgumentOutOfRangeError=void 0;var e=Bo();return Jl.ArgumentOutOfRangeError=e.createErrorClass(function(r){return function(){r(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}}),Jl}var ec={},CO;function w2(){if(CO)return ec;CO=1,Object.defineProperty(ec,"__esModule",{value:!0}),ec.NotFoundError=void 0;var e=Bo();return ec.NotFoundError=e.createErrorClass(function(r){return function(i){r(this),this.name="NotFoundError",this.message=i}}),ec}var tc={},PO;function O2(){if(PO)return tc;PO=1,Object.defineProperty(tc,"__esModule",{value:!0}),tc.SequenceError=void 0;var e=Bo();return tc.SequenceError=e.createErrorClass(function(r){return function(i){r(this),this.name="SequenceError",this.message=i}}),tc}var Uy={},rc={},DO;function dg(){if(DO)return rc;DO=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.isValidDate=void 0;function e(r){return r instanceof Date&&!isNaN(r)}return rc.isValidDate=e,rc}var NO;function Uv(){return NO||(NO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.timeout=e.TimeoutError=void 0;var r=an(),a=dg(),i=Ee(),u=$e(),s=Bo(),l=je(),c=Oi();e.TimeoutError=s.createErrorClass(function(m){return function(y){y===void 0&&(y=null),m(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=y}});function f(m,v){var y=a.isValidDate(m)?{first:m}:typeof m=="number"?{each:m}:m,g=y.first,S=y.each,_=y.with,w=_===void 0?h:_,E=y.scheduler,R=E===void 0?v??r.asyncScheduler:E,T=y.meta,j=T===void 0?null:T;if(g==null&&S==null)throw new TypeError("No timeout provided.");return i.operate(function(M,V){var U,N,D=null,J=0,le=function(I){N=c.executeSchedule(V,R,function(){try{U.unsubscribe(),u.innerFrom(w({meta:j,lastValue:D,seen:J})).subscribe(V)}catch(oe){V.error(oe)}},I)};U=M.subscribe(l.createOperatorSubscriber(V,function(I){N==null||N.unsubscribe(),J++,V.next(D=I),S>0&&le(S)},void 0,void 0,function(){N!=null&&N.closed||N==null||N.unsubscribe(),D=null})),!J&&le(g!=null?typeof g=="number"?g:+g-R.now():S)})}e.timeout=f;function h(m){throw new e.TimeoutError(m)}}(Uy)),Uy}var nc={},pa={},ya={},ac={},kO;function Ai(){if(kO)return ac;kO=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.map=void 0;var e=Ee(),r=je();function a(i,u){return e.operate(function(s,l){var c=0;s.subscribe(r.createOperatorSubscriber(l,function(f){l.next(i.call(u,f,c++))}))})}return ac.map=a,ac}var qO;function Ho(){if(qO)return ya;qO=1;var e=ya&&ya.__read||function(l,c){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var h=f.call(l),m,v=[],y;try{for(;(c===void 0||c-- >0)&&!(m=h.next()).done;)v.push(m.value)}catch(g){y={error:g}}finally{try{m&&!m.done&&(f=h.return)&&f.call(h)}finally{if(y)throw y.error}}return v},r=ya&&ya.__spreadArray||function(l,c){for(var f=0,h=c.length,m=l.length;f<h;f++,m++)l[m]=c[f];return l};Object.defineProperty(ya,"__esModule",{value:!0}),ya.mapOneOrManyArgs=void 0;var a=Ai(),i=Array.isArray;function u(l,c){return i(c)?l.apply(void 0,r([],e(c))):l(c)}function s(l){return a.map(function(c){return u(l,c)})}return ya.mapOneOrManyArgs=s,ya}var VO;function E2(){if(VO)return pa;VO=1;var e=pa&&pa.__read||function(h,m){var v=typeof Symbol=="function"&&h[Symbol.iterator];if(!v)return h;var y=v.call(h),g,S=[],_;try{for(;(m===void 0||m-- >0)&&!(g=y.next()).done;)S.push(g.value)}catch(w){_={error:w}}finally{try{g&&!g.done&&(v=y.return)&&v.call(y)}finally{if(_)throw _.error}}return S},r=pa&&pa.__spreadArray||function(h,m){for(var v=0,y=m.length,g=h.length;v<y;v++,g++)h[g]=m[v];return h};Object.defineProperty(pa,"__esModule",{value:!0}),pa.bindCallbackInternals=void 0;var a=nm(),i=vt(),u=Ud(),s=Ho(),l=Ld(),c=ug();function f(h,m,v,y){if(v)if(a.isScheduler(v))y=v;else return function(){for(var g=[],S=0;S<arguments.length;S++)g[S]=arguments[S];return f(h,m,y).apply(this,g).pipe(s.mapOneOrManyArgs(v))};return y?function(){for(var g=[],S=0;S<arguments.length;S++)g[S]=arguments[S];return f(h,m).apply(this,g).pipe(u.subscribeOn(y),l.observeOn(y))}:function(){for(var g=this,S=[],_=0;_<arguments.length;_++)S[_]=arguments[_];var w=new c.AsyncSubject,E=!0;return new i.Observable(function(R){var T=w.subscribe(R);if(E){E=!1;var j=!1,M=!1;m.apply(g,r(r([],e(S)),[function(){for(var V=[],U=0;U<arguments.length;U++)V[U]=arguments[U];if(h){var N=V.shift();if(N!=null){w.error(N);return}}w.next(1<V.length?V:V[0]),M=!0,j&&w.complete()}])),M&&w.complete(),j=!0}return T})}}return pa.bindCallbackInternals=f,pa}var LO;function bN(){if(LO)return nc;LO=1,Object.defineProperty(nc,"__esModule",{value:!0}),nc.bindCallback=void 0;var e=E2();function r(a,i,u){return e.bindCallbackInternals(!1,a,i,u)}return nc.bindCallback=r,nc}var ic={},UO;function gN(){if(UO)return ic;UO=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.bindNodeCallback=void 0;var e=E2();function r(a,i,u){return e.bindCallbackInternals(!0,a,i,u)}return ic.bindNodeCallback=r,ic}var bo={},oc={},zO;function A2(){if(zO)return oc;zO=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.argsArgArrayOrObject=void 0;var e=Array.isArray,r=Object.getPrototypeOf,a=Object.prototype,i=Object.keys;function u(l){if(l.length===1){var c=l[0];if(e(c))return{args:c,keys:null};if(s(c)){var f=i(c);return{args:f.map(function(h){return c[h]}),keys:f}}}return{args:l,keys:null}}oc.argsArgArrayOrObject=u;function s(l){return l&&typeof l=="object"&&r(l)===a}return oc}var uc={},IO;function R2(){if(IO)return uc;IO=1,Object.defineProperty(uc,"__esModule",{value:!0}),uc.createObject=void 0;function e(r,a){return r.reduce(function(i,u,s){return i[u]=a[s],i},{})}return uc.createObject=e,uc}var FO;function hg(){if(FO)return bo;FO=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.combineLatestInit=bo.combineLatest=void 0;var e=vt(),r=A2(),a=Ei(),i=Or(),u=Ho(),s=on(),l=R2(),c=je(),f=Oi();function h(){for(var y=[],g=0;g<arguments.length;g++)y[g]=arguments[g];var S=s.popScheduler(y),_=s.popResultSelector(y),w=r.argsArgArrayOrObject(y),E=w.args,R=w.keys;if(E.length===0)return a.from([],S);var T=new e.Observable(m(E,S,R?function(j){return l.createObject(R,j)}:i.identity));return _?T.pipe(u.mapOneOrManyArgs(_)):T}bo.combineLatest=h;function m(y,g,S){return S===void 0&&(S=i.identity),function(_){v(g,function(){for(var w=y.length,E=new Array(w),R=w,T=w,j=function(V){v(g,function(){var U=a.from(y[V],g),N=!1;U.subscribe(c.createOperatorSubscriber(_,function(D){E[V]=D,N||(N=!0,T--),T||_.next(S(E.slice()))},function(){--R||_.complete()}))},_)},M=0;M<w;M++)j(M)},_)}}bo.combineLatestInit=m;function v(y,g,S){y?f.executeSchedule(S,y,g):g()}return bo}var sc={},lc={},cc={},fc={},dc={},BO;function vg(){if(BO)return dc;BO=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.mergeInternals=void 0;var e=$e(),r=Oi(),a=je();function i(u,s,l,c,f,h,m,v){var y=[],g=0,S=0,_=!1,w=function(){_&&!y.length&&!g&&s.complete()},E=function(T){return g<c?R(T):y.push(T)},R=function(T){h&&s.next(T),g++;var j=!1;e.innerFrom(l(T,S++)).subscribe(a.createOperatorSubscriber(s,function(M){f==null||f(M),h?E(M):s.next(M)},function(){j=!0},void 0,function(){if(j)try{g--;for(var M=function(){var V=y.shift();m?r.executeSchedule(s,m,function(){return R(V)}):R(V)};y.length&&g<c;)M();w()}catch(V){s.error(V)}}))};return u.subscribe(a.createOperatorSubscriber(s,E,function(){_=!0,w()})),function(){v==null||v()}}return dc.mergeInternals=i,dc}var $O;function La(){if($O)return fc;$O=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.mergeMap=void 0;var e=Ai(),r=$e(),a=Ee(),i=vg(),u=dt();function s(l,c,f){return f===void 0&&(f=1/0),u.isFunction(c)?s(function(h,m){return e.map(function(v,y){return c(h,v,m,y)})(r.innerFrom(l(h,m)))},f):(typeof c=="number"&&(f=c),a.operate(function(h,m){return i.mergeInternals(h,m,l,f)}))}return fc.mergeMap=s,fc}var HO;function zd(){if(HO)return cc;HO=1,Object.defineProperty(cc,"__esModule",{value:!0}),cc.mergeAll=void 0;var e=La(),r=Or();function a(i){return i===void 0&&(i=1/0),e.mergeMap(r.identity,i)}return cc.mergeAll=a,cc}var YO;function am(){if(YO)return lc;YO=1,Object.defineProperty(lc,"__esModule",{value:!0}),lc.concatAll=void 0;var e=zd();function r(){return e.mergeAll(1)}return lc.concatAll=r,lc}var GO;function im(){if(GO)return sc;GO=1,Object.defineProperty(sc,"__esModule",{value:!0}),sc.concat=void 0;var e=am(),r=on(),a=Ei();function i(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];return e.concatAll()(a.from(u,r.popScheduler(u)))}return sc.concat=i,sc}var hc={},vc={},WO;function om(){if(WO)return vc;WO=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.defer=void 0;var e=vt(),r=$e();function a(i){return new e.Observable(function(u){r.innerFrom(i()).subscribe(u)})}return vc.defer=a,vc}var QO;function _N(){if(QO)return hc;QO=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.connectable=void 0;var e=Er(),r=vt(),a=om(),i={connector:function(){return new e.Subject},resetOnDisconnect:!0};function u(s,l){l===void 0&&(l=i);var c=null,f=l.connector,h=l.resetOnDisconnect,m=h===void 0?!0:h,v=f(),y=new r.Observable(function(g){return v.subscribe(g)});return y.connect=function(){return(!c||c.closed)&&(c=a.defer(function(){return s}).subscribe(v),m&&c.add(function(){return v=f()})),c},y}return hc.connectable=u,hc}var mc={},XO;function SN(){if(XO)return mc;XO=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.forkJoin=void 0;var e=vt(),r=A2(),a=$e(),i=on(),u=je(),s=Ho(),l=R2();function c(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];var m=i.popResultSelector(f),v=r.argsArgArrayOrObject(f),y=v.args,g=v.keys,S=new e.Observable(function(_){var w=y.length;if(!w){_.complete();return}for(var E=new Array(w),R=w,T=w,j=function(V){var U=!1;a.innerFrom(y[V]).subscribe(u.createOperatorSubscriber(_,function(N){U||(U=!0,T--),E[V]=N},function(){return R--},void 0,function(){(!R||!U)&&(T||_.next(g?l.createObject(g,E):E),_.complete())}))},M=0;M<w;M++)j(M)});return m?S.pipe(s.mapOneOrManyArgs(m)):S}return mc.forkJoin=c,mc}var go={},KO;function wN(){if(KO)return go;KO=1;var e=go&&go.__read||function(_,w){var E=typeof Symbol=="function"&&_[Symbol.iterator];if(!E)return _;var R=E.call(_),T,j=[],M;try{for(;(w===void 0||w-- >0)&&!(T=R.next()).done;)j.push(T.value)}catch(V){M={error:V}}finally{try{T&&!T.done&&(E=R.return)&&E.call(R)}finally{if(M)throw M.error}}return j};Object.defineProperty(go,"__esModule",{value:!0}),go.fromEvent=void 0;var r=$e(),a=vt(),i=La(),u=sg(),s=dt(),l=Ho(),c=["addListener","removeListener"],f=["addEventListener","removeEventListener"],h=["on","off"];function m(_,w,E,R){if(s.isFunction(E)&&(R=E,E=void 0),R)return m(_,w,E).pipe(l.mapOneOrManyArgs(R));var T=e(S(_)?f.map(function(V){return function(U){return _[V](w,U,E)}}):y(_)?c.map(v(_,w)):g(_)?h.map(v(_,w)):[],2),j=T[0],M=T[1];if(!j&&u.isArrayLike(_))return i.mergeMap(function(V){return m(V,w,E)})(r.innerFrom(_));if(!j)throw new TypeError("Invalid event target");return new a.Observable(function(V){var U=function(){for(var N=[],D=0;D<arguments.length;D++)N[D]=arguments[D];return V.next(1<N.length?N:N[0])};return j(U),function(){return M(U)}})}go.fromEvent=m;function v(_,w){return function(E){return function(R){return _[E](w,R)}}}function y(_){return s.isFunction(_.addListener)&&s.isFunction(_.removeListener)}function g(_){return s.isFunction(_.on)&&s.isFunction(_.off)}function S(_){return s.isFunction(_.addEventListener)&&s.isFunction(_.removeEventListener)}return go}var pc={},ZO;function ON(){if(ZO)return pc;ZO=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.fromEventPattern=void 0;var e=vt(),r=dt(),a=Ho();function i(u,s,l){return l?i(u,s).pipe(a.mapOneOrManyArgs(l)):new e.Observable(function(c){var f=function(){for(var m=[],v=0;v<arguments.length;v++)m[v]=arguments[v];return c.next(m.length===1?m[0]:m)},h=u(f);return r.isFunction(s)?function(){return s(f,h)}:void 0})}return pc.fromEventPattern=i,pc}var _o={},JO;function EN(){if(JO)return _o;JO=1;var e=_o&&_o.__generator||function(l,c){var f={label:0,sent:function(){if(v[0]&1)throw v[1];return v[1]},trys:[],ops:[]},h,m,v,y;return y={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(y[Symbol.iterator]=function(){return this}),y;function g(_){return function(w){return S([_,w])}}function S(_){if(h)throw new TypeError("Generator is already executing.");for(;f;)try{if(h=1,m&&(v=_[0]&2?m.return:_[0]?m.throw||((v=m.return)&&v.call(m),0):m.next)&&!(v=v.call(m,_[1])).done)return v;switch(m=0,v&&(_=[_[0]&2,v.value]),_[0]){case 0:case 1:v=_;break;case 4:return f.label++,{value:_[1],done:!1};case 5:f.label++,m=_[1],_=[0];continue;case 7:_=f.ops.pop(),f.trys.pop();continue;default:if(v=f.trys,!(v=v.length>0&&v[v.length-1])&&(_[0]===6||_[0]===2)){f=0;continue}if(_[0]===3&&(!v||_[1]>v[0]&&_[1]<v[3])){f.label=_[1];break}if(_[0]===6&&f.label<v[1]){f.label=v[1],v=_;break}if(v&&f.label<v[2]){f.label=v[2],f.ops.push(_);break}v[2]&&f.ops.pop(),f.trys.pop();continue}_=c.call(l,f)}catch(w){_=[6,w],m=0}finally{h=v=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}};Object.defineProperty(_o,"__esModule",{value:!0}),_o.generate=void 0;var r=Or(),a=nm(),i=om(),u=y2();function s(l,c,f,h,m){var v,y,g,S;arguments.length===1?(v=l,S=v.initialState,c=v.condition,f=v.iterate,y=v.resultSelector,g=y===void 0?r.identity:y,m=v.scheduler):(S=l,!h||a.isScheduler(h)?(g=r.identity,m=h):g=h);function _(){var w;return e(this,function(E){switch(E.label){case 0:w=S,E.label=1;case 1:return!c||c(w)?[4,g(w)]:[3,4];case 2:E.sent(),E.label=3;case 3:return w=f(w),[3,1];case 4:return[2]}})}return i.defer(m?function(){return u.scheduleIterable(_(),m)}:_)}return _o.generate=s,_o}var yc={},eE;function AN(){if(eE)return yc;eE=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.iif=void 0;var e=om();function r(a,i,u){return e.defer(function(){return a()?i:u})}return yc.iif=r,yc}var bc={},gc={},tE;function Yo(){if(tE)return gc;tE=1,Object.defineProperty(gc,"__esModule",{value:!0}),gc.timer=void 0;var e=vt(),r=an(),a=nm(),i=dg();function u(s,l,c){s===void 0&&(s=0),c===void 0&&(c=r.async);var f=-1;return l!=null&&(a.isScheduler(l)?c=l:f=l),new e.Observable(function(h){var m=i.isValidDate(s)?+s-c.now():s;m<0&&(m=0);var v=0;return c.schedule(function(){h.closed||(h.next(v++),0<=f?this.schedule(void 0,f):h.complete())},m)})}return gc.timer=u,gc}var rE;function T2(){if(rE)return bc;rE=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.interval=void 0;var e=an(),r=Yo();function a(i,u){return i===void 0&&(i=0),u===void 0&&(u=e.asyncScheduler),i<0&&(i=0),r.timer(i,i,u)}return bc.interval=a,bc}var _c={},nE;function RN(){if(nE)return _c;nE=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.merge=void 0;var e=zd(),r=$e(),a=Qn(),i=on(),u=Ei();function s(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];var f=i.popScheduler(l),h=i.popNumber(l,1/0),m=l;return m.length?m.length===1?r.innerFrom(m[0]):e.mergeAll(h)(u.from(m,f)):a.EMPTY}return _c.merge=s,_c}var zy={},aE;function iE(){return aE||(aE=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.never=e.NEVER=void 0;var r=vt(),a=wr();e.NEVER=new r.Observable(a.noop);function i(){return e.NEVER}e.never=i}(zy)),zy}var Sc={},wc={},oE;function ts(){if(oE)return wc;oE=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.argsOrArgArray=void 0;var e=Array.isArray;function r(a){return a.length===1&&e(a[0])?a[0]:a}return wc.argsOrArgArray=r,wc}var uE;function M2(){if(uE)return Sc;uE=1,Object.defineProperty(Sc,"__esModule",{value:!0}),Sc.onErrorResumeNext=void 0;var e=vt(),r=ts(),a=je(),i=wr(),u=$e();function s(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];var f=r.argsOrArgArray(l);return new e.Observable(function(h){var m=0,v=function(){if(m<f.length){var y=void 0;try{y=u.innerFrom(f[m++])}catch{v();return}var g=new a.OperatorSubscriber(h,void 0,i.noop,i.noop);y.subscribe(g),g.add(v)}else h.complete()};v()})}return Sc.onErrorResumeNext=s,Sc}var Oc={},sE;function TN(){if(sE)return Oc;sE=1,Object.defineProperty(Oc,"__esModule",{value:!0}),Oc.pairs=void 0;var e=Ei();function r(a,i){return e.from(Object.entries(a),i)}return Oc.pairs=r,Oc}var Ec={},Ac={},lE;function x2(){if(lE)return Ac;lE=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.not=void 0;function e(r,a){return function(i,u){return!r.call(a,i,u)}}return Ac.not=e,Ac}var Rc={},cE;function Ri(){if(cE)return Rc;cE=1,Object.defineProperty(Rc,"__esModule",{value:!0}),Rc.filter=void 0;var e=Ee(),r=je();function a(i,u){return e.operate(function(s,l){var c=0;s.subscribe(r.createOperatorSubscriber(l,function(f){return i.call(u,f,c++)&&l.next(f)}))})}return Rc.filter=a,Rc}var fE;function MN(){if(fE)return Ec;fE=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.partition=void 0;var e=x2(),r=Ri(),a=$e();function i(u,s,l){return[r.filter(s,l)(a.innerFrom(u)),r.filter(e.not(s,l))(a.innerFrom(u))]}return Ec.partition=i,Ec}var So={},dE;function j2(){if(dE)return So;dE=1,Object.defineProperty(So,"__esModule",{value:!0}),So.raceInit=So.race=void 0;var e=vt(),r=$e(),a=ts(),i=je();function u(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return l=a.argsOrArgArray(l),l.length===1?r.innerFrom(l[0]):new e.Observable(s(l))}So.race=u;function s(l){return function(c){for(var f=[],h=function(v){f.push(r.innerFrom(l[v]).subscribe(i.createOperatorSubscriber(c,function(y){if(f){for(var g=0;g<f.length;g++)g!==v&&f[g].unsubscribe();f=null}c.next(y)})))},m=0;f&&!c.closed&&m<l.length;m++)h(m)}}return So.raceInit=s,So}var Tc={},hE;function xN(){if(hE)return Tc;hE=1,Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.range=void 0;var e=vt(),r=Qn();function a(i,u,s){if(u==null&&(u=i,i=0),u<=0)return r.EMPTY;var l=u+i;return new e.Observable(s?function(c){var f=i;return s.schedule(function(){f<l?(c.next(f++),this.schedule()):c.complete()})}:function(c){for(var f=i;f<l&&!c.closed;)c.next(f++);c.complete()})}return Tc.range=a,Tc}var Mc={},vE;function jN(){if(vE)return Mc;vE=1,Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.using=void 0;var e=vt(),r=$e(),a=Qn();function i(u,s){return new e.Observable(function(l){var c=u(),f=s(c),h=f?r.innerFrom(f):a.EMPTY;return h.subscribe(l),function(){c&&c.unsubscribe()}})}return Mc.using=i,Mc}var ba={},mE;function mg(){if(mE)return ba;mE=1;var e=ba&&ba.__read||function(h,m){var v=typeof Symbol=="function"&&h[Symbol.iterator];if(!v)return h;var y=v.call(h),g,S=[],_;try{for(;(m===void 0||m-- >0)&&!(g=y.next()).done;)S.push(g.value)}catch(w){_={error:w}}finally{try{g&&!g.done&&(v=y.return)&&v.call(y)}finally{if(_)throw _.error}}return S},r=ba&&ba.__spreadArray||function(h,m){for(var v=0,y=m.length,g=h.length;v<y;v++,g++)h[g]=m[v];return h};Object.defineProperty(ba,"__esModule",{value:!0}),ba.zip=void 0;var a=vt(),i=$e(),u=ts(),s=Qn(),l=je(),c=on();function f(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];var v=c.popResultSelector(h),y=u.argsOrArgArray(h);return y.length?new a.Observable(function(g){var S=y.map(function(){return[]}),_=y.map(function(){return!1});g.add(function(){S=_=null});for(var w=function(R){i.innerFrom(y[R]).subscribe(l.createOperatorSubscriber(g,function(T){if(S[R].push(T),S.every(function(M){return M.length})){var j=S.map(function(M){return M.shift()});g.next(v?v.apply(void 0,r([],e(j))):j),S.some(function(M,V){return!M.length&&_[V]})&&g.complete()}},function(){_[R]=!0,!S[R].length&&g.complete()}))},E=0;!g.closed&&E<y.length;E++)w(E);return function(){S=_=null}}):s.EMPTY}return ba.zip=f,ba}var Iy={},pE;function CN(){return pE||(pE=1,Object.defineProperty(Iy,"__esModule",{value:!0})),Iy}var xc={},yE;function pg(){if(yE)return xc;yE=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.audit=void 0;var e=Ee(),r=$e(),a=je();function i(u){return e.operate(function(s,l){var c=!1,f=null,h=null,m=!1,v=function(){if(h==null||h.unsubscribe(),h=null,c){c=!1;var g=f;f=null,l.next(g)}m&&l.complete()},y=function(){h=null,m&&l.complete()};s.subscribe(a.createOperatorSubscriber(l,function(g){c=!0,f=g,h||r.innerFrom(u(g)).subscribe(h=a.createOperatorSubscriber(l,v,y))},function(){m=!0,(!c||!h||h.closed)&&l.complete()}))})}return xc.audit=i,xc}var jc={},bE;function C2(){if(bE)return jc;bE=1,Object.defineProperty(jc,"__esModule",{value:!0}),jc.auditTime=void 0;var e=an(),r=pg(),a=Yo();function i(u,s){return s===void 0&&(s=e.asyncScheduler),r.audit(function(){return a.timer(u,s)})}return jc.auditTime=i,jc}var Cc={},gE;function P2(){if(gE)return Cc;gE=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.buffer=void 0;var e=Ee(),r=wr(),a=je(),i=$e();function u(s){return e.operate(function(l,c){var f=[];return l.subscribe(a.createOperatorSubscriber(c,function(h){return f.push(h)},function(){c.next(f),c.complete()})),i.innerFrom(s).subscribe(a.createOperatorSubscriber(c,function(){var h=f;f=[],c.next(h)},r.noop)),function(){f=null}})}return Cc.buffer=u,Cc}var wo={},_E;function D2(){if(_E)return wo;_E=1;var e=wo&&wo.__values||function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(wo,"__esModule",{value:!0}),wo.bufferCount=void 0;var r=Ee(),a=je(),i=wi();function u(s,l){return l===void 0&&(l=null),l=l??s,r.operate(function(c,f){var h=[],m=0;c.subscribe(a.createOperatorSubscriber(f,function(v){var y,g,S,_,w=null;m++%l===0&&h.push([]);try{for(var E=e(h),R=E.next();!R.done;R=E.next()){var T=R.value;T.push(v),s<=T.length&&(w=w??[],w.push(T))}}catch(V){y={error:V}}finally{try{R&&!R.done&&(g=E.return)&&g.call(E)}finally{if(y)throw y.error}}if(w)try{for(var j=e(w),M=j.next();!M.done;M=j.next()){var T=M.value;i.arrRemove(h,T),f.next(T)}}catch(V){S={error:V}}finally{try{M&&!M.done&&(_=j.return)&&_.call(j)}finally{if(S)throw S.error}}},function(){var v,y;try{for(var g=e(h),S=g.next();!S.done;S=g.next()){var _=S.value;f.next(_)}}catch(w){v={error:w}}finally{try{S&&!S.done&&(y=g.return)&&y.call(g)}finally{if(v)throw v.error}}f.complete()},void 0,function(){h=null}))})}return wo.bufferCount=u,wo}var Oo={},SE;function N2(){if(SE)return Oo;SE=1;var e=Oo&&Oo.__values||function(h){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&h[m],y=0;if(v)return v.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&y>=h.length&&(h=void 0),{value:h&&h[y++],done:!h}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.bufferTime=void 0;var r=gn(),a=Ee(),i=je(),u=wi(),s=an(),l=on(),c=Oi();function f(h){for(var m,v,y=[],g=1;g<arguments.length;g++)y[g-1]=arguments[g];var S=(m=l.popScheduler(y))!==null&&m!==void 0?m:s.asyncScheduler,_=(v=y[0])!==null&&v!==void 0?v:null,w=y[1]||1/0;return a.operate(function(E,R){var T=[],j=!1,M=function(N){var D=N.buffer,J=N.subs;J.unsubscribe(),u.arrRemove(T,N),R.next(D),j&&V()},V=function(){if(T){var N=new r.Subscription;R.add(N);var D=[],J={buffer:D,subs:N};T.push(J),c.executeSchedule(N,S,function(){return M(J)},h)}};_!==null&&_>=0?c.executeSchedule(R,S,V,_,!0):j=!0,V();var U=i.createOperatorSubscriber(R,function(N){var D,J,le=T.slice();try{for(var I=e(le),oe=I.next();!oe.done;oe=I.next()){var de=oe.value,ye=de.buffer;ye.push(N),w<=ye.length&&M(de)}}catch(C){D={error:C}}finally{try{oe&&!oe.done&&(J=I.return)&&J.call(I)}finally{if(D)throw D.error}}},function(){for(;T!=null&&T.length;)R.next(T.shift().buffer);U==null||U.unsubscribe(),R.complete(),R.unsubscribe()},void 0,function(){return T=null});E.subscribe(U)})}return Oo.bufferTime=f,Oo}var Eo={},wE;function k2(){if(wE)return Eo;wE=1;var e=Eo&&Eo.__values||function(f){var h=typeof Symbol=="function"&&Symbol.iterator,m=h&&f[h],v=0;if(m)return m.call(f);if(f&&typeof f.length=="number")return{next:function(){return f&&v>=f.length&&(f=void 0),{value:f&&f[v++],done:!f}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.bufferToggle=void 0;var r=gn(),a=Ee(),i=$e(),u=je(),s=wr(),l=wi();function c(f,h){return a.operate(function(m,v){var y=[];i.innerFrom(f).subscribe(u.createOperatorSubscriber(v,function(g){var S=[];y.push(S);var _=new r.Subscription,w=function(){l.arrRemove(y,S),v.next(S),_.unsubscribe()};_.add(i.innerFrom(h(g)).subscribe(u.createOperatorSubscriber(v,w,s.noop)))},s.noop)),m.subscribe(u.createOperatorSubscriber(v,function(g){var S,_;try{for(var w=e(y),E=w.next();!E.done;E=w.next()){var R=E.value;R.push(g)}}catch(T){S={error:T}}finally{try{E&&!E.done&&(_=w.return)&&_.call(w)}finally{if(S)throw S.error}}},function(){for(;y.length>0;)v.next(y.shift());v.complete()}))})}return Eo.bufferToggle=c,Eo}var Pc={},OE;function q2(){if(OE)return Pc;OE=1,Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.bufferWhen=void 0;var e=Ee(),r=wr(),a=je(),i=$e();function u(s){return e.operate(function(l,c){var f=null,h=null,m=function(){h==null||h.unsubscribe();var v=f;f=[],v&&c.next(v),i.innerFrom(s()).subscribe(h=a.createOperatorSubscriber(c,m,r.noop))};m(),l.subscribe(a.createOperatorSubscriber(c,function(v){return f==null?void 0:f.push(v)},function(){f&&c.next(f),c.complete()},void 0,function(){return f=h=null}))})}return Pc.bufferWhen=u,Pc}var Dc={},EE;function V2(){if(EE)return Dc;EE=1,Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.catchError=void 0;var e=$e(),r=je(),a=Ee();function i(u){return a.operate(function(s,l){var c=null,f=!1,h;c=s.subscribe(r.createOperatorSubscriber(l,void 0,void 0,function(m){h=e.innerFrom(u(m,i(u)(s))),c?(c.unsubscribe(),c=null,h.subscribe(l)):f=!0})),f&&(c.unsubscribe(),c=null,h.subscribe(l))})}return Dc.catchError=i,Dc}var Nc={},kc={},qc={},Vc={},Lc={},Uc={},AE;function L2(){if(AE)return Uc;AE=1,Object.defineProperty(Uc,"__esModule",{value:!0}),Uc.scanInternals=void 0;var e=je();function r(a,i,u,s,l){return function(c,f){var h=u,m=i,v=0;c.subscribe(e.createOperatorSubscriber(f,function(y){var g=v++;m=h?a(m,y,g):(h=!0,y),s&&f.next(m)},l&&function(){h&&f.next(m),f.complete()}))}}return Uc.scanInternals=r,Uc}var RE;function rs(){if(RE)return Lc;RE=1,Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.reduce=void 0;var e=L2(),r=Ee();function a(i,u){return r.operate(e.scanInternals(i,u,arguments.length>=2,!1,!0))}return Lc.reduce=a,Lc}var TE;function yg(){if(TE)return Vc;TE=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.toArray=void 0;var e=rs(),r=Ee(),a=function(u,s){return u.push(s),u};function i(){return r.operate(function(u,s){e.reduce(a,[])(u).subscribe(s)})}return Vc.toArray=i,Vc}var ME;function U2(){if(ME)return qc;ME=1,Object.defineProperty(qc,"__esModule",{value:!0}),qc.joinAllInternals=void 0;var e=Or(),r=Ho(),a=tm(),i=La(),u=yg();function s(l,c){return a.pipe(u.toArray(),i.mergeMap(function(f){return l(f)}),c?r.mapOneOrManyArgs(c):e.identity)}return qc.joinAllInternals=s,qc}var xE;function bg(){if(xE)return kc;xE=1,Object.defineProperty(kc,"__esModule",{value:!0}),kc.combineLatestAll=void 0;var e=hg(),r=U2();function a(i){return r.joinAllInternals(e.combineLatest,i)}return kc.combineLatestAll=a,kc}var jE;function z2(){if(jE)return Nc;jE=1,Object.defineProperty(Nc,"__esModule",{value:!0}),Nc.combineAll=void 0;var e=bg();return Nc.combineAll=e.combineLatestAll,Nc}var ga={},_a={},CE;function I2(){if(CE)return _a;CE=1;var e=_a&&_a.__read||function(h,m){var v=typeof Symbol=="function"&&h[Symbol.iterator];if(!v)return h;var y=v.call(h),g,S=[],_;try{for(;(m===void 0||m-- >0)&&!(g=y.next()).done;)S.push(g.value)}catch(w){_={error:w}}finally{try{g&&!g.done&&(v=y.return)&&v.call(y)}finally{if(_)throw _.error}}return S},r=_a&&_a.__spreadArray||function(h,m){for(var v=0,y=m.length,g=h.length;v<y;v++,g++)h[g]=m[v];return h};Object.defineProperty(_a,"__esModule",{value:!0}),_a.combineLatest=void 0;var a=hg(),i=Ee(),u=ts(),s=Ho(),l=tm(),c=on();function f(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];var v=c.popResultSelector(h);return v?l.pipe(f.apply(void 0,r([],e(h))),s.mapOneOrManyArgs(v)):i.operate(function(y,g){a.combineLatestInit(r([y],e(u.argsOrArgArray(h))))(g)})}return _a.combineLatest=f,_a}var PE;function F2(){if(PE)return ga;PE=1;var e=ga&&ga.__read||function(u,s){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var c=l.call(u),f,h=[],m;try{for(;(s===void 0||s-- >0)&&!(f=c.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=c.return)&&l.call(c)}finally{if(m)throw m.error}}return h},r=ga&&ga.__spreadArray||function(u,s){for(var l=0,c=s.length,f=u.length;l<c;l++,f++)u[f]=s[l];return u};Object.defineProperty(ga,"__esModule",{value:!0}),ga.combineLatestWith=void 0;var a=I2();function i(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];return a.combineLatest.apply(void 0,r([],e(u)))}return ga.combineLatestWith=i,ga}var zc={},DE;function gg(){if(DE)return zc;DE=1,Object.defineProperty(zc,"__esModule",{value:!0}),zc.concatMap=void 0;var e=La(),r=dt();function a(i,u){return r.isFunction(u)?e.mergeMap(i,u,1):e.mergeMap(i,1)}return zc.concatMap=a,zc}var Ic={},NE;function B2(){if(NE)return Ic;NE=1,Object.defineProperty(Ic,"__esModule",{value:!0}),Ic.concatMapTo=void 0;var e=gg(),r=dt();function a(i,u){return r.isFunction(u)?e.concatMap(function(){return i},u):e.concatMap(function(){return i})}return Ic.concatMapTo=a,Ic}var Sa={},wa={},kE;function $2(){if(kE)return wa;kE=1;var e=wa&&wa.__read||function(c,f){var h=typeof Symbol=="function"&&c[Symbol.iterator];if(!h)return c;var m=h.call(c),v,y=[],g;try{for(;(f===void 0||f-- >0)&&!(v=m.next()).done;)y.push(v.value)}catch(S){g={error:S}}finally{try{v&&!v.done&&(h=m.return)&&h.call(m)}finally{if(g)throw g.error}}return y},r=wa&&wa.__spreadArray||function(c,f){for(var h=0,m=f.length,v=c.length;h<m;h++,v++)c[v]=f[h];return c};Object.defineProperty(wa,"__esModule",{value:!0}),wa.concat=void 0;var a=Ee(),i=am(),u=on(),s=Ei();function l(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];var h=u.popScheduler(c);return a.operate(function(m,v){i.concatAll()(s.from(r([m],e(c)),h)).subscribe(v)})}return wa.concat=l,wa}var qE;function H2(){if(qE)return Sa;qE=1;var e=Sa&&Sa.__read||function(u,s){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var c=l.call(u),f,h=[],m;try{for(;(s===void 0||s-- >0)&&!(f=c.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=c.return)&&l.call(c)}finally{if(m)throw m.error}}return h},r=Sa&&Sa.__spreadArray||function(u,s){for(var l=0,c=s.length,f=u.length;l<c;l++,f++)u[f]=s[l];return u};Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.concatWith=void 0;var a=$2();function i(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];return a.concat.apply(void 0,r([],e(u)))}return Sa.concatWith=i,Sa}var Fc={},Bc={},VE;function PN(){if(VE)return Bc;VE=1,Object.defineProperty(Bc,"__esModule",{value:!0}),Bc.fromSubscribable=void 0;var e=vt();function r(a){return new e.Observable(function(i){return a.subscribe(i)})}return Bc.fromSubscribable=r,Bc}var LE;function um(){if(LE)return Fc;LE=1,Object.defineProperty(Fc,"__esModule",{value:!0}),Fc.connect=void 0;var e=Er(),r=$e(),a=Ee(),i=PN(),u={connector:function(){return new e.Subject}};function s(l,c){c===void 0&&(c=u);var f=c.connector;return a.operate(function(h,m){var v=f();r.innerFrom(l(i.fromSubscribable(v))).subscribe(m),m.add(h.subscribe(v))})}return Fc.connect=s,Fc}var $c={},UE;function Y2(){if(UE)return $c;UE=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.count=void 0;var e=rs();function r(a){return e.reduce(function(i,u,s){return!a||a(u,s)?i+1:i},0)}return $c.count=r,$c}var Hc={},zE;function G2(){if(zE)return Hc;zE=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.debounce=void 0;var e=Ee(),r=wr(),a=je(),i=$e();function u(s){return e.operate(function(l,c){var f=!1,h=null,m=null,v=function(){if(m==null||m.unsubscribe(),m=null,f){f=!1;var y=h;h=null,c.next(y)}};l.subscribe(a.createOperatorSubscriber(c,function(y){m==null||m.unsubscribe(),f=!0,h=y,m=a.createOperatorSubscriber(c,v,r.noop),i.innerFrom(s(y)).subscribe(m)},function(){v(),c.complete()},void 0,function(){h=m=null}))})}return Hc.debounce=u,Hc}var Yc={},IE;function W2(){if(IE)return Yc;IE=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.debounceTime=void 0;var e=an(),r=Ee(),a=je();function i(u,s){return s===void 0&&(s=e.asyncScheduler),r.operate(function(l,c){var f=null,h=null,m=null,v=function(){if(f){f.unsubscribe(),f=null;var g=h;h=null,c.next(g)}};function y(){var g=m+u,S=s.now();if(S<g){f=this.schedule(void 0,g-S),c.add(f);return}v()}l.subscribe(a.createOperatorSubscriber(c,function(g){h=g,m=s.now(),f||(f=s.schedule(y,u),c.add(f))},function(){v(),c.complete()},void 0,function(){h=f=null}))})}return Yc.debounceTime=i,Yc}var Gc={},FE;function Id(){if(FE)return Gc;FE=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.defaultIfEmpty=void 0;var e=Ee(),r=je();function a(i){return e.operate(function(u,s){var l=!1;u.subscribe(r.createOperatorSubscriber(s,function(c){l=!0,s.next(c)},function(){l||s.next(i),s.complete()}))})}return Gc.defaultIfEmpty=a,Gc}var Wc={},Qc={},Xc={},BE;function Fd(){if(BE)return Xc;BE=1,Object.defineProperty(Xc,"__esModule",{value:!0}),Xc.take=void 0;var e=Qn(),r=Ee(),a=je();function i(u){return u<=0?function(){return e.EMPTY}:r.operate(function(s,l){var c=0;s.subscribe(a.createOperatorSubscriber(l,function(f){++c<=u&&(l.next(f),u<=c&&l.complete())}))})}return Xc.take=i,Xc}var Kc={},$E;function _g(){if($E)return Kc;$E=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.ignoreElements=void 0;var e=Ee(),r=je(),a=wr();function i(){return e.operate(function(u,s){u.subscribe(r.createOperatorSubscriber(s,a.noop))})}return Kc.ignoreElements=i,Kc}var Zc={},HE;function Sg(){if(HE)return Zc;HE=1,Object.defineProperty(Zc,"__esModule",{value:!0}),Zc.mapTo=void 0;var e=Ai();function r(a){return e.map(function(){return a})}return Zc.mapTo=r,Zc}var YE;function wg(){if(YE)return Qc;YE=1,Object.defineProperty(Qc,"__esModule",{value:!0}),Qc.delayWhen=void 0;var e=im(),r=Fd(),a=_g(),i=Sg(),u=La(),s=$e();function l(c,f){return f?function(h){return e.concat(f.pipe(r.take(1),a.ignoreElements()),h.pipe(l(c)))}:u.mergeMap(function(h,m){return s.innerFrom(c(h,m)).pipe(r.take(1),i.mapTo(h))})}return Qc.delayWhen=l,Qc}var GE;function Q2(){if(GE)return Wc;GE=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.delay=void 0;var e=an(),r=wg(),a=Yo();function i(u,s){s===void 0&&(s=e.asyncScheduler);var l=a.timer(u,s);return r.delayWhen(function(){return l})}return Wc.delay=i,Wc}var Jc={},WE;function X2(){if(WE)return Jc;WE=1,Object.defineProperty(Jc,"__esModule",{value:!0}),Jc.dematerialize=void 0;var e=fg(),r=Ee(),a=je();function i(){return r.operate(function(u,s){u.subscribe(a.createOperatorSubscriber(s,function(l){return e.observeNotification(l,s)}))})}return Jc.dematerialize=i,Jc}var ef={},QE;function K2(){if(QE)return ef;QE=1,Object.defineProperty(ef,"__esModule",{value:!0}),ef.distinct=void 0;var e=Ee(),r=je(),a=wr(),i=$e();function u(s,l){return e.operate(function(c,f){var h=new Set;c.subscribe(r.createOperatorSubscriber(f,function(m){var v=s?s(m):m;h.has(v)||(h.add(v),f.next(m))})),l&&i.innerFrom(l).subscribe(r.createOperatorSubscriber(f,function(){return h.clear()},a.noop))})}return ef.distinct=u,ef}var tf={},XE;function Og(){if(XE)return tf;XE=1,Object.defineProperty(tf,"__esModule",{value:!0}),tf.distinctUntilChanged=void 0;var e=Or(),r=Ee(),a=je();function i(s,l){return l===void 0&&(l=e.identity),s=s??u,r.operate(function(c,f){var h,m=!0;c.subscribe(a.createOperatorSubscriber(f,function(v){var y=l(v);(m||!s(h,y))&&(m=!1,h=y,f.next(v))}))})}tf.distinctUntilChanged=i;function u(s,l){return s===l}return tf}var rf={},KE;function Z2(){if(KE)return rf;KE=1,Object.defineProperty(rf,"__esModule",{value:!0}),rf.distinctUntilKeyChanged=void 0;var e=Og();function r(a,i){return e.distinctUntilChanged(function(u,s){return i?i(u[a],s[a]):u[a]===s[a]})}return rf.distinctUntilKeyChanged=r,rf}var nf={},af={},ZE;function Bd(){if(ZE)return af;ZE=1,Object.defineProperty(af,"__esModule",{value:!0}),af.throwIfEmpty=void 0;var e=$o(),r=Ee(),a=je();function i(s){return s===void 0&&(s=u),r.operate(function(l,c){var f=!1;l.subscribe(a.createOperatorSubscriber(c,function(h){f=!0,c.next(h)},function(){return f?c.complete():c.error(s())}))})}af.throwIfEmpty=i;function u(){return new e.EmptyError}return af}var JE;function J2(){if(JE)return nf;JE=1,Object.defineProperty(nf,"__esModule",{value:!0}),nf.elementAt=void 0;var e=S2(),r=Ri(),a=Bd(),i=Id(),u=Fd();function s(l,c){if(l<0)throw new e.ArgumentOutOfRangeError;var f=arguments.length>=2;return function(h){return h.pipe(r.filter(function(m,v){return v===l}),u.take(1),f?i.defaultIfEmpty(c):a.throwIfEmpty(function(){return new e.ArgumentOutOfRangeError}))}}return nf.elementAt=s,nf}var Oa={},eA;function ex(){if(eA)return Oa;eA=1;var e=Oa&&Oa.__read||function(s,l){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var f=c.call(s),h,m=[],v;try{for(;(l===void 0||l-- >0)&&!(h=f.next()).done;)m.push(h.value)}catch(y){v={error:y}}finally{try{h&&!h.done&&(c=f.return)&&c.call(f)}finally{if(v)throw v.error}}return m},r=Oa&&Oa.__spreadArray||function(s,l){for(var c=0,f=l.length,h=s.length;c<f;c++,h++)s[h]=l[c];return s};Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.endWith=void 0;var a=im(),i=cg();function u(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return function(c){return a.concat(c,i.of.apply(void 0,r([],e(s))))}}return Oa.endWith=u,Oa}var of={},tA;function tx(){if(tA)return of;tA=1,Object.defineProperty(of,"__esModule",{value:!0}),of.every=void 0;var e=Ee(),r=je();function a(i,u){return e.operate(function(s,l){var c=0;s.subscribe(r.createOperatorSubscriber(l,function(f){i.call(u,f,c++,s)||(l.next(!1),l.complete())},function(){l.next(!0),l.complete()}))})}return of.every=a,of}var uf={},sf={},lf={},rA;function Eg(){if(rA)return lf;rA=1,Object.defineProperty(lf,"__esModule",{value:!0}),lf.exhaustMap=void 0;var e=Ai(),r=$e(),a=Ee(),i=je();function u(s,l){return l?function(c){return c.pipe(u(function(f,h){return r.innerFrom(s(f,h)).pipe(e.map(function(m,v){return l(f,m,h,v)}))}))}:a.operate(function(c,f){var h=0,m=null,v=!1;c.subscribe(i.createOperatorSubscriber(f,function(y){m||(m=i.createOperatorSubscriber(f,void 0,function(){m=null,v&&f.complete()}),r.innerFrom(s(y,h++)).subscribe(m))},function(){v=!0,!m&&f.complete()}))})}return lf.exhaustMap=u,lf}var nA;function Ag(){if(nA)return sf;nA=1,Object.defineProperty(sf,"__esModule",{value:!0}),sf.exhaustAll=void 0;var e=Eg(),r=Or();function a(){return e.exhaustMap(r.identity)}return sf.exhaustAll=a,sf}var aA;function rx(){if(aA)return uf;aA=1,Object.defineProperty(uf,"__esModule",{value:!0}),uf.exhaust=void 0;var e=Ag();return uf.exhaust=e.exhaustAll,uf}var cf={},iA;function nx(){if(iA)return cf;iA=1,Object.defineProperty(cf,"__esModule",{value:!0}),cf.expand=void 0;var e=Ee(),r=vg();function a(i,u,s){return u===void 0&&(u=1/0),u=(u||0)<1?1/0:u,e.operate(function(l,c){return r.mergeInternals(l,c,i,u,void 0,!0,s)})}return cf.expand=a,cf}var ff={},oA;function ax(){if(oA)return ff;oA=1,Object.defineProperty(ff,"__esModule",{value:!0}),ff.finalize=void 0;var e=Ee();function r(a){return e.operate(function(i,u){try{i.subscribe(u)}finally{u.add(a)}})}return ff.finalize=r,ff}var Ao={},uA;function Rg(){if(uA)return Ao;uA=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.createFind=Ao.find=void 0;var e=Ee(),r=je();function a(u,s){return e.operate(i(u,s,"value"))}Ao.find=a;function i(u,s,l){var c=l==="index";return function(f,h){var m=0;f.subscribe(r.createOperatorSubscriber(h,function(v){var y=m++;u.call(s,v,y,f)&&(h.next(c?y:v),h.complete())},function(){h.next(c?-1:void 0),h.complete()}))}}return Ao.createFind=i,Ao}var df={},sA;function ix(){if(sA)return df;sA=1,Object.defineProperty(df,"__esModule",{value:!0}),df.findIndex=void 0;var e=Ee(),r=Rg();function a(i,u){return e.operate(r.createFind(i,u,"index"))}return df.findIndex=a,df}var hf={},lA;function ox(){if(lA)return hf;lA=1,Object.defineProperty(hf,"__esModule",{value:!0}),hf.first=void 0;var e=$o(),r=Ri(),a=Fd(),i=Id(),u=Bd(),s=Or();function l(c,f){var h=arguments.length>=2;return function(m){return m.pipe(c?r.filter(function(v,y){return c(v,y,m)}):s.identity,a.take(1),h?i.defaultIfEmpty(f):u.throwIfEmpty(function(){return new e.EmptyError}))}}return hf.first=l,hf}var vf={},cA;function ux(){if(cA)return vf;cA=1,Object.defineProperty(vf,"__esModule",{value:!0}),vf.groupBy=void 0;var e=vt(),r=$e(),a=Er(),i=Ee(),u=je();function s(l,c,f,h){return i.operate(function(m,v){var y;!c||typeof c=="function"?y=c:(f=c.duration,y=c.element,h=c.connector);var g=new Map,S=function(j){g.forEach(j),j(v)},_=function(j){return S(function(M){return M.error(j)})},w=0,E=!1,R=new u.OperatorSubscriber(v,function(j){try{var M=l(j),V=g.get(M);if(!V){g.set(M,V=h?h():new a.Subject);var U=T(M,V);if(v.next(U),f){var N=u.createOperatorSubscriber(V,function(){V.complete(),N==null||N.unsubscribe()},void 0,void 0,function(){return g.delete(M)});R.add(r.innerFrom(f(U)).subscribe(N))}}V.next(y?y(j):j)}catch(D){_(D)}},function(){return S(function(j){return j.complete()})},_,function(){return g.clear()},function(){return E=!0,w===0});m.subscribe(R);function T(j,M){var V=new e.Observable(function(U){w++;var N=M.subscribe(U);return function(){N.unsubscribe(),--w===0&&E&&R.unsubscribe()}});return V.key=j,V}})}return vf.groupBy=s,vf}var mf={},fA;function sx(){if(fA)return mf;fA=1,Object.defineProperty(mf,"__esModule",{value:!0}),mf.isEmpty=void 0;var e=Ee(),r=je();function a(){return e.operate(function(i,u){i.subscribe(r.createOperatorSubscriber(u,function(){u.next(!1),u.complete()},function(){u.next(!0),u.complete()}))})}return mf.isEmpty=a,mf}var pf={},Ro={},dA;function Tg(){if(dA)return Ro;dA=1;var e=Ro&&Ro.__values||function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.takeLast=void 0;var r=Qn(),a=Ee(),i=je();function u(s){return s<=0?function(){return r.EMPTY}:a.operate(function(l,c){var f=[];l.subscribe(i.createOperatorSubscriber(c,function(h){f.push(h),s<f.length&&f.shift()},function(){var h,m;try{for(var v=e(f),y=v.next();!y.done;y=v.next()){var g=y.value;c.next(g)}}catch(S){h={error:S}}finally{try{y&&!y.done&&(m=v.return)&&m.call(v)}finally{if(h)throw h.error}}c.complete()},void 0,function(){f=null}))})}return Ro.takeLast=u,Ro}var hA;function lx(){if(hA)return pf;hA=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.last=void 0;var e=$o(),r=Ri(),a=Tg(),i=Bd(),u=Id(),s=Or();function l(c,f){var h=arguments.length>=2;return function(m){return m.pipe(c?r.filter(function(v,y){return c(v,y,m)}):s.identity,a.takeLast(1),h?u.defaultIfEmpty(f):i.throwIfEmpty(function(){return new e.EmptyError}))}}return pf.last=l,pf}var yf={},vA;function cx(){if(vA)return yf;vA=1,Object.defineProperty(yf,"__esModule",{value:!0}),yf.materialize=void 0;var e=fg(),r=Ee(),a=je();function i(){return r.operate(function(u,s){u.subscribe(a.createOperatorSubscriber(s,function(l){s.next(e.Notification.createNext(l))},function(){s.next(e.Notification.createComplete()),s.complete()},function(l){s.next(e.Notification.createError(l)),s.complete()}))})}return yf.materialize=i,yf}var bf={},mA;function fx(){if(mA)return bf;mA=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.max=void 0;var e=rs(),r=dt();function a(i){return e.reduce(r.isFunction(i)?function(u,s){return i(u,s)>0?u:s}:function(u,s){return u>s?u:s})}return bf.max=a,bf}var gf={},pA;function dx(){if(pA)return gf;pA=1,Object.defineProperty(gf,"__esModule",{value:!0}),gf.flatMap=void 0;var e=La();return gf.flatMap=e.mergeMap,gf}var _f={},yA;function hx(){if(yA)return _f;yA=1,Object.defineProperty(_f,"__esModule",{value:!0}),_f.mergeMapTo=void 0;var e=La(),r=dt();function a(i,u,s){return s===void 0&&(s=1/0),r.isFunction(u)?e.mergeMap(function(){return i},u,s):(typeof u=="number"&&(s=u),e.mergeMap(function(){return i},s))}return _f.mergeMapTo=a,_f}var Sf={},bA;function vx(){if(bA)return Sf;bA=1,Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.mergeScan=void 0;var e=Ee(),r=vg();function a(i,u,s){return s===void 0&&(s=1/0),e.operate(function(l,c){var f=u;return r.mergeInternals(l,c,function(h,m){return i(f,h,m)},s,function(h){f=h},!1,void 0,function(){return f=null})})}return Sf.mergeScan=a,Sf}var Ea={},Aa={},gA;function mx(){if(gA)return Aa;gA=1;var e=Aa&&Aa.__read||function(c,f){var h=typeof Symbol=="function"&&c[Symbol.iterator];if(!h)return c;var m=h.call(c),v,y=[],g;try{for(;(f===void 0||f-- >0)&&!(v=m.next()).done;)y.push(v.value)}catch(S){g={error:S}}finally{try{v&&!v.done&&(h=m.return)&&h.call(m)}finally{if(g)throw g.error}}return y},r=Aa&&Aa.__spreadArray||function(c,f){for(var h=0,m=f.length,v=c.length;h<m;h++,v++)c[v]=f[h];return c};Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.merge=void 0;var a=Ee(),i=zd(),u=on(),s=Ei();function l(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];var h=u.popScheduler(c),m=u.popNumber(c,1/0);return a.operate(function(v,y){i.mergeAll(m)(s.from(r([v],e(c)),h)).subscribe(y)})}return Aa.merge=l,Aa}var _A;function px(){if(_A)return Ea;_A=1;var e=Ea&&Ea.__read||function(u,s){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var c=l.call(u),f,h=[],m;try{for(;(s===void 0||s-- >0)&&!(f=c.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=c.return)&&l.call(c)}finally{if(m)throw m.error}}return h},r=Ea&&Ea.__spreadArray||function(u,s){for(var l=0,c=s.length,f=u.length;l<c;l++,f++)u[f]=s[l];return u};Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.mergeWith=void 0;var a=mx();function i(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];return a.merge.apply(void 0,r([],e(u)))}return Ea.mergeWith=i,Ea}var wf={},SA;function yx(){if(SA)return wf;SA=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.min=void 0;var e=rs(),r=dt();function a(i){return e.reduce(r.isFunction(i)?function(u,s){return i(u,s)<0?u:s}:function(u,s){return u<s?u:s})}return wf.min=a,wf}var Of={},wA;function sm(){if(wA)return Of;wA=1,Object.defineProperty(Of,"__esModule",{value:!0}),Of.multicast=void 0;var e=rm(),r=dt(),a=um();function i(u,s){var l=r.isFunction(u)?u:function(){return u};return r.isFunction(s)?a.connect(s,{connector:l}):function(c){return new e.ConnectableObservable(c,l)}}return Of.multicast=i,Of}var xn={},OA;function bx(){if(OA)return xn;OA=1;var e=xn&&xn.__read||function(s,l){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var f=c.call(s),h,m=[],v;try{for(;(l===void 0||l-- >0)&&!(h=f.next()).done;)m.push(h.value)}catch(y){v={error:y}}finally{try{h&&!h.done&&(c=f.return)&&c.call(f)}finally{if(v)throw v.error}}return m},r=xn&&xn.__spreadArray||function(s,l){for(var c=0,f=l.length,h=s.length;c<f;c++,h++)s[h]=l[c];return s};Object.defineProperty(xn,"__esModule",{value:!0}),xn.onErrorResumeNext=xn.onErrorResumeNextWith=void 0;var a=ts(),i=M2();function u(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];var c=a.argsOrArgArray(s);return function(f){return i.onErrorResumeNext.apply(void 0,r([f],e(c)))}}return xn.onErrorResumeNextWith=u,xn.onErrorResumeNext=u,xn}var Ef={},EA;function gx(){if(EA)return Ef;EA=1,Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.pairwise=void 0;var e=Ee(),r=je();function a(){return e.operate(function(i,u){var s,l=!1;i.subscribe(r.createOperatorSubscriber(u,function(c){var f=s;s=c,l&&u.next([f,c]),l=!0}))})}return Ef.pairwise=a,Ef}var Af={},AA;function _x(){if(AA)return Af;AA=1,Object.defineProperty(Af,"__esModule",{value:!0}),Af.pluck=void 0;var e=Ai();function r(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];var u=a.length;if(u===0)throw new Error("list of properties cannot be empty.");return e.map(function(s){for(var l=s,c=0;c<u;c++){var f=l==null?void 0:l[a[c]];if(typeof f<"u")l=f;else return}return l})}return Af.pluck=r,Af}var Rf={},RA;function Sx(){if(RA)return Rf;RA=1,Object.defineProperty(Rf,"__esModule",{value:!0}),Rf.publish=void 0;var e=Er(),r=sm(),a=um();function i(u){return u?function(s){return a.connect(u)(s)}:function(s){return r.multicast(new e.Subject)(s)}}return Rf.publish=i,Rf}var Tf={},TA;function wx(){if(TA)return Tf;TA=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.publishBehavior=void 0;var e=l2(),r=rm();function a(i){return function(u){var s=new e.BehaviorSubject(i);return new r.ConnectableObservable(u,function(){return s})}}return Tf.publishBehavior=a,Tf}var Mf={},MA;function Ox(){if(MA)return Mf;MA=1,Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.publishLast=void 0;var e=ug(),r=rm();function a(){return function(i){var u=new e.AsyncSubject;return new r.ConnectableObservable(i,function(){return u})}}return Mf.publishLast=a,Mf}var xf={},xA;function Ex(){if(xA)return xf;xA=1,Object.defineProperty(xf,"__esModule",{value:!0}),xf.publishReplay=void 0;var e=og(),r=sm(),a=dt();function i(u,s,l,c){l&&!a.isFunction(l)&&(c=l);var f=a.isFunction(l)?l:void 0;return function(h){return r.multicast(new e.ReplaySubject(u,s,c),f)(h)}}return xf.publishReplay=i,xf}var Ra={},jA;function Mg(){if(jA)return Ra;jA=1;var e=Ra&&Ra.__read||function(l,c){var f=typeof Symbol=="function"&&l[Symbol.iterator];if(!f)return l;var h=f.call(l),m,v=[],y;try{for(;(c===void 0||c-- >0)&&!(m=h.next()).done;)v.push(m.value)}catch(g){y={error:g}}finally{try{m&&!m.done&&(f=h.return)&&f.call(h)}finally{if(y)throw y.error}}return v},r=Ra&&Ra.__spreadArray||function(l,c){for(var f=0,h=c.length,m=l.length;f<h;f++,m++)l[m]=c[f];return l};Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.raceWith=void 0;var a=j2(),i=Ee(),u=Or();function s(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return l.length?i.operate(function(f,h){a.raceInit(r([f],e(l)))(h)}):u.identity}return Ra.raceWith=s,Ra}var jf={},CA;function Ax(){if(CA)return jf;CA=1,Object.defineProperty(jf,"__esModule",{value:!0}),jf.repeat=void 0;var e=Qn(),r=Ee(),a=je(),i=$e(),u=Yo();function s(l){var c,f=1/0,h;return l!=null&&(typeof l=="object"?(c=l.count,f=c===void 0?1/0:c,h=l.delay):f=l),f<=0?function(){return e.EMPTY}:r.operate(function(m,v){var y=0,g,S=function(){if(g==null||g.unsubscribe(),g=null,h!=null){var w=typeof h=="number"?u.timer(h):i.innerFrom(h(y)),E=a.createOperatorSubscriber(v,function(){E.unsubscribe(),_()});w.subscribe(E)}else _()},_=function(){var w=!1;g=m.subscribe(a.createOperatorSubscriber(v,void 0,function(){++y<f?g?S():w=!0:v.complete()})),w&&S()};_()})}return jf.repeat=s,jf}var Cf={},PA;function Rx(){if(PA)return Cf;PA=1,Object.defineProperty(Cf,"__esModule",{value:!0}),Cf.repeatWhen=void 0;var e=$e(),r=Er(),a=Ee(),i=je();function u(s){return a.operate(function(l,c){var f,h=!1,m,v=!1,y=!1,g=function(){return y&&v&&(c.complete(),!0)},S=function(){return m||(m=new r.Subject,e.innerFrom(s(m)).subscribe(i.createOperatorSubscriber(c,function(){f?_():h=!0},function(){v=!0,g()}))),m},_=function(){y=!1,f=l.subscribe(i.createOperatorSubscriber(c,void 0,function(){y=!0,!g()&&S().next()})),h&&(f.unsubscribe(),f=null,h=!1,_())};_()})}return Cf.repeatWhen=u,Cf}var Pf={},DA;function Tx(){if(DA)return Pf;DA=1,Object.defineProperty(Pf,"__esModule",{value:!0}),Pf.retry=void 0;var e=Ee(),r=je(),a=Or(),i=Yo(),u=$e();function s(l){l===void 0&&(l=1/0);var c;l&&typeof l=="object"?c=l:c={count:l};var f=c.count,h=f===void 0?1/0:f,m=c.delay,v=c.resetOnSuccess,y=v===void 0?!1:v;return h<=0?a.identity:e.operate(function(g,S){var _=0,w,E=function(){var R=!1;w=g.subscribe(r.createOperatorSubscriber(S,function(T){y&&(_=0),S.next(T)},void 0,function(T){if(_++<h){var j=function(){w?(w.unsubscribe(),w=null,E()):R=!0};if(m!=null){var M=typeof m=="number"?i.timer(m):u.innerFrom(m(T,_)),V=r.createOperatorSubscriber(S,function(){V.unsubscribe(),j()},function(){S.complete()});M.subscribe(V)}else j()}else S.error(T)})),R&&(w.unsubscribe(),w=null,E())};E()})}return Pf.retry=s,Pf}var Df={},NA;function Mx(){if(NA)return Df;NA=1,Object.defineProperty(Df,"__esModule",{value:!0}),Df.retryWhen=void 0;var e=$e(),r=Er(),a=Ee(),i=je();function u(s){return a.operate(function(l,c){var f,h=!1,m,v=function(){f=l.subscribe(i.createOperatorSubscriber(c,void 0,void 0,function(y){m||(m=new r.Subject,e.innerFrom(s(m)).subscribe(i.createOperatorSubscriber(c,function(){return f?v():h=!0}))),m&&m.next(y)})),h&&(f.unsubscribe(),f=null,h=!1,v())};v()})}return Df.retryWhen=u,Df}var Nf={},kA;function xg(){if(kA)return Nf;kA=1,Object.defineProperty(Nf,"__esModule",{value:!0}),Nf.sample=void 0;var e=$e(),r=Ee(),a=wr(),i=je();function u(s){return r.operate(function(l,c){var f=!1,h=null;l.subscribe(i.createOperatorSubscriber(c,function(m){f=!0,h=m})),e.innerFrom(s).subscribe(i.createOperatorSubscriber(c,function(){if(f){f=!1;var m=h;h=null,c.next(m)}},a.noop))})}return Nf.sample=u,Nf}var kf={},qA;function xx(){if(qA)return kf;qA=1,Object.defineProperty(kf,"__esModule",{value:!0}),kf.sampleTime=void 0;var e=an(),r=xg(),a=T2();function i(u,s){return s===void 0&&(s=e.asyncScheduler),r.sample(a.interval(u,s))}return kf.sampleTime=i,kf}var qf={},VA;function jx(){if(VA)return qf;VA=1,Object.defineProperty(qf,"__esModule",{value:!0}),qf.scan=void 0;var e=Ee(),r=L2();function a(i,u){return e.operate(r.scanInternals(i,u,arguments.length>=2,!0))}return qf.scan=a,qf}var Vf={},LA;function Cx(){if(LA)return Vf;LA=1,Object.defineProperty(Vf,"__esModule",{value:!0}),Vf.sequenceEqual=void 0;var e=Ee(),r=je(),a=$e();function i(s,l){return l===void 0&&(l=function(c,f){return c===f}),e.operate(function(c,f){var h=u(),m=u(),v=function(g){f.next(g),f.complete()},y=function(g,S){var _=r.createOperatorSubscriber(f,function(w){var E=S.buffer,R=S.complete;E.length===0?R?v(!1):g.buffer.push(w):!l(w,E.shift())&&v(!1)},function(){g.complete=!0;var w=S.complete,E=S.buffer;w&&v(E.length===0),_==null||_.unsubscribe()});return _};c.subscribe(y(h,m)),a.innerFrom(s).subscribe(y(m,h))})}Vf.sequenceEqual=i;function u(){return{buffer:[],complete:!1}}return Vf}var Ta={},UA;function jg(){if(UA)return Ta;UA=1;var e=Ta&&Ta.__read||function(f,h){var m=typeof Symbol=="function"&&f[Symbol.iterator];if(!m)return f;var v=m.call(f),y,g=[],S;try{for(;(h===void 0||h-- >0)&&!(y=v.next()).done;)g.push(y.value)}catch(_){S={error:_}}finally{try{y&&!y.done&&(m=v.return)&&m.call(v)}finally{if(S)throw S.error}}return g},r=Ta&&Ta.__spreadArray||function(f,h){for(var m=0,v=h.length,y=f.length;m<v;m++,y++)f[y]=h[m];return f};Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.share=void 0;var a=$e(),i=Er(),u=kd(),s=Ee();function l(f){f===void 0&&(f={});var h=f.connector,m=h===void 0?function(){return new i.Subject}:h,v=f.resetOnError,y=v===void 0?!0:v,g=f.resetOnComplete,S=g===void 0?!0:g,_=f.resetOnRefCountZero,w=_===void 0?!0:_;return function(E){var R,T,j,M=0,V=!1,U=!1,N=function(){T==null||T.unsubscribe(),T=void 0},D=function(){N(),R=j=void 0,V=U=!1},J=function(){var le=R;D(),le==null||le.unsubscribe()};return s.operate(function(le,I){M++,!U&&!V&&N();var oe=j=j??m();I.add(function(){M--,M===0&&!U&&!V&&(T=c(J,w))}),oe.subscribe(I),!R&&M>0&&(R=new u.SafeSubscriber({next:function(de){return oe.next(de)},error:function(de){U=!0,N(),T=c(D,y,de),oe.error(de)},complete:function(){V=!0,N(),T=c(D,S),oe.complete()}}),a.innerFrom(le).subscribe(R))})(E)}}Ta.share=l;function c(f,h){for(var m=[],v=2;v<arguments.length;v++)m[v-2]=arguments[v];if(h===!0){f();return}if(h!==!1){var y=new u.SafeSubscriber({next:function(){y.unsubscribe(),f()}});return a.innerFrom(h.apply(void 0,r([],e(m)))).subscribe(y)}}return Ta}var Lf={},zA;function Px(){if(zA)return Lf;zA=1,Object.defineProperty(Lf,"__esModule",{value:!0}),Lf.shareReplay=void 0;var e=og(),r=jg();function a(i,u,s){var l,c,f,h,m=!1;return i&&typeof i=="object"?(l=i.bufferSize,h=l===void 0?1/0:l,c=i.windowTime,u=c===void 0?1/0:c,f=i.refCount,m=f===void 0?!1:f,s=i.scheduler):h=i??1/0,r.share({connector:function(){return new e.ReplaySubject(h,u,s)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:m})}return Lf.shareReplay=a,Lf}var Uf={},IA;function Dx(){if(IA)return Uf;IA=1,Object.defineProperty(Uf,"__esModule",{value:!0}),Uf.single=void 0;var e=$o(),r=O2(),a=w2(),i=Ee(),u=je();function s(l){return i.operate(function(c,f){var h=!1,m,v=!1,y=0;c.subscribe(u.createOperatorSubscriber(f,function(g){v=!0,(!l||l(g,y++,c))&&(h&&f.error(new r.SequenceError("Too many matching values")),h=!0,m=g)},function(){h?(f.next(m),f.complete()):f.error(v?new a.NotFoundError("No matching values"):new e.EmptyError)}))})}return Uf.single=s,Uf}var zf={},FA;function Nx(){if(FA)return zf;FA=1,Object.defineProperty(zf,"__esModule",{value:!0}),zf.skip=void 0;var e=Ri();function r(a){return e.filter(function(i,u){return a<=u})}return zf.skip=r,zf}var If={},BA;function kx(){if(BA)return If;BA=1,Object.defineProperty(If,"__esModule",{value:!0}),If.skipLast=void 0;var e=Or(),r=Ee(),a=je();function i(u){return u<=0?e.identity:r.operate(function(s,l){var c=new Array(u),f=0;return s.subscribe(a.createOperatorSubscriber(l,function(h){var m=f++;if(m<u)c[m]=h;else{var v=m%u,y=c[v];c[v]=h,l.next(y)}})),function(){c=null}})}return If.skipLast=i,If}var Ff={},$A;function qx(){if($A)return Ff;$A=1,Object.defineProperty(Ff,"__esModule",{value:!0}),Ff.skipUntil=void 0;var e=Ee(),r=je(),a=$e(),i=wr();function u(s){return e.operate(function(l,c){var f=!1,h=r.createOperatorSubscriber(c,function(){h==null||h.unsubscribe(),f=!0},i.noop);a.innerFrom(s).subscribe(h),l.subscribe(r.createOperatorSubscriber(c,function(m){return f&&c.next(m)}))})}return Ff.skipUntil=u,Ff}var Bf={},HA;function Vx(){if(HA)return Bf;HA=1,Object.defineProperty(Bf,"__esModule",{value:!0}),Bf.skipWhile=void 0;var e=Ee(),r=je();function a(i){return e.operate(function(u,s){var l=!1,c=0;u.subscribe(r.createOperatorSubscriber(s,function(f){return(l||(l=!i(f,c++)))&&s.next(f)}))})}return Bf.skipWhile=a,Bf}var $f={},YA;function Lx(){if(YA)return $f;YA=1,Object.defineProperty($f,"__esModule",{value:!0}),$f.startWith=void 0;var e=im(),r=on(),a=Ee();function i(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];var l=r.popScheduler(u);return a.operate(function(c,f){(l?e.concat(u,c,l):e.concat(u,c)).subscribe(f)})}return $f.startWith=i,$f}var Hf={},Yf={},GA;function $d(){if(GA)return Yf;GA=1,Object.defineProperty(Yf,"__esModule",{value:!0}),Yf.switchMap=void 0;var e=$e(),r=Ee(),a=je();function i(u,s){return r.operate(function(l,c){var f=null,h=0,m=!1,v=function(){return m&&!f&&c.complete()};l.subscribe(a.createOperatorSubscriber(c,function(y){f==null||f.unsubscribe();var g=0,S=h++;e.innerFrom(u(y,S)).subscribe(f=a.createOperatorSubscriber(c,function(_){return c.next(s?s(y,_,S,g++):_)},function(){f=null,v()}))},function(){m=!0,v()}))})}return Yf.switchMap=i,Yf}var WA;function Ux(){if(WA)return Hf;WA=1,Object.defineProperty(Hf,"__esModule",{value:!0}),Hf.switchAll=void 0;var e=$d(),r=Or();function a(){return e.switchMap(r.identity)}return Hf.switchAll=a,Hf}var Gf={},QA;function zx(){if(QA)return Gf;QA=1,Object.defineProperty(Gf,"__esModule",{value:!0}),Gf.switchMapTo=void 0;var e=$d(),r=dt();function a(i,u){return r.isFunction(u)?e.switchMap(function(){return i},u):e.switchMap(function(){return i})}return Gf.switchMapTo=a,Gf}var Wf={},XA;function Ix(){if(XA)return Wf;XA=1,Object.defineProperty(Wf,"__esModule",{value:!0}),Wf.switchScan=void 0;var e=$d(),r=Ee();function a(i,u){return r.operate(function(s,l){var c=u;return e.switchMap(function(f,h){return i(c,f,h)},function(f,h){return c=h,h})(s).subscribe(l),function(){c=null}})}return Wf.switchScan=a,Wf}var Qf={},KA;function Fx(){if(KA)return Qf;KA=1,Object.defineProperty(Qf,"__esModule",{value:!0}),Qf.takeUntil=void 0;var e=Ee(),r=je(),a=$e(),i=wr();function u(s){return e.operate(function(l,c){a.innerFrom(s).subscribe(r.createOperatorSubscriber(c,function(){return c.complete()},i.noop)),!c.closed&&l.subscribe(c)})}return Qf.takeUntil=u,Qf}var Xf={},ZA;function Bx(){if(ZA)return Xf;ZA=1,Object.defineProperty(Xf,"__esModule",{value:!0}),Xf.takeWhile=void 0;var e=Ee(),r=je();function a(i,u){return u===void 0&&(u=!1),e.operate(function(s,l){var c=0;s.subscribe(r.createOperatorSubscriber(l,function(f){var h=i(f,c++);(h||u)&&l.next(f),!h&&l.complete()}))})}return Xf.takeWhile=a,Xf}var Kf={},JA;function $x(){if(JA)return Kf;JA=1,Object.defineProperty(Kf,"__esModule",{value:!0}),Kf.tap=void 0;var e=dt(),r=Ee(),a=je(),i=Or();function u(s,l,c){var f=e.isFunction(s)||l||c?{next:s,error:l,complete:c}:s;return f?r.operate(function(h,m){var v;(v=f.subscribe)===null||v===void 0||v.call(f);var y=!0;h.subscribe(a.createOperatorSubscriber(m,function(g){var S;(S=f.next)===null||S===void 0||S.call(f,g),m.next(g)},function(){var g;y=!1,(g=f.complete)===null||g===void 0||g.call(f),m.complete()},function(g){var S;y=!1,(S=f.error)===null||S===void 0||S.call(f,g),m.error(g)},function(){var g,S;y&&((g=f.unsubscribe)===null||g===void 0||g.call(f)),(S=f.finalize)===null||S===void 0||S.call(f)}))}):i.identity}return Kf.tap=u,Kf}var Zf={},eR;function Cg(){if(eR)return Zf;eR=1,Object.defineProperty(Zf,"__esModule",{value:!0}),Zf.throttle=void 0;var e=Ee(),r=je(),a=$e();function i(u,s){return e.operate(function(l,c){var f=s??{},h=f.leading,m=h===void 0?!0:h,v=f.trailing,y=v===void 0?!1:v,g=!1,S=null,_=null,w=!1,E=function(){_==null||_.unsubscribe(),_=null,y&&(j(),w&&c.complete())},R=function(){_=null,w&&c.complete()},T=function(M){return _=a.innerFrom(u(M)).subscribe(r.createOperatorSubscriber(c,E,R))},j=function(){if(g){g=!1;var M=S;S=null,c.next(M),!w&&T(M)}};l.subscribe(r.createOperatorSubscriber(c,function(M){g=!0,S=M,!(_&&!_.closed)&&(m?j():T(M))},function(){w=!0,!(y&&g&&_&&!_.closed)&&c.complete()}))})}return Zf.throttle=i,Zf}var Jf={},tR;function Hx(){if(tR)return Jf;tR=1,Object.defineProperty(Jf,"__esModule",{value:!0}),Jf.throttleTime=void 0;var e=an(),r=Cg(),a=Yo();function i(u,s,l){s===void 0&&(s=e.asyncScheduler);var c=a.timer(u,s);return r.throttle(function(){return c},l)}return Jf.throttleTime=i,Jf}var To={},rR;function Yx(){if(rR)return To;rR=1,Object.defineProperty(To,"__esModule",{value:!0}),To.TimeInterval=To.timeInterval=void 0;var e=an(),r=Ee(),a=je();function i(s){return s===void 0&&(s=e.asyncScheduler),r.operate(function(l,c){var f=s.now();l.subscribe(a.createOperatorSubscriber(c,function(h){var m=s.now(),v=m-f;f=m,c.next(new u(h,v))}))})}To.timeInterval=i;var u=function(){function s(l,c){this.value=l,this.interval=c}return s}();return To.TimeInterval=u,To}var ed={},nR;function Gx(){if(nR)return ed;nR=1,Object.defineProperty(ed,"__esModule",{value:!0}),ed.timeoutWith=void 0;var e=an(),r=dg(),a=Uv();function i(u,s,l){var c,f,h;if(l=l??e.async,r.isValidDate(u)?c=u:typeof u=="number"&&(f=u),s)h=function(){return s};else throw new TypeError("No observable provided to switch to");if(c==null&&f==null)throw new TypeError("No timeout provided.");return a.timeout({first:c,each:f,scheduler:l,with:h})}return ed.timeoutWith=i,ed}var td={},aR;function Wx(){if(aR)return td;aR=1,Object.defineProperty(td,"__esModule",{value:!0}),td.timestamp=void 0;var e=ig(),r=Ai();function a(i){return i===void 0&&(i=e.dateTimestampProvider),r.map(function(u){return{value:u,timestamp:i.now()}})}return td.timestamp=a,td}var rd={},iR;function Qx(){if(iR)return rd;iR=1,Object.defineProperty(rd,"__esModule",{value:!0}),rd.window=void 0;var e=Er(),r=Ee(),a=je(),i=wr(),u=$e();function s(l){return r.operate(function(c,f){var h=new e.Subject;f.next(h.asObservable());var m=function(v){h.error(v),f.error(v)};return c.subscribe(a.createOperatorSubscriber(f,function(v){return h==null?void 0:h.next(v)},function(){h.complete(),f.complete()},m)),u.innerFrom(l).subscribe(a.createOperatorSubscriber(f,function(){h.complete(),f.next(h=new e.Subject)},i.noop,m)),function(){h==null||h.unsubscribe(),h=null}})}return rd.window=s,rd}var Mo={},oR;function Xx(){if(oR)return Mo;oR=1;var e=Mo&&Mo.__values||function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.windowCount=void 0;var r=Er(),a=Ee(),i=je();function u(s,l){l===void 0&&(l=0);var c=l>0?l:s;return a.operate(function(f,h){var m=[new r.Subject],v=0;h.next(m[0].asObservable()),f.subscribe(i.createOperatorSubscriber(h,function(y){var g,S;try{for(var _=e(m),w=_.next();!w.done;w=_.next()){var E=w.value;E.next(y)}}catch(j){g={error:j}}finally{try{w&&!w.done&&(S=_.return)&&S.call(_)}finally{if(g)throw g.error}}var R=v-s+1;if(R>=0&&R%c===0&&m.shift().complete(),++v%c===0){var T=new r.Subject;m.push(T),h.next(T.asObservable())}},function(){for(;m.length>0;)m.shift().complete();h.complete()},function(y){for(;m.length>0;)m.shift().error(y);h.error(y)},function(){m=null}))})}return Mo.windowCount=u,Mo}var nd={},uR;function Kx(){if(uR)return nd;uR=1,Object.defineProperty(nd,"__esModule",{value:!0}),nd.windowTime=void 0;var e=Er(),r=an(),a=gn(),i=Ee(),u=je(),s=wi(),l=on(),c=Oi();function f(h){for(var m,v,y=[],g=1;g<arguments.length;g++)y[g-1]=arguments[g];var S=(m=l.popScheduler(y))!==null&&m!==void 0?m:r.asyncScheduler,_=(v=y[0])!==null&&v!==void 0?v:null,w=y[1]||1/0;return i.operate(function(E,R){var T=[],j=!1,M=function(D){var J=D.window,le=D.subs;J.complete(),le.unsubscribe(),s.arrRemove(T,D),j&&V()},V=function(){if(T){var D=new a.Subscription;R.add(D);var J=new e.Subject,le={window:J,subs:D,seen:0};T.push(le),R.next(J.asObservable()),c.executeSchedule(D,S,function(){return M(le)},h)}};_!==null&&_>=0?c.executeSchedule(R,S,V,_,!0):j=!0,V();var U=function(D){return T.slice().forEach(D)},N=function(D){U(function(J){var le=J.window;return D(le)}),D(R),R.unsubscribe()};return E.subscribe(u.createOperatorSubscriber(R,function(D){U(function(J){J.window.next(D),w<=++J.seen&&M(J)})},function(){return N(function(D){return D.complete()})},function(D){return N(function(J){return J.error(D)})})),function(){T=null}})}return nd.windowTime=f,nd}var xo={},sR;function Zx(){if(sR)return xo;sR=1;var e=xo&&xo.__values||function(h){var m=typeof Symbol=="function"&&Symbol.iterator,v=m&&h[m],y=0;if(v)return v.call(h);if(h&&typeof h.length=="number")return{next:function(){return h&&y>=h.length&&(h=void 0),{value:h&&h[y++],done:!h}}};throw new TypeError(m?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(xo,"__esModule",{value:!0}),xo.windowToggle=void 0;var r=Er(),a=gn(),i=Ee(),u=$e(),s=je(),l=wr(),c=wi();function f(h,m){return i.operate(function(v,y){var g=[],S=function(_){for(;0<g.length;)g.shift().error(_);y.error(_)};u.innerFrom(h).subscribe(s.createOperatorSubscriber(y,function(_){var w=new r.Subject;g.push(w);var E=new a.Subscription,R=function(){c.arrRemove(g,w),w.complete(),E.unsubscribe()},T;try{T=u.innerFrom(m(_))}catch(j){S(j);return}y.next(w.asObservable()),E.add(T.subscribe(s.createOperatorSubscriber(y,R,l.noop,S)))},l.noop)),v.subscribe(s.createOperatorSubscriber(y,function(_){var w,E,R=g.slice();try{for(var T=e(R),j=T.next();!j.done;j=T.next()){var M=j.value;M.next(_)}}catch(V){w={error:V}}finally{try{j&&!j.done&&(E=T.return)&&E.call(T)}finally{if(w)throw w.error}}},function(){for(;0<g.length;)g.shift().complete();y.complete()},S,function(){for(;0<g.length;)g.shift().unsubscribe()}))})}return xo.windowToggle=f,xo}var ad={},lR;function Jx(){if(lR)return ad;lR=1,Object.defineProperty(ad,"__esModule",{value:!0}),ad.windowWhen=void 0;var e=Er(),r=Ee(),a=je(),i=$e();function u(s){return r.operate(function(l,c){var f,h,m=function(y){f.error(y),c.error(y)},v=function(){h==null||h.unsubscribe(),f==null||f.complete(),f=new e.Subject,c.next(f.asObservable());var y;try{y=i.innerFrom(s())}catch(g){m(g);return}y.subscribe(h=a.createOperatorSubscriber(c,v,v,m))};v(),l.subscribe(a.createOperatorSubscriber(c,function(y){return f.next(y)},function(){f.complete(),c.complete()},m,function(){h==null||h.unsubscribe(),f=null}))})}return ad.windowWhen=u,ad}var Ma={},cR;function ej(){if(cR)return Ma;cR=1;var e=Ma&&Ma.__read||function(h,m){var v=typeof Symbol=="function"&&h[Symbol.iterator];if(!v)return h;var y=v.call(h),g,S=[],_;try{for(;(m===void 0||m-- >0)&&!(g=y.next()).done;)S.push(g.value)}catch(w){_={error:w}}finally{try{g&&!g.done&&(v=y.return)&&v.call(y)}finally{if(_)throw _.error}}return S},r=Ma&&Ma.__spreadArray||function(h,m){for(var v=0,y=m.length,g=h.length;v<y;v++,g++)h[g]=m[v];return h};Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.withLatestFrom=void 0;var a=Ee(),i=je(),u=$e(),s=Or(),l=wr(),c=on();function f(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];var v=c.popResultSelector(h);return a.operate(function(y,g){for(var S=h.length,_=new Array(S),w=h.map(function(){return!1}),E=!1,R=function(j){u.innerFrom(h[j]).subscribe(i.createOperatorSubscriber(g,function(M){_[j]=M,!E&&!w[j]&&(w[j]=!0,(E=w.every(s.identity))&&(w=null))},l.noop))},T=0;T<S;T++)R(T);y.subscribe(i.createOperatorSubscriber(g,function(j){if(E){var M=r([j],e(_));g.next(v?v.apply(void 0,r([],e(M))):M)}}))})}return Ma.withLatestFrom=f,Ma}var id={},fR;function tj(){if(fR)return id;fR=1,Object.defineProperty(id,"__esModule",{value:!0}),id.zipAll=void 0;var e=mg(),r=U2();function a(i){return r.joinAllInternals(e.zip,i)}return id.zipAll=a,id}var xa={},ja={},dR;function rj(){if(dR)return ja;dR=1;var e=ja&&ja.__read||function(s,l){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var f=c.call(s),h,m=[],v;try{for(;(l===void 0||l-- >0)&&!(h=f.next()).done;)m.push(h.value)}catch(y){v={error:y}}finally{try{h&&!h.done&&(c=f.return)&&c.call(f)}finally{if(v)throw v.error}}return m},r=ja&&ja.__spreadArray||function(s,l){for(var c=0,f=l.length,h=s.length;c<f;c++,h++)s[h]=l[c];return s};Object.defineProperty(ja,"__esModule",{value:!0}),ja.zip=void 0;var a=mg(),i=Ee();function u(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return i.operate(function(c,f){a.zip.apply(void 0,r([c],e(s))).subscribe(f)})}return ja.zip=u,ja}var hR;function nj(){if(hR)return xa;hR=1;var e=xa&&xa.__read||function(u,s){var l=typeof Symbol=="function"&&u[Symbol.iterator];if(!l)return u;var c=l.call(u),f,h=[],m;try{for(;(s===void 0||s-- >0)&&!(f=c.next()).done;)h.push(f.value)}catch(v){m={error:v}}finally{try{f&&!f.done&&(l=c.return)&&l.call(c)}finally{if(m)throw m.error}}return h},r=xa&&xa.__spreadArray||function(u,s){for(var l=0,c=s.length,f=u.length;l<c;l++,f++)u[f]=s[l];return u};Object.defineProperty(xa,"__esModule",{value:!0}),xa.zipWith=void 0;var a=rj();function i(){for(var u=[],s=0;s<arguments.length;s++)u[s]=arguments[s];return a.zip.apply(void 0,r([],e(u)))}return xa.zipWith=i,xa}var vR;function DN(){return vR||(vR=1,function(e){var r=Wi&&Wi.__createBinding||(Object.create?function(Ya,Ga,Wr,Jn){Jn===void 0&&(Jn=Wr),Object.defineProperty(Ya,Jn,{enumerable:!0,get:function(){return Ga[Wr]}})}:function(Ya,Ga,Wr,Jn){Jn===void 0&&(Jn=Wr),Ya[Jn]=Ga[Wr]}),a=Wi&&Wi.__exportStar||function(Ya,Ga){for(var Wr in Ya)Wr!=="default"&&!Object.prototype.hasOwnProperty.call(Ga,Wr)&&r(Ga,Ya,Wr)};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.iif=e.generate=e.fromEventPattern=e.fromEvent=e.from=e.forkJoin=e.empty=e.defer=e.connectable=e.concat=e.combineLatest=e.bindNodeCallback=e.bindCallback=e.UnsubscriptionError=e.TimeoutError=e.SequenceError=e.ObjectUnsubscribedError=e.NotFoundError=e.EmptyError=e.ArgumentOutOfRangeError=e.firstValueFrom=e.lastValueFrom=e.isObservable=e.identity=e.noop=e.pipe=e.NotificationKind=e.Notification=e.Subscriber=e.Subscription=e.Scheduler=e.VirtualAction=e.VirtualTimeScheduler=e.animationFrameScheduler=e.animationFrame=e.queueScheduler=e.queue=e.asyncScheduler=e.async=e.asapScheduler=e.asap=e.AsyncSubject=e.ReplaySubject=e.BehaviorSubject=e.Subject=e.animationFrames=e.observable=e.ConnectableObservable=e.Observable=void 0,e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.combineLatestWith=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=e.config=e.NEVER=e.EMPTY=e.scheduled=e.zip=e.using=e.timer=e.throwError=e.range=e.race=e.partition=e.pairs=e.onErrorResumeNext=e.of=e.never=e.merge=void 0,e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.pairwise=e.onErrorResumeNextWith=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=e.mergeAll=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=void 0,e.zipWith=e.zipAll=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=void 0;var i=vt();Object.defineProperty(e,"Observable",{enumerable:!0,get:function(){return i.Observable}});var u=rm();Object.defineProperty(e,"ConnectableObservable",{enumerable:!0,get:function(){return u.ConnectableObservable}});var s=em();Object.defineProperty(e,"observable",{enumerable:!0,get:function(){return s.observable}});var l=X3();Object.defineProperty(e,"animationFrames",{enumerable:!0,get:function(){return l.animationFrames}});var c=Er();Object.defineProperty(e,"Subject",{enumerable:!0,get:function(){return c.Subject}});var f=l2();Object.defineProperty(e,"BehaviorSubject",{enumerable:!0,get:function(){return f.BehaviorSubject}});var h=og();Object.defineProperty(e,"ReplaySubject",{enumerable:!0,get:function(){return h.ReplaySubject}});var m=ug();Object.defineProperty(e,"AsyncSubject",{enumerable:!0,get:function(){return m.AsyncSubject}});var v=nN();Object.defineProperty(e,"asap",{enumerable:!0,get:function(){return v.asap}}),Object.defineProperty(e,"asapScheduler",{enumerable:!0,get:function(){return v.asapScheduler}});var y=an();Object.defineProperty(e,"async",{enumerable:!0,get:function(){return y.async}}),Object.defineProperty(e,"asyncScheduler",{enumerable:!0,get:function(){return y.asyncScheduler}});var g=oN();Object.defineProperty(e,"queue",{enumerable:!0,get:function(){return g.queue}}),Object.defineProperty(e,"queueScheduler",{enumerable:!0,get:function(){return g.queueScheduler}});var S=lN();Object.defineProperty(e,"animationFrame",{enumerable:!0,get:function(){return S.animationFrame}}),Object.defineProperty(e,"animationFrameScheduler",{enumerable:!0,get:function(){return S.animationFrameScheduler}});var _=cN();Object.defineProperty(e,"VirtualTimeScheduler",{enumerable:!0,get:function(){return _.VirtualTimeScheduler}}),Object.defineProperty(e,"VirtualAction",{enumerable:!0,get:function(){return _.VirtualAction}});var w=c2();Object.defineProperty(e,"Scheduler",{enumerable:!0,get:function(){return w.Scheduler}});var E=gn();Object.defineProperty(e,"Subscription",{enumerable:!0,get:function(){return E.Subscription}});var R=kd();Object.defineProperty(e,"Subscriber",{enumerable:!0,get:function(){return R.Subscriber}});var T=fg();Object.defineProperty(e,"Notification",{enumerable:!0,get:function(){return T.Notification}}),Object.defineProperty(e,"NotificationKind",{enumerable:!0,get:function(){return T.NotificationKind}});var j=tm();Object.defineProperty(e,"pipe",{enumerable:!0,get:function(){return j.pipe}});var M=wr();Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return M.noop}});var V=Or();Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return V.identity}});var U=mN();Object.defineProperty(e,"isObservable",{enumerable:!0,get:function(){return U.isObservable}});var N=pN();Object.defineProperty(e,"lastValueFrom",{enumerable:!0,get:function(){return N.lastValueFrom}});var D=yN();Object.defineProperty(e,"firstValueFrom",{enumerable:!0,get:function(){return D.firstValueFrom}});var J=S2();Object.defineProperty(e,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return J.ArgumentOutOfRangeError}});var le=$o();Object.defineProperty(e,"EmptyError",{enumerable:!0,get:function(){return le.EmptyError}});var I=w2();Object.defineProperty(e,"NotFoundError",{enumerable:!0,get:function(){return I.NotFoundError}});var oe=s2();Object.defineProperty(e,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return oe.ObjectUnsubscribedError}});var de=O2();Object.defineProperty(e,"SequenceError",{enumerable:!0,get:function(){return de.SequenceError}});var ye=Uv();Object.defineProperty(e,"TimeoutError",{enumerable:!0,get:function(){return ye.TimeoutError}});var C=a2();Object.defineProperty(e,"UnsubscriptionError",{enumerable:!0,get:function(){return C.UnsubscriptionError}});var te=bN();Object.defineProperty(e,"bindCallback",{enumerable:!0,get:function(){return te.bindCallback}});var ae=gN();Object.defineProperty(e,"bindNodeCallback",{enumerable:!0,get:function(){return ae.bindNodeCallback}});var xe=hg();Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return xe.combineLatest}});var k=im();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return k.concat}});var Y=_N();Object.defineProperty(e,"connectable",{enumerable:!0,get:function(){return Y.connectable}});var me=om();Object.defineProperty(e,"defer",{enumerable:!0,get:function(){return me.defer}});var ue=Qn();Object.defineProperty(e,"empty",{enumerable:!0,get:function(){return ue.empty}});var ge=SN();Object.defineProperty(e,"forkJoin",{enumerable:!0,get:function(){return ge.forkJoin}});var Pe=Ei();Object.defineProperty(e,"from",{enumerable:!0,get:function(){return Pe.from}});var we=wN();Object.defineProperty(e,"fromEvent",{enumerable:!0,get:function(){return we.fromEvent}});var Ve=ON();Object.defineProperty(e,"fromEventPattern",{enumerable:!0,get:function(){return Ve.fromEventPattern}});var Ie=EN();Object.defineProperty(e,"generate",{enumerable:!0,get:function(){return Ie.generate}});var et=AN();Object.defineProperty(e,"iif",{enumerable:!0,get:function(){return et.iif}});var _t=T2();Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return _t.interval}});var Rt=RN();Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return Rt.merge}});var Lt=iE();Object.defineProperty(e,"never",{enumerable:!0,get:function(){return Lt.never}});var Nr=cg();Object.defineProperty(e,"of",{enumerable:!0,get:function(){return Nr.of}});var tt=M2();Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return tt.onErrorResumeNext}});var kr=TN();Object.defineProperty(e,"pairs",{enumerable:!0,get:function(){return kr.pairs}});var Yr=MN();Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return Yr.partition}});var yt=j2();Object.defineProperty(e,"race",{enumerable:!0,get:function(){return yt.race}});var sn=xN();Object.defineProperty(e,"range",{enumerable:!0,get:function(){return sn.range}});var Tt=_2();Object.defineProperty(e,"throwError",{enumerable:!0,get:function(){return Tt.throwError}});var q=Yo();Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return q.timer}});var G=jN();Object.defineProperty(e,"using",{enumerable:!0,get:function(){return G.using}});var re=mg();Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return re.zip}});var _e=g2();Object.defineProperty(e,"scheduled",{enumerable:!0,get:function(){return _e.scheduled}});var be=Qn();Object.defineProperty(e,"EMPTY",{enumerable:!0,get:function(){return be.EMPTY}});var pe=iE();Object.defineProperty(e,"NEVER",{enumerable:!0,get:function(){return pe.NEVER}}),a(CN(),e);var Se=Nd();Object.defineProperty(e,"config",{enumerable:!0,get:function(){return Se.config}});var De=pg();Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return De.audit}});var Fe=C2();Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return Fe.auditTime}});var Xe=P2();Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return Xe.buffer}});var Ft=D2();Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return Ft.bufferCount}});var Bt=N2();Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return Bt.bufferTime}});var fr=k2();Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return fr.bufferToggle}});var dr=q2();Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return dr.bufferWhen}});var Xt=V2();Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return Xt.catchError}});var Kt=z2();Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return Kt.combineAll}});var hr=bg();Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return hr.combineLatestAll}});var Ar=F2();Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return Ar.combineLatestWith}});var Rr=am();Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return Rr.concatAll}});var ar=gg();Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return ar.concatMap}});var kn=B2();Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return kn.concatMapTo}});var _n=H2();Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return _n.concatWith}});var qr=um();Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return qr.connect}});var qn=Y2();Object.defineProperty(e,"count",{enumerable:!0,get:function(){return qn.count}});var qe=G2();Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return qe.debounce}});var x=W2();Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return x.debounceTime}});var z=Id();Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return z.defaultIfEmpty}});var ne=Q2();Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return ne.delay}});var ee=wg();Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return ee.delayWhen}});var X=X2();Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return X.dematerialize}});var Z=K2();Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return Z.distinct}});var ie=Og();Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return ie.distinctUntilChanged}});var ve=Z2();Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return ve.distinctUntilKeyChanged}});var Me=J2();Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return Me.elementAt}});var Le=ex();Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return Le.endWith}});var Ke=tx();Object.defineProperty(e,"every",{enumerable:!0,get:function(){return Ke.every}});var rt=rx();Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return rt.exhaust}});var St=Ag();Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return St.exhaustAll}});var Zt=Eg();Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return Zt.exhaustMap}});var Ut=nx();Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return Ut.expand}});var wt=Ri();Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return wt.filter}});var Vr=ax();Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return Vr.finalize}});var $t=Rg();Object.defineProperty(e,"find",{enumerable:!0,get:function(){return $t.find}});var Mt=ix();Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return Mt.findIndex}});var mt=ox();Object.defineProperty(e,"first",{enumerable:!0,get:function(){return mt.first}});var st=ux();Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return st.groupBy}});var Tr=_g();Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return Tr.ignoreElements}});var vr=sx();Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return vr.isEmpty}});var Mr=lx();Object.defineProperty(e,"last",{enumerable:!0,get:function(){return Mr.last}});var Sn=Ai();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return Sn.map}});var Vn=Sg();Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return Vn.mapTo}});var mr=cx();Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return mr.materialize}});var cs=fx();Object.defineProperty(e,"max",{enumerable:!0,get:function(){return cs.max}});var Ua=zd();Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return Ua.mergeAll}});var za=dx();Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return za.flatMap}});var Gr=La();Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return Gr.mergeMap}});var Mi=hx();Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return Mi.mergeMapTo}});var Qo=vx();Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return Qo.mergeScan}});var Ia=px();Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return Ia.mergeWith}});var fs=yx();Object.defineProperty(e,"min",{enumerable:!0,get:function(){return fs.min}});var ds=sm();Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return ds.multicast}});var wm=Ld();Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return wm.observeOn}});var Jd=bx();Object.defineProperty(e,"onErrorResumeNextWith",{enumerable:!0,get:function(){return Jd.onErrorResumeNextWith}});var Lr=gx();Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return Lr.pairwise}});var eh=_x();Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return eh.pluck}});var Om=Sx();Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return Om.publish}});var Xo=wx();Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return Xo.publishBehavior}});var th=Ox();Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return th.publishLast}});var Ko=Ex();Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return Ko.publishReplay}});var Em=Mg();Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return Em.raceWith}});var Ur=rs();Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return Ur.reduce}});var hs=Ax();Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return hs.repeat}});var rh=Rx();Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return rh.repeatWhen}});var vs=Tx();Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return vs.retry}});var Fa=Mx();Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return Fa.retryWhen}});var nh=ag();Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return nh.refCount}});var ah=xg();Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return ah.sample}});var Ba=xx();Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return Ba.sampleTime}});var Am=jx();Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return Am.scan}});var ih=Cx();Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return ih.sequenceEqual}});var oh=jg();Object.defineProperty(e,"share",{enumerable:!0,get:function(){return oh.share}});var ms=Px();Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return ms.shareReplay}});var Rm=Dx();Object.defineProperty(e,"single",{enumerable:!0,get:function(){return Rm.single}});var Tm=Nx();Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return Tm.skip}});var Zo=kx();Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return Zo.skipLast}});var ps=qx();Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return ps.skipUntil}});var ys=Vx();Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return ys.skipWhile}});var $a=Lx();Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return $a.startWith}});var Ha=Ud();Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return Ha.subscribeOn}});var uh=Ux();Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return uh.switchAll}});var bs=$d();Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return bs.switchMap}});var sh=zx();Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return sh.switchMapTo}});var xi=Ix();Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return xi.switchScan}});var wn=Fd();Object.defineProperty(e,"take",{enumerable:!0,get:function(){return wn.take}});var gs=Tg();Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return gs.takeLast}});var ji=Fx();Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return ji.takeUntil}});var Ln=Bx();Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return Ln.takeWhile}});var _s=$x();Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return _s.tap}});var Jo=Cg();Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Jo.throttle}});var lh=Hx();Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return lh.throttleTime}});var eu=Bd();Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return eu.throwIfEmpty}});var tu=Yx();Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return tu.timeInterval}});var ch=Uv();Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return ch.timeout}});var pr=Gx();Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return pr.timeoutWith}});var Zn=Wx();Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return Zn.timestamp}});var ru=yg();Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return ru.toArray}});var Ci=Qx();Object.defineProperty(e,"window",{enumerable:!0,get:function(){return Ci.window}});var Mm=Xx();Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return Mm.windowCount}});var Ss=Kx();Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return Ss.windowTime}});var ws=Zx();Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return ws.windowToggle}});var Pi=Jx();Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return Pi.windowWhen}});var nu=ej();Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return nu.withLatestFrom}});var fh=tj();Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return fh.zipAll}});var xm=nj();Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return xm.zipWith}})}(Wi)),Wi}var Fy={},od={},mR;function NN(){if(mR)return od;mR=1,Object.defineProperty(od,"__esModule",{value:!0}),od.partition=void 0;var e=x2(),r=Ri();function a(i,u){return function(s){return[r.filter(i,u)(s),r.filter(e.not(i,u))(s)]}}return od.partition=a,od}var Ca={},pR;function kN(){if(pR)return Ca;pR=1;var e=Ca&&Ca.__read||function(s,l){var c=typeof Symbol=="function"&&s[Symbol.iterator];if(!c)return s;var f=c.call(s),h,m=[],v;try{for(;(l===void 0||l-- >0)&&!(h=f.next()).done;)m.push(h.value)}catch(y){v={error:y}}finally{try{h&&!h.done&&(c=f.return)&&c.call(f)}finally{if(v)throw v.error}}return m},r=Ca&&Ca.__spreadArray||function(s,l){for(var c=0,f=l.length,h=s.length;c<f;c++,h++)s[h]=l[c];return s};Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.race=void 0;var a=ts(),i=Mg();function u(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return i.raceWith.apply(void 0,r([],e(a.argsOrArgArray(s))))}return Ca.race=u,Ca}var yR;function qN(){return yR||(yR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.mergeAll=e.merge=e.max=e.materialize=e.mapTo=e.map=e.last=e.isEmpty=e.ignoreElements=e.groupBy=e.first=e.findIndex=e.find=e.finalize=e.filter=e.expand=e.exhaustMap=e.exhaustAll=e.exhaust=e.every=e.endWith=e.elementAt=e.distinctUntilKeyChanged=e.distinctUntilChanged=e.distinct=e.dematerialize=e.delayWhen=e.delay=e.defaultIfEmpty=e.debounceTime=e.debounce=e.count=e.connect=e.concatWith=e.concatMapTo=e.concatMap=e.concatAll=e.concat=e.combineLatestWith=e.combineLatest=e.combineLatestAll=e.combineAll=e.catchError=e.bufferWhen=e.bufferToggle=e.bufferTime=e.bufferCount=e.buffer=e.auditTime=e.audit=void 0,e.timeInterval=e.throwIfEmpty=e.throttleTime=e.throttle=e.tap=e.takeWhile=e.takeUntil=e.takeLast=e.take=e.switchScan=e.switchMapTo=e.switchMap=e.switchAll=e.subscribeOn=e.startWith=e.skipWhile=e.skipUntil=e.skipLast=e.skip=e.single=e.shareReplay=e.share=e.sequenceEqual=e.scan=e.sampleTime=e.sample=e.refCount=e.retryWhen=e.retry=e.repeatWhen=e.repeat=e.reduce=e.raceWith=e.race=e.publishReplay=e.publishLast=e.publishBehavior=e.publish=e.pluck=e.partition=e.pairwise=e.onErrorResumeNext=e.observeOn=e.multicast=e.min=e.mergeWith=e.mergeScan=e.mergeMapTo=e.mergeMap=e.flatMap=void 0,e.zipWith=e.zipAll=e.zip=e.withLatestFrom=e.windowWhen=e.windowToggle=e.windowTime=e.windowCount=e.window=e.toArray=e.timestamp=e.timeoutWith=e.timeout=void 0;var r=pg();Object.defineProperty(e,"audit",{enumerable:!0,get:function(){return r.audit}});var a=C2();Object.defineProperty(e,"auditTime",{enumerable:!0,get:function(){return a.auditTime}});var i=P2();Object.defineProperty(e,"buffer",{enumerable:!0,get:function(){return i.buffer}});var u=D2();Object.defineProperty(e,"bufferCount",{enumerable:!0,get:function(){return u.bufferCount}});var s=N2();Object.defineProperty(e,"bufferTime",{enumerable:!0,get:function(){return s.bufferTime}});var l=k2();Object.defineProperty(e,"bufferToggle",{enumerable:!0,get:function(){return l.bufferToggle}});var c=q2();Object.defineProperty(e,"bufferWhen",{enumerable:!0,get:function(){return c.bufferWhen}});var f=V2();Object.defineProperty(e,"catchError",{enumerable:!0,get:function(){return f.catchError}});var h=z2();Object.defineProperty(e,"combineAll",{enumerable:!0,get:function(){return h.combineAll}});var m=bg();Object.defineProperty(e,"combineLatestAll",{enumerable:!0,get:function(){return m.combineLatestAll}});var v=I2();Object.defineProperty(e,"combineLatest",{enumerable:!0,get:function(){return v.combineLatest}});var y=F2();Object.defineProperty(e,"combineLatestWith",{enumerable:!0,get:function(){return y.combineLatestWith}});var g=$2();Object.defineProperty(e,"concat",{enumerable:!0,get:function(){return g.concat}});var S=am();Object.defineProperty(e,"concatAll",{enumerable:!0,get:function(){return S.concatAll}});var _=gg();Object.defineProperty(e,"concatMap",{enumerable:!0,get:function(){return _.concatMap}});var w=B2();Object.defineProperty(e,"concatMapTo",{enumerable:!0,get:function(){return w.concatMapTo}});var E=H2();Object.defineProperty(e,"concatWith",{enumerable:!0,get:function(){return E.concatWith}});var R=um();Object.defineProperty(e,"connect",{enumerable:!0,get:function(){return R.connect}});var T=Y2();Object.defineProperty(e,"count",{enumerable:!0,get:function(){return T.count}});var j=G2();Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return j.debounce}});var M=W2();Object.defineProperty(e,"debounceTime",{enumerable:!0,get:function(){return M.debounceTime}});var V=Id();Object.defineProperty(e,"defaultIfEmpty",{enumerable:!0,get:function(){return V.defaultIfEmpty}});var U=Q2();Object.defineProperty(e,"delay",{enumerable:!0,get:function(){return U.delay}});var N=wg();Object.defineProperty(e,"delayWhen",{enumerable:!0,get:function(){return N.delayWhen}});var D=X2();Object.defineProperty(e,"dematerialize",{enumerable:!0,get:function(){return D.dematerialize}});var J=K2();Object.defineProperty(e,"distinct",{enumerable:!0,get:function(){return J.distinct}});var le=Og();Object.defineProperty(e,"distinctUntilChanged",{enumerable:!0,get:function(){return le.distinctUntilChanged}});var I=Z2();Object.defineProperty(e,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return I.distinctUntilKeyChanged}});var oe=J2();Object.defineProperty(e,"elementAt",{enumerable:!0,get:function(){return oe.elementAt}});var de=ex();Object.defineProperty(e,"endWith",{enumerable:!0,get:function(){return de.endWith}});var ye=tx();Object.defineProperty(e,"every",{enumerable:!0,get:function(){return ye.every}});var C=rx();Object.defineProperty(e,"exhaust",{enumerable:!0,get:function(){return C.exhaust}});var te=Ag();Object.defineProperty(e,"exhaustAll",{enumerable:!0,get:function(){return te.exhaustAll}});var ae=Eg();Object.defineProperty(e,"exhaustMap",{enumerable:!0,get:function(){return ae.exhaustMap}});var xe=nx();Object.defineProperty(e,"expand",{enumerable:!0,get:function(){return xe.expand}});var k=Ri();Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return k.filter}});var Y=ax();Object.defineProperty(e,"finalize",{enumerable:!0,get:function(){return Y.finalize}});var me=Rg();Object.defineProperty(e,"find",{enumerable:!0,get:function(){return me.find}});var ue=ix();Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return ue.findIndex}});var ge=ox();Object.defineProperty(e,"first",{enumerable:!0,get:function(){return ge.first}});var Pe=ux();Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return Pe.groupBy}});var we=_g();Object.defineProperty(e,"ignoreElements",{enumerable:!0,get:function(){return we.ignoreElements}});var Ve=sx();Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return Ve.isEmpty}});var Ie=lx();Object.defineProperty(e,"last",{enumerable:!0,get:function(){return Ie.last}});var et=Ai();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return et.map}});var _t=Sg();Object.defineProperty(e,"mapTo",{enumerable:!0,get:function(){return _t.mapTo}});var Rt=cx();Object.defineProperty(e,"materialize",{enumerable:!0,get:function(){return Rt.materialize}});var Lt=fx();Object.defineProperty(e,"max",{enumerable:!0,get:function(){return Lt.max}});var Nr=mx();Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return Nr.merge}});var tt=zd();Object.defineProperty(e,"mergeAll",{enumerable:!0,get:function(){return tt.mergeAll}});var kr=dx();Object.defineProperty(e,"flatMap",{enumerable:!0,get:function(){return kr.flatMap}});var Yr=La();Object.defineProperty(e,"mergeMap",{enumerable:!0,get:function(){return Yr.mergeMap}});var yt=hx();Object.defineProperty(e,"mergeMapTo",{enumerable:!0,get:function(){return yt.mergeMapTo}});var sn=vx();Object.defineProperty(e,"mergeScan",{enumerable:!0,get:function(){return sn.mergeScan}});var Tt=px();Object.defineProperty(e,"mergeWith",{enumerable:!0,get:function(){return Tt.mergeWith}});var q=yx();Object.defineProperty(e,"min",{enumerable:!0,get:function(){return q.min}});var G=sm();Object.defineProperty(e,"multicast",{enumerable:!0,get:function(){return G.multicast}});var re=Ld();Object.defineProperty(e,"observeOn",{enumerable:!0,get:function(){return re.observeOn}});var _e=bx();Object.defineProperty(e,"onErrorResumeNext",{enumerable:!0,get:function(){return _e.onErrorResumeNext}});var be=gx();Object.defineProperty(e,"pairwise",{enumerable:!0,get:function(){return be.pairwise}});var pe=NN();Object.defineProperty(e,"partition",{enumerable:!0,get:function(){return pe.partition}});var Se=_x();Object.defineProperty(e,"pluck",{enumerable:!0,get:function(){return Se.pluck}});var De=Sx();Object.defineProperty(e,"publish",{enumerable:!0,get:function(){return De.publish}});var Fe=wx();Object.defineProperty(e,"publishBehavior",{enumerable:!0,get:function(){return Fe.publishBehavior}});var Xe=Ox();Object.defineProperty(e,"publishLast",{enumerable:!0,get:function(){return Xe.publishLast}});var Ft=Ex();Object.defineProperty(e,"publishReplay",{enumerable:!0,get:function(){return Ft.publishReplay}});var Bt=kN();Object.defineProperty(e,"race",{enumerable:!0,get:function(){return Bt.race}});var fr=Mg();Object.defineProperty(e,"raceWith",{enumerable:!0,get:function(){return fr.raceWith}});var dr=rs();Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return dr.reduce}});var Xt=Ax();Object.defineProperty(e,"repeat",{enumerable:!0,get:function(){return Xt.repeat}});var Kt=Rx();Object.defineProperty(e,"repeatWhen",{enumerable:!0,get:function(){return Kt.repeatWhen}});var hr=Tx();Object.defineProperty(e,"retry",{enumerable:!0,get:function(){return hr.retry}});var Ar=Mx();Object.defineProperty(e,"retryWhen",{enumerable:!0,get:function(){return Ar.retryWhen}});var Rr=ag();Object.defineProperty(e,"refCount",{enumerable:!0,get:function(){return Rr.refCount}});var ar=xg();Object.defineProperty(e,"sample",{enumerable:!0,get:function(){return ar.sample}});var kn=xx();Object.defineProperty(e,"sampleTime",{enumerable:!0,get:function(){return kn.sampleTime}});var _n=jx();Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return _n.scan}});var qr=Cx();Object.defineProperty(e,"sequenceEqual",{enumerable:!0,get:function(){return qr.sequenceEqual}});var qn=jg();Object.defineProperty(e,"share",{enumerable:!0,get:function(){return qn.share}});var qe=Px();Object.defineProperty(e,"shareReplay",{enumerable:!0,get:function(){return qe.shareReplay}});var x=Dx();Object.defineProperty(e,"single",{enumerable:!0,get:function(){return x.single}});var z=Nx();Object.defineProperty(e,"skip",{enumerable:!0,get:function(){return z.skip}});var ne=kx();Object.defineProperty(e,"skipLast",{enumerable:!0,get:function(){return ne.skipLast}});var ee=qx();Object.defineProperty(e,"skipUntil",{enumerable:!0,get:function(){return ee.skipUntil}});var X=Vx();Object.defineProperty(e,"skipWhile",{enumerable:!0,get:function(){return X.skipWhile}});var Z=Lx();Object.defineProperty(e,"startWith",{enumerable:!0,get:function(){return Z.startWith}});var ie=Ud();Object.defineProperty(e,"subscribeOn",{enumerable:!0,get:function(){return ie.subscribeOn}});var ve=Ux();Object.defineProperty(e,"switchAll",{enumerable:!0,get:function(){return ve.switchAll}});var Me=$d();Object.defineProperty(e,"switchMap",{enumerable:!0,get:function(){return Me.switchMap}});var Le=zx();Object.defineProperty(e,"switchMapTo",{enumerable:!0,get:function(){return Le.switchMapTo}});var Ke=Ix();Object.defineProperty(e,"switchScan",{enumerable:!0,get:function(){return Ke.switchScan}});var rt=Fd();Object.defineProperty(e,"take",{enumerable:!0,get:function(){return rt.take}});var St=Tg();Object.defineProperty(e,"takeLast",{enumerable:!0,get:function(){return St.takeLast}});var Zt=Fx();Object.defineProperty(e,"takeUntil",{enumerable:!0,get:function(){return Zt.takeUntil}});var Ut=Bx();Object.defineProperty(e,"takeWhile",{enumerable:!0,get:function(){return Ut.takeWhile}});var wt=$x();Object.defineProperty(e,"tap",{enumerable:!0,get:function(){return wt.tap}});var Vr=Cg();Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return Vr.throttle}});var $t=Hx();Object.defineProperty(e,"throttleTime",{enumerable:!0,get:function(){return $t.throttleTime}});var Mt=Bd();Object.defineProperty(e,"throwIfEmpty",{enumerable:!0,get:function(){return Mt.throwIfEmpty}});var mt=Yx();Object.defineProperty(e,"timeInterval",{enumerable:!0,get:function(){return mt.timeInterval}});var st=Uv();Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return st.timeout}});var Tr=Gx();Object.defineProperty(e,"timeoutWith",{enumerable:!0,get:function(){return Tr.timeoutWith}});var vr=Wx();Object.defineProperty(e,"timestamp",{enumerable:!0,get:function(){return vr.timestamp}});var Mr=yg();Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return Mr.toArray}});var Sn=Qx();Object.defineProperty(e,"window",{enumerable:!0,get:function(){return Sn.window}});var Vn=Xx();Object.defineProperty(e,"windowCount",{enumerable:!0,get:function(){return Vn.windowCount}});var mr=Kx();Object.defineProperty(e,"windowTime",{enumerable:!0,get:function(){return mr.windowTime}});var cs=Zx();Object.defineProperty(e,"windowToggle",{enumerable:!0,get:function(){return cs.windowToggle}});var Ua=Jx();Object.defineProperty(e,"windowWhen",{enumerable:!0,get:function(){return Ua.windowWhen}});var za=ej();Object.defineProperty(e,"withLatestFrom",{enumerable:!0,get:function(){return za.withLatestFrom}});var Gr=rj();Object.defineProperty(e,"zip",{enumerable:!0,get:function(){return Gr.zip}});var Mi=tj();Object.defineProperty(e,"zipAll",{enumerable:!0,get:function(){return Mi.zipAll}});var Qo=nj();Object.defineProperty(e,"zipWith",{enumerable:!0,get:function(){return Qo.zipWith}})}(Fy)),Fy}var By={},bR;function aj(){return bR||(bR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createInspectorManager=e.isInspectable=e.RemeshInspectorDomain=e.InspectorType=void 0;var r=es,a=Lv();e.InspectorType={DomainCreated:"Domain::Created",DomainDiscarded:"Domain::Discarded",DomainReused:"Domain::Reused",StateCreated:"State::Created",StateUpdated:"State::Updated",StateDiscarded:"State::Discarded",StateReused:"State::Reused",QueryCreated:"Query::Created",QueryUpdated:"Query::Updated",QueryDiscarded:"Query::Discarded",QueryReused:"Query::Reused",EventEmitted:"Event::Emitted",CommandReceived:"Command::Received"},e.RemeshInspectorDomain=(0,a.RemeshDomain)({name:"RemeshInspectorDomain",impl:function(l){var c=l.event({name:"RemeshDomainStorageEvent"}),f=l.command({name:"RemeshDomainStorageCommand",impl:function(E,R){return c(R)}}),h=l.event({name:"RemeshStateStorageEvent"}),m=l.command({name:"RemeshStateStorageCommand",impl:function(E,R){return h(R)}}),v=l.event({name:"RemeshQueryStorageEvent"}),y=l.command({name:"RemeshQueryStorageCommand",impl:function(E,R){return v(R)}}),g=l.event({name:"RemeshEventEmittedEvent"}),S=l.command({name:"RemeshEventEmittedCommand",impl:function(E,R){return g(R)}}),_=l.event({name:"RemeshCommandReceivedEvent"}),w=l.command({name:"RemeshCommandReceivedCommand",impl:function(E,R){return _(R)}});return{command:{RemeshDomainStorageCommand:f,RemeshStateStorageCommand:m,RemeshQueryStorageCommand:y,RemeshEventEmittedCommand:S,RemeshCommandReceivedCommand:w},event:{RemeshDomainStorageEvent:c,RemeshStateStorageEvent:h,RemeshQueryStorageEvent:v,RemeshEventEmittedEvent:g,RemeshCommandReceivedEvent:_}}}});var i=function(l){return l.owner?l.owner.Domain.inspectable&&l.inspectable:l.inspectable};e.isInspectable=i;var u=function(l){var c;return((c=l.inspectors)!==null&&c!==void 0?c:[]).filter(function(f){return!!f}).map(function(f){l.inspectors;var h=r.__rest(l,["inspectors"]);return f(h)})},s=function(l){var c=null,f=function(){return c||(c=u(l)),c},h=function(){var _,w;if(c){try{for(var E=r.__values(c),R=E.next();!R.done;R=E.next()){var T=R.value;T.discard()}}catch(j){_={error:j}}finally{try{R&&!R.done&&(w=E.return)&&w.call(E)}finally{if(_)throw _.error}}c=null}},m=function(_,w){var E,R;if((0,e.isInspectable)(w.Domain))try{for(var T=r.__values(f()),j=T.next();!j.done;j=T.next()){var M=j.value,V=M.getDomain((0,e.RemeshInspectorDomain)());M.send(V.command.RemeshDomainStorageCommand({type:_,storage:w}))}}catch(U){E={error:U}}finally{try{j&&!j.done&&(R=T.return)&&R.call(T)}finally{if(E)throw E.error}}},v=function(_,w){var E,R;if((0,e.isInspectable)(w.State))try{for(var T=r.__values(f()),j=T.next();!j.done;j=T.next()){var M=j.value,V=M.getDomain((0,e.RemeshInspectorDomain)());M.send(V.command.RemeshStateStorageCommand({type:_,storage:w}))}}catch(U){E={error:U}}finally{try{j&&!j.done&&(R=T.return)&&R.call(T)}finally{if(E)throw E.error}}},y=function(_,w){var E,R;if((0,e.isInspectable)(w.Query))try{for(var T=r.__values(f()),j=T.next();!j.done;j=T.next()){var M=j.value,V=M.getDomain((0,e.RemeshInspectorDomain)());M.send(V.command.RemeshQueryStorageCommand({type:_,storage:w}))}}catch(U){E={error:U}}finally{try{j&&!j.done&&(R=T.return)&&R.call(T)}finally{if(E)throw E.error}}},g=function(_,w){var E,R;if((0,e.isInspectable)(w.Event))try{for(var T=r.__values(f()),j=T.next();!j.done;j=T.next()){var M=j.value,V=M.getDomain((0,e.RemeshInspectorDomain)());M.send(V.command.RemeshEventEmittedCommand({type:_,action:w}))}}catch(U){E={error:U}}finally{try{j&&!j.done&&(R=T.return)&&R.call(T)}finally{if(E)throw E.error}}},S=function(_,w){var E,R;if((0,e.isInspectable)(w.Command))try{for(var T=r.__values(f()),j=T.next();!j.done;j=T.next()){var M=j.value,V=M.getDomain((0,e.RemeshInspectorDomain)());M.send(V.command.RemeshCommandReceivedCommand({type:_,action:w}))}}catch(U){E={error:U}}finally{try{j&&!j.done&&(R=T.return)&&R.call(T)}finally{if(E)throw E.error}}};return{destroyInspectors:h,inspectDomainStorage:m,inspectStateStorage:v,inspectQueryStorage:y,inspectEventEmitted:g,inspectCommandReceived:S}};e.createInspectorManager=s}(By)),By}var gR;function _R(){if(gR)return hl;gR=1,Object.defineProperty(hl,"__esModule",{value:!0}),hl.RemeshStore=void 0;var e=es,r=DN(),a=qN(),i=Lv(),u=aj(),s=0,l=function(c){var f=e.__assign({},c),h=(0,u.createInspectorManager)(f),m=new Set,v=new Set,y=new Set,g=new Map,S=new WeakMap,_=function(x){var z,ne,ee;try{for(var X=e.__values((ee=f.externs)!==null&&ee!==void 0?ee:[]),Z=X.next();!Z.done;Z=X.next()){var ie=Z.value;if(ie.Extern===x)return ie.value}}catch(ve){z={error:ve}}finally{try{Z&&!Z.done&&(ne=X.return)&&ne.call(X)}finally{if(z)throw z.error}}return x.default},w=function(x){var z=S.get(x);if(z)return z;var ne=_(x),ee={id:s++,type:"RemeshExternStorage",Extern:x,currentValue:ne};return S.set(x,ee),ee},E=function(x){return w(x).currentValue},R=new WeakMap,T=function(x){var z,ne=R.get(x);if(ne)return ne;var ee=x.Query.queryName,X=(z=JSON.stringify(x.arg))!==null&&z!==void 0?z:"",Z="Query/".concat(x.Query.queryId,"/").concat(ee,":").concat(X);return R.set(x,Z),Z},j=function(x){var z,ne=R.get(x);if(ne)return ne;var ee=x.Domain.domainName,X=(z=JSON.stringify(x.arg))!==null&&z!==void 0?z:"",Z="Domain/".concat(x.Domain.domainId,"/").concat(ee,":").concat(X);return R.set(x,Z),Z},M=function(x){return x.type==="RemeshQueryAction"?T(x):j(x)},V=new WeakMap,U=function(x){return typeof x.default=="function"?x.default():x.default},N=function(x){var z=Y(x.State.owner),ne=U(x.State),ee={id:s++,type:"RemeshStateStorage",State:x.State,stateItem:x,currentState:ne,downstreamSet:new Set};return z.stateMap.set(x,ee),V.set(x,ee),h.inspectStateStorage(u.InspectorType.StateCreated,ee),ee},D=function(x){var z=Y(x.State.owner);z.stateMap.has(x.stateItem)||(x.currentState=U(x.State),z.stateMap.set(x.stateItem,x),h.inspectStateStorage(u.InspectorType.StateReused,x))},J=function(x){var z=Y(x.State.owner),ne=z.stateMap.get(x);if(ne)return ne;var ee=V.get(x);return ee?(D(ee),ee):N(x)},le=new WeakMap,I=function(x){var z=Y(x.owner),ne={get:tt.get},ee=new r.Subject,X=ee.pipe((0,a.map)(function(Me){return x.impl?x.impl(ne,Me):Me})),Z=new r.Observable(function(Me){var Le=X.subscribe(Me);return function(){Le.unsubscribe(),Ie(ve)}}),ie=le.get(x),ve=Object.assign(ie??{},{id:s++,type:"RemeshEventStorage",Event:x,subject:ee,observable:Z,innerRefCount:0,outerRefCount:0});return z.eventMap.set(x,ve),le.set(x,ve),ve},oe=function(x){var z,ne=Y(x.owner),ee=(z=ne.eventMap.get(x))!==null&&z!==void 0?z:I(x);return ee},de=new WeakMap,ye=function(x){var z=Y(x.Query.owner),ne=T(x),ee=new r.Subject,X=new Set,Z={id:s++,type:"RemeshQueryStorage",Query:x.Query,arg:x.arg,key:ne,upstreamSet:X,downstreamSet:new Set,subject:ee,innerRefCount:0,outerRefCount:0,status:"default",wipUpstreamSet:new Set},ie=x.Query,ve={get:function(Le){if(Z.upstreamSet!==X)return tt.get(Le);if(Le.type==="RemeshStateItem"){var Ke=J(Le);return Z.upstreamSet.add(Ke),Ke.downstreamSet.add(Z),tt.get(Le)}if(Le.type==="RemeshQueryAction"){var rt=te(Le);return Z.upstreamSet.add(rt),rt.downstreamSet.add(Z),tt.get(Le)}return tt.get(Le)}},Me=ie.impl(ve,x.arg);return Z.currentValue=Me,z.queryMap.set(ne,Z),de.set(x,Z),h.inspectQueryStorage(u.InspectorType.QueryCreated,Z),Z},C=function(x){var z,ne,ee=Y(x.Query.owner);if(!ee.queryMap.has(x.key)){var X=new r.Subject;x.status="default",x.subject=X,ee.queryMap.set(x.key,x);try{for(var Z=e.__values(x.upstreamSet),ie=Z.next();!ie.done;ie=Z.next()){var ve=ie.value;if(ve.downstreamSet.add(x),ve.type==="RemeshQueryStorage")C(ve);else if(ve.type==="RemeshStateStorage")D(ve);else throw new Error("Unknown upstream: ".concat(ve))}}catch(Me){z={error:Me}}finally{try{ie&&!ie.done&&(ne=Z.return)&&ne.call(Z)}finally{if(z)throw z.error}}Yr(x),h.inspectQueryStorage(u.InspectorType.QueryReused,x)}},te=function(x){var z=Y(x.Query.owner),ne=T(x),ee=z.queryMap.get(ne);if(ee)return ee;var X=de.get(x);return X?(C(X),X):ye(x)},ae=new WeakMap,xe=function(x){var z=j(x),ne=new Set,ee={state:function(ie){var ve=(0,i.RemeshState)(ie);return ve.owner=x,ve},query:function(ie){var ve=(0,i.RemeshQuery)(ie);return ve.owner=x,ve},event:function(ie){var ve=(0,i.RemeshEvent)(ie);return ve.owner=x,ve},command:function(ie){var ve=(0,i.RemeshCommand)(ie);return ve.owner=x,ve},effect:function(ie){X.ignited||X.effectList.push(ie)},preload:function(ie){X.ignited||X.preloadOptionsList.push(ie)},getDomain:function(ie){var ve=Y(ie);return ne.add(ve),ve.downstreamSet.add(X),X.ignited&&Xt(ie),ve.domain},forgetDomain:function(ie){var ve=Y(ie);ne.delete(ve),ve.downstreamSet.delete(X),Rt(ve)},getExtern:function(ie){return E(ie)}},X={id:s++,type:"RemeshDomainStorage",Domain:x.Domain,get domain(){return Z},arg:x.arg,domainContext:ee,domainAction:x,key:z,upstreamSet:ne,downstreamSet:new Set,effectList:[],stateMap:new Map,queryMap:new Map,eventMap:new Map,effectMap:new Map,preloadOptionsList:[],preloadedState:{},refCount:0,ignited:!1,hasBeenPreloaded:!1,isDiscarding:!1},Z=(0,i.toValidRemeshDomainDefinition)(x.Domain.impl(ee,x.arg));return g.set(z,X),ae.set(x,X),h.inspectDomainStorage(u.InspectorType.DomainCreated,X),k(X),X},k=function(x){var z,ne;if(c!=null&&c.preloadedState){var ee={get:tt.get};try{for(var X=e.__values(x.preloadOptionsList),Z=X.next();!Z.done;Z=X.next()){var ie=Z.value;if(Object.prototype.hasOwnProperty.call(c.preloadedState,ie.key)){var ve=c.preloadedState[ie.key];Se(ie.command(ee,ve))}}}catch(Me){z={error:Me}}finally{try{Z&&!Z.done&&(ne=X.return)&&ne.call(X)}finally{if(z)throw z.error}}}},Y=function(x){var z,ne,ee=j(x),X=g.get(ee);if(X)return ae.set(x,X),X;var Z=ae.get(x);if(Z){Z.ignited=!1,Z.isDiscarding=!1,g.set(Z.key,Z);try{for(var ie=e.__values(Z.upstreamSet),ve=ie.next();!ve.done;ve=ie.next()){var Me=ve.value;Me.downstreamSet.add(Z)}}catch(Le){z={error:Le}}finally{try{ve&&!ve.done&&(ne=ie.return)&&ne.call(ie)}finally{if(z)throw z.error}}return h.inspectDomainStorage(u.InspectorType.DomainReused,Z),Z}return xe(x)},me=function(x){var z,ne,ee=Y(x.Query.owner);if(ee.queryMap.has(x.key)){ee.queryMap.delete(x.key),x.subject.complete(),h.inspectQueryStorage(u.InspectorType.QueryDiscarded,x);try{for(var X=e.__values(x.upstreamSet),Z=X.next();!Z.done;Z=X.next()){var ie=Z.value;ie.downstreamSet.has(x)&&(ie.downstreamSet.delete(x),ie.type==="RemeshQueryStorage"&&ge(ie))}}catch(ve){z={error:ve}}finally{try{Z&&!Z.done&&(ne=X.return)&&ne.call(X)}finally{if(z)throw z.error}}Rt(ee)}},ue=function(x){var z=Y(x.Query.owner);if(z.refCount>0){if(x.innerRefCount>0||x.outerRefCount>0)return!1}else if(x.outerRefCount>0)return!1;return x.downstreamSet.size===0},ge=function(x){ue(x)&&me(x)},Pe=function(x){var z=Y(x.State.owner);z.stateMap.has(x.stateItem)&&(z.stateMap.delete(x.stateItem),x.downstreamSet.clear(),h.inspectStateStorage(u.InspectorType.StateDiscarded,x))},we=function(x){var z=Y(x.Event.owner);x.subject.complete(),z.eventMap.delete(x.Event),Rt(z)},Ve=function(x){var z=Y(x.Event.owner);if(z.refCount>0){if(x.innerRefCount>0||x.outerRefCount>0)return!1}else if(x.outerRefCount>0)return!1;return!0},Ie=function(x){Ve(x)&&we(x)},et=function(x){var z,ne,ee,X,Z,ie,ve,Me,Le,Ke;if(!x.isDiscarding){x.isDiscarding=!0,x.ignited=!1;try{for(var rt=e.__values(x.effectMap.values()),St=rt.next();!St.done;St=rt.next()){var Zt=St.value;Zt.unsubscribe()}}catch(mr){z={error:mr}}finally{try{St&&!St.done&&(ne=rt.return)&&ne.call(rt)}finally{if(z)throw z.error}}try{for(var Ut=e.__values(x.eventMap.values()),wt=Ut.next();!wt.done;wt=Ut.next()){var Vr=wt.value;we(Vr)}}catch(mr){ee={error:mr}}finally{try{wt&&!wt.done&&(X=Ut.return)&&X.call(Ut)}finally{if(ee)throw ee.error}}try{for(var $t=e.__values(x.queryMap.values()),Mt=$t.next();!Mt.done;Mt=$t.next()){var mt=Mt.value;me(mt)}}catch(mr){Z={error:mr}}finally{try{Mt&&!Mt.done&&(ie=$t.return)&&ie.call($t)}finally{if(Z)throw Z.error}}try{for(var st=e.__values(x.stateMap.values()),Tr=st.next();!Tr.done;Tr=st.next()){var vr=Tr.value;Pe(vr)}}catch(mr){ve={error:mr}}finally{try{Tr&&!Tr.done&&(Me=st.return)&&Me.call(st)}finally{if(ve)throw ve.error}}x.downstreamSet.clear(),x.stateMap.clear(),x.queryMap.clear(),x.eventMap.clear(),x.effectMap.clear(),g.delete(x.key),h.inspectDomainStorage(u.InspectorType.DomainDiscarded,x);try{for(var Mr=e.__values(x.upstreamSet),Sn=Mr.next();!Sn.done;Sn=Mr.next()){var Vn=Sn.value;Vn.downstreamSet.has(x)&&(Vn.downstreamSet.delete(x),Rt(Vn))}}catch(mr){Le={error:mr}}finally{try{Sn&&!Sn.done&&(Ke=Mr.return)&&Ke.call(Mr)}finally{if(Le)throw Le.error}}}},_t=function(x){var z,ne,ee,X;if(x.refCount>0||x.isDiscarding||x.downstreamSet.size!==0)return!1;try{for(var Z=e.__values(x.queryMap.values()),ie=Z.next();!ie.done;ie=Z.next()){var ve=ie.value;if(ve.outerRefCount>0)return!1}}catch(rt){z={error:rt}}finally{try{ie&&!ie.done&&(ne=Z.return)&&ne.call(Z)}finally{if(z)throw z.error}}try{for(var Me=e.__values(x.eventMap.values()),Le=Me.next();!Le.done;Le=Me.next()){var Ke=Le.value;if(Ke.outerRefCount>0)return!1}}catch(rt){ee={error:rt}}finally{try{Le&&!Le.done&&(X=Me.return)&&X.call(Me)}finally{if(ee)throw ee.error}}return!0},Rt=function(x){_t(x)&&et(x)},Lt=function(x){var z=J(x);if(z.currentState===i.DefaultStateValue)throw new Error("Unexpected reading domain.state before initializing: ".concat(z.State.stateName));return z.currentState},Nr=function(x){var z=te(x);kr(z);var ne=z.currentValue;return ne},tt={get:function(x){if(x.type==="RemeshStateItem")return Lt(x);if(x.type==="RemeshQueryAction")return Nr(x);throw new Error("Unexpected input in ctx.get(..): ".concat(x))},fromEvent:function(x){var z=x.type==="RemeshSubscribeOnlyEvent"?oe((0,i.internalToOriginalEvent)(x)):oe(x),ne=new r.Observable(function(ee){var X=z.observable.subscribe(ee);return z.innerRefCount+=1,function(){z.innerRefCount-=1,X.unsubscribe(),Ie(z)}});return ne},fromQuery:function(x){var z=te(x),ne=new r.Observable(function(ee){var X=z.subject.subscribe(ee);return z.innerRefCount+=1,function(){z.innerRefCount-=1,X.unsubscribe(),ge(z)}});return ne}},kr=function(x){var z,ne;if(x.status==="wip"){if(x.wipUpstreamSet.size!==0){var ee=!1;try{for(var X=e.__values(x.wipUpstreamSet),Z=X.next();!Z.done;Z=X.next()){var ie=Z.value;if(ie.type==="RemeshStateStorage")ee=!0;else if(ie.type==="RemeshQueryStorage")ie.status==="wip"&&kr(ie),ie.status==="updated"&&(ee=!0);else throw new Error("Unexpected upstream: ".concat(ie))}}catch(Me){z={error:Me}}finally{try{Z&&!Z.done&&(ne=X.return)&&ne.call(X)}finally{if(z)throw z.error}}if(x.wipUpstreamSet.clear(),!ee){x.status="default";return}}var ve=Yr(x);ve?x.status="updated":x.status="default"}},Yr=function(x){var z,ne,ee,X,Z=x.Query;try{for(var ie=e.__values(x.upstreamSet),ve=ie.next();!ve.done;ve=ie.next()){var Me=ve.value;Me.downstreamSet.has(x)&&(Me.downstreamSet.delete(x),Me.downstreamSet.size===0&&Me.type!=="RemeshStateStorage"&&y.add(Me))}}catch(st){z={error:st}}finally{try{ve&&!ve.done&&(ne=ie.return)&&ne.call(ie)}finally{if(z)throw z.error}}var Le=new Set;x.upstreamSet=Le;var Ke={get:function(st){if(x.upstreamSet!==Le)return tt.get(st);if(st.type==="RemeshStateItem"){var Tr=J(st);return x.upstreamSet.add(Tr),Tr.downstreamSet.add(x),tt.get(st)}if(st.type==="RemeshQueryAction"){var vr=te(st);return x.upstreamSet.add(vr),vr.downstreamSet.add(x),tt.get(st)}return tt.get(st)}},rt,St=x.currentValue;if(!Z.onError)rt=Z.impl(Ke,x.arg);else try{rt=Z.impl(Ke,x.arg)}catch(st){var Zt=st instanceof Error?st:new Error("".concat(st));rt=Z.onError(Zt,St)}var Ut=Z.compare(St,rt);if(Ut)return!1;x.currentValue=rt,m.add(x),h.inspectQueryStorage(u.InspectorType.QueryUpdated,x);var wt=(0,i.getCommandTaskSet)(Z,"changed");if(wt){var Vr={current:rt,previous:St};try{for(var $t=e.__values(wt),Mt=$t.next();!Mt.done;Mt=$t.next()){var mt=Mt.value;Se(mt(be,Vr))}}catch(st){ee={error:st}}finally{try{Mt&&!Mt.done&&(X=$t.return)&&X.call($t)}finally{if(ee)throw ee.error}}}return!0},yt=function(){var x,z;if(y.size!==0){var ne=e.__spreadArray([],e.__read(y),!1);y.clear();try{for(var ee=e.__values(ne),X=ee.next();!X.done;X=ee.next()){var Z=X.value;ge(Z)}}catch(ie){x={error:ie}}finally{try{X&&!X.done&&(z=ee.return)&&z.call(ee)}finally{if(x)throw x.error}}yt()}},sn=function(){var x,z;if(m.size!==0){var ne=e.__spreadArray([],e.__read(m),!1);m.clear();try{for(var ee=e.__values(ne),X=ee.next();!X.done;X=ee.next()){var Z=X.value;m.has(Z)||(Z.type==="RemeshQueryStorage"?Z.subject.next(Z.currentValue):Z.type==="RemeshEventAction"&&_e(Z))}}catch(ie){x={error:ie}}finally{try{X&&!X.done&&(z=ee.return)&&z.call(ee)}finally{if(x)throw x.error}}sn()}},Tt=function(x){var z,ne;if(x.status="wip",x.downstreamSet.size>0)try{for(var ee=e.__values(x.downstreamSet),X=ee.next();!X.done;X=ee.next()){var Z=X.value;Z.wipUpstreamSet.has(x)||(Z.wipUpstreamSet.add(x),Tt(Z))}}catch(ie){z={error:ie}}finally{try{X&&!X.done&&(ne=ee.return)&&ne.call(ee)}finally{if(z)throw z.error}}else v.add(x)},q=function(){var x,z;if(v.size!==0){var ne=e.__spreadArray([],e.__read(v),!1);v.clear();try{for(var ee=e.__values(ne),X=ee.next();!X.done;X=ee.next()){var Z=X.value;kr(Z)}}catch(ie){x={error:ie}}finally{try{X&&!X.done&&(z=ee.return)&&z.call(ee)}finally{if(x)throw x.error}}q()}},G=function(){q(),yt(),sn()},re=function(x,z){var ne,ee,X=J(x);if(X.currentState!==i.DefaultStateValue){var Z=x.State.compare(X.currentState,z);if(Z)return}X.currentState=z,h.inspectStateStorage(u.InspectorType.StateUpdated,X);try{for(var ie=e.__values(X.downstreamSet),ve=ie.next();!ve.done;ve=ie.next()){var Me=ve.value;Me.wipUpstreamSet.add(X),Tt(Me)}}catch(Le){ne={error:Le}}finally{try{ve&&!ve.done&&(ee=ie.return)&&ee.call(ie)}finally{if(ne)throw ne.error}}},_e=function(x){var z=x.Event,ne=x.arg,ee=oe(z);h.inspectEventEmitted(u.InspectorType.EventEmitted,x),ee.subject.next(ne)},be={get:tt.get},pe=function(x){var z,ne,ee,X;h.inspectCommandReceived(u.InspectorType.CommandReceived,x);var Z=x.Command,ie=x.arg,ve=Z.impl,Me=(0,i.getCommandTaskSet)(Z,"before");if(Me)try{for(var Le=e.__values(Me),Ke=Le.next();!Ke.done;Ke=Le.next()){var rt=Ke.value;Se(rt(be,ie))}}catch(wt){z={error:wt}}finally{try{Ke&&!Ke.done&&(ne=Le.return)&&ne.call(Le)}finally{if(z)throw z.error}}Se(ve(be,ie));var St=(0,i.getCommandTaskSet)(Z,"after");if(St)try{for(var Zt=e.__values(St),Ut=Zt.next();!Ut.done;Ut=Zt.next()){var rt=Ut.value;Se(rt(be,ie))}}catch(wt){ee={error:wt}}finally{try{Ut&&!Ut.done&&(X=Zt.return)&&X.call(Zt)}finally{if(ee)throw ee.error}}},Se=function(x){var z,ne;if(x)if(Array.isArray(x))try{for(var ee=e.__values(x),X=ee.next();!X.done;X=ee.next()){var Z=X.value;Se(Z)}}catch(ie){z={error:ie}}finally{try{X&&!X.done&&(ne=ee.return)&&ne.call(ee)}finally{if(z)throw z.error}}else x.type==="RemeshCommandAction"?pe(x):x.type==="RemeshStateItemUpdatePayload"?re(x.stateItem,x.value):x.type==="RemeshEventAction"&&De(x)},De=function(x){var z,ne,ee=x.Event,X=(0,i.getCommandTaskSet)(ee,"emitted");if(m.add(x),X)try{for(var Z=e.__values(X),ie=Z.next();!ie.done;ie=Z.next()){var ve=ie.value;Se(ve(be,x.arg))}}catch(Me){z={error:Me}}finally{try{ie&&!ie.done&&(ne=Z.return)&&ne.call(Z)}finally{if(z)throw z.error}}},Fe=function(x){var z=Y(x),ne=new r.Subscription(function(){z.refCount-=1,z.refCount===0&&Rt(z)});return z.refCount+=1,ne},Xe=function(x,z){var ne=te(x),ee=new r.Observable(function(X){var Z=ne.subject.subscribe(X);return ne.outerRefCount+=1,function(){ne.outerRefCount-=1,Z.unsubscribe(),ge(ne)}});return ee.subscribe(z)},Ft=function(x,z){var ne=x.type==="RemeshSubscribeOnlyEvent"?oe((0,i.internalToOriginalEvent)(x)):oe(x),ee=new r.Observable(function(X){var Z=ne.observable.subscribe(X);return ne.outerRefCount+=1,function(){ne.outerRefCount-=1,Z.unsubscribe(),Ie(ne)}});return ee.subscribe(z)},Bt=function(x){var z=Y(x);return z.domain},fr={get:tt.get,fromEvent:tt.fromEvent,fromQuery:tt.fromQuery},dr=function(x){Se(x),G()},Xt=function(x){var z,ne,ee,X,Z=Y(x);if(!Z.ignited){Z.ignited=!0;try{for(var ie=e.__values(Z.upstreamSet),ve=ie.next();!ve.done;ve=ie.next()){var Me=ve.value;Xt(Me.domainAction)}}catch(St){z={error:St}}finally{try{ve&&!ve.done&&(ne=ie.return)&&ne.call(ie)}finally{if(z)throw z.error}}try{for(var Le=e.__values(Z.effectList),Ke=Le.next();!Ke.done;Ke=Le.next()){var rt=Ke.value;Kt(Z,rt)}}catch(St){ee={error:St}}finally{try{Ke&&!Ke.done&&(X=Le.return)&&X.call(Le)}finally{if(ee)throw ee.error}}}},Kt=function(x,z){var ne=z.impl(fr);if(ne){var ee=(0,r.from)(ne).subscribe(dr);x.effectMap.set(z,ee)}},hr=function(x){var z=Y(x);et(z)},Ar=function(){var x,z;h.destroyInspectors();try{for(var ne=e.__values(g.values()),ee=ne.next();!ee.done;ee=ne.next()){var X=ee.value;et(X)}}catch(Z){x={error:Z}}finally{try{ee&&!ee.done&&(z=ne.return)&&z.call(ne)}finally{if(x)throw x.error}}g.clear(),m.clear()},Rr=function(x){var z=Y(x);if(z.ignited)throw new Error("Domain ".concat(x.Domain.domainName," was ignited before preloading"));if(z.preloadedPromise)return z.preloadedPromise;var ne=_n(x);return z.preloadedPromise=ne,ne},ar={get:tt.get},kn={get:tt.get},_n=function(x){return e.__awaiter(void 0,void 0,void 0,function(){var z;return e.__generator(this,function(ne){switch(ne.label){case 0:return z=Y(x),z.hasBeenPreloaded?[2]:(z.hasBeenPreloaded=!0,[4,Promise.all(Array.from(z.upstreamSet).map(function(ee){return Rr(ee.domainAction)}))]);case 1:return ne.sent(),[4,Promise.all(z.preloadOptionsList.map(function(ee){return e.__awaiter(void 0,void 0,void 0,function(){var X,Z;return e.__generator(this,function(ie){switch(ie.label){case 0:return[4,ee.query(kn)];case 1:if(X=ie.sent(),Object.prototype.hasOwnProperty.call(z.preloadedState,ee.key))throw new Error("Duplicate key ".concat(ee.key));return z.preloadedState[ee.key]=X,Z=ee.command(ar,X),Se(Z),[2]}})})}))];case 2:return ne.sent(),[2]}})})},qr=function(){var x,z,ne={};try{for(var ee=e.__values(g.values()),X=ee.next();!X.done;X=ee.next()){var Z=X.value;Object.assign(ne,Z.preloadedState)}}catch(ie){x={error:ie}}finally{try{X&&!X.done&&(z=ee.return)&&z.call(ee)}finally{if(x)throw x.error}}return ne},qn=function(x){var z=Y(x);return z.preloadedState},qe=function(x){Se(x),G()};return{name:f.name,getDomain:Bt,igniteDomain:Xt,discardDomain:hr,query:Nr,send:qe,discard:Ar,preload:Rr,getPreloadedState:qr,getDomainPreloadedState:qn,subscribeDomain:Fe,subscribeQuery:Xe,subscribeEvent:Ft,getKey:M}};return hl.RemeshStore=l,hl}var $y={},SR;function VN(){return SR||(SR=1,Object.defineProperty($y,"__esModule",{value:!0})),$y}var wR;function ij(){return wR||(wR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Remesh=void 0;var r=es,a=Lv(),i=_R();r.__exportStar(Lv(),e),r.__exportStar(_R(),e),r.__exportStar(aj(),e),r.__exportStar(VN(),e),e.Remesh={domain:a.RemeshDomain,extern:a.RemeshExtern,store:i.RemeshStore,state:a.RemeshState,query:a.RemeshQuery,command:a.RemeshCommand,event:a.RemeshEvent,module:a.RemeshModule}}(My)),My}var ns=ij(),Hy={},Yy={},Gy={exports:{}},Wy={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var OR;function LN(){if(OR)return Wy;OR=1;var e=Pd();function r(v,y){return v===y&&(v!==0||1/v===1/y)||v!==v&&y!==y}var a=typeof Object.is=="function"?Object.is:r,i=e.useState,u=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function c(v,y){var g=y(),S=i({inst:{value:g,getSnapshot:y}}),_=S[0].inst,w=S[1];return s(function(){_.value=g,_.getSnapshot=y,f(_)&&w({inst:_})},[v,g,y]),u(function(){return f(_)&&w({inst:_}),v(function(){f(_)&&w({inst:_})})},[v]),l(g),g}function f(v){var y=v.getSnapshot;v=v.value;try{var g=y();return!a(v,g)}catch{return!0}}function h(v,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return Wy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Wy}var ER;function oj(){return ER||(ER=1,Gy.exports=LN()),Gy.exports}var AR;function UN(){return AR||(AR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.RemeshScope=e.RemeshDomainHolderContainer=e.useRemeshDomain=e.useRemeshSend=e.useRemeshEvent=e.useRemeshQuery=e.RemeshRoot=e.useRemeshStore=e.useRemeshReactContext=e.RemeshReactContext=void 0;var r=es,a=NM(),i=Pd(),u=oj(),s=ij(),l=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?i.useLayoutEffect:i.useEffect;e.RemeshReactContext=(0,i.createContext)(null);var c=function(){var E=(0,i.useContext)(e.RemeshReactContext);if(E===null)throw new Error("You may forget to add <RemeshRoot />");return E};e.useRemeshReactContext=c;var f=function(){var E=(0,e.useRemeshReactContext)();return E.remeshStore};e.useRemeshStore=f;var h=function(E){var R=(0,i.useRef)(E.store);R.current||(R.current=(0,s.RemeshStore)("options"in E?E.options:{}));var T=R.current,j=(0,i.useMemo)(function(){return{remeshStore:T}},[T]);return(0,a.jsx)(e.RemeshReactContext.Provider,r.__assign({value:j},{children:E.children}))};e.RemeshRoot=h;var m=function(E){var R=(0,e.useRemeshStore)(),T=(0,i.useRef)(null),j=(0,i.useCallback)(function(D){return T.current=D,function(){T.current=null}},[]),M=(0,i.useCallback)(function(){var D=R.query(E);return D},[R,E]),V=(0,u.useSyncExternalStore)(j,M,M),U=(0,i.useRef)(null),N=R.getKey(E);return l(function(){return function(){var D;(D=U.current)===null||D===void 0||D.unsubscribe(),U.current=null}},[R,N]),l(function(){U.current===null&&(U.current=R.subscribeQuery(E,function(){var D;(D=T.current)===null||D===void 0||D.call(T)}))},[R,E]),V};e.useRemeshQuery=m;var v=function(E,R){var T=(0,e.useRemeshStore)(),j=(0,i.useRef)(R);l(function(){j.current=R}),l(function(){var M=T.subscribeEvent(E,function(V){j.current(V)});return function(){M.unsubscribe()}},[E,T])};e.useRemeshEvent=v;var y=function(){var E=(0,e.useRemeshStore)();return E.send};e.useRemeshSend=y;var g=function(E){var R=(0,e.useRemeshStore)(),T=R.getDomain(E);l(function(){R.igniteDomain(E)},[R,E]);var j=R.getKey(E),M=(0,i.useRef)(null);return l(function(){return function(){var V;(V=M.current)===null||V===void 0||V.unsubscribe(),M.current=null}},[R,j]),l(function(){M.current===null&&(M.current=R.subscribeDomain(E))},[R,E]),T};e.useRemeshDomain=g;var S=function(E){return(0,e.useRemeshDomain)(E.domain),(0,a.jsx)(a.Fragment,{})},_=function(E){return(0,a.jsx)(a.Fragment,{children:E.domains.map(function(R,T){return(0,a.jsx)(S,{domain:R},T)})})};e.RemeshDomainHolderContainer=_;var w=function(E){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e.RemeshDomainHolderContainer,{domains:E.domains}),E.children]})};e.RemeshScope=w}(Yy)),Yy}var RR;function zN(){return RR||(RR=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var r=es;r.__exportStar(UN(),e)}(Hy)),Hy}var Xu=zN(),IN=qM();const FN=Jb(IN);function BN(e){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",r.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}const $N=e=>{switch(e){case"success":return GN;case"info":return QN;case"warning":return WN;case"error":return XN;default:return null}},HN=Array(12).fill(0),YN=({visible:e,className:r})=>ce.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":e},ce.createElement("div",{className:"sonner-spinner"},HN.map((a,i)=>ce.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),GN=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ce.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),WN=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ce.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),QN=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ce.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),XN=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ce.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),KN=ce.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ce.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ce.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),ZN=()=>{const[e,r]=ce.useState(document.hidden);return ce.useEffect(()=>{const a=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),e};let _b=1;class JN{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const a=this.subscribers.indexOf(r);this.subscribers.splice(a,1)}),this.publish=r=>{this.subscribers.forEach(a=>a(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var a;const{message:i,...u}=r,s=typeof(r==null?void 0:r.id)=="number"||((a=r.id)==null?void 0:a.length)>0?r.id:_b++,l=this.toasts.find(f=>f.id===s),c=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),l?this.toasts=this.toasts.map(f=>f.id===s?(this.publish({...f,...r,id:s,title:i}),{...f,...r,id:s,dismissible:c,title:i}):f):this.addToast({title:i,...u,dismissible:c,id:s}),s},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(a=>a({id:r,dismiss:!0})))):this.toasts.forEach(a=>{this.subscribers.forEach(i=>i({id:a.id,dismiss:!0}))}),r),this.message=(r,a)=>this.create({...a,message:r}),this.error=(r,a)=>this.create({...a,message:r,type:"error"}),this.success=(r,a)=>this.create({...a,type:"success",message:r}),this.info=(r,a)=>this.create({...a,type:"info",message:r}),this.warning=(r,a)=>this.create({...a,type:"warning",message:r}),this.loading=(r,a)=>this.create({...a,type:"loading",message:r}),this.promise=(r,a)=>{if(!a)return;let i;a.loading!==void 0&&(i=this.create({...a,promise:r,type:"loading",message:a.loading,description:typeof a.description!="function"?a.description:void 0}));const u=Promise.resolve(r instanceof Function?r():r);let s=i!==void 0,l;const c=u.then(async h=>{if(l=["resolve",h],ce.isValidElement(h))s=!1,this.create({id:i,type:"default",message:h});else if(tk(h)&&!h.ok){s=!1;const v=typeof a.error=="function"?await a.error(`HTTP error! status: ${h.status}`):a.error,y=typeof a.description=="function"?await a.description(`HTTP error! status: ${h.status}`):a.description,S=typeof v=="object"&&!ce.isValidElement(v)?v:{message:v};this.create({id:i,type:"error",description:y,...S})}else if(h instanceof Error){s=!1;const v=typeof a.error=="function"?await a.error(h):a.error,y=typeof a.description=="function"?await a.description(h):a.description,S=typeof v=="object"&&!ce.isValidElement(v)?v:{message:v};this.create({id:i,type:"error",description:y,...S})}else if(a.success!==void 0){s=!1;const v=typeof a.success=="function"?await a.success(h):a.success,y=typeof a.description=="function"?await a.description(h):a.description,S=typeof v=="object"&&!ce.isValidElement(v)?v:{message:v};this.create({id:i,type:"success",description:y,...S})}}).catch(async h=>{if(l=["reject",h],a.error!==void 0){s=!1;const m=typeof a.error=="function"?await a.error(h):a.error,v=typeof a.description=="function"?await a.description(h):a.description,g=typeof m=="object"&&!ce.isValidElement(m)?m:{message:m};this.create({id:i,type:"error",description:v,...g})}}).finally(()=>{s&&(this.dismiss(i),i=void 0),a.finally==null||a.finally.call(a)}),f=()=>new Promise((h,m)=>c.then(()=>l[0]==="reject"?m(l[1]):h(l[1])).catch(m));return typeof i!="string"&&typeof i!="number"?{unwrap:f}:Object.assign(i,{unwrap:f})},this.custom=(r,a)=>{const i=(a==null?void 0:a.id)||_b++;return this.create({jsx:r(i),id:i,...a}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const $r=new JN,ek=(e,r)=>{const a=(r==null?void 0:r.id)||_b++;return $r.addToast({title:e,...r,id:a}),a},tk=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",rk=ek,nk=()=>$r.toasts,ak=()=>$r.getActiveToasts(),jo=Object.assign(rk,{success:$r.success,info:$r.info,warning:$r.warning,error:$r.error,custom:$r.custom,message:$r.message,promise:$r.promise,dismiss:$r.dismiss,loading:$r.loading},{getHistory:nk,getToasts:ak});BN("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function vv(e){return e.label!==void 0}const ik=3,ok="24px",uk="16px",TR=4e3,sk=356,lk=14,ck=45,fk=200;function $n(...e){return e.filter(Boolean).join(" ")}function dk(e){const[r,a]=e.split("-"),i=[];return r&&i.push(r),a&&i.push(a),i}const hk=e=>{var r,a,i,u,s,l,c,f,h;const{invert:m,toast:v,unstyled:y,interacting:g,setHeights:S,visibleToasts:_,heights:w,index:E,toasts:R,expanded:T,removeToast:j,defaultRichColors:M,closeButton:V,style:U,cancelButtonStyle:N,actionButtonStyle:D,className:J="",descriptionClassName:le="",duration:I,position:oe,gap:de,expandByDefault:ye,classNames:C,icons:te,closeButtonAriaLabel:ae="Close toast"}=e,[xe,k]=ce.useState(null),[Y,me]=ce.useState(null),[ue,ge]=ce.useState(!1),[Pe,we]=ce.useState(!1),[Ve,Ie]=ce.useState(!1),[et,_t]=ce.useState(!1),[Rt,Lt]=ce.useState(!1),[Nr,tt]=ce.useState(0),[kr,Yr]=ce.useState(0),yt=ce.useRef(v.duration||I||TR),sn=ce.useRef(null),Tt=ce.useRef(null),q=E===0,G=E+1<=_,re=v.type,_e=v.dismissible!==!1,be=v.className||"",pe=v.descriptionClassName||"",Se=ce.useMemo(()=>w.findIndex(qe=>qe.toastId===v.id)||0,[w,v.id]),De=ce.useMemo(()=>{var qe;return(qe=v.closeButton)!=null?qe:V},[v.closeButton,V]),Fe=ce.useMemo(()=>v.duration||I||TR,[v.duration,I]),Xe=ce.useRef(0),Ft=ce.useRef(0),Bt=ce.useRef(0),fr=ce.useRef(null),[dr,Xt]=oe.split("-"),Kt=ce.useMemo(()=>w.reduce((qe,x,z)=>z>=Se?qe:qe+x.height,0),[w,Se]),hr=ZN(),Ar=v.invert||m,Rr=re==="loading";Ft.current=ce.useMemo(()=>Se*de+Kt,[Se,Kt]),ce.useEffect(()=>{yt.current=Fe},[Fe]),ce.useEffect(()=>{ge(!0)},[]),ce.useEffect(()=>{const qe=Tt.current;if(qe){const x=qe.getBoundingClientRect().height;return Yr(x),S(z=>[{toastId:v.id,height:x,position:v.position},...z]),()=>S(z=>z.filter(ne=>ne.toastId!==v.id))}},[S,v.id]),ce.useLayoutEffect(()=>{if(!ue)return;const qe=Tt.current,x=qe.style.height;qe.style.height="auto";const z=qe.getBoundingClientRect().height;qe.style.height=x,Yr(z),S(ne=>ne.find(X=>X.toastId===v.id)?ne.map(X=>X.toastId===v.id?{...X,height:z}:X):[{toastId:v.id,height:z,position:v.position},...ne])},[ue,v.title,v.description,S,v.id]);const ar=ce.useCallback(()=>{we(!0),tt(Ft.current),S(qe=>qe.filter(x=>x.toastId!==v.id)),setTimeout(()=>{j(v)},fk)},[v,j,S,Ft]);ce.useEffect(()=>{if(v.promise&&re==="loading"||v.duration===1/0||v.type==="loading")return;let qe;return T||g||hr?(()=>{if(Bt.current<Xe.current){const ne=new Date().getTime()-Xe.current;yt.current=yt.current-ne}Bt.current=new Date().getTime()})():(()=>{yt.current!==1/0&&(Xe.current=new Date().getTime(),qe=setTimeout(()=>{v.onAutoClose==null||v.onAutoClose.call(v,v),ar()},yt.current))})(),()=>clearTimeout(qe)},[T,g,v,re,hr,ar]),ce.useEffect(()=>{v.delete&&ar()},[ar,v.delete]);function kn(){var qe;if(te!=null&&te.loading){var x;return ce.createElement("div",{className:$n(C==null?void 0:C.loader,v==null||(x=v.classNames)==null?void 0:x.loader,"sonner-loader"),"data-visible":re==="loading"},te.loading)}return ce.createElement(YN,{className:$n(C==null?void 0:C.loader,v==null||(qe=v.classNames)==null?void 0:qe.loader),visible:re==="loading"})}const _n=v.icon||(te==null?void 0:te[re])||$N(re);var qr,qn;return ce.createElement("li",{tabIndex:0,ref:Tt,className:$n(J,be,C==null?void 0:C.toast,v==null||(r=v.classNames)==null?void 0:r.toast,C==null?void 0:C.default,C==null?void 0:C[re],v==null||(a=v.classNames)==null?void 0:a[re]),"data-sonner-toast":"","data-rich-colors":(qr=v.richColors)!=null?qr:M,"data-styled":!(v.jsx||v.unstyled||y),"data-mounted":ue,"data-promise":!!v.promise,"data-swiped":Rt,"data-removed":Pe,"data-visible":G,"data-y-position":dr,"data-x-position":Xt,"data-index":E,"data-front":q,"data-swiping":Ve,"data-dismissible":_e,"data-type":re,"data-invert":Ar,"data-swipe-out":et,"data-swipe-direction":Y,"data-expanded":!!(T||ye&&ue),style:{"--index":E,"--toasts-before":E,"--z-index":R.length-E,"--offset":`${Pe?Nr:Ft.current}px`,"--initial-height":ye?"auto":`${kr}px`,...U,...v.style},onDragEnd:()=>{Ie(!1),k(null),fr.current=null},onPointerDown:qe=>{Rr||!_e||(sn.current=new Date,tt(Ft.current),qe.target.setPointerCapture(qe.pointerId),qe.target.tagName!=="BUTTON"&&(Ie(!0),fr.current={x:qe.clientX,y:qe.clientY}))},onPointerUp:()=>{var qe,x,z;if(et||!_e)return;fr.current=null;const ne=Number(((qe=Tt.current)==null?void 0:qe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ee=Number(((x=Tt.current)==null?void 0:x.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),X=new Date().getTime()-((z=sn.current)==null?void 0:z.getTime()),Z=xe==="x"?ne:ee,ie=Math.abs(Z)/X;if(Math.abs(Z)>=ck||ie>.11){tt(Ft.current),v.onDismiss==null||v.onDismiss.call(v,v),me(xe==="x"?ne>0?"right":"left":ee>0?"down":"up"),ar(),_t(!0);return}else{var ve,Me;(ve=Tt.current)==null||ve.style.setProperty("--swipe-amount-x","0px"),(Me=Tt.current)==null||Me.style.setProperty("--swipe-amount-y","0px")}Lt(!1),Ie(!1),k(null)},onPointerMove:qe=>{var x,z,ne;if(!fr.current||!_e||((x=window.getSelection())==null?void 0:x.toString().length)>0)return;const X=qe.clientY-fr.current.y,Z=qe.clientX-fr.current.x;var ie;const ve=(ie=e.swipeDirections)!=null?ie:dk(oe);!xe&&(Math.abs(Z)>1||Math.abs(X)>1)&&k(Math.abs(Z)>Math.abs(X)?"x":"y");let Me={x:0,y:0};const Le=Ke=>1/(1.5+Math.abs(Ke)/20);if(xe==="y"){if(ve.includes("top")||ve.includes("bottom"))if(ve.includes("top")&&X<0||ve.includes("bottom")&&X>0)Me.y=X;else{const Ke=X*Le(X);Me.y=Math.abs(Ke)<Math.abs(X)?Ke:X}}else if(xe==="x"&&(ve.includes("left")||ve.includes("right")))if(ve.includes("left")&&Z<0||ve.includes("right")&&Z>0)Me.x=Z;else{const Ke=Z*Le(Z);Me.x=Math.abs(Ke)<Math.abs(Z)?Ke:Z}(Math.abs(Me.x)>0||Math.abs(Me.y)>0)&&Lt(!0),(z=Tt.current)==null||z.style.setProperty("--swipe-amount-x",`${Me.x}px`),(ne=Tt.current)==null||ne.style.setProperty("--swipe-amount-y",`${Me.y}px`)}},De&&!v.jsx&&re!=="loading"?ce.createElement("button",{"aria-label":ae,"data-disabled":Rr,"data-close-button":!0,onClick:Rr||!_e?()=>{}:()=>{ar(),v.onDismiss==null||v.onDismiss.call(v,v)},className:$n(C==null?void 0:C.closeButton,v==null||(i=v.classNames)==null?void 0:i.closeButton)},(qn=te==null?void 0:te.close)!=null?qn:KN):null,(re||v.icon||v.promise)&&v.icon!==null&&((te==null?void 0:te[re])!==null||v.icon)?ce.createElement("div",{"data-icon":"",className:$n(C==null?void 0:C.icon,v==null||(u=v.classNames)==null?void 0:u.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||kn():null,v.type!=="loading"?_n:null):null,ce.createElement("div",{"data-content":"",className:$n(C==null?void 0:C.content,v==null||(s=v.classNames)==null?void 0:s.content)},ce.createElement("div",{"data-title":"",className:$n(C==null?void 0:C.title,v==null||(l=v.classNames)==null?void 0:l.title)},v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title),v.description?ce.createElement("div",{"data-description":"",className:$n(le,pe,C==null?void 0:C.description,v==null||(c=v.classNames)==null?void 0:c.description)},typeof v.description=="function"?v.description():v.description):null),ce.isValidElement(v.cancel)?v.cancel:v.cancel&&vv(v.cancel)?ce.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||N,onClick:qe=>{vv(v.cancel)&&_e&&(v.cancel.onClick==null||v.cancel.onClick.call(v.cancel,qe),ar())},className:$n(C==null?void 0:C.cancelButton,v==null||(f=v.classNames)==null?void 0:f.cancelButton)},v.cancel.label):null,ce.isValidElement(v.action)?v.action:v.action&&vv(v.action)?ce.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||D,onClick:qe=>{vv(v.action)&&(v.action.onClick==null||v.action.onClick.call(v.action,qe),!qe.defaultPrevented&&ar())},className:$n(C==null?void 0:C.actionButton,v==null||(h=v.classNames)==null?void 0:h.actionButton)},v.action.label):null)};function MR(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function vk(e,r){const a={};return[e,r].forEach((i,u)=>{const s=u===1,l=s?"--mobile-offset":"--offset",c=s?uk:ok;function f(h){["top","right","bottom","left"].forEach(m=>{a[`${l}-${m}`]=typeof h=="number"?`${h}px`:h})}typeof i=="number"||typeof i=="string"?f(i):typeof i=="object"?["top","right","bottom","left"].forEach(h=>{i[h]===void 0?a[`${l}-${h}`]=c:a[`${l}-${h}`]=typeof i[h]=="number"?`${i[h]}px`:i[h]}):f(c)}),a}const mk=ce.forwardRef(function(r,a){const{invert:i,position:u="bottom-right",hotkey:s=["altKey","KeyT"],expand:l,closeButton:c,className:f,offset:h,mobileOffset:m,theme:v="light",richColors:y,duration:g,style:S,visibleToasts:_=ik,toastOptions:w,dir:E=MR(),gap:R=lk,icons:T,containerAriaLabel:j="Notifications"}=r,[M,V]=ce.useState([]),U=ce.useMemo(()=>Array.from(new Set([u].concat(M.filter(Y=>Y.position).map(Y=>Y.position)))),[M,u]),[N,D]=ce.useState([]),[J,le]=ce.useState(!1),[I,oe]=ce.useState(!1),[de,ye]=ce.useState(v!=="system"?v:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),C=ce.useRef(null),te=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),ae=ce.useRef(null),xe=ce.useRef(!1),k=ce.useCallback(Y=>{V(me=>{var ue;return(ue=me.find(ge=>ge.id===Y.id))!=null&&ue.delete||$r.dismiss(Y.id),me.filter(({id:ge})=>ge!==Y.id)})},[]);return ce.useEffect(()=>$r.subscribe(Y=>{if(Y.dismiss){requestAnimationFrame(()=>{V(me=>me.map(ue=>ue.id===Y.id?{...ue,delete:!0}:ue))});return}setTimeout(()=>{FN.flushSync(()=>{V(me=>{const ue=me.findIndex(ge=>ge.id===Y.id);return ue!==-1?[...me.slice(0,ue),{...me[ue],...Y},...me.slice(ue+1)]:[Y,...me]})})})}),[M]),ce.useEffect(()=>{if(v!=="system"){ye(v);return}if(v==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?ye("dark"):ye("light")),typeof window>"u")return;const Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:me})=>{ye(me?"dark":"light")})}catch{Y.addListener(({matches:ue})=>{try{ye(ue?"dark":"light")}catch(ge){console.error(ge)}})}},[v]),ce.useEffect(()=>{M.length<=1&&le(!1)},[M]),ce.useEffect(()=>{const Y=me=>{var ue;if(s.every(we=>me[we]||me.code===we)){var Pe;le(!0),(Pe=C.current)==null||Pe.focus()}me.code==="Escape"&&(document.activeElement===C.current||(ue=C.current)!=null&&ue.contains(document.activeElement))&&le(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[s]),ce.useEffect(()=>{if(C.current)return()=>{ae.current&&(ae.current.focus({preventScroll:!0}),ae.current=null,xe.current=!1)}},[C.current]),ce.createElement("section",{ref:a,"aria-label":`${j} ${te}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},U.map((Y,me)=>{var ue;const[ge,Pe]=Y.split("-");return M.length?ce.createElement("ol",{key:Y,dir:E==="auto"?MR():E,tabIndex:-1,ref:C,className:f,"data-sonner-toaster":!0,"data-sonner-theme":de,"data-y-position":ge,"data-lifted":J&&M.length>1&&!l,"data-x-position":Pe,style:{"--front-toast-height":`${((ue=N[0])==null?void 0:ue.height)||0}px`,"--width":`${sk}px`,"--gap":`${R}px`,...S,...vk(h,m)},onBlur:we=>{xe.current&&!we.currentTarget.contains(we.relatedTarget)&&(xe.current=!1,ae.current&&(ae.current.focus({preventScroll:!0}),ae.current=null))},onFocus:we=>{we.target instanceof HTMLElement&&we.target.dataset.dismissible==="false"||xe.current||(xe.current=!0,ae.current=we.relatedTarget)},onMouseEnter:()=>le(!0),onMouseMove:()=>le(!0),onMouseLeave:()=>{I||le(!1)},onDragEnd:()=>le(!1),onPointerDown:we=>{we.target instanceof HTMLElement&&we.target.dataset.dismissible==="false"||oe(!0)},onPointerUp:()=>oe(!1)},M.filter(we=>!we.position&&me===0||we.position===Y).map((we,Ve)=>{var Ie,et;return ce.createElement(hk,{key:we.id,icons:T,index:Ve,toast:we,defaultRichColors:y,duration:(Ie=w==null?void 0:w.duration)!=null?Ie:g,className:w==null?void 0:w.className,descriptionClassName:w==null?void 0:w.descriptionClassName,invert:i,visibleToasts:_,closeButton:(et=w==null?void 0:w.closeButton)!=null?et:c,interacting:I,position:Y,style:w==null?void 0:w.style,unstyled:w==null?void 0:w.unstyled,classNames:w==null?void 0:w.classNames,cancelButtonStyle:w==null?void 0:w.cancelButtonStyle,actionButtonStyle:w==null?void 0:w.actionButtonStyle,closeButtonAriaLabel:w==null?void 0:w.closeButtonAriaLabel,removeToast:k,toasts:M.filter(_t=>_t.position==we.position),heights:N.filter(_t=>_t.position==we.position),setHeights:D,expandByDefault:l,gap:R,expanded:J,swipeDirections:r.swipeDirections})})):null}))}),uj=({children:e})=>$.jsx("main",{className:"grid min-h-screen min-w-screen items-center justify-center",children:$.jsx("div",{className:"relative rounded-xl bg-slate-50 shadow-lg dark:bg-slate-900 dark:text-slate-50",children:e})});uj.displayName="Main";var Pa;function sj(e){return{lang:(e==null?void 0:e.lang)??(Pa==null?void 0:Pa.lang),message:e==null?void 0:e.message,abortEarly:(e==null?void 0:e.abortEarly)??(Pa==null?void 0:Pa.abortEarly),abortPipeEarly:(e==null?void 0:e.abortPipeEarly)??(Pa==null?void 0:Pa.abortPipeEarly)}}var Qy;function pk(e){return Qy==null?void 0:Qy.get(e)}var Xy;function yk(e){return Xy==null?void 0:Xy.get(e)}var Ky;function bk(e,r){var a;return(a=Ky==null?void 0:Ky.get(e))==null?void 0:a.get(r)}function lj(e){var a,i;const r=typeof e;return r==="string"?`"${e}"`:r==="number"||r==="bigint"||r==="boolean"?`${e}`:r==="object"||r==="function"?(e&&((i=(a=Object.getPrototypeOf(e))==null?void 0:a.constructor)==null?void 0:i.name))??"null":r}function Nn(e,r,a,i,u){const s=u&&"input"in u?u.input:a.value,l=(u==null?void 0:u.expected)??e.expects??null,c=(u==null?void 0:u.received)??lj(s),f={kind:e.kind,type:e.type,input:s,expected:l,received:c,message:`Invalid ${r}: ${l?`Expected ${l} but r`:"R"}eceived ${c}`,requirement:e.requirement,path:u==null?void 0:u.path,issues:u==null?void 0:u.issues,lang:i.lang,abortEarly:i.abortEarly,abortPipeEarly:i.abortPipeEarly},h=e.kind==="schema",m=(u==null?void 0:u.message)??e.message??bk(e.reference,f.lang)??(h?yk(f.lang):null)??i.message??pk(f.lang);m!==void 0&&(f.message=typeof m=="function"?m(f):m),h&&(a.typed=!1),a.issues?a.issues.push(f):a.issues=[f]}var Zy;function cj(e){return Zy||(Zy=new TextEncoder),Zy.encode(e).length}function Go(e){return{version:1,vendor:"valibot",validate(r){return e["~run"]({value:r},sj())}}}function gk(e,r){const a=[...new Set(e)];return a.length>1?`(${a.join(` ${r} `)})`:a[0]??"never"}function _k(e){if(e.path){let r="";for(const a of e.path)if(typeof a.key=="string"||typeof a.key=="number")r?r+=`.${a.key}`:r+=a.key;else return null;return r}return null}function Sb(e,r){return{kind:"validation",type:"max_bytes",reference:Sb,async:!1,expects:`<=${e}`,requirement:e,message:r,"~run"(a,i){if(a.typed){const u=cj(a.value);u>this.requirement&&Nn(this,"bytes",a,i,{received:`${u}`})}return a}}}function fj(e,r){return{kind:"validation",type:"min_bytes",reference:fj,async:!1,expects:`>=${e}`,requirement:e,message:r,"~run"(a,i){if(a.typed){const u=cj(a.value);u<this.requirement&&Nn(this,"bytes",a,i,{received:`${u}`})}return a}}}function dj(e,r){return{kind:"validation",type:"not_length",reference:dj,async:!1,expects:`!${e}`,requirement:e,message:r,"~run"(a,i){return a.typed&&a.value.length===this.requirement&&Nn(this,"length",a,i,{received:`${a.value.length}`}),a}}}function hj(){return{kind:"transformation",type:"trim",reference:hj,async:!1,"~run"(e){return e.value=e.value.trim(),e}}}function Sk(e,r,a){return typeof e.fallback=="function"?e.fallback(r,a):e.fallback}function wk(e,r,a){return typeof e.default=="function"?e.default(r,a):e.default}function wb(e){return{kind:"schema",type:"boolean",reference:wb,expects:"boolean",async:!1,message:e,get"~standard"(){return Go(this)},"~run"(r,a){return typeof r.value=="boolean"?r.typed=!0:Nn(this,"type",r,a),r}}}function Bu(e,r){return{kind:"schema",type:"literal",reference:Bu,expects:lj(e),async:!1,literal:e,message:r,get"~standard"(){return Go(this)},"~run"(a,i){return a.value===this.literal?a.typed=!0:Nn(this,"type",a,i),a}}}function vj(e){return{kind:"schema",type:"number",reference:vj,expects:"number",async:!1,message:e,get"~standard"(){return Go(this)},"~run"(r,a){return typeof r.value=="number"&&!isNaN(r.value)?r.typed=!0:Nn(this,"type",r,a),r}}}function mj(e,r){return{kind:"schema",type:"object",reference:mj,expects:"Object",async:!1,entries:e,message:r,get"~standard"(){return Go(this)},"~run"(a,i){var s;const u=a.value;if(u&&typeof u=="object"){a.typed=!0,a.value={};for(const l in this.entries){const c=this.entries[l];if(l in u||(c.type==="exact_optional"||c.type==="optional"||c.type==="nullish")&&c.default!==void 0){const f=l in u?u[l]:wk(c),h=c["~run"]({value:f},i);if(h.issues){const m={type:"object",origin:"value",input:u,key:l,value:f};for(const v of h.issues)v.path?v.path.unshift(m):v.path=[m],(s=a.issues)==null||s.push(v);if(a.issues||(a.issues=h.issues),i.abortEarly){a.typed=!1;break}}h.typed||(a.typed=!1),a.value[l]=h.value}else if(c.fallback!==void 0)a.value[l]=Sk(c);else if(c.type!=="exact_optional"&&c.type!=="optional"&&c.type!=="nullish"&&(Nn(this,"key",a,i,{input:void 0,expected:`"${l}"`,path:[{type:"object",origin:"key",input:u,key:l,value:u[l]}]}),i.abortEarly))break}}else Nn(this,"type",a,i);return a}}}function $u(e){return{kind:"schema",type:"string",reference:$u,expects:"string",async:!1,message:e,get"~standard"(){return Go(this)},"~run"(r,a){return typeof r.value=="string"?r.typed=!0:Nn(this,"type",r,a),r}}}function xR(e){let r;if(e)for(const a of e)r?r.push(...a.issues):r=a.issues;return r}function Ob(e,r){return{kind:"schema",type:"union",reference:Ob,expects:gk(e.map(a=>a.expects),"|"),async:!1,options:e,message:r,get"~standard"(){return Go(this)},"~run"(a,i){let u,s,l;for(const c of this.options){const f=c["~run"]({value:a.value},i);if(f.typed)if(f.issues)s?s.push(f):s=[f];else{u=f;break}else l?l.push(f):l=[f]}if(u)return u;if(s){if(s.length===1)return s[0];Nn(this,"type",a,i,{issues:xR(s)}),a.typed=!0}else{if((l==null?void 0:l.length)===1)return l[0];Nn(this,"type",a,i,{issues:xR(l)})}return a}}}function mv(...e){return{...e[0],pipe:e,get"~standard"(){return Go(this)},"~run"(r,a){for(const i of e)if(i.kind!=="metadata"){if(r.issues&&(i.kind==="schema"||i.kind==="transformation")){r.typed=!1;break}(!r.issues||!a.abortEarly&&!a.abortPipeEarly)&&(r=i["~run"](r,a))}return r}}}async function Ok(e,r,a){const i=await e["~run"]({value:r},sj(a));return{typed:i.typed,success:!i.issues,output:i.value,issues:i.issues}}var Hd=e=>e.type==="checkbox",qo=e=>e instanceof Date,Pr=e=>e==null;const pj=e=>typeof e=="object";var Vt=e=>!Pr(e)&&!Array.isArray(e)&&pj(e)&&!qo(e),yj=e=>Vt(e)&&e.target?Hd(e.target)?e.target.checked:e.target.value:e,Ek=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,bj=(e,r)=>e.has(Ek(r)),Ak=e=>{const r=e.constructor&&e.constructor.prototype;return Vt(r)&&r.hasOwnProperty("isPrototypeOf")},Pg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function sr(e){let r;const a=Array.isArray(e),i=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(e instanceof Set)r=new Set(e);else if(!(Pg&&(e instanceof Blob||i))&&(a||Vt(e)))if(r=a?[]:{},!a&&!Ak(e))r=e;else for(const u in e)e.hasOwnProperty(u)&&(r[u]=sr(e[u]));else return e;return r}var lm=e=>Array.isArray(e)?e.filter(Boolean):[],qt=e=>e===void 0,Oe=(e,r,a)=>{if(!r||!Vt(e))return a;const i=lm(r.split(/[,[\].]+?/)).reduce((u,s)=>Pr(u)?u:u[s],e);return qt(i)||i===e?qt(e[r])?a:e[r]:i},nn=e=>typeof e=="boolean",Dg=e=>/^\w*$/.test(e),gj=e=>lm(e.replace(/["|']|\]/g,"").split(/\.|\[/)),it=(e,r,a)=>{let i=-1;const u=Dg(r)?[r]:gj(r),s=u.length,l=s-1;for(;++i<s;){const c=u[i];let f=a;if(i!==l){const h=e[c];f=Vt(h)||Array.isArray(h)?h:isNaN(+u[i+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=f,e=e[c]}};const zv={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Cn={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Da={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},_j=ce.createContext(null),cm=()=>ce.useContext(_j),Rk=e=>{const{children:r,...a}=e;return ce.createElement(_j.Provider,{value:a},r)};var Sj=(e,r,a,i=!0)=>{const u={defaultValues:r._defaultValues};for(const s in e)Object.defineProperty(u,s,{get:()=>{const l=s;return r._proxyFormState[l]!==Cn.all&&(r._proxyFormState[l]=!i||Cn.all),a&&(a[l]=!0),e[l]}});return u};const Ng=typeof window<"u"?F.useLayoutEffect:F.useEffect;function wj(e){const r=cm(),{control:a=r.control,disabled:i,name:u,exact:s}=e||{},[l,c]=ce.useState(a._formState),f=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ng(()=>a._subscribe({name:u,formState:f.current,exact:s,callback:h=>{!i&&c({...a._formState,...h})}}),[u,i,s]),ce.useEffect(()=>{f.current.isValid&&a._setValid(!0)},[a]),ce.useMemo(()=>Sj(l,a,f.current,!1),[l,a])}var Hn=e=>typeof e=="string",Oj=(e,r,a,i,u)=>Hn(e)?(i&&r.watch.add(e),Oe(a,e,u)):Array.isArray(e)?e.map(s=>(i&&r.watch.add(s),Oe(a,s))):(i&&(r.watchAll=!0),a);function Tk(e){const r=cm(),{control:a=r.control,name:i,defaultValue:u,disabled:s,exact:l}=e||{},c=ce.useRef(u),[f,h]=ce.useState(a._getWatch(i,c.current));return Ng(()=>a._subscribe({name:i,formState:{values:!0},exact:l,callback:m=>!s&&h(Oj(i,a._names,m.values||a._formValues,!1,c.current))}),[i,a,s,l]),ce.useEffect(()=>a._removeUnmounted()),f}function Mk(e){const r=cm(),{name:a,disabled:i,control:u=r.control,shouldUnregister:s}=e,l=bj(u._names.array,a),c=Tk({control:u,name:a,defaultValue:Oe(u._formValues,a,Oe(u._defaultValues,a,e.defaultValue)),exact:!0}),f=wj({control:u,name:a,exact:!0}),h=ce.useRef(e),m=ce.useRef(u.register(a,{...e.rules,value:c,...nn(e.disabled)?{disabled:e.disabled}:{}})),v=ce.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Oe(f.errors,a)},isDirty:{enumerable:!0,get:()=>!!Oe(f.dirtyFields,a)},isTouched:{enumerable:!0,get:()=>!!Oe(f.touchedFields,a)},isValidating:{enumerable:!0,get:()=>!!Oe(f.validatingFields,a)},error:{enumerable:!0,get:()=>Oe(f.errors,a)}}),[f,a]),y=ce.useCallback(w=>m.current.onChange({target:{value:yj(w),name:a},type:zv.CHANGE}),[a]),g=ce.useCallback(()=>m.current.onBlur({target:{value:Oe(u._formValues,a),name:a},type:zv.BLUR}),[a,u._formValues]),S=ce.useCallback(w=>{const E=Oe(u._fields,a);E&&w&&(E._f.ref={focus:()=>w.focus(),select:()=>w.select(),setCustomValidity:R=>w.setCustomValidity(R),reportValidity:()=>w.reportValidity()})},[u._fields,a]),_=ce.useMemo(()=>({name:a,value:c,...nn(i)||f.disabled?{disabled:f.disabled||i}:{},onChange:y,onBlur:g,ref:S}),[a,i,f.disabled,y,g,S,c]);return ce.useEffect(()=>{const w=u._options.shouldUnregister||s;u.register(a,{...h.current.rules,...nn(h.current.disabled)?{disabled:h.current.disabled}:{}});const E=(R,T)=>{const j=Oe(u._fields,R);j&&j._f&&(j._f.mount=T)};if(E(a,!0),w){const R=sr(Oe(u._options.defaultValues,a));it(u._defaultValues,a,R),qt(Oe(u._formValues,a))&&it(u._formValues,a,R)}return!l&&u.register(a),()=>{(l?w&&!u._state.action:w)?u.unregister(a):E(a,!1)}},[a,u,l,s]),ce.useEffect(()=>{u._setDisabledField({disabled:i,name:a})},[i,a,u]),ce.useMemo(()=>({field:_,formState:f,fieldState:v}),[_,f,v])}const xk=e=>e.render(Mk(e));var Ej=(e,r,a,i,u)=>r?{...a[e],types:{...a[e]&&a[e].types?a[e].types:{},[i]:u||!0}}:{},md=e=>Array.isArray(e)?e:[e],jR=()=>{let e=[];return{get observers(){return e},next:u=>{for(const s of e)s.next&&s.next(u)},subscribe:u=>(e.push(u),{unsubscribe:()=>{e=e.filter(s=>s!==u)}}),unsubscribe:()=>{e=[]}}},Eb=e=>Pr(e)||!pj(e);function yi(e,r){if(Eb(e)||Eb(r))return e===r;if(qo(e)&&qo(r))return e.getTime()===r.getTime();const a=Object.keys(e),i=Object.keys(r);if(a.length!==i.length)return!1;for(const u of a){const s=e[u];if(!i.includes(u))return!1;if(u!=="ref"){const l=r[u];if(qo(s)&&qo(l)||Vt(s)&&Vt(l)||Array.isArray(s)&&Array.isArray(l)?!yi(s,l):s!==l)return!1}}return!0}var Cr=e=>Vt(e)&&!Object.keys(e).length,kg=e=>e.type==="file",Pn=e=>typeof e=="function",Iv=e=>{if(!Pg)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Aj=e=>e.type==="select-multiple",qg=e=>e.type==="radio",jk=e=>qg(e)||Hd(e),Jy=e=>Iv(e)&&e.isConnected;function Ck(e,r){const a=r.slice(0,-1).length;let i=0;for(;i<a;)e=qt(e)?i++:e[r[i++]];return e}function Pk(e){for(const r in e)if(e.hasOwnProperty(r)&&!qt(e[r]))return!1;return!0}function Qt(e,r){const a=Array.isArray(r)?r:Dg(r)?[r]:gj(r),i=a.length===1?e:Ck(e,a),u=a.length-1,s=a[u];return i&&delete i[s],u!==0&&(Vt(i)&&Cr(i)||Array.isArray(i)&&Pk(i))&&Qt(e,a.slice(0,-1)),e}var Rj=e=>{for(const r in e)if(Pn(e[r]))return!0;return!1};function Fv(e,r={}){const a=Array.isArray(e);if(Vt(e)||a)for(const i in e)Array.isArray(e[i])||Vt(e[i])&&!Rj(e[i])?(r[i]=Array.isArray(e[i])?[]:{},Fv(e[i],r[i])):Pr(e[i])||(r[i]=!0);return r}function Tj(e,r,a){const i=Array.isArray(e);if(Vt(e)||i)for(const u in e)Array.isArray(e[u])||Vt(e[u])&&!Rj(e[u])?qt(r)||Eb(a[u])?a[u]=Array.isArray(e[u])?Fv(e[u],[]):{...Fv(e[u])}:Tj(e[u],Pr(r)?{}:r[u],a[u]):a[u]=!yi(e[u],r[u]);return a}var ud=(e,r)=>Tj(e,r,Fv(r));const CR={value:!1,isValid:!1},PR={value:!0,isValid:!0};var Mj=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(a=>a&&a.checked&&!a.disabled).map(a=>a.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!qt(e[0].attributes.value)?qt(e[0].value)||e[0].value===""?PR:{value:e[0].value,isValid:!0}:PR:CR}return CR},xj=(e,{valueAsNumber:r,valueAsDate:a,setValueAs:i})=>qt(e)?e:r?e===""?NaN:e&&+e:a&&Hn(e)?new Date(e):i?i(e):e;const DR={isValid:!1,value:null};var jj=e=>Array.isArray(e)?e.reduce((r,a)=>a&&a.checked&&!a.disabled?{isValid:!0,value:a.value}:r,DR):DR;function NR(e){const r=e.ref;return kg(r)?r.files:qg(r)?jj(e.refs).value:Aj(r)?[...r.selectedOptions].map(({value:a})=>a):Hd(r)?Mj(e.refs).value:xj(qt(r.value)?e.ref.value:r.value,e)}var Dk=(e,r,a,i)=>{const u={};for(const s of e){const l=Oe(r,s);l&&it(u,s,l._f)}return{criteriaMode:a,names:[...e],fields:u,shouldUseNativeValidation:i}},Bv=e=>e instanceof RegExp,sd=e=>qt(e)?e:Bv(e)?e.source:Vt(e)?Bv(e.value)?e.value.source:e.value:e,kR=e=>({isOnSubmit:!e||e===Cn.onSubmit,isOnBlur:e===Cn.onBlur,isOnChange:e===Cn.onChange,isOnAll:e===Cn.all,isOnTouch:e===Cn.onTouched});const qR="AsyncFunction";var Nk=e=>!!e&&!!e.validate&&!!(Pn(e.validate)&&e.validate.constructor.name===qR||Vt(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===qR)),kk=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),VR=(e,r,a)=>!a&&(r.watchAll||r.watch.has(e)||[...r.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const pd=(e,r,a,i)=>{for(const u of a||Object.keys(e)){const s=Oe(e,u);if(s){const{_f:l,...c}=s;if(l){if(l.refs&&l.refs[0]&&r(l.refs[0],u)&&!i)return!0;if(l.ref&&r(l.ref,l.name)&&!i)return!0;if(pd(c,r))break}else if(Vt(c)&&pd(c,r))break}}};function LR(e,r,a){const i=Oe(e,a);if(i||Dg(a))return{error:i,name:a};const u=a.split(".");for(;u.length;){const s=u.join("."),l=Oe(r,s),c=Oe(e,s);if(l&&!Array.isArray(l)&&a!==s)return{name:a};if(c&&c.type)return{name:s,error:c};u.pop()}return{name:a}}var qk=(e,r,a,i)=>{a(e);const{name:u,...s}=e;return Cr(s)||Object.keys(s).length>=Object.keys(r).length||Object.keys(s).find(l=>r[l]===(!i||Cn.all))},Vk=(e,r,a)=>!e||!r||e===r||md(e).some(i=>i&&(a?i===r:i.startsWith(r)||r.startsWith(i))),Lk=(e,r,a,i,u)=>u.isOnAll?!1:!a&&u.isOnTouch?!(r||e):(a?i.isOnBlur:u.isOnBlur)?!e:(a?i.isOnChange:u.isOnChange)?e:!0,Uk=(e,r)=>!lm(Oe(e,r)).length&&Qt(e,r),zk=(e,r,a)=>{const i=md(Oe(e,a));return it(i,"root",r[a]),it(e,a,i),e},jv=e=>Hn(e);function UR(e,r,a="validate"){if(jv(e)||Array.isArray(e)&&e.every(jv)||nn(e)&&!e)return{type:a,message:jv(e)?e:"",ref:r}}var Du=e=>Vt(e)&&!Bv(e)?e:{value:e,message:""},zR=async(e,r,a,i,u,s)=>{const{ref:l,refs:c,required:f,maxLength:h,minLength:m,min:v,max:y,pattern:g,validate:S,name:_,valueAsNumber:w,mount:E}=e._f,R=Oe(a,_);if(!E||r.has(_))return{};const T=c?c[0]:l,j=I=>{u&&T.reportValidity&&(T.setCustomValidity(nn(I)?"":I||""),T.reportValidity())},M={},V=qg(l),U=Hd(l),N=V||U,D=(w||kg(l))&&qt(l.value)&&qt(R)||Iv(l)&&l.value===""||R===""||Array.isArray(R)&&!R.length,J=Ej.bind(null,_,i,M),le=(I,oe,de,ye=Da.maxLength,C=Da.minLength)=>{const te=I?oe:de;M[_]={type:I?ye:C,message:te,ref:l,...J(I?ye:C,te)}};if(s?!Array.isArray(R)||!R.length:f&&(!N&&(D||Pr(R))||nn(R)&&!R||U&&!Mj(c).isValid||V&&!jj(c).isValid)){const{value:I,message:oe}=jv(f)?{value:!!f,message:f}:Du(f);if(I&&(M[_]={type:Da.required,message:oe,ref:T,...J(Da.required,oe)},!i))return j(oe),M}if(!D&&(!Pr(v)||!Pr(y))){let I,oe;const de=Du(y),ye=Du(v);if(!Pr(R)&&!isNaN(R)){const C=l.valueAsNumber||R&&+R;Pr(de.value)||(I=C>de.value),Pr(ye.value)||(oe=C<ye.value)}else{const C=l.valueAsDate||new Date(R),te=k=>new Date(new Date().toDateString()+" "+k),ae=l.type=="time",xe=l.type=="week";Hn(de.value)&&R&&(I=ae?te(R)>te(de.value):xe?R>de.value:C>new Date(de.value)),Hn(ye.value)&&R&&(oe=ae?te(R)<te(ye.value):xe?R<ye.value:C<new Date(ye.value))}if((I||oe)&&(le(!!I,de.message,ye.message,Da.max,Da.min),!i))return j(M[_].message),M}if((h||m)&&!D&&(Hn(R)||s&&Array.isArray(R))){const I=Du(h),oe=Du(m),de=!Pr(I.value)&&R.length>+I.value,ye=!Pr(oe.value)&&R.length<+oe.value;if((de||ye)&&(le(de,I.message,oe.message),!i))return j(M[_].message),M}if(g&&!D&&Hn(R)){const{value:I,message:oe}=Du(g);if(Bv(I)&&!R.match(I)&&(M[_]={type:Da.pattern,message:oe,ref:l,...J(Da.pattern,oe)},!i))return j(oe),M}if(S){if(Pn(S)){const I=await S(R,a),oe=UR(I,T);if(oe&&(M[_]={...oe,...J(Da.validate,oe.message)},!i))return j(oe.message),M}else if(Vt(S)){let I={};for(const oe in S){if(!Cr(I)&&!i)break;const de=UR(await S[oe](R,a),T,oe);de&&(I={...de,...J(oe,de.message)},j(de.message),i&&(M[_]=I))}if(!Cr(I)&&(M[_]={ref:T,...I},!i))return M}}return j(!0),M};const Ik={mode:Cn.onSubmit,reValidateMode:Cn.onChange,shouldFocusError:!0};function Fk(e={}){let r={...Ik,...e},a={submitCount:0,isDirty:!1,isReady:!1,isLoading:Pn(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1};const i={};let u=Vt(r.defaultValues)||Vt(r.values)?sr(r.defaultValues||r.values)||{}:{},s=r.shouldUnregister?{}:sr(u),l={action:!1,mount:!1,watch:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,h=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let v={...m};const y={array:jR(),state:jR()},g=r.criteriaMode===Cn.all,S=q=>G=>{clearTimeout(h),h=setTimeout(q,G)},_=async q=>{if(!r.disabled&&(m.isValid||v.isValid||q)){const G=r.resolver?Cr((await U()).errors):await D(i,!0);G!==a.isValid&&y.state.next({isValid:G})}},w=(q,G)=>{!r.disabled&&(m.isValidating||m.validatingFields||v.isValidating||v.validatingFields)&&((q||Array.from(c.mount)).forEach(re=>{re&&(G?it(a.validatingFields,re,G):Qt(a.validatingFields,re))}),y.state.next({validatingFields:a.validatingFields,isValidating:!Cr(a.validatingFields)}))},E=(q,G=[],re,_e,be=!0,pe=!0)=>{if(_e&&re&&!r.disabled){if(l.action=!0,pe&&Array.isArray(Oe(i,q))){const Se=re(Oe(i,q),_e.argA,_e.argB);be&&it(i,q,Se)}if(pe&&Array.isArray(Oe(a.errors,q))){const Se=re(Oe(a.errors,q),_e.argA,_e.argB);be&&it(a.errors,q,Se),Uk(a.errors,q)}if((m.touchedFields||v.touchedFields)&&pe&&Array.isArray(Oe(a.touchedFields,q))){const Se=re(Oe(a.touchedFields,q),_e.argA,_e.argB);be&&it(a.touchedFields,q,Se)}(m.dirtyFields||v.dirtyFields)&&(a.dirtyFields=ud(u,s)),y.state.next({name:q,isDirty:le(q,G),dirtyFields:a.dirtyFields,errors:a.errors,isValid:a.isValid})}else it(s,q,G)},R=(q,G)=>{it(a.errors,q,G),y.state.next({errors:a.errors})},T=q=>{a.errors=q,y.state.next({errors:a.errors,isValid:!1})},j=(q,G,re,_e)=>{const be=Oe(i,q);if(be){const pe=Oe(s,q,qt(re)?Oe(u,q):re);qt(pe)||_e&&_e.defaultChecked||G?it(s,q,G?pe:NR(be._f)):de(q,pe),l.mount&&_()}},M=(q,G,re,_e,be)=>{let pe=!1,Se=!1;const De={name:q};if(!r.disabled){if(!re||_e){(m.isDirty||v.isDirty)&&(Se=a.isDirty,a.isDirty=De.isDirty=le(),pe=Se!==De.isDirty);const Fe=yi(Oe(u,q),G);Se=!!Oe(a.dirtyFields,q),Fe?Qt(a.dirtyFields,q):it(a.dirtyFields,q,!0),De.dirtyFields=a.dirtyFields,pe=pe||(m.dirtyFields||v.dirtyFields)&&Se!==!Fe}if(re){const Fe=Oe(a.touchedFields,q);Fe||(it(a.touchedFields,q,re),De.touchedFields=a.touchedFields,pe=pe||(m.touchedFields||v.touchedFields)&&Fe!==re)}pe&&be&&y.state.next(De)}return pe?De:{}},V=(q,G,re,_e)=>{const be=Oe(a.errors,q),pe=(m.isValid||v.isValid)&&nn(G)&&a.isValid!==G;if(r.delayError&&re?(f=S(()=>R(q,re)),f(r.delayError)):(clearTimeout(h),f=null,re?it(a.errors,q,re):Qt(a.errors,q)),(re?!yi(be,re):be)||!Cr(_e)||pe){const Se={..._e,...pe&&nn(G)?{isValid:G}:{},errors:a.errors,name:q};a={...a,...Se},y.state.next(Se)}},U=async q=>{w(q,!0);const G=await r.resolver(s,r.context,Dk(q||c.mount,i,r.criteriaMode,r.shouldUseNativeValidation));return w(q),G},N=async q=>{const{errors:G}=await U(q);if(q)for(const re of q){const _e=Oe(G,re);_e?it(a.errors,re,_e):Qt(a.errors,re)}else a.errors=G;return G},D=async(q,G,re={valid:!0})=>{for(const _e in q){const be=q[_e];if(be){const{_f:pe,...Se}=be;if(pe){const De=c.array.has(pe.name),Fe=be._f&&Nk(be._f);Fe&&m.validatingFields&&w([_e],!0);const Xe=await zR(be,c.disabled,s,g,r.shouldUseNativeValidation&&!G,De);if(Fe&&m.validatingFields&&w([_e]),Xe[pe.name]&&(re.valid=!1,G))break;!G&&(Oe(Xe,pe.name)?De?zk(a.errors,Xe,pe.name):it(a.errors,pe.name,Xe[pe.name]):Qt(a.errors,pe.name))}!Cr(Se)&&await D(Se,G,re)}}return re.valid},J=()=>{for(const q of c.unMount){const G=Oe(i,q);G&&(G._f.refs?G._f.refs.every(re=>!Jy(re)):!Jy(G._f.ref))&&Ve(q)}c.unMount=new Set},le=(q,G)=>!r.disabled&&(q&&G&&it(s,q,G),!yi(k(),u)),I=(q,G,re)=>Oj(q,c,{...l.mount?s:qt(G)?u:Hn(q)?{[q]:G}:G},re,G),oe=q=>lm(Oe(l.mount?s:u,q,r.shouldUnregister?Oe(u,q,[]):[])),de=(q,G,re={})=>{const _e=Oe(i,q);let be=G;if(_e){const pe=_e._f;pe&&(!pe.disabled&&it(s,q,xj(G,pe)),be=Iv(pe.ref)&&Pr(G)?"":G,Aj(pe.ref)?[...pe.ref.options].forEach(Se=>Se.selected=be.includes(Se.value)):pe.refs?Hd(pe.ref)?pe.refs.forEach(Se=>{(!Se.defaultChecked||!Se.disabled)&&(Array.isArray(be)?Se.checked=!!be.find(De=>De===Se.value):Se.checked=be===Se.value||!!be)}):pe.refs.forEach(Se=>Se.checked=Se.value===be):kg(pe.ref)?pe.ref.value="":(pe.ref.value=be,pe.ref.type||y.state.next({name:q,values:sr(s)})))}(re.shouldDirty||re.shouldTouch)&&M(q,be,re.shouldTouch,re.shouldDirty,!0),re.shouldValidate&&xe(q)},ye=(q,G,re)=>{for(const _e in G){if(!G.hasOwnProperty(_e))return;const be=G[_e],pe=`${q}.${_e}`,Se=Oe(i,pe);(c.array.has(q)||Vt(be)||Se&&!Se._f)&&!qo(be)?ye(pe,be,re):de(pe,be,re)}},C=(q,G,re={})=>{const _e=Oe(i,q),be=c.array.has(q),pe=sr(G);it(s,q,pe),be?(y.array.next({name:q,values:sr(s)}),(m.isDirty||m.dirtyFields||v.isDirty||v.dirtyFields)&&re.shouldDirty&&y.state.next({name:q,dirtyFields:ud(u,s),isDirty:le(q,pe)})):_e&&!_e._f&&!Pr(pe)?ye(q,pe,re):de(q,pe,re),VR(q,c)&&y.state.next({...a}),y.state.next({name:l.mount?q:void 0,values:sr(s)})},te=async q=>{l.mount=!0;const G=q.target;let re=G.name,_e=!0;const be=Oe(i,re),pe=Fe=>{_e=Number.isNaN(Fe)||qo(Fe)&&isNaN(Fe.getTime())||yi(Fe,Oe(s,re,Fe))},Se=kR(r.mode),De=kR(r.reValidateMode);if(be){let Fe,Xe;const Ft=G.type?NR(be._f):yj(q),Bt=q.type===zv.BLUR||q.type===zv.FOCUS_OUT,fr=!kk(be._f)&&!r.resolver&&!Oe(a.errors,re)&&!be._f.deps||Lk(Bt,Oe(a.touchedFields,re),a.isSubmitted,De,Se),dr=VR(re,c,Bt);it(s,re,Ft),Bt?(be._f.onBlur&&be._f.onBlur(q),f&&f(0)):be._f.onChange&&be._f.onChange(q);const Xt=M(re,Ft,Bt),Kt=!Cr(Xt)||dr;if(!Bt&&y.state.next({name:re,type:q.type,values:sr(s)}),fr)return(m.isValid||v.isValid)&&(r.mode==="onBlur"?Bt&&_():Bt||_()),Kt&&y.state.next({name:re,...dr?{}:Xt});if(!Bt&&dr&&y.state.next({...a}),r.resolver){const{errors:hr}=await U([re]);if(pe(Ft),_e){const Ar=LR(a.errors,i,re),Rr=LR(hr,i,Ar.name||re);Fe=Rr.error,re=Rr.name,Xe=Cr(hr)}}else w([re],!0),Fe=(await zR(be,c.disabled,s,g,r.shouldUseNativeValidation))[re],w([re]),pe(Ft),_e&&(Fe?Xe=!1:(m.isValid||v.isValid)&&(Xe=await D(i,!0)));_e&&(be._f.deps&&xe(be._f.deps),V(re,Xe,Fe,Xt))}},ae=(q,G)=>{if(Oe(a.errors,G)&&q.focus)return q.focus(),1},xe=async(q,G={})=>{let re,_e;const be=md(q);if(r.resolver){const pe=await N(qt(q)?q:be);re=Cr(pe),_e=q?!be.some(Se=>Oe(pe,Se)):re}else q?(_e=(await Promise.all(be.map(async pe=>{const Se=Oe(i,pe);return await D(Se&&Se._f?{[pe]:Se}:Se)}))).every(Boolean),!(!_e&&!a.isValid)&&_()):_e=re=await D(i);return y.state.next({...!Hn(q)||(m.isValid||v.isValid)&&re!==a.isValid?{}:{name:q},...r.resolver||!q?{isValid:re}:{},errors:a.errors}),G.shouldFocus&&!_e&&pd(i,ae,q?be:c.mount),_e},k=q=>{const G={...l.mount?s:u};return qt(q)?G:Hn(q)?Oe(G,q):q.map(re=>Oe(G,re))},Y=(q,G)=>({invalid:!!Oe((G||a).errors,q),isDirty:!!Oe((G||a).dirtyFields,q),error:Oe((G||a).errors,q),isValidating:!!Oe(a.validatingFields,q),isTouched:!!Oe((G||a).touchedFields,q)}),me=q=>{q&&md(q).forEach(G=>Qt(a.errors,G)),y.state.next({errors:q?a.errors:{}})},ue=(q,G,re)=>{const _e=(Oe(i,q,{_f:{}})._f||{}).ref,be=Oe(a.errors,q)||{},{ref:pe,message:Se,type:De,...Fe}=be;it(a.errors,q,{...Fe,...G,ref:_e}),y.state.next({name:q,errors:a.errors,isValid:!1}),re&&re.shouldFocus&&_e&&_e.focus&&_e.focus()},ge=(q,G)=>Pn(q)?y.state.subscribe({next:re=>q(I(void 0,G),re)}):I(q,G,!0),Pe=q=>y.state.subscribe({next:G=>{Vk(q.name,G.name,q.exact)&&qk(G,q.formState||m,yt,q.reRenderRoot)&&q.callback({values:{...s},...a,...G})}}).unsubscribe,we=q=>(l.mount=!0,v={...v,...q.formState},Pe({...q,formState:v})),Ve=(q,G={})=>{for(const re of q?md(q):c.mount)c.mount.delete(re),c.array.delete(re),G.keepValue||(Qt(i,re),Qt(s,re)),!G.keepError&&Qt(a.errors,re),!G.keepDirty&&Qt(a.dirtyFields,re),!G.keepTouched&&Qt(a.touchedFields,re),!G.keepIsValidating&&Qt(a.validatingFields,re),!r.shouldUnregister&&!G.keepDefaultValue&&Qt(u,re);y.state.next({values:sr(s)}),y.state.next({...a,...G.keepDirty?{isDirty:le()}:{}}),!G.keepIsValid&&_()},Ie=({disabled:q,name:G})=>{(nn(q)&&l.mount||q||c.disabled.has(G))&&(q?c.disabled.add(G):c.disabled.delete(G))},et=(q,G={})=>{let re=Oe(i,q);const _e=nn(G.disabled)||nn(r.disabled);return it(i,q,{...re||{},_f:{...re&&re._f?re._f:{ref:{name:q}},name:q,mount:!0,...G}}),c.mount.add(q),re?Ie({disabled:nn(G.disabled)?G.disabled:r.disabled,name:q}):j(q,!0,G.value),{..._e?{disabled:G.disabled||r.disabled}:{},...r.progressive?{required:!!G.required,min:sd(G.min),max:sd(G.max),minLength:sd(G.minLength),maxLength:sd(G.maxLength),pattern:sd(G.pattern)}:{},name:q,onChange:te,onBlur:te,ref:be=>{if(be){et(q,G),re=Oe(i,q);const pe=qt(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,Se=jk(pe),De=re._f.refs||[];if(Se?De.find(Fe=>Fe===pe):pe===re._f.ref)return;it(i,q,{_f:{...re._f,...Se?{refs:[...De.filter(Jy),pe,...Array.isArray(Oe(u,q))?[{}]:[]],ref:{type:pe.type,name:q}}:{ref:pe}}}),j(q,!1,void 0,pe)}else re=Oe(i,q,{}),re._f&&(re._f.mount=!1),(r.shouldUnregister||G.shouldUnregister)&&!(bj(c.array,q)&&l.action)&&c.unMount.add(q)}}},_t=()=>r.shouldFocusError&&pd(i,ae,c.mount),Rt=q=>{nn(q)&&(y.state.next({disabled:q}),pd(i,(G,re)=>{const _e=Oe(i,re);_e&&(G.disabled=_e._f.disabled||q,Array.isArray(_e._f.refs)&&_e._f.refs.forEach(be=>{be.disabled=_e._f.disabled||q}))},0,!1))},Lt=(q,G)=>async re=>{let _e;re&&(re.preventDefault&&re.preventDefault(),re.persist&&re.persist());let be=sr(s);if(y.state.next({isSubmitting:!0}),r.resolver){const{errors:pe,values:Se}=await U();a.errors=pe,be=Se}else await D(i);if(c.disabled.size)for(const pe of c.disabled)it(be,pe,void 0);if(Qt(a.errors,"root"),Cr(a.errors)){y.state.next({errors:{}});try{await q(be,re)}catch(pe){_e=pe}}else G&&await G({...a.errors},re),_t(),setTimeout(_t);if(y.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Cr(a.errors)&&!_e,submitCount:a.submitCount+1,errors:a.errors}),_e)throw _e},Nr=(q,G={})=>{Oe(i,q)&&(qt(G.defaultValue)?C(q,sr(Oe(u,q))):(C(q,G.defaultValue),it(u,q,sr(G.defaultValue))),G.keepTouched||Qt(a.touchedFields,q),G.keepDirty||(Qt(a.dirtyFields,q),a.isDirty=G.defaultValue?le(q,sr(Oe(u,q))):le()),G.keepError||(Qt(a.errors,q),m.isValid&&_()),y.state.next({...a}))},tt=(q,G={})=>{const re=q?sr(q):u,_e=sr(re),be=Cr(q),pe=be?u:_e;if(G.keepDefaultValues||(u=re),!G.keepValues){if(G.keepDirtyValues){const Se=new Set([...c.mount,...Object.keys(ud(u,s))]);for(const De of Array.from(Se))Oe(a.dirtyFields,De)?it(pe,De,Oe(s,De)):C(De,Oe(pe,De))}else{if(Pg&&qt(q))for(const Se of c.mount){const De=Oe(i,Se);if(De&&De._f){const Fe=Array.isArray(De._f.refs)?De._f.refs[0]:De._f.ref;if(Iv(Fe)){const Xe=Fe.closest("form");if(Xe){Xe.reset();break}}}}for(const Se of c.mount)C(Se,Oe(pe,Se))}s=sr(pe),y.array.next({values:{...pe}}),y.state.next({values:{...pe}})}c={mount:G.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!m.isValid||!!G.keepIsValid||!!G.keepDirtyValues,l.watch=!!r.shouldUnregister,y.state.next({submitCount:G.keepSubmitCount?a.submitCount:0,isDirty:be?!1:G.keepDirty?a.isDirty:!!(G.keepDefaultValues&&!yi(q,u)),isSubmitted:G.keepIsSubmitted?a.isSubmitted:!1,dirtyFields:be?{}:G.keepDirtyValues?G.keepDefaultValues&&s?ud(u,s):a.dirtyFields:G.keepDefaultValues&&q?ud(u,q):G.keepDirty?a.dirtyFields:{},touchedFields:G.keepTouched?a.touchedFields:{},errors:G.keepErrors?a.errors:{},isSubmitSuccessful:G.keepIsSubmitSuccessful?a.isSubmitSuccessful:!1,isSubmitting:!1})},kr=(q,G)=>tt(Pn(q)?q(s):q,G),Yr=(q,G={})=>{const re=Oe(i,q),_e=re&&re._f;if(_e){const be=_e.refs?_e.refs[0]:_e.ref;be.focus&&(be.focus(),G.shouldSelect&&Pn(be.select)&&be.select())}},yt=q=>{a={...a,...q}},Tt={control:{register:et,unregister:Ve,getFieldState:Y,handleSubmit:Lt,setError:ue,_subscribe:Pe,_runSchema:U,_getWatch:I,_getDirty:le,_setValid:_,_setFieldArray:E,_setDisabledField:Ie,_setErrors:T,_getFieldArray:oe,_reset:tt,_resetDefaultValues:()=>Pn(r.defaultValues)&&r.defaultValues().then(q=>{kr(q,r.resetOptions),y.state.next({isLoading:!1})}),_removeUnmounted:J,_disableForm:Rt,_subjects:y,_proxyFormState:m,get _fields(){return i},get _formValues(){return s},get _state(){return l},set _state(q){l=q},get _defaultValues(){return u},get _names(){return c},set _names(q){c=q},get _formState(){return a},get _options(){return r},set _options(q){r={...r,...q}}},subscribe:we,trigger:xe,register:et,handleSubmit:Lt,watch:ge,setValue:C,getValues:k,reset:kr,resetField:Nr,clearErrors:me,unregister:Ve,setError:ue,setFocus:Yr,getFieldState:Y};return{...Tt,formControl:Tt}}function Bk(e={}){const r=ce.useRef(void 0),a=ce.useRef(void 0),[i,u]=ce.useState({isDirty:!1,isValidating:!1,isLoading:Pn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Pn(e.defaultValues)?void 0:e.defaultValues});r.current||(r.current={...e.formControl?e.formControl:Fk(e),formState:i},e.formControl&&e.defaultValues&&!Pn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));const s=r.current.control;return s._options=e,Ng(()=>{const l=s._subscribe({formState:s._proxyFormState,callback:()=>u({...s._formState}),reRenderRoot:!0});return u(c=>({...c,isReady:!0})),s._formState.isReady=!0,l},[s]),ce.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),ce.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode),e.errors&&!Cr(e.errors)&&s._setErrors(e.errors)},[s,e.errors,e.mode,e.reValidateMode]),ce.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),ce.useEffect(()=>{if(s._proxyFormState.isDirty){const l=s._getDirty();l!==i.isDirty&&s._subjects.state.next({isDirty:l})}},[s,i.isDirty]),ce.useEffect(()=>{e.values&&!yi(e.values,a.current)?(s._reset(e.values,s._options.resetOptions),a.current=e.values,u(l=>({...l}))):s._resetDefaultValues()},[s,e.values]),ce.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),r.current.formState=Sj(i,s),r.current}const IR=(e,r,a)=>{if(e&&"reportValidity"in e){const i=Oe(a,r);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},$k=(e,r)=>{for(const a in r.fields){const i=r.fields[a];i&&i.ref&&"reportValidity"in i.ref?IR(i.ref,a,e):i&&i.refs&&i.refs.forEach(u=>IR(u,a,e))}},Hk=(e,r)=>{r.shouldUseNativeValidation&&$k(e,r);const a={};for(const i in e){const u=Oe(r.fields,i),s=Object.assign(e[i]||{},{ref:u&&u.ref});if(Yk(r.names||Object.keys(e),i)){const l=Object.assign({},Oe(a,i));it(l,"root",s),it(a,i,l)}else it(a,i,s)}return a},Yk=(e,r)=>{const a=FR(r);return e.some(i=>FR(i).match(`^${a}\\.\\d+`))};function FR(e){return e.replace(/\]|\[/g,"")}function Gk(e,r,a){return a===void 0&&(a={}),function(i,u,s){try{var l=!s.shouldUseNativeValidation&&s.criteriaMode==="all";return Promise.resolve(Ok(e,i,Object.assign({},r,{abortPipeEarly:!l}))).then(function(c){if(c.issues){for(var f={};c.issues.length;){var h=c.issues[0],m=_k(h);if(m&&(f[m]||(f[m]={message:h.message,type:h.type}),l)){var v=f[m].types,y=v&&v[h.type];f[m]=Ej(m,l,f,h.type,y?[].concat(y,h.message):h.message)}c.issues.shift()}return{values:{},errors:Hk(f,s)}}return{values:a.raw?Object.assign({},i):c.output,errors:{}}})}catch(c){return Promise.reject(c)}}}const Wk="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let Qk=(e=21)=>{let r="",a=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)r+=Wk[a[e]&63];return r};/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Kk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,a,i)=>i?i.toUpperCase():a.toLowerCase()),BR=e=>{const r=Kk(e);return r.charAt(0).toUpperCase()+r.slice(1)},Cj=(...e)=>e.filter((r,a,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===a).join(" ").trim(),Zk=e=>{for(const r in e)if(r.startsWith("aria-")||r==="role"||r==="title")return!0};/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Jk={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"};/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const e4=F.forwardRef(({color:e="currentColor",size:r=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:u="",children:s,iconNode:l,...c},f)=>F.createElement("svg",{ref:f,...Jk,width:r,height:r,stroke:e,strokeWidth:i?Number(a)*24/Number(r):a,className:Cj("lucide",u),...!s&&!Zk(c)&&{"aria-hidden":"true"},...c},[...l.map(([h,m])=>F.createElement(h,m)),...Array.isArray(s)?s:[s]]));/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fm=(e,r)=>{const a=F.forwardRef(({className:i,...u},s)=>F.createElement(e4,{ref:s,iconNode:r,className:Cj(`lucide-${Xk(BR(e))}`,`lucide-${e}`,i),...u}));return a.displayName=BR(e),a};/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t4=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],r4=fm("check",t4);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const n4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],a4=fm("circle",n4);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i4=[["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 2v6",key:"4bpg5p"}],["path",{d:"M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5",key:"1ue2ih"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}]],o4=fm("image-plus",i4);/**
 * @license lucide-react v0.511.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u4=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],s4=fm("refresh-ccw",u4);function as(e,r=[]){let a=[];function i(s,l){const c=F.createContext(l),f=a.length;a=[...a,l];const h=v=>{var E;const{scope:y,children:g,...S}=v,_=((E=y==null?void 0:y[e])==null?void 0:E[f])||c,w=F.useMemo(()=>S,Object.values(S));return $.jsx(_.Provider,{value:w,children:g})};h.displayName=s+"Provider";function m(v,y){var _;const g=((_=y==null?void 0:y[e])==null?void 0:_[f])||c,S=F.useContext(g);if(S)return S;if(l!==void 0)return l;throw new Error(`\`${v}\` must be used within \`${s}\``)}return[h,m]}const u=()=>{const s=a.map(l=>F.createContext(l));return function(c){const f=(c==null?void 0:c[e])||s;return F.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return u.scopeName=e,[i,l4(u,...r)]}function l4(...e){const r=e[0];if(e.length===1)return r;const a=()=>{const i=e.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(s){const l=i.reduce((c,{useScope:f,scopeName:h})=>{const v=f(s)[`__scope${h}`];return{...c,...v}},{});return F.useMemo(()=>({[`__scope${r.scopeName}`]:l}),[l])}};return a.scopeName=r.scopeName,a}function Pj(e){const r=F.useRef(e);return F.useEffect(()=>{r.current=e}),F.useMemo(()=>(...a)=>{var i;return(i=r.current)==null?void 0:i.call(r,...a)},[])}var gi=globalThis!=null&&globalThis.document?F.useLayoutEffect:()=>{};function $R(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function c4(...e){return r=>{let a=!1;const i=e.map(u=>{const s=$R(u,r);return!a&&typeof s=="function"&&(a=!0),s});if(a)return()=>{for(let u=0;u<i.length;u++){const s=i[u];typeof s=="function"?s():$R(e[u],null)}}}}function Xn(...e){return F.useCallback(c4(...e),e)}function $v(e){const r=f4(e),a=F.forwardRef((i,u)=>{const{children:s,...l}=i,c=F.Children.toArray(s),f=c.find(h4);if(f){const h=f.props.children,m=c.map(v=>v===f?F.Children.count(h)>1?F.Children.only(null):F.isValidElement(h)?h.props.children:null:v);return $.jsx(r,{...l,ref:u,children:F.isValidElement(h)?F.cloneElement(h,void 0,m):null})}return $.jsx(r,{...l,ref:u,children:s})});return a.displayName=`${e}.Slot`,a}var Dj=$v("Slot");function f4(e){const r=F.forwardRef((a,i)=>{const{children:u,...s}=a,l=F.isValidElement(u)?m4(u):void 0,c=Xn(l,i);if(F.isValidElement(u)){const f=v4(s,u.props);return u.type!==F.Fragment&&(f.ref=c),F.cloneElement(u,f)}return F.Children.count(u)>1?F.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var d4=Symbol("radix.slottable");function h4(e){return F.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===d4}function v4(e,r){const a={...r};for(const i in r){const u=e[i],s=r[i];/^on[A-Z]/.test(i)?u&&s?a[i]=(...c)=>{const f=s(...c);return u(...c),f}:u&&(a[i]=u):i==="style"?a[i]={...u,...s}:i==="className"&&(a[i]=[u,s].filter(Boolean).join(" "))}return{...e,...a}}function m4(e){var i,u;let r=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var p4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],un=p4.reduce((e,r)=>{const a=$v(`Primitive.${r}`),i=F.forwardRef((u,s)=>{const{asChild:l,...c}=u,f=l?a:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),$.jsx(f,{...c,ref:s})});return i.displayName=`Primitive.${r}`,{...e,[r]:i}},{}),y4=oj();function b4(){return y4.useSyncExternalStore(g4,()=>!0,()=>!1)}function g4(){return()=>{}}var Vg="Avatar",[_4,E8]=as(Vg),[S4,Nj]=_4(Vg),kj=F.forwardRef((e,r)=>{const{__scopeAvatar:a,...i}=e,[u,s]=F.useState("idle");return $.jsx(S4,{scope:a,imageLoadingStatus:u,onImageLoadingStatusChange:s,children:$.jsx(un.span,{...i,ref:r})})});kj.displayName=Vg;var qj="AvatarImage",Vj=F.forwardRef((e,r)=>{const{__scopeAvatar:a,src:i,onLoadingStatusChange:u=()=>{},...s}=e,l=Nj(qj,a),c=w4(i,s),f=Pj(h=>{u(h),l.onImageLoadingStatusChange(h)});return gi(()=>{c!=="idle"&&f(c)},[c,f]),c==="loaded"?$.jsx(un.img,{...s,ref:r,src:i}):null});Vj.displayName=qj;var Lj="AvatarFallback",Uj=F.forwardRef((e,r)=>{const{__scopeAvatar:a,delayMs:i,...u}=e,s=Nj(Lj,a),[l,c]=F.useState(i===void 0);return F.useEffect(()=>{if(i!==void 0){const f=window.setTimeout(()=>c(!0),i);return()=>window.clearTimeout(f)}},[i]),l&&s.imageLoadingStatus!=="loaded"?$.jsx(un.span,{...u,ref:r}):null});Uj.displayName=Lj;function HR(e,r){return e?r?(e.src!==r&&(e.src=r),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function w4(e,{referrerPolicy:r,crossOrigin:a}){const i=b4(),u=F.useRef(null),s=i?(u.current||(u.current=new window.Image),u.current):null,[l,c]=F.useState(()=>HR(s,e));return gi(()=>{c(HR(s,e))},[s,e]),gi(()=>{const f=v=>()=>{c(v)};if(!s)return;const h=f("loaded"),m=f("error");return s.addEventListener("load",h),s.addEventListener("error",m),r&&(s.referrerPolicy=r),typeof a=="string"&&(s.crossOrigin=a),()=>{s.removeEventListener("load",h),s.removeEventListener("error",m)}},[s,a,r]),l}var O4=kj,E4=Vj,A4=Uj;function zj(e){var r,a,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(r=0;r<u;r++)e[r]&&(a=zj(e[r]))&&(i&&(i+=" "),i+=a)}else for(a in e)e[a]&&(i&&(i+=" "),i+=a);return i}function Ij(){for(var e,r,a=0,i="",u=arguments.length;a<u;a++)(e=arguments[a])&&(r=zj(e))&&(i&&(i+=" "),i+=r);return i}const Lg="-",R4=e=>{const r=M4(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:l=>{const c=l.split(Lg);return c[0]===""&&c.length!==1&&c.shift(),Fj(c,r)||T4(l)},getConflictingClassGroupIds:(l,c)=>{const f=a[l]||[];return c&&i[l]?[...f,...i[l]]:f}}},Fj=(e,r)=>{var l;if(e.length===0)return r.classGroupId;const a=e[0],i=r.nextPart.get(a),u=i?Fj(e.slice(1),i):void 0;if(u)return u;if(r.validators.length===0)return;const s=e.join(Lg);return(l=r.validators.find(({validator:c})=>c(s)))==null?void 0:l.classGroupId},YR=/^\[(.+)\]$/,T4=e=>{if(YR.test(e)){const r=YR.exec(e)[1],a=r==null?void 0:r.substring(0,r.indexOf(":"));if(a)return"arbitrary.."+a}},M4=e=>{const{theme:r,classGroups:a}=e,i={nextPart:new Map,validators:[]};for(const u in a)Ab(a[u],i,u,r);return i},Ab=(e,r,a,i)=>{e.forEach(u=>{if(typeof u=="string"){const s=u===""?r:GR(r,u);s.classGroupId=a;return}if(typeof u=="function"){if(x4(u)){Ab(u(i),r,a,i);return}r.validators.push({validator:u,classGroupId:a});return}Object.entries(u).forEach(([s,l])=>{Ab(l,GR(r,s),a,i)})})},GR=(e,r)=>{let a=e;return r.split(Lg).forEach(i=>{a.nextPart.has(i)||a.nextPart.set(i,{nextPart:new Map,validators:[]}),a=a.nextPart.get(i)}),a},x4=e=>e.isThemeGetter,j4=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,a=new Map,i=new Map;const u=(s,l)=>{a.set(s,l),r++,r>e&&(r=0,i=a,a=new Map)};return{get(s){let l=a.get(s);if(l!==void 0)return l;if((l=i.get(s))!==void 0)return u(s,l),l},set(s,l){a.has(s)?a.set(s,l):u(s,l)}}},Rb="!",Tb=":",C4=Tb.length,P4=e=>{const{prefix:r,experimentalParseClassName:a}=e;let i=u=>{const s=[];let l=0,c=0,f=0,h;for(let S=0;S<u.length;S++){let _=u[S];if(l===0&&c===0){if(_===Tb){s.push(u.slice(f,S)),f=S+C4;continue}if(_==="/"){h=S;continue}}_==="["?l++:_==="]"?l--:_==="("?c++:_===")"&&c--}const m=s.length===0?u:u.substring(f),v=D4(m),y=v!==m,g=h&&h>f?h-f:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:v,maybePostfixModifierPosition:g}};if(r){const u=r+Tb,s=i;i=l=>l.startsWith(u)?s(l.substring(u.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(a){const u=i;i=s=>a({className:s,parseClassName:u})}return i},D4=e=>e.endsWith(Rb)?e.substring(0,e.length-1):e.startsWith(Rb)?e.substring(1):e,N4=e=>{const r=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const u=[];let s=[];return i.forEach(l=>{l[0]==="["||r[l]?(u.push(...s.sort(),l),s=[]):s.push(l)}),u.push(...s.sort()),u}},k4=e=>({cache:j4(e.cacheSize),parseClassName:P4(e),sortModifiers:N4(e),...R4(e)}),q4=/\s+/,V4=(e,r)=>{const{parseClassName:a,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:s}=r,l=[],c=e.trim().split(q4);let f="";for(let h=c.length-1;h>=0;h-=1){const m=c[h],{isExternal:v,modifiers:y,hasImportantModifier:g,baseClassName:S,maybePostfixModifierPosition:_}=a(m);if(v){f=m+(f.length>0?" "+f:f);continue}let w=!!_,E=i(w?S.substring(0,_):S);if(!E){if(!w){f=m+(f.length>0?" "+f:f);continue}if(E=i(S),!E){f=m+(f.length>0?" "+f:f);continue}w=!1}const R=s(y).join(":"),T=g?R+Rb:R,j=T+E;if(l.includes(j))continue;l.push(j);const M=u(E,w);for(let V=0;V<M.length;++V){const U=M[V];l.push(T+U)}f=m+(f.length>0?" "+f:f)}return f};function L4(){let e=0,r,a,i="";for(;e<arguments.length;)(r=arguments[e++])&&(a=Bj(r))&&(i&&(i+=" "),i+=a);return i}const Bj=e=>{if(typeof e=="string")return e;let r,a="";for(let i=0;i<e.length;i++)e[i]&&(r=Bj(e[i]))&&(a&&(a+=" "),a+=r);return a};function U4(e,...r){let a,i,u,s=l;function l(f){const h=r.reduce((m,v)=>v(m),e());return a=k4(h),i=a.cache.get,u=a.cache.set,s=c,c(f)}function c(f){const h=i(f);if(h)return h;const m=V4(f,a);return u(f,m),m}return function(){return s(L4.apply(null,arguments))}}const Gt=e=>{const r=a=>a[e]||[];return r.isThemeGetter=!0,r},$j=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Hj=/^\((?:(\w[\w-]*):)?(.+)\)$/i,z4=/^\d+\/\d+$/,I4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,F4=/\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$/,B4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,$4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,H4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nu=e=>z4.test(e),Ye=e=>!!e&&!Number.isNaN(Number(e)),mi=e=>!!e&&Number.isInteger(Number(e)),eb=e=>e.endsWith("%")&&Ye(e.slice(0,-1)),Na=e=>I4.test(e),Y4=()=>!0,G4=e=>F4.test(e)&&!B4.test(e),Yj=()=>!1,W4=e=>$4.test(e),Q4=e=>H4.test(e),X4=e=>!Re(e)&&!Te(e),K4=e=>is(e,Qj,Yj),Re=e=>$j.test(e),Co=e=>is(e,Xj,G4),tb=e=>is(e,rq,Ye),WR=e=>is(e,Gj,Yj),Z4=e=>is(e,Wj,Q4),pv=e=>is(e,Kj,W4),Te=e=>Hj.test(e),ld=e=>os(e,Xj),J4=e=>os(e,nq),QR=e=>os(e,Gj),eq=e=>os(e,Qj),tq=e=>os(e,Wj),yv=e=>os(e,Kj,!0),is=(e,r,a)=>{const i=$j.exec(e);return i?i[1]?r(i[1]):a(i[2]):!1},os=(e,r,a=!1)=>{const i=Hj.exec(e);return i?i[1]?r(i[1]):a:!1},Gj=e=>e==="position"||e==="percentage",Wj=e=>e==="image"||e==="url",Qj=e=>e==="length"||e==="size"||e==="bg-size",Xj=e=>e==="length",rq=e=>e==="number",nq=e=>e==="family-name",Kj=e=>e==="shadow",aq=()=>{const e=Gt("color"),r=Gt("font"),a=Gt("text"),i=Gt("font-weight"),u=Gt("tracking"),s=Gt("leading"),l=Gt("breakpoint"),c=Gt("container"),f=Gt("spacing"),h=Gt("radius"),m=Gt("shadow"),v=Gt("inset-shadow"),y=Gt("text-shadow"),g=Gt("drop-shadow"),S=Gt("blur"),_=Gt("perspective"),w=Gt("aspect"),E=Gt("ease"),R=Gt("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...j(),Te,Re],V=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto","contain","none"],N=()=>[Te,Re,f],D=()=>[Nu,"full","auto",...N()],J=()=>[mi,"none","subgrid",Te,Re],le=()=>["auto",{span:["full",mi,Te,Re]},mi,Te,Re],I=()=>[mi,"auto",Te,Re],oe=()=>["auto","min","max","fr",Te,Re],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ye=()=>["start","end","center","stretch","center-safe","end-safe"],C=()=>["auto",...N()],te=()=>[Nu,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],ae=()=>[e,Te,Re],xe=()=>[...j(),QR,WR,{position:[Te,Re]}],k=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",eq,K4,{size:[Te,Re]}],me=()=>[eb,ld,Co],ue=()=>["","none","full",h,Te,Re],ge=()=>["",Ye,ld,Co],Pe=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Ve=()=>[Ye,eb,QR,WR],Ie=()=>["","none",S,Te,Re],et=()=>["none",Ye,Te,Re],_t=()=>["none",Ye,Te,Re],Rt=()=>[Ye,Te,Re],Lt=()=>[Nu,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Na],breakpoint:[Na],color:[Y4],container:[Na],"drop-shadow":[Na],ease:["in","out","in-out"],font:[X4],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Na],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Na],shadow:[Na],spacing:["px",Ye],text:[Na],"text-shadow":[Na],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Nu,Re,Te,w]}],container:["container"],columns:[{columns:[Ye,Re,Te,c]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:M()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[mi,"auto",Te,Re]}],basis:[{basis:[Nu,"full","auto",c,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ye,Nu,"auto","initial","none",Re]}],grow:[{grow:["",Ye,Te,Re]}],shrink:[{shrink:["",Ye,Te,Re]}],order:[{order:[mi,"first","last","none",Te,Re]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:le()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:le()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...ye(),"normal"]}],"justify-self":[{"justify-self":["auto",...ye()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...ye(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ye(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...ye(),"baseline"]}],"place-self":[{"place-self":["auto",...ye()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:C()}],mx:[{mx:C()}],my:[{my:C()}],ms:[{ms:C()}],me:[{me:C()}],mt:[{mt:C()}],mr:[{mr:C()}],mb:[{mb:C()}],ml:[{ml:C()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[c,"screen",...te()]}],"min-w":[{"min-w":[c,"screen","none",...te()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",a,ld,Co]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Te,tb]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",eb,Re]}],"font-family":[{font:[J4,Re,r]}],"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:[u,Te,Re]}],"line-clamp":[{"line-clamp":[Ye,"none",Te,tb]}],leading:[{leading:[s,...N()]}],"list-image":[{"list-image":["none",Te,Re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Te,Re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ae()}],"text-color":[{text:ae()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Pe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ye,"from-font","auto",Te,Co]}],"text-decoration-color":[{decoration:ae()}],"underline-offset":[{"underline-offset":[Ye,"auto",Te,Re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Te,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",Te,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:xe()}],"bg-repeat":[{bg:k()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},mi,Te,Re],radial:["",Te,Re],conic:[mi,Te,Re]},tq,Z4]}],"bg-color":[{bg:ae()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:ae()}],"gradient-via":[{via:ae()}],"gradient-to":[{to:ae()}],rounded:[{rounded:ue()}],"rounded-s":[{"rounded-s":ue()}],"rounded-e":[{"rounded-e":ue()}],"rounded-t":[{"rounded-t":ue()}],"rounded-r":[{"rounded-r":ue()}],"rounded-b":[{"rounded-b":ue()}],"rounded-l":[{"rounded-l":ue()}],"rounded-ss":[{"rounded-ss":ue()}],"rounded-se":[{"rounded-se":ue()}],"rounded-ee":[{"rounded-ee":ue()}],"rounded-es":[{"rounded-es":ue()}],"rounded-tl":[{"rounded-tl":ue()}],"rounded-tr":[{"rounded-tr":ue()}],"rounded-br":[{"rounded-br":ue()}],"rounded-bl":[{"rounded-bl":ue()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Pe(),"hidden","none"]}],"divide-style":[{divide:[...Pe(),"hidden","none"]}],"border-color":[{border:ae()}],"border-color-x":[{"border-x":ae()}],"border-color-y":[{"border-y":ae()}],"border-color-s":[{"border-s":ae()}],"border-color-e":[{"border-e":ae()}],"border-color-t":[{"border-t":ae()}],"border-color-r":[{"border-r":ae()}],"border-color-b":[{"border-b":ae()}],"border-color-l":[{"border-l":ae()}],"divide-color":[{divide:ae()}],"outline-style":[{outline:[...Pe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ye,Te,Re]}],"outline-w":[{outline:["",Ye,ld,Co]}],"outline-color":[{outline:ae()}],shadow:[{shadow:["","none",m,yv,pv]}],"shadow-color":[{shadow:ae()}],"inset-shadow":[{"inset-shadow":["none",v,yv,pv]}],"inset-shadow-color":[{"inset-shadow":ae()}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ae()}],"ring-offset-w":[{"ring-offset":[Ye,Co]}],"ring-offset-color":[{"ring-offset":ae()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":ae()}],"text-shadow":[{"text-shadow":["none",y,yv,pv]}],"text-shadow-color":[{"text-shadow":ae()}],opacity:[{opacity:[Ye,Te,Re]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"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":[Ye]}],"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":ae()}],"mask-image-linear-to-color":[{"mask-linear-to":ae()}],"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":ae()}],"mask-image-t-to-color":[{"mask-t-to":ae()}],"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":ae()}],"mask-image-r-to-color":[{"mask-r-to":ae()}],"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":ae()}],"mask-image-b-to-color":[{"mask-b-to":ae()}],"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":ae()}],"mask-image-l-to-color":[{"mask-l-to":ae()}],"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":ae()}],"mask-image-x-to-color":[{"mask-x-to":ae()}],"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":ae()}],"mask-image-y-to-color":[{"mask-y-to":ae()}],"mask-image-radial":[{"mask-radial":[Te,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":ae()}],"mask-image-radial-to-color":[{"mask-radial-to":ae()}],"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":j()}],"mask-image-conic-pos":[{"mask-conic":[Ye]}],"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":ae()}],"mask-image-conic-to-color":[{"mask-conic-to":ae()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:xe()}],"mask-repeat":[{mask:k()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Te,Re]}],filter:[{filter:["","none",Te,Re]}],blur:[{blur:Ie()}],brightness:[{brightness:[Ye,Te,Re]}],contrast:[{contrast:[Ye,Te,Re]}],"drop-shadow":[{"drop-shadow":["","none",g,yv,pv]}],"drop-shadow-color":[{"drop-shadow":ae()}],grayscale:[{grayscale:["",Ye,Te,Re]}],"hue-rotate":[{"hue-rotate":[Ye,Te,Re]}],invert:[{invert:["",Ye,Te,Re]}],saturate:[{saturate:[Ye,Te,Re]}],sepia:[{sepia:["",Ye,Te,Re]}],"backdrop-filter":[{"backdrop-filter":["","none",Te,Re]}],"backdrop-blur":[{"backdrop-blur":Ie()}],"backdrop-brightness":[{"backdrop-brightness":[Ye,Te,Re]}],"backdrop-contrast":[{"backdrop-contrast":[Ye,Te,Re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ye,Te,Re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ye,Te,Re]}],"backdrop-invert":[{"backdrop-invert":["",Ye,Te,Re]}],"backdrop-opacity":[{"backdrop-opacity":[Ye,Te,Re]}],"backdrop-saturate":[{"backdrop-saturate":[Ye,Te,Re]}],"backdrop-sepia":[{"backdrop-sepia":["",Ye,Te,Re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Te,Re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ye,"initial",Te,Re]}],ease:[{ease:["linear","initial",E,Te,Re]}],delay:[{delay:[Ye,Te,Re]}],animate:[{animate:["none",R,Te,Re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,Te,Re]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:et()}],"rotate-x":[{"rotate-x":et()}],"rotate-y":[{"rotate-y":et()}],"rotate-z":[{"rotate-z":et()}],scale:[{scale:_t()}],"scale-x":[{"scale-x":_t()}],"scale-y":[{"scale-y":_t()}],"scale-z":[{"scale-z":_t()}],"scale-3d":["scale-3d"],skew:[{skew:Rt()}],"skew-x":[{"skew-x":Rt()}],"skew-y":[{"skew-y":Rt()}],transform:[{transform:[Te,Re,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Lt()}],"translate-x":[{"translate-x":Lt()}],"translate-y":[{"translate-y":Lt()}],"translate-z":[{"translate-z":Lt()}],"translate-none":["translate-none"],accent:[{accent:ae()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ae()}],"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",Te,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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",Te,Re]}],fill:[{fill:["none",...ae()]}],"stroke-w":[{stroke:[Ye,ld,Co,tb]}],stroke:[{stroke:["none",...ae()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},iq=U4(aq),nr=(...e)=>iq(Ij(e)),Mb=async(e,r,a,i,u,s)=>{const l=(a+i)/2,c=Math.round(e.width*l),f=Math.round(e.height*l),h=new OffscreenCanvas(c,f);h.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,c,f);const v=await h.convertToBlob({type:s,quality:l}),y=v.size;if(u<0){if(y<=r&&y>=r+u)return v}else if(y>=r&&y<=r+u)return v;return(i-a)/i<.01?v:y>r?await Mb(e,r,a,l,u,s):await Mb(e,r,l,i,u,s)},Zj=async e=>{const{input:r,targetSize:a,toleranceSize:i=-1024}=e;if(!["image/jpeg","image/png","image/webp"].includes(r.type))throw new Error("Only PNG, JPEG and WebP image are supported.");if(i%1024!==0)throw new Error("Tolerance size must be a multiple of 1024.");const u=e.outputType||r.type;if(r.size<=a&&r.type===u)return r;const s=await createImageBitmap(r);return await Mb(s,a,0,1,i,u)};function Ct(e,r){return Math.random()*(r-e)+e}function XR(e,r,a,i){for(var u=[],s=0;s<i;s++){var l=Math.PI/2/i*s+Ct(-Math.PI/1.1/i,Math.PI/1.1/i),c=Math.sin(l)*r,f=Math.sqrt((1-c*c/(r*r))/(1+a*c)*e*e)+Ct(-e/200,e/200);u.push([f,c])}for(var s=i;s>0;s--){var l=Math.PI/2/i*s+Ct(-Math.PI/1.1/i,Math.PI/1.1/i),c=Math.sin(l)*r,f=-Math.sqrt((1-c*c/(r*r))/(1+a*c)*e*e)+Ct(-e/200,e/200);u.push([f,c])}for(var s=0;s<i;s++){var l=Math.PI/2/i*s+Ct(-Math.PI/1.1/i,Math.PI/1.1/i),c=-Math.sin(l)*r,f=-Math.sqrt((1-c*c/(r*r))/(1+a*c)*e*e)+Ct(-e/200,e/200);u.push([f,c])}for(var s=i;s>0;s--){var l=Math.PI/2/i*s+Ct(-Math.PI/1.1/i,Math.PI/1.1/i),c=-Math.sin(l)*r,f=Math.sqrt((1-c*c/(r*r))/(1+a*c)*e*e)+Ct(-e/200,e/200);u.push([f,c])}return u}function bv(e,r,a){e<0&&(e=0),e>Math.PI/2&&(e=Math.PI/2);const i=Math.tan(e);if(Math.abs(e-Math.PI/2)<1e-4)return{x:0,y:a};const u=i*r;return u<a?{x:r,y:u}:{x:a/i,y:a}}function KR(e,r,a){for(var i=[],u=0;u<a;u++){var s=Math.PI/2/a*u+Ct(-Math.PI/11/a,Math.PI/11/a),l=bv(s,e,r);i.push([l.x,l.y])}for(var u=a;u>0;u--){var s=Math.PI/2/a*u+Ct(-Math.PI/11/a,Math.PI/11/a),l=bv(s,e,r);i.push([-l.x,l.y])}for(var u=0;u<a;u++){var s=Math.PI/2/a*u+Ct(-Math.PI/11/a,Math.PI/11/a),l=bv(s,e,r);i.push([-l.x,-l.y])}for(var u=a;u>0;u--){var s=Math.PI/2/a*u+Ct(-Math.PI/11/a,Math.PI/11/a),l=bv(s,e,r);i.push([l.x,-l.y])}return i}function oq(e=100){for(var r=Ct(50,100),a=Ct(70,100),i=Ct(50,80),u=Ct(70,100),s=Ct(.001,.005)*(Math.random()>.5?1:-1),l=Ct(.001,.005)*(Math.random()>.5?1:-1),c=Ct(-5,5),f=Ct(-15,15),h=Ct(-5,5),m=Ct(-5,25),v=Math.random()>.1,y=Math.random()>.3,g=v?XR(r,a,s,e):KR(r,a,e),S=y?XR(u,i,l,e):KR(u,i,e),_=0;_<g.length;_++)g[_][0]+=c,g[_][1]+=f,S[_][0]+=m,S[_][1]+=h;var w=[];let E=[0,0];for(var _=0;_<g.length;_++)w.push([g[_][0]*.7+S[(_+g.length/4)%g.length][1]*.3,g[_][1]*.7-S[(_+g.length/4)%g.length][0]*.3]),E[0]+=w[_][0],E[1]+=w[_][1];E[0]/=w.length,E[1]/=w.length;for(var _=0;_<w.length;_++)w[_][0]-=E[0],w[_][1]-=E[1];let R=w[0][0]-w[w.length/2][0],T=w[w.length/4][1]-w[w.length*3/4][1];return w.push(w[0]),w.push(w[1]),{face:w,width:R,height:T,center:[0,0]}}function Do(e,r){return Math.random()*(r-e)+e}function ku(e,r,a,i,u){var s=(1-u)**3*e[0]+3*(1-u)**2*u*r[0]+3*(1-u)*u**2*a[0]+u**3*i[0],l=(1-u)**3*e[1]+3*(1-u)**2*u*r[1]+3*(1-u)*u**2*a[1]+u**3*i[1];return[s,l]}function uq(e){let r=Math.random()*e/1.2,a=Math.random()*e/1.2,i=Math.random()*.4-.2,u=Math.random()*.4-.2,s=Math.random()*.4-.2,l=Math.random()*.4-.2,c=Math.random(),f=Math.random(),h=[-e/2+i*e/16,s*r/16],v=[e/2+u*e/16,l*r/16][0]-h[0],y=Do(-v/10,v/2.3),g=Do(-v/10,v/2.3),S=c*r,_=f*r,w=Do(y,v/2.1),E=Do(g,v/2.1),R=Do(-S+5,a),T=Do(-_+5,a),j=Math.random(),M=Math.random(),V=Math.random(),U=Math.random();return{height_upper:r,height_lower:a,P0_upper_randX:i,P3_upper_randX:u,P0_upper_randY:s,P3_upper_randY:l,offset_upper_left_randY:c,offset_upper_right_randY:f,eye_true_width:v,offset_upper_left_x:y,offset_upper_right_x:g,offset_upper_left_y:S,offset_upper_right_y:_,offset_lower_left_x:w,offset_lower_right_x:E,offset_lower_left_y:R,offset_lower_right_y:T,left_converge0:j,right_converge0:M,left_converge1:V,right_converge1:U}}function ZR(e,r=50){let a=[-r/2+e.P0_upper_randX*r/16,e.P0_upper_randY*e.height_upper/16],i=[r/2+e.P3_upper_randX*r/16,e.P3_upper_randY*e.height_upper/16],u=a,s=i,l=[a[0]+e.offset_upper_left_x,a[1]+e.offset_upper_left_y],c=[i[0]-e.offset_upper_right_x,i[1]+e.offset_upper_right_y],f=[u[0]+e.offset_lower_left_x,u[1]-e.offset_lower_left_y],h=[s[0]-e.offset_lower_right_x,s[1]-e.offset_lower_right_y],m=[],v=[],y=[],g=[a[0]*(1-e.left_converge0)+f[0]*e.left_converge0,a[1]*(1-e.left_converge0)+f[1]*e.left_converge0],S=[i[0]*(1-e.right_converge0)+h[0]*e.right_converge0,i[1]*(1-e.right_converge0)+h[1]*e.right_converge0];for(let M=0;M<100;M++)m.push(ku(a,l,c,i,M/100)),v.push(ku(g,a,l,c,M/100)),y.push(ku(l,c,i,S,M/100));for(let M=0;M<75;M++){let V=((75-M)/75)**2;m[M]=[m[M][0]*(1-V)+v[M+25][0]*V,m[M][1]*(1-V)+v[M+25][1]*V],m[M+25]=[m[M+25][0]*V+y[M][0]*(1-V),m[M+25][1]*V+y[M][1]*(1-V)]}let _=[],w=[],E=[],R=[u[0]*(1-e.left_converge0)+l[0]*e.left_converge0,u[1]*(1-e.left_converge0)+l[1]*e.left_converge0],T=[s[0]*(1-e.right_converge1)+c[0]*e.right_converge1,s[1]*(1-e.right_converge1)+c[1]*e.right_converge1];for(let M=0;M<100;M++)_.push(ku(u,f,h,s,M/100)),w.push(ku(R,u,f,h,M/100)),E.push(ku(f,h,s,T,M/100));for(let M=0;M<75;M++){let V=((75-M)/75)**2;_[M]=[_[M][0]*(1-V)+w[M+25][0]*V,_[M][1]*(1-V)+w[M+25][1]*V],_[M+25]=[_[M+25][0]*V+E[M][0]*(1-V),_[M+25][1]*V+E[M][1]*(1-V)]}for(let M=0;M<100;M++)_[M][1]=-_[M][1],m[M][1]=-m[M][1];let j=[m[50][0]/2+_[50][0]/2,m[50][1]/2+_[50][1]/2];for(let M=0;M<100;M++)_[M][0]-=j[0],_[M][1]-=j[1],m[M][0]-=j[0],m[M][1]-=j[1];return j=[0,0],{upper:m,lower:_,center:[j]}}function sq(e=50){let r=uq(e),a={...r};for(let s in a)typeof a[s]=="number"&&(a[s]+=Do(-a[s]/2,a[s]/2));let i=ZR(r,e),u=ZR(a,e);for(let s in i)if(typeof i[s]=="object")for(let l=0;l<i[s].length;l++)i[s][l][0]=-i[s][l][0];return{left:i,right:u}}function _r(e,r){return Math.random()*(r-e)+e}function Cv(e){return e<=1?1:e*Cv(e-1)}function lq(e,r){return Cv(e)/(Cv(r)*Cv(e-r))}function cq(e,r){let a=0,i=0;const u=r.length-1;for(let s=0;s<=u;s++){let l=lq(u,s),c=Math.pow(1-e,u-s),f=Math.pow(e,s);a+=l*c*f*r[s].x,i+=l*c*f*r[s].y}return[a,i]}function Od(e,r){let a=[];for(let i=0;i<=r;i++){let u=i/r,s=cq(u,e);a.push(s)}return a}function fq(e,r=100){for(var a=e.slice(0,e.length-2),i=[],u=0;u<r;u++){for(var s=20+Math.floor(_r(-5,5)),l=[],c=Math.floor(_r(30,140)),f=0;f<s;f++)l.push({x:a[(a.length-(f+c))%a.length][0],y:a[(a.length-(f+c))%a.length][1]});var h=Od(l,s);l=[],c=Math.floor(_r(30,140));for(var f=0;f<s;f++)l.push({x:a[(a.length-(-f+c))%a.length][0],y:a[(a.length-(-f+c))%a.length][1]});for(var m=Od(l,s),v=[],f=0;f<s;f++)v.push([h[f][0]*(f*(1/s))**2+m[f][0]*(1-(f*(1/s))**2),h[f][1]*(f*(1/s))**2+m[f][1]*(1-(f*(1/s))**2)]);i.push(v)}return i}function dq(e,r=100){for(var a=e.slice(0,e.length-2),i=[],u=0;u<r;u++){var s=20+Math.floor(_r(-5,5)),l=[],c=Math.floor(_r(20,160));l.push({x:a[(a.length-c)%a.length][0],y:a[(a.length-c)%a.length][1]});for(var f=1;f<s+1;f++)c=Math.floor(_r(20,160)),l.push({x:a[(a.length-c)%a.length][0],y:a[(a.length-c)%a.length][1]});var h=Od(l,s);i.push(h)}return i}function hq(e,r=100){for(var a=e.slice(0,e.length-2),i=[],u=[],s=0;s<r;s++)u.push(Math.floor(_r(10,180)));u.sort();for(var s=0;s<r;s++){for(var l=20+Math.floor(_r(-5,5)),c=[],f=u[s],h=_r(.8,1.4),m=Math.random()>.5?1:-1,v=0;v<l;v++){var y=_r(.1,3),g=(1-(v/l)**y)*(1-h)+h;c.push({x:a[(a.length-(m*v+f))%a.length][0]*g,y:a[(a.length-(m*v+f))%a.length][1]*g})}var S=Od(c,l);if(Math.random()>.7&&(S=S.reverse()),i.length==0){i.push(S);continue}var _=i[i.length-1][i[i.length-1].length-1],w=Math.sqrt((S[0][0]-_[0])**2+(S[0][1]-_[1])**2);Math.random()>.5&&w<100?i[i.length-1]=i[i.length-1].concat(S):i.push(S)}return i}function vq(e,r=100){for(var a=e.slice(0,e.length-2),i=[],u=[],s=0;s<r;s++)u.push(Math.floor(_r(10,180)));u.sort();for(var l=Math.floor(_r(0,200)),s=0;s<r;s++){var c=30+Math.floor(_r(-8,8)),f=[],h=u[s],m=_r(1,2.3);Math.random()>.9&&(m=_r(0,1));for(var v=h>l?1:-1,y=0;y<c;y++){var g=_r(.1,3),S=(1-(y/c)**g)*(1-m)+m;f.push({x:a[(a.length-(v*y*2+h))%a.length][0]*S,y:a[(a.length-(v*y*2+h))%a.length][1]})}var _=Od(f,c);i.push(_)}return i}function at(e,r){return Math.random()*(r-e)+e}function Hv(e,r,a,i,u){var s=(1-u)**3*e[0]+3*(1-u)**2*u*r[0]+3*(1-u)*u**2*a[0]+u**3*i[0],l=(1-u)**3*e[1]+3*(1-u)**2*u*r[1]+3*(1-u)*u**2*a[1]+u**3*i[1];return[s,l]}function mq(e,r,a,i){for(var u=[],s=0;s<i;s++){var l=Math.PI/2/i*s+at(-Math.PI/1.1/i,Math.PI/1.1/i),c=Math.sin(l)*r,f=Math.sqrt((1-c*c/(r*r))/(1+a*c)*e*e)+at(-e/200,e/200);u.push([f,c])}for(var s=i;s>0;s--){var l=Math.PI/2/i*s+at(-Math.PI/1.1/i,Math.PI/1.1/i),c=Math.sin(l)*r,f=-Math.sqrt((1-c*c/(r*r))/(1+a*c)*e*e)+at(-e/200,e/200);u.push([f,c])}for(var s=0;s<i;s++){var l=Math.PI/2/i*s+at(-Math.PI/1.1/i,Math.PI/1.1/i),c=-Math.sin(l)*r,f=-Math.sqrt((1-c*c/(r*r))/(1+a*c)*e*e)+at(-e/200,e/200);u.push([f,c])}for(var s=i;s>0;s--){var l=Math.PI/2/i*s+at(-Math.PI/1.1/i,Math.PI/1.1/i),c=-Math.sin(l)*r,f=Math.sqrt((1-c*c/(r*r))/(1+a*c)*e*e)+at(-e/200,e/200);u.push([f,c])}return u}function pq(e,r,a){e.slice(0,e.length-2);for(var i=at(r/7,r/3.5),u=at(r/7,r/3.5),s=at(a/10,a/2),l=-s+at(-a/20,a/20),c=[s,i],f=[l,u],h=[at(0,s),at(u+5,r/1.5)],m=[at(l,0),at(u+5,r/1.5)],v=[],y=0;y<1;y+=.01)v.push(Hv(f,m,h,c,y));if(Math.random()>.5)for(var y=0;y<1;y+=.01)v.push(Hv(c,h,m,f,y));else for(var g=at(0,.8),y=0;y<100;y+=1)v.push([v[99][0]*(1-y/100)+v[0][0]*y/100,(v[99][1]*(1-y/100)+v[0][1]*y/100)*(1-g)+v[99-y][1]*g]);return v}function yq(e,r,a){e.slice(0,e.length-2);for(var i=at(r/7,r/4),u=at(r/7,r/4),s=at(a/10,a/2),l=-s+at(-a/20,a/20),c=[s,i],f=[l,u],h=[at(0,s),at(u+5,r/1.5)],m=[at(l,0),at(u+5,r/1.5)],v=[],y=0;y<1;y+=.01)v.push(Hv(f,m,h,c,y));var g=[(c[0]+f[0])/2,v[25][1]/2+v[75][1]/2];if(Math.random()>.5)for(var y=0;y<1;y+=.01)v.push(Hv(c,h,m,f,y));else for(var S=at(0,.8),y=0;y<100;y+=1)v.push([v[99][0]*(1-y/100)+v[0][0]*y/100,(v[99][1]*(1-y/100)+v[0][1]*y/100)*(1-S)+v[99-y][1]*S]);for(var y=0;y<v.length;y++)v[y][0]-=g[0],v[y][1]-=g[1],v[y][1]=-v[y][1],v[y][0]=v[y][0]*.6,v[y][1]=v[y][1]*.6,v[y][0]+=g[0],v[y][1]+=g[1]*.8;return v}function bq(e,r,a){for(var i=[at(-a/8,a/8),at(r/4,r/2.5)],u=mq(at(a/4,a/10),at(r/10,r/20),.001,50),s=at(-Math.PI/9.5,Math.PI/9.5),l=0;l<u.length;l++){var c=u[l][0],f=u[l][1];u[l][0]=c*Math.cos(s)-f*Math.sin(s),u[l][1]=c*Math.sin(s)+f*Math.cos(s),u[l][0]+=i[0],u[l][1]+=i[1]}return u}const gq=e=>new Range().createContextualFragment(e).firstElementChild;function Wt(e,r){return Math.random()*(r-e)+e}function _q(){const e={faceScale:1.8,computedFacePoints:[],eyeRightUpper:[],eyeRightLower:[],eyeRightCountour:[],eyeLeftUpper:[],eyeLeftLower:[],eyeLeftCountour:[],faceHeight:0,faceWidth:0,center:[0,0],distanceBetweenEyes:0,leftEyeOffsetX:0,leftEyeOffsetY:0,rightEyeOffsetX:0,rightEyeOffsetY:0,eyeHeightOffset:0,leftEyeCenter:[0,0],rightEyeCenter:[0,0],rightPupilShiftX:0,rightPupilShiftY:0,leftPupilShiftX:0,leftPupilShiftY:0,rightNoseCenterX:0,rightNoseCenterY:0,leftNoseCenterX:0,leftNoseCenterY:0,hairs:[],haventSleptForDays:!1,hairColors:["rgb(0, 0, 0)","rgb(44, 34, 43)","rgb(80, 68, 68)","rgb(167, 133, 106)","rgb(220, 208, 186)","rgb(233, 236, 239)","rgb(165, 42, 42)","rgb(145, 85, 61)","rgb(128, 128, 128)","rgb(185, 55, 55)","rgb(255, 192, 203)","rgb(255, 105, 180)","rgb(230, 230, 250)","rgb(64, 224, 208)","rgb(0, 191, 255)","rgb(148, 0, 211)","rgb(50, 205, 50)","rgb(255, 165, 0)","rgb(220, 20, 60)","rgb(192, 192, 192)","rgb(255, 215, 0)","rgb(255, 255, 255)","rgb(124, 252, 0)","rgb(127, 255, 0)","rgb(0, 255, 127)","rgb(72, 209, 204)","rgb(0, 255, 255)","rgb(0, 206, 209)","rgb(32, 178, 170)","rgb(95, 158, 160)","rgb(70, 130, 180)","rgb(176, 196, 222)","rgb(30, 144, 255)","rgb(135, 206, 235)","rgb(0, 0, 139)","rgb(138, 43, 226)","rgb(75, 0, 130)","rgb(139, 0, 139)","rgb(153, 50, 204)","rgb(186, 85, 211)","rgb(218, 112, 214)","rgb(221, 160, 221)","rgb(238, 130, 238)","rgb(255, 0, 255)","rgb(216, 191, 216)","rgb(255, 20, 147)","rgb(255, 69, 0)","rgb(255, 140, 0)","rgb(255, 165, 0)","rgb(250, 128, 114)","rgb(233, 150, 122)","rgb(240, 128, 128)","rgb(205, 92, 92)","rgb(255, 99, 71)","rgb(255, 160, 122)","rgb(220, 20, 60)","rgb(139, 0, 0)","rgb(178, 34, 34)","rgb(250, 235, 215)","rgb(255, 239, 213)","rgb(255, 235, 205)","rgb(255, 222, 173)","rgb(245, 245, 220)","rgb(255, 228, 196)","rgb(255, 218, 185)","rgb(244, 164, 96)","rgb(210, 180, 140)","rgb(222, 184, 135)","rgb(250, 250, 210)","rgb(255, 250, 205)","rgb(255, 245, 238)","rgb(253, 245, 230)","rgb(255, 228, 225)","rgb(255, 240, 245)","rgb(250, 240, 230)","rgb(255, 228, 181)","rgb(255, 250, 250)","rgb(240, 255, 255)","rgb(240, 255, 240)","rgb(245, 245, 245)","rgb(245, 255, 250)","rgb(240, 248, 255)","rgb(240, 248, 255)","rgb(248, 248, 255)","rgb(255, 250, 240)","rgb(253, 245, 230)"],hairColor:"black",dyeColorOffset:"50%",backgroundColors:["rgb(245, 245, 220)","rgb(176, 224, 230)","rgb(211, 211, 211)","rgb(152, 251, 152)","rgb(255, 253, 208)","rgb(230, 230, 250)","rgb(188, 143, 143)","rgb(135, 206, 235)","rgb(245, 255, 250)","rgb(245, 222, 179)","rgb(47, 79, 79)","rgb(72, 61, 139)","rgb(60, 20, 20)","rgb(25, 25, 112)","rgb(139, 0, 0)","rgb(85, 107, 47)","rgb(128, 0, 128)","rgb(0, 100, 0)","rgb(0, 0, 139)","rgb(105, 105, 105)","rgb(240, 128, 128)","rgb(255, 160, 122)","rgb(255, 218, 185)","rgb(255, 228, 196)","rgb(255, 222, 173)","rgb(255, 250, 205)","rgb(250, 250, 210)","rgb(255, 239, 213)","rgb(255, 245, 238)","rgb(255, 248, 220)","rgb(255, 255, 240)","rgb(240, 255, 240)","rgb(240, 255, 255)","rgb(240, 248, 255)","rgb(248, 248, 255)","rgb(255, 250, 250)","rgb(255, 240, 245)","rgb(255, 228, 225)","rgb(230, 230, 250)","rgb(216, 191, 216)","rgb(221, 160, 221)","rgb(238, 130, 238)","rgb(218, 112, 214)","rgb(186, 85, 211)","rgb(147, 112, 219)","rgb(138, 43, 226)","rgb(148, 0, 211)","rgb(153, 50, 204)","rgb(139, 69, 19)","rgb(160, 82, 45)","rgb(210, 105, 30)","rgb(205, 133, 63)","rgb(244, 164, 96)","rgb(222, 184, 135)","rgb(255, 250, 240)","rgb(253, 245, 230)","rgb(250, 240, 230)"],mouthPoints:[]};e.faceScale=1.5+Math.random()*.6,e.haventSleptForDays=Math.random()>.8;let r=oq();e.computedFacePoints=r.face,e.faceHeight=r.height,e.faceWidth=r.width,e.center=r.center;let a=sq(e.faceWidth/2),i=a.left,u=a.right;e.eyeRightUpper=u.upper,e.eyeRightLower=u.lower,e.eyeRightCountour=u.upper.slice(10,90).concat(u.lower.slice(10,90).reverse()),e.eyeLeftUpper=i.upper,e.eyeLeftLower=i.lower,e.eyeLeftCountour=i.upper.slice(10,90).concat(i.lower.slice(10,90).reverse()),e.distanceBetweenEyes=Wt(e.faceWidth/4.5,e.faceWidth/4),e.eyeHeightOffset=Wt(e.faceHeight/8,e.faceHeight/6),e.leftEyeOffsetX=Wt(-e.faceWidth/20,e.faceWidth/10),e.leftEyeOffsetY=Wt(-e.faceHeight/50,e.faceHeight/50),e.rightEyeOffsetX=Wt(-e.faceWidth/20,e.faceWidth/10),e.rightEyeOffsetY=Wt(-e.faceHeight/50,e.faceHeight/50),e.leftEyeCenter=i.center[0],e.rightEyeCenter=u.center[0],e.leftPupilShiftX=Wt(-e.faceWidth/20,e.faceWidth/20);let s=Math.floor(Wt(10,i.upper.length-10)),l=Math.floor(Wt(10,u.upper.length-10)),c=Math.floor(Wt(10,i.upper.length-10)),f=Math.floor(Wt(10,u.upper.length-10)),h=Wt(.2,.8),m=Wt(.2,.8);e.leftPupilShiftY=i.upper[s][1]*h+i.lower[c][1]*(1-h),e.rightPupilShiftY=u.upper[l][1]*m+u.lower[f][1]*(1-m),e.leftPupilShiftX=i.upper[s][0]*h+i.lower[c][0]*(1-h),e.rightPupilShiftX=u.upper[l][0]*m+u.lower[f][0]*(1-m);for(var v=[],y=4,g=0;g<y;g++)v.push(Math.floor(Wt(0,50)));e.hairs=[],Math.random()>.3&&(e.hairs=fq(e.computedFacePoints,v[0]*1+10)),Math.random()>.3&&(e.hairs=e.hairs.concat(dq(e.computedFacePoints,v[1]/1.5+10))),Math.random()>.5&&(e.hairs=e.hairs.concat(hq(e.computedFacePoints,v[2]*3+10))),Math.random()>.5&&(e.hairs=e.hairs.concat(vq(e.computedFacePoints,v[3]*3+10))),e.rightNoseCenterX=Wt(e.faceWidth/18,e.faceWidth/12),e.rightNoseCenterY=Wt(0,e.faceHeight/5),e.leftNoseCenterX=Wt(-e.faceWidth/18,-e.faceWidth/12),e.leftNoseCenterY=e.rightNoseCenterY+Wt(-e.faceHeight/30,e.faceHeight/20),Math.random()>.1?e.hairColor=e.hairColors[Math.floor(Math.random()*10)]:(e.hairColor="url(#rainbowGradient)",e.dyeColorOffset=Wt(0,100)+"%");var S=Math.floor(Math.random()*3);S==0?e.mouthPoints=pq(e.computedFacePoints,e.faceHeight,e.faceWidth):S==1?e.mouthPoints=yq(e.computedFacePoints,e.faceHeight,e.faceWidth):e.mouthPoints=bq(e.computedFacePoints,e.faceHeight,e.faceWidth);const _=`
    <svg viewBox="-100 -100 200 200" xmlns="http://www.w3.org/2000/svg" width="500" height="500" id="face-svg">
      <defs>
        <clipPath id="leftEyeClipPath">
          <polyline points="${e.eyeLeftUpper.concat(e.eyeLeftLower.reverse()).join(" ")}" />
        </clipPath>
        <clipPath id="rightEyeClipPath">
          <polyline points="${e.eyeRightUpper.concat(e.eyeRightLower.reverse()).join(" ")}" />
        </clipPath>
        <filter id="fuzzy">
          <feTurbulence id="turbulence" baseFrequency="0.05" numOctaves="3" type="turbulence" result="noise" />
          <feDisplacementMap in="SourceGraphic" in2="noise" scale="2" />
        </filter>
        <linearGradient id="rainbowGradient" x1="0%" y1="0%" x2="100%" y2="0%">
          <stop offset="0%" style="stop-color: ${e.hairColors[Math.floor(Math.random()*e.hairColors.length)]};  stop-opacity: 1" />
          <stop offset="${e.dyeColorOffset}" style="stop-color: ${e.hairColors[Math.floor(Math.random()*e.hairColors.length)]};  stop-opacity: 1" />
          <stop offset="100%" style="stop-color: ${e.hairColors[Math.floor(Math.random()*e.hairColors.length)]};  stop-opacity: 1" />
        </linearGradient>
      </defs>
      <rect x="-100" y="-100" width="100%" height="100%" fill="${e.backgroundColors[Math.floor(Math.random()*e.backgroundColors.length)]}" />
      <polyline id="faceContour" points="${e.computedFacePoints.join(" ")}" fill="#ffc9a9" stroke="black" stroke-width="${3/e.faceScale}" stroke-linejoin="round" filter="url(#fuzzy)" />
      <g transform="translate(${e.center[0]+e.distanceBetweenEyes+e.rightEyeOffsetX} ${-(-e.center[1]+e.eyeHeightOffset+e.rightEyeOffsetY)})">
        <polyline id="rightCountour" points="${e.eyeRightUpper.concat(e.eyeRightLower.reverse()).join(" ")}" fill="white" stroke="white" stroke-width="${0/e.faceScale}" stroke-linejoin="round" filter="url(#fuzzy)" />
      </g>
      <g transform="translate(${-(e.center[0]+e.distanceBetweenEyes+e.leftEyeOffsetX)} ${-(-e.center[1]+e.eyeHeightOffset+e.leftEyeOffsetY)})">
        <polyline id="leftCountour" points="${e.eyeLeftUpper.concat(e.eyeLeftLower.reverse()).join(" ")}" fill="white" stroke="white" stroke-width="${0/e.faceScale}" stroke-linejoin="round" filter="url(#fuzzy)" />
      </g>
      <g transform="translate(${e.center[0]+e.distanceBetweenEyes+e.rightEyeOffsetX} ${-(-e.center[1]+e.eyeHeightOffset+e.rightEyeOffsetY)})">
        <polyline id="rightUpper" points="${e.eyeRightUpper.join(" ")}" fill="none" stroke="black" stroke-width="${(e.haventSleptForDays?5:3)/e.faceScale}" stroke-linejoin="round" stroke-linecap="round" filter="url(#fuzzy)" />
        <polyline id="rightLower" points="${e.eyeRightLower.join(" ")}" fill="none" stroke="black" stroke-width="${(e.haventSleptForDays?5:3)/e.faceScale}" stroke-linejoin="round" stroke-linecap="round" filter="url(#fuzzy)" />
        ${Array.from({length:10},(w,E)=>`
          <circle r="${Math.random()*2+3}" cx="${e.rightPupilShiftX+Math.random()*5-2.5}" cy="${e.rightPupilShiftY+Math.random()*5-2.5}" stroke="black" fill="none" stroke-width="${1+Math.random()*.5}" filter="url(#fuzzy)" clip-path="url(#rightEyeClipPath)" />
        `).join("")}
      </g>
      <g transform="translate(${-(e.center[0]+e.distanceBetweenEyes+e.leftEyeOffsetX)} ${-(-e.center[1]+e.eyeHeightOffset+e.leftEyeOffsetY)})">
        <polyline id="leftUpper" points="${e.eyeLeftUpper.join(" ")}" fill="none" stroke="black" stroke-width="${(e.haventSleptForDays?5:3)/e.faceScale}" stroke-linejoin="round" filter="url(#fuzzy)" />
        <polyline id="leftLower" points="${e.eyeLeftLower.join(" ")}" fill="none" stroke="black" stroke-width="${(e.haventSleptForDays?5:3)/e.faceScale}" stroke-linejoin="round" filter="url(#fuzzy)" />
        ${Array.from({length:10},(w,E)=>`
          <circle r="${Math.random()*2+3}" cx="${e.leftPupilShiftX+Math.random()*5-2.5}" cy="${e.leftPupilShiftY+Math.random()*5-2.5}" stroke="black" fill="none" stroke-width="${1+Math.random()*.5}" filter="url(#fuzzy)" clip-path="url(#leftEyeClipPath)" />
        `).join("")}
      </g>
      <g id="hairs">
        ${e.hairs.map((w,E)=>`
          <polyline points="${w.join(" ")}" fill="none" stroke="${e.hairColor}" stroke-width="${.5+Math.random()*2.5}" stroke-linejoin="round" filter="url(#fuzzy)" />
        `).join("")}
      </g>
      ${Math.random()>.5?`
        <g id="pointNose">
          <g id="rightNose">
            ${Array.from({length:10},(w,E)=>`
              <circle r="${Math.random()*2+1}" cx="${e.rightNoseCenterX+Math.random()*4-2}" cy="${e.rightNoseCenterY+Math.random()*4-2}" stroke="black" fill="none" stroke-width="${1+Math.random()*.5}" filter="url(#fuzzy)" />
            `).join("")}
          </g>
          <g id="leftNose">
            ${Array.from({length:10},(w,E)=>`
              <circle r="${Math.random()*2+1}" cx="${e.leftNoseCenterX+Math.random()*4-2}" cy="${e.leftNoseCenterY+Math.random()*4-2}" stroke="black" fill="none" stroke-width="${1+Math.random()*.5}" filter="url(#fuzzy)" />
            `).join("")}
          </g>
        </g>
      `:`
        <g id="lineNose">
          <path d="M ${e.leftNoseCenterX} ${e.leftNoseCenterY}, Q${e.rightNoseCenterX} ${e.rightNoseCenterY*1.5},${(e.leftNoseCenterX+e.rightNoseCenterX)/2} ${-e.eyeHeightOffset*.2}" fill="none" stroke="black" stroke-width="${2.5+Math.random()*1}" stroke-linejoin="round" filter="url(#fuzzy)"></path>
        </g>
      `}
      <g id="mouth">
        <polyline points="${e.mouthPoints.join(" ")}" fill="rgb(215,127,140)" stroke="black" stroke-width="${2.7+Math.random()*.5}" stroke-linejoin="round" filter="url(#fuzzy)" />
      </g>
    </svg>
  `;return gq(_)}function Sq(){const e=_q(),a=new XMLSerializer().serializeToString(e);return new Blob([a],{type:"image/svg+xml"})}const wq=async(e,r="image/webp")=>{const a=Sq(),i=await new Promise((l,c)=>{const f=new Image;f.onload=async()=>{const h=new OffscreenCanvas(f.width,f.height),m=h.getContext("2d");m==null||m.drawImage(f,0,0);const v=await h.convertToBlob({type:r});l(v)},f.onerror=()=>c(new Error("Failed to load SVG")),f.src=URL.createObjectURL(a)}),u=await Zj({input:i,targetSize:e,outputType:r});return await new Promise((l,c)=>{const f=new FileReader;f.onload=h=>{var m;return l((m=h.target)==null?void 0:m.result)},f.onerror=()=>c(new Error("Failed to convert Blob to Base64")),f.readAsDataURL(u)})},Oq=e=>new Promise((r,a)=>{const i=new FileReader;i.onload=u=>{var s;return r((s=u.target)==null?void 0:s.result)},i.onerror=()=>a(new Error("Failed to read file.")),i.readAsDataURL(e)});var gv={},cd={},JR;function Eq(){if(JR)return cd;JR=1,Object.defineProperty(cd,"__esModule",{value:!0}),cd.JSONRParser=void 0;const e="-0123456789.",r="-0123456789.eE+",a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";class i{constructor(s){this.i=0,this.jsonr=[],this.refMap=new Map,this.jsonr=Array.from(s),this.totalLength=this.jsonr.reduce((l,c)=>l+c.length,0),this.skipWhiteSpace()}nextChar(){this.i>=this.totalLength&&this.throwHere();const s=this.lookNextChar();return this.i++,s}lookNextChar(){let s=this.i,l=0;for(;;)if(this.jsonr[l].length<=s){if(s-=this.jsonr[l].length,l++,l===this.jsonr.length)return""}else return this.jsonr[l].charAt(s)}substring(s,l){if(l<s)throw new Error("end should bigger then start");let c=0;for(;this.jsonr[c].length<=s;)s-=this.jsonr[c].length,l-=this.jsonr[c].length,c++;let f="";for(;f+=this.jsonr[c].substring(Math.max(s,0),Math.max(l,0)),this.jsonr[c].length<l;)s-=this.jsonr[c].length,l-=this.jsonr[c].length,c++;return f}isWhiteSpace(s){return s===" "||s==="\r"||s===`
`||s==="	"}skipWhiteSpace(){for(;this.isWhiteSpace(this.lookNextChar());)this.nextChar()}parseValue(){const s=this.lookNextChar();let l;if(s==="{"?l=this.parseObject():s==="["?l=this.parseArray():s==='"'?l=this.parseString():e.includes(s)?l=this.parseNumber():s==="t"?l=this.parseLiteral("true",!0):s==="f"?l=this.parseLiteral("false",!1):s==="n"?l=this.parseLiteral("null",null):s==="N"?l=this.parseLiteral("NaN",NaN):s==="u"?l=this.parseLiteral("undefined",void 0):s==="$"?l=this.parseRef():this.throwHere(),this.skipWhiteSpace(),this.lookNextChar()==="$"){this.nextChar();const c=this.i;for(;a.includes(this.lookNextChar().toUpperCase());)this.nextChar();const f=this.i,h=this.substring(c,f).trim();this.refMap.set(h,l)}return l}parseObject(){if(this.nextChar(),this.skipWhiteSpace(),this.lookNextChar()==="}")return this.nextChar(),{};const s={};for(;;){const l=this.parseValue();this.skipWhiteSpace(),this.nextChar()!==":"&&this.throwHere(),this.skipWhiteSpace();const c=this.parseValue();if(s[l]=c,this.skipWhiteSpace(),this.lookNextChar()===",")this.nextChar(),this.skipWhiteSpace();else break}return this.nextChar()!=="}"&&this.throwHere(),s}parseArray(){if(this.nextChar(),this.skipWhiteSpace(),this.lookNextChar()==="]")return this.nextChar(),[];const s=[];for(;;){const l=this.parseValue();if(s.push(l),this.skipWhiteSpace(),this.lookNextChar()===",")this.nextChar(),this.skipWhiteSpace();else break}return this.nextChar()!=="]"&&this.throwHere(),s}parseString(){const s=this.i;for(this.nextChar();;){const c=this.nextChar();if(c==='"')break;c==="\\"&&this.nextChar()}const l=this.i;return JSON.parse(this.substring(s,l))}parseNumber(){const s=this.i;for(this.nextChar();this.lookNextChar()!==""&&r.includes(this.lookNextChar());)this.nextChar();const l=this.i;return new Number(this.substring(s,l)).valueOf()}parseLiteral(s,l){for(let c=0;c<s.length;c++){if(s.charAt(c)!==this.lookNextChar())return l;this.nextChar()}return l}parseRef(){this.nextChar();const s=this.i;for(;a.includes(this.lookNextChar().toUpperCase());)this.nextChar();const l=this.i,c=this.substring(s,l).trim();if(this.refMap.has(c))return this.refMap.get(c);this.throwHere()}throwHere(){throw new Error('Invalid json, read "'+this.substring(this.i-5,this.i)+'"')}}return cd.JSONRParser=i,cd}var fd={},eT;function Aq(){if(eT)return fd;eT=1,Object.defineProperty(fd,"__esModule",{value:!0}),fd.JSONRStringify=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function r(i){let u="";if(i===0)return"0";for(;i>0;){const s=i%e.length;u=e.charAt(s)+u,i=Math.floor(i/e.length)}return u}function*a(i,u,s){const{enableStringDeduplication:l=!0}=s??{};let c="";function f(g){return c+=g,c.length>1024*1024*100?c:null}let h=0;const m=new Map,v=[{v:i}];function y(g){if(!l)return JSON.stringify(g);let S=m.get(g);if(S===void 0?(S={sid:null,rc:1},m.set(g,S)):S.rc++,S.sid!==null)return"$"+S.sid;if(g.length>=3&&S.sid===null&&(S.rc>=2||g.length>=6)){const _=r(h++);return S.sid=_,JSON.stringify(g)+"$"+_}else return JSON.stringify(g)}for(;v.length>0;){const g=v.pop();if(g===void 0)break;if(typeof g=="string"&&f(g)&&(yield c,c=""),typeof g=="object"&&"v"in g){const S=g.v;if(S===!0){f("t")&&(yield c,c="");continue}if(S===!1){f("f")&&(yield c,c="");continue}if(S===null){f("n")&&(yield c,c="");continue}if(S===void 0){f("u")&&(yield c,c="");continue}if(typeof S!="object"){typeof S=="string"?f(y(S))&&(yield c,c=""):typeof S=="number"&&Number.isNaN(S)?f("N")&&(yield c,c=""):f(S.toString())&&(yield c,c="");continue}if(Array.isArray(S)){f("[")&&(yield c,c=""),v.push("]");for(let w=S.length-1;w>=0;w--)v.push({v:S[w]}),w!==0&&v.push(",");continue}f("{")&&(yield c,c=""),v.push("}");const _=Object.keys(S);for(let w=_.length-1;w>=0;w--){const E=_[w];let R=S[E];typeof u=="function"&&(R=u(E,R)),v.push({v:R}),v.push(":"),v.push({v:E}),w!==0&&v.push(",")}}}yield c}return fd.JSONRStringify=a,fd}var tT;function Rq(){if(tT)return gv;tT=1,Object.defineProperty(gv,"__esModule",{value:!0});const e=Eq(),r=Aq(),a={stringifyStream:r.JSONRStringify,stringify:(i,u,s)=>Array.from((0,r.JSONRStringify)(i,u,s)).join(""),parse:i=>new e.JSONRParser([i]).parseValue(),parseStream:i=>new e.JSONRParser(i).parseValue()};return gv.default=a,gv}Rq();function Tq({className:e,...r}){return $.jsx(O4,{"data-slot":"avatar",className:nr("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...r})}function Mq({className:e,...r}){return $.jsx(E4,{"data-slot":"avatar-image",className:nr("aspect-square size-full",e),...r})}function xq({className:e,...r}){return $.jsx(A4,{"data-slot":"avatar-fallback",className:nr("bg-muted flex size-full items-center justify-center rounded-full",e),...r})}var jq="Label",Jj=F.forwardRef((e,r)=>$.jsx(un.label,{...e,ref:r,onMouseDown:a=>{var u;a.target.closest("button, input, select, textarea")||((u=e.onMouseDown)==null||u.call(e,a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}}));Jj.displayName=jq;var Cq=Jj;function ko({className:e,...r}){return $.jsx(Cq,{"data-slot":"label",className:nr("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...r})}const eC=({ref:e,onChange:r,value:a,onError:i,onWarning:u,onSuccess:s,className:l,compressSize:c=8*1024,disabled:f})=>{const h=async m=>{var y;const v=(y=m.target.files)==null?void 0:y[0];if(v){if(!/image\/(png|jpeg|webp)/.test(v.type)){u==null||u(new Error("Only PNG, JPEG and WebP image are supported."));return}try{const g=await Zj({input:v,targetSize:c,outputType:"image/webp"}),S=await Oq(g);s==null||s(S),r==null||r(S)}catch(g){i==null||i(g)}}};return $.jsxs(ko,{className:"contents",children:[$.jsxs(Tq,{tabIndex:f?-1:1,className:nr("group h-24 w-24 cursor-pointer border-4 border-white transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background",{"cursor-not-allowed":f,"opacity-50":f},l),children:[$.jsx(Mq,{src:a,className:"size-full",alt:"avatar"}),$.jsx(xq,{children:$.jsx(o4,{size:30,className:"text-slate-400 group-hover:text-slate-500"})})]}),$.jsx("input",{ref:e,hidden:!0,disabled:f,type:"file",accept:"image/png,image/jpeg,image/webp",onChange:h})]})};eC.displayName="AvatarSelect";const rT=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,nT=Ij,Pq=(e,r)=>a=>{var i;if((r==null?void 0:r.variants)==null)return nT(e,a==null?void 0:a.class,a==null?void 0:a.className);const{variants:u,defaultVariants:s}=r,l=Object.keys(u).map(h=>{const m=a==null?void 0:a[h],v=s==null?void 0:s[h];if(m===null)return null;const y=rT(m)||rT(v);return u[h][y]}),c=a&&Object.entries(a).reduce((h,m)=>{let[v,y]=m;return y===void 0||(h[v]=y),h},{}),f=r==null||(i=r.compoundVariants)===null||i===void 0?void 0:i.reduce((h,m)=>{let{class:v,className:y,...g}=m;return Object.entries(g).every(S=>{let[_,w]=S;return Array.isArray(w)?w.includes({...s,...c}[_]):{...s,...c}[_]===w})?[...h,v,y]:h},[]);return nT(e,l,f,a==null?void 0:a.class,a==null?void 0:a.className)},Dq=Pq("inline-flex items-center cursor-pointer justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"text-foreground hover:bg-accent hover:text-accent-foreground dark:text-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",xs:"h-6 rounded-md px-2 text-xs has-[>svg]:px-1",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),Ed=F.forwardRef(({className:e,variant:r,size:a,asChild:i=!1,...u},s)=>{const l=i?Dj:"button";return $.jsx(l,{ref:s,"data-slot":"button",className:nr(Dq({variant:r,size:a,className:e})),...u})});Ed.displayName="Button";const Nq=Rk,tC=F.createContext({}),qu=({...e})=>$.jsx(tC.Provider,{value:{name:e.name},children:$.jsx(xk,{...e})}),dm=()=>{const e=F.useContext(tC),r=F.useContext(rC),{getFieldState:a}=cm(),i=wj({name:e.name}),u=a(e.name,i);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=r;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...u}},rC=F.createContext({});function Vu({className:e,...r}){const a=F.useId();return $.jsx(rC.Provider,{value:{id:a},children:$.jsx("div",{"data-slot":"form-item",className:nr("grid gap-2",e),...r})})}function _v({className:e,...r}){const{error:a,formItemId:i}=dm();return $.jsx(ko,{"data-slot":"form-label","data-error":!!a,className:nr("data-[error=true]:text-destructive",e),htmlFor:i,...r})}function Lu({...e}){const{error:r,formItemId:a,formDescriptionId:i,formMessageId:u}=dm();return $.jsx(Dj,{"data-slot":"form-control",id:a,"aria-describedby":r?`${i} ${u}`:`${i}`,"aria-invalid":!!r,...e})}function Sv({className:e,...r}){const{formDescriptionId:a}=dm();return $.jsx("p",{"data-slot":"form-description",id:a,className:nr("text-muted-foreground text-sm",e),...r})}function Uu({className:e,...r}){const{error:a,formMessageId:i}=dm(),u=a?String((a==null?void 0:a.message)??""):r.children;return u?$.jsx("p",{"data-slot":"form-message",id:i,className:nr("text-destructive text-sm",e),...r,children:u}):null}function kq({className:e,type:r,...a}){return $.jsx("input",{type:r,"data-slot":"input",className:nr("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...a})}const qq=ns.Remesh.extern({default:{name:"STORAGE",get:async()=>{throw new Error('"get" not implemented.')},set:async()=>{throw new Error('"set" not implemented.')},remove:async()=>{throw new Error('"remove" not implemented.')},clear:async()=>{throw new Error('"clear" not implemented.')},watch:async()=>{throw new Error('"watch" not implemented.')},unwatch:async()=>{throw new Error('"unwatch" not implemented.')}}}),Vq=ns.Remesh.extern({default:{name:"STORAGE",get:async()=>{throw new Error('"get" not implemented.')},set:async()=>{throw new Error('"set" not implemented.')},remove:async()=>{throw new Error('"remove" not implemented.')},clear:async()=>{throw new Error('"clear" not implemented.')},watch:async()=>{throw new Error('"watch" not implemented.')},unwatch:async()=>{throw new Error('"unwatch" not implemented.')}}}),nC=ns.Remesh.extern({default:{name:"STORAGE",get:async()=>{throw new Error('"get" not implemented.')},set:async()=>{throw new Error('"set" not implemented.')},remove:async()=>{throw new Error('"remove" not implemented.')},clear:async()=>{throw new Error('"clear" not implemented.')},watch:async()=>{throw new Error('"watch" not implemented.')},unwatch:async()=>{throw new Error('"unwatch" not implemented.')}}});var PM,DM;((DM=(PM=globalThis.browser)==null?void 0:PM.runtime)==null?void 0:DM.id)==null?globalThis.chrome:globalThis.browser;function cr(e){return typeof e=="function"}function Lq(e){var r=function(i){Error.call(i),i.stack=new Error().stack},a=e(r);return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a}var rb=Lq(function(e){return function(a){e(this),this.message=a?a.length+` errors occurred during unsubscription:
`+a.map(function(i,u){return u+1+") "+i.toString()}).join(`
  `):"",this.name="UnsubscriptionError",this.errors=a}});function aT(e,r){if(e){var a=e.indexOf(r);0<=a&&e.splice(a,1)}}var Ug=function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var r,a,i,u,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=Fo(l),f=c.next();!f.done;f=c.next()){var h=f.value;h.remove(this)}}catch(_){r={error:_}}finally{try{f&&!f.done&&(a=c.return)&&a.call(c)}finally{if(r)throw r.error}}else l.remove(this);var m=this.initialTeardown;if(cr(m))try{m()}catch(_){s=_ instanceof rb?_.errors:[_]}var v=this._finalizers;if(v){this._finalizers=null;try{for(var y=Fo(v),g=y.next();!g.done;g=y.next()){var S=g.value;try{iT(S)}catch(_){s=s??[],_ instanceof rb?s=wd(wd([],Ku(s)),Ku(_.errors)):s.push(_)}}}catch(_){i={error:_}}finally{try{g&&!g.done&&(u=y.return)&&u.call(y)}finally{if(i)throw i.error}}}if(s)throw new rb(s)}},e.prototype.add=function(r){var a;if(r&&r!==this)if(this.closed)iT(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(a=this._finalizers)!==null&&a!==void 0?a:[]).push(r)}},e.prototype._hasParent=function(r){var a=this._parentage;return a===r||Array.isArray(a)&&a.includes(r)},e.prototype._addParent=function(r){var a=this._parentage;this._parentage=Array.isArray(a)?(a.push(r),a):a?[a,r]:r},e.prototype._removeParent=function(r){var a=this._parentage;a===r?this._parentage=null:Array.isArray(a)&&aT(a,r)},e.prototype.remove=function(r){var a=this._finalizers;a&&aT(a,r),r instanceof e&&r._removeParent(this)},e.EMPTY=function(){var r=new e;return r.closed=!0,r}(),e}();Ug.EMPTY;function aC(e){return e instanceof Ug||e&&"closed"in e&&cr(e.remove)&&cr(e.add)&&cr(e.unsubscribe)}function iT(e){cr(e)?e():e.unsubscribe()}var Uq={Promise:void 0},zq={setTimeout:function(e,r){for(var a=[],i=2;i<arguments.length;i++)a[i-2]=arguments[i];return setTimeout.apply(void 0,wd([e,r],Ku(a)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function iC(e){zq.setTimeout(function(){throw e})}function oT(){}function Iq(e){e()}var zg=function(e){Dd(r,e);function r(a){var i=e.call(this)||this;return i.isStopped=!1,a?(i.destination=a,aC(a)&&a.add(i)):i.destination=$q,i}return r.create=function(a,i,u){return new xb(a,i,u)},r.prototype.next=function(a){this.isStopped||this._next(a)},r.prototype.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(a){this.destination.next(a)},r.prototype._error=function(a){try{this.destination.error(a)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(Ug),Fq=function(){function e(r){this.partialObserver=r}return e.prototype.next=function(r){var a=this.partialObserver;if(a.next)try{a.next(r)}catch(i){wv(i)}},e.prototype.error=function(r){var a=this.partialObserver;if(a.error)try{a.error(r)}catch(i){wv(i)}else wv(r)},e.prototype.complete=function(){var r=this.partialObserver;if(r.complete)try{r.complete()}catch(a){wv(a)}},e}(),xb=function(e){Dd(r,e);function r(a,i,u){var s=e.call(this)||this,l;return cr(a)||!a?l={next:a??void 0,error:i??void 0,complete:u??void 0}:l=a,s.destination=new Fq(l),s}return r}(zg);function wv(e){iC(e)}function Bq(e){throw e}var $q={closed:!0,next:oT,error:Bq,complete:oT},Ig=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Hq(e){return e}function Yq(e){return e.length===0?Hq:e.length===1?e[0]:function(a){return e.reduce(function(i,u){return u(i)},a)}}var Kn=function(){function e(r){r&&(this._subscribe=r)}return e.prototype.lift=function(r){var a=new e;return a.source=this,a.operator=r,a},e.prototype.subscribe=function(r,a,i){var u=this,s=Wq(r)?r:new xb(r,a,i);return Iq(function(){var l=u,c=l.operator,f=l.source;s.add(c?c.call(s,f):f?u._subscribe(s):u._trySubscribe(s))}),s},e.prototype._trySubscribe=function(r){try{return this._subscribe(r)}catch(a){r.error(a)}},e.prototype.forEach=function(r,a){var i=this;return a=uT(a),new a(function(u,s){var l=new xb({next:function(c){try{r(c)}catch(f){s(f),l.unsubscribe()}},error:s,complete:u});i.subscribe(l)})},e.prototype._subscribe=function(r){var a;return(a=this.source)===null||a===void 0?void 0:a.subscribe(r)},e.prototype[Ig]=function(){return this},e.prototype.pipe=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return Yq(r)(this)},e.prototype.toPromise=function(r){var a=this;return r=uT(r),new r(function(i,u){var s;a.subscribe(function(l){return s=l},function(l){return u(l)},function(){return i(s)})})},e.create=function(r){return new e(r)},e}();function uT(e){var r;return(r=e??Uq.Promise)!==null&&r!==void 0?r:Promise}function Gq(e){return e&&cr(e.next)&&cr(e.error)&&cr(e.complete)}function Wq(e){return e&&e instanceof zg||Gq(e)&&aC(e)}function Qq(e){return cr(e==null?void 0:e.lift)}function hm(e){return function(r){if(Qq(r))return r.lift(function(a){try{return e(a,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Yv(e,r,a,i,u){return new Xq(e,r,a,i,u)}var Xq=function(e){Dd(r,e);function r(a,i,u,s,l,c){var f=e.call(this,a)||this;return f.onFinalize=l,f.shouldUnsubscribe=c,f._next=i?function(h){try{i(h)}catch(m){a.error(m)}}:e.prototype._next,f._error=s?function(h){try{s(h)}catch(m){a.error(m)}finally{this.unsubscribe()}}:e.prototype._error,f._complete=u?function(){try{u()}catch(h){a.error(h)}finally{this.unsubscribe()}}:e.prototype._complete,f}return r.prototype.unsubscribe=function(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;e.prototype.unsubscribe.call(this),!i&&((a=this.onFinalize)===null||a===void 0||a.call(this))}},r}(zg),oC=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function uC(e){return cr(e==null?void 0:e.then)}function sC(e){return cr(e[Ig])}function lC(e){return Symbol.asyncIterator&&cr(e==null?void 0:e[Symbol.asyncIterator])}function cC(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Kq(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var fC=Kq();function dC(e){return cr(e==null?void 0:e[fC])}function hC(e){return tg(this,arguments,function(){var a,i,u,s;return Zv(this,function(l){switch(l.label){case 0:a=e.getReader(),l.label=1;case 1:l.trys.push([1,,9,10]),l.label=2;case 2:return[4,ka(a.read())];case 3:return i=l.sent(),u=i.value,s=i.done,s?[4,ka(void 0)]:[3,5];case 4:return[2,l.sent()];case 5:return[4,ka(u)];case 6:return[4,l.sent()];case 7:return l.sent(),[3,2];case 8:return[3,10];case 9:return a.releaseLock(),[7];case 10:return[2]}})})}function vC(e){return cr(e==null?void 0:e.getReader)}function vm(e){if(e instanceof Kn)return e;if(e!=null){if(sC(e))return Zq(e);if(oC(e))return Jq(e);if(uC(e))return eV(e);if(lC(e))return mC(e);if(dC(e))return tV(e);if(vC(e))return rV(e)}throw cC(e)}function Zq(e){return new Kn(function(r){var a=e[Ig]();if(cr(a.subscribe))return a.subscribe(r);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Jq(e){return new Kn(function(r){for(var a=0;a<e.length&&!r.closed;a++)r.next(e[a]);r.complete()})}function eV(e){return new Kn(function(r){e.then(function(a){r.closed||(r.next(a),r.complete())},function(a){return r.error(a)}).then(null,iC)})}function tV(e){return new Kn(function(r){var a,i;try{for(var u=Fo(e),s=u.next();!s.done;s=u.next()){var l=s.value;if(r.next(l),r.closed)return}}catch(c){a={error:c}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}r.complete()})}function mC(e){return new Kn(function(r){nV(e,r).catch(function(a){return r.error(a)})})}function rV(e){return mC(hC(e))}function nV(e,r){var a,i,u,s;return eg(this,void 0,void 0,function(){var l,c;return Zv(this,function(f){switch(f.label){case 0:f.trys.push([0,5,6,11]),a=rg(e),f.label=1;case 1:return[4,a.next()];case 2:if(i=f.sent(),!!i.done)return[3,4];if(l=i.value,r.next(l),r.closed)return[2];f.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=f.sent(),u={error:c},[3,11];case 6:return f.trys.push([6,,9,10]),i&&!i.done&&(s=a.return)?[4,s.call(a)]:[3,8];case 7:f.sent(),f.label=8;case 8:return[3,10];case 9:if(u)throw u.error;return[7];case 10:return[7];case 11:return r.complete(),[2]}})})}function Uo(e,r,a,i,u){i===void 0&&(i=0),u===void 0&&(u=!1);var s=r.schedule(function(){a(),u?e.add(this.schedule(null,i)):this.unsubscribe()},i);if(e.add(s),!u)return s}function pC(e,r){return r===void 0&&(r=0),hm(function(a,i){a.subscribe(Yv(i,function(u){return Uo(i,e,function(){return i.next(u)},r)},function(){return Uo(i,e,function(){return i.complete()},r)},function(u){return Uo(i,e,function(){return i.error(u)},r)}))})}function yC(e,r){return r===void 0&&(r=0),hm(function(a,i){i.add(e.schedule(function(){return a.subscribe(i)},r))})}function aV(e,r){return vm(e).pipe(yC(r),pC(r))}function iV(e,r){return vm(e).pipe(yC(r),pC(r))}function oV(e,r){return new Kn(function(a){var i=0;return r.schedule(function(){i===e.length?a.complete():(a.next(e[i++]),a.closed||this.schedule())})})}function uV(e,r){return new Kn(function(a){var i;return Uo(a,r,function(){i=e[fC](),Uo(a,r,function(){var u,s,l;try{u=i.next(),s=u.value,l=u.done}catch(c){a.error(c);return}l?a.complete():a.next(s)},0,!0)}),function(){return cr(i==null?void 0:i.return)&&i.return()}})}function bC(e,r){if(!e)throw new Error("Iterable cannot be null");return new Kn(function(a){Uo(a,r,function(){var i=e[Symbol.asyncIterator]();Uo(a,r,function(){i.next().then(function(u){u.done?a.complete():a.next(u.value)})},0,!0)})})}function sV(e,r){return bC(hC(e),r)}function lV(e,r){if(e!=null){if(sC(e))return aV(e,r);if(oC(e))return oV(e,r);if(uC(e))return iV(e,r);if(lC(e))return bC(e,r);if(dC(e))return uV(e,r);if(vC(e))return sV(e,r)}throw cC(e)}function sT(e,r){return r?lV(e,r):vm(e)}function lT(e,r){return hm(function(a,i){var u=0;a.subscribe(Yv(i,function(s){i.next(e.call(r,s,u++))}))})}function cT(e,r){return hm(function(a,i){var u=null,s=0,l=!1,c=function(){return l&&!u&&i.complete()};a.subscribe(Yv(i,function(f){u==null||u.unsubscribe();var h=0,m=s++;vm(e(f,m)).subscribe(u=Yv(i,function(v){return i.next(r?r(f,v,m,h++):v)},function(){u=null,c()}))},function(){l=!0,c()}))})}class cV{constructor(r){dv(this,"domain");dv(this,"key");dv(this,"storage");this.domain=r.domain,this.key=r.key,this.storage=r.domain.getExtern(r.extern)}get(r){return this.domain.effect({name:"FormStorageToStateEffect",impl:()=>sT(this.storage.get(this.key)).pipe(lT(a=>r(a)))}),this}set(r){return this.domain.effect({name:"FormStateToStorageEffect",impl:({fromEvent:a})=>a(r).pipe(cT(async i=>(await this.storage.set(this.key,i),null)))}),this}watch(r){return this.domain.effect({name:"WatchStorageToStateEffect",impl:()=>new Kn(a=>{const i=this.storage.watch(()=>a.next());return()=>i.then(u=>u())}).pipe(cT(()=>sT(this.storage.get(this.key))),lT(r))}),this}}const fT=(e,r)=>{const a=e.state({name:`${r.name}.StatusState`,default:r.default??1}),i=e.query({name:`${r.name}.StatusQuery`,impl:({get:y})=>y(a())}),u=e.query({name:`${r.name}.IsInitialQuery`,impl:({get:y})=>(y(a())&1)!==0}),s=e.query({name:`${r.name}.IsLoadingQuery`,impl:({get:y})=>(y(a())&2)!==0}),l=e.query({name:`${r.name}.IsFinishedQuery`,impl:({get:y})=>(y(a())&4)!==0}),c=e.event({name:`${r.name}.UpdateStatusEvent`}),f=e.command({name:`${r.name}.SetInitialCommand`,impl:()=>[a().new(1),c(1)]}),h=e.command({name:`${r.name}.SetLoadingCommand`,impl:()=>[a().new(2),c(2)]}),m=e.command({name:`${r.name}.SetFinishedCommand`,impl:()=>[a().new(4),c(4)]}),v=e.command({name:`${r.name}.UpdateStatusCommand`,impl:(y,g)=>[a().new(g),c(g)]});return{query:{StatusQuery:i,IsInitialQuery:u,IsLoadingQuery:s,IsFinishedQuery:l},command:{SetInitialCommand:f,SetLoadingCommand:h,SetFinishedCommand:m,UpdateStatusCommand:v},event:{UpdateStatusEvent:c}}},gC="0.5.9",Yd=`GHOST_CHAT_${gC}`,fV="GHOST_CHAT_USER_INFO",dT=5120,_C=ns.Remesh.domain({name:"UserInfoDomain",impl:e=>{const r=new cV({domain:e,extern:nC,key:fV}),a=e.state({name:"UserInfo.UserInfoState",default:null}),i=fT(e,{name:"UserInfo.LoadStatusModule"}),u=fT(e,{name:"UserInfo.SetStatusModule"}),s=e.query({name:"UserInfo.UserInfoQuery",impl:({get:v})=>v(a())}),l=e.command({name:"UserInfo.UpdateUserInfoCommand",impl:(v,y)=>[a().new(y),c(),f(),y?u.command.SetFinishedCommand():u.command.SetInitialCommand()]}),c=e.event({name:"UserInfo.UpdateUserInfoEvent",impl:({get:v})=>v(a())}),f=e.event({name:"UserInfo.SyncToStorageEvent",impl:({get:v})=>v(a())}),h=e.event({name:"UserInfo.SyncToStateEvent"}),m=e.command({name:"UserInfo.SyncToStateCommand",impl:(v,y)=>[a().new(y),c(),h(y),y?u.command.SetFinishedCommand():u.command.SetInitialCommand()]});return r.set(f).get(v=>[m(v),i.command.SetFinishedCommand()]).watch(v=>[m(v)]),{query:{UserInfoQuery:s,UserInfoLoadIsFinishedQuery:i.query.IsFinishedQuery,UserInfoSetIsFinishedQuery:u.query.IsFinishedQuery},command:{UpdateUserInfoCommand:l},event:{SyncToStateEvent:h,SyncToStorageEvent:f,UpdateUserInfoEvent:c}}}});function Dn(e,r,{checkForDefaultPrevented:a=!0}={}){return function(u){if(e==null||e(u),a===!1||!u.defaultPrevented)return r==null?void 0:r(u)}}function dV(e){const r=e+"CollectionProvider",[a,i]=as(r),[u,s]=a(r,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:w,children:E}=_,R=ce.useRef(null),T=ce.useRef(new Map).current;return $.jsx(u,{scope:w,itemMap:T,collectionRef:R,children:E})};l.displayName=r;const c=e+"CollectionSlot",f=$v(c),h=ce.forwardRef((_,w)=>{const{scope:E,children:R}=_,T=s(c,E),j=Xn(w,T.collectionRef);return $.jsx(f,{ref:j,children:R})});h.displayName=c;const m=e+"CollectionItemSlot",v="data-radix-collection-item",y=$v(m),g=ce.forwardRef((_,w)=>{const{scope:E,children:R,...T}=_,j=ce.useRef(null),M=Xn(w,j),V=s(m,E);return ce.useEffect(()=>(V.itemMap.set(j,{ref:j,...T}),()=>void V.itemMap.delete(j))),$.jsx(y,{[v]:"",ref:M,children:R})});g.displayName=m;function S(_){const w=s(e+"CollectionConsumer",_);return ce.useCallback(()=>{const R=w.collectionRef.current;if(!R)return[];const T=Array.from(R.querySelectorAll(`[${v}]`));return Array.from(w.itemMap.values()).sort((V,U)=>T.indexOf(V.ref.current)-T.indexOf(U.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:l,Slot:h,ItemSlot:g},S,i]}var hV=kM[" useId ".trim().toString()]||(()=>{}),vV=0;function mV(e){const[r,a]=F.useState(hV());return gi(()=>{a(i=>i??String(vV++))},[e]),r?`radix-${r}`:""}var pV=kM[" useInsertionEffect ".trim().toString()]||gi;function Fg({prop:e,defaultProp:r,onChange:a=()=>{},caller:i}){const[u,s,l]=yV({defaultProp:r,onChange:a}),c=e!==void 0,f=c?e:u;{const m=F.useRef(e!==void 0);F.useEffect(()=>{const v=m.current;v!==c&&console.warn(`${i} is changing from ${v?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=c},[c,i])}const h=F.useCallback(m=>{var v;if(c){const y=bV(m)?m(e):m;y!==e&&((v=l.current)==null||v.call(l,y))}else s(m)},[c,e,s,l]);return[f,h]}function yV({defaultProp:e,onChange:r}){const[a,i]=F.useState(e),u=F.useRef(a),s=F.useRef(r);return pV(()=>{s.current=r},[r]),F.useEffect(()=>{var l;u.current!==a&&((l=s.current)==null||l.call(s,a),u.current=a)},[a,u]),[a,i,s]}function bV(e){return typeof e=="function"}var gV=F.createContext(void 0);function SC(e){const r=F.useContext(gV);return e||r||"ltr"}var nb="rovingFocusGroup.onEntryFocus",_V={bubbles:!1,cancelable:!0},Gd="RovingFocusGroup",[jb,wC,SV]=dV(Gd),[wV,OC]=as(Gd,[SV]),[OV,EV]=wV(Gd),EC=F.forwardRef((e,r)=>$.jsx(jb.Provider,{scope:e.__scopeRovingFocusGroup,children:$.jsx(jb.Slot,{scope:e.__scopeRovingFocusGroup,children:$.jsx(AV,{...e,ref:r})})}));EC.displayName=Gd;var AV=F.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:a,orientation:i,loop:u=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...v}=e,y=F.useRef(null),g=Xn(r,y),S=SC(s),[_,w]=Fg({prop:l,defaultProp:c??null,onChange:f,caller:Gd}),[E,R]=F.useState(!1),T=Pj(h),j=wC(a),M=F.useRef(!1),[V,U]=F.useState(0);return F.useEffect(()=>{const N=y.current;if(N)return N.addEventListener(nb,T),()=>N.removeEventListener(nb,T)},[T]),$.jsx(OV,{scope:a,orientation:i,dir:S,loop:u,currentTabStopId:_,onItemFocus:F.useCallback(N=>w(N),[w]),onItemShiftTab:F.useCallback(()=>R(!0),[]),onFocusableItemAdd:F.useCallback(()=>U(N=>N+1),[]),onFocusableItemRemove:F.useCallback(()=>U(N=>N-1),[]),children:$.jsx(un.div,{tabIndex:E||V===0?-1:0,"data-orientation":i,...v,ref:g,style:{outline:"none",...e.style},onMouseDown:Dn(e.onMouseDown,()=>{M.current=!0}),onFocus:Dn(e.onFocus,N=>{const D=!M.current;if(N.target===N.currentTarget&&D&&!E){const J=new CustomEvent(nb,_V);if(N.currentTarget.dispatchEvent(J),!J.defaultPrevented){const le=j().filter(C=>C.focusable),I=le.find(C=>C.active),oe=le.find(C=>C.id===_),ye=[I,oe,...le].filter(Boolean).map(C=>C.ref.current);TC(ye,m)}}M.current=!1}),onBlur:Dn(e.onBlur,()=>R(!1))})})}),AC="RovingFocusGroupItem",RC=F.forwardRef((e,r)=>{const{__scopeRovingFocusGroup:a,focusable:i=!0,active:u=!1,tabStopId:s,children:l,...c}=e,f=mV(),h=s||f,m=EV(AC,a),v=m.currentTabStopId===h,y=wC(a),{onFocusableItemAdd:g,onFocusableItemRemove:S,currentTabStopId:_}=m;return F.useEffect(()=>{if(i)return g(),()=>S()},[i,g,S]),$.jsx(jb.ItemSlot,{scope:a,id:h,focusable:i,active:u,children:$.jsx(un.span,{tabIndex:v?0:-1,"data-orientation":m.orientation,...c,ref:r,onMouseDown:Dn(e.onMouseDown,w=>{i?m.onItemFocus(h):w.preventDefault()}),onFocus:Dn(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:Dn(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){m.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const E=MV(w,m.orientation,m.dir);if(E!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let T=y().filter(j=>j.focusable).map(j=>j.ref.current);if(E==="last")T.reverse();else if(E==="prev"||E==="next"){E==="prev"&&T.reverse();const j=T.indexOf(w.currentTarget);T=m.loop?xV(T,j+1):T.slice(j+1)}setTimeout(()=>TC(T))}}),children:typeof l=="function"?l({isCurrentTabStop:v,hasTabStop:_!=null}):l})})});RC.displayName=AC;var RV={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function TV(e,r){return r!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function MV(e,r,a){const i=TV(e.key,a);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return RV[i]}function TC(e,r=!1){const a=document.activeElement;for(const i of e)if(i===a||(i.focus({preventScroll:r}),document.activeElement!==a))return}function xV(e,r){return e.map((a,i)=>e[(r+i)%e.length])}var jV=EC,CV=RC;function MC(e){const[r,a]=F.useState(void 0);return gi(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const s=u[0];let l,c;if("borderBoxSize"in s){const f=s.borderBoxSize,h=Array.isArray(f)?f[0]:f;l=h.inlineSize,c=h.blockSize}else l=e.offsetWidth,c=e.offsetHeight;a({width:l,height:c})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else a(void 0)},[e]),r}function xC(e){const r=F.useRef({value:e,previous:e});return F.useMemo(()=>(r.current.value!==e&&(r.current.previous=r.current.value,r.current.value=e),r.current.previous),[e])}function PV(e,r){return F.useReducer((a,i)=>r[a][i]??a,e)}var Bg=e=>{const{present:r,children:a}=e,i=DV(r),u=typeof a=="function"?a({present:i.isPresent}):F.Children.only(a),s=Xn(i.ref,NV(u));return typeof a=="function"||i.isPresent?F.cloneElement(u,{ref:s}):null};Bg.displayName="Presence";function DV(e){const[r,a]=F.useState(),i=F.useRef(null),u=F.useRef(e),s=F.useRef("none"),l=e?"mounted":"unmounted",[c,f]=PV(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return F.useEffect(()=>{const h=Ov(i.current);s.current=c==="mounted"?h:"none"},[c]),gi(()=>{const h=i.current,m=u.current;if(m!==e){const y=s.current,g=Ov(h);e?f("MOUNT"):g==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(m&&y!==g?"ANIMATION_OUT":"UNMOUNT"),u.current=e}},[e,f]),gi(()=>{if(r){let h;const m=r.ownerDocument.defaultView??window,v=g=>{const _=Ov(i.current).includes(g.animationName);if(g.target===r&&_&&(f("ANIMATION_END"),!u.current)){const w=r.style.animationFillMode;r.style.animationFillMode="forwards",h=m.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=w)})}},y=g=>{g.target===r&&(s.current=Ov(i.current))};return r.addEventListener("animationstart",y),r.addEventListener("animationcancel",v),r.addEventListener("animationend",v),()=>{m.clearTimeout(h),r.removeEventListener("animationstart",y),r.removeEventListener("animationcancel",v),r.removeEventListener("animationend",v)}}else f("ANIMATION_END")},[r,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:F.useCallback(h=>{i.current=h?getComputedStyle(h):null,a(h)},[])}}function Ov(e){return(e==null?void 0:e.animationName)||"none"}function NV(e){var i,u;let r=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,a=r&&"isReactWarning"in r&&r.isReactWarning;return a?e.ref:(r=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,a=r&&"isReactWarning"in r&&r.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var $g="Radio",[kV,jC]=as($g),[qV,VV]=kV($g),CC=F.forwardRef((e,r)=>{const{__scopeRadio:a,name:i,checked:u=!1,required:s,disabled:l,value:c="on",onCheck:f,form:h,...m}=e,[v,y]=F.useState(null),g=Xn(r,w=>y(w)),S=F.useRef(!1),_=v?h||!!v.closest("form"):!0;return $.jsxs(qV,{scope:a,checked:u,disabled:l,children:[$.jsx(un.button,{type:"button",role:"radio","aria-checked":u,"data-state":kC(u),"data-disabled":l?"":void 0,disabled:l,value:c,...m,ref:g,onClick:Dn(e.onClick,w=>{u||f==null||f(),_&&(S.current=w.isPropagationStopped(),S.current||w.stopPropagation())})}),_&&$.jsx(NC,{control:v,bubbles:!S.current,name:i,value:c,checked:u,required:s,disabled:l,form:h,style:{transform:"translateX(-100%)"}})]})});CC.displayName=$g;var PC="RadioIndicator",DC=F.forwardRef((e,r)=>{const{__scopeRadio:a,forceMount:i,...u}=e,s=VV(PC,a);return $.jsx(Bg,{present:i||s.checked,children:$.jsx(un.span,{"data-state":kC(s.checked),"data-disabled":s.disabled?"":void 0,...u,ref:r})})});DC.displayName=PC;var LV="RadioBubbleInput",NC=F.forwardRef(({__scopeRadio:e,control:r,checked:a,bubbles:i=!0,...u},s)=>{const l=F.useRef(null),c=Xn(l,s),f=xC(a),h=MC(r);return F.useEffect(()=>{const m=l.current;if(!m)return;const v=window.HTMLInputElement.prototype,g=Object.getOwnPropertyDescriptor(v,"checked").set;if(f!==a&&g){const S=new Event("click",{bubbles:i});g.call(m,a),m.dispatchEvent(S)}},[f,a,i]),$.jsx(un.input,{type:"radio","aria-hidden":!0,defaultChecked:a,...u,tabIndex:-1,ref:c,style:{...u.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});NC.displayName=LV;function kC(e){return e?"checked":"unchecked"}var UV=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],mm="RadioGroup",[zV,A8]=as(mm,[OC,jC]),qC=OC(),VC=jC(),[IV,FV]=zV(mm),LC=F.forwardRef((e,r)=>{const{__scopeRadioGroup:a,name:i,defaultValue:u,value:s,required:l=!1,disabled:c=!1,orientation:f,dir:h,loop:m=!0,onValueChange:v,...y}=e,g=qC(a),S=SC(h),[_,w]=Fg({prop:s,defaultProp:u??null,onChange:v,caller:mm});return $.jsx(IV,{scope:a,name:i,required:l,disabled:c,value:_,onValueChange:w,children:$.jsx(jV,{asChild:!0,...g,orientation:f,dir:S,loop:m,children:$.jsx(un.div,{role:"radiogroup","aria-required":l,"aria-orientation":f,"data-disabled":c?"":void 0,dir:S,...y,ref:r})})})});LC.displayName=mm;var UC="RadioGroupItem",zC=F.forwardRef((e,r)=>{const{__scopeRadioGroup:a,disabled:i,...u}=e,s=FV(UC,a),l=s.disabled||i,c=qC(a),f=VC(a),h=F.useRef(null),m=Xn(r,h),v=s.value===u.value,y=F.useRef(!1);return F.useEffect(()=>{const g=_=>{UV.includes(_.key)&&(y.current=!0)},S=()=>y.current=!1;return document.addEventListener("keydown",g),document.addEventListener("keyup",S),()=>{document.removeEventListener("keydown",g),document.removeEventListener("keyup",S)}},[]),$.jsx(CV,{asChild:!0,...c,focusable:!l,active:v,children:$.jsx(CC,{disabled:l,required:s.required,checked:v,...f,...u,name:s.name,ref:m,onCheck:()=>s.onValueChange(u.value),onKeyDown:Dn(g=>{g.key==="Enter"&&g.preventDefault()}),onFocus:Dn(u.onFocus,()=>{var g;y.current&&((g=h.current)==null||g.click())})})})});zC.displayName=UC;var BV="RadioGroupIndicator",IC=F.forwardRef((e,r)=>{const{__scopeRadioGroup:a,...i}=e,u=VC(a);return $.jsx(DC,{...u,...i,ref:r})});IC.displayName=BV;var $V=LC,HV=zC,YV=IC;function hT({className:e,...r}){return $.jsx($V,{"data-slot":"radio-group",className:nr("grid gap-3",e),...r})}function dd({className:e,...r}){return $.jsx(HV,{"data-slot":"radio-group-item",className:nr("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:$.jsx(YV,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:$.jsx(a4,{className:"fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2"})})})}const GV=ns.Remesh.extern({default:{success:()=>{throw new Error('"success" not implemented.')},error:()=>{throw new Error('"error" not implemented.')},info:()=>{throw new Error('"info" not implemented.')},warning:()=>{throw new Error('"warning" not implemented.')},loading:()=>{throw new Error('"loading" not implemented.')},cancel:()=>{throw new Error('"cancel" not implemented.')}}}),FC=GV.impl({success:(e,r=4e3)=>jo.success(e,{duration:r}),error:(e,r=4e3)=>jo.error(e,{duration:r}),info:(e,r=4e3)=>jo.info(e,{duration:r}),warning:(e,r=4e3)=>jo.warning(e,{duration:r}),loading:(e,r=4e3)=>{const a=jo.loading(e,{duration:r});return setTimeout(()=>jo.dismiss(a),r),a},cancel:e=>jo.dismiss(e)}),Hg=F.createContext({});function Yg(e){const r=F.useRef(null);return r.current===null&&(r.current=e()),r.current}const Gg=typeof window<"u",BC=Gg?F.useLayoutEffect:F.useEffect,pm=F.createContext(null),Wg=F.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function $C(e){return typeof e=="object"&&e!==null}function Qg(e){return $C(e)&&"offsetHeight"in e}class WV extends F.Component{getSnapshotBeforeUpdate(r){const a=this.props.childRef.current;if(a&&r.isPresent&&!this.props.isPresent){const i=a.offsetParent,u=Qg(i)&&i.offsetWidth||0,s=this.props.sizeRef.current;s.height=a.offsetHeight||0,s.width=a.offsetWidth||0,s.top=a.offsetTop,s.left=a.offsetLeft,s.right=u-s.width-s.left}return null}componentDidUpdate(){}render(){return this.props.children}}function QV({children:e,isPresent:r,anchorX:a}){const i=F.useId(),u=F.useRef(null),s=F.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=F.useContext(Wg);return F.useInsertionEffect(()=>{const{width:c,height:f,top:h,left:m,right:v}=s.current;if(r||!u.current||!c||!f)return;const y=a==="left"?`left: ${m}`:`right: ${v}`;u.current.dataset.motionPopId=i;const g=document.createElement("style");return l&&(g.nonce=l),document.head.appendChild(g),g.sheet&&g.sheet.insertRule(`
          [data-motion-pop-id="${i}"] {
            position: absolute !important;
            width: ${c}px !important;
            height: ${f}px !important;
            ${y}px !important;
            top: ${h}px !important;
          }
        `),()=>{document.head.contains(g)&&document.head.removeChild(g)}},[r]),$.jsx(WV,{isPresent:r,childRef:u,sizeRef:s,children:F.cloneElement(e,{ref:u})})}const XV=({children:e,initial:r,isPresent:a,onExitComplete:i,custom:u,presenceAffectsLayout:s,mode:l,anchorX:c})=>{const f=Yg(KV),h=F.useId();let m=!0,v=F.useMemo(()=>(m=!1,{id:h,initial:r,isPresent:a,custom:u,onExitComplete:y=>{f.set(y,!0);for(const g of f.values())if(!g)return;i&&i()},register:y=>(f.set(y,!1),()=>f.delete(y))}),[a,f,i]);return s&&m&&(v={...v}),F.useMemo(()=>{f.forEach((y,g)=>f.set(g,!1))},[a]),F.useEffect(()=>{!a&&!f.size&&i&&i()},[a]),l==="popLayout"&&(e=$.jsx(QV,{isPresent:a,anchorX:c,children:e})),$.jsx(pm.Provider,{value:v,children:e})};function KV(){return new Map}function HC(e=!0){const r=F.useContext(pm);if(r===null)return[!0,null];const{isPresent:a,onExitComplete:i,register:u}=r,s=F.useId();F.useEffect(()=>{if(e)return u(s)},[e]);const l=F.useCallback(()=>e&&i&&i(s),[s,i,e]);return!a&&i?[!1,l]:[!0]}const Ev=e=>e.key||"";function vT(e){const r=[];return F.Children.forEach(e,a=>{F.isValidElement(a)&&r.push(a)}),r}const ZV=({children:e,custom:r,initial:a=!0,onExitComplete:i,presenceAffectsLayout:u=!0,mode:s="sync",propagate:l=!1,anchorX:c="left"})=>{const[f,h]=HC(l),m=F.useMemo(()=>vT(e),[e]),v=l&&!f?[]:m.map(Ev),y=F.useRef(!0),g=F.useRef(m),S=Yg(()=>new Map),[_,w]=F.useState(m),[E,R]=F.useState(m);BC(()=>{y.current=!1,g.current=m;for(let M=0;M<E.length;M++){const V=Ev(E[M]);v.includes(V)?S.delete(V):S.get(V)!==!0&&S.set(V,!1)}},[E,v.length,v.join("-")]);const T=[];if(m!==_){let M=[...m];for(let V=0;V<E.length;V++){const U=E[V],N=Ev(U);v.includes(N)||(M.splice(V,0,U),T.push(U))}return s==="wait"&&T.length&&(M=T),R(vT(M)),w(m),null}const{forceRender:j}=F.useContext(Hg);return $.jsx($.Fragment,{children:E.map(M=>{const V=Ev(M),U=l&&!f?!1:m===E||v.includes(V),N=()=>{if(S.has(V))S.set(V,!0);else return;let D=!0;S.forEach(J=>{J||(D=!1)}),D&&(j==null||j(),R(g.current),l&&(h==null||h()),i&&i())};return $.jsx(XV,{isPresent:U,initial:!y.current||a?void 0:!1,custom:r,presenceAffectsLayout:u,mode:s,onExitComplete:U?void 0:N,anchorX:c,children:M},V)})})},Av=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],mT={value:null};function JV(e,r){let a=new Set,i=new Set,u=!1,s=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1},f=0;function h(v){l.has(v)&&(m.schedule(v),e()),f++,v(c)}const m={schedule:(v,y=!1,g=!1)=>{const _=g&&u?a:i;return y&&l.add(v),_.has(v)||_.add(v),v},cancel:v=>{i.delete(v),l.delete(v)},process:v=>{if(c=v,u){s=!0;return}u=!0,[a,i]=[i,a],a.forEach(h),r&&mT.value&&mT.value.frameloop[r].push(f),f=0,a.clear(),u=!1,s&&(s=!1,m.process(v))}};return m}const qa={},eL=40;function YC(e,r){let a=!1,i=!0;const u={delta:0,timestamp:0,isProcessing:!1},s=()=>a=!0,l=Av.reduce((T,j)=>(T[j]=JV(s,r?j:void 0),T),{}),{setup:c,read:f,resolveKeyframes:h,preUpdate:m,update:v,preRender:y,render:g,postRender:S}=l,_=()=>{const T=qa.useManualTiming?u.timestamp:performance.now();a=!1,qa.useManualTiming||(u.delta=i?1e3/60:Math.max(Math.min(T-u.timestamp,eL),1)),u.timestamp=T,u.isProcessing=!0,c.process(u),f.process(u),h.process(u),m.process(u),v.process(u),y.process(u),g.process(u),S.process(u),u.isProcessing=!1,a&&r&&(i=!1,e(_))},w=()=>{a=!0,i=!0,u.isProcessing||e(_)};return{schedule:Av.reduce((T,j)=>{const M=l[j];return T[j]=(V,U=!1,N=!1)=>(a||w(),M.schedule(V,U,N)),T},{}),cancel:T=>{for(let j=0;j<Av.length;j++)l[Av[j]].cancel(T)},state:u,steps:l}}const bn=e=>e,{schedule:At,cancel:_i,state:lr,steps:ab}=YC(typeof requestAnimationFrame<"u"?requestAnimationFrame:bn,!0),GC=F.createContext({strict:!1}),pT={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"]},Zu={};for(const e in pT)Zu[e]={isEnabled:r=>pT[e].some(a=>!!r[a])};function tL(e){for(const r in e)Zu[r]={...Zu[r],...e[r]}}const rL=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 Gv(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rL.has(e)}let WC=e=>!Gv(e);function nL(e){e&&(WC=r=>r.startsWith("on")?!Gv(r):e(r))}try{nL(require("@emotion/is-prop-valid").default)}catch{}function aL(e,r,a){const i={};for(const u in e)u==="values"&&typeof e.values=="object"||(WC(u)||a===!0&&Gv(u)||!r&&!Gv(u)||e.draggable&&u.startsWith("onDrag"))&&(i[u]=e[u]);return i}function iL(e){if(typeof Proxy>"u")return e;const r=new Map,a=(...i)=>e(...i);return new Proxy(a,{get:(i,u)=>u==="create"?e:(r.has(u)||r.set(u,e(u)),r.get(u))})}const ym=F.createContext({});function bm(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ad(e){return typeof e=="string"||Array.isArray(e)}const Xg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Kg=["initial",...Xg];function gm(e){return bm(e.animate)||Kg.some(r=>Ad(e[r]))}function QC(e){return!!(gm(e)||e.variants)}function oL(e,r){if(gm(e)){const{initial:a,animate:i}=e;return{initial:a===!1||Ad(a)?a:void 0,animate:Ad(i)?i:void 0}}return e.inherit!==!1?r:{}}function uL(e){const{initial:r,animate:a}=oL(e,F.useContext(ym));return F.useMemo(()=>({initial:r,animate:a}),[yT(r),yT(a)])}function yT(e){return Array.isArray(e)?e.join(" "):e}const sL=Symbol.for("motionComponentSymbol");function Hu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lL(e,r,a){return F.useCallback(i=>{i&&e.onMount&&e.onMount(i),r&&(i?r.mount(i):r.unmount()),a&&(typeof a=="function"?a(i):Hu(a)&&(a.current=i))},[r])}const Zg=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),cL="framerAppearId",XC="data-"+Zg(cL),KC=F.createContext({}),{schedule:Jg}=YC(queueMicrotask,!1);function fL(e,r,a,i,u){var _,w;const{visualElement:s}=F.useContext(ym),l=F.useContext(GC),c=F.useContext(pm),f=F.useContext(Wg).reducedMotion,h=F.useRef(null);i=i||l.renderer,!h.current&&i&&(h.current=i(e,{visualState:r,parent:s,props:a,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,v=F.useContext(KC);m&&!m.projection&&u&&(m.type==="html"||m.type==="svg")&&dL(h.current,a,u,v);const y=F.useRef(!1);F.useInsertionEffect(()=>{m&&y.current&&m.update(a,c)});const g=a[XC],S=F.useRef(!!g&&!((_=window.MotionHandoffIsComplete)!=null&&_.call(window,g))&&((w=window.MotionHasOptimisedAnimation)==null?void 0:w.call(window,g)));return BC(()=>{m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),Jg.render(m.render),S.current&&m.animationState&&m.animationState.animateChanges())}),F.useEffect(()=>{m&&(!S.current&&m.animationState&&m.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var E;(E=window.MotionHandoffMarkAsComplete)==null||E.call(window,g)}),S.current=!1))}),m}function dL(e,r,a,i){const{layoutId:u,layout:s,drag:l,dragConstraints:c,layoutScroll:f,layoutRoot:h,layoutCrossfade:m}=r;e.projection=new a(e.latestValues,r["data-framer-portal-id"]?void 0:ZC(e.parent)),e.projection.setOptions({layoutId:u,layout:s,alwaysMeasureLayout:!!l||c&&Hu(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:i,crossfade:m,layoutScroll:f,layoutRoot:h})}function ZC(e){if(e)return e.options.allowProjection!==!1?e.projection:ZC(e.parent)}let e0=()=>{};function hL({preloadedFeatures:e,createVisualElement:r,useRender:a,useVisualState:i,Component:u}){e&&tL(e);function s(c,f){let h;const m={...F.useContext(Wg),...c,layoutId:vL(c)},{isStatic:v}=m,y=uL(c),g=i(c,v);if(!v&&Gg){mL();const S=pL(m);h=S.MeasureLayout,y.visualElement=fL(u,g,m,r,S.ProjectionNode)}return $.jsxs(ym.Provider,{value:y,children:[h&&y.visualElement?$.jsx(h,{visualElement:y.visualElement,...m}):null,a(u,c,lL(g,y.visualElement,f),g,v,y.visualElement)]})}s.displayName=`motion.${typeof u=="string"?u:`create(${u.displayName??u.name??""})`}`;const l=F.forwardRef(s);return l[sL]=u,l}function vL({layoutId:e}){const r=F.useContext(Hg).id;return r&&e!==void 0?r+"-"+e:e}function mL(e,r){F.useContext(GC).strict}function pL(e){const{drag:r,layout:a}=Zu;if(!r&&!a)return{};const i={...r,...a};return{MeasureLayout:r!=null&&r.isEnabled(e)||a!=null&&a.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}const JC=e=>r=>typeof r=="string"&&r.startsWith(e),t0=JC("--"),yL=JC("var(--"),r0=e=>yL(e)?bL.test(e.split("/*")[0].trim()):!1,bL=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Rd={};function gL(e){for(const r in e)Rd[r]=e[r],t0(r)&&(Rd[r].isCSSVariable=!0)}const us=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ss=new Set(us);function eP(e,{layout:r,layoutId:a}){return ss.has(e)||e.startsWith("origin")||(r||a!==void 0)&&(!!Rd[e]||e==="opacity")}const tP=(e,r)=>r&&typeof e=="number"?r.transform(e):e,Va=(e,r,a)=>a>r?r:a<e?e:a,ls={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Td={...ls,transform:e=>Va(0,1,e)},Rv={...ls,default:1},bT={...ls,transform:Math.round},Wd=e=>({test:r=>typeof r=="string"&&r.endsWith(e)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${e}`}),pi=Wd("deg"),Yn=Wd("%"),ze=Wd("px"),_L=Wd("vh"),SL=Wd("vw"),gT={...Yn,parse:e=>Yn.parse(e)/100,transform:e=>Yn.transform(e*100)},wL={rotate:pi,rotateX:pi,rotateY:pi,rotateZ:pi,scale:Rv,scaleX:Rv,scaleY:Rv,scaleZ:Rv,skew:pi,skewX:pi,skewY:pi,distance:ze,translateX:ze,translateY:ze,translateZ:ze,x:ze,y:ze,z:ze,perspective:ze,transformPerspective:ze,opacity:Td,originX:gT,originY:gT,originZ:ze},n0={borderWidth:ze,borderTopWidth:ze,borderRightWidth:ze,borderBottomWidth:ze,borderLeftWidth:ze,borderRadius:ze,radius:ze,borderTopLeftRadius:ze,borderTopRightRadius:ze,borderBottomRightRadius:ze,borderBottomLeftRadius:ze,width:ze,maxWidth:ze,height:ze,maxHeight:ze,top:ze,right:ze,bottom:ze,left:ze,padding:ze,paddingTop:ze,paddingRight:ze,paddingBottom:ze,paddingLeft:ze,margin:ze,marginTop:ze,marginRight:ze,marginBottom:ze,marginLeft:ze,backgroundPositionX:ze,backgroundPositionY:ze,...wL,zIndex:bT,fillOpacity:Td,strokeOpacity:Td,numOctaves:bT},OL={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},EL=us.length;function AL(e,r,a){let i="",u=!0;for(let s=0;s<EL;s++){const l=us[s],c=e[l];if(c===void 0)continue;let f=!0;if(typeof c=="number"?f=c===(l.startsWith("scale")?1:0):f=parseFloat(c)===0,!f||a){const h=tP(c,n0[l]);if(!f){u=!1;const m=OL[l]||l;i+=`${m}(${h}) `}a&&(r[l]=h)}}return i=i.trim(),a?i=a(r,u?"":i):u&&(i="none"),i}function a0(e,r,a){const{style:i,vars:u,transformOrigin:s}=e;let l=!1,c=!1;for(const f in r){const h=r[f];if(ss.has(f)){l=!0;continue}else if(t0(f)){u[f]=h;continue}else{const m=tP(h,n0[f]);f.startsWith("origin")?(c=!0,s[f]=m):i[f]=m}}if(r.transform||(l||a?i.transform=AL(r,e.transform,a):i.transform&&(i.transform="none")),c){const{originX:f="50%",originY:h="50%",originZ:m=0}=s;i.transformOrigin=`${f} ${h} ${m}`}}const i0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Sr=e=>!!(e&&e.getVelocity);function rP(e,r,a){for(const i in r)!Sr(r[i])&&!eP(i,a)&&(e[i]=r[i])}function RL({transformTemplate:e},r){return F.useMemo(()=>{const a=i0();return a0(a,r,e),Object.assign({},a.vars,a.style)},[r])}function TL(e,r){const a=e.style||{},i={};return rP(i,a,e),Object.assign(i,RL(e,r)),i}function ML(e,r){const a={},i=TL(e,r);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=i,a}const xL={offset:"stroke-dashoffset",array:"stroke-dasharray"},jL={offset:"strokeDashoffset",array:"strokeDasharray"};function CL(e,r,a=1,i=0,u=!0){e.pathLength=1;const s=u?xL:jL;e[s.offset]=ze.transform(-i);const l=ze.transform(r),c=ze.transform(a);e[s.array]=`${l} ${c}`}function nP(e,{attrX:r,attrY:a,attrScale:i,pathLength:u,pathSpacing:s=1,pathOffset:l=0,...c},f,h,m){if(a0(e,c,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:y}=e;v.transform&&(y.transform=v.transform,delete v.transform),(y.transform||v.transformOrigin)&&(y.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),y.transform&&(y.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete v.transformBox),r!==void 0&&(v.x=r),a!==void 0&&(v.y=a),i!==void 0&&(v.scale=i),u!==void 0&&CL(v,u,s,l,!1)}const aP=()=>({...i0(),attrs:{}}),iP=e=>typeof e=="string"&&e.toLowerCase()==="svg";function PL(e,r,a,i){const u=F.useMemo(()=>{const s=aP();return nP(s,r,iP(i),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[r]);if(e.style){const s={};rP(s,e.style,e),u.style={...s,...u.style}}return u}const DL=["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 o0(e){return typeof e!="string"||e.includes("-")?!1:!!(DL.indexOf(e)>-1||/[A-Z]/u.test(e))}function NL(e=!1){return(a,i,u,{latestValues:s},l)=>{const f=(o0(a)?PL:ML)(i,s,l,a),h=aL(i,typeof a=="string",e),m=a!==F.Fragment?{...h,...f,ref:u}:{},{children:v}=i,y=F.useMemo(()=>Sr(v)?v.get():v,[v]);return F.createElement(a,{...m,children:y})}}function _T(e){const r=[{},{}];return e==null||e.values.forEach((a,i)=>{r[0][i]=a.get(),r[1][i]=a.getVelocity()}),r}function u0(e,r,a,i){if(typeof r=="function"){const[u,s]=_T(i);r=r(a!==void 0?a:e.custom,u,s)}if(typeof r=="string"&&(r=e.variants&&e.variants[r]),typeof r=="function"){const[u,s]=_T(i);r=r(a!==void 0?a:e.custom,u,s)}return r}function Pv(e){return Sr(e)?e.get():e}function kL({scrapeMotionValuesFromProps:e,createRenderState:r},a,i,u){return{latestValues:qL(a,i,u,e),renderState:r()}}const oP=e=>(r,a)=>{const i=F.useContext(ym),u=F.useContext(pm),s=()=>kL(e,r,i,u);return a?s():Yg(s)};function qL(e,r,a,i){const u={},s=i(e,{});for(const y in s)u[y]=Pv(s[y]);let{initial:l,animate:c}=e;const f=gm(e),h=QC(e);r&&h&&!f&&e.inherit!==!1&&(l===void 0&&(l=r.initial),c===void 0&&(c=r.animate));let m=a?a.initial===!1:!1;m=m||l===!1;const v=m?c:l;if(v&&typeof v!="boolean"&&!bm(v)){const y=Array.isArray(v)?v:[v];for(let g=0;g<y.length;g++){const S=u0(e,y[g]);if(S){const{transitionEnd:_,transition:w,...E}=S;for(const R in E){let T=E[R];if(Array.isArray(T)){const j=m?T.length-1:0;T=T[j]}T!==null&&(u[R]=T)}for(const R in _)u[R]=_[R]}}}return u}function s0(e,r,a){var s;const{style:i}=e,u={};for(const l in i)(Sr(i[l])||r.style&&Sr(r.style[l])||eP(l,e)||((s=a==null?void 0:a.getValue(l))==null?void 0:s.liveStyle)!==void 0)&&(u[l]=i[l]);return u}const VL={useVisualState:oP({scrapeMotionValuesFromProps:s0,createRenderState:i0})};function uP(e,r,a){const i=s0(e,r,a);for(const u in e)if(Sr(e[u])||Sr(r[u])){const s=us.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;i[s]=e[u]}return i}const LL={useVisualState:oP({scrapeMotionValuesFromProps:uP,createRenderState:aP})};function UL(e,r){return function(i,{forwardMotionProps:u}={forwardMotionProps:!1}){const l={...o0(i)?LL:VL,preloadedFeatures:e,useRender:NL(u),createVisualElement:r,Component:i};return hL(l)}}function Md(e,r,a){const i=e.getProps();return u0(i,r,a!==void 0?a:i.custom,e)}const Cb=e=>Array.isArray(e);let Dv;function zL(){Dv=void 0}const Hr={now:()=>(Dv===void 0&&Hr.set(lr.isProcessing||qa.useManualTiming?lr.timestamp:performance.now()),Dv),set:e=>{Dv=e,queueMicrotask(zL)}};function l0(e,r){e.indexOf(r)===-1&&e.push(r)}function c0(e,r){const a=e.indexOf(r);a>-1&&e.splice(a,1)}class f0{constructor(){this.subscriptions=[]}add(r){return l0(this.subscriptions,r),()=>c0(this.subscriptions,r)}notify(r,a,i){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](r,a,i);else for(let s=0;s<u;s++){const l=this.subscriptions[s];l&&l(r,a,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function sP(e,r){return r?e*(1e3/r):0}const ST=30,IL=e=>!isNaN(parseFloat(e));class FL{constructor(r,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(i,u=!0)=>{var l,c;const s=Hr.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((l=this.events.change)==null||l.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty();u&&((c=this.events.renderRequest)==null||c.notify(this.current))},this.hasAnimated=!1,this.setCurrent(r),this.owner=a.owner}setCurrent(r){this.current=r,this.updatedAt=Hr.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=IL(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,a){this.events[r]||(this.events[r]=new f0);const i=this.events[r].add(a);return r==="change"?()=>{i(),At.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,a){this.passiveEffect=r,this.stopPassiveEffect=a}set(r,a=!0){!a||!this.passiveEffect?this.updateAndNotify(r,a):this.passiveEffect(r,this.updateAndNotify)}setWithVelocity(r,a,i){this.set(a),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-i}jump(r,a=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var r;(r=this.events.change)==null||r.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=Hr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>ST)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,ST);return sP(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(r){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=r(a),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(){var r,a;(r=this.dependents)==null||r.clear(),(a=this.events.destroy)==null||a.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ju(e,r){return new FL(e,r)}function BL(e,r,a){e.hasValue(r)?e.getValue(r).set(a):e.addValue(r,Ju(a))}function $L(e){return Cb(e)?e[e.length-1]||0:e}function HL(e,r){const a=Md(e,r);let{transitionEnd:i={},transition:u={},...s}=a||{};s={...s,...i};for(const l in s){const c=$L(s[l]);BL(e,l,c)}}function YL(e){return!!(Sr(e)&&e.add)}function Pb(e,r){const a=e.getValue("willChange");if(YL(a))return a.add(r);if(!a&&qa.WillChange){const i=new qa.WillChange("auto");e.addValue("willChange",i),i.add(r)}}function lP(e){return e.props[XC]}const GL=e=>e!==null;function WL(e,{repeat:r,repeatType:a="loop"},i){const u=e.filter(GL),s=r&&a!=="loop"&&r%2===1?0:u.length-1;return u[s]}const QL={type:"spring",stiffness:500,damping:25,restSpeed:10},XL=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),KL={type:"keyframes",duration:.8},ZL={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},JL=(e,{keyframes:r})=>r.length>2?KL:ss.has(e)?e.startsWith("scale")?XL(r[1]):QL:ZL;function e6({when:e,delay:r,delayChildren:a,staggerChildren:i,staggerDirection:u,repeat:s,repeatType:l,repeatDelay:c,from:f,elapsed:h,...m}){return!!Object.keys(m).length}function d0(e,r){return(e==null?void 0:e[r])??(e==null?void 0:e.default)??e}const Gn=e=>e*1e3,Wn=e=>e/1e3,yd=e=>Math.round(e*1e5)/1e5,h0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function t6(e){return e==null}const r6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,v0=(e,r)=>a=>!!(typeof a=="string"&&r6.test(a)&&a.startsWith(e)||r&&!t6(a)&&Object.prototype.hasOwnProperty.call(a,r)),cP=(e,r,a)=>i=>{if(typeof i!="string")return i;const[u,s,l,c]=i.match(h0);return{[e]:parseFloat(u),[r]:parseFloat(s),[a]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},n6=e=>Va(0,255,e),ib={...ls,transform:e=>Math.round(n6(e))},Vo={test:v0("rgb","red"),parse:cP("red","green","blue"),transform:({red:e,green:r,blue:a,alpha:i=1})=>"rgba("+ib.transform(e)+", "+ib.transform(r)+", "+ib.transform(a)+", "+yd(Td.transform(i))+")"};function a6(e){let r="",a="",i="",u="";return e.length>5?(r=e.substring(1,3),a=e.substring(3,5),i=e.substring(5,7),u=e.substring(7,9)):(r=e.substring(1,2),a=e.substring(2,3),i=e.substring(3,4),u=e.substring(4,5),r+=r,a+=a,i+=i,u+=u),{red:parseInt(r,16),green:parseInt(a,16),blue:parseInt(i,16),alpha:u?parseInt(u,16)/255:1}}const Db={test:v0("#"),parse:a6,transform:Vo.transform},Yu={test:v0("hsl","hue"),parse:cP("hue","saturation","lightness"),transform:({hue:e,saturation:r,lightness:a,alpha:i=1})=>"hsla("+Math.round(e)+", "+Yn.transform(yd(r))+", "+Yn.transform(yd(a))+", "+yd(Td.transform(i))+")"},gr={test:e=>Vo.test(e)||Db.test(e)||Yu.test(e),parse:e=>Vo.test(e)?Vo.parse(e):Yu.test(e)?Yu.parse(e):Db.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Vo.transform(e):Yu.transform(e)},i6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function o6(e){var r,a;return isNaN(e)&&typeof e=="string"&&(((r=e.match(h0))==null?void 0:r.length)||0)+(((a=e.match(i6))==null?void 0:a.length)||0)>0}const fP="number",dP="color",u6="var",s6="var(",wT="${}",l6=/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 xd(e){const r=e.toString(),a=[],i={color:[],number:[],var:[]},u=[];let s=0;const c=r.replace(l6,f=>(gr.test(f)?(i.color.push(s),u.push(dP),a.push(gr.parse(f))):f.startsWith(s6)?(i.var.push(s),u.push(u6),a.push(f)):(i.number.push(s),u.push(fP),a.push(parseFloat(f))),++s,wT)).split(wT);return{values:a,split:c,indexes:i,types:u}}function hP(e){return xd(e).values}function vP(e){const{split:r,types:a}=xd(e),i=r.length;return u=>{let s="";for(let l=0;l<i;l++)if(s+=r[l],u[l]!==void 0){const c=a[l];c===fP?s+=yd(u[l]):c===dP?s+=gr.transform(u[l]):s+=u[l]}return s}}const c6=e=>typeof e=="number"?0:e;function f6(e){const r=hP(e);return vP(e)(r.map(c6))}const Si={test:o6,parse:hP,createTransformer:vP,getAnimatableNone:f6};function ob(e,r,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(r-e)*6*a:a<1/2?r:a<2/3?e+(r-e)*(2/3-a)*6:e}function d6({hue:e,saturation:r,lightness:a,alpha:i}){e/=360,r/=100,a/=100;let u=0,s=0,l=0;if(!r)u=s=l=a;else{const c=a<.5?a*(1+r):a+r-a*r,f=2*a-c;u=ob(f,c,e+1/3),s=ob(f,c,e),l=ob(f,c,e-1/3)}return{red:Math.round(u*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:i}}function Wv(e,r){return a=>a>0?r:e}const Et=(e,r,a)=>e+(r-e)*a,ub=(e,r,a)=>{const i=e*e,u=a*(r*r-i)+i;return u<0?0:Math.sqrt(u)},h6=[Db,Vo,Yu],v6=e=>h6.find(r=>r.test(e));function OT(e){const r=v6(e);if(!r)return!1;let a=r.parse(e);return r===Yu&&(a=d6(a)),a}const ET=(e,r)=>{const a=OT(e),i=OT(r);if(!a||!i)return Wv(e,r);const u={...a};return s=>(u.red=ub(a.red,i.red,s),u.green=ub(a.green,i.green,s),u.blue=ub(a.blue,i.blue,s),u.alpha=Et(a.alpha,i.alpha,s),Vo.transform(u))},Nb=new Set(["none","hidden"]);function m6(e,r){return Nb.has(e)?a=>a<=0?e:r:a=>a>=1?r:e}const p6=(e,r)=>a=>r(e(a)),Qd=(...e)=>e.reduce(p6);function y6(e,r){return a=>Et(e,r,a)}function m0(e){return typeof e=="number"?y6:typeof e=="string"?r0(e)?Wv:gr.test(e)?ET:_6:Array.isArray(e)?mP:typeof e=="object"?gr.test(e)?ET:b6:Wv}function mP(e,r){const a=[...e],i=a.length,u=e.map((s,l)=>m0(s)(s,r[l]));return s=>{for(let l=0;l<i;l++)a[l]=u[l](s);return a}}function b6(e,r){const a={...e,...r},i={};for(const u in a)e[u]!==void 0&&r[u]!==void 0&&(i[u]=m0(e[u])(e[u],r[u]));return u=>{for(const s in i)a[s]=i[s](u);return a}}function g6(e,r){const a=[],i={color:0,var:0,number:0};for(let u=0;u<r.values.length;u++){const s=r.types[u],l=e.indexes[s][i[s]],c=e.values[l]??0;a[u]=c,i[s]++}return a}const _6=(e,r)=>{const a=Si.createTransformer(r),i=xd(e),u=xd(r);return i.indexes.var.length===u.indexes.var.length&&i.indexes.color.length===u.indexes.color.length&&i.indexes.number.length>=u.indexes.number.length?Nb.has(e)&&!u.values.length||Nb.has(r)&&!i.values.length?m6(e,r):Qd(mP(g6(i,u),u.values),a):Wv(e,r)};function pP(e,r,a){return typeof e=="number"&&typeof r=="number"&&typeof a=="number"?Et(e,r,a):m0(e)(e,r)}const S6=e=>{const r=({timestamp:a})=>e(a);return{start:(a=!0)=>At.update(r,a),stop:()=>_i(r),now:()=>lr.isProcessing?lr.timestamp:Hr.now()}},yP=(e,r,a=10)=>{let i="";const u=Math.max(Math.round(r/a),2);for(let s=0;s<u;s++)i+=e(s/(u-1))+", ";return`linear(${i.substring(0,i.length-2)})`},Qv=2e4;function p0(e){let r=0;const a=50;let i=e.next(r);for(;!i.done&&r<Qv;)r+=a,i=e.next(r);return r>=Qv?1/0:r}function w6(e,r=100,a){const i=a({...e,keyframes:[0,r]}),u=Math.min(p0(i),Qv);return{type:"keyframes",ease:s=>i.next(u*s).value/r,duration:Wn(u)}}const O6=5;function bP(e,r,a){const i=Math.max(r-O6,0);return sP(a-e(i),r-i)}const Pt={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},AT=.001;function E6({duration:e=Pt.duration,bounce:r=Pt.bounce,velocity:a=Pt.velocity,mass:i=Pt.mass}){let u,s,l=1-r;l=Va(Pt.minDamping,Pt.maxDamping,l),e=Va(Pt.minDuration,Pt.maxDuration,Wn(e)),l<1?(u=h=>{const m=h*l,v=m*e,y=m-a,g=kb(h,l),S=Math.exp(-v);return AT-y/g*S},s=h=>{const v=h*l*e,y=v*a+a,g=Math.pow(l,2)*Math.pow(h,2)*e,S=Math.exp(-v),_=kb(Math.pow(h,2),l);return(-u(h)+AT>0?-1:1)*((y-g)*S)/_}):(u=h=>{const m=Math.exp(-h*e),v=(h-a)*e+1;return-.001+m*v},s=h=>{const m=Math.exp(-h*e),v=(a-h)*(e*e);return m*v});const c=5/e,f=R6(u,s,c);if(e=Gn(e),isNaN(f))return{stiffness:Pt.stiffness,damping:Pt.damping,duration:e};{const h=Math.pow(f,2)*i;return{stiffness:h,damping:l*2*Math.sqrt(i*h),duration:e}}}const A6=12;function R6(e,r,a){let i=a;for(let u=1;u<A6;u++)i=i-e(i)/r(i);return i}function kb(e,r){return e*Math.sqrt(1-r*r)}const T6=["duration","bounce"],M6=["stiffness","damping","mass"];function RT(e,r){return r.some(a=>e[a]!==void 0)}function x6(e){let r={velocity:Pt.velocity,stiffness:Pt.stiffness,damping:Pt.damping,mass:Pt.mass,isResolvedFromDuration:!1,...e};if(!RT(e,M6)&&RT(e,T6))if(e.visualDuration){const a=e.visualDuration,i=2*Math.PI/(a*1.2),u=i*i,s=2*Va(.05,1,1-(e.bounce||0))*Math.sqrt(u);r={...r,mass:Pt.mass,stiffness:u,damping:s}}else{const a=E6(e);r={...r,...a,mass:Pt.mass},r.isResolvedFromDuration=!0}return r}function Xv(e=Pt.visualDuration,r=Pt.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:r}:e;let{restSpeed:i,restDelta:u}=a;const s=a.keyframes[0],l=a.keyframes[a.keyframes.length-1],c={done:!1,value:s},{stiffness:f,damping:h,mass:m,duration:v,velocity:y,isResolvedFromDuration:g}=x6({...a,velocity:-Wn(a.velocity||0)}),S=y||0,_=h/(2*Math.sqrt(f*m)),w=l-s,E=Wn(Math.sqrt(f/m)),R=Math.abs(w)<5;i||(i=R?Pt.restSpeed.granular:Pt.restSpeed.default),u||(u=R?Pt.restDelta.granular:Pt.restDelta.default);let T;if(_<1){const M=kb(E,_);T=V=>{const U=Math.exp(-_*E*V);return l-U*((S+_*E*w)/M*Math.sin(M*V)+w*Math.cos(M*V))}}else if(_===1)T=M=>l-Math.exp(-E*M)*(w+(S+E*w)*M);else{const M=E*Math.sqrt(_*_-1);T=V=>{const U=Math.exp(-_*E*V),N=Math.min(M*V,300);return l-U*((S+_*E*w)*Math.sinh(N)+M*w*Math.cosh(N))/M}}const j={calculatedDuration:g&&v||null,next:M=>{const V=T(M);if(g)c.done=M>=v;else{let U=M===0?S:0;_<1&&(U=M===0?Gn(S):bP(T,M,V));const N=Math.abs(U)<=i,D=Math.abs(l-V)<=u;c.done=N&&D}return c.value=c.done?l:V,c},toString:()=>{const M=Math.min(p0(j),Qv),V=yP(U=>j.next(M*U).value,M,30);return M+"ms "+V},toTransition:()=>{}};return j}Xv.applyToOptions=e=>{const r=w6(e,100,Xv);return e.ease=r.ease,e.duration=Gn(r.duration),e.type="keyframes",e};function qb({keyframes:e,velocity:r=0,power:a=.8,timeConstant:i=325,bounceDamping:u=10,bounceStiffness:s=500,modifyTarget:l,min:c,max:f,restDelta:h=.5,restSpeed:m}){const v=e[0],y={done:!1,value:v},g=N=>c!==void 0&&N<c||f!==void 0&&N>f,S=N=>c===void 0?f:f===void 0||Math.abs(c-N)<Math.abs(f-N)?c:f;let _=a*r;const w=v+_,E=l===void 0?w:l(w);E!==w&&(_=E-v);const R=N=>-_*Math.exp(-N/i),T=N=>E+R(N),j=N=>{const D=R(N),J=T(N);y.done=Math.abs(D)<=h,y.value=y.done?E:J};let M,V;const U=N=>{g(y.value)&&(M=N,V=Xv({keyframes:[y.value,S(y.value)],velocity:bP(T,N,y.value),damping:u,stiffness:s,restDelta:h,restSpeed:m}))};return U(0),{calculatedDuration:null,next:N=>{let D=!1;return!V&&M===void 0&&(D=!0,j(N),U(N)),M!==void 0&&N>=M?V.next(N-M):(!D&&j(N),y)}}}const jd=(e,r,a)=>{const i=r-e;return i===0?1:(a-e)/i};function j6(e,r,a){const i=[],u=a||qa.mix||pP,s=e.length-1;for(let l=0;l<s;l++){let c=u(e[l],e[l+1]);if(r){const f=Array.isArray(r)?r[l]||bn:r;c=Qd(f,c)}i.push(c)}return i}function C6(e,r,{clamp:a=!0,ease:i,mixer:u}={}){const s=e.length;if(e0(s===r.length),s===1)return()=>r[0];if(s===2&&r[0]===r[1])return()=>r[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),r=[...r].reverse());const c=j6(r,i,u),f=c.length,h=m=>{if(l&&m<e[0])return r[0];let v=0;if(f>1)for(;v<e.length-2&&!(m<e[v+1]);v++);const y=jd(e[v],e[v+1],m);return c[v](y)};return a?m=>h(Va(e[0],e[s-1],m)):h}function P6(e,r){const a=e[e.length-1];for(let i=1;i<=r;i++){const u=jd(0,r,i);e.push(Et(a,1,u))}}function D6(e){const r=[0];return P6(r,e.length-1),r}function N6(e,r){return e.map(a=>a*r)}const gP=(e,r,a)=>(((1-3*a+3*r)*e+(3*a-6*r))*e+3*r)*e,k6=1e-7,q6=12;function V6(e,r,a,i,u){let s,l,c=0;do l=r+(a-r)/2,s=gP(l,i,u)-e,s>0?a=l:r=l;while(Math.abs(s)>k6&&++c<q6);return l}function Xd(e,r,a,i){if(e===r&&a===i)return bn;const u=s=>V6(s,0,1,e,a);return s=>s===0||s===1?s:gP(u(s),r,i)}const L6=Xd(.42,0,1,1),U6=Xd(0,0,.58,1),_P=Xd(.42,0,.58,1),z6=e=>Array.isArray(e)&&typeof e[0]!="number",SP=e=>r=>r<=.5?e(2*r)/2:(2-e(2*(1-r)))/2,wP=e=>r=>1-e(1-r),OP=Xd(.33,1.53,.69,.99),y0=wP(OP),EP=SP(y0),AP=e=>(e*=2)<1?.5*y0(e):.5*(2-Math.pow(2,-10*(e-1))),b0=e=>1-Math.sin(Math.acos(e)),RP=wP(b0),TP=SP(b0),MP=e=>Array.isArray(e)&&typeof e[0]=="number",I6={linear:bn,easeIn:L6,easeInOut:_P,easeOut:U6,circIn:b0,circInOut:TP,circOut:RP,backIn:y0,backInOut:EP,backOut:OP,anticipate:AP},F6=e=>typeof e=="string",TT=e=>{if(MP(e)){e0(e.length===4);const[r,a,i,u]=e;return Xd(r,a,i,u)}else if(F6(e))return I6[e];return e};function B6(e,r){return e.map(()=>r||_P).splice(0,e.length-1)}function bd({duration:e=300,keyframes:r,times:a,ease:i="easeInOut"}){const u=z6(i)?i.map(TT):TT(i),s={done:!1,value:r[0]},l=N6(a&&a.length===r.length?a:D6(r),e),c=C6(l,r,{ease:Array.isArray(u)?u:B6(r,u)});return{calculatedDuration:e,next:f=>(s.value=c(f),s.done=f>=e,s)}}const $6=e=>e!==null;function g0(e,{repeat:r,repeatType:a="loop"},i,u=1){const s=e.filter($6),c=u<0||r&&a!=="loop"&&r%2===1?0:s.length-1;return!c||i===void 0?s[c]:i}const H6={decay:qb,inertia:qb,tween:bd,keyframes:bd,spring:Xv};function xP(e){typeof e.type=="string"&&(e.type=H6[e.type])}class _0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,a){return this.finished.then(r,a)}}const Y6=e=>e/100;class S0 extends _0{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=(a=!0)=>{var i,u;if(a){const{motionValue:s}=this.options;s&&s.updatedAt!==Hr.now()&&this.tick(Hr.now())}this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(u=(i=this.options).onStop)==null||u.call(i))},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;xP(r);const{type:a=bd,repeat:i=0,repeatDelay:u=0,repeatType:s,velocity:l=0}=r;let{keyframes:c}=r;const f=a||bd;f!==bd&&typeof c[0]!="number"&&(this.mixKeyframes=Qd(Y6,pP(c[0],c[1])),c=[0,100]);const h=f({...r,keyframes:c});s==="mirror"&&(this.mirroredGenerator=f({...r,keyframes:[...c].reverse(),velocity:-l})),h.calculatedDuration===null&&(h.calculatedDuration=p0(h));const{calculatedDuration:m}=h;this.calculatedDuration=m,this.resolvedDuration=m+u,this.totalDuration=this.resolvedDuration*(i+1)-u,this.generator=h}updateTime(r){const a=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(r,a=!1){const{generator:i,totalDuration:u,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return i.next(0);const{delay:h=0,keyframes:m,repeat:v,repeatType:y,repeatDelay:g,type:S,onUpdate:_,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-u/this.speed,this.startTime)),a?this.currentTime=r:this.updateTime(r);const E=this.currentTime-h*(this.playbackSpeed>=0?1:-1),R=this.playbackSpeed>=0?E<0:E>u;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let T=this.currentTime,j=i;if(v){const N=Math.min(this.currentTime,u)/c;let D=Math.floor(N),J=N%1;!J&&N>=1&&(J=1),J===1&&D--,D=Math.min(D,v+1),!!(D%2)&&(y==="reverse"?(J=1-J,g&&(J-=g/c)):y==="mirror"&&(j=l)),T=Va(0,1,J)*c}const M=R?{done:!1,value:m[0]}:j.next(T);s&&(M.value=s(M.value));let{done:V}=M;!R&&f!==null&&(V=this.playbackSpeed>=0?this.currentTime>=u:this.currentTime<=0);const U=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return U&&S!==qb&&(M.value=g0(m,this.options,w,this.speed)),_&&_(M.value),U&&this.finish(),M}then(r,a){return this.finished.then(r,a)}get duration(){return Wn(this.calculatedDuration)}get time(){return Wn(this.currentTime)}set time(r){var a;r=Gn(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),(a=this.driver)==null||a.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(Hr.now());const a=this.playbackSpeed!==r;this.playbackSpeed=r,a&&(this.time=Wn(this.currentTime))}play(){var u,s;if(this.isStopped)return;const{driver:r=S6,startTime:a}=this.options;this.driver||(this.driver=r(l=>this.tick(l))),(s=(u=this.options).onPlay)==null||s.call(u);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=a??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Hr.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var r,a;this.notifyFinished(),this.teardown(),this.state="finished",(a=(r=this.options).onComplete)==null||a.call(r)}cancel(){var r,a;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(a=(r=this.options).onCancel)==null||a.call(r)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){var a;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(a=this.driver)==null||a.stop(),r.observe(this)}}function G6(e){for(let r=1;r<e.length;r++)e[r]??(e[r]=e[r-1])}const Lo=e=>e*180/Math.PI,Vb=e=>{const r=Lo(Math.atan2(e[1],e[0]));return Lb(r)},W6={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vb,rotateZ:Vb,skewX:e=>Lo(Math.atan(e[1])),skewY:e=>Lo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Lb=e=>(e=e%360,e<0&&(e+=360),e),MT=Vb,xT=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),jT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Q6={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:xT,scaleY:jT,scale:e=>(xT(e)+jT(e))/2,rotateX:e=>Lb(Lo(Math.atan2(e[6],e[5]))),rotateY:e=>Lb(Lo(Math.atan2(-e[2],e[0]))),rotateZ:MT,rotate:MT,skewX:e=>Lo(Math.atan(e[4])),skewY:e=>Lo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ub(e){return e.includes("scale")?1:0}function zb(e,r){if(!e||e==="none")return Ub(r);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,u;if(a)i=Q6,u=a;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=W6,u=c}if(!u)return Ub(r);const s=i[r],l=u[1].split(",").map(K6);return typeof s=="function"?s(l):l[s]}const X6=(e,r)=>{const{transform:a="none"}=getComputedStyle(e);return zb(a,r)};function K6(e){return parseFloat(e.trim())}const CT=e=>e===ls||e===ze,Z6=new Set(["x","y","z"]),J6=us.filter(e=>!Z6.has(e));function eU(e){const r=[];return J6.forEach(a=>{const i=e.getValue(a);i!==void 0&&(r.push([a,i.get()]),i.set(a.startsWith("scale")?1:0))}),r}const zo={width:({x:e},{paddingLeft:r="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(r)-parseFloat(a),height:({y:e},{paddingTop:r="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(r)-parseFloat(a),top:(e,{top:r})=>parseFloat(r),left:(e,{left:r})=>parseFloat(r),bottom:({y:e},{top:r})=>parseFloat(r)+(e.max-e.min),right:({x:e},{left:r})=>parseFloat(r)+(e.max-e.min),x:(e,{transform:r})=>zb(r,"x"),y:(e,{transform:r})=>zb(r,"y")};zo.translateX=zo.x;zo.translateY=zo.y;const Io=new Set;let Ib=!1,Fb=!1,Bb=!1;function jP(){if(Fb){const e=Array.from(Io).filter(i=>i.needsMeasurement),r=new Set(e.map(i=>i.element)),a=new Map;r.forEach(i=>{const u=eU(i);u.length&&(a.set(i,u),i.render())}),e.forEach(i=>i.measureInitialState()),r.forEach(i=>{i.render();const u=a.get(i);u&&u.forEach(([s,l])=>{var c;(c=i.getValue(s))==null||c.set(l)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}Fb=!1,Ib=!1,Io.forEach(e=>e.complete(Bb)),Io.clear()}function CP(){Io.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Fb=!0)})}function tU(){Bb=!0,CP(),jP(),Bb=!1}class w0{constructor(r,a,i,u,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=a,this.name=i,this.motionValue=u,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Io.add(this),Ib||(Ib=!0,At.read(CP),At.resolveKeyframes(jP))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:a,element:i,motionValue:u}=this;if(r[0]===null){const s=u==null?void 0:u.get(),l=r[r.length-1];if(s!==void 0)r[0]=s;else if(i&&a){const c=i.readValue(a,l);c!=null&&(r[0]=c)}r[0]===void 0&&(r[0]=l),u&&s===void 0&&u.set(r[0])}G6(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),Io.delete(this)}cancel(){this.state==="scheduled"&&(Io.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const rU=e=>e.startsWith("--");function nU(e,r,a){rU(r)?e.style.setProperty(r,a):e.style[r]=a}function O0(e){let r;return()=>(r===void 0&&(r=e()),r)}const aU=O0(()=>window.ScrollTimeline!==void 0),iU={};function oU(e,r){const a=O0(e);return()=>iU[r]??a()}const PP=oU(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),vd=([e,r,a,i])=>`cubic-bezier(${e}, ${r}, ${a}, ${i})`,PT={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vd([0,.65,.55,1]),circOut:vd([.55,0,1,.45]),backIn:vd([.31,.01,.66,-.59]),backOut:vd([.33,1.53,.69,.99])};function DP(e,r){if(e)return typeof e=="function"?PP()?yP(e,r):"ease-out":MP(e)?vd(e):Array.isArray(e)?e.map(a=>DP(a,r)||PT.easeOut):PT[e]}function uU(e,r,a,{delay:i=0,duration:u=300,repeat:s=0,repeatType:l="loop",ease:c="easeOut",times:f}={},h=void 0){const m={[r]:a};f&&(m.offset=f);const v=DP(c,u);Array.isArray(v)&&(m.easing=v);const y={delay:i,duration:u,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return h&&(y.pseudoElement=h),e.animate(m,y)}function NP(e){return typeof e=="function"&&"applyToOptions"in e}function sU({type:e,...r}){return NP(e)&&PP()?e.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class lU extends _0{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,!r)return;const{element:a,name:i,keyframes:u,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:c,onComplete:f}=r;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=r,e0(typeof r.type!="string");const h=sU(r);this.animation=uU(a,i,u,h,s),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const m=g0(u,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(m):nU(a,i,m),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var r,a;(a=(r=this.animation).finish)==null||a.call(r)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var r,a;this.isPseudoElement||(a=(r=this.animation).commitStyles)==null||a.call(r)}get duration(){var a,i;const r=((i=(a=this.animation.effect)==null?void 0:a.getComputedTiming)==null?void 0:i.call(a).duration)||0;return Wn(Number(r))}get time(){return Wn(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=Gn(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(r){this.animation.startTime=r}attachTimeline({timeline:r,observe:a}){var i;return this.allowFlatten&&((i=this.animation.effect)==null||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,r&&aU()?(this.animation.timeline=r,bn):a(this)}}const kP={anticipate:AP,backInOut:EP,circInOut:TP};function cU(e){return e in kP}function fU(e){typeof e.ease=="string"&&cU(e.ease)&&(e.ease=kP[e.ease])}const DT=10;class dU extends lU{constructor(r){fU(r),xP(r),super(r),r.startTime&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:a,onUpdate:i,onComplete:u,element:s,...l}=this.options;if(!a)return;if(r!==void 0){a.set(r);return}const c=new S0({...l,autoplay:!1}),f=Gn(this.finishedTime??this.time);a.setWithVelocity(c.sample(f-DT).value,c.sample(f).value,DT),c.stop()}}const NT=(e,r)=>r==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Si.test(e)||e==="0")&&!e.startsWith("url("));function hU(e){const r=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==r)return!0}function vU(e,r,a,i){const u=e[0];if(u===null)return!1;if(r==="display"||r==="visibility")return!0;const s=e[e.length-1],l=NT(u,r),c=NT(s,r);return!l||!c?!1:hU(e)||(a==="spring"||NP(a))&&i}const mU=new Set(["opacity","clipPath","filter","transform"]),pU=O0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function yU(e){var h;const{motionValue:r,name:a,repeatDelay:i,repeatType:u,damping:s,type:l}=e;if(!Qg((h=r==null?void 0:r.owner)==null?void 0:h.current))return!1;const{onUpdate:c,transformTemplate:f}=r.owner.getProps();return pU()&&a&&mU.has(a)&&(a!=="transform"||!f)&&!c&&!i&&u!=="mirror"&&s!==0&&l!=="inertia"}const bU=40;class gU extends _0{constructor({autoplay:r=!0,delay:a=0,type:i="keyframes",repeat:u=0,repeatDelay:s=0,repeatType:l="loop",keyframes:c,name:f,motionValue:h,element:m,...v}){var S;super(),this.stop=()=>{var _,w;this._animation&&(this._animation.stop(),(_=this.stopTimeline)==null||_.call(this)),(w=this.keyframeResolver)==null||w.cancel()},this.createdAt=Hr.now();const y={autoplay:r,delay:a,type:i,repeat:u,repeatDelay:s,repeatType:l,name:f,motionValue:h,element:m,...v},g=(m==null?void 0:m.KeyframeResolver)||w0;this.keyframeResolver=new g(c,(_,w,E)=>this.onKeyframesResolved(_,w,y,!E),f,h,m),(S=this.keyframeResolver)==null||S.scheduleResolve()}onKeyframesResolved(r,a,i,u){this.keyframeResolver=void 0;const{name:s,type:l,velocity:c,delay:f,isHandoff:h,onUpdate:m}=i;this.resolvedAt=Hr.now(),vU(r,s,l,c)||((qa.instantAnimations||!f)&&(m==null||m(g0(r,i,a))),r[0]=r[r.length-1],i.duration=0,i.repeat=0);const y={startTime:u?this.resolvedAt?this.resolvedAt-this.createdAt>bU?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...i,keyframes:r},g=!h&&yU(y)?new dU({...y,element:y.motionValue.owner.current}):new S0(y);g.finished.then(()=>this.notifyFinished()).catch(bn),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(r,a){return this.finished.finally(r).then(()=>{})}get animation(){var r;return this._animation||((r=this.keyframeResolver)==null||r.resume(),tU()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var r;this._animation&&this.animation.cancel(),(r=this.keyframeResolver)==null||r.cancel()}}const E0=(e,r,a,i={},u,s)=>l=>{const c=d0(i,e)||{},f=c.delay||i.delay||0;let{elapsed:h=0}=i;h=h-Gn(f);const m={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:r.getVelocity(),...c,delay:-h,onUpdate:y=>{r.set(y),c.onUpdate&&c.onUpdate(y)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:r,element:s?void 0:u};e6(c)||Object.assign(m,JL(e,m)),m.duration&&(m.duration=Gn(m.duration)),m.repeatDelay&&(m.repeatDelay=Gn(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let v=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(v=!0)),(qa.instantAnimations||qa.skipAnimations)&&(v=!0,m.duration=0,m.delay=0),m.allowFlatten=!c.type&&!c.ease,v&&!s&&r.get()!==void 0){const y=WL(m.keyframes,c);if(y!==void 0){At.update(()=>{m.onUpdate(y),m.onComplete()});return}}return c.isSync?new S0(m):new gU(m)},qP=new Set(["width","height","top","left","right","bottom",...us]);function _U({protectedKeys:e,needsAnimating:r},a){const i=e.hasOwnProperty(a)&&r[a]!==!0;return r[a]=!1,i}function VP(e,r,{delay:a=0,transitionOverride:i,type:u}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:l,...c}=r;i&&(s=i);const f=[],h=u&&e.animationState&&e.animationState.getState()[u];for(const m in c){const v=e.getValue(m,e.latestValues[m]??null),y=c[m];if(y===void 0||h&&_U(h,m))continue;const g={delay:a,...d0(s||{},m)},S=v.get();if(S!==void 0&&!v.isAnimating&&!Array.isArray(y)&&y===S&&!g.velocity)continue;let _=!1;if(window.MotionHandoffAnimation){const E=lP(e);if(E){const R=window.MotionHandoffAnimation(E,m,At);R!==null&&(g.startTime=R,_=!0)}}Pb(e,m),v.start(E0(m,v,y,e.shouldReduceMotion&&qP.has(m)?{type:!1}:g,e,_));const w=v.animation;w&&f.push(w)}return l&&Promise.all(f).then(()=>{At.update(()=>{l&&HL(e,l)})}),f}function $b(e,r,a={}){var f;const i=Md(e,r,a.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:u=e.getDefaultTransition()||{}}=i||{};a.transitionOverride&&(u=a.transitionOverride);const s=i?()=>Promise.all(VP(e,i,a)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:v,staggerDirection:y}=u;return SU(e,r,m+h,v,y,a)}:()=>Promise.resolve(),{when:c}=u;if(c){const[h,m]=c==="beforeChildren"?[s,l]:[l,s];return h().then(()=>m())}else return Promise.all([s(),l(a.delay)])}function SU(e,r,a=0,i=0,u=1,s){const l=[],c=(e.variantChildren.size-1)*i,f=u===1?(h=0)=>h*i:(h=0)=>c-h*i;return Array.from(e.variantChildren).sort(wU).forEach((h,m)=>{h.notify("AnimationStart",r),l.push($b(h,r,{...s,delay:a+f(m)}).then(()=>h.notify("AnimationComplete",r)))}),Promise.all(l)}function wU(e,r){return e.sortNodePosition(r)}function OU(e,r,a={}){e.notify("AnimationStart",r);let i;if(Array.isArray(r)){const u=r.map(s=>$b(e,s,a));i=Promise.all(u)}else if(typeof r=="string")i=$b(e,r,a);else{const u=typeof r=="function"?Md(e,r,a.custom):r;i=Promise.all(VP(e,u,a))}return i.then(()=>{e.notify("AnimationComplete",r)})}function LP(e,r){if(!Array.isArray(r))return!1;const a=r.length;if(a!==e.length)return!1;for(let i=0;i<a;i++)if(r[i]!==e[i])return!1;return!0}const EU=Kg.length;function UP(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?UP(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const r={};for(let a=0;a<EU;a++){const i=Kg[a],u=e.props[i];(Ad(u)||u===!1)&&(r[i]=u)}return r}const AU=[...Xg].reverse(),RU=Xg.length;function TU(e){return r=>Promise.all(r.map(({animation:a,options:i})=>OU(e,a,i)))}function MU(e){let r=TU(e),a=kT(),i=!0;const u=f=>(h,m)=>{var y;const v=Md(e,m,f==="exit"?(y=e.presenceContext)==null?void 0:y.custom:void 0);if(v){const{transition:g,transitionEnd:S,..._}=v;h={...h,..._,...S}}return h};function s(f){r=f(e)}function l(f){const{props:h}=e,m=UP(e.parent)||{},v=[],y=new Set;let g={},S=1/0;for(let w=0;w<RU;w++){const E=AU[w],R=a[E],T=h[E]!==void 0?h[E]:m[E],j=Ad(T),M=E===f?R.isActive:null;M===!1&&(S=w);let V=T===m[E]&&T!==h[E]&&j;if(V&&i&&e.manuallyAnimateOnMount&&(V=!1),R.protectedKeys={...g},!R.isActive&&M===null||!T&&!R.prevProp||bm(T)||typeof T=="boolean")continue;const U=xU(R.prevProp,T);let N=U||E===f&&R.isActive&&!V&&j||w>S&&j,D=!1;const J=Array.isArray(T)?T:[T];let le=J.reduce(u(E),{});M===!1&&(le={});const{prevResolvedValues:I={}}=R,oe={...I,...le},de=te=>{N=!0,y.has(te)&&(D=!0,y.delete(te)),R.needsAnimating[te]=!0;const ae=e.getValue(te);ae&&(ae.liveStyle=!1)};for(const te in oe){const ae=le[te],xe=I[te];if(g.hasOwnProperty(te))continue;let k=!1;Cb(ae)&&Cb(xe)?k=!LP(ae,xe):k=ae!==xe,k?ae!=null?de(te):y.add(te):ae!==void 0&&y.has(te)?de(te):R.protectedKeys[te]=!0}R.prevProp=T,R.prevResolvedValues=le,R.isActive&&(g={...g,...le}),i&&e.blockInitialAnimation&&(N=!1),N&&(!(V&&U)||D)&&v.push(...J.map(te=>({animation:te,options:{type:E}})))}if(y.size){const w={};if(typeof h.initial!="boolean"){const E=Md(e,Array.isArray(h.initial)?h.initial[0]:h.initial);E&&E.transition&&(w.transition=E.transition)}y.forEach(E=>{const R=e.getBaseTarget(E),T=e.getValue(E);T&&(T.liveStyle=!0),w[E]=R??null}),v.push({animation:w})}let _=!!v.length;return i&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(_=!1),i=!1,_?r(v):Promise.resolve()}function c(f,h){var v;if(a[f].isActive===h)return Promise.resolve();(v=e.variantChildren)==null||v.forEach(y=>{var g;return(g=y.animationState)==null?void 0:g.setActive(f,h)}),a[f].isActive=h;const m=l(f);for(const y in a)a[y].protectedKeys={};return m}return{animateChanges:l,setActive:c,setAnimateFunction:s,getState:()=>a,reset:()=>{a=kT(),i=!0}}}function xU(e,r){return typeof r=="string"?r!==e:Array.isArray(r)?!LP(r,e):!1}function Po(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function kT(){return{animate:Po(!0),whileInView:Po(),whileHover:Po(),whileTap:Po(),whileDrag:Po(),whileFocus:Po(),exit:Po()}}class Ti{constructor(r){this.isMounted=!1,this.node=r}update(){}}class jU extends Ti{constructor(r){super(r),r.animationState||(r.animationState=MU(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();bm(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:a}=this.node.prevProps||{};r!==a&&this.updateAnimationControlsSubscription()}unmount(){var r;this.node.animationState.reset(),(r=this.unmountControls)==null||r.call(this)}}let CU=0;class PU extends Ti{constructor(){super(...arguments),this.id=CU++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:a}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===i)return;const u=this.node.animationState.setActive("exit",!r);a&&!r&&u.then(()=>{a(this.id)})}mount(){const{register:r,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const DU={animation:{Feature:jU},exit:{Feature:PU}};function Cd(e,r,a,i={passive:!0}){return e.addEventListener(r,a,i),()=>e.removeEventListener(r,a)}const A0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Kd(e){return{point:{x:e.pageX,y:e.pageY}}}const NU=e=>r=>A0(r)&&e(r,Kd(r));function gd(e,r,a,i){return Cd(e,r,NU(a),i)}function zP({top:e,left:r,right:a,bottom:i}){return{x:{min:r,max:a},y:{min:e,max:i}}}function kU({x:e,y:r}){return{top:r.min,right:e.max,bottom:r.max,left:e.min}}function qU(e,r){if(!r)return e;const a=r({x:e.left,y:e.top}),i=r({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:i.y,right:i.x}}const IP=1e-4,VU=1-IP,LU=1+IP,FP=.01,UU=0-FP,zU=0+FP;function Dr(e){return e.max-e.min}function IU(e,r,a){return Math.abs(e-r)<=a}function qT(e,r,a,i=.5){e.origin=i,e.originPoint=Et(r.min,r.max,e.origin),e.scale=Dr(a)/Dr(r),e.translate=Et(a.min,a.max,e.origin)-e.originPoint,(e.scale>=VU&&e.scale<=LU||isNaN(e.scale))&&(e.scale=1),(e.translate>=UU&&e.translate<=zU||isNaN(e.translate))&&(e.translate=0)}function _d(e,r,a,i){qT(e.x,r.x,a.x,i?i.originX:void 0),qT(e.y,r.y,a.y,i?i.originY:void 0)}function VT(e,r,a){e.min=a.min+r.min,e.max=e.min+Dr(r)}function FU(e,r,a){VT(e.x,r.x,a.x),VT(e.y,r.y,a.y)}function LT(e,r,a){e.min=r.min-a.min,e.max=e.min+Dr(r)}function Sd(e,r,a){LT(e.x,r.x,a.x),LT(e.y,r.y,a.y)}const UT=()=>({translate:0,scale:1,origin:0,originPoint:0}),Gu=()=>({x:UT(),y:UT()}),zT=()=>({min:0,max:0}),kt=()=>({x:zT(),y:zT()});function yn(e){return[e("x"),e("y")]}function sb(e){return e===void 0||e===1}function Hb({scale:e,scaleX:r,scaleY:a}){return!sb(e)||!sb(r)||!sb(a)}function No(e){return Hb(e)||BP(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function BP(e){return IT(e.x)||IT(e.y)}function IT(e){return e&&e!=="0%"}function Kv(e,r,a){const i=e-a,u=r*i;return a+u}function FT(e,r,a,i,u){return u!==void 0&&(e=Kv(e,u,i)),Kv(e,a,i)+r}function Yb(e,r=0,a=1,i,u){e.min=FT(e.min,r,a,i,u),e.max=FT(e.max,r,a,i,u)}function $P(e,{x:r,y:a}){Yb(e.x,r.translate,r.scale,r.originPoint),Yb(e.y,a.translate,a.scale,a.originPoint)}const BT=.999999999999,$T=1.0000000000001;function BU(e,r,a,i=!1){const u=a.length;if(!u)return;r.x=r.y=1;let s,l;for(let c=0;c<u;c++){s=a[c],l=s.projectionDelta;const{visualElement:f}=s.options;f&&f.props.style&&f.props.style.display==="contents"||(i&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Qu(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(r.x*=l.x.scale,r.y*=l.y.scale,$P(e,l)),i&&No(s.latestValues)&&Qu(e,s.latestValues))}r.x<$T&&r.x>BT&&(r.x=1),r.y<$T&&r.y>BT&&(r.y=1)}function Wu(e,r){e.min=e.min+r,e.max=e.max+r}function HT(e,r,a,i,u=.5){const s=Et(e.min,e.max,u);Yb(e,r,a,s,i)}function Qu(e,r){HT(e.x,r.x,r.scaleX,r.scale,r.originX),HT(e.y,r.y,r.scaleY,r.scale,r.originY)}function HP(e,r){return zP(qU(e.getBoundingClientRect(),r))}function $U(e,r,a){const i=HP(e,a),{scroll:u}=r;return u&&(Wu(i.x,u.offset.x),Wu(i.y,u.offset.y)),i}const YP=({current:e})=>e?e.ownerDocument.defaultView:null,YT=(e,r)=>Math.abs(e-r);function HU(e,r){const a=YT(e.x,r.x),i=YT(e.y,r.y);return Math.sqrt(a**2+i**2)}class GP{constructor(r,a,{transformPagePoint:i,contextWindow:u,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=cb(this.lastMoveEventInfo,this.history),y=this.startEvent!==null,g=HU(v.offset,{x:0,y:0})>=3;if(!y&&!g)return;const{point:S}=v,{timestamp:_}=lr;this.history.push({...S,timestamp:_});const{onStart:w,onMove:E}=this.handlers;y||(w&&w(this.lastMoveEvent,v),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,v)},this.handlePointerMove=(v,y)=>{this.lastMoveEvent=v,this.lastMoveEventInfo=lb(y,this.transformPagePoint),At.update(this.updatePoint,!0)},this.handlePointerUp=(v,y)=>{this.end();const{onEnd:g,onSessionEnd:S,resumeAnimation:_}=this.handlers;if(this.dragSnapToOrigin&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=cb(v.type==="pointercancel"?this.lastMoveEventInfo:lb(y,this.transformPagePoint),this.history);this.startEvent&&g&&g(v,w),S&&S(v,w)},!A0(r))return;this.dragSnapToOrigin=s,this.handlers=a,this.transformPagePoint=i,this.contextWindow=u||window;const l=Kd(r),c=lb(l,this.transformPagePoint),{point:f}=c,{timestamp:h}=lr;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=a;m&&m(r,cb(c,this.history)),this.removeListeners=Qd(gd(this.contextWindow,"pointermove",this.handlePointerMove),gd(this.contextWindow,"pointerup",this.handlePointerUp),gd(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),_i(this.updatePoint)}}function lb(e,r){return r?{point:r(e.point)}:e}function GT(e,r){return{x:e.x-r.x,y:e.y-r.y}}function cb({point:e},r){return{point:e,delta:GT(e,WP(r)),offset:GT(e,YU(r)),velocity:GU(r,.1)}}function YU(e){return e[0]}function WP(e){return e[e.length-1]}function GU(e,r){if(e.length<2)return{x:0,y:0};let a=e.length-1,i=null;const u=WP(e);for(;a>=0&&(i=e[a],!(u.timestamp-i.timestamp>Gn(r)));)a--;if(!i)return{x:0,y:0};const s=Wn(u.timestamp-i.timestamp);if(s===0)return{x:0,y:0};const l={x:(u.x-i.x)/s,y:(u.y-i.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function WU(e,{min:r,max:a},i){return r!==void 0&&e<r?e=i?Et(r,e,i.min):Math.max(e,r):a!==void 0&&e>a&&(e=i?Et(a,e,i.max):Math.min(e,a)),e}function WT(e,r,a){return{min:r!==void 0?e.min+r:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function QU(e,{top:r,left:a,bottom:i,right:u}){return{x:WT(e.x,a,u),y:WT(e.y,r,i)}}function QT(e,r){let a=r.min-e.min,i=r.max-e.max;return r.max-r.min<e.max-e.min&&([a,i]=[i,a]),{min:a,max:i}}function XU(e,r){return{x:QT(e.x,r.x),y:QT(e.y,r.y)}}function KU(e,r){let a=.5;const i=Dr(e),u=Dr(r);return u>i?a=jd(r.min,r.max-i,e.min):i>u&&(a=jd(e.min,e.max-u,r.min)),Va(0,1,a)}function ZU(e,r){const a={};return r.min!==void 0&&(a.min=r.min-e.min),r.max!==void 0&&(a.max=r.max-e.min),a}const Gb=.35;function JU(e=Gb){return e===!1?e=0:e===!0&&(e=Gb),{x:XT(e,"left","right"),y:XT(e,"top","bottom")}}function XT(e,r,a){return{min:KT(e,r),max:KT(e,a)}}function KT(e,r){return typeof e=="number"?e:e[r]||0}const jn={x:!1,y:!1};function QP(){return jn.x||jn.y}function ez(e){return e==="x"||e==="y"?jn[e]?null:(jn[e]=!0,()=>{jn[e]=!1}):jn.x||jn.y?null:(jn.x=jn.y=!0,()=>{jn.x=jn.y=!1})}const tz=new WeakMap;class rz{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=kt(),this.visualElement=r}start(r,{snapToCursor:a=!1}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const u=m=>{const{dragSnapToOrigin:v}=this.getProps();v?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Kd(m).point)},s=(m,v)=>{const{drag:y,dragPropagation:g,onDragStart:S}=this.getProps();if(y&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ez(y),!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),yn(w=>{let E=this.getAxisMotionValue(w).get()||0;if(Yn.test(E)){const{projection:R}=this.visualElement;if(R&&R.layout){const T=R.layout.layoutBox[w];T&&(E=Dr(T)*(parseFloat(E)/100))}}this.originPoint[w]=E}),S&&At.postRender(()=>S(m,v)),Pb(this.visualElement,"transform");const{animationState:_}=this.visualElement;_&&_.setActive("whileDrag",!0)},l=(m,v)=>{const{dragPropagation:y,dragDirectionLock:g,onDirectionLock:S,onDrag:_}=this.getProps();if(!y&&!this.openDragLock)return;const{offset:w}=v;if(g&&this.currentDirection===null){this.currentDirection=nz(w),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",v.point,w),this.updateAxis("y",v.point,w),this.visualElement.render(),_&&_(m,v)},c=(m,v)=>this.stop(m,v),f=()=>yn(m=>{var v;return this.getAnimationState(m)==="paused"&&((v=this.getAxisMotionValue(m).animation)==null?void 0:v.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new GP(r,{onSessionStart:u,onStart:s,onMove:l,onSessionEnd:c,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:YP(this.visualElement)})}stop(r,a){const i=this.isDragging;if(this.cancel(),!i)return;const{velocity:u}=a;this.startAnimation(u);const{onDragEnd:s}=this.getProps();s&&At.postRender(()=>s(r,a))}cancel(){this.isDragging=!1;const{projection:r,animationState:a}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(r,a,i){const{drag:u}=this.getProps();if(!i||!Tv(r,u,this.currentDirection))return;const s=this.getAxisMotionValue(r);let l=this.originPoint[r]+i[r];this.constraints&&this.constraints[r]&&(l=WU(l,this.constraints[r],this.elastic[r])),s.set(l)}resolveConstraints(){var s;const{dragConstraints:r,dragElastic:a}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,u=this.constraints;r&&Hu(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&i?this.constraints=QU(i.layoutBox,r):this.constraints=!1,this.elastic=JU(a),u!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&yn(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=ZU(i.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:a}=this.getProps();if(!r||!Hu(r))return!1;const i=r.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const s=$U(i,u.root,this.visualElement.getTransformPagePoint());let l=XU(u.layout.layoutBox,s);if(a){const c=a(kU(l));this.hasMutatedConstraints=!!c,c&&(l=zP(c))}return l}startAnimation(r){const{drag:a,dragMomentum:i,dragElastic:u,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},h=yn(m=>{if(!Tv(m,a,this.currentDirection))return;let v=f&&f[m]||{};l&&(v={min:0,max:0});const y=u?200:1e6,g=u?40:1e7,S={type:"inertia",velocity:i?r[m]:0,bounceStiffness:y,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...s,...v};return this.startAxisValueAnimation(m,S)});return Promise.all(h).then(c)}startAxisValueAnimation(r,a){const i=this.getAxisMotionValue(r);return Pb(this.visualElement,r),i.start(E0(r,i,0,a,this.visualElement,!1))}stopAnimation(){yn(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){yn(r=>{var a;return(a=this.getAxisMotionValue(r).animation)==null?void 0:a.pause()})}getAnimationState(r){var a;return(a=this.getAxisMotionValue(r).animation)==null?void 0:a.state}getAxisMotionValue(r){const a=`_drag${r.toUpperCase()}`,i=this.visualElement.getProps(),u=i[a];return u||this.visualElement.getValue(r,(i.initial?i.initial[r]:void 0)||0)}snapToCursor(r){yn(a=>{const{drag:i}=this.getProps();if(!Tv(a,i,this.currentDirection))return;const{projection:u}=this.visualElement,s=this.getAxisMotionValue(a);if(u&&u.layout){const{min:l,max:c}=u.layout.layoutBox[a];s.set(r[a]-Et(l,c,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:a}=this.getProps(),{projection:i}=this.visualElement;if(!Hu(a)||!i||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};yn(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();u[l]=KU({min:f,max:f},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),yn(l=>{if(!Tv(l,r,null))return;const c=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];c.set(Et(f,h,u[l]))})}addListeners(){if(!this.visualElement.current)return;tz.set(this.visualElement,this);const r=this.visualElement.current,a=gd(r,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(f)}),i=()=>{const{dragConstraints:f}=this.getProps();Hu(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,s=u.addEventListener("measure",i);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),At.read(i);const l=Cd(window,"resize",()=>this.scalePositionWithinConstraints()),c=u.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(yn(m=>{const v=this.getAxisMotionValue(m);v&&(this.originPoint[m]+=f[m].translate,v.set(v.get()+f[m].translate))}),this.visualElement.render())});return()=>{l(),a(),s(),c&&c()}}getProps(){const r=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:i=!1,dragPropagation:u=!1,dragConstraints:s=!1,dragElastic:l=Gb,dragMomentum:c=!0}=r;return{...r,drag:a,dragDirectionLock:i,dragPropagation:u,dragConstraints:s,dragElastic:l,dragMomentum:c}}}function Tv(e,r,a){return(r===!0||r===e)&&(a===null||a===e)}function nz(e,r=10){let a=null;return Math.abs(e.y)>r?a="y":Math.abs(e.x)>r&&(a="x"),a}class az extends Ti{constructor(r){super(r),this.removeGroupControls=bn,this.removeListeners=bn,this.controls=new rz(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bn}unmount(){this.removeGroupControls(),this.removeListeners()}}const ZT=e=>(r,a)=>{e&&At.postRender(()=>e(r,a))};class iz extends Ti{constructor(){super(...arguments),this.removePointerDownListener=bn}onPointerDown(r){this.session=new GP(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:YP(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:a,onPan:i,onPanEnd:u}=this.node.getProps();return{onSessionStart:ZT(r),onStart:ZT(a),onMove:i,onEnd:(s,l)=>{delete this.session,u&&At.postRender(()=>u(s,l))}}}mount(){this.removePointerDownListener=gd(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Nv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function JT(e,r){return r.max===r.min?0:e/(r.max-r.min)*100}const hd={correct:(e,r)=>{if(!r.target)return e;if(typeof e=="string")if(ze.test(e))e=parseFloat(e);else return e;const a=JT(e,r.target.x),i=JT(e,r.target.y);return`${a}% ${i}%`}},oz={correct:(e,{treeScale:r,projectionDelta:a})=>{const i=e,u=Si.parse(e);if(u.length>5)return i;const s=Si.createTransformer(e),l=typeof u[0]!="number"?1:0,c=a.x.scale*r.x,f=a.y.scale*r.y;u[0+l]/=c,u[1+l]/=f;const h=Et(c,f,.5);return typeof u[2+l]=="number"&&(u[2+l]/=h),typeof u[3+l]=="number"&&(u[3+l]/=h),s(u)}};class uz extends F.Component{componentDidMount(){const{visualElement:r,layoutGroup:a,switchLayoutGroup:i,layoutId:u}=this.props,{projection:s}=r;gL(sz),s&&(a.group&&a.group.add(s),i&&i.register&&u&&i.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Nv.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:a,visualElement:i,drag:u,isPresent:s}=this.props,{projection:l}=i;return l&&(l.isPresent=s,u||r.layoutDependency!==a||a===void 0||r.isPresent!==s?l.willUpdate():this.safeToRemove(),r.isPresent!==s&&(s?l.promote():l.relegate()||At.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),Jg.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:a,switchLayoutGroup:i}=this.props,{projection:u}=r;u&&(u.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(u),i&&i.deregister&&i.deregister(u))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function XP(e){const[r,a]=HC(),i=F.useContext(Hg);return $.jsx(uz,{...e,layoutGroup:i,switchLayoutGroup:F.useContext(KC),isPresent:r,safeToRemove:a})}const sz={borderRadius:{...hd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hd,borderTopRightRadius:hd,borderBottomLeftRadius:hd,borderBottomRightRadius:hd,boxShadow:oz};function lz(e,r,a){const i=Sr(e)?e:Ju(e);return i.start(E0("",i,r,a)),i.animation}const cz=(e,r)=>e.depth-r.depth;class fz{constructor(){this.children=[],this.isDirty=!1}add(r){l0(this.children,r),this.isDirty=!0}remove(r){c0(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(cz),this.isDirty=!1,this.children.forEach(r)}}function dz(e,r){const a=Hr.now(),i=({timestamp:u})=>{const s=u-a;s>=r&&(_i(i),e(s-r))};return At.setup(i,!0),()=>_i(i)}const KP=["TopLeft","TopRight","BottomLeft","BottomRight"],hz=KP.length,eM=e=>typeof e=="string"?parseFloat(e):e,tM=e=>typeof e=="number"||ze.test(e);function vz(e,r,a,i,u,s){u?(e.opacity=Et(0,a.opacity??1,mz(i)),e.opacityExit=Et(r.opacity??1,0,pz(i))):s&&(e.opacity=Et(r.opacity??1,a.opacity??1,i));for(let l=0;l<hz;l++){const c=`border${KP[l]}Radius`;let f=rM(r,c),h=rM(a,c);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||tM(f)===tM(h)?(e[c]=Math.max(Et(eM(f),eM(h),i),0),(Yn.test(h)||Yn.test(f))&&(e[c]+="%")):e[c]=h}(r.rotate||a.rotate)&&(e.rotate=Et(r.rotate||0,a.rotate||0,i))}function rM(e,r){return e[r]!==void 0?e[r]:e.borderRadius}const mz=ZP(0,.5,RP),pz=ZP(.5,.95,bn);function ZP(e,r,a){return i=>i<e?0:i>r?1:a(jd(e,r,i))}function nM(e,r){e.min=r.min,e.max=r.max}function pn(e,r){nM(e.x,r.x),nM(e.y,r.y)}function aM(e,r){e.translate=r.translate,e.scale=r.scale,e.originPoint=r.originPoint,e.origin=r.origin}function iM(e,r,a,i,u){return e-=r,e=Kv(e,1/a,i),u!==void 0&&(e=Kv(e,1/u,i)),e}function yz(e,r=0,a=1,i=.5,u,s=e,l=e){if(Yn.test(r)&&(r=parseFloat(r),r=Et(l.min,l.max,r/100)-l.min),typeof r!="number")return;let c=Et(s.min,s.max,i);e===s&&(c-=r),e.min=iM(e.min,r,a,c,u),e.max=iM(e.max,r,a,c,u)}function oM(e,r,[a,i,u],s,l){yz(e,r[a],r[i],r[u],r.scale,s,l)}const bz=["x","scaleX","originX"],gz=["y","scaleY","originY"];function uM(e,r,a,i){oM(e.x,r,bz,a?a.x:void 0,i?i.x:void 0),oM(e.y,r,gz,a?a.y:void 0,i?i.y:void 0)}function sM(e){return e.translate===0&&e.scale===1}function JP(e){return sM(e.x)&&sM(e.y)}function lM(e,r){return e.min===r.min&&e.max===r.max}function _z(e,r){return lM(e.x,r.x)&&lM(e.y,r.y)}function cM(e,r){return Math.round(e.min)===Math.round(r.min)&&Math.round(e.max)===Math.round(r.max)}function eD(e,r){return cM(e.x,r.x)&&cM(e.y,r.y)}function fM(e){return Dr(e.x)/Dr(e.y)}function dM(e,r){return e.translate===r.translate&&e.scale===r.scale&&e.originPoint===r.originPoint}class Sz{constructor(){this.members=[]}add(r){l0(this.members,r),r.scheduleRender()}remove(r){if(c0(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(r){const a=this.members.findIndex(u=>r===u);if(a===0)return!1;let i;for(let u=a;u>=0;u--){const s=this.members[u];if(s.isPresent!==!1){i=s;break}}return i?(this.promote(i),!0):!1}promote(r,a){const i=this.lead;if(r!==i&&(this.prevLead=i,this.lead=r,r.show(),i)){i.instance&&i.scheduleRender(),r.scheduleRender(),r.resumeFrom=i,a&&(r.resumeFrom.preserveOpacity=!0),i.snapshot&&(r.snapshot=i.snapshot,r.snapshot.latestValues=i.animationValues||i.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:u}=r.options;u===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:a,resumingFrom:i}=r;a.onExitComplete&&a.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function wz(e,r,a){let i="";const u=e.x.translate/r.x,s=e.y.translate/r.y,l=(a==null?void 0:a.z)||0;if((u||s||l)&&(i=`translate3d(${u}px, ${s}px, ${l}px) `),(r.x!==1||r.y!==1)&&(i+=`scale(${1/r.x}, ${1/r.y}) `),a){const{transformPerspective:h,rotate:m,rotateX:v,rotateY:y,skewX:g,skewY:S}=a;h&&(i=`perspective(${h}px) ${i}`),m&&(i+=`rotate(${m}deg) `),v&&(i+=`rotateX(${v}deg) `),y&&(i+=`rotateY(${y}deg) `),g&&(i+=`skewX(${g}deg) `),S&&(i+=`skewY(${S}deg) `)}const c=e.x.scale*r.x,f=e.y.scale*r.y;return(c!==1||f!==1)&&(i+=`scale(${c}, ${f})`),i||"none"}function tD(e){return $C(e)&&"ownerSVGElement"in e}function Oz(e){return tD(e)&&e.tagName==="svg"}const fb=["","X","Y","Z"],Ez={visibility:"hidden"},Az=1e3;let Rz=0;function db(e,r,a,i){const{latestValues:u}=r;u[e]&&(a[e]=u[e],r.setStaticValue(e,0),i&&(i[e]=0))}function rD(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:r}=e.options;if(!r)return;const a=lP(r);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:u,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",At,!(u||s))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&rD(i)}function nD({attachResizeListener:e,defaultParent:r,measureScroll:a,checkIsScrollRoot:i,resetTransform:u}){return class{constructor(l={},c=r==null?void 0:r()){this.id=Rz++,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,this.nodes.forEach(xz),this.nodes.forEach(Nz),this.nodes.forEach(kz),this.nodes.forEach(jz)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new fz)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new f0),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const f=this.eventHandlers.get(l);f&&f.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=tD(l)&&!Oz(l),this.instance=l;const{layoutId:c,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),e){let m;const v=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=dz(v,250),Nv.hasAnimatedSinceResize&&(Nv.hasAnimatedSinceResize=!1,this.nodes.forEach(vM))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&h&&(c||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:v,hasRelativeLayoutChanged:y,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||h.getDefaultTransition()||zz,{onLayoutAnimationStart:_,onLayoutAnimationComplete:w}=h.getProps(),E=!this.targetLayout||!eD(this.targetLayout,g),R=!v&&y;if(this.options.layoutRoot||this.resumeFrom||R||v&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(m,R);const T={...d0(S,"layout"),onPlay:_,onComplete:w};(h.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else v||vM(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_i(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(qz),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&rD(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const v=this.path[m];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(hM);return}this.isUpdating||this.nodes.forEach(Pz),this.isUpdating=!1,this.nodes.forEach(Dz),this.nodes.forEach(Tz),this.nodes.forEach(Mz),this.clearAllSnapshots();const c=Hr.now();lr.delta=Va(0,1e3/60,c-lr.timestamp),lr.timestamp=c,lr.isProcessing=!0,ab.update.process(lr),ab.preRender.process(lr),ab.render.process(lr),lr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Jg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Cz),this.sharedNodes.forEach(Vz)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,At.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){At.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Dr(this.snapshot.measuredBox.x)&&!Dr(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=kt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c&&this.instance){const f=i(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!u)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!JP(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;l&&this.instance&&(c||No(this.latestValues)||m)&&(u(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return l&&(f=this.removeTransform(f)),Iz(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:l}=this.options;if(!l)return kt();const c=l.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(Fz))){const{scroll:m}=this.root;m&&(Wu(c.x,m.offset.x),Wu(c.y,m.offset.y))}return c}removeElementScroll(l){var f;const c=kt();if(pn(c,l),(f=this.scroll)!=null&&f.wasRoot)return c;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:v,options:y}=m;m!==this.root&&v&&y.layoutScroll&&(v.wasRoot&&pn(c,l),Wu(c.x,v.offset.x),Wu(c.y,v.offset.y))}return c}applyTransform(l,c=!1){const f=kt();pn(f,l);for(let h=0;h<this.path.length;h++){const m=this.path[h];!c&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Qu(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),No(m.latestValues)&&Qu(f,m.latestValues)}return No(this.latestValues)&&Qu(f,this.latestValues),f}removeTransform(l){const c=kt();pn(c,l);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!No(h.latestValues))continue;Hb(h.latestValues)&&h.updateSnapshot();const m=kt(),v=h.measurePageBox();pn(m,v),uM(c,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return No(this.latestValues)&&uM(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==lr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var y;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:v}=this.options;if(!(!this.layout||!(m||v))){if(this.resolvedRelativeTargetAt=lr.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Sd(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),pn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=kt(),this.targetWithTransforms=kt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),FU(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):pn(this.target,this.layout.layoutBox),$P(this.target,this.targetDelta)):pn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=kt(),this.relativeTargetOrigin=kt(),Sd(this.relativeTargetOrigin,this.target,g.target),pn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Hb(this.parent.latestValues)||BP(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 S;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===lr.timestamp&&(f=!1),f)return;const{layout:h,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||m))return;pn(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,y=this.treeScale.y;BU(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=kt());const{target:g}=l;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(aM(this.prevProjectionDelta.x,this.projectionDelta.x),aM(this.prevProjectionDelta.y,this.projectionDelta.y)),_d(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==y||!dM(this.projectionDelta.x,this.prevProjectionDelta.x)||!dM(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Gu(),this.projectionDelta=Gu(),this.projectionDeltaWithTransform=Gu()}setAnimationOrigin(l,c=!1){const f=this.snapshot,h=f?f.latestValues:{},m={...this.latestValues},v=Gu();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const y=kt(),g=f?f.source:void 0,S=this.layout?this.layout.source:void 0,_=g!==S,w=this.getStack(),E=!w||w.members.length<=1,R=!!(_&&!E&&this.options.crossfade===!0&&!this.path.some(Uz));this.animationProgress=0;let T;this.mixTargetDelta=j=>{const M=j/1e3;mM(v.x,l.x,M),mM(v.y,l.y,M),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Sd(y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Lz(this.relativeTarget,this.relativeTargetOrigin,y,M),T&&_z(this.relativeTarget,T)&&(this.isProjectionDirty=!1),T||(T=kt()),pn(T,this.relativeTarget)),_&&(this.animationValues=m,vz(m,h,this.latestValues,M,R,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var c,f,h;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(!1),(h=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||h.stop(!1),this.pendingAnimation&&(_i(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=At.update(()=>{Nv.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ju(0)),this.currentAnimation=lz(this.motionValue,[0,1e3],{...l,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),l.onUpdate&&l.onUpdate(m)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Az),this.currentAnimation.stop(!1)),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:f,layout:h,latestValues:m}=l;if(!(!c||!f||!h)){if(this!==l&&this.layout&&h&&aD(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||kt();const v=Dr(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+v;const y=Dr(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+y}pn(c,f),Qu(c,m),_d(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new Sz),this.sharedNodes.get(l).add(c);const h=c.options.initialPromotionConfig;c.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var c;const{layoutId:l}=this.options;return l?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:l}=this.options;return l?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const h={};f.z&&db("z",l,h,this.animationValues);for(let m=0;m<fb.length;m++)db(`rotate${fb[m]}`,l,h,this.animationValues),db(`skew${fb[m]}`,l,h,this.animationValues);l.render();for(const m in h)l.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);l.scheduleRender()}getProjectionStyles(l){if(!this.instance||this.isSVG)return;if(!this.isVisible)return Ez;const c={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Pv(l==null?void 0:l.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none",c;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=Pv(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!No(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1),g}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),c.transform=wz(this.projectionDeltaWithTransform,this.treeScale,m),f&&(c.transform=f(m,c.transform));const{x:v,y}=this.projectionDelta;c.transformOrigin=`${v.origin*100}% ${y.origin*100}% 0`,h.animationValues?c.opacity=h===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:c.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const g in Rd){if(m[g]===void 0)continue;const{correct:S,applyTo:_,isCSSVariable:w}=Rd[g],E=c.transform==="none"?m[g]:S(m[g],h);if(_){const R=_.length;for(let T=0;T<R;T++)c[_[T]]=E}else w?this.options.visualElement.renderState.vars[g]=E:c[g]=E}return this.options.layoutId&&(c.pointerEvents=h===this?Pv(l==null?void 0:l.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)==null?void 0:c.stop(!1)}),this.root.nodes.forEach(hM),this.root.sharedNodes.clear()}}}function Tz(e){e.updateLayout()}function Mz(e){var a;const r=((a=e.resumeFrom)==null?void 0:a.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:u}=e.layout,{animationType:s}=e.options,l=r.source!==e.layout.source;s==="size"?yn(v=>{const y=l?r.measuredBox[v]:r.layoutBox[v],g=Dr(y);y.min=i[v].min,y.max=y.min+g}):aD(s,r.layoutBox,i)&&yn(v=>{const y=l?r.measuredBox[v]:r.layoutBox[v],g=Dr(i[v]);y.max=y.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[v].max=e.relativeTarget[v].min+g)});const c=Gu();_d(c,i,r.layoutBox);const f=Gu();l?_d(f,e.applyTransform(u,!0),r.measuredBox):_d(f,i,r.layoutBox);const h=!JP(c);let m=!1;if(!e.resumeFrom){const v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:y,layout:g}=v;if(y&&g){const S=kt();Sd(S,r.layoutBox,y.layoutBox);const _=kt();Sd(_,i,g.layoutBox),eD(S,_)||(m=!0),v.options.layoutRoot&&(e.relativeTarget=_,e.relativeTargetOrigin=S,e.relativeParent=v)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:r,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function xz(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jz(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Cz(e){e.clearSnapshot()}function hM(e){e.clearMeasurements()}function Pz(e){e.isLayoutDirty=!1}function Dz(e){const{visualElement:r}=e.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),e.resetTransform()}function vM(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Nz(e){e.resolveTargetDelta()}function kz(e){e.calcProjection()}function qz(e){e.resetSkewAndRotation()}function Vz(e){e.removeLeadSnapshot()}function mM(e,r,a){e.translate=Et(r.translate,0,a),e.scale=Et(r.scale,1,a),e.origin=r.origin,e.originPoint=r.originPoint}function pM(e,r,a,i){e.min=Et(r.min,a.min,i),e.max=Et(r.max,a.max,i)}function Lz(e,r,a,i){pM(e.x,r.x,a.x,i),pM(e.y,r.y,a.y,i)}function Uz(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const zz={duration:.45,ease:[.4,0,.1,1]},yM=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),bM=yM("applewebkit/")&&!yM("chrome/")?Math.round:bn;function gM(e){e.min=bM(e.min),e.max=bM(e.max)}function Iz(e){gM(e.x),gM(e.y)}function aD(e,r,a){return e==="position"||e==="preserve-aspect"&&!IU(fM(r),fM(a),.2)}function Fz(e){var r;return e!==e.root&&((r=e.scroll)==null?void 0:r.wasRoot)}const Bz=nD({attachResizeListener:(e,r)=>Cd(e,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hb={current:void 0},iD=nD({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hb.current){const e=new Bz({});e.mount(window),e.setOptions({layoutScroll:!0}),hb.current=e}return hb.current},resetTransform:(e,r)=>{e.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),$z={pan:{Feature:iz},drag:{Feature:az,ProjectionNode:iD,MeasureLayout:XP}};function oD(e,r,a){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const u=document.querySelectorAll(e);return u?Array.from(u):[]}return Array.from(e)}function uD(e,r){const a=oD(e),i=new AbortController,u={passive:!0,...r,signal:i.signal};return[a,u,()=>i.abort()]}function _M(e){return!(e.pointerType==="touch"||QP())}function Hz(e,r,a={}){const[i,u,s]=uD(e,a),l=c=>{if(!_M(c))return;const{target:f}=c,h=r(f,c);if(typeof h!="function"||!f)return;const m=v=>{_M(v)&&(h(v),f.removeEventListener("pointerleave",m))};f.addEventListener("pointerleave",m,u)};return i.forEach(c=>{c.addEventListener("pointerenter",l,u)}),s}function SM(e,r,a){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",a==="Start");const u="onHover"+a,s=i[u];s&&At.postRender(()=>s(r,Kd(r)))}class Yz extends Ti{mount(){const{current:r}=this.node;r&&(this.unmount=Hz(r,(a,i)=>(SM(this.node,i,"Start"),u=>SM(this.node,u,"End"))))}unmount(){}}class Gz extends Ti{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!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=Qd(Cd(this.node.current,"focus",()=>this.onFocus()),Cd(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const sD=(e,r)=>r?e===r?!0:sD(e,r.parentElement):!1,Wz=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Qz(e){return Wz.has(e.tagName)||e.tabIndex!==-1}const kv=new WeakSet;function wM(e){return r=>{r.key==="Enter"&&e(r)}}function vb(e,r){e.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const Xz=(e,r)=>{const a=e.currentTarget;if(!a)return;const i=wM(()=>{if(kv.has(a))return;vb(a,"down");const u=wM(()=>{vb(a,"up")}),s=()=>vb(a,"cancel");a.addEventListener("keyup",u,r),a.addEventListener("blur",s,r)});a.addEventListener("keydown",i,r),a.addEventListener("blur",()=>a.removeEventListener("keydown",i),r)};function OM(e){return A0(e)&&!QP()}function Kz(e,r,a={}){const[i,u,s]=uD(e,a),l=c=>{const f=c.currentTarget;if(!OM(c))return;kv.add(f);const h=r(f,c),m=(g,S)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",y),kv.has(f)&&kv.delete(f),OM(g)&&typeof h=="function"&&h(g,{success:S})},v=g=>{m(g,f===window||f===document||a.useGlobalTarget||sD(f,g.target))},y=g=>{m(g,!1)};window.addEventListener("pointerup",v,u),window.addEventListener("pointercancel",y,u)};return i.forEach(c=>{(a.useGlobalTarget?window:c).addEventListener("pointerdown",l,u),Qg(c)&&(c.addEventListener("focus",h=>Xz(h,u)),!Qz(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),s}function EM(e,r,a){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",a==="Start");const u="onTap"+(a==="End"?"":a),s=i[u];s&&At.postRender(()=>s(r,Kd(r)))}class Zz extends Ti{mount(){const{current:r}=this.node;r&&(this.unmount=Kz(r,(a,i)=>(EM(this.node,i,"Start"),(u,{success:s})=>EM(this.node,u,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Wb=new WeakMap,mb=new WeakMap,Jz=e=>{const r=Wb.get(e.target);r&&r(e)},eI=e=>{e.forEach(Jz)};function tI({root:e,...r}){const a=e||document;mb.has(a)||mb.set(a,{});const i=mb.get(a),u=JSON.stringify(r);return i[u]||(i[u]=new IntersectionObserver(eI,{root:e,...r})),i[u]}function rI(e,r,a){const i=tI(r);return Wb.set(e,a),i.observe(e),()=>{Wb.delete(e),i.unobserve(e)}}const nI={some:0,all:1};class aI extends Ti{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:a,margin:i,amount:u="some",once:s}=r,l={root:a?a.current:void 0,rootMargin:i,threshold:typeof u=="number"?u:nI[u]},c=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,s&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:v}=this.node.getProps(),y=h?m:v;y&&y(f)};return rI(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:a}=this.node;["amount","margin","root"].some(iI(r,a))&&this.startObserver()}unmount(){}}function iI({viewport:e={}},{viewport:r={}}={}){return a=>e[a]!==r[a]}const oI={inView:{Feature:aI},tap:{Feature:Zz},focus:{Feature:Gz},hover:{Feature:Yz}},uI={layout:{ProjectionNode:iD,MeasureLayout:XP}},Qb={current:null},lD={current:!1};function sI(){if(lD.current=!0,!!Gg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),r=()=>Qb.current=e.matches;e.addListener(r),r()}else Qb.current=!1}const lI=new WeakMap;function cI(e,r,a){for(const i in r){const u=r[i],s=a[i];if(Sr(u))e.addValue(i,u);else if(Sr(s))e.addValue(i,Ju(u,{owner:e}));else if(s!==u)if(e.hasValue(i)){const l=e.getValue(i);l.liveStyle===!0?l.jump(u):l.hasAnimated||l.set(u)}else{const l=e.getStaticValue(i);e.addValue(i,Ju(l!==void 0?l:u,{owner:e}))}}for(const i in a)r[i]===void 0&&e.removeValue(i);return r}const cD=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fD=e=>/^0[^.\s]+$/u.test(e),fI={test:e=>e==="auto",parse:e=>e},dD=e=>r=>r.test(e),hD=[ls,ze,Yn,pi,SL,_L,fI],AM=e=>hD.find(dD(e)),dI=[...hD,gr,Si],hI=e=>dI.find(dD(e)),vI=new Set(["brightness","contrast","saturate","opacity"]);function mI(e){const[r,a]=e.slice(0,-1).split("(");if(r==="drop-shadow")return e;const[i]=a.match(h0)||[];if(!i)return e;const u=a.replace(i,"");let s=vI.has(r)?1:0;return i!==a&&(s*=100),r+"("+s+u+")"}const pI=/\b([a-z-]*)\(.*?\)/gu,Xb={...Si,getAnimatableNone:e=>{const r=e.match(pI);return r?r.map(mI).join(" "):e}},yI={...n0,color:gr,backgroundColor:gr,outlineColor:gr,fill:gr,stroke:gr,borderColor:gr,borderTopColor:gr,borderRightColor:gr,borderBottomColor:gr,borderLeftColor:gr,filter:Xb,WebkitFilter:Xb},vD=e=>yI[e];function mD(e,r){let a=vD(e);return a!==Xb&&(a=Si),a.getAnimatableNone?a.getAnimatableNone(r):void 0}const RM=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class bI{scrapeMotionValuesFromProps(r,a,i){return{}}constructor({parent:r,props:a,presenceContext:i,reducedMotionConfig:u,blockInitialAnimation:s,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=w0,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 y=Hr.now();this.renderScheduledAt<y&&(this.renderScheduledAt=y,At.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=l;this.latestValues=f,this.baseTarget={...f},this.initialValues=a.initial?{...f}:{},this.renderState=h,this.parent=r,this.props=a,this.presenceContext=i,this.depth=r?r.depth+1:0,this.reducedMotionConfig=u,this.options=c,this.blockInitialAnimation=!!s,this.isControllingVariants=gm(a),this.isVariantNode=QC(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:m,...v}=this.scrapeMotionValuesFromProps(a,{},this);for(const y in v){const g=v[y];f[y]!==void 0&&Sr(g)&&g.set(f[y],!1)}}mount(r){this.current=r,lI.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,i)=>this.bindToMotionValue(i,a)),lD.current||sI(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qb.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),_i(this.notifyUpdate),_i(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const a=this.features[r];a&&(a.unmount(),a.isMounted=!1)}this.current=null}bindToMotionValue(r,a){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const i=ss.has(r);i&&this.onBindTransform&&this.onBindTransform();const u=a.on("change",c=>{this.latestValues[r]=c,this.props.onUpdate&&At.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),s=a.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,r,a)),this.valueSubscriptions.set(r,()=>{u(),s(),l&&l(),a.owner&&a.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in Zu){const a=Zu[r];if(!a)continue;const{isEnabled:i,Feature:u}=a;if(!this.features[r]&&u&&i(this.props)&&(this.features[r]=new u(this)),this.features[r]){const s=this.features[r];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):kt()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,a){this.latestValues[r]=a}update(r,a){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let i=0;i<RM.length;i++){const u=RM[i];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const s="on"+u,l=r[s];l&&(this.propEventSubscriptions[u]=this.on(u,l))}this.prevMotionValues=cI(this,this.scrapeMotionValuesFromProps(r,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(r),()=>a.variantChildren.delete(r)}addValue(r,a){const i=this.values.get(r);a!==i&&(i&&this.removeValue(r),this.bindToMotionValue(r,a),this.values.set(r,a),this.latestValues[r]=a.get())}removeValue(r){this.values.delete(r);const a=this.valueSubscriptions.get(r);a&&(a(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,a){if(this.props.values&&this.props.values[r])return this.props.values[r];let i=this.values.get(r);return i===void 0&&a!==void 0&&(i=Ju(a===null?void 0:a,{owner:this}),this.addValue(r,i)),i}readValue(r,a){let i=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return i!=null&&(typeof i=="string"&&(cD(i)||fD(i))?i=parseFloat(i):!hI(i)&&Si.test(a)&&(i=mD(r,a)),this.setBaseTarget(r,Sr(i)?i.get():i)),Sr(i)?i.get():i}setBaseTarget(r,a){this.baseTarget[r]=a}getBaseTarget(r){var s;const{initial:a}=this.props;let i;if(typeof a=="string"||typeof a=="object"){const l=u0(this.props,a,(s=this.presenceContext)==null?void 0:s.custom);l&&(i=l[r])}if(a&&i!==void 0)return i;const u=this.getBaseTargetFromProps(this.props,r);return u!==void 0&&!Sr(u)?u:this.initialValues[r]!==void 0&&i===void 0?void 0:this.baseTarget[r]}on(r,a){return this.events[r]||(this.events[r]=new f0),this.events[r].add(a)}notify(r,...a){this.events[r]&&this.events[r].notify(...a)}}const gI=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _I(e){const r=gI.exec(e);if(!r)return[,];const[,a,i,u]=r;return[`--${a??i}`,u]}function pD(e,r,a=1){const[i,u]=_I(e);if(!i)return;const s=window.getComputedStyle(r).getPropertyValue(i);if(s){const l=s.trim();return cD(l)?parseFloat(l):l}return r0(u)?pD(u,r,a+1):u}function SI(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||fD(e):!0}const wI=new Set(["auto","none","0"]);function OI(e,r,a){let i=0,u;for(;i<e.length&&!u;){const s=e[i];typeof s=="string"&&!wI.has(s)&&xd(s).values.length&&(u=e[i]),i++}if(u&&a)for(const s of r)e[s]=mD(a,u)}class EI extends w0{constructor(r,a,i,u,s){super(r,a,i,u,s,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:a,name:i}=this;if(!a||!a.current)return;super.readKeyframes();for(let f=0;f<r.length;f++){let h=r[f];if(typeof h=="string"&&(h=h.trim(),r0(h))){const m=pD(h,a.current);m!==void 0&&(r[f]=m),f===r.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!qP.has(i)||r.length!==2)return;const[u,s]=r,l=AM(u),c=AM(s);if(l!==c)if(CT(l)&&CT(c))for(let f=0;f<r.length;f++){const h=r[f];typeof h=="string"&&(r[f]=parseFloat(h))}else zo[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:a}=this,i=[];for(let u=0;u<r.length;u++)(r[u]===null||SI(r[u]))&&i.push(u);i.length&&OI(r,i,a)}measureInitialState(){const{element:r,unresolvedKeyframes:a,name:i}=this;if(!r||!r.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=zo[i](r.measureViewportBox(),window.getComputedStyle(r.current)),a[0]=this.measuredOrigin;const u=a[a.length-1];u!==void 0&&r.getValue(i,u).jump(u,!1)}measureEndState(){var c;const{element:r,name:a,unresolvedKeyframes:i}=this;if(!r||!r.current)return;const u=r.getValue(a);u&&u.jump(this.measuredOrigin,!1);const s=i.length-1,l=i[s];i[s]=zo[a](r.measureViewportBox(),window.getComputedStyle(r.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEach(([f,h])=>{r.getValue(f).set(h)}),this.resolveNoneKeyframes()}}class yD extends bI{constructor(){super(...arguments),this.KeyframeResolver=EI}sortInstanceNodePosition(r,a){return r.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(r,a){return r.style?r.style[a]:void 0}removeValueFromRenderState(r,{vars:a,style:i}){delete a[r],delete i[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;Sr(r)&&(this.childSubscription=r.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function bD(e,{style:r,vars:a},i,u){Object.assign(e.style,r,u&&u.getProjectionStyles(i));for(const s in a)e.style.setProperty(s,a[s])}function AI(e){return window.getComputedStyle(e)}class RI extends yD{constructor(){super(...arguments),this.type="html",this.renderInstance=bD}readValueFromInstance(r,a){var i;if(ss.has(a))return(i=this.projection)!=null&&i.isProjecting?Ub(a):X6(r,a);{const u=AI(r),s=(t0(a)?u.getPropertyValue(a):u[a])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(r,{transformPagePoint:a}){return HP(r,a)}build(r,a,i){a0(r,a,i.transformTemplate)}scrapeMotionValuesFromProps(r,a,i){return s0(r,a,i)}}const gD=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 TI(e,r,a,i){bD(e,r,void 0,i);for(const u in r.attrs)e.setAttribute(gD.has(u)?u:Zg(u),r.attrs[u])}class MI extends yD{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=kt}getBaseTargetFromProps(r,a){return r[a]}readValueFromInstance(r,a){if(ss.has(a)){const i=vD(a);return i&&i.default||0}return a=gD.has(a)?a:Zg(a),r.getAttribute(a)}scrapeMotionValuesFromProps(r,a,i){return uP(r,a,i)}build(r,a,i){nP(r,a,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(r,a,i,u){TI(r,a,i,u)}mount(r){this.isSVGTag=iP(r.tagName),super.mount(r)}}const xI=(e,r)=>o0(e)?new MI(r):new RI(r,{allowProjection:e!==F.Fragment}),jI=UL({...DU,...oI,...$z,...uI},xI),CI=iL(jI),PI={some:0,all:1};function DI(e,r,{root:a,margin:i,amount:u="some"}={}){const s=oD(e),l=new WeakMap,c=h=>{h.forEach(m=>{const v=l.get(m.target);if(m.isIntersecting!==!!v)if(m.isIntersecting){const y=r(m.target,m);typeof y=="function"?l.set(m.target,y):f.unobserve(m.target)}else typeof v=="function"&&(v(m),l.delete(m.target))})},f=new IntersectionObserver(c,{root:a,rootMargin:i,threshold:typeof u=="number"?u:PI[u]});return s.forEach(h=>f.observe(h)),()=>f.disconnect()}function NI(e,{root:r,margin:a,amount:i,once:u=!1,initial:s=!1}={}){const[l,c]=F.useState(s);return F.useEffect(()=>{if(!e.current||u&&l)return;const f=()=>(c(!0),u?void 0:()=>c(!1)),h={root:r&&r.current||void 0,margin:a,amount:i};return DI(e.current,f,h)},[r,e,a,u,i]),l}function kI({children:e,className:r,variant:a,duration:i=.4,delay:u=0,offset:s=6,direction:l="down",inView:c=!1,inViewMargin:f="-50px",blur:h="6px",...m}){const v=F.useRef(null),y=NI(v,{once:!0,margin:f}),g=!c||y,S={hidden:{[l==="left"||l==="right"?"x":"y"]:l==="right"||l==="down"?-s:s,opacity:0,filter:`blur(${h})`},visible:{[l==="left"||l==="right"?"x":"y"]:0,opacity:1,filter:"blur(0px)"}},_=a||S;return $.jsx(ZV,{children:$.jsx(CI.div,{ref:v,initial:"hidden",animate:g?"visible":"hidden",exit:"hidden",variants:_,transition:{delay:.04+u,duration:i,ease:"easeOut"},className:r,...m,children:e})})}var _m="Checkbox",[qI,T8]=as(_m),[VI,R0]=qI(_m);function LI(e){const{__scopeCheckbox:r,checked:a,children:i,defaultChecked:u,disabled:s,form:l,name:c,onCheckedChange:f,required:h,value:m="on",internal_do_not_use_render:v}=e,[y,g]=Fg({prop:a,defaultProp:u??!1,onChange:f,caller:_m}),[S,_]=F.useState(null),[w,E]=F.useState(null),R=F.useRef(!1),T=S?!!l||!!S.closest("form"):!0,j={checked:y,disabled:s,setChecked:g,control:S,setControl:_,name:c,form:l,value:m,hasConsumerStoppedPropagationRef:R,required:h,defaultChecked:bi(u)?!1:u,isFormControl:T,bubbleInput:w,setBubbleInput:E};return $.jsx(VI,{scope:r,...j,children:UI(v)?v(j):i})}var _D="CheckboxTrigger",SD=F.forwardRef(({__scopeCheckbox:e,onKeyDown:r,onClick:a,...i},u)=>{const{control:s,value:l,disabled:c,checked:f,required:h,setControl:m,setChecked:v,hasConsumerStoppedPropagationRef:y,isFormControl:g,bubbleInput:S}=R0(_D,e),_=Xn(u,m),w=F.useRef(f);return F.useEffect(()=>{const E=s==null?void 0:s.form;if(E){const R=()=>v(w.current);return E.addEventListener("reset",R),()=>E.removeEventListener("reset",R)}},[s,v]),$.jsx(un.button,{type:"button",role:"checkbox","aria-checked":bi(f)?"mixed":f,"aria-required":h,"data-state":TD(f),"data-disabled":c?"":void 0,disabled:c,value:l,...i,ref:_,onKeyDown:Dn(r,E=>{E.key==="Enter"&&E.preventDefault()}),onClick:Dn(a,E=>{v(R=>bi(R)?!0:!R),S&&g&&(y.current=E.isPropagationStopped(),y.current||E.stopPropagation())})})});SD.displayName=_D;var wD=F.forwardRef((e,r)=>{const{__scopeCheckbox:a,name:i,checked:u,defaultChecked:s,required:l,disabled:c,value:f,onCheckedChange:h,form:m,...v}=e;return $.jsx(LI,{__scopeCheckbox:a,checked:u,defaultChecked:s,disabled:c,required:l,onCheckedChange:h,name:i,form:m,value:f,internal_do_not_use_render:({isFormControl:y})=>$.jsxs($.Fragment,{children:[$.jsx(SD,{...v,ref:r,__scopeCheckbox:a}),y&&$.jsx(RD,{__scopeCheckbox:a})]})})});wD.displayName=_m;var OD="CheckboxIndicator",ED=F.forwardRef((e,r)=>{const{__scopeCheckbox:a,forceMount:i,...u}=e,s=R0(OD,a);return $.jsx(Bg,{present:i||bi(s.checked)||s.checked===!0,children:$.jsx(un.span,{"data-state":TD(s.checked),"data-disabled":s.disabled?"":void 0,...u,ref:r,style:{pointerEvents:"none",...e.style}})})});ED.displayName=OD;var AD="CheckboxBubbleInput",RD=F.forwardRef(({__scopeCheckbox:e,...r},a)=>{const{control:i,hasConsumerStoppedPropagationRef:u,checked:s,defaultChecked:l,required:c,disabled:f,name:h,value:m,form:v,bubbleInput:y,setBubbleInput:g}=R0(AD,e),S=Xn(a,g),_=xC(s),w=MC(i);F.useEffect(()=>{const R=y;if(!R)return;const T=window.HTMLInputElement.prototype,M=Object.getOwnPropertyDescriptor(T,"checked").set,V=!u.current;if(_!==s&&M){const U=new Event("click",{bubbles:V});R.indeterminate=bi(s),M.call(R,bi(s)?!1:s),R.dispatchEvent(U)}},[y,_,s,u]);const E=F.useRef(bi(s)?!1:s);return $.jsx(un.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??E.current,required:c,disabled:f,name:h,value:m,form:v,...r,tabIndex:-1,ref:S,style:{...r.style,...w,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});RD.displayName=AD;function UI(e){return typeof e=="function"}function bi(e){return e==="indeterminate"}function TD(e){return bi(e)?"indeterminate":e?"checked":"unchecked"}function TM({className:e,...r}){return $.jsx(wD,{"data-slot":"checkbox",className:nr("peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),...r,children:$.jsx(ED,{"data-slot":"checkbox-indicator",className:"flex items-center justify-center text-current transition-none",children:$.jsx(r4,{className:"size-3.5"})})})}const Sm=({ref:e,href:r,className:a,children:i,underline:u=!0,target:s})=>$.jsx("a",{href:r,target:s,rel:"noopener noreferrer",className:nr(u&&"hover:underline",a),ref:e,children:i});Sm.displayName="Link";const zI={id:Qk(),name:"",avatar:"",createTime:Date.now(),themeMode:"light",danmakuEnabled:!0,notificationEnabled:!0,notificationType:"at"},II=mj({id:$u(),createTime:vj(),name:mv($u(),hj(),fj(1,"Please enter your username."),Sb(20,"Your username cannot exceed 20 bytes.")),avatar:mv($u(),dj(0,"Please select your avatar."),Sb(8*1024,"Your avatar cannot exceed 8kb.")),themeMode:mv($u(),Ob([Bu("system"),Bu("light"),Bu("dark")],"Please select extension theme mode.")),danmakuEnabled:wb(),notificationEnabled:wb(),notificationType:mv($u(),Ob([Bu("all"),Bu("at")],"Please select notification type."))}),MD=()=>{const e=Xu.useRemeshSend(),r=FC.value,a=Xu.useRemeshDomain(_C()),i=Xu.useRemeshQuery(a.query.UserInfoQuery()),u=Bk({resolver:Gk(II),defaultValues:i??zI});F.useEffect(()=>{i&&u.reset(i)},[i,u]);const s=h=>{e(a.command.UpdateUserInfoCommand(h)),r.success("Saved successfully!")},l=h=>{r.warning(h.message)},c=h=>{r.error(h.message)},f=async()=>{const h=await wq(dT);u.setValue("avatar",h)};return $.jsx(Nq,{...u,children:$.jsxs("form",{onSubmit:u.handleSubmit(s),autoComplete:"off",className:"relative w-[450px] space-y-8 p-14 pt-20",children:[$.jsx(qu,{control:u.control,name:"avatar",render:({field:h})=>$.jsxs(Vu,{className:"absolute inset-x-1 top-0 mx-auto grid w-fit -translate-y-1/3 justify-items-center",children:[$.jsx(Lu,{children:$.jsxs("div",{className:"flex flex-col items-center gap-2",children:[$.jsx(kI,{duration:.1,children:$.jsx(eC,{compressSize:dT,onError:c,onWarning:l,className:"shadow-lg",...h})},u.getValues().avatar),$.jsxs(Ed,{type:"button",size:"xs",className:"mx-auto flex items-center gap-x-2",onClick:f,children:[$.jsx(s4,{size:14}),"Ugly Avatar"]})]})}),$.jsx(Uu,{})]})}),$.jsx(qu,{control:u.control,name:"name",render:({field:h})=>$.jsxs(Vu,{children:[$.jsx(_v,{className:"font-semibold",children:"Username"}),$.jsx(Lu,{children:$.jsx(kq,{placeholder:"Please enter your username",...h})}),$.jsx(Sv,{children:"This is your public display name."}),$.jsx(Uu,{})]})}),$.jsx(qu,{control:u.control,name:"danmakuEnabled",render:({field:h})=>$.jsxs(Vu,{children:[$.jsx(Lu,{children:$.jsxs("div",{className:"flex items-center space-x-2",children:[$.jsx(TM,{defaultChecked:!1,id:"enable-danmaku",onCheckedChange:h.onChange,checked:h.value}),$.jsx(_v,{className:"cursor-pointer font-semibold",htmlFor:"enable-danmaku",children:"Enable Danmaku"})]})}),$.jsxs(Sv,{children:["Enabling this option will display scrolling messages on the website.",$.jsx(Sm,{className:"ml-2 text-primary",href:"https://en.wikipedia.org/wiki/Danmaku_subtitling",children:"Wikipedia"})]}),$.jsx(Uu,{})]})}),$.jsx(qu,{control:u.control,name:"notificationType",render:({field:h})=>$.jsxs(Vu,{children:[$.jsx(qu,{control:u.control,name:"notificationEnabled",render:({field:m})=>$.jsxs(Vu,{children:[$.jsx(Lu,{children:$.jsxs("div",{className:"flex items-center space-x-2",children:[$.jsx(TM,{defaultChecked:!1,id:"enable-notification",onCheckedChange:m.onChange,checked:m.value}),$.jsx(_v,{className:"cursor-pointer font-semibold",htmlFor:"enable-notification",children:"Enable Notification"})]})}),$.jsx(Uu,{})]})}),$.jsx(Lu,{className:"pl-6",children:$.jsxs(hT,{disabled:!u.getValues("notificationEnabled"),className:"flex gap-x-4",onValueChange:h.onChange,value:h.value,children:[$.jsxs("div",{className:"flex items-center space-x-2",children:[$.jsx(dd,{value:"all",id:"all"}),$.jsx(ko,{className:nr("cursor-pointer",!u.getValues("notificationEnabled")&&"cursor-not-allowed opacity-50"),htmlFor:"all",children:"All message"})]}),$.jsxs("div",{className:"flex items-center space-x-2",children:[$.jsx(dd,{value:"at",id:"at"}),$.jsx(ko,{className:nr("cursor-pointer",!u.getValues("notificationEnabled")&&"cursor-not-allowed opacity-50"),htmlFor:"at",children:"Only @self"})]})]})}),$.jsx(Sv,{children:"Enabling this option will display desktop notifications for messages."}),$.jsx(Uu,{})]})}),$.jsx(qu,{control:u.control,name:"themeMode",render:({field:h})=>$.jsxs(Vu,{children:[$.jsx(_v,{className:"font-semibold",children:"Theme Mode"}),$.jsx(Lu,{children:$.jsxs(hT,{className:"flex gap-x-4",onValueChange:h.onChange,value:h.value,children:[$.jsxs("div",{className:"flex items-center space-x-2",children:[$.jsx(dd,{value:"system",id:"system"}),$.jsx(ko,{className:"cursor-pointer",htmlFor:"system",children:"System"})]}),$.jsxs("div",{className:"flex items-center space-x-2",children:[$.jsx(dd,{value:"light",id:"light"}),$.jsx(ko,{className:"cursor-pointer",htmlFor:"light",children:"Light"})]}),$.jsxs("div",{className:"flex items-center space-x-2",children:[$.jsx(dd,{value:"dark",id:"dark"}),$.jsx(ko,{className:"cursor-pointer",htmlFor:"dark",children:"Dark"})]})]})}),$.jsx(Sv,{children:"The theme mode of the extension. If you choose the system, will follow the system theme."}),$.jsx(Uu,{})]})}),$.jsx(Ed,{className:"w-full",type:"submit",children:"Save"})]})})};MD.displayName="ProfileForm";function FI(e,r){if(e==null)return{};var a={},i=Object.keys(e),u,s;for(s=0;s<i.length;s++)u=i[s],!(r.indexOf(u)>=0)&&(a[u]=e[u]);return a}var BI=["color"],$I=F.forwardRef(function(e,r){var a=e.color,i=a===void 0?"currentColor":a,u=FI(e,BI);return F.createElement("svg",Object.assign({width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u,{ref:r}),F.createElement("path",{d:"M7.49933 0.25C3.49635 0.25 0.25 3.49593 0.25 7.50024C0.25 10.703 2.32715 13.4206 5.2081 14.3797C5.57084 14.446 5.70302 14.2222 5.70302 14.0299C5.70302 13.8576 5.69679 13.4019 5.69323 12.797C3.67661 13.235 3.25112 11.825 3.25112 11.825C2.92132 10.9874 2.44599 10.7644 2.44599 10.7644C1.78773 10.3149 2.49584 10.3238 2.49584 10.3238C3.22353 10.375 3.60629 11.0711 3.60629 11.0711C4.25298 12.1788 5.30335 11.8588 5.71638 11.6732C5.78225 11.205 5.96962 10.8854 6.17658 10.7043C4.56675 10.5209 2.87415 9.89918 2.87415 7.12104C2.87415 6.32925 3.15677 5.68257 3.62053 5.17563C3.54576 4.99226 3.29697 4.25521 3.69174 3.25691C3.69174 3.25691 4.30015 3.06196 5.68522 3.99973C6.26337 3.83906 6.8838 3.75895 7.50022 3.75583C8.1162 3.75895 8.73619 3.83906 9.31523 3.99973C10.6994 3.06196 11.3069 3.25691 11.3069 3.25691C11.7026 4.25521 11.4538 4.99226 11.3795 5.17563C11.8441 5.68257 12.1245 6.32925 12.1245 7.12104C12.1245 9.9063 10.4292 10.5192 8.81452 10.6985C9.07444 10.9224 9.30633 11.3648 9.30633 12.0413C9.30633 13.0102 9.29742 13.7922 9.29742 14.0299C9.29742 14.2239 9.42828 14.4496 9.79591 14.3788C12.6746 13.4179 14.75 10.7025 14.75 7.50024C14.75 3.49593 11.5036 0.25 7.49933 0.25Z",fill:i,fillRule:"evenodd",clipRule:"evenodd"}))});const xD=()=>$.jsx("div",{className:"fixed inset-x-1 bottom-4 mx-auto flex w-fit",children:$.jsx(Ed,{asChild:!0,size:"lg",variant:"ghost",className:"rounded-full px-3 text-xl font-semibold text-primary",children:$.jsxs(Sm,{href:"https://github.com/SapienXai/GhostChat",children:[$.jsx($I,{className:"mr-1 size-6"}),"Github"]})})});xD.displayName="BadgeList";const HI=({number:e=20,minDelay:r=.2,maxDelay:a=1.2,minDuration:i=2,maxDuration:u=10,angle:s=215,className:l})=>{const[c,f]=F.useState([]);return F.useEffect(()=>{const h=[...new Array(e)].map(()=>({"--angle":-s+"deg",top:"-5%",left:`calc(0% + ${Math.floor(Math.random()*window.innerWidth)}px)`,animationDelay:Math.random()*(a-r)+r+"s",animationDuration:Math.floor(Math.random()*(u-i)+i)+"s"}));f(h)},[e,r,a,i,u,s]),$.jsx($.Fragment,{children:[...c].map((h,m)=>$.jsx("span",{style:{...h},className:nr("pointer-events-none absolute size-0.5 rotate-[var(--angle)] animate-meteor rounded-full bg-zinc-500 shadow-[0_0_0_1px_#ffffff10]",l),children:$.jsx("div",{className:"pointer-events-none absolute top-1/2 -z-10 h-px w-[50px] -translate-y-1/2 bg-gradient-to-r from-zinc-500 to-transparent"})},m))})},jD=({children:e})=>$.jsxs("div",{className:"h-screen w-screen bg-gray-50 bg-[url(@/assets/images/texture.png)] font-sans dark:bg-slate-950",children:[$.jsx("div",{className:"fixed left-0 top-0 h-full w-screen overflow-hidden",children:$.jsx(HI,{number:30})}),$.jsx("div",{className:"relative z-10 min-h-screen min-w-screen",children:e})]});jD.displayName="Layout";const CD=()=>$.jsx(Ed,{size:"lg",variant:"ghost",className:"fixed right-4 top-2 rounded-full px-3 text-base font-medium text-primary",children:$.jsxs(Sm,{href:"https://github.com/SapienXai/GhostChat",children:["Version: v",gC]})});CD.displayName="VersionLink";function YI(){const e=Xu.useRemeshDomain(_C()),r=Xu.useRemeshQuery(e.query.UserInfoQuery());return $.jsx("div",{className:r==null?void 0:r.themeMode,children:$.jsxs(jD,{children:[$.jsx(CD,{}),$.jsxs(uj,{children:[$.jsx(MD,{}),$.jsx(mk,{richColors:!0,position:"top-center",toastOptions:{classNames:{toast:"dark:bg-slate-950 border dark:border-slate-600"}}})]}),$.jsx(xD,{})]})})}const GI=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,WI=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,QI=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function XI(e,r){if(e==="__proto__"||e==="constructor"&&r&&typeof r=="object"&&"prototype"in r){KI(e);return}return r}function KI(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function Mv(e,r={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const a=e.trim();if(a.length<=9)switch(a.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!QI.test(e)){if(r.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(GI.test(e)||WI.test(e)){if(r.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,XI)}return JSON.parse(e)}catch(i){if(r.strict)throw i;return e}}function ZI(e){return!e||typeof e.then!="function"?Promise.resolve(e):e}function rr(e,...r){try{return ZI(e(...r))}catch(a){return Promise.reject(a)}}function JI(e){const r=typeof e;return e===null||r!=="object"&&r!=="function"}function e8(e){const r=Object.getPrototypeOf(e);return!r||r.isPrototypeOf(Object)}function qv(e){if(JI(e))return String(e);if(e8(e)||Array.isArray(e))return JSON.stringify(e);if(typeof e.toJSON=="function")return qv(e.toJSON());throw new Error("[unstorage] Cannot stringify value!")}const Kb="base64:";function t8(e){return typeof e=="string"?e:Kb+a8(e)}function r8(e){return typeof e!="string"||!e.startsWith(Kb)?e:n8(e.slice(Kb.length))}function n8(e){return globalThis.Buffer?Buffer.from(e,"base64"):Uint8Array.from(globalThis.atob(e),r=>r.codePointAt(0))}function a8(e){return globalThis.Buffer?Buffer.from(e).toString("base64"):globalThis.btoa(String.fromCodePoint(...e))}function Br(e){var r;return e&&((r=e.split("?")[0])==null?void 0:r.replace(/[/\\]/g,":").replace(/:+/g,":").replace(/^:|:$/g,""))||""}function i8(...e){return Br(e.join(":"))}function xv(e){return e=Br(e),e?e+":":""}function o8(e,r){if(r===void 0)return!0;let a=0,i=e.indexOf(":");for(;i>-1;)a++,i=e.indexOf(":",i+1);return a<=r}function u8(e,r){return r?e.startsWith(r)&&e[e.length-1]!=="$":e[e.length-1]!=="$"}const s8="memory",l8=()=>{const e=new Map;return{name:s8,getInstance:()=>e,hasItem(r){return e.has(r)},getItem(r){return e.get(r)??null},getItemRaw(r){return e.get(r)??null},setItem(r,a){e.set(r,a)},setItemRaw(r,a){e.set(r,a)},removeItem(r){e.delete(r)},getKeys(){return[...e.keys()]},clear(){e.clear()},dispose(){e.clear()}}};function T0(e={}){const r={mounts:{"":e.driver||l8()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},a=h=>{for(const m of r.mountpoints)if(h.startsWith(m))return{base:m,relativeKey:h.slice(m.length),driver:r.mounts[m]};return{base:"",relativeKey:h,driver:r.mounts[""]}},i=(h,m)=>r.mountpoints.filter(v=>v.startsWith(h)||m&&h.startsWith(v)).map(v=>({relativeBase:h.length>v.length?h.slice(v.length):void 0,mountpoint:v,driver:r.mounts[v]})),u=(h,m)=>{if(r.watching){m=Br(m);for(const v of r.watchListeners)v(h,m)}},s=async()=>{if(!r.watching){r.watching=!0;for(const h in r.mounts)r.unwatch[h]=await MM(r.mounts[h],u,h)}},l=async()=>{if(r.watching){for(const h in r.unwatch)await r.unwatch[h]();r.unwatch={},r.watching=!1}},c=(h,m,v)=>{const y=new Map,g=S=>{let _=y.get(S.base);return _||(_={driver:S.driver,base:S.base,items:[]},y.set(S.base,_)),_};for(const S of h){const _=typeof S=="string",w=Br(_?S:S.key),E=_?void 0:S.value,R=_||!S.options?m:{...m,...S.options},T=a(w);g(T).items.push({key:w,value:E,relativeKey:T.relativeKey,options:R})}return Promise.all([...y.values()].map(S=>v(S))).then(S=>S.flat())},f={hasItem(h,m={}){h=Br(h);const{relativeKey:v,driver:y}=a(h);return rr(y.hasItem,v,m)},getItem(h,m={}){h=Br(h);const{relativeKey:v,driver:y}=a(h);return rr(y.getItem,v,m).then(g=>Mv(g))},getItems(h,m={}){return c(h,m,v=>v.driver.getItems?rr(v.driver.getItems,v.items.map(y=>({key:y.relativeKey,options:y.options})),m).then(y=>y.map(g=>({key:i8(v.base,g.key),value:Mv(g.value)}))):Promise.all(v.items.map(y=>rr(v.driver.getItem,y.relativeKey,y.options).then(g=>({key:y.key,value:Mv(g)})))))},getItemRaw(h,m={}){h=Br(h);const{relativeKey:v,driver:y}=a(h);return y.getItemRaw?rr(y.getItemRaw,v,m):rr(y.getItem,v,m).then(g=>r8(g))},async setItem(h,m,v={}){if(m===void 0)return f.removeItem(h);h=Br(h);const{relativeKey:y,driver:g}=a(h);g.setItem&&(await rr(g.setItem,y,qv(m),v),g.watch||u("update",h))},async setItems(h,m){await c(h,m,async v=>{if(v.driver.setItems)return rr(v.driver.setItems,v.items.map(y=>({key:y.relativeKey,value:qv(y.value),options:y.options})),m);v.driver.setItem&&await Promise.all(v.items.map(y=>rr(v.driver.setItem,y.relativeKey,qv(y.value),y.options)))})},async setItemRaw(h,m,v={}){if(m===void 0)return f.removeItem(h,v);h=Br(h);const{relativeKey:y,driver:g}=a(h);if(g.setItemRaw)await rr(g.setItemRaw,y,m,v);else if(g.setItem)await rr(g.setItem,y,t8(m),v);else return;g.watch||u("update",h)},async removeItem(h,m={}){typeof m=="boolean"&&(m={removeMeta:m}),h=Br(h);const{relativeKey:v,driver:y}=a(h);y.removeItem&&(await rr(y.removeItem,v,m),(m.removeMeta||m.removeMata)&&await rr(y.removeItem,v+"$",m),y.watch||u("remove",h))},async getMeta(h,m={}){typeof m=="boolean"&&(m={nativeOnly:m}),h=Br(h);const{relativeKey:v,driver:y}=a(h),g=Object.create(null);if(y.getMeta&&Object.assign(g,await rr(y.getMeta,v,m)),!m.nativeOnly){const S=await rr(y.getItem,v+"$",m).then(_=>Mv(_));S&&typeof S=="object"&&(typeof S.atime=="string"&&(S.atime=new Date(S.atime)),typeof S.mtime=="string"&&(S.mtime=new Date(S.mtime)),Object.assign(g,S))}return g},setMeta(h,m,v={}){return this.setItem(h+"$",m,v)},removeMeta(h,m={}){return this.removeItem(h+"$",m)},async getKeys(h,m={}){var w;h=xv(h);const v=i(h,!0);let y=[];const g=[];let S=!0;for(const E of v){(w=E.driver.flags)!=null&&w.maxDepth||(S=!1);const R=await rr(E.driver.getKeys,E.relativeBase,m);for(const T of R){const j=E.mountpoint+Br(T);y.some(M=>j.startsWith(M))||g.push(j)}y=[E.mountpoint,...y.filter(T=>!T.startsWith(E.mountpoint))]}const _=m.maxDepth!==void 0&&!S;return g.filter(E=>(!_||o8(E,m.maxDepth))&&u8(E,h))},async clear(h,m={}){h=xv(h),await Promise.all(i(h,!1).map(async v=>{if(v.driver.clear)return rr(v.driver.clear,v.relativeBase,m);if(v.driver.removeItem){const y=await v.driver.getKeys(v.relativeBase||"",m);return Promise.all(y.map(g=>v.driver.removeItem(g,m)))}}))},async dispose(){await Promise.all(Object.values(r.mounts).map(h=>xM(h)))},async watch(h){return await s(),r.watchListeners.push(h),async()=>{r.watchListeners=r.watchListeners.filter(m=>m!==h),r.watchListeners.length===0&&await l()}},async unwatch(){r.watchListeners=[],await l()},mount(h,m){if(h=xv(h),h&&r.mounts[h])throw new Error(`already mounted at ${h}`);return h&&(r.mountpoints.push(h),r.mountpoints.sort((v,y)=>y.length-v.length)),r.mounts[h]=m,r.watching&&Promise.resolve(MM(m,u,h)).then(v=>{r.unwatch[h]=v}).catch(console.error),f},async unmount(h,m=!0){var v,y;h=xv(h),!(!h||!r.mounts[h])&&(r.watching&&h in r.unwatch&&((y=(v=r.unwatch)[h])==null||y.call(v),delete r.unwatch[h]),m&&await xM(r.mounts[h]),r.mountpoints=r.mountpoints.filter(g=>g!==h),delete r.mounts[h])},getMount(h=""){h=Br(h)+":";const m=a(h);return{driver:m.driver,base:m.base}},getMounts(h="",m={}){return h=Br(h),i(h,m.parents).map(y=>({driver:y.driver,base:y.mountpoint}))},keys:(h,m={})=>f.getKeys(h,m),get:(h,m={})=>f.getItem(h,m),set:(h,m,v={})=>f.setItem(h,m,v),has:(h,m={})=>f.hasItem(h,m),del:(h,m={})=>f.removeItem(h,m),remove:(h,m={})=>f.removeItem(h,m)};return f}function MM(e,r,a){return e.watch?e.watch((i,u)=>r(i,a+u)):()=>{}}async function xM(e){typeof e.dispose=="function"&&await rr(e.dispose)}function c8(e,r=":"){return e?e.replace(/[:/\\]/g,r).replace(/^[:/\\]|[:/\\]$/g,""):""}function Zb(e,r,a){const i=new Error(`[unstorage] [${e}] ${r}`,a);return Error.captureStackTrace&&Error.captureStackTrace(i,Zb),i}function f8(e,r){return Array.isArray(r)?Zb(e,`Missing some of the required options ${r.map(a=>"`"+a+"`").join(", ")}`):Zb(e,`Missing required option \`${r}\`.`)}function Wo(e){return new Promise((r,a)=>{e.oncomplete=e.onsuccess=()=>r(e.result),e.onabort=e.onerror=()=>a(e.error)})}function PD(e,r){let a;const i=()=>{if(a)return a;const u=indexedDB.open(e);return u.onupgradeneeded=()=>u.result.createObjectStore(r),a=Wo(u),a.then(s=>{s.onclose=()=>a=void 0},()=>{}),a};return(u,s)=>i().then(l=>s(l.transaction(r,u).objectStore(r)))}let pb;function Zd(){return pb||(pb=PD("keyval-store","keyval")),pb}function yb(e,r=Zd()){return r("readonly",a=>Wo(a.get(e)))}function jM(e,r,a=Zd()){return a("readwrite",i=>(i.put(r,e),Wo(i.transaction)))}function d8(e,r=Zd()){return r("readwrite",a=>(a.delete(e),Wo(a.transaction)))}function h8(e=Zd()){return e("readwrite",r=>(r.clear(),Wo(r.transaction)))}function v8(e,r){return e.openCursor().onsuccess=function(){this.result&&(r(this.result),this.result.continue())},Wo(e.transaction)}function m8(e=Zd()){return e("readonly",r=>{if(r.getAllKeys)return Wo(r.getAllKeys());const a=[];return v8(r,i=>a.push(i.key)).then(()=>a)})}const p8="idb-keyval",y8=(e={})=>{const r=e.base&&e.base.length>0?`${e.base}:`:"",a=u=>r+u;let i;return e.dbName&&e.storeName&&(i=PD(e.dbName,e.storeName)),{name:p8,options:e,async hasItem(u){return await yb(a(u),i)!==void 0},async getItem(u){return await yb(a(u),i)??null},async getItemRaw(u){return await yb(a(u),i)??null},setItem(u,s){return jM(a(u),s,i)},setItemRaw(u,s){return jM(a(u),s,i)},removeItem(u){return d8(a(u),i)},getKeys(){return m8(i)},clear(){return h8(i)}}},CM="localstorage",b8=(e={})=>{var l;const r=e.storage||e.localStorage||e.sessionStorage||((l=e.window||globalThis.window)==null?void 0:l[e.windowKey||"localStorage"]);if(!r)throw f8(CM,"localStorage");const a=e.base?c8(e.base):"",i=c=>(a?`${a}:`:"")+c;let u;const s=()=>{var c;u&&((c=e.window)==null||c.removeEventListener("storage",u)),u=void 0};return{name:CM,options:e,getInstance:()=>r,hasItem(c){return Object.prototype.hasOwnProperty.call(r,i(c))},getItem(c){return r.getItem(i(c))},setItem(c,f){return r.setItem(i(c),f)},removeItem(c){return r.removeItem(i(c))},getKeys(){const c=Object.keys(r);return a?c.filter(f=>f.startsWith(`${a}:`)).map(f=>f.slice(a.length+1)):c},clear(c){const f=[a,c].filter(Boolean).join(":");if(f)for(const h of Object.keys(r))h.startsWith(`${f}:`)&&(r==null||r.removeItem(h));else r.clear()},dispose(){e.window&&u&&e.window.removeEventListener("storage",u)},watch(c){return e.window&&(u=f=>{f.key&&c(f.newValue?"update":"remove",f.key)},e.window.addEventListener("storage",u)),s}}},g8=e=>{const r=()=>{if(Rn.storage==null)throw Error("You must request the 'storage' permission to use webExtensionDriver")},a=u=>{Object.entries(u).forEach(([s,{newValue:l}])=>{i.forEach(c=>{c(l?"update":"remove",s)})})},i=new Set;return{name:"web-extension:"+e.storageArea,async hasItem(u){return r(),(await Rn.storage[e.storageArea].get(u))[u]!=null},async getItem(u){return r(),(await Rn.storage[e.storageArea].get(u))[u]??null},async getItems(u){r();const s=await Rn.storage[e.storageArea].get(u.map(l=>l.key));return u.map(l=>({key:l.key,value:s[l.key]??null}))},async setItem(u,s){r(),await Rn.storage[e.storageArea].set({[u]:s??null})},async setItems(u){r();const s=u.reduce((l,c)=>(l[c.key]=c.value??null,l),{});await Rn.storage[e.storageArea].set(s)},async removeItem(u){r(),await Rn.storage[e.storageArea].remove(u)},async getKeys(){r();const u=await Rn.storage[e.storageArea].get();return Object.keys(u)},async clear(){r(),await Rn.storage[e.storageArea].clear()},watch(u){return r(),i.add(u),i.size===1&&Rn.storage[e.storageArea].onChanged.addListener(a),()=>{i.delete(u),i.size===0&&Rn.storage[e.storageArea].onChanged.removeListener(a)}}}},zu=T0({driver:b8({base:`${Yd}:`})}),Iu=T0({driver:y8({base:`${Yd}:`})}),Fu=T0({driver:g8({storageArea:"sync"})});qq.impl({name:Yd,get:zu.getItem,set:zu.setItem,remove:zu.removeItem,clear:zu.clear,watch:async e=>{const r=await zu.watch(e);return addEventListener(GS.APP_OPEN,e),async()=>(removeEventListener(GS.APP_OPEN,e),r())},unwatch:zu.unwatch});Vq.impl({name:Yd,get:Iu.getItem,set:Iu.setItem,remove:Iu.removeItem,clear:Iu.clear,watch:Iu.watch,unwatch:Iu.unwatch});const _8=nC.impl({name:Yd,get:Fu.getItem,set:Fu.setItem,remove:Fu.removeItem,clear:Fu.clear,watch:Fu.watch,unwatch:Fu.unwatch}),S8=ns.Remesh.store({externs:[_8,FC]});I3.createRoot(document.getElementById("root")).render($.jsx(ce.StrictMode,{children:$.jsx(Xu.RemeshRoot,{store:S8,children:$.jsx(YI,{})})}));
