(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))o(h);new MutationObserver(h=>{for(const v of h)if(v.type==="childList")for(const g of v.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&o(g)}).observe(document,{childList:!0,subtree:!0});function s(h){const v={};return h.integrity&&(v.integrity=h.integrity),h.referrerPolicy&&(v.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?v.credentials="include":h.crossOrigin==="anonymous"?v.credentials="omit":v.credentials="same-origin",v}function o(h){if(h.ep)return;h.ep=!0;const v=s(h);fetch(h.href,v)}})();var vv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function p0(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var hp={exports:{}},Md={};/**
 * @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 N0;function Ey(){if(N0)return Md;N0=1;var a=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(o,h,v){var g=null;if(v!==void 0&&(g=""+v),h.key!==void 0&&(g=""+h.key),"key"in h){v={};for(var y in h)y!=="key"&&(v[y]=h[y])}else v=h;return h=v.ref,{$$typeof:a,type:o,key:g,ref:h!==void 0?h:null,props:v}}return Md.Fragment=u,Md.jsx=s,Md.jsxs=s,Md}var D0;function Oy(){return D0||(D0=1,hp.exports=Ey()),hp.exports}var G=Oy(),mp={exports:{}},Pe={};/**
 * @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 B0;function wy(){if(B0)return Pe;B0=1;var a=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),R=Symbol.iterator;function H(M){return M===null||typeof M!="object"?null:(M=R&&M[R]||M["@@iterator"],typeof M=="function"?M:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,j={};function Z(M,Q,ce){this.props=M,this.context=Q,this.refs=j,this.updater=ce||X}Z.prototype.isReactComponent={},Z.prototype.setState=function(M,Q){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,Q,"setState")},Z.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function $(){}$.prototype=Z.prototype;function fe(M,Q,ce){this.props=M,this.context=Q,this.refs=j,this.updater=ce||X}var me=fe.prototype=new $;me.constructor=fe,U(me,Z.prototype),me.isPureReactComponent=!0;var ye=Array.isArray,re={H:null,A:null,T:null,S:null,V:null},de=Object.prototype.hasOwnProperty;function be(M,Q,ce,ee,ge,we){return ce=we.ref,{$$typeof:a,type:M,key:Q,ref:ce!==void 0?ce:null,props:we}}function ne(M,Q){return be(M.type,Q,void 0,void 0,void 0,M.props)}function Oe(M){return typeof M=="object"&&M!==null&&M.$$typeof===a}function Re(M){var Q={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(ce){return Q[ce]})}var Ae=/\/+/g;function Ne(M,Q){return typeof M=="object"&&M!==null&&M.key!=null?Re(""+M.key):Q.toString(36)}function Ge(){}function pe(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(Ge,Ge):(M.status="pending",M.then(function(Q){M.status==="pending"&&(M.status="fulfilled",M.value=Q)},function(Q){M.status==="pending"&&(M.status="rejected",M.reason=Q)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function ae(M,Q,ce,ee,ge){var we=typeof M;(we==="undefined"||we==="boolean")&&(M=null);var _e=!1;if(M===null)_e=!0;else switch(we){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(M.$$typeof){case a:case u:_e=!0;break;case O:return _e=M._init,ae(_e(M._payload),Q,ce,ee,ge)}}if(_e)return ge=ge(M),_e=ee===""?"."+Ne(M,0):ee,ye(ge)?(ce="",_e!=null&&(ce=_e.replace(Ae,"$&/")+"/"),ae(ge,Q,ce,"",function(ut){return ut})):ge!=null&&(Oe(ge)&&(ge=ne(ge,ce+(ge.key==null||M&&M.key===ge.key?"":(""+ge.key).replace(Ae,"$&/")+"/")+_e)),Q.push(ge)),1;_e=0;var qe=ee===""?".":ee+":";if(ye(M))for(var Ue=0;Ue<M.length;Ue++)ee=M[Ue],we=qe+Ne(ee,Ue),_e+=ae(ee,Q,ce,we,ge);else if(Ue=H(M),typeof Ue=="function")for(M=Ue.call(M),Ue=0;!(ee=M.next()).done;)ee=ee.value,we=qe+Ne(ee,Ue++),_e+=ae(ee,Q,ce,we,ge);else if(we==="object"){if(typeof M.then=="function")return ae(pe(M),Q,ce,ee,ge);throw Q=String(M),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return _e}function N(M,Q,ce){if(M==null)return M;var ee=[],ge=0;return ae(M,ee,"","",function(we){return Q.call(ce,we,ge++)}),ee}function K(M){if(M._status===-1){var Q=M._result;Q=Q(),Q.then(function(ce){(M._status===0||M._status===-1)&&(M._status=1,M._result=ce)},function(ce){(M._status===0||M._status===-1)&&(M._status=2,M._result=ce)}),M._status===-1&&(M._status=0,M._result=Q)}if(M._status===1)return M._result.default;throw M._result}var z=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)};function ve(){}return Pe.Children={map:N,forEach:function(M,Q,ce){N(M,function(){Q.apply(this,arguments)},ce)},count:function(M){var Q=0;return N(M,function(){Q++}),Q},toArray:function(M){return N(M,function(Q){return Q})||[]},only:function(M){if(!Oe(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Pe.Component=Z,Pe.Fragment=s,Pe.Profiler=h,Pe.PureComponent=fe,Pe.StrictMode=o,Pe.Suspense=A,Pe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=re,Pe.__COMPILER_RUNTIME={__proto__:null,c:function(M){return re.H.useMemoCache(M)}},Pe.cache=function(M){return function(){return M.apply(null,arguments)}},Pe.cloneElement=function(M,Q,ce){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var ee=U({},M.props),ge=M.key,we=void 0;if(Q!=null)for(_e in Q.ref!==void 0&&(we=void 0),Q.key!==void 0&&(ge=""+Q.key),Q)!de.call(Q,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&Q.ref===void 0||(ee[_e]=Q[_e]);var _e=arguments.length-2;if(_e===1)ee.children=ce;else if(1<_e){for(var qe=Array(_e),Ue=0;Ue<_e;Ue++)qe[Ue]=arguments[Ue+2];ee.children=qe}return be(M.type,ge,void 0,void 0,we,ee)},Pe.createContext=function(M){return M={$$typeof:g,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:v,_context:M},M},Pe.createElement=function(M,Q,ce){var ee,ge={},we=null;if(Q!=null)for(ee in Q.key!==void 0&&(we=""+Q.key),Q)de.call(Q,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ge[ee]=Q[ee]);var _e=arguments.length-2;if(_e===1)ge.children=ce;else if(1<_e){for(var qe=Array(_e),Ue=0;Ue<_e;Ue++)qe[Ue]=arguments[Ue+2];ge.children=qe}if(M&&M.defaultProps)for(ee in _e=M.defaultProps,_e)ge[ee]===void 0&&(ge[ee]=_e[ee]);return be(M,we,void 0,void 0,null,ge)},Pe.createRef=function(){return{current:null}},Pe.forwardRef=function(M){return{$$typeof:y,render:M}},Pe.isValidElement=Oe,Pe.lazy=function(M){return{$$typeof:O,_payload:{_status:-1,_result:M},_init:K}},Pe.memo=function(M,Q){return{$$typeof:S,type:M,compare:Q===void 0?null:Q}},Pe.startTransition=function(M){var Q=re.T,ce={};re.T=ce;try{var ee=M(),ge=re.S;ge!==null&&ge(ce,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(ve,z)}catch(we){z(we)}finally{re.T=Q}},Pe.unstable_useCacheRefresh=function(){return re.H.useCacheRefresh()},Pe.use=function(M){return re.H.use(M)},Pe.useActionState=function(M,Q,ce){return re.H.useActionState(M,Q,ce)},Pe.useCallback=function(M,Q){return re.H.useCallback(M,Q)},Pe.useContext=function(M){return re.H.useContext(M)},Pe.useDebugValue=function(){},Pe.useDeferredValue=function(M,Q){return re.H.useDeferredValue(M,Q)},Pe.useEffect=function(M,Q,ce){var ee=re.H;if(typeof ce=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ee.useEffect(M,Q)},Pe.useId=function(){return re.H.useId()},Pe.useImperativeHandle=function(M,Q,ce){return re.H.useImperativeHandle(M,Q,ce)},Pe.useInsertionEffect=function(M,Q){return re.H.useInsertionEffect(M,Q)},Pe.useLayoutEffect=function(M,Q){return re.H.useLayoutEffect(M,Q)},Pe.useMemo=function(M,Q){return re.H.useMemo(M,Q)},Pe.useOptimistic=function(M,Q){return re.H.useOptimistic(M,Q)},Pe.useReducer=function(M,Q,ce){return re.H.useReducer(M,Q,ce)},Pe.useRef=function(M){return re.H.useRef(M)},Pe.useState=function(M){return re.H.useState(M)},Pe.useSyncExternalStore=function(M,Q,ce){return re.H.useSyncExternalStore(M,Q,ce)},Pe.useTransition=function(){return re.H.useTransition()},Pe.version="19.1.1",Pe}var z0;function Vv(){return z0||(z0=1,mp.exports=wy()),mp.exports}var F=Vv();const W=p0(F);var vp={exports:{}},Td={},gp={exports:{}},pp={};/**
 * @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 L0;function My(){return L0||(L0=1,(function(a){function u(N,K){var z=N.length;N.push(K);e:for(;0<z;){var ve=z-1>>>1,M=N[ve];if(0<h(M,K))N[ve]=K,N[z]=M,z=ve;else break e}}function s(N){return N.length===0?null:N[0]}function o(N){if(N.length===0)return null;var K=N[0],z=N.pop();if(z!==K){N[0]=z;e:for(var ve=0,M=N.length,Q=M>>>1;ve<Q;){var ce=2*(ve+1)-1,ee=N[ce],ge=ce+1,we=N[ge];if(0>h(ee,z))ge<M&&0>h(we,ee)?(N[ve]=we,N[ge]=z,ve=ge):(N[ve]=ee,N[ce]=z,ve=ce);else if(ge<M&&0>h(we,z))N[ve]=we,N[ge]=z,ve=ge;else break e}}return K}function h(N,K){var z=N.sortIndex-K.sortIndex;return z!==0?z:N.id-K.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;a.unstable_now=function(){return v.now()}}else{var g=Date,y=g.now();a.unstable_now=function(){return g.now()-y}}var A=[],S=[],O=1,R=null,H=3,X=!1,U=!1,j=!1,Z=!1,$=typeof setTimeout=="function"?setTimeout:null,fe=typeof clearTimeout=="function"?clearTimeout:null,me=typeof setImmediate<"u"?setImmediate:null;function ye(N){for(var K=s(S);K!==null;){if(K.callback===null)o(S);else if(K.startTime<=N)o(S),K.sortIndex=K.expirationTime,u(A,K);else break;K=s(S)}}function re(N){if(j=!1,ye(N),!U)if(s(A)!==null)U=!0,de||(de=!0,Ne());else{var K=s(S);K!==null&&ae(re,K.startTime-N)}}var de=!1,be=-1,ne=5,Oe=-1;function Re(){return Z?!0:!(a.unstable_now()-Oe<ne)}function Ae(){if(Z=!1,de){var N=a.unstable_now();Oe=N;var K=!0;try{e:{U=!1,j&&(j=!1,fe(be),be=-1),X=!0;var z=H;try{t:{for(ye(N),R=s(A);R!==null&&!(R.expirationTime>N&&Re());){var ve=R.callback;if(typeof ve=="function"){R.callback=null,H=R.priorityLevel;var M=ve(R.expirationTime<=N);if(N=a.unstable_now(),typeof M=="function"){R.callback=M,ye(N),K=!0;break t}R===s(A)&&o(A),ye(N)}else o(A);R=s(A)}if(R!==null)K=!0;else{var Q=s(S);Q!==null&&ae(re,Q.startTime-N),K=!1}}break e}finally{R=null,H=z,X=!1}K=void 0}}finally{K?Ne():de=!1}}}var Ne;if(typeof me=="function")Ne=function(){me(Ae)};else if(typeof MessageChannel<"u"){var Ge=new MessageChannel,pe=Ge.port2;Ge.port1.onmessage=Ae,Ne=function(){pe.postMessage(null)}}else Ne=function(){$(Ae,0)};function ae(N,K){be=$(function(){N(a.unstable_now())},K)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(N){N.callback=null},a.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<N?Math.floor(1e3/N):5},a.unstable_getCurrentPriorityLevel=function(){return H},a.unstable_next=function(N){switch(H){case 1:case 2:case 3:var K=3;break;default:K=H}var z=H;H=K;try{return N()}finally{H=z}},a.unstable_requestPaint=function(){Z=!0},a.unstable_runWithPriority=function(N,K){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var z=H;H=N;try{return K()}finally{H=z}},a.unstable_scheduleCallback=function(N,K,z){var ve=a.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?ve+z:ve):z=ve,N){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=z+M,N={id:O++,callback:K,priorityLevel:N,startTime:z,expirationTime:M,sortIndex:-1},z>ve?(N.sortIndex=z,u(S,N),s(A)===null&&N===s(S)&&(j?(fe(be),be=-1):j=!0,ae(re,z-ve))):(N.sortIndex=M,u(A,N),U||X||(U=!0,de||(de=!0,Ne()))),N},a.unstable_shouldYield=Re,a.unstable_wrapCallback=function(N){var K=H;return function(){var z=H;H=K;try{return N.apply(this,arguments)}finally{H=z}}}})(pp)),pp}var U0;function Ty(){return U0||(U0=1,gp.exports=My()),gp.exports}var bp={exports:{}},$n={};/**
 * @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 j0;function Cy(){if(j0)return $n;j0=1;var a=Vv();function u(A){var S="https://react.dev/errors/"+A;if(1<arguments.length){S+="?args[]="+encodeURIComponent(arguments[1]);for(var O=2;O<arguments.length;O++)S+="&args[]="+encodeURIComponent(arguments[O])}return"Minified React error #"+A+"; visit "+S+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(u(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},h=Symbol.for("react.portal");function v(A,S,O){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:R==null?null:""+R,children:A,containerInfo:S,implementation:O}}var g=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(A,S){if(A==="font")return"";if(typeof S=="string")return S==="use-credentials"?S:""}return $n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,$n.createPortal=function(A,S){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!S||S.nodeType!==1&&S.nodeType!==9&&S.nodeType!==11)throw Error(u(299));return v(A,S,null,O)},$n.flushSync=function(A){var S=g.T,O=o.p;try{if(g.T=null,o.p=2,A)return A()}finally{g.T=S,o.p=O,o.d.f()}},$n.preconnect=function(A,S){typeof A=="string"&&(S?(S=S.crossOrigin,S=typeof S=="string"?S==="use-credentials"?S:"":void 0):S=null,o.d.C(A,S))},$n.prefetchDNS=function(A){typeof A=="string"&&o.d.D(A)},$n.preinit=function(A,S){if(typeof A=="string"&&S&&typeof S.as=="string"){var O=S.as,R=y(O,S.crossOrigin),H=typeof S.integrity=="string"?S.integrity:void 0,X=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;O==="style"?o.d.S(A,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:R,integrity:H,fetchPriority:X}):O==="script"&&o.d.X(A,{crossOrigin:R,integrity:H,fetchPriority:X,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},$n.preinitModule=function(A,S){if(typeof A=="string")if(typeof S=="object"&&S!==null){if(S.as==null||S.as==="script"){var O=y(S.as,S.crossOrigin);o.d.M(A,{crossOrigin:O,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0})}}else S==null&&o.d.M(A)},$n.preload=function(A,S){if(typeof A=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var O=S.as,R=y(O,S.crossOrigin);o.d.L(A,O,{crossOrigin:R,integrity:typeof S.integrity=="string"?S.integrity:void 0,nonce:typeof S.nonce=="string"?S.nonce:void 0,type:typeof S.type=="string"?S.type:void 0,fetchPriority:typeof S.fetchPriority=="string"?S.fetchPriority:void 0,referrerPolicy:typeof S.referrerPolicy=="string"?S.referrerPolicy:void 0,imageSrcSet:typeof S.imageSrcSet=="string"?S.imageSrcSet:void 0,imageSizes:typeof S.imageSizes=="string"?S.imageSizes:void 0,media:typeof S.media=="string"?S.media:void 0})}},$n.preloadModule=function(A,S){if(typeof A=="string")if(S){var O=y(S.as,S.crossOrigin);o.d.m(A,{as:typeof S.as=="string"&&S.as!=="script"?S.as:void 0,crossOrigin:O,integrity:typeof S.integrity=="string"?S.integrity:void 0})}else o.d.m(A)},$n.requestFormReset=function(A){o.d.r(A)},$n.unstable_batchedUpdates=function(A,S){return A(S)},$n.useFormState=function(A,S,O){return g.H.useFormState(A,S,O)},$n.useFormStatus=function(){return g.H.useHostTransitionStatus()},$n.version="19.1.1",$n}var k0;function R1(){if(k0)return bp.exports;k0=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(u){console.error(u)}}return a(),bp.exports=Cy(),bp.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 H0;function Ry(){if(H0)return Td;H0=1;var a=Ty(),u=Vv(),s=R1();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function g(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(v(e)!==e)throw Error(o(188))}function A(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,l=t;;){var c=n.return;if(c===null)break;var d=c.alternate;if(d===null){if(l=c.return,l!==null){n=l;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===n)return y(c),e;if(d===l)return y(c),t;d=d.sibling}throw Error(o(188))}if(n.return!==l.return)n=c,l=d;else{for(var p=!1,x=c.child;x;){if(x===n){p=!0,n=c,l=d;break}if(x===l){p=!0,l=c,n=d;break}x=x.sibling}if(!p){for(x=d.child;x;){if(x===n){p=!0,n=d,l=c;break}if(x===l){p=!0,l=d,n=c;break}x=x.sibling}if(!p)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}var O=Object.assign,R=Symbol.for("react.element"),H=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),$=Symbol.for("react.provider"),fe=Symbol.for("react.consumer"),me=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),Oe=Symbol.for("react.activity"),Re=Symbol.for("react.memo_cache_sentinel"),Ae=Symbol.iterator;function Ne(e){return e===null||typeof e!="object"?null:(e=Ae&&e[Ae]||e["@@iterator"],typeof e=="function"?e:null)}var Ge=Symbol.for("react.client.reference");function pe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Ge?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case Z:return"Profiler";case j:return"StrictMode";case re:return"Suspense";case de:return"SuspenseList";case Oe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case X:return"Portal";case me:return(e.displayName||"Context")+".Provider";case fe:return(e._context.displayName||"Context")+".Consumer";case ye:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case be:return t=e.displayName||null,t!==null?t:pe(e.type)||"Memo";case ne:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}var ae=Array.isArray,N=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},ve=[],M=-1;function Q(e){return{current:e}}function ce(e){0>M||(e.current=ve[M],ve[M]=null,M--)}function ee(e,t){M++,ve[M]=e.current,e.current=t}var ge=Q(null),we=Q(null),_e=Q(null),qe=Q(null);function Ue(e,t){switch(ee(_e,t),ee(we,e),ee(ge,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?qt(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=qt(t),e=Qt(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}ce(ge),ee(ge,e)}function ut(){ce(ge),ce(we),ce(_e)}function Je(e){e.memoizedState!==null&&ee(qe,e);var t=ge.current,n=Qt(t,e.type);t!==n&&(ee(we,e),ee(ge,n))}function St(e){we.current===e&&(ce(ge),ce(we)),qe.current===e&&(ce(qe),eu._currentValue=z)}var Et=Object.prototype.hasOwnProperty,on=a.unstable_scheduleCallback,zt=a.unstable_cancelCallback,yn=a.unstable_shouldYield,Si=a.unstable_requestPaint,gt=a.unstable_now,en=a.unstable_getCurrentPriorityLevel,Vt=a.unstable_ImmediatePriority,nr=a.unstable_UserBlockingPriority,Ot=a.unstable_NormalPriority,En=a.unstable_LowPriority,Nr=a.unstable_IdlePriority,Dr=a.log,Ct=a.unstable_setDisableYieldValue,da=null,Jt=null;function cn(e){if(typeof Dr=="function"&&Ct(e),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode(da,e)}catch{}}var An=Math.clz32?Math.clz32:su,lu=Math.log,uu=Math.LN2;function su(e){return e>>>=0,e===0?32:31-(lu(e)/uu|0)|0}var Kr=256,It=4194304;function Br(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ka(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var c=0,d=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~d,l!==0?c=Br(l):(p&=x,p!==0?c=Br(p):n||(n=x&~e,n!==0&&(c=Br(n))))):(x=l&~d,x!==0?c=Br(x):p!==0?c=Br(p):n||(n=l&~e,n!==0&&(c=Br(n)))),c===0?0:t!==0&&t!==c&&(t&d)===0&&(d=c&-c,n=t&-t,d>=n||d===32&&(n&4194048)!==0)?t:c}function ha(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Nc(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 On(){var e=Kr;return Kr<<=1,(Kr&4194048)===0&&(Kr=256),e}function Bs(){var e=It;return It<<=1,(It&62914560)===0&&(It=4194304),e}function zs(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function al(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ag(e,t,n,l,c,d){var p=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var x=e.entanglements,C=e.expirationTimes,V=e.hiddenUpdates;for(n=p&~n;0<n;){var ie=31-An(n),se=1<<ie;x[ie]=0,C[ie]=-1;var P=V[ie];if(P!==null)for(V[ie]=null,ie=0;ie<P.length;ie++){var I=P[ie];I!==null&&(I.lane&=-536870913)}n&=~se}l!==0&&Qd(e,l,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(p&~t))}function Qd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-An(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&4194090}function Xd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-An(n),c=1<<l;c&t|e[l]&t&&(e[l]|=t),n&=~c}}function Dc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ls(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Zd(){var e=K.p;return e!==0?e:(e=window.event,e===void 0?32:ov(e.type))}function ig(e,t){var n=K.p;try{return K.p=e,t()}finally{K.p=n}}var Ha=Math.random().toString(36).slice(2),fn="__reactFiber$"+Ha,Hn="__reactProps$"+Ha,Ga="__reactContainer$"+Ha,Bc="__reactEvents$"+Ha,lg="__reactListeners$"+Ha,ug="__reactHandles$"+Ha,Kd="__reactResources$"+Ha,ou="__reactMarker$"+Ha;function zc(e){delete e[fn],delete e[Hn],delete e[Bc],delete e[lg],delete e[ug]}function il(e){var t=e[fn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ga]||n[fn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Wm(e);e!==null;){if(n=e[fn])return n;e=Wm(e)}return t}e=n,n=e.parentNode}return null}function ll(e){if(e=e[fn]||e[Ga]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function ul(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function sl(e){var t=e[Kd];return t||(t=e[Kd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function dn(e){e[ou]=!0}var Pd=new Set,Jd={};function Ei(e,t){ol(e,t),ol(e+"Capture",t)}function ol(e,t){for(Jd[e]=t,e=0;e<t.length;e++)Pd.add(t[e])}var Us=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]*$"),Wd={},cu={};function sg(e){return Et.call(cu,e)?!0:Et.call(Wd,e)?!1:Us.test(e)?cu[e]=!0:(Wd[e]=!0,!1)}function js(e,t,n){if(sg(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ks(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Pr(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}var Hs,Lc;function cl(e){if(Hs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Hs=t&&t[1]||"",Lc=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Hs+e+Lc}var Uc=!1;function jc(e,t){if(!e||Uc)return"";Uc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(I){var P=I}Reflect.construct(e,[],se)}else{try{se.call()}catch(I){P=I}e.call(se.prototype)}}else{try{throw Error()}catch(I){P=I}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(I){if(I&&P&&typeof I.stack=="string")return[I.stack,P.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=l.DetermineComponentFrameRoot(),p=d[0],x=d[1];if(p&&x){var C=p.split(`
`),V=x.split(`
`);for(c=l=0;l<C.length&&!C[l].includes("DetermineComponentFrameRoot");)l++;for(;c<V.length&&!V[c].includes("DetermineComponentFrameRoot");)c++;if(l===C.length||c===V.length)for(l=C.length-1,c=V.length-1;1<=l&&0<=c&&C[l]!==V[c];)c--;for(;1<=l&&0<=c;l--,c--)if(C[l]!==V[c]){if(l!==1||c!==1)do if(l--,c--,0>c||C[l]!==V[c]){var ie=`
`+C[l].replace(" at new "," at ");return e.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",e.displayName)),ie}while(1<=l&&0<=c);break}}}finally{Uc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?cl(n):""}function og(e){switch(e.tag){case 26:case 27:case 5:return cl(e.type);case 16:return cl("Lazy");case 13:return cl("Suspense");case 19:return cl("SuspenseList");case 0:case 15:return jc(e.type,!1);case 11:return jc(e.type.render,!1);case 1:return jc(e.type,!0);case 31:return cl("Activity");default:return""}}function kc(e){try{var t="";do t+=og(e),e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function rr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Hc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gc(e){var t=Hc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var c=n.get,d=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(p){l=""+p,d.call(this,p)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(p){l=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Gs(e){e._valueTracker||(e._valueTracker=Gc(e))}function qc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Hc(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Oi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Fd=/[\n"\\]/g;function vr(e){return e.replace(Fd,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function qs(e,t,n,l,c,d,p,x){e.name="",p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.type=p:e.removeAttribute("type"),t!=null?p==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+rr(t)):e.value!==""+rr(t)&&(e.value=""+rr(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?fu(e,p,rr(t)):n!=null?fu(e,p,rr(n)):l!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+rr(x):e.removeAttribute("name")}function Yc(e,t,n,l,c,d,p,x){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||n!=null){if(!(d!=="submit"&&d!=="reset"||t!=null))return;n=n!=null?""+rr(n):"",t=t!=null?""+rr(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??c,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function fu(e,t,n){t==="number"&&Oi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function fl(e,t,n,l){if(e=e.options,t){t={};for(var c=0;c<n.length;c++)t["$"+n[c]]=!0;for(n=0;n<e.length;n++)c=t.hasOwnProperty("$"+e[n].value),e[n].selected!==c&&(e[n].selected=c),c&&l&&(e[n].defaultSelected=!0)}else{for(n=""+rr(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Vc(e,t,n){if(t!=null&&(t=""+rr(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+rr(n):""}function Ys(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(o(92));if(ae(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=rr(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l)}function qa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var dl=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 Ic(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||dl.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Qc(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var c in t)l=t[c],t.hasOwnProperty(c)&&n[c]!==l&&Ic(e,c,l)}else for(var d in t)t.hasOwnProperty(d)&&Ic(e,d,t[d])}function Xc(e){if(e.indexOf("-")===-1)return!1;switch(e){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 $d=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"]]),eh=/^[\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 du(e){return eh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Vs=null;function Zc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hl=null,ml=null;function Kc(e){var t=ll(e);if(t&&(e=t.stateNode)){var n=e[Hn]||null;e:switch(e=t.stateNode,t.type){case"input":if(qs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vr(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var c=l[Hn]||null;if(!c)throw Error(o(90));qs(l,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&qc(l)}break e;case"textarea":Vc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&fl(e,!!n.multiple,t,!1)}}}var Pc=!1;function th(e,t,n){if(Pc)return e(t,n);Pc=!0;try{var l=e(t);return l}finally{if(Pc=!1,(hl!==null||ml!==null)&&(Io(),hl&&(t=hl,e=ml,ml=hl=null,Kc(t),e)))for(t=0;t<e.length;t++)Kc(e[t])}}function hu(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Hn]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mu=!1;if(ma)try{var vu={};Object.defineProperty(vu,"passive",{get:function(){mu=!0}}),window.addEventListener("test",vu,vu),window.removeEventListener("test",vu,vu)}catch{mu=!1}var Ya=null,Jc=null,Is=null;function nh(){if(Is)return Is;var e,t=Jc,n=t.length,l,c="value"in Ya?Ya.value:Ya.textContent,d=c.length;for(e=0;e<n&&t[e]===c[e];e++);var p=n-e;for(l=1;l<=p&&t[n-l]===c[d-l];l++);return Is=c.slice(e,1<l?1-l:void 0)}function wt(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function yt(){return!0}function rh(){return!1}function Gn(e){function t(n,l,c,d,p){this._reactName=n,this._targetInst=c,this.type=l,this.nativeEvent=d,this.target=p,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(d):d[x]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?yt:rh,this.isPropagationStopped=rh,this}return O(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=yt)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=yt)},persist:function(){},isPersistent:yt}),t}var wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qs=Gn(wi),gu=O({},wi,{view:0,detail:0}),cg=Gn(gu),Xs,Wc,Wt,vl=O({},gu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Wt&&(Wt&&e.type==="mousemove"?(Xs=e.screenX-Wt.screenX,Wc=e.screenY-Wt.screenY):Wc=Xs=0,Wt=e),Xs)},movementY:function(e){return"movementY"in e?e.movementY:Wc}}),Va=Gn(vl),ah=O({},vl,{dataTransfer:0}),Fc=Gn(ah),gr=O({},gu,{relatedTarget:0}),Zs=Gn(gr),ih=O({},wi,{animationName:0,elapsedTime:0,pseudoElement:0}),lh=Gn(ih),uh=O({},wi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),sh=Gn(uh),oh=O({},wi,{data:0}),qn=Gn(oh),fg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},pr={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"},dg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ch(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=dg[e])?!!t[e]:!1}function Jr(){return ch}var Ks=O({},gu,{key:function(e){if(e.key){var t=fg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=wt(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?pr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jr,charCode:function(e){return e.type==="keypress"?wt(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?wt(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$c=Gn(Ks),jt=O({},vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),va=Gn(jt),ef=O({},gu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jr}),hg=Gn(ef),tf=O({},wi,{propertyName:0,elapsedTime:0,pseudoElement:0}),mg=Gn(tf),vg=O({},vl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),gg=Gn(vg),fh=O({},wi,{newState:0,oldState:0}),Ps=Gn(fh),gl=[9,13,27,32],nf=ma&&"CompositionEvent"in window,pl=null;ma&&"documentMode"in document&&(pl=document.documentMode);var dh=ma&&"TextEvent"in window&&!pl,Js=ma&&(!nf||pl&&8<pl&&11>=pl),Ws=" ",rf=!1;function hh(e,t){switch(e){case"keyup":return gl.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fs(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ia=!1;function pg(e,t){switch(e){case"compositionend":return Fs(t);case"keypress":return t.which!==32?null:(rf=!0,Ws);case"textInput":return e=t.data,e===Ws&&rf?null:e;default:return null}}function mh(e,t){if(Ia)return e==="compositionend"||!nf&&hh(e,t)?(e=nh(),Is=Jc=Ya=null,Ia=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Js&&t.locale!=="ko"?null:t.data;default:return null}}var ar={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 $s(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ar[e.type]:t==="textarea"}function bl(e,t,n,l){hl?ml?ml.push(l):ml=[l]:hl=l,t=Wo(t,"onChange"),0<t.length&&(n=new Qs("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var yl=null,Al=null;function bg(e){Vm(e,0)}function eo(e){var t=ul(e);if(qc(t))return e}function vh(e,t){if(e==="change")return t}var gh=!1;if(ma){var af;if(ma){var Qa="oninput"in document;if(!Qa){var ph=document.createElement("div");ph.setAttribute("oninput","return;"),Qa=typeof ph.oninput=="function"}af=Qa}else af=!1;gh=af&&(!document.documentMode||9<document.documentMode)}function bh(){yl&&(yl.detachEvent("onpropertychange",to),Al=yl=null)}function to(e){if(e.propertyName==="value"&&eo(Al)){var t=[];bl(t,Al,e,Zc(e)),th(bg,t)}}function yh(e,t,n){e==="focusin"?(bh(),yl=t,Al=n,yl.attachEvent("onpropertychange",to)):e==="focusout"&&bh()}function Xa(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return eo(Al)}function no(e,t){if(e==="click")return eo(t)}function yg(e,t){if(e==="input"||e==="change")return eo(t)}function Ag(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ir=typeof Object.is=="function"?Object.is:Ag;function Wr(e,t){if(ir(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var c=n[l];if(!Et.call(t,c)||!ir(e[c],t[c]))return!1}return!0}function br(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lf(e,t){var n=br(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=br(n)}}function Ah(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ah(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _h(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Oi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Oi(e.document)}return t}function uf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var _g=ma&&"documentMode"in document&&11>=document.documentMode,_l=null,Za=null,L=null,te=!1;function J(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;te||_l==null||_l!==Oi(l)||(l=_l,"selectionStart"in l&&uf(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),L&&Wr(L,l)||(L=l,l=Wo(Za,"onSelect"),0<l.length&&(t=new Qs("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=_l)))}function Se(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var He={animationend:Se("Animation","AnimationEnd"),animationiteration:Se("Animation","AnimationIteration"),animationstart:Se("Animation","AnimationStart"),transitionrun:Se("Transition","TransitionRun"),transitionstart:Se("Transition","TransitionStart"),transitioncancel:Se("Transition","TransitionCancel"),transitionend:Se("Transition","TransitionEnd")},ot={},Ft={};ma&&(Ft=document.createElement("div").style,"AnimationEvent"in window||(delete He.animationend.animation,delete He.animationiteration.animation,delete He.animationstart.animation),"TransitionEvent"in window||delete He.transitionend.transition);function ct(e){if(ot[e])return ot[e];if(!He[e])return e;var t=He[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Ft)return ot[e]=t[n];return e}var ro=ct("animationend"),xh=ct("animationiteration"),lr=ct("animationstart"),ao=ct("transitionrun"),xg=ct("transitionstart"),xl=ct("transitioncancel"),pu=ct("transitionend"),bu=new Map,ht="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(" ");ht.push("scrollEnd");function zr(e,t){bu.set(e,t),Ei(t,[e])}var sf=new WeakMap;function Nn(e,t){if(typeof e=="object"&&e!==null){var n=sf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:kc(t)},sf.set(e,t),t)}return{value:e,source:t,stack:kc(t)}}var yr=[],Sl=0,of=0;function Mi(){for(var e=Sl,t=of=Sl=0;t<e;){var n=yr[t];yr[t++]=null;var l=yr[t];yr[t++]=null;var c=yr[t];yr[t++]=null;var d=yr[t];if(yr[t++]=null,l!==null&&c!==null){var p=l.pending;p===null?c.next=c:(c.next=p.next,p.next=c),l.pending=c}d!==0&&yu(n,c,d)}}function Lr(e,t,n,l){yr[Sl++]=e,yr[Sl++]=t,yr[Sl++]=n,yr[Sl++]=l,of|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function El(e,t,n,l){return Lr(e,t,n,l),Au(e)}function Ti(e,t){return Lr(e,null,null,t),Au(e)}function yu(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var c=!1,d=e.return;d!==null;)d.childLanes|=n,l=d.alternate,l!==null&&(l.childLanes|=n),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&t!==null&&(c=31-An(n),e=d.hiddenUpdates,l=e[c],l===null?e[c]=[t]:l.push(t),t.lane=n|536870912),d):null}function Au(e){if(50<Xl)throw Xl=0,rd=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ci={};function io(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yn(e,t,n,l){return new io(e,t,n,l)}function Ri(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Dn(e,t){var n=e.alternate;return n===null?(n=Yn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function _u(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function lo(e,t,n,l,c,d){var p=0;if(l=e,typeof e=="function")Ri(e)&&(p=1);else if(typeof e=="string")p=$g(e,n,ge.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Oe:return e=Yn(31,n,t,c),e.elementType=Oe,e.lanes=d,e;case U:return Ni(n.children,c,d,t);case j:p=8,c|=24;break;case Z:return e=Yn(12,n,t,c|2),e.elementType=Z,e.lanes=d,e;case re:return e=Yn(13,n,t,c),e.elementType=re,e.lanes=d,e;case de:return e=Yn(19,n,t,c),e.elementType=de,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:case me:p=10;break e;case fe:p=9;break e;case ye:p=11;break e;case be:p=14;break e;case ne:p=16,l=null;break e}p=29,n=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=Yn(p,n,t,c),t.elementType=e,t.type=l,t.lanes=d,t}function Ni(e,t,n,l){return e=Yn(7,e,l,t),e.lanes=n,e}function cf(e,t,n){return e=Yn(6,e,null,t),e.lanes=n,e}function Ol(e,t,n){return t=Yn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ga=[],Ka=0,uo=null,xu=0,Ar=[],_r=0,Lt=null,kt=1,pa="";function Di(e,t){ga[Ka++]=xu,ga[Ka++]=uo,uo=e,xu=t}function ff(e,t,n){Ar[_r++]=kt,Ar[_r++]=pa,Ar[_r++]=Lt,Lt=e;var l=kt;e=pa;var c=32-An(l)-1;l&=~(1<<c),n+=1;var d=32-An(t)+c;if(30<d){var p=c-c%5;d=(l&(1<<p)-1).toString(32),l>>=p,c-=p,kt=1<<32-An(t)+c|n<<c|l,pa=d+e}else kt=1<<d|n<<c|l,pa=e}function df(e){e.return!==null&&(Di(e,1),ff(e,1,0))}function Su(e){for(;e===uo;)uo=ga[--Ka],ga[Ka]=null,xu=ga[--Ka],ga[Ka]=null;for(;e===Lt;)Lt=Ar[--_r],Ar[_r]=null,pa=Ar[--_r],Ar[_r]=null,kt=Ar[--_r],Ar[_r]=null}var tn=null,Ht=null,rt=!1,Ur=null,Vn=!1,wl=Error(o(519));function xr(e){var t=Error(o(418,""));throw Pa(Nn(t,e)),wl}function Sh(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[fn]=e,t[Hn]=l,n){case"dialog":tt("cancel",t),tt("close",t);break;case"iframe":case"object":case"embed":tt("load",t);break;case"video":case"audio":for(n=0;n<fs.length;n++)tt(fs[n],t);break;case"source":tt("error",t);break;case"img":case"image":case"link":tt("error",t),tt("load",t);break;case"details":tt("toggle",t);break;case"input":tt("invalid",t),Yc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Gs(t);break;case"select":tt("invalid",t);break;case"textarea":tt("invalid",t),Ys(t,l.value,l.defaultValue,l.children),Gs(t)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||Xm(t.textContent,n)?(l.popover!=null&&(tt("beforetoggle",t),tt("toggle",t)),l.onScroll!=null&&tt("scroll",t),l.onScrollEnd!=null&&tt("scrollend",t),l.onClick!=null&&(t.onclick=Fo),t=!0):t=!1,t||xr(e)}function Eh(e){for(tn=e.return;tn;)switch(tn.tag){case 5:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:tn=tn.return}}function Eu(e){if(e!==tn)return!1;if(!rt)return Eh(e),rt=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||ec(e.type,e.memoizedProps)),n=!n),n&&Ht&&xr(e),Eh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){Ht=Yr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}Ht=null}}else t===27?(t=Ht,Tr(e.type)?(e=pd,pd=null,Ht=e):Ht=t):Ht=tn?Yr(e.stateNode.nextSibling):null;return!0}function Ou(){Ht=tn=null,rt=!1}function Oh(){var e=Ur;return e!==null&&(Wn===null?Wn=e:Wn.push.apply(Wn,e),Ur=null),e}function Pa(e){Ur===null?Ur=[e]:Ur.push(e)}var Bi=Q(null),Ja=null,_=null;function ur(e,t,n){ee(Bi,t._currentValue),t._currentValue=n}function Sr(e){e._currentValue=Bi.current,ce(Bi)}function In(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function We(e,t,n,l){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var p=c.child;d=d.firstContext;e:for(;d!==null;){var x=d;d=c;for(var C=0;C<t.length;C++)if(x.context===t[C]){d.lanes|=n,x=d.alternate,x!==null&&(x.lanes|=n),In(d.return,n,e),l||(p=null);break e}d=x.next}}else if(c.tag===18){if(p=c.return,p===null)throw Error(o(341));p.lanes|=n,d=p.alternate,d!==null&&(d.lanes|=n),In(p,n,e),p=null}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===e){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}}function wu(e,t,n,l){e=null;for(var c=t,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var p=c.alternate;if(p===null)throw Error(o(387));if(p=p.memoizedProps,p!==null){var x=c.type;ir(c.pendingProps.value,p.value)||(e!==null?e.push(x):e=[x])}}else if(c===qe.current){if(p=c.alternate,p===null)throw Error(o(387));p.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(eu):e=[eu])}c=c.return}e!==null&&We(t,e,n,l),t.flags|=262144}function so(e){for(e=e.firstContext;e!==null;){if(!ir(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function zi(e){Ja=e,_=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Xt(e){return wh(Ja,e)}function oo(e,t){return Ja===null&&zi(e),wh(e,t)}function wh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},_===null){if(e===null)throw Error(o(308));_=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else _=_.next=t;return n}var Sg=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Eg=a.unstable_scheduleCallback,Og=a.unstable_NormalPriority,Rt={$$typeof:me,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hf(){return{controller:new Sg,data:new Map,refCount:0}}function Mu(e){e.refCount--,e.refCount===0&&Eg(Og,function(){e.controller.abort()})}var Tu=null,mf=0,Ml=0,Qn=null;function wg(e,t){if(Tu===null){var n=Tu=[];mf=0,Ml=Jo(),Qn={status:"pending",value:void 0,then:function(l){n.push(l)}}}return mf++,t.then(Mh,Mh),t}function Mh(){if(--mf===0&&Tu!==null){Qn!==null&&(Qn.status="fulfilled");var e=Tu;Tu=null,Ml=0,Qn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Mg(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(l.status="rejected",l.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),l}var Th=N.S;N.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&wg(e,t),Th!==null&&Th(e,t)};var Li=Q(null);function ba(){var e=Li.current;return e!==null?e:Bt.pooledCache}function co(e,t){t===null?ee(Li,Li.current):ee(Li,t.pool)}function Ch(){var e=ba();return e===null?null:{parent:Rt._currentValue,pool:e}}var Bn=Error(o(460)),Rh=Error(o(474)),fo=Error(o(542)),vf={then:function(){}};function Nh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ho(){}function gf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(ho,ho),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bh(e),e;default:if(typeof t.status=="string")t.then(ho,ho);else{if(e=Bt,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=l}},function(l){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Bh(e),e}throw Tl=t,Bn}}var Tl=null;function Dh(){if(Tl===null)throw Error(o(459));var e=Tl;return Tl=null,e}function Bh(e){if(e===Bn||e===fo)throw Error(o(483))}var Fr=!1;function Ui(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cl(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ya(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(_t&2)!==0){var c=l.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),l.pending=t,t=Au(e),yu(e,null,n),t}return Lr(e,l,t,n),Au(e)}function Cu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Xd(e,n)}}function jr(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var c=null,d=null;if(n=n.firstBaseUpdate,n!==null){do{var p={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};d===null?c=d=p:d=d.next=p,n=n.next}while(n!==null);d===null?c=d=t:d=d.next=t}else c=d=t;n={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ru=!1;function kr(){if(Ru){var e=Qn;if(e!==null)throw e}}function wn(e,t,n,l){Ru=!1;var c=e.updateQueue;Fr=!1;var d=c.firstBaseUpdate,p=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var C=x,V=C.next;C.next=null,p===null?d=V:p.next=V,p=C;var ie=e.alternate;ie!==null&&(ie=ie.updateQueue,x=ie.lastBaseUpdate,x!==p&&(x===null?ie.firstBaseUpdate=V:x.next=V,ie.lastBaseUpdate=C))}if(d!==null){var se=c.baseState;p=0,ie=V=C=null,x=d;do{var P=x.lane&-536870913,I=P!==x.lane;if(I?(st&P)===P:(l&P)===P){P!==0&&P===Ml&&(Ru=!0),ie!==null&&(ie=ie.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var je=e,Le=x;P=t;var Tt=n;switch(Le.tag){case 1:if(je=Le.payload,typeof je=="function"){se=je.call(Tt,se,P);break e}se=je;break e;case 3:je.flags=je.flags&-65537|128;case 0:if(je=Le.payload,P=typeof je=="function"?je.call(Tt,se,P):je,P==null)break e;se=O({},se,P);break e;case 2:Fr=!0}}P=x.callback,P!==null&&(e.flags|=64,I&&(e.flags|=8192),I=c.callbacks,I===null?c.callbacks=[P]:I.push(P))}else I={lane:P,tag:x.tag,payload:x.payload,callback:x.callback,next:null},ie===null?(V=ie=I,C=se):ie=ie.next=I,p|=P;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;I=x,x=I.next,I.next=null,c.lastBaseUpdate=I,c.shared.pending=null}}while(!0);ie===null&&(C=se),c.baseState=C,c.firstBaseUpdate=V,c.lastBaseUpdate=ie,d===null&&(c.shared.lanes=0),li|=p,e.lanes=p,e.memoizedState=se}}function zh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function pf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)zh(n[e],t)}var ji=Q(null),Fa=Q(0);function Aa(e,t){e=Ca,ee(Fa,e),ee(ji,t),Ca=e|t.baseLanes}function mo(){ee(Fa,Ca),ee(ji,ji.current)}function bf(){Ca=Fa.current,ce(ji),ce(Fa)}var Hr=0,Ke=null,At=null,at=null,Rl=!1,ki=!1,Mn=!1,Nl=0,$a=0,Er=null,Lh=0;function it(){throw Error(o(321))}function Nu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function yf(e,t,n,l,c,d){return Hr=d,Ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Kh:jf,Mn=!1,d=n(l,c),Mn=!1,ki&&(d=jh(t,n,l,c)),Uh(e),d}function Uh(e){N.H=Yu;var t=At!==null&&At.next!==null;if(Hr=0,at=At=Ke=null,Rl=!1,$a=0,Er=null,t)throw Error(o(300));e===null||hn||(e=e.dependencies,e!==null&&so(e)&&(hn=!0))}function jh(e,t,n,l){Ke=e;var c=0;do{if(ki&&(Er=null),$a=0,ki=!1,25<=c)throw Error(o(301));if(c+=1,at=At=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}N.H=Ph,d=t(n,l)}while(ki);return d}function Af(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?Du(t):t,e=e.useState()[0],(At!==null?At.memoizedState:null)!==e&&(Ke.flags|=1024),t}function _f(){var e=Nl!==0;return Nl=0,e}function Hi(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function vo(e){if(Rl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Rl=!1}Hr=0,at=At=Ke=null,ki=!1,$a=Nl=0,Er=null}function Xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return at===null?Ke.memoizedState=at=e:at=at.next=e,at}function $t(){if(At===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=At.next;var t=at===null?Ke.memoizedState:at.next;if(t!==null)at=t,At=e;else{if(e===null)throw Ke.alternate===null?Error(o(467)):Error(o(310));At=e,e={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},at===null?Ke.memoizedState=at=e:at=at.next=e}return at}function Gi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Du(e){var t=$a;return $a+=1,Er===null&&(Er=[]),e=gf(Er,e,t),t=Ke,(at===null?t.memoizedState:at.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Kh:jf),e}function go(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Du(e);if(e.$$typeof===me)return Xt(e)}throw Error(o(438,String(e)))}function Bu(e){var t=null,n=Ke.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Ke.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Gi(),Ke.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=Re;return t.index++,n}function $r(e,t){return typeof t=="function"?t(e):t}function po(e){var t=$t();return xf(t,At,e)}function xf(e,t,n){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var c=e.baseQueue,d=l.pending;if(d!==null){if(c!==null){var p=c.next;c.next=d.next,d.next=p}t.baseQueue=c=d,l.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var x=p=null,C=null,V=t,ie=!1;do{var se=V.lane&-536870913;if(se!==V.lane?(st&se)===se:(Hr&se)===se){var P=V.revertLane;if(P===0)C!==null&&(C=C.next={lane:0,revertLane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),se===Ml&&(ie=!0);else if((Hr&P)===P){V=V.next,P===Ml&&(ie=!0);continue}else se={lane:0,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},C===null?(x=C=se,p=d):C=C.next=se,Ke.lanes|=P,li|=P;se=V.action,Mn&&n(d,se),d=V.hasEagerState?V.eagerState:n(d,se)}else P={lane:se,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},C===null?(x=C=P,p=d):C=C.next=P,Ke.lanes|=se,li|=se;V=V.next}while(V!==null&&V!==t);if(C===null?p=d:C.next=x,!ir(d,e.memoizedState)&&(hn=!0,ie&&(n=Qn,n!==null)))throw n;e.memoizedState=d,e.baseState=p,e.baseQueue=C,l.lastRenderedState=d}return c===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Sf(e){var t=$t(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var l=n.dispatch,c=n.pending,d=t.memoizedState;if(c!==null){n.pending=null;var p=c=c.next;do d=e(d,p.action),p=p.next;while(p!==c);ir(d,t.memoizedState)||(hn=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),n.lastRenderedState=d}return[d,l]}function Ef(e,t,n){var l=Ke,c=$t(),d=rt;if(d){if(n===void 0)throw Error(o(407));n=n()}else n=t();var p=!ir((At||c).memoizedState,n);p&&(c.memoizedState=n,hn=!0),c=c.queue;var x=yo.bind(null,l,c,e);if(Uu(2048,8,x,[e]),c.getSnapshot!==t||p||at!==null&&at.memoizedState.tag&1){if(l.flags|=2048,Dl(9,Eo(),kh.bind(null,l,c,n,t),null),Bt===null)throw Error(o(349));d||(Hr&124)!==0||bo(l,t,n)}return n}function bo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ke.updateQueue,t===null?(t=Gi(),Ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kh(e,t,n,l){t.value=n,t.getSnapshot=l,Of(t)&&wf(e)}function yo(e,t,n){return n(function(){Of(t)&&wf(e)})}function Of(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch{return!0}}function wf(e){var t=Ti(e,2);t!==null&&dr(t,e,2)}function Ao(e){var t=Xn();if(typeof e=="function"){var n=e;if(e=n(),Mn){cn(!0);try{n()}finally{cn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$r,lastRenderedState:e},t}function zu(e,t,n,l){return e.baseState=n,xf(e,At,typeof l=="function"?l:$r)}function Tg(e,t,n,l,c){if(To(e))throw Error(o(485));if(e=t.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(p){d.listeners.push(p)}};N.T!==null?n(!0):d.isTransition=!1,l(d),n=t.pending,n===null?(d.next=t.pending=d,Mf(t,d)):(d.next=n.next,t.pending=n.next=d)}}function Mf(e,t){var n=t.action,l=t.payload,c=e.state;if(t.isTransition){var d=N.T,p={};N.T=p;try{var x=n(c,l),C=N.S;C!==null&&C(p,x),Tf(e,t,x)}catch(V){_o(e,t,V)}finally{N.T=d}}else try{d=n(c,l),Tf(e,t,d)}catch(V){_o(e,t,V)}}function Tf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Hh(e,t,l)},function(l){return _o(e,t,l)}):Hh(e,t,n)}function Hh(e,t,n){t.status="fulfilled",t.value=n,Gh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Mf(e,n)))}function _o(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Gh(t),t=t.next;while(t!==l)}e.action=null}function Gh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function xo(e,t){return t}function Cf(e,t){if(rt){var n=Bt.formState;if(n!==null){e:{var l=Ke;if(rt){if(Ht){t:{for(var c=Ht,d=Vn;c.nodeType!==8;){if(!d){c=null;break t}if(c=Yr(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){Ht=Yr(c.nextSibling),l=c.data==="F!";break e}}xr(l)}l=!1}l&&(t=n[0])}}return n=Xn(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xo,lastRenderedState:t},n.queue=l,n=zf.bind(null,Ke,l),l.dispatch=n,l=Ao(!1),d=Lf.bind(null,Ke,!1,l.queue),l=Xn(),c={state:t,dispatch:null,action:e,pending:null},l.queue=c,n=Tg.bind(null,Ke,c,d,n),c.dispatch=n,l.memoizedState=e,[t,n,!1]}function So(e){var t=$t();return qh(t,At,e)}function qh(e,t,n){if(t=xf(e,t,xo)[0],e=po($r)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Du(t)}catch(p){throw p===Bn?fo:p}else l=t;t=$t();var c=t.queue,d=c.dispatch;return n!==t.memoizedState&&(Ke.flags|=2048,Dl(9,Eo(),Rf.bind(null,c,n),null)),[l,d,e]}function Rf(e,t){e.action=t}function Ze(e){var t=$t(),n=At;if(n!==null)return qh(t,n,e);$t(),t=t.memoizedState,n=$t();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function Dl(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Ke.updateQueue,t===null&&(t=Gi(),Ke.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Eo(){return{destroy:void 0,resource:void 0}}function Bl(){return $t().memoizedState}function Lu(e,t,n,l){var c=Xn();l=l===void 0?null:l,Ke.flags|=e,c.memoizedState=Dl(1|t,Eo(),n,l)}function Uu(e,t,n,l){var c=$t();l=l===void 0?null:l;var d=c.memoizedState.inst;At!==null&&l!==null&&Nu(l,At.memoizedState.deps)?c.memoizedState=Dl(t,d,n,l):(Ke.flags|=e,c.memoizedState=Dl(1|t,d,n,l))}function Yh(e,t){Lu(8390656,8,e,t)}function sr(e,t){Uu(2048,8,e,t)}function Vh(e,t){return Uu(4,2,e,t)}function ju(e,t){return Uu(4,4,e,t)}function Oo(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nf(e,t,n){n=n!=null?n.concat([e]):null,Uu(4,4,Oo.bind(null,t,e),n)}function wo(){}function Zn(e,t){var n=$t();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&Nu(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function _a(e,t){var n=$t();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&Nu(t,l[1]))return l[0];if(l=e(),Mn){cn(!0);try{e()}finally{cn(!1)}}return n.memoizedState=[l,t],l}function ku(e,t,n){return n===void 0||(Hr&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=xm(),Ke.lanes|=e,li|=e,n)}function Df(e,t,n,l){return ir(n,t)?n:ji.current!==null?(e=ku(e,n,l),ir(e,t)||(hn=!0),e):(Hr&42)===0?(hn=!0,e.memoizedState=n):(e=xm(),Ke.lanes|=e,li|=e,t)}function Hu(e,t,n,l,c){var d=K.p;K.p=d!==0&&8>d?d:8;var p=N.T,x={};N.T=x,Lf(e,!1,t,n);try{var C=c(),V=N.S;if(V!==null&&V(x,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var ie=Mg(C,l);qi(e,t,ie,Cn(e))}else qi(e,t,l,Cn(e))}catch(se){qi(e,t,{then:function(){},status:"rejected",reason:se},Cn())}finally{K.p=d,N.T=p}}function Ih(){}function Gu(e,t,n,l){if(e.tag!==5)throw Error(o(476));var c=Bf(e).queue;Hu(e,c,t,z,n===null?Ih:function(){return Mo(e),n(l)})}function Bf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$r,lastRenderedState:z},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$r,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Mo(e){var t=Bf(e).next.queue;qi(e,t,{},Cn())}function qu(){return Xt(eu)}function xa(){return $t().memoizedState}function Qh(){return $t().memoizedState}function ei(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cn();e=Wa(n);var l=ya(t,e,n);l!==null&&(dr(l,t,n),Cu(l,t,n)),t={cache:hf()},e.payload=t;return}t=t.return}}function Xh(e,t,n){var l=Cn();n={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},To(e)?Zh(t,n):(n=El(e,t,n,l),n!==null&&(dr(n,e,l),Uf(n,t,l)))}function zf(e,t,n){var l=Cn();qi(e,t,n,l)}function qi(e,t,n,l){var c={lane:l,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(To(e))Zh(t,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var p=t.lastRenderedState,x=d(p,n);if(c.hasEagerState=!0,c.eagerState=x,ir(x,p))return Lr(e,t,c,0),Bt===null&&Mi(),!1}catch{}finally{}if(n=El(e,t,c,l),n!==null)return dr(n,e,l),Uf(n,t,l),!0}return!1}function Lf(e,t,n,l){if(l={lane:2,revertLane:Jo(),action:l,hasEagerState:!1,eagerState:null,next:null},To(e)){if(t)throw Error(o(479))}else t=El(e,n,l,2),t!==null&&dr(t,e,2)}function To(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function Zh(e,t){ki=Rl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Uf(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Xd(e,n)}}var Yu={readContext:Xt,use:go,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useLayoutEffect:it,useInsertionEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useSyncExternalStore:it,useId:it,useHostTransitionStatus:it,useFormState:it,useActionState:it,useOptimistic:it,useMemoCache:it,useCacheRefresh:it},Kh={readContext:Xt,use:go,useCallback:function(e,t){return Xn().memoizedState=[e,t===void 0?null:t],e},useContext:Xt,useEffect:Yh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Lu(4194308,4,Oo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Lu(4194308,4,e,t)},useInsertionEffect:function(e,t){Lu(4,2,e,t)},useMemo:function(e,t){var n=Xn();t=t===void 0?null:t;var l=e();if(Mn){cn(!0);try{e()}finally{cn(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Xn();if(n!==void 0){var c=n(t);if(Mn){cn(!0);try{n(t)}finally{cn(!1)}}}else c=t;return l.memoizedState=l.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},l.queue=e,e=e.dispatch=Xh.bind(null,Ke,e),[l.memoizedState,e]},useRef:function(e){var t=Xn();return e={current:e},t.memoizedState=e},useState:function(e){e=Ao(e);var t=e.queue,n=zf.bind(null,Ke,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:wo,useDeferredValue:function(e,t){var n=Xn();return ku(n,e,t)},useTransition:function(){var e=Ao(!1);return e=Hu.bind(null,Ke,e.queue,!0,!1),Xn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Ke,c=Xn();if(rt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Bt===null)throw Error(o(349));(st&124)!==0||bo(l,t,n)}c.memoizedState=n;var d={value:n,getSnapshot:t};return c.queue=d,Yh(yo.bind(null,l,d,e),[e]),l.flags|=2048,Dl(9,Eo(),kh.bind(null,l,d,n,t),null),n},useId:function(){var e=Xn(),t=Bt.identifierPrefix;if(rt){var n=pa,l=kt;n=(l&~(1<<32-An(l)-1)).toString(32)+n,t="«"+t+"R"+n,n=Nl++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=Lh++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:qu,useFormState:Cf,useActionState:Cf,useOptimistic:function(e){var t=Xn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Lf.bind(null,Ke,!0,n),n.dispatch=t,[e,t]},useMemoCache:Bu,useCacheRefresh:function(){return Xn().memoizedState=ei.bind(null,Ke)}},jf={readContext:Xt,use:go,useCallback:Zn,useContext:Xt,useEffect:sr,useImperativeHandle:Nf,useInsertionEffect:Vh,useLayoutEffect:ju,useMemo:_a,useReducer:po,useRef:Bl,useState:function(){return po($r)},useDebugValue:wo,useDeferredValue:function(e,t){var n=$t();return Df(n,At.memoizedState,e,t)},useTransition:function(){var e=po($r)[0],t=$t().memoizedState;return[typeof e=="boolean"?e:Du(e),t]},useSyncExternalStore:Ef,useId:xa,useHostTransitionStatus:qu,useFormState:So,useActionState:So,useOptimistic:function(e,t){var n=$t();return zu(n,At,e,t)},useMemoCache:Bu,useCacheRefresh:Qh},Ph={readContext:Xt,use:go,useCallback:Zn,useContext:Xt,useEffect:sr,useImperativeHandle:Nf,useInsertionEffect:Vh,useLayoutEffect:ju,useMemo:_a,useReducer:Sf,useRef:Bl,useState:function(){return Sf($r)},useDebugValue:wo,useDeferredValue:function(e,t){var n=$t();return At===null?ku(n,e,t):Df(n,At.memoizedState,e,t)},useTransition:function(){var e=Sf($r)[0],t=$t().memoizedState;return[typeof e=="boolean"?e:Du(e),t]},useSyncExternalStore:Ef,useId:xa,useHostTransitionStatus:qu,useFormState:Ze,useActionState:Ze,useOptimistic:function(e,t){var n=$t();return At!==null?zu(n,At,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Bu,useCacheRefresh:Qh},nn=null,Kn=0;function Co(e){var t=Kn;return Kn+=1,nn===null&&(nn=[]),gf(nn,e,t)}function Vu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Yi(e,t){throw t.$$typeof===R?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Vi(e){var t=e._init;return t(e._payload)}function kf(e){function t(k,B){if(e){var Y=k.deletions;Y===null?(k.deletions=[B],k.flags|=16):Y.push(B)}}function n(k,B){if(!e)return null;for(;B!==null;)t(k,B),B=B.sibling;return null}function l(k){for(var B=new Map;k!==null;)k.key!==null?B.set(k.key,k):B.set(k.index,k),k=k.sibling;return B}function c(k,B){return k=Dn(k,B),k.index=0,k.sibling=null,k}function d(k,B,Y){return k.index=Y,e?(Y=k.alternate,Y!==null?(Y=Y.index,Y<B?(k.flags|=67108866,B):Y):(k.flags|=67108866,B)):(k.flags|=1048576,B)}function p(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function x(k,B,Y,le){return B===null||B.tag!==6?(B=cf(Y,k.mode,le),B.return=k,B):(B=c(B,Y),B.return=k,B)}function C(k,B,Y,le){var Me=Y.type;return Me===U?ie(k,B,Y.props.children,le,Y.key):B!==null&&(B.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===ne&&Vi(Me)===B.type)?(B=c(B,Y.props),Vu(B,Y),B.return=k,B):(B=lo(Y.type,Y.key,Y.props,null,k.mode,le),Vu(B,Y),B.return=k,B)}function V(k,B,Y,le){return B===null||B.tag!==4||B.stateNode.containerInfo!==Y.containerInfo||B.stateNode.implementation!==Y.implementation?(B=Ol(Y,k.mode,le),B.return=k,B):(B=c(B,Y.children||[]),B.return=k,B)}function ie(k,B,Y,le,Me){return B===null||B.tag!==7?(B=Ni(Y,k.mode,le,Me),B.return=k,B):(B=c(B,Y),B.return=k,B)}function se(k,B,Y){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=cf(""+B,k.mode,Y),B.return=k,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case H:return Y=lo(B.type,B.key,B.props,null,k.mode,Y),Vu(Y,B),Y.return=k,Y;case X:return B=Ol(B,k.mode,Y),B.return=k,B;case ne:var le=B._init;return B=le(B._payload),se(k,B,Y)}if(ae(B)||Ne(B))return B=Ni(B,k.mode,Y,null),B.return=k,B;if(typeof B.then=="function")return se(k,Co(B),Y);if(B.$$typeof===me)return se(k,oo(k,B),Y);Yi(k,B)}return null}function P(k,B,Y,le){var Me=B!==null?B.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Me!==null?null:x(k,B,""+Y,le);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case H:return Y.key===Me?C(k,B,Y,le):null;case X:return Y.key===Me?V(k,B,Y,le):null;case ne:return Me=Y._init,Y=Me(Y._payload),P(k,B,Y,le)}if(ae(Y)||Ne(Y))return Me!==null?null:ie(k,B,Y,le,null);if(typeof Y.then=="function")return P(k,B,Co(Y),le);if(Y.$$typeof===me)return P(k,B,oo(k,Y),le);Yi(k,Y)}return null}function I(k,B,Y,le,Me){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return k=k.get(Y)||null,x(B,k,""+le,Me);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case H:return k=k.get(le.key===null?Y:le.key)||null,C(B,k,le,Me);case X:return k=k.get(le.key===null?Y:le.key)||null,V(B,k,le,Me);case ne:var Fe=le._init;return le=Fe(le._payload),I(k,B,Y,le,Me)}if(ae(le)||Ne(le))return k=k.get(Y)||null,ie(B,k,le,Me,null);if(typeof le.then=="function")return I(k,B,Y,Co(le),Me);if(le.$$typeof===me)return I(k,B,Y,oo(B,le),Me);Yi(B,le)}return null}function je(k,B,Y,le){for(var Me=null,Fe=null,Be=B,ke=B=0,gn=null;Be!==null&&ke<Y.length;ke++){Be.index>ke?(gn=Be,Be=null):gn=Be.sibling;var ft=P(k,Be,Y[ke],le);if(ft===null){Be===null&&(Be=gn);break}e&&Be&&ft.alternate===null&&t(k,Be),B=d(ft,B,ke),Fe===null?Me=ft:Fe.sibling=ft,Fe=ft,Be=gn}if(ke===Y.length)return n(k,Be),rt&&Di(k,ke),Me;if(Be===null){for(;ke<Y.length;ke++)Be=se(k,Y[ke],le),Be!==null&&(B=d(Be,B,ke),Fe===null?Me=Be:Fe.sibling=Be,Fe=Be);return rt&&Di(k,ke),Me}for(Be=l(Be);ke<Y.length;ke++)gn=I(Be,k,ke,Y[ke],le),gn!==null&&(e&&gn.alternate!==null&&Be.delete(gn.key===null?ke:gn.key),B=d(gn,B,ke),Fe===null?Me=gn:Fe.sibling=gn,Fe=gn);return e&&Be.forEach(function(gi){return t(k,gi)}),rt&&Di(k,ke),Me}function Le(k,B,Y,le){if(Y==null)throw Error(o(151));for(var Me=null,Fe=null,Be=B,ke=B=0,gn=null,ft=Y.next();Be!==null&&!ft.done;ke++,ft=Y.next()){Be.index>ke?(gn=Be,Be=null):gn=Be.sibling;var gi=P(k,Be,ft.value,le);if(gi===null){Be===null&&(Be=gn);break}e&&Be&&gi.alternate===null&&t(k,Be),B=d(gi,B,ke),Fe===null?Me=gi:Fe.sibling=gi,Fe=gi,Be=gn}if(ft.done)return n(k,Be),rt&&Di(k,ke),Me;if(Be===null){for(;!ft.done;ke++,ft=Y.next())ft=se(k,ft.value,le),ft!==null&&(B=d(ft,B,ke),Fe===null?Me=ft:Fe.sibling=ft,Fe=ft);return rt&&Di(k,ke),Me}for(Be=l(Be);!ft.done;ke++,ft=Y.next())ft=I(Be,k,ke,ft.value,le),ft!==null&&(e&&ft.alternate!==null&&Be.delete(ft.key===null?ke:ft.key),B=d(ft,B,ke),Fe===null?Me=ft:Fe.sibling=ft,Fe=ft);return e&&Be.forEach(function(cp){return t(k,cp)}),rt&&Di(k,ke),Me}function Tt(k,B,Y,le){if(typeof Y=="object"&&Y!==null&&Y.type===U&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case H:e:{for(var Me=Y.key;B!==null;){if(B.key===Me){if(Me=Y.type,Me===U){if(B.tag===7){n(k,B.sibling),le=c(B,Y.props.children),le.return=k,k=le;break e}}else if(B.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===ne&&Vi(Me)===B.type){n(k,B.sibling),le=c(B,Y.props),Vu(le,Y),le.return=k,k=le;break e}n(k,B);break}else t(k,B);B=B.sibling}Y.type===U?(le=Ni(Y.props.children,k.mode,le,Y.key),le.return=k,k=le):(le=lo(Y.type,Y.key,Y.props,null,k.mode,le),Vu(le,Y),le.return=k,k=le)}return p(k);case X:e:{for(Me=Y.key;B!==null;){if(B.key===Me)if(B.tag===4&&B.stateNode.containerInfo===Y.containerInfo&&B.stateNode.implementation===Y.implementation){n(k,B.sibling),le=c(B,Y.children||[]),le.return=k,k=le;break e}else{n(k,B);break}else t(k,B);B=B.sibling}le=Ol(Y,k.mode,le),le.return=k,k=le}return p(k);case ne:return Me=Y._init,Y=Me(Y._payload),Tt(k,B,Y,le)}if(ae(Y))return je(k,B,Y,le);if(Ne(Y)){if(Me=Ne(Y),typeof Me!="function")throw Error(o(150));return Y=Me.call(Y),Le(k,B,Y,le)}if(typeof Y.then=="function")return Tt(k,B,Co(Y),le);if(Y.$$typeof===me)return Tt(k,B,oo(k,Y),le);Yi(k,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,B!==null&&B.tag===6?(n(k,B.sibling),le=c(B,Y),le.return=k,k=le):(n(k,B),le=cf(Y,k.mode,le),le.return=k,k=le),p(k)):n(k,B)}return function(k,B,Y,le){try{Kn=0;var Me=Tt(k,B,Y,le);return nn=null,Me}catch(Be){if(Be===Bn||Be===fo)throw Be;var Fe=Yn(29,Be,null,k.mode);return Fe.lanes=le,Fe.return=k,Fe}finally{}}}var Ii=kf(!0),Jh=kf(!1),or=Q(null),zn=null;function Or(e){var t=e.alternate;ee(Zt,Zt.current&1),ee(or,e),zn===null&&(t===null||ji.current!==null||t.memoizedState!==null)&&(zn=e)}function Wh(e){if(e.tag===22){if(ee(Zt,Zt.current),ee(or,e),zn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(zn=e)}}else Sa()}function Sa(){ee(Zt,Zt.current),ee(or,or.current)}function ea(e){ce(or),zn===e&&(zn=null),ce(Zt)}var Zt=Q(0);function Iu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Un(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function zl(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:O({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Qu={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Cn(),c=Wa(l);c.payload=t,n!=null&&(c.callback=n),t=ya(e,c,l),t!==null&&(dr(t,e,l),Cu(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Cn(),c=Wa(l);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=ya(e,c,l),t!==null&&(dr(t,e,l),Cu(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cn(),l=Wa(n);l.tag=2,t!=null&&(l.callback=t),t=ya(e,l,n),t!==null&&(dr(t,e,n),Cu(t,e,n))}};function Xu(e,t,n,l,c,d,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,d,p):t.prototype&&t.prototype.isPureReactComponent?!Wr(n,l)||!Wr(c,d):!0}function Fh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Qu.enqueueReplaceState(t,t.state,null)}function ti(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=O({},n));for(var c in e)n[c]===void 0&&(n[c]=e[c])}return n}var Qi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Hf(e){Qi(e)}function Ro(e){console.error(e)}function $h(e){Qi(e)}function Zu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function ta(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function No(e,t,n){return n=Wa(n),n.tag=3,n.payload={element:null},n.callback=function(){Zu(e,t)},n}function Gf(e){return e=Wa(e),e.tag=3,e}function em(e,t,n,l){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var d=l.value;e.payload=function(){return c(d)},e.callback=function(){ta(t,n,l)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){ta(t,n,l),typeof c!="function"&&(ui===null?ui=new Set([this]):ui.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function tm(e,t,n,l,c){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&wu(t,n,c,!0),n=or.current,n!==null){switch(n.tag){case 13:return zn===null?id():n.alternate===null&&Kt===0&&(Kt=3),n.flags&=-257,n.flags|=65536,n.lanes=c,l===vf?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),sd(e,l,c)),!1;case 22:return n.flags|=65536,l===vf?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),sd(e,l,c)),!1}throw Error(o(435,n.tag))}return sd(e,l,c),id(),!1}if(rt)return t=or.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,l!==wl&&(e=Error(o(422),{cause:l}),Pa(Nn(e,n)))):(l!==wl&&(t=Error(o(423),{cause:l}),Pa(Nn(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,l=Nn(l,n),c=No(e.stateNode,l,c),jr(e,c),Kt!==4&&(Kt=2)),!1;var d=Error(o(520),{cause:l});if(d=Nn(d,n),rs===null?rs=[d]:rs.push(d),Kt!==4&&(Kt=2),t===null)return!0;l=Nn(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=No(n.stateNode,l,e),jr(n,e),!1;case 1:if(t=n.type,d=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ui===null||!ui.has(d))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Gf(c),em(c,e,n,l),jr(n,c),!1}n=n.return}while(n!==null);return!1}var nm=Error(o(461)),hn=!1;function Ut(e,t,n,l){t.child=e===null?Jh(t,null,n,l):Ii(t,e.child,n,l)}function Do(e,t,n,l,c){n=n.render;var d=t.ref;if("ref"in l){var p={};for(var x in l)x!=="ref"&&(p[x]=l[x])}else p=l;return zi(t),l=yf(e,t,n,p,d,c),x=_f(),e!==null&&!hn?(Hi(e,t,c),Ea(e,t,c)):(rt&&x&&df(t),t.flags|=1,Ut(e,t,l,c),t.child)}function Bo(e,t,n,l,c){if(e===null){var d=n.type;return typeof d=="function"&&!Ri(d)&&d.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=d,zo(e,t,d,l,c)):(e=lo(n.type,null,l,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Gr(e,c)){var p=d.memoizedProps;if(n=n.compare,n=n!==null?n:Wr,n(p,l)&&e.ref===t.ref)return Ea(e,t,c)}return t.flags|=1,e=Dn(d,l),e.ref=t.ref,e.return=t,t.child=e}function zo(e,t,n,l,c){if(e!==null){var d=e.memoizedProps;if(Wr(d,l)&&e.ref===t.ref)if(hn=!1,t.pendingProps=l=d,Gr(e,c))(e.flags&131072)!==0&&(hn=!0);else return t.lanes=e.lanes,Ea(e,t,c)}return Ll(e,t,n,l,c)}function Ku(e,t,n){var l=t.pendingProps,c=l.children,d=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=d!==null?d.baseLanes|n:n,e!==null){for(c=t.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;t.childLanes=d&~l}else t.childLanes=0,t.child=null;return Xi(e,t,l,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&co(t,d!==null?d.cachePool:null),d!==null?Aa(t,d):mo(),Wh(t);else return t.lanes=t.childLanes=536870912,Xi(e,t,d!==null?d.baseLanes|n:n,n)}else d!==null?(co(t,d.cachePool),Aa(t,d),Sa(),t.memoizedState=null):(e!==null&&co(t,null),mo(),Sa());return Ut(e,t,c,n),t.child}function Xi(e,t,n,l){var c=ba();return c=c===null?null:{parent:Rt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&co(t,null),mo(),Wh(t),e!==null&&wu(e,t,l,!0),null}function ze(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ll(e,t,n,l,c){return zi(t),n=yf(e,t,n,l,void 0,c),l=_f(),e!==null&&!hn?(Hi(e,t,c),Ea(e,t,c)):(rt&&l&&df(t),t.flags|=1,Ut(e,t,n,c),t.child)}function Lo(e,t,n,l,c,d){return zi(t),t.updateQueue=null,n=jh(t,l,n,c),Uh(e),l=_f(),e!==null&&!hn?(Hi(e,t,d),Ea(e,t,d)):(rt&&l&&df(t),t.flags|=1,Ut(e,t,n,d),t.child)}function ni(e,t,n,l,c){if(zi(t),t.stateNode===null){var d=Ci,p=n.contextType;typeof p=="object"&&p!==null&&(d=Xt(p)),d=new n(l,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Qu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=l,d.state=t.memoizedState,d.refs={},Ui(t),p=n.contextType,d.context=typeof p=="object"&&p!==null?Xt(p):Ci,d.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(zl(t,n,p,l),d.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(p=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),p!==d.state&&Qu.enqueueReplaceState(d,d.state,null),wn(t,l,d,c),kr(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){d=t.stateNode;var x=t.memoizedProps,C=ti(n,x);d.props=C;var V=d.context,ie=n.contextType;p=Ci,typeof ie=="object"&&ie!==null&&(p=Xt(ie));var se=n.getDerivedStateFromProps;ie=typeof se=="function"||typeof d.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,ie||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x||V!==p)&&Fh(t,d,l,p),Fr=!1;var P=t.memoizedState;d.state=P,wn(t,l,d,c),kr(),V=t.memoizedState,x||P!==V||Fr?(typeof se=="function"&&(zl(t,n,se,l),V=t.memoizedState),(C=Fr||Xu(t,n,C,l,P,V,p))?(ie||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=V),d.props=l,d.state=V,d.context=p,l=C):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{d=t.stateNode,Cl(e,t),p=t.memoizedProps,ie=ti(n,p),d.props=ie,se=t.pendingProps,P=d.context,V=n.contextType,C=Ci,typeof V=="object"&&V!==null&&(C=Xt(V)),x=n.getDerivedStateFromProps,(V=typeof x=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(p!==se||P!==C)&&Fh(t,d,l,C),Fr=!1,P=t.memoizedState,d.state=P,wn(t,l,d,c),kr();var I=t.memoizedState;p!==se||P!==I||Fr||e!==null&&e.dependencies!==null&&so(e.dependencies)?(typeof x=="function"&&(zl(t,n,x,l),I=t.memoizedState),(ie=Fr||Xu(t,n,ie,l,P,I,C)||e!==null&&e.dependencies!==null&&so(e.dependencies))?(V||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(l,I,C),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(l,I,C)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=I),d.props=l,d.state=I,d.context=C,l=ie):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),l=!1)}return d=l,ze(e,t),l=(t.flags&128)!==0,d||l?(d=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&l?(t.child=Ii(t,e.child,null,c),t.child=Ii(t,null,n,c)):Ut(e,t,n,c),t.memoizedState=d.state,e=t.child):e=Ea(e,t,c),e}function rm(e,t,n,l){return Ou(),t.flags|=256,Ut(e,t,n,l),t.child}var Pu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uo(e){return{baseLanes:e,cachePool:Ch()}}function mn(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Mr),e}function am(e,t,n){var l=t.pendingProps,c=!1,d=(t.flags&128)!==0,p;if((p=d)||(p=e!==null&&e.memoizedState===null?!1:(Zt.current&2)!==0),p&&(c=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(rt){if(c?Or(t):Sa(),rt){var x=Ht,C;if(C=x){e:{for(C=x,x=Vn;C.nodeType!==8;){if(!x){x=null;break e}if(C=Yr(C.nextSibling),C===null){x=null;break e}}x=C}x!==null?(t.memoizedState={dehydrated:x,treeContext:Lt!==null?{id:kt,overflow:pa}:null,retryLane:536870912,hydrationErrors:null},C=Yn(18,null,null,0),C.stateNode=x,C.return=t,t.child=C,tn=t,Ht=null,C=!0):C=!1}C||xr(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return Un(x)?t.lanes=32:t.lanes=536870912,null;ea(t)}return x=l.children,l=l.fallback,c?(Sa(),c=t.mode,x=Ju({mode:"hidden",children:x},c),l=Ni(l,c,n,null),x.return=t,l.return=t,x.sibling=l,t.child=x,c=t.child,c.memoizedState=Uo(n),c.childLanes=mn(e,p,n),t.memoizedState=Pu,l):(Or(t),qf(t,x))}if(C=e.memoizedState,C!==null&&(x=C.dehydrated,x!==null)){if(d)t.flags&256?(Or(t),t.flags&=-257,t=Yf(e,t,n)):t.memoizedState!==null?(Sa(),t.child=e.child,t.flags|=128,t=null):(Sa(),c=l.fallback,x=t.mode,l=Ju({mode:"visible",children:l.children},x),c=Ni(c,x,n,null),c.flags|=2,l.return=t,c.return=t,l.sibling=c,t.child=l,Ii(t,e.child,null,n),l=t.child,l.memoizedState=Uo(n),l.childLanes=mn(e,p,n),t.memoizedState=Pu,t=c);else if(Or(t),Un(x)){if(p=x.nextSibling&&x.nextSibling.dataset,p)var V=p.dgst;p=V,l=Error(o(419)),l.stack="",l.digest=p,Pa({value:l,source:null,stack:null}),t=Yf(e,t,n)}else if(hn||wu(e,t,n,!1),p=(n&e.childLanes)!==0,hn||p){if(p=Bt,p!==null&&(l=n&-n,l=(l&42)!==0?1:Dc(l),l=(l&(p.suspendedLanes|n))!==0?0:l,l!==0&&l!==C.retryLane))throw C.retryLane=l,Ti(e,l),dr(p,e,l),nm;x.data==="$?"||id(),t=Yf(e,t,n)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,Ht=Yr(x.nextSibling),tn=t,rt=!0,Ur=null,Vn=!1,e!==null&&(Ar[_r++]=kt,Ar[_r++]=pa,Ar[_r++]=Lt,kt=e.id,pa=e.overflow,Lt=t),t=qf(t,l.children),t.flags|=4096);return t}return c?(Sa(),c=l.fallback,x=t.mode,C=e.child,V=C.sibling,l=Dn(C,{mode:"hidden",children:l.children}),l.subtreeFlags=C.subtreeFlags&65011712,V!==null?c=Dn(V,c):(c=Ni(c,x,n,null),c.flags|=2),c.return=t,l.return=t,l.sibling=c,t.child=l,l=c,c=t.child,x=e.child.memoizedState,x===null?x=Uo(n):(C=x.cachePool,C!==null?(V=Rt._currentValue,C=C.parent!==V?{parent:V,pool:V}:C):C=Ch(),x={baseLanes:x.baseLanes|n,cachePool:C}),c.memoizedState=x,c.childLanes=mn(e,p,n),t.memoizedState=Pu,l):(Or(t),n=e.child,e=n.sibling,n=Dn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(p=t.deletions,p===null?(t.deletions=[e],t.flags|=16):p.push(e)),t.child=n,t.memoizedState=null,n)}function qf(e,t){return t=Ju({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ju(e,t){return e=Yn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Yf(e,t,n){return Ii(t,e.child,null,n),e=qf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vf(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),In(e.return,t,n)}function If(e,t,n,l,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=n,d.tailMode=c)}function im(e,t,n){var l=t.pendingProps,c=l.revealOrder,d=l.tail;if(Ut(e,t,l.children,n),l=Zt.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Vf(e,n,t);else if(e.tag===19)Vf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(ee(Zt,l),c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Iu(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),If(t,!1,c,n,d);break;case"backwards":for(n=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&Iu(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}If(t,!0,n,null,d);break;case"together":If(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ea(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),li|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(wu(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=Dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Gr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&so(e)))}function Ln(e,t,n){switch(t.tag){case 3:Ue(t,t.stateNode.containerInfo),ur(t,Rt,e.memoizedState.cache),Ou();break;case 27:case 5:Je(t);break;case 4:Ue(t,t.stateNode.containerInfo);break;case 10:ur(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Or(t),t.flags|=128,null):(n&t.child.childLanes)!==0?am(e,t,n):(Or(t),e=Ea(e,t,n),e!==null?e.sibling:null);Or(t);break;case 19:var c=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(wu(e,t,n,!1),l=(n&t.childLanes)!==0),c){if(l)return im(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ee(Zt,Zt.current),l)break;return null;case 22:case 23:return t.lanes=0,Ku(e,t,n);case 24:ur(t,Rt,e.memoizedState.cache)}return Ea(e,t,n)}function jo(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)hn=!0;else{if(!Gr(e,n)&&(t.flags&128)===0)return hn=!1,Ln(e,t,n);hn=(e.flags&131072)!==0}else hn=!1,rt&&(t.flags&1048576)!==0&&ff(t,xu,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,c=l._init;if(l=c(l._payload),t.type=l,typeof l=="function")Ri(l)?(e=ti(l,e),t.tag=1,t=ni(null,t,l,e,n)):(t.tag=0,t=Ll(null,t,l,e,n));else{if(l!=null){if(c=l.$$typeof,c===ye){t.tag=11,t=Do(null,t,l,e,n);break e}else if(c===be){t.tag=14,t=Bo(null,t,l,e,n);break e}}throw t=pe(l)||l,Error(o(306,t,""))}}return t;case 0:return Ll(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,c=ti(l,t.pendingProps),ni(e,t,l,c,n);case 3:e:{if(Ue(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var d=t.memoizedState;c=d.element,Cl(e,t),wn(t,l,null,n);var p=t.memoizedState;if(l=p.cache,ur(t,Rt,l),l!==d.cache&&We(t,[Rt],n,!0),kr(),l=p.element,d.isDehydrated)if(d={element:l,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=rm(e,t,l,n);break e}else if(l!==c){c=Nn(Error(o(424)),t),Pa(c),t=rm(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ht=Yr(e.firstChild),tn=t,rt=!0,Ur=null,Vn=!0,n=Jh(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ou(),l===c){t=Ea(e,t,n);break e}Ut(e,t,l,n)}t=t.child}return t;case 26:return ze(e,t),e===null?(n=tv(t.type,null,t.pendingProps,null))?t.memoizedState=n:rt||(n=t.type,e=t.pendingProps,l=Pi(_e.current).createElement(n),l[fn]=t,l[Hn]=e,ln(l,n,e),dn(l),t.stateNode=l):t.memoizedState=tv(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Je(t),e===null&&rt&&(l=t.stateNode=Fm(t.type,t.pendingProps,_e.current),tn=t,Vn=!0,c=Ht,Tr(t.type)?(pd=c,Ht=Yr(l.firstChild)):Ht=c),Ut(e,t,t.pendingProps.children,n),ze(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&rt&&((c=l=Ht)&&(l=Jm(l,t.type,t.pendingProps,Vn),l!==null?(t.stateNode=l,tn=t,Ht=Yr(l.firstChild),Vn=!1,c=!0):c=!1),c||xr(t)),Je(t),c=t.type,d=t.pendingProps,p=e!==null?e.memoizedProps:null,l=d.children,ec(c,d)?l=null:p!==null&&ec(c,p)&&(t.flags|=32),t.memoizedState!==null&&(c=yf(e,t,Af,null,null,n),eu._currentValue=c),ze(e,t),Ut(e,t,l,n),t.child;case 6:return e===null&&rt&&((e=n=Ht)&&(n=nc(n,t.pendingProps,Vn),n!==null?(t.stateNode=n,tn=t,Ht=null,e=!0):e=!1),e||xr(t)),null;case 13:return am(e,t,n);case 4:return Ue(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ii(t,null,l,n):Ut(e,t,l,n),t.child;case 11:return Do(e,t,t.type,t.pendingProps,n);case 7:return Ut(e,t,t.pendingProps,n),t.child;case 8:return Ut(e,t,t.pendingProps.children,n),t.child;case 12:return Ut(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,ur(t,t.type,l.value),Ut(e,t,l.children,n),t.child;case 9:return c=t.type._context,l=t.pendingProps.children,zi(t),c=Xt(c),l=l(c),t.flags|=1,Ut(e,t,l,n),t.child;case 14:return Bo(e,t,t.type,t.pendingProps,n);case 15:return zo(e,t,t.type,t.pendingProps,n);case 19:return im(e,t,n);case 31:return l=t.pendingProps,n=t.mode,l={mode:l.mode,children:l.children},e===null?(n=Ju(l,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Dn(e.child,l),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Ku(e,t,n);case 24:return zi(t),l=Xt(Rt),e===null?(c=ba(),c===null&&(c=Bt,d=hf(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=n),c=d),t.memoizedState={parent:l,cache:c},Ui(t),ur(t,Rt,c)):((e.lanes&n)!==0&&(Cl(e,t),wn(t,null,null,n),kr()),c=e.memoizedState,d=t.memoizedState,c.parent!==l?(c={parent:l,cache:l},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),ur(t,Rt,l)):(l=d.cache,ur(t,Rt,l),l!==c.cache&&We(t,[Rt],n,!0))),Ut(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Oa(e){e.flags|=4}function ko(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!un(t)){if(t=or.current,t!==null&&((st&4194048)===st?zn!==null:(st&62914560)!==st&&(st&536870912)===0||t!==zn))throw Tl=vf,Rh;e.flags|=8192}}function Ho(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Bs():536870912,e.lanes|=t,Yl|=t)}function Wu(e,t){if(!rt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags&65011712,l|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function lm(e,t,n){var l=t.pendingProps;switch(Su(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Nt(t),null;case 1:return Nt(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Sr(Rt),ut(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Eu(t)?Oa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Oh())),Nt(t),null;case 26:return n=t.memoizedState,e===null?(Oa(t),n!==null?(Nt(t),ko(t,n)):(Nt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Oa(t),Nt(t),ko(t,n)):(Nt(t),t.flags&=-16777217):(e.memoizedProps!==l&&Oa(t),Nt(t),t.flags&=-16777217),null;case 27:St(t),n=_e.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Oa(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Nt(t),null}e=ge.current,Eu(t)?Sh(t):(e=Fm(c,l,n),t.stateNode=e,Oa(t))}return Nt(t),null;case 5:if(St(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Oa(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Nt(t),null}if(e=ge.current,Eu(t))Sh(t);else{switch(c=Pi(_e.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?c.createElement("select",{is:l.is}):c.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?c.createElement(n,{is:l.is}):c.createElement(n)}}e[fn]=t,e[Hn]=l;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=e;e:switch(ln(e,n,l),n){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Oa(t)}}return Nt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Oa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=_e.current,Eu(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,c=tn,c!==null)switch(c.tag){case 27:case 5:l=c.memoizedProps}e[fn]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Xm(e.nodeValue,n)),e||xr(t)}else e=Pi(e).createTextNode(l),e[fn]=t,t.stateNode=e}return Nt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Eu(t),l!==null&&l.dehydrated!==null){if(e===null){if(!c)throw Error(o(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(o(317));c[fn]=t}else Ou(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Nt(t),c=!1}else c=Oh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(ea(t),t):(ea(t),null)}if(ea(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=l!==null,e=e!==null&&e.memoizedState!==null,n){l=t.child,c=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(c=l.alternate.memoizedState.cachePool.pool);var d=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(d=l.memoizedState.cachePool.pool),d!==c&&(l.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Ho(t,t.updateQueue),Nt(t),null;case 4:return ut(),e===null&&hd(t.stateNode.containerInfo),Nt(t),null;case 10:return Sr(t.type),Nt(t),null;case 19:if(ce(Zt),c=t.memoizedState,c===null)return Nt(t),null;if(l=(t.flags&128)!==0,d=c.rendering,d===null)if(l)Wu(c,!1);else{if(Kt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Iu(e),d!==null){for(t.flags|=128,Wu(c,!1),e=d.updateQueue,t.updateQueue=e,Ho(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)_u(n,e),n=n.sibling;return ee(Zt,Zt.current&1|2),t.child}e=e.sibling}c.tail!==null&&gt()>Vl&&(t.flags|=128,l=!0,Wu(c,!1),t.lanes=4194304)}else{if(!l)if(e=Iu(d),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Ho(t,e),Wu(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!rt)return Nt(t),null}else 2*gt()-c.renderingStartTime>Vl&&n!==536870912&&(t.flags|=128,l=!0,Wu(c,!1),t.lanes=4194304);c.isBackwards?(d.sibling=t.child,t.child=d):(e=c.last,e!==null?e.sibling=d:t.child=d,c.last=d)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=gt(),t.sibling=null,e=Zt.current,ee(Zt,l?e&1|2:e&1),t):(Nt(t),null);case 22:case 23:return ea(t),bf(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Nt(t),t.subtreeFlags&6&&(t.flags|=8192)):Nt(t),n=t.updateQueue,n!==null&&Ho(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&ce(Li),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Sr(Rt),Nt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function um(e,t){switch(Su(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Sr(Rt),ut(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return St(t),null;case 13:if(ea(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Ou()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(Zt),null;case 4:return ut(),null;case 10:return Sr(t.type),null;case 22:case 23:return ea(t),bf(),e!==null&&ce(Li),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Sr(Rt),null;case 25:return null;default:return null}}function sm(e,t){switch(Su(t),t.tag){case 3:Sr(Rt),ut();break;case 26:case 27:case 5:St(t);break;case 4:ut();break;case 13:ea(t);break;case 19:ce(Zt);break;case 10:Sr(t.type);break;case 22:case 23:ea(t),bf(),e!==null&&ce(Li);break;case 24:Sr(Rt)}}function Fu(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var c=l.next;n=c;do{if((n.tag&e)===e){l=void 0;var d=n.create,p=n.inst;l=d(),p.destroy=l}n=n.next}while(n!==c)}}catch(x){Dt(t,t.return,x)}}function ri(e,t,n){try{var l=t.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var d=c.next;l=d;do{if((l.tag&e)===e){var p=l.inst,x=p.destroy;if(x!==void 0){p.destroy=void 0,c=t;var C=n,V=x;try{V()}catch(ie){Dt(c,C,ie)}}}l=l.next}while(l!==d)}}catch(ie){Dt(t,t.return,ie)}}function om(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{pf(t,n)}catch(l){Dt(e,e.return,l)}}}function Qf(e,t,n){n.props=ti(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Dt(e,t,l)}}function Ul(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(c){Dt(e,t,c)}}function na(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(c){Dt(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(c){Dt(e,t,c)}else n.current=null}function Go(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(c){Dt(e,e.return,c)}}function qo(e,t,n){try{var l=e.stateNode;Vg(l,e.type,n,t),l[Hn]=t}catch(c){Dt(e,e.return,c)}}function jl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Tr(e.type)||e.tag===4}function $u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Tr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yo(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Fo));else if(l!==4&&(l===27&&Tr(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Yo(e,t,n),e=e.sibling;e!==null;)Yo(e,t,n),e=e.sibling}function es(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&Tr(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(es(e,t,n),e=e.sibling;e!==null;)es(e,t,n),e=e.sibling}function ts(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);ln(t,l,n),t[fn]=e,t[Hn]=n}catch(d){Dt(e,e.return,d)}}var ra=!1,pt=!1,wa=!1,cm=typeof WeakSet=="function"?WeakSet:Set,rn=null;function Cg(e,t){if(e=e.containerInfo,qr=lc,e=_h(e),uf(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var c=l.anchorOffset,d=l.focusNode;l=l.focusOffset;try{n.nodeType,d.nodeType}catch{n=null;break e}var p=0,x=-1,C=-1,V=0,ie=0,se=e,P=null;t:for(;;){for(var I;se!==n||c!==0&&se.nodeType!==3||(x=p+c),se!==d||l!==0&&se.nodeType!==3||(C=p+l),se.nodeType===3&&(p+=se.nodeValue.length),(I=se.firstChild)!==null;)P=se,se=I;for(;;){if(se===e)break t;if(P===n&&++V===c&&(x=p),P===d&&++ie===l&&(C=p),(I=se.nextSibling)!==null)break;se=P,P=se.parentNode}se=I}n=x===-1||C===-1?null:{start:x,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for($o={focusedElem:e,selectionRange:n},lc=!1,rn=t;rn!==null;)if(t=rn,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,rn=e;else for(;rn!==null;){switch(t=rn,d=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,n=t,c=d.memoizedProps,d=d.memoizedState,l=n.stateNode;try{var je=ti(n.type,c,n.elementType===n.type);e=l.getSnapshotBeforeUpdate(je,d),l.__reactInternalSnapshotBeforeUpdate=e}catch(Le){Dt(n,n.return,Le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)gd(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":gd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,rn=e;break}rn=t.return}}function fm(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:ai(e,n),l&4&&Fu(5,n);break;case 1:if(ai(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Dt(n,n.return,p)}else{var c=ti(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Dt(n,n.return,p)}}l&64&&om(n),l&512&&Ul(n,n.return);break;case 3:if(ai(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{pf(e,t)}catch(p){Dt(n,n.return,p)}}break;case 27:t===null&&l&4&&ts(n);case 26:case 5:ai(e,n),t===null&&l&4&&Go(n),l&512&&Ul(n,n.return);break;case 12:ai(e,n);break;case 13:ai(e,n),l&4&&mm(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Zo.bind(null,n),Pl(e,n))));break;case 22:if(l=n.memoizedState!==null||ra,!l){t=t!==null&&t.memoizedState!==null||pt,c=ra;var d=pt;ra=l,(pt=t)&&!d?Ta(e,n,(n.subtreeFlags&8772)!==0):ai(e,n),ra=c,pt=d}break;case 30:break;default:ai(e,n)}}function dm(e){var t=e.alternate;t!==null&&(e.alternate=null,dm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Gt=null,Pn=!1;function Ma(e,t,n){for(n=n.child;n!==null;)hm(e,t,n),n=n.sibling}function hm(e,t,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(da,n)}catch{}switch(n.tag){case 26:pt||na(n,t),Ma(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:pt||na(n,t);var l=Gt,c=Pn;Tr(n.type)&&(Gt=n.stateNode,Pn=!1),Ma(e,t,n),ds(n.stateNode),Gt=l,Pn=c;break;case 5:pt||na(n,t);case 6:if(l=Gt,c=Pn,Gt=null,Ma(e,t,n),Gt=l,Pn=c,Gt!==null)if(Pn)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(n.stateNode)}catch(d){Dt(n,t,d)}else try{Gt.removeChild(n.stateNode)}catch(d){Dt(n,t,d)}break;case 18:Gt!==null&&(Pn?(e=Gt,tc(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),As(e)):tc(Gt,n.stateNode));break;case 4:l=Gt,c=Pn,Gt=n.stateNode.containerInfo,Pn=!0,Ma(e,t,n),Gt=l,Pn=c;break;case 0:case 11:case 14:case 15:pt||ri(2,n,t),pt||ri(4,n,t),Ma(e,t,n);break;case 1:pt||(na(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Qf(n,t,l)),Ma(e,t,n);break;case 21:Ma(e,t,n);break;case 22:pt=(l=pt)||n.memoizedState!==null,Ma(e,t,n),pt=l;break;default:Ma(e,t,n)}}function mm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{As(e)}catch(n){Dt(t,t.return,n)}}function Rg(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cm),t;default:throw Error(o(435,e.tag))}}function Xf(e,t){var n=Rg(e);t.forEach(function(l){var c=Ug.bind(null,e,l);n.has(l)||(n.add(l),l.then(c,c))})}function cr(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var c=n[l],d=e,p=t,x=p;e:for(;x!==null;){switch(x.tag){case 27:if(Tr(x.type)){Gt=x.stateNode,Pn=!1;break e}break;case 5:Gt=x.stateNode,Pn=!1;break e;case 3:case 4:Gt=x.stateNode.containerInfo,Pn=!0;break e}x=x.return}if(Gt===null)throw Error(o(160));hm(d,p,c),Gt=null,Pn=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Zf(t,e),t=t.sibling}var wr=null;function Zf(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:cr(t,e),Jn(e),l&4&&(ri(3,e,e.return),Fu(3,e),ri(5,e,e.return));break;case 1:cr(t,e),Jn(e),l&512&&(pt||n===null||na(n,n.return)),l&64&&ra&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var c=wr;if(cr(t,e),Jn(e),l&512&&(pt||n===null||na(n,n.return)),l&4){var d=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(l){case"title":d=c.getElementsByTagName("title")[0],(!d||d[ou]||d[fn]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(l),c.head.insertBefore(d,c.querySelector("head > title"))),ln(d,l,n),d[fn]=e,dn(d),l=d;break e;case"link":var p=av("link","href",c).get(l+(n.href||""));if(p){for(var x=0;x<p.length;x++)if(d=p[x],d.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&d.getAttribute("rel")===(n.rel==null?null:n.rel)&&d.getAttribute("title")===(n.title==null?null:n.title)&&d.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){p.splice(x,1);break t}}d=c.createElement(l),ln(d,l,n),c.head.appendChild(d);break;case"meta":if(p=av("meta","content",c).get(l+(n.content||""))){for(x=0;x<p.length;x++)if(d=p[x],d.getAttribute("content")===(n.content==null?null:""+n.content)&&d.getAttribute("name")===(n.name==null?null:n.name)&&d.getAttribute("property")===(n.property==null?null:n.property)&&d.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&d.getAttribute("charset")===(n.charSet==null?null:n.charSet)){p.splice(x,1);break t}}d=c.createElement(l),ln(d,l,n),c.head.appendChild(d);break;default:throw Error(o(468,l))}d[fn]=e,dn(d),l=d}e.stateNode=l}else iv(c,e.type,e.stateNode);else e.stateNode=rv(c,l,e.memoizedProps);else d!==l?(d===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):d.count--,l===null?iv(c,e.type,e.stateNode):rv(c,l,e.memoizedProps)):l===null&&e.stateNode!==null&&qo(e,e.memoizedProps,n.memoizedProps)}break;case 27:cr(t,e),Jn(e),l&512&&(pt||n===null||na(n,n.return)),n!==null&&l&4&&qo(e,e.memoizedProps,n.memoizedProps);break;case 5:if(cr(t,e),Jn(e),l&512&&(pt||n===null||na(n,n.return)),e.flags&32){c=e.stateNode;try{qa(c,"")}catch(I){Dt(e,e.return,I)}}l&4&&e.stateNode!=null&&(c=e.memoizedProps,qo(e,c,n!==null?n.memoizedProps:c)),l&1024&&(wa=!0);break;case 6:if(cr(t,e),Jn(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(I){Dt(e,e.return,I)}}break;case 3:if($l=null,c=wr,wr=Xe(t.containerInfo),cr(t,e),wr=c,Jn(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{As(t.containerInfo)}catch(I){Dt(e,e.return,I)}wa&&(wa=!1,vm(e));break;case 4:l=wr,wr=Xe(e.stateNode.containerInfo),cr(t,e),Jn(e),wr=l;break;case 12:cr(t,e),Jn(e);break;case 13:cr(t,e),Jn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(ed=gt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Xf(e,l)));break;case 22:c=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,V=ra,ie=pt;if(ra=V||c,pt=ie||C,cr(t,e),pt=ie,ra=V,Jn(e),l&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||C||ra||pt||Zi(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){C=n=t;try{if(d=C.stateNode,c)p=d.style,typeof p.setProperty=="function"?p.setProperty("display","none","important"):p.display="none";else{x=C.stateNode;var se=C.memoizedProps.style,P=se!=null&&se.hasOwnProperty("display")?se.display:null;x.style.display=P==null||typeof P=="boolean"?"":(""+P).trim()}}catch(I){Dt(C,C.return,I)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=c?"":C.memoizedProps}catch(I){Dt(C,C.return,I)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Xf(e,n))));break;case 19:cr(t,e),Jn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Xf(e,l)));break;case 30:break;case 21:break;default:cr(t,e),Jn(e)}}function Jn(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(jl(l)){n=l;break}l=l.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var c=n.stateNode,d=$u(e);es(e,d,c);break;case 5:var p=n.stateNode;n.flags&32&&(qa(p,""),n.flags&=-33);var x=$u(e);es(e,x,p);break;case 3:case 4:var C=n.stateNode.containerInfo,V=$u(e);Yo(e,V,C);break;default:throw Error(o(161))}}catch(ie){Dt(e,e.return,ie)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ai(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fm(e,t.alternate,t),t=t.sibling}function Zi(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ri(4,t,t.return),Zi(t);break;case 1:na(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Qf(t,t.return,n),Zi(t);break;case 27:ds(t.stateNode);case 26:case 5:na(t,t.return),Zi(t);break;case 22:t.memoizedState===null&&Zi(t);break;case 30:Zi(t);break;default:Zi(t)}e=e.sibling}}function Ta(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,c=e,d=t,p=d.flags;switch(d.tag){case 0:case 11:case 15:Ta(c,d,n),Fu(4,d);break;case 1:if(Ta(c,d,n),l=d,c=l.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(V){Dt(l,l.return,V)}if(l=d,c=l.updateQueue,c!==null){var x=l.stateNode;try{var C=c.shared.hiddenCallbacks;if(C!==null)for(c.shared.hiddenCallbacks=null,c=0;c<C.length;c++)zh(C[c],x)}catch(V){Dt(l,l.return,V)}}n&&p&64&&om(d),Ul(d,d.return);break;case 27:ts(d);case 26:case 5:Ta(c,d,n),n&&l===null&&p&4&&Go(d),Ul(d,d.return);break;case 12:Ta(c,d,n);break;case 13:Ta(c,d,n),n&&p&4&&mm(c,d);break;case 22:d.memoizedState===null&&Ta(c,d,n),Ul(d,d.return);break;case 30:break;default:Ta(c,d,n)}t=t.sibling}}function Kf(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Mu(n))}function Pf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mu(e))}function aa(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gm(e,t,n,l),t=t.sibling}function gm(e,t,n,l){var c=t.flags;switch(t.tag){case 0:case 11:case 15:aa(e,t,n,l),c&2048&&Fu(9,t);break;case 1:aa(e,t,n,l);break;case 3:aa(e,t,n,l),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Mu(e)));break;case 12:if(c&2048){aa(e,t,n,l),e=t.stateNode;try{var d=t.memoizedProps,p=d.id,x=d.onPostCommit;typeof x=="function"&&x(p,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(C){Dt(t,t.return,C)}}else aa(e,t,n,l);break;case 13:aa(e,t,n,l);break;case 23:break;case 22:d=t.stateNode,p=t.alternate,t.memoizedState!==null?d._visibility&2?aa(e,t,n,l):ns(e,t):d._visibility&2?aa(e,t,n,l):(d._visibility|=2,kl(e,t,n,l,(t.subtreeFlags&10256)!==0)),c&2048&&Kf(p,t);break;case 24:aa(e,t,n,l),c&2048&&Pf(t.alternate,t);break;default:aa(e,t,n,l)}}function kl(e,t,n,l,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,p=t,x=n,C=l,V=p.flags;switch(p.tag){case 0:case 11:case 15:kl(d,p,x,C,c),Fu(8,p);break;case 23:break;case 22:var ie=p.stateNode;p.memoizedState!==null?ie._visibility&2?kl(d,p,x,C,c):ns(d,p):(ie._visibility|=2,kl(d,p,x,C,c)),c&&V&2048&&Kf(p.alternate,p);break;case 24:kl(d,p,x,C,c),c&&V&2048&&Pf(p.alternate,p);break;default:kl(d,p,x,C,c)}t=t.sibling}}function ns(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,c=l.flags;switch(l.tag){case 22:ns(n,l),c&2048&&Kf(l.alternate,l);break;case 24:ns(n,l),c&2048&&Pf(l.alternate,l);break;default:ns(n,l)}t=t.sibling}}var Tn=8192;function Hl(e){if(e.subtreeFlags&Tn)for(e=e.child;e!==null;)pm(e),e=e.sibling}function pm(e){switch(e.tag){case 26:Hl(e),e.flags&Tn&&e.memoizedState!==null&&tp(wr,e.memoizedState,e.memoizedProps);break;case 5:Hl(e);break;case 3:case 4:var t=wr;wr=Xe(e.stateNode.containerInfo),Hl(e),wr=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Tn,Tn=16777216,Hl(e),Tn=t):Hl(e));break;default:Hl(e)}}function bm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];rn=l,Am(l,e)}bm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ym(e),e=e.sibling}function ym(e){switch(e.tag){case 0:case 11:case 15:Gl(e),e.flags&2048&&ri(9,e,e.return);break;case 3:Gl(e);break;case 12:Gl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Vo(e)):Gl(e);break;default:Gl(e)}}function Vo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];rn=l,Am(l,e)}bm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ri(8,t,t.return),Vo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Vo(t));break;default:Vo(t)}e=e.sibling}}function Am(e,t){for(;rn!==null;){var n=rn;switch(n.tag){case 0:case 11:case 15:ri(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Mu(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,rn=l;else e:for(n=e;rn!==null;){l=rn;var c=l.sibling,d=l.return;if(dm(l),l===n){rn=null;break e}if(c!==null){c.return=d,rn=c;break e}rn=d}}}var Ng={getCacheForType:function(e){var t=Xt(Rt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Jf=typeof WeakMap=="function"?WeakMap:Map,_t=0,Bt=null,et=null,st=0,xt=0,fr=null,ii=!1,ql=!1,Wf=!1,Ca=0,Kt=0,li=0,Ki=0,Ff=0,Mr=0,Yl=0,rs=null,Wn=null,$f=!1,ed=0,Vl=1/0,as=null,ui=null,_n=0,si=null,Il=null,Ql=0,td=0,nd=null,_m=null,Xl=0,rd=null;function Cn(){if((_t&2)!==0&&st!==0)return st&-st;if(N.T!==null){var e=Ml;return e!==0?e:Jo()}return Zd()}function xm(){Mr===0&&(Mr=(st&536870912)===0||rt?On():536870912);var e=or.current;return e!==null&&(e.flags|=32),Mr}function dr(e,t,n){(e===Bt&&(xt===2||xt===9)||e.cancelPendingCommit!==null)&&(Zl(e,0),oi(e,st,Mr,!1)),al(e,n),((_t&2)===0||e!==Bt)&&(e===Bt&&((_t&2)===0&&(Ki|=n),Kt===4&&oi(e,st,Mr,!1)),ia(e))}function Sm(e,t,n){if((_t&6)!==0)throw Error(o(327));var l=!n&&(t&124)===0&&(t&e.expiredLanes)===0||ha(e,t),c=l?zg(e,t):ld(e,t,!0),d=l;do{if(c===0){ql&&!l&&oi(e,t,0,!1);break}else{if(n=e.current.alternate,d&&!Dg(n)){c=ld(e,t,!1),d=!1;continue}if(c===2){if(d=t,e.errorRecoveryDisabledLanes&d)var p=0;else p=e.pendingLanes&-536870913,p=p!==0?p:p&536870912?536870912:0;if(p!==0){t=p;e:{var x=e;c=rs;var C=x.current.memoizedState.isDehydrated;if(C&&(Zl(x,p).flags|=256),p=ld(x,p,!1),p!==2){if(Wf&&!C){x.errorRecoveryDisabledLanes|=d,Ki|=d,c=4;break e}d=Wn,Wn=c,d!==null&&(Wn===null?Wn=d:Wn.push.apply(Wn,d))}c=p}if(d=!1,c!==2)continue}}if(c===1){Zl(e,0),oi(e,t,0,!0);break}e:{switch(l=e,d=c,d){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:oi(l,t,Mr,!ii);break e;case 2:Wn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=ed+300-gt(),10<c)){if(oi(l,t,Mr,!ii),ka(l,0,!0)!==0)break e;l.timeoutHandle=Zm(Em.bind(null,l,n,Wn,as,$f,t,Mr,Ki,Yl,ii,d,2,-0,0),c);break e}Em(l,n,Wn,as,$f,t,Mr,Ki,Yl,ii,d,0,-0,0)}}break}while(!0);ia(e)}function Em(e,t,n,l,c,d,p,x,C,V,ie,se,P,I){if(e.timeoutHandle=-1,se=t.subtreeFlags,(se&8192||(se&16785408)===16785408)&&(vn={stylesheets:null,count:0,unsuspend:ep},pm(t),se=np(),se!==null)){e.cancelPendingCommit=se(is.bind(null,e,t,d,n,l,c,p,x,C,ie,1,P,I)),oi(e,d,p,!V);return}is(e,t,d,n,l,c,p,x,C)}function Dg(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var c=n[l],d=c.getSnapshot;c=c.value;try{if(!ir(d(),c))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function oi(e,t,n,l){t&=~Ff,t&=~Ki,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var c=t;0<c;){var d=31-An(c),p=1<<d;l[d]=-1,c&=~p}n!==0&&Qd(e,n,t)}function Io(){return(_t&6)===0?(ss(0),!1):!0}function ad(){if(et!==null){if(xt===0)var e=et.return;else e=et,_=Ja=null,vo(e),nn=null,Kn=0,e=et;for(;e!==null;)sm(e.alternate,e),e=e.return;et=null}}function Zl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Qg(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ad(),Bt=e,et=n=Dn(e.current,null),st=t,xt=0,fr=null,ii=!1,ql=ha(e,t),Wf=!1,Yl=Mr=Ff=Ki=li=Kt=0,Wn=rs=null,$f=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var c=31-An(l),d=1<<c;t|=e[c],l&=~d}return Ca=t,Mi(),n}function Om(e,t){Ke=null,N.H=Yu,t===Bn||t===fo?(t=Dh(),xt=3):t===Rh?(t=Dh(),xt=4):xt=t===nm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,fr=t,et===null&&(Kt=1,Zu(e,Nn(t,e.current)))}function wm(){var e=N.H;return N.H=Yu,e===null?Yu:e}function Mm(){var e=N.A;return N.A=Ng,e}function id(){Kt=4,ii||(st&4194048)!==st&&or.current!==null||(ql=!0),(li&134217727)===0&&(Ki&134217727)===0||Bt===null||oi(Bt,st,Mr,!1)}function ld(e,t,n){var l=_t;_t|=2;var c=wm(),d=Mm();(Bt!==e||st!==t)&&(as=null,Zl(e,t)),t=!1;var p=Kt;e:do try{if(xt!==0&&et!==null){var x=et,C=fr;switch(xt){case 8:ad(),p=6;break e;case 3:case 2:case 9:case 6:or.current===null&&(t=!0);var V=xt;if(xt=0,fr=null,Kl(e,x,C,V),n&&ql){p=0;break e}break;default:V=xt,xt=0,fr=null,Kl(e,x,C,V)}}Bg(),p=Kt;break}catch(ie){Om(e,ie)}while(!0);return t&&e.shellSuspendCounter++,_=Ja=null,_t=l,N.H=c,N.A=d,et===null&&(Bt=null,st=0,Mi()),p}function Bg(){for(;et!==null;)ud(et)}function zg(e,t){var n=_t;_t|=2;var l=wm(),c=Mm();Bt!==e||st!==t?(as=null,Vl=gt()+500,Zl(e,t)):ql=ha(e,t);e:do try{if(xt!==0&&et!==null){t=et;var d=fr;t:switch(xt){case 1:xt=0,fr=null,Kl(e,t,d,1);break;case 2:case 9:if(Nh(d)){xt=0,fr=null,Cm(t);break}t=function(){xt!==2&&xt!==9||Bt!==e||(xt=7),ia(e)},d.then(t,t);break e;case 3:xt=7;break e;case 4:xt=5;break e;case 7:Nh(d)?(xt=0,fr=null,Cm(t)):(xt=0,fr=null,Kl(e,t,d,7));break;case 5:var p=null;switch(et.tag){case 26:p=et.memoizedState;case 5:case 27:var x=et;if(!p||un(p)){xt=0,fr=null;var C=x.sibling;if(C!==null)et=C;else{var V=x.return;V!==null?(et=V,Qo(V)):et=null}break t}}xt=0,fr=null,Kl(e,t,d,5);break;case 6:xt=0,fr=null,Kl(e,t,d,6);break;case 8:ad(),Kt=6;break e;default:throw Error(o(462))}}Tm();break}catch(ie){Om(e,ie)}while(!0);return _=Ja=null,N.H=l,N.A=c,_t=n,et!==null?0:(Bt=null,st=0,Mi(),Kt)}function Tm(){for(;et!==null&&!yn();)ud(et)}function ud(e){var t=jo(e.alternate,e,Ca);e.memoizedProps=e.pendingProps,t===null?Qo(e):et=t}function Cm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Lo(n,t,t.pendingProps,t.type,void 0,st);break;case 11:t=Lo(n,t,t.pendingProps,t.type.render,t.ref,st);break;case 5:vo(t);default:sm(n,t),t=et=_u(t,Ca),t=jo(n,t,Ca)}e.memoizedProps=e.pendingProps,t===null?Qo(e):et=t}function Kl(e,t,n,l){_=Ja=null,vo(t),nn=null,Kn=0;var c=t.return;try{if(tm(e,c,t,n,st)){Kt=1,Zu(e,Nn(n,e.current)),et=null;return}}catch(d){if(c!==null)throw et=c,d;Kt=1,Zu(e,Nn(n,e.current)),et=null;return}t.flags&32768?(rt||l===1?e=!0:ql||(st&536870912)!==0?e=!1:(ii=e=!0,(l===2||l===9||l===3||l===6)&&(l=or.current,l!==null&&l.tag===13&&(l.flags|=16384))),Rm(t,e)):Qo(t)}function Qo(e){var t=e;do{if((t.flags&32768)!==0){Rm(t,ii);return}e=t.return;var n=lm(t.alternate,t,Ca);if(n!==null){et=n;return}if(t=t.sibling,t!==null){et=t;return}et=t=e}while(t!==null);Kt===0&&(Kt=5)}function Rm(e,t){do{var n=um(e.alternate,e);if(n!==null){n.flags&=32767,et=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){et=e;return}et=e=n}while(e!==null);Kt=6,et=null}function is(e,t,n,l,c,d,p,x,C){e.cancelPendingCommit=null;do Xo();while(_n!==0);if((_t&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(d=t.lanes|t.childLanes,d|=of,ag(e,n,d,p,x,C),e===Bt&&(et=Bt=null,st=0),Il=t,si=e,Ql=n,td=d,nd=c,_m=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,km(Ot,function(){return Lm(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=N.T,N.T=null,c=K.p,K.p=2,p=_t,_t|=4;try{Cg(e,t,n)}finally{_t=p,K.p=c,N.T=l}}_n=1,Nm(),Dm(),Bm()}}function Nm(){if(_n===1){_n=0;var e=si,t=Il,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=N.T,N.T=null;var l=K.p;K.p=2;var c=_t;_t|=4;try{Zf(t,e);var d=$o,p=_h(e.containerInfo),x=d.focusedElem,C=d.selectionRange;if(p!==x&&x&&x.ownerDocument&&Ah(x.ownerDocument.documentElement,x)){if(C!==null&&uf(x)){var V=C.start,ie=C.end;if(ie===void 0&&(ie=V),"selectionStart"in x)x.selectionStart=V,x.selectionEnd=Math.min(ie,x.value.length);else{var se=x.ownerDocument||document,P=se&&se.defaultView||window;if(P.getSelection){var I=P.getSelection(),je=x.textContent.length,Le=Math.min(C.start,je),Tt=C.end===void 0?Le:Math.min(C.end,je);!I.extend&&Le>Tt&&(p=Tt,Tt=Le,Le=p);var k=lf(x,Le),B=lf(x,Tt);if(k&&B&&(I.rangeCount!==1||I.anchorNode!==k.node||I.anchorOffset!==k.offset||I.focusNode!==B.node||I.focusOffset!==B.offset)){var Y=se.createRange();Y.setStart(k.node,k.offset),I.removeAllRanges(),Le>Tt?(I.addRange(Y),I.extend(B.node,B.offset)):(Y.setEnd(B.node,B.offset),I.addRange(Y))}}}}for(se=[],I=x;I=I.parentNode;)I.nodeType===1&&se.push({element:I,left:I.scrollLeft,top:I.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<se.length;x++){var le=se[x];le.element.scrollLeft=le.left,le.element.scrollTop=le.top}}lc=!!qr,$o=qr=null}finally{_t=c,K.p=l,N.T=n}}e.current=t,_n=2}}function Dm(){if(_n===2){_n=0;var e=si,t=Il,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=N.T,N.T=null;var l=K.p;K.p=2;var c=_t;_t|=4;try{fm(e,t.alternate,t)}finally{_t=c,K.p=l,N.T=n}}_n=3}}function Bm(){if(_n===4||_n===3){_n=0,Si();var e=si,t=Il,n=Ql,l=_m;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?_n=5:(_n=0,Il=si=null,zm(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(ui=null),Ls(n),t=t.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(da,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=N.T,c=K.p,K.p=2,N.T=null;try{for(var d=e.onRecoverableError,p=0;p<l.length;p++){var x=l[p];d(x.value,{componentStack:x.stack})}}finally{N.T=t,K.p=c}}(Ql&3)!==0&&Xo(),ia(e),c=e.pendingLanes,(n&4194090)!==0&&(c&42)!==0?e===rd?Xl++:(Xl=0,rd=e):Xl=0,ss(0)}}function zm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Mu(t)))}function Xo(e){return Nm(),Dm(),Bm(),Lm()}function Lm(){if(_n!==5)return!1;var e=si,t=td;td=0;var n=Ls(Ql),l=N.T,c=K.p;try{K.p=32>n?32:n,N.T=null,n=nd,nd=null;var d=si,p=Ql;if(_n=0,Il=si=null,Ql=0,(_t&6)!==0)throw Error(o(331));var x=_t;if(_t|=4,ym(d.current),gm(d,d.current,p,n),_t=x,ss(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(da,d)}catch{}return!0}finally{K.p=c,N.T=l,zm(e,t)}}function Um(e,t,n){t=Nn(n,t),t=No(e.stateNode,t,2),e=ya(e,t,2),e!==null&&(al(e,2),ia(e))}function Dt(e,t,n){if(e.tag===3)Um(e,e,n);else for(;t!==null;){if(t.tag===3){Um(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ui===null||!ui.has(l))){e=Nn(n,e),n=Gf(2),l=ya(t,n,2),l!==null&&(em(n,l,t,e),al(l,2),ia(l));break}}t=t.return}}function sd(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new Jf;var c=new Set;l.set(t,c)}else c=l.get(t),c===void 0&&(c=new Set,l.set(t,c));c.has(n)||(Wf=!0,c.add(n),e=Lg.bind(null,e,t,n),t.then(e,e))}function Lg(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bt===e&&(st&n)===n&&(Kt===4||Kt===3&&(st&62914560)===st&&300>gt()-ed?(_t&2)===0&&Zl(e,0):Ff|=n,Yl===st&&(Yl=0)),ia(e)}function jm(e,t){t===0&&(t=Bs()),e=Ti(e,t),e!==null&&(al(e,t),ia(e))}function Zo(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),jm(e,n)}function Ug(e,t){var n=0;switch(e.tag){case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),jm(e,n)}function km(e,t){return on(e,t)}var ls=null,ci=null,Ko=!1,us=!1,Po=!1,fi=0;function ia(e){e!==ci&&e.next===null&&(ci===null?ls=ci=e:ci=ci.next=e),us=!0,Ko||(Ko=!0,od())}function ss(e,t){if(!Po&&us){Po=!0;do for(var n=!1,l=ls;l!==null;){if(e!==0){var c=l.pendingLanes;if(c===0)var d=0;else{var p=l.suspendedLanes,x=l.pingedLanes;d=(1<<31-An(42|e)+1)-1,d&=c&~(p&~x),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(n=!0,Gm(l,d))}else d=st,d=ka(l,l===Bt?d:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(d&3)===0||ha(l,d)||(n=!0,Gm(l,d));l=l.next}while(n);Po=!1}}function jg(){os()}function os(){us=Ko=!1;var e=0;fi!==0&&(Ig()&&(e=fi),fi=0);for(var t=gt(),n=null,l=ls;l!==null;){var c=l.next,d=cs(l,t);d===0?(l.next=null,n===null?ls=c:n.next=c,c===null&&(ci=n)):(n=l,(e!==0||(d&3)!==0)&&(us=!0)),l=c}ss(e)}function cs(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var p=31-An(d),x=1<<p,C=c[p];C===-1?((x&n)===0||(x&l)!==0)&&(c[p]=Nc(x,t)):C<=t&&(e.expiredLanes|=x),d&=~x}if(t=Bt,n=st,n=ka(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(xt===2||xt===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&zt(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||ha(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&zt(l),Ls(n)){case 2:case 8:n=nr;break;case 32:n=Ot;break;case 268435456:n=Nr;break;default:n=Ot}return l=Hm.bind(null,e),n=on(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&zt(l),e.callbackPriority=2,e.callbackNode=null,2}function Hm(e,t){if(_n!==0&&_n!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xo()&&e.callbackNode!==n)return null;var l=st;return l=ka(e,e===Bt?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Sm(e,l,t),cs(e,gt()),e.callbackNode!=null&&e.callbackNode===n?Hm.bind(null,e):null)}function Gm(e,t){if(Xo())return null;Sm(e,t,!0)}function od(){Xg(function(){(_t&6)!==0?on(Vt,jg):os()})}function Jo(){return fi===0&&(fi=On()),fi}function qm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:du(""+e)}function Ym(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function kg(e,t,n,l,c){if(t==="submit"&&n&&n.stateNode===c){var d=qm((c[Hn]||null).action),p=l.submitter;p&&(t=(t=p[Hn]||null)?qm(t.formAction):p.getAttribute("formAction"),t!==null&&(d=t,p=null));var x=new Qs("action","action",null,l,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(fi!==0){var C=p?Ym(c,p):new FormData(c);Gu(n,{pending:!0,data:C,method:c.method,action:d},null,C)}}else typeof d=="function"&&(x.preventDefault(),C=p?Ym(c,p):new FormData(c),Gu(n,{pending:!0,data:C,method:c.method,action:d},d,C))},currentTarget:c}]})}}for(var cd=0;cd<ht.length;cd++){var fd=ht[cd],Hg=fd.toLowerCase(),Gg=fd[0].toUpperCase()+fd.slice(1);zr(Hg,"on"+Gg)}zr(ro,"onAnimationEnd"),zr(xh,"onAnimationIteration"),zr(lr,"onAnimationStart"),zr("dblclick","onDoubleClick"),zr("focusin","onFocus"),zr("focusout","onBlur"),zr(ao,"onTransitionRun"),zr(xg,"onTransitionStart"),zr(xl,"onTransitionCancel"),zr(pu,"onTransitionEnd"),ol("onMouseEnter",["mouseout","mouseover"]),ol("onMouseLeave",["mouseout","mouseover"]),ol("onPointerEnter",["pointerout","pointerover"]),ol("onPointerLeave",["pointerout","pointerover"]),Ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ei("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fs="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(" "),qg=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fs));function Vm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],c=l.event;l=l.listeners;e:{var d=void 0;if(t)for(var p=l.length-1;0<=p;p--){var x=l[p],C=x.instance,V=x.currentTarget;if(x=x.listener,C!==d&&c.isPropagationStopped())break e;d=x,c.currentTarget=V;try{d(c)}catch(ie){Qi(ie)}c.currentTarget=null,d=C}else for(p=0;p<l.length;p++){if(x=l[p],C=x.instance,V=x.currentTarget,x=x.listener,C!==d&&c.isPropagationStopped())break e;d=x,c.currentTarget=V;try{d(c)}catch(ie){Qi(ie)}c.currentTarget=null,d=C}}}}function tt(e,t){var n=t[Bc];n===void 0&&(n=t[Bc]=new Set);var l=e+"__bubble";n.has(l)||(Im(t,e,2,!1),n.add(l))}function dd(e,t,n){var l=0;t&&(l|=4),Im(n,e,l,t)}var Fn="_reactListening"+Math.random().toString(36).slice(2);function hd(e){if(!e[Fn]){e[Fn]=!0,Pd.forEach(function(n){n!=="selectionchange"&&(qg.has(n)||dd(n,!1,e),dd(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fn]||(t[Fn]=!0,dd("selectionchange",!1,t))}}function Im(e,t,n,l){switch(ov(t)){case 2:var c=ip;break;case 8:c=tu;break;default:c=Sd}n=c.bind(null,t,n,e),c=void 0,!mu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(t,n,{capture:!0,passive:c}):e.addEventListener(t,n,!0):c!==void 0?e.addEventListener(t,n,{passive:c}):e.addEventListener(t,n,!1)}function Ra(e,t,n,l,c){var d=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var p=l.tag;if(p===3||p===4){var x=l.stateNode.containerInfo;if(x===c)break;if(p===4)for(p=l.return;p!==null;){var C=p.tag;if((C===3||C===4)&&p.stateNode.containerInfo===c)return;p=p.return}for(;x!==null;){if(p=il(x),p===null)return;if(C=p.tag,C===5||C===6||C===26||C===27){l=d=p;continue e}x=x.parentNode}}l=l.return}th(function(){var V=d,ie=Zc(n),se=[];e:{var P=bu.get(e);if(P!==void 0){var I=Qs,je=e;switch(e){case"keypress":if(wt(n)===0)break e;case"keydown":case"keyup":I=$c;break;case"focusin":je="focus",I=Zs;break;case"focusout":je="blur",I=Zs;break;case"beforeblur":case"afterblur":I=Zs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=Va;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=Fc;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=hg;break;case ro:case xh:case lr:I=lh;break;case pu:I=mg;break;case"scroll":case"scrollend":I=cg;break;case"wheel":I=gg;break;case"copy":case"cut":case"paste":I=sh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=va;break;case"toggle":case"beforetoggle":I=Ps}var Le=(t&4)!==0,Tt=!Le&&(e==="scroll"||e==="scrollend"),k=Le?P!==null?P+"Capture":null:P;Le=[];for(var B=V,Y;B!==null;){var le=B;if(Y=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||Y===null||k===null||(le=hu(B,k),le!=null&&Le.push(Ie(B,le,Y))),Tt)break;B=B.return}0<Le.length&&(P=new I(P,je,null,n,ie),se.push({event:P,listeners:Le}))}}if((t&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",I=e==="mouseout"||e==="pointerout",P&&n!==Vs&&(je=n.relatedTarget||n.fromElement)&&(il(je)||je[Ga]))break e;if((I||P)&&(P=ie.window===ie?ie:(P=ie.ownerDocument)?P.defaultView||P.parentWindow:window,I?(je=n.relatedTarget||n.toElement,I=V,je=je?il(je):null,je!==null&&(Tt=v(je),Le=je.tag,je!==Tt||Le!==5&&Le!==27&&Le!==6)&&(je=null)):(I=null,je=V),I!==je)){if(Le=Va,le="onMouseLeave",k="onMouseEnter",B="mouse",(e==="pointerout"||e==="pointerover")&&(Le=va,le="onPointerLeave",k="onPointerEnter",B="pointer"),Tt=I==null?P:ul(I),Y=je==null?P:ul(je),P=new Le(le,B+"leave",I,n,ie),P.target=Tt,P.relatedTarget=Y,le=null,il(ie)===V&&(Le=new Le(k,B+"enter",je,n,ie),Le.target=Y,Le.relatedTarget=Tt,le=Le),Tt=le,I&&je)t:{for(Le=I,k=je,B=0,Y=Le;Y;Y=an(Y))B++;for(Y=0,le=k;le;le=an(le))Y++;for(;0<B-Y;)Le=an(Le),B--;for(;0<Y-B;)k=an(k),Y--;for(;B--;){if(Le===k||k!==null&&Le===k.alternate)break t;Le=an(Le),k=an(k)}Le=null}else Le=null;I!==null&&Pt(se,P,I,Le,!1),je!==null&&Tt!==null&&Pt(se,Tt,je,Le,!0)}}e:{if(P=V?ul(V):window,I=P.nodeName&&P.nodeName.toLowerCase(),I==="select"||I==="input"&&P.type==="file")var Me=vh;else if($s(P))if(gh)Me=yg;else{Me=Xa;var Fe=yh}else I=P.nodeName,!I||I.toLowerCase()!=="input"||P.type!=="checkbox"&&P.type!=="radio"?V&&Xc(V.elementType)&&(Me=vh):Me=no;if(Me&&(Me=Me(e,V))){bl(se,Me,n,ie);break e}Fe&&Fe(e,P,V),e==="focusout"&&V&&P.type==="number"&&V.memoizedProps.value!=null&&fu(P,"number",P.value)}switch(Fe=V?ul(V):window,e){case"focusin":($s(Fe)||Fe.contentEditable==="true")&&(_l=Fe,Za=V,L=null);break;case"focusout":L=Za=_l=null;break;case"mousedown":te=!0;break;case"contextmenu":case"mouseup":case"dragend":te=!1,J(se,n,ie);break;case"selectionchange":if(_g)break;case"keydown":case"keyup":J(se,n,ie)}var Be;if(nf)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Ia?hh(e,n)&&(ke="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ke="onCompositionStart");ke&&(Js&&n.locale!=="ko"&&(Ia||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Ia&&(Be=nh()):(Ya=ie,Jc="value"in Ya?Ya.value:Ya.textContent,Ia=!0)),Fe=Wo(V,ke),0<Fe.length&&(ke=new qn(ke,e,null,n,ie),se.push({event:ke,listeners:Fe}),Be?ke.data=Be:(Be=Fs(n),Be!==null&&(ke.data=Be)))),(Be=dh?pg(e,n):mh(e,n))&&(ke=Wo(V,"onBeforeInput"),0<ke.length&&(Fe=new qn("onBeforeInput","beforeinput",null,n,ie),se.push({event:Fe,listeners:ke}),Fe.data=Be)),kg(se,e,V,n,ie)}Vm(se,t)})}function Ie(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Wo(e,t){for(var n=t+"Capture",l=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=hu(e,n),c!=null&&l.unshift(Ie(e,c,d)),c=hu(e,t),c!=null&&l.push(Ie(e,c,d))),e.tag===3)return l;e=e.return}return[]}function an(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Pt(e,t,n,l,c){for(var d=t._reactName,p=[];n!==null&&n!==l;){var x=n,C=x.alternate,V=x.stateNode;if(x=x.tag,C!==null&&C===l)break;x!==5&&x!==26&&x!==27||V===null||(C=V,c?(V=hu(n,d),V!=null&&p.unshift(Ie(n,V,C))):c||(V=hu(n,d),V!=null&&p.push(Ie(n,V,C)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var Yg=/\r\n?/g,di=/\u0000|\uFFFD/g;function Qm(e){return(typeof e=="string"?e:""+e).replace(Yg,`
`).replace(di,"")}function Xm(e,t){return t=Qm(t),Qm(e)===t}function Fo(){}function Mt(e,t,n,l,c,d){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||qa(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&qa(e,""+l);break;case"className":ks(e,"class",l);break;case"tabIndex":ks(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ks(e,n,l);break;case"style":Qc(e,l,d);break;case"data":if(t!=="object"){ks(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=du(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"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 d=="function"&&(n==="formAction"?(t!=="input"&&Mt(e,t,"name",c.name,c,null),Mt(e,t,"formEncType",c.formEncType,c,null),Mt(e,t,"formMethod",c.formMethod,c,null),Mt(e,t,"formTarget",c.formTarget,c,null)):(Mt(e,t,"encType",c.encType,c,null),Mt(e,t,"method",c.method,c,null),Mt(e,t,"target",c.target,c,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=du(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Fo);break;case"onScroll":l!=null&&tt("scroll",e);break;case"onScrollEnd":l!=null&&tt("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=du(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""+l):e.removeAttribute(n);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":tt("beforetoggle",e),tt("toggle",e),js(e,"popover",l);break;case"xlinkActuate":Pr(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Pr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Pr(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Pr(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Pr(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Pr(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Pr(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Pr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Pr(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":js(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=$d.get(n)||n,js(e,n,l))}}function md(e,t,n,l,c,d){switch(n){case"style":Qc(e,l,d);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof l=="string"?qa(e,l):(typeof l=="number"||typeof l=="bigint")&&qa(e,""+l);break;case"onScroll":l!=null&&tt("scroll",e);break;case"onScrollEnd":l!=null&&tt("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Fo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(c=n.endsWith("Capture"),t=n.slice(2,c?n.length-7:void 0),d=e[Hn]||null,d=d!=null?d[n]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof l=="function")){typeof d!="function"&&d!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,c);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):js(e,n,l)}}}function ln(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",e),tt("load",e);var l=!1,c=!1,d;for(d in n)if(n.hasOwnProperty(d)){var p=n[d];if(p!=null)switch(d){case"src":l=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Mt(e,t,d,p,n,null)}}c&&Mt(e,t,"srcSet",n.srcSet,n,null),l&&Mt(e,t,"src",n.src,n,null);return;case"input":tt("invalid",e);var x=d=p=c=null,C=null,V=null;for(l in n)if(n.hasOwnProperty(l)){var ie=n[l];if(ie!=null)switch(l){case"name":c=ie;break;case"type":p=ie;break;case"checked":C=ie;break;case"defaultChecked":V=ie;break;case"value":d=ie;break;case"defaultValue":x=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(o(137,t));break;default:Mt(e,t,l,ie,n,null)}}Yc(e,d,x,C,V,p,c,!1),Gs(e);return;case"select":tt("invalid",e),l=p=d=null;for(c in n)if(n.hasOwnProperty(c)&&(x=n[c],x!=null))switch(c){case"value":d=x;break;case"defaultValue":p=x;break;case"multiple":l=x;default:Mt(e,t,c,x,n,null)}t=d,n=p,e.multiple=!!l,t!=null?fl(e,!!l,t,!1):n!=null&&fl(e,!!l,n,!0);return;case"textarea":tt("invalid",e),d=c=l=null;for(p in n)if(n.hasOwnProperty(p)&&(x=n[p],x!=null))switch(p){case"value":l=x;break;case"defaultValue":c=x;break;case"children":d=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:Mt(e,t,p,x,n,null)}Ys(e,l,c,d),Gs(e);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(l=n[C],l!=null))switch(C){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Mt(e,t,C,l,n,null)}return;case"dialog":tt("beforetoggle",e),tt("toggle",e),tt("cancel",e),tt("close",e);break;case"iframe":case"object":tt("load",e);break;case"video":case"audio":for(l=0;l<fs.length;l++)tt(fs[l],e);break;case"image":tt("error",e),tt("load",e);break;case"details":tt("toggle",e);break;case"embed":case"source":case"link":tt("error",e),tt("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in n)if(n.hasOwnProperty(V)&&(l=n[V],l!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Mt(e,t,V,l,n,null)}return;default:if(Xc(t)){for(ie in n)n.hasOwnProperty(ie)&&(l=n[ie],l!==void 0&&md(e,t,ie,l,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(l=n[x],l!=null&&Mt(e,t,x,l,n,null))}function Vg(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,p=null,x=null,C=null,V=null,ie=null;for(I in n){var se=n[I];if(n.hasOwnProperty(I)&&se!=null)switch(I){case"checked":break;case"value":break;case"defaultValue":C=se;default:l.hasOwnProperty(I)||Mt(e,t,I,null,l,se)}}for(var P in l){var I=l[P];if(se=n[P],l.hasOwnProperty(P)&&(I!=null||se!=null))switch(P){case"type":d=I;break;case"name":c=I;break;case"checked":V=I;break;case"defaultChecked":ie=I;break;case"value":p=I;break;case"defaultValue":x=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(o(137,t));break;default:I!==se&&Mt(e,t,P,I,l,se)}}qs(e,p,x,C,V,ie,d,c);return;case"select":I=p=x=P=null;for(d in n)if(C=n[d],n.hasOwnProperty(d)&&C!=null)switch(d){case"value":break;case"multiple":I=C;default:l.hasOwnProperty(d)||Mt(e,t,d,null,l,C)}for(c in l)if(d=l[c],C=n[c],l.hasOwnProperty(c)&&(d!=null||C!=null))switch(c){case"value":P=d;break;case"defaultValue":x=d;break;case"multiple":p=d;default:d!==C&&Mt(e,t,c,d,l,C)}t=x,n=p,l=I,P!=null?fl(e,!!n,P,!1):!!l!=!!n&&(t!=null?fl(e,!!n,t,!0):fl(e,!!n,n?[]:"",!1));return;case"textarea":I=P=null;for(x in n)if(c=n[x],n.hasOwnProperty(x)&&c!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Mt(e,t,x,null,l,c)}for(p in l)if(c=l[p],d=n[p],l.hasOwnProperty(p)&&(c!=null||d!=null))switch(p){case"value":P=c;break;case"defaultValue":I=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==d&&Mt(e,t,p,c,l,d)}Vc(e,P,I);return;case"option":for(var je in n)if(P=n[je],n.hasOwnProperty(je)&&P!=null&&!l.hasOwnProperty(je))switch(je){case"selected":e.selected=!1;break;default:Mt(e,t,je,null,l,P)}for(C in l)if(P=l[C],I=n[C],l.hasOwnProperty(C)&&P!==I&&(P!=null||I!=null))switch(C){case"selected":e.selected=P&&typeof P!="function"&&typeof P!="symbol";break;default:Mt(e,t,C,P,l,I)}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 Le in n)P=n[Le],n.hasOwnProperty(Le)&&P!=null&&!l.hasOwnProperty(Le)&&Mt(e,t,Le,null,l,P);for(V in l)if(P=l[V],I=n[V],l.hasOwnProperty(V)&&P!==I&&(P!=null||I!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(o(137,t));break;default:Mt(e,t,V,P,l,I)}return;default:if(Xc(t)){for(var Tt in n)P=n[Tt],n.hasOwnProperty(Tt)&&P!==void 0&&!l.hasOwnProperty(Tt)&&md(e,t,Tt,void 0,l,P);for(ie in l)P=l[ie],I=n[ie],!l.hasOwnProperty(ie)||P===I||P===void 0&&I===void 0||md(e,t,ie,P,l,I);return}}for(var k in n)P=n[k],n.hasOwnProperty(k)&&P!=null&&!l.hasOwnProperty(k)&&Mt(e,t,k,null,l,P);for(se in l)P=l[se],I=n[se],!l.hasOwnProperty(se)||P===I||P==null&&I==null||Mt(e,t,se,P,l,I)}var qr=null,$o=null;function Pi(e){return e.nodeType===9?e:e.ownerDocument}function qt(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Qt(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function ec(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var vd=null;function Ig(){var e=window.event;return e&&e.type==="popstate"?e===vd?!1:(vd=e,!0):(vd=null,!1)}var Zm=typeof setTimeout=="function"?setTimeout:void 0,Qg=typeof clearTimeout=="function"?clearTimeout:void 0,Km=typeof Promise=="function"?Promise:void 0,Xg=typeof queueMicrotask=="function"?queueMicrotask:typeof Km<"u"?function(e){return Km.resolve(null).then(e).catch(Pm)}:Zm;function Pm(e){setTimeout(function(){throw e})}function Tr(e){return e==="head"}function tc(e,t){var n=t,l=0,c=0;do{var d=n.nextSibling;if(e.removeChild(n),d&&d.nodeType===8)if(n=d.data,n==="/$"){if(0<l&&8>l){n=l;var p=e.ownerDocument;if(n&1&&ds(p.documentElement),n&2&&ds(p.body),n&4)for(n=p.head,ds(n),p=n.firstChild;p;){var x=p.nextSibling,C=p.nodeName;p[ou]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&p.rel.toLowerCase()==="stylesheet"||n.removeChild(p),p=x}}if(c===0){e.removeChild(d),As(t);return}c--}else n==="$"||n==="$?"||n==="$!"?c++:l=n.charCodeAt(0)-48;else l=0;n=d}while(n);As(t)}function gd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":gd(n),zc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Jm(e,t,n,l){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[ou])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=Yr(e.nextSibling),e===null)break}return null}function nc(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Yr(e.nextSibling),e===null))return null;return e}function Un(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Pl(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Yr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var pd=null;function Wm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function Fm(e,t,n){switch(t=Pi(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function ds(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zc(e)}var hr=new Map,la=new Set;function Xe(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ua=K.d;K.d={f:Cr,r:$m,D:Zg,C:ev,L:rc,m:Kg,X:Jg,S:Pg,M:Wg};function Cr(){var e=ua.f(),t=Io();return e||t}function $m(e){var t=ll(e);t!==null&&t.tag===5&&t.type==="form"?Mo(t):ua.r(e)}var Jl=typeof document>"u"?null:document;function mt(e,t,n){var l=Jl;if(l&&typeof t=="string"&&t){var c=vr(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),la.has(c)||(la.add(c),e={rel:e,crossOrigin:n,href:t},l.querySelector(c)===null&&(t=l.createElement("link"),ln(t,"link",e),dn(t),l.head.appendChild(t)))}}function Zg(e){ua.D(e),mt("dns-prefetch",e,null)}function ev(e,t){ua.C(e,t),mt("preconnect",e,t)}function rc(e,t,n){ua.L(e,t,n);var l=Jl;if(l&&e&&t){var c='link[rel="preload"][as="'+vr(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+vr(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+vr(n.imageSizes)+'"]')):c+='[href="'+vr(e)+'"]';var d=c;switch(t){case"style":d=Wl(e);break;case"script":d=Fl(e)}hr.has(d)||(e=O({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),hr.set(d,e),l.querySelector(c)!==null||t==="style"&&l.querySelector(hs(d))||t==="script"&&l.querySelector(ms(d))||(t=l.createElement("link"),ln(t,"link",e),dn(t),l.head.appendChild(t)))}}function Kg(e,t){ua.m(e,t);var n=Jl;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+vr(l)+'"][href="'+vr(e)+'"]',d=c;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Fl(e)}if(!hr.has(d)&&(e=O({rel:"modulepreload",href:e},t),hr.set(d,e),n.querySelector(c)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ms(d)))return}l=n.createElement("link"),ln(l,"link",e),dn(l),n.head.appendChild(l)}}}function Pg(e,t,n){ua.S(e,t,n);var l=Jl;if(l&&e){var c=sl(l).hoistableStyles,d=Wl(e);t=t||"default";var p=c.get(d);if(!p){var x={loading:0,preload:null};if(p=l.querySelector(hs(d)))x.loading=5;else{e=O({rel:"stylesheet",href:e,"data-precedence":t},n),(n=hr.get(d))&&vs(e,n);var C=p=l.createElement("link");dn(C),ln(C,"link",e),C._p=new Promise(function(V,ie){C.onload=V,C.onerror=ie}),C.addEventListener("load",function(){x.loading|=1}),C.addEventListener("error",function(){x.loading|=2}),x.loading|=4,ac(p,t,l)}p={type:"stylesheet",instance:p,count:1,state:x},c.set(d,p)}}}function Jg(e,t){ua.X(e,t);var n=Jl;if(n&&e){var l=sl(n).hoistableScripts,c=Fl(e),d=l.get(c);d||(d=n.querySelector(ms(c)),d||(e=O({src:e,async:!0},t),(t=hr.get(c))&&bd(e,t),d=n.createElement("script"),dn(d),ln(d,"link",e),n.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function Wg(e,t){ua.M(e,t);var n=Jl;if(n&&e){var l=sl(n).hoistableScripts,c=Fl(e),d=l.get(c);d||(d=n.querySelector(ms(c)),d||(e=O({src:e,async:!0,type:"module"},t),(t=hr.get(c))&&bd(e,t),d=n.createElement("script"),dn(d),ln(d,"link",e),n.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},l.set(c,d))}}function tv(e,t,n,l){var c=(c=_e.current)?Xe(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Wl(n.href),n=sl(c).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Wl(n.href);var d=sl(c).hoistableStyles,p=d.get(e);if(p||(c=c.ownerDocument||c,p={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,p),(d=c.querySelector(hs(e)))&&!d._p&&(p.instance=d,p.state.loading=5),hr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hr.set(e,n),d||Fg(c,e,n,p.state))),t&&l===null)throw Error(o(528,""));return p}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Fl(n),n=sl(c).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Wl(e){return'href="'+vr(e)+'"'}function hs(e){return'link[rel="stylesheet"]['+e+"]"}function nv(e){return O({},e,{"data-precedence":e.precedence,precedence:null})}function Fg(e,t,n,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ln(t,"link",n),dn(t),e.head.appendChild(t))}function Fl(e){return'[src="'+vr(e)+'"]'}function ms(e){return"script[async]"+e}function rv(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+vr(n.href)+'"]');if(l)return t.instance=l,dn(l),l;var c=O({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),dn(l),ln(l,"style",c),ac(l,n.precedence,e),t.instance=l;case"stylesheet":c=Wl(n.href);var d=e.querySelector(hs(c));if(d)return t.state.loading|=4,t.instance=d,dn(d),d;l=nv(n),(c=hr.get(c))&&vs(l,c),d=(e.ownerDocument||e).createElement("link"),dn(d);var p=d;return p._p=new Promise(function(x,C){p.onload=x,p.onerror=C}),ln(d,"link",l),t.state.loading|=4,ac(d,n.precedence,e),t.instance=d;case"script":return d=Fl(n.src),(c=e.querySelector(ms(d)))?(t.instance=c,dn(c),c):(l=n,(c=hr.get(d))&&(l=O({},n),bd(l,c)),e=e.ownerDocument||e,c=e.createElement("script"),dn(c),ln(c,"link",l),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ac(l,n.precedence,e));return t.instance}function ac(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=l.length?l[l.length-1]:null,d=c,p=0;p<l.length;p++){var x=l[p];if(x.dataset.precedence===t)d=x;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function vs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function bd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var $l=null;function av(e,t,n){if($l===null){var l=new Map,c=$l=new Map;c.set(n,l)}else c=$l,l=c.get(n),l||(l=new Map,c.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var d=n[c];if(!(d[ou]||d[fn]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var p=d.getAttribute(t)||"";p=e+p;var x=l.get(p);x?x.push(d):l.set(p,[d])}}return l}function iv(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function $g(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function un(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var vn=null;function ep(){}function tp(e,t,n){if(vn===null)throw Error(o(475));var l=vn;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=Wl(n.href),d=e.querySelector(hs(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=gs.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=d,dn(d);return}d=e.ownerDocument||e,n=nv(n),(c=hr.get(c))&&vs(n,c),d=d.createElement("link"),dn(d);var p=d;p._p=new Promise(function(x,C){p.onload=x,p.onerror=C}),ln(d,"link",n),t.instance=d}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=gs.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function np(){if(vn===null)throw Error(o(475));var e=vn;return e.stylesheets&&e.count===0&&yd(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&yd(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function gs(){if(this.count--,this.count===0){if(this.stylesheets)yd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ic=null;function yd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ic=new Map,t.forEach(rp,e),ic=null,gs.call(e))}function rp(e,t){if(!(t.state.loading&4)){var n=ic.get(e);if(n)var l=n.get(null);else{n=new Map,ic.set(e,n);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var p=c[d];(p.nodeName==="LINK"||p.getAttribute("media")!=="not all")&&(n.set(p.dataset.precedence,p),l=p)}l&&n.set(null,l)}c=t.instance,p=c.getAttribute("data-precedence"),d=n.get(p)||l,d===l&&n.set(null,c),n.set(p,c),this.count++,l=gs.bind(this),c.addEventListener("load",l),c.addEventListener("error",l),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var eu={$$typeof:me,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function ap(e,t,n,l,c,d,p,x){this.tag=1,this.containerInfo=e,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=zs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zs(0),this.hiddenUpdates=zs(null),this.identifierPrefix=l,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function lv(e,t,n,l,c,d,p,x,C,V,ie,se){return e=new ap(e,t,n,p,x,C,V,se),t=1,d===!0&&(t|=24),d=Yn(3,null,null,t),e.current=d,d.stateNode=e,t=hf(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:l,isDehydrated:n,cache:t},Ui(d),e}function uv(e){return e?(e=Ci,e):Ci}function Ad(e,t,n,l,c,d){c=uv(c),l.context===null?l.context=c:l.pendingContext=c,l=Wa(t),l.payload={element:n},d=d===void 0?null:d,d!==null&&(l.callback=d),n=ya(e,l,t),n!==null&&(dr(n,e,t),Cu(n,e,t))}function _d(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xd(e,t){_d(e,t),(e=e.alternate)&&_d(e,t)}function sv(e){if(e.tag===13){var t=Ti(e,67108864);t!==null&&dr(t,e,67108864),xd(e,67108864)}}var lc=!0;function ip(e,t,n,l){var c=N.T;N.T=null;var d=K.p;try{K.p=2,Sd(e,t,n,l)}finally{K.p=d,N.T=c}}function tu(e,t,n,l){var c=N.T;N.T=null;var d=K.p;try{K.p=8,Sd(e,t,n,l)}finally{K.p=d,N.T=c}}function Sd(e,t,n,l){if(lc){var c=Ed(l);if(c===null)Ra(e,t,l,uc,n),cv(e,l);else if(up(c,e,t,n,l))l.stopPropagation();else if(cv(e,l),t&4&&-1<lp.indexOf(e)){for(;c!==null;){var d=ll(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var p=Br(d.pendingLanes);if(p!==0){var x=d;for(x.pendingLanes|=2,x.entangledLanes|=2;p;){var C=1<<31-An(p);x.entanglements[1]|=C,p&=~C}ia(d),(_t&6)===0&&(Vl=gt()+500,ss(0))}}break;case 13:x=Ti(d,2),x!==null&&dr(x,d,2),Io(),xd(d,2)}if(d=Ed(l),d===null&&Ra(e,t,l,uc,n),d===c)break;c=d}c!==null&&l.stopPropagation()}else Ra(e,t,l,null,n)}}function Ed(e){return e=Zc(e),Od(e)}var uc=null;function Od(e){if(uc=null,e=il(e),e!==null){var t=v(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=g(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return uc=e,null}function ov(e){switch(e){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(en()){case Vt:return 2;case nr:return 8;case Ot:case En:return 32;case Nr:return 268435456;default:return 32}default:return 32}}var sc=!1,Na=null,hi=null,mi=null,ps=new Map,bs=new Map,vi=[],lp="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 cv(e,t){switch(e){case"focusin":case"focusout":Na=null;break;case"dragenter":case"dragleave":hi=null;break;case"mouseover":case"mouseout":mi=null;break;case"pointerover":case"pointerout":ps.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":bs.delete(t.pointerId)}}function ys(e,t,n,l,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:d,targetContainers:[c]},t!==null&&(t=ll(t),t!==null&&sv(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function up(e,t,n,l,c){switch(t){case"focusin":return Na=ys(Na,e,t,n,l,c),!0;case"dragenter":return hi=ys(hi,e,t,n,l,c),!0;case"mouseover":return mi=ys(mi,e,t,n,l,c),!0;case"pointerover":var d=c.pointerId;return ps.set(d,ys(ps.get(d)||null,e,t,n,l,c)),!0;case"gotpointercapture":return d=c.pointerId,bs.set(d,ys(bs.get(d)||null,e,t,n,l,c)),!0}return!1}function fv(e){var t=il(e.target);if(t!==null){var n=v(t);if(n!==null){if(t=n.tag,t===13){if(t=g(n),t!==null){e.blockedOn=t,ig(e.priority,function(){if(n.tag===13){var l=Cn();l=Dc(l);var c=Ti(n,l);c!==null&&dr(c,n,l),xd(n,l)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function oc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ed(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Vs=l,n.target.dispatchEvent(l),Vs=null}else return t=ll(n),t!==null&&sv(t),e.blockedOn=n,!1;t.shift()}return!0}function dv(e,t,n){oc(e)&&n.delete(t)}function sp(){sc=!1,Na!==null&&oc(Na)&&(Na=null),hi!==null&&oc(hi)&&(hi=null),mi!==null&&oc(mi)&&(mi=null),ps.forEach(dv),bs.forEach(dv)}function cc(e,t){e.blockedOn===t&&(e.blockedOn=null,sc||(sc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,sp)))}var fc=null;function hv(e){fc!==e&&(fc=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){fc===e&&(fc=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],c=e[t+2];if(typeof l!="function"){if(Od(l||n)===null)continue;break}var d=ll(n);d!==null&&(e.splice(t,3),t-=3,Gu(d,{pending:!0,data:c,method:n.method,action:l},l,c))}}))}function As(e){function t(C){return cc(C,e)}Na!==null&&cc(Na,e),hi!==null&&cc(hi,e),mi!==null&&cc(mi,e),ps.forEach(t),bs.forEach(t);for(var n=0;n<vi.length;n++){var l=vi[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<vi.length&&(n=vi[0],n.blockedOn===null);)fv(n),n.blockedOn===null&&vi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var c=n[l],d=n[l+1],p=c[Hn]||null;if(typeof d=="function")p||hv(n);else if(p){var x=null;if(d&&d.hasAttribute("formAction")){if(c=d,p=d[Hn]||null)x=p.formAction;else if(Od(c)!==null)continue}else x=p.action;typeof x=="function"?n[l+1]=x:(n.splice(l,3),l-=3),hv(n)}}}function wd(e){this._internalRoot=e}dc.prototype.render=wd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,l=Cn();Ad(n,l,e,t,null,null)},dc.prototype.unmount=wd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ad(e.current,2,null,e,null,null),Io(),t[Ga]=null}};function dc(e){this._internalRoot=e}dc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Zd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<vi.length&&t!==0&&t<vi[n].priority;n++);vi.splice(n,0,e),n===0&&fv(e)}};var mv=u.version;if(mv!=="19.1.1")throw Error(o(527,mv,"19.1.1"));K.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=A(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var op={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hc.isDisabled&&hc.supportsFiber)try{da=hc.inject(op),Jt=hc}catch{}}return Td.createRoot=function(e,t){if(!h(e))throw Error(o(299));var n=!1,l="",c=Hf,d=Ro,p=$h,x=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(p=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(x=t.unstable_transitionCallbacks)),t=lv(e,1,!1,null,null,n,l,c,d,p,x,null),e[Ga]=t.current,hd(e),new wd(t)},Td.hydrateRoot=function(e,t,n){if(!h(e))throw Error(o(299));var l=!1,c="",d=Hf,p=Ro,x=$h,C=null,V=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(d=n.onUncaughtError),n.onCaughtError!==void 0&&(p=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(C=n.unstable_transitionCallbacks),n.formState!==void 0&&(V=n.formState)),t=lv(e,1,!0,t,n??null,l,c,d,p,x,C,V),t.context=uv(null),n=t.current,l=Cn(),l=Dc(l),c=Wa(l),c.callback=null,ya(n,c,l),n=l,t.current.lanes=n,al(t,n),ia(t),e[Ga]=t.current,hd(e),new dc(t)},Td.version="19.1.1",Td}var G0;function Ny(){if(G0)return vp.exports;G0=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(u){console.error(u)}}return a(),vp.exports=Ry(),vp.exports}var Dy=Ny(),xv={exports:{}},Sv={exports:{}},By=Sv.exports,q0;function N1(){return q0||(q0=1,(function(a,u){(function(s,o){a.exports=o()})(By,(function(){var s=1e3,o=6e4,h=36e5,v="millisecond",g="second",y="minute",A="hour",S="day",O="week",R="month",H="quarter",X="year",U="date",j="Invalid Date",Z=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,fe={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(pe){var ae=["th","st","nd","rd"],N=pe%100;return"["+pe+(ae[(N-20)%10]||ae[N]||ae[0])+"]"}},me=function(pe,ae,N){var K=String(pe);return!K||K.length>=ae?pe:""+Array(ae+1-K.length).join(N)+pe},ye={s:me,z:function(pe){var ae=-pe.utcOffset(),N=Math.abs(ae),K=Math.floor(N/60),z=N%60;return(ae<=0?"+":"-")+me(K,2,"0")+":"+me(z,2,"0")},m:function pe(ae,N){if(ae.date()<N.date())return-pe(N,ae);var K=12*(N.year()-ae.year())+(N.month()-ae.month()),z=ae.clone().add(K,R),ve=N-z<0,M=ae.clone().add(K+(ve?-1:1),R);return+(-(K+(N-z)/(ve?z-M:M-z))||0)},a:function(pe){return pe<0?Math.ceil(pe)||0:Math.floor(pe)},p:function(pe){return{M:R,y:X,w:O,d:S,D:U,h:A,m:y,s:g,ms:v,Q:H}[pe]||String(pe||"").toLowerCase().replace(/s$/,"")},u:function(pe){return pe===void 0}},re="en",de={};de[re]=fe;var be="$isDayjsObject",ne=function(pe){return pe instanceof Ne||!(!pe||!pe[be])},Oe=function pe(ae,N,K){var z;if(!ae)return re;if(typeof ae=="string"){var ve=ae.toLowerCase();de[ve]&&(z=ve),N&&(de[ve]=N,z=ve);var M=ae.split("-");if(!z&&M.length>1)return pe(M[0])}else{var Q=ae.name;de[Q]=ae,z=Q}return!K&&z&&(re=z),z||!K&&re},Re=function(pe,ae){if(ne(pe))return pe.clone();var N=typeof ae=="object"?ae:{};return N.date=pe,N.args=arguments,new Ne(N)},Ae=ye;Ae.l=Oe,Ae.i=ne,Ae.w=function(pe,ae){return Re(pe,{locale:ae.$L,utc:ae.$u,x:ae.$x,$offset:ae.$offset})};var Ne=(function(){function pe(N){this.$L=Oe(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[be]=!0}var ae=pe.prototype;return ae.parse=function(N){this.$d=(function(K){var z=K.date,ve=K.utc;if(z===null)return new Date(NaN);if(Ae.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var M=z.match(Z);if(M){var Q=M[2]-1||0,ce=(M[7]||"0").substring(0,3);return ve?new Date(Date.UTC(M[1],Q,M[3]||1,M[4]||0,M[5]||0,M[6]||0,ce)):new Date(M[1],Q,M[3]||1,M[4]||0,M[5]||0,M[6]||0,ce)}}return new Date(z)})(N),this.init()},ae.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},ae.$utils=function(){return Ae},ae.isValid=function(){return this.$d.toString()!==j},ae.isSame=function(N,K){var z=Re(N);return this.startOf(K)<=z&&z<=this.endOf(K)},ae.isAfter=function(N,K){return Re(N)<this.startOf(K)},ae.isBefore=function(N,K){return this.endOf(K)<Re(N)},ae.$g=function(N,K,z){return Ae.u(N)?this[K]:this.set(z,N)},ae.unix=function(){return Math.floor(this.valueOf()/1e3)},ae.valueOf=function(){return this.$d.getTime()},ae.startOf=function(N,K){var z=this,ve=!!Ae.u(K)||K,M=Ae.p(N),Q=function(ut,Je){var St=Ae.w(z.$u?Date.UTC(z.$y,Je,ut):new Date(z.$y,Je,ut),z);return ve?St:St.endOf(S)},ce=function(ut,Je){return Ae.w(z.toDate()[ut].apply(z.toDate("s"),(ve?[0,0,0,0]:[23,59,59,999]).slice(Je)),z)},ee=this.$W,ge=this.$M,we=this.$D,_e="set"+(this.$u?"UTC":"");switch(M){case X:return ve?Q(1,0):Q(31,11);case R:return ve?Q(1,ge):Q(0,ge+1);case O:var qe=this.$locale().weekStart||0,Ue=(ee<qe?ee+7:ee)-qe;return Q(ve?we-Ue:we+(6-Ue),ge);case S:case U:return ce(_e+"Hours",0);case A:return ce(_e+"Minutes",1);case y:return ce(_e+"Seconds",2);case g:return ce(_e+"Milliseconds",3);default:return this.clone()}},ae.endOf=function(N){return this.startOf(N,!1)},ae.$set=function(N,K){var z,ve=Ae.p(N),M="set"+(this.$u?"UTC":""),Q=(z={},z[S]=M+"Date",z[U]=M+"Date",z[R]=M+"Month",z[X]=M+"FullYear",z[A]=M+"Hours",z[y]=M+"Minutes",z[g]=M+"Seconds",z[v]=M+"Milliseconds",z)[ve],ce=ve===S?this.$D+(K-this.$W):K;if(ve===R||ve===X){var ee=this.clone().set(U,1);ee.$d[Q](ce),ee.init(),this.$d=ee.set(U,Math.min(this.$D,ee.daysInMonth())).$d}else Q&&this.$d[Q](ce);return this.init(),this},ae.set=function(N,K){return this.clone().$set(N,K)},ae.get=function(N){return this[Ae.p(N)]()},ae.add=function(N,K){var z,ve=this;N=Number(N);var M=Ae.p(K),Q=function(ge){var we=Re(ve);return Ae.w(we.date(we.date()+Math.round(ge*N)),ve)};if(M===R)return this.set(R,this.$M+N);if(M===X)return this.set(X,this.$y+N);if(M===S)return Q(1);if(M===O)return Q(7);var ce=(z={},z[y]=o,z[A]=h,z[g]=s,z)[M]||1,ee=this.$d.getTime()+N*ce;return Ae.w(ee,this)},ae.subtract=function(N,K){return this.add(-1*N,K)},ae.format=function(N){var K=this,z=this.$locale();if(!this.isValid())return z.invalidDate||j;var ve=N||"YYYY-MM-DDTHH:mm:ssZ",M=Ae.z(this),Q=this.$H,ce=this.$m,ee=this.$M,ge=z.weekdays,we=z.months,_e=z.meridiem,qe=function(Je,St,Et,on){return Je&&(Je[St]||Je(K,ve))||Et[St].slice(0,on)},Ue=function(Je){return Ae.s(Q%12||12,Je,"0")},ut=_e||function(Je,St,Et){var on=Je<12?"AM":"PM";return Et?on.toLowerCase():on};return ve.replace($,(function(Je,St){return St||(function(Et){switch(Et){case"YY":return String(K.$y).slice(-2);case"YYYY":return Ae.s(K.$y,4,"0");case"M":return ee+1;case"MM":return Ae.s(ee+1,2,"0");case"MMM":return qe(z.monthsShort,ee,we,3);case"MMMM":return qe(we,ee);case"D":return K.$D;case"DD":return Ae.s(K.$D,2,"0");case"d":return String(K.$W);case"dd":return qe(z.weekdaysMin,K.$W,ge,2);case"ddd":return qe(z.weekdaysShort,K.$W,ge,3);case"dddd":return ge[K.$W];case"H":return String(Q);case"HH":return Ae.s(Q,2,"0");case"h":return Ue(1);case"hh":return Ue(2);case"a":return ut(Q,ce,!0);case"A":return ut(Q,ce,!1);case"m":return String(ce);case"mm":return Ae.s(ce,2,"0");case"s":return String(K.$s);case"ss":return Ae.s(K.$s,2,"0");case"SSS":return Ae.s(K.$ms,3,"0");case"Z":return M}return null})(Je)||M.replace(":","")}))},ae.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ae.diff=function(N,K,z){var ve,M=this,Q=Ae.p(K),ce=Re(N),ee=(ce.utcOffset()-this.utcOffset())*o,ge=this-ce,we=function(){return Ae.m(M,ce)};switch(Q){case X:ve=we()/12;break;case R:ve=we();break;case H:ve=we()/3;break;case O:ve=(ge-ee)/6048e5;break;case S:ve=(ge-ee)/864e5;break;case A:ve=ge/h;break;case y:ve=ge/o;break;case g:ve=ge/s;break;default:ve=ge}return z?ve:Ae.a(ve)},ae.daysInMonth=function(){return this.endOf(R).$D},ae.$locale=function(){return de[this.$L]},ae.locale=function(N,K){if(!N)return this.$L;var z=this.clone(),ve=Oe(N,K,!0);return ve&&(z.$L=ve),z},ae.clone=function(){return Ae.w(this.$d,this)},ae.toDate=function(){return new Date(this.valueOf())},ae.toJSON=function(){return this.isValid()?this.toISOString():null},ae.toISOString=function(){return this.$d.toISOString()},ae.toString=function(){return this.$d.toUTCString()},pe})(),Ge=Ne.prototype;return Re.prototype=Ge,[["$ms",v],["$s",g],["$m",y],["$H",A],["$W",S],["$M",R],["$y",X],["$D",U]].forEach((function(pe){Ge[pe[1]]=function(ae){return this.$g(ae,pe[0],pe[1])}})),Re.extend=function(pe,ae){return pe.$i||(pe(ae,Ne,Re),pe.$i=!0),Re},Re.locale=Oe,Re.isDayjs=ne,Re.unix=function(pe){return Re(1e3*pe)},Re.en=de[re],Re.Ls=de,Re.p={},Re}))})(Sv)),Sv.exports}var zy=xv.exports,Y0;function Ly(){return Y0||(Y0=1,(function(a,u){(function(s,o){a.exports=o(N1())})(zy,(function(s){function o(U){return U&&typeof U=="object"&&"default"in U?U:{default:U}}var h=o(s),v="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),g="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),y="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),A="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),S=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function O(U,j,Z){var $,fe;return Z==="m"?j?"минута":"минуту":U+" "+($=+U,fe={mm:j?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[Z].split("_"),$%10==1&&$%100!=11?fe[0]:$%10>=2&&$%10<=4&&($%100<10||$%100>=20)?fe[1]:fe[2])}var R=function(U,j){return S.test(j)?v[U.month()]:g[U.month()]};R.s=g,R.f=v;var H=function(U,j){return S.test(j)?y[U.month()]:A[U.month()]};H.s=A,H.f=y;var X={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:R,monthsShort:H,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:O,mm:O,h:"час",hh:O,d:"день",dd:O,M:"месяц",MM:O,y:"год",yy:O},ordinal:function(U){return U},meridiem:function(U){return U<4?"ночи":U<12?"утра":U<17?"дня":"вечера"}};return h.default.locale(X,null,!0),X}))})(xv)),xv.exports}Ly();var Uy=N1();const rl=p0(Uy),wc=W.createContext({theme:"material",dark:!0,materialTouchRipple:!0,iosHoverHighlight:!0});function jy(a,u){return typeof window>"u"?F.useEffect(a,u):F.useLayoutEffect(a,u)}const D1=(a,u=!0)=>{const[s,o]=F.useState(a);return jy(()=>{if(u){if(a==="ios"||a==="material")s!==a&&o(a);else if(s==="parent"&&typeof window<"u"&&typeof document<"u"){const h=document.documentElement;h&&(h.classList.contains("ios")?o("ios"):(h.classList.contains("md")||h.classList.contains("material"))&&o("material"))}}},[a]),u?s:a},ky=a=>{const{theme:u,dark:s,materialTouchRipple:o=!0,iosHoverHighlight:h=!0,autoThemeDetection:v=!0,children:g}=a,y=D1(u,v);return W.createElement(wc.Provider,{value:{theme:y,dark:s,materialTouchRipple:o,iosHoverHighlight:h}},g)},b0="-",Hy=a=>{const u=qy(a),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=a;return{getClassGroupId:g=>{const y=g.split(b0);return y[0]===""&&y.length!==1&&y.shift(),B1(y,u)||Gy(g)},getConflictingClassGroupIds:(g,y)=>{const A=s[g]||[];return y&&o[g]?[...A,...o[g]]:A}}},B1=(a,u)=>{if(a.length===0)return u.classGroupId;const s=a[0],o=u.nextPart.get(s),h=o?B1(a.slice(1),o):void 0;if(h)return h;if(u.validators.length===0)return;const v=a.join(b0);return u.validators.find(({validator:g})=>g(v))?.classGroupId},V0=/^\[(.+)\]$/,Gy=a=>{if(V0.test(a)){const u=V0.exec(a)[1],s=u?.substring(0,u.indexOf(":"));if(s)return"arbitrary.."+s}},qy=a=>{const{theme:u,classGroups:s}=a,o={nextPart:new Map,validators:[]};for(const h in s)Rp(s[h],o,h,u);return o},Rp=(a,u,s,o)=>{a.forEach(h=>{if(typeof h=="string"){const v=h===""?u:I0(u,h);v.classGroupId=s;return}if(typeof h=="function"){if(Yy(h)){Rp(h(o),u,s,o);return}u.validators.push({validator:h,classGroupId:s});return}Object.entries(h).forEach(([v,g])=>{Rp(g,I0(u,v),s,o)})})},I0=(a,u)=>{let s=a;return u.split(b0).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},Yy=a=>a.isThemeGetter,Vy=a=>{if(a<1)return{get:()=>{},set:()=>{}};let u=0,s=new Map,o=new Map;const h=(v,g)=>{s.set(v,g),u++,u>a&&(u=0,o=s,s=new Map)};return{get(v){let g=s.get(v);if(g!==void 0)return g;if((g=o.get(v))!==void 0)return h(v,g),g},set(v,g){s.has(v)?s.set(v,g):h(v,g)}}},Np="!",Dp=":",Iy=Dp.length,Qy=a=>{const{prefix:u,experimentalParseClassName:s}=a;let o=h=>{const v=[];let g=0,y=0,A=0,S;for(let U=0;U<h.length;U++){let j=h[U];if(g===0&&y===0){if(j===Dp){v.push(h.slice(A,U)),A=U+Iy;continue}if(j==="/"){S=U;continue}}j==="["?g++:j==="]"?g--:j==="("?y++:j===")"&&y--}const O=v.length===0?h:h.substring(A),R=Xy(O),H=R!==O,X=S&&S>A?S-A:void 0;return{modifiers:v,hasImportantModifier:H,baseClassName:R,maybePostfixModifierPosition:X}};if(u){const h=u+Dp,v=o;o=g=>g.startsWith(h)?v(g.substring(h.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:g,maybePostfixModifierPosition:void 0}}if(s){const h=o;o=v=>s({className:v,parseClassName:h})}return o},Xy=a=>a.endsWith(Np)?a.substring(0,a.length-1):a.startsWith(Np)?a.substring(1):a,Zy=a=>{const u=Object.fromEntries(a.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const h=[];let v=[];return o.forEach(g=>{g[0]==="["||u[g]?(h.push(...v.sort(),g),v=[]):v.push(g)}),h.push(...v.sort()),h}},Ky=a=>({cache:Vy(a.cacheSize),parseClassName:Qy(a),sortModifiers:Zy(a),...Hy(a)}),Py=/\s+/,Jy=(a,u)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:h,sortModifiers:v}=u,g=[],y=a.trim().split(Py);let A="";for(let S=y.length-1;S>=0;S-=1){const O=y[S],{isExternal:R,modifiers:H,hasImportantModifier:X,baseClassName:U,maybePostfixModifierPosition:j}=s(O);if(R){A=O+(A.length>0?" "+A:A);continue}let Z=!!j,$=o(Z?U.substring(0,j):U);if(!$){if(!Z){A=O+(A.length>0?" "+A:A);continue}if($=o(U),!$){A=O+(A.length>0?" "+A:A);continue}Z=!1}const fe=v(H).join(":"),me=X?fe+Np:fe,ye=me+$;if(g.includes(ye))continue;g.push(ye);const re=h($,Z);for(let de=0;de<re.length;++de){const be=re[de];g.push(me+be)}A=O+(A.length>0?" "+A:A)}return A};function Wy(){let a=0,u,s,o="";for(;a<arguments.length;)(u=arguments[a++])&&(s=z1(u))&&(o&&(o+=" "),o+=s);return o}const z1=a=>{if(typeof a=="string")return a;let u,s="";for(let o=0;o<a.length;o++)a[o]&&(u=z1(a[o]))&&(s&&(s+=" "),s+=u);return s};function Fy(a,...u){let s,o,h,v=g;function g(A){const S=u.reduce((O,R)=>R(O),a());return s=Ky(S),o=s.cache.get,h=s.cache.set,v=y,y(A)}function y(A){const S=o(A);if(S)return S;const O=Jy(A,s);return h(A,O),O}return function(){return v(Wy.apply(null,arguments))}}const xn=a=>{const u=s=>s[a]||[];return u.isThemeGetter=!0,u},L1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,U1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$y=/^\d+\/\d+$/,eA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tA=/\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$/,nA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,mc=a=>$y.test(a),nt=a=>!!a&&!Number.isNaN(Number(a)),nu=a=>!!a&&Number.isInteger(Number(a)),yp=a=>a.endsWith("%")&&nt(a.slice(0,-1)),Wi=a=>eA.test(a),iA=()=>!0,lA=a=>tA.test(a)&&!nA.test(a),j1=()=>!1,uA=a=>rA.test(a),sA=a=>aA.test(a),oA=a=>!Te(a)&&!Ce(a),cA=a=>Mc(a,G1,j1),Te=a=>L1.test(a),_s=a=>Mc(a,q1,lA),Ap=a=>Mc(a,vA,nt),Q0=a=>Mc(a,k1,j1),fA=a=>Mc(a,H1,sA),gv=a=>Mc(a,Y1,uA),Ce=a=>U1.test(a),Cd=a=>Tc(a,q1),dA=a=>Tc(a,gA),X0=a=>Tc(a,k1),hA=a=>Tc(a,G1),mA=a=>Tc(a,H1),pv=a=>Tc(a,Y1,!0),Mc=(a,u,s)=>{const o=L1.exec(a);return o?o[1]?u(o[1]):s(o[2]):!1},Tc=(a,u,s=!1)=>{const o=U1.exec(a);return o?o[1]?u(o[1]):s:!1},k1=a=>a==="position"||a==="percentage",H1=a=>a==="image"||a==="url",G1=a=>a==="length"||a==="size"||a==="bg-size",q1=a=>a==="length",vA=a=>a==="number",gA=a=>a==="family-name",Y1=a=>a==="shadow",pA=()=>{const a=xn("color"),u=xn("font"),s=xn("text"),o=xn("font-weight"),h=xn("tracking"),v=xn("leading"),g=xn("breakpoint"),y=xn("container"),A=xn("spacing"),S=xn("radius"),O=xn("shadow"),R=xn("inset-shadow"),H=xn("text-shadow"),X=xn("drop-shadow"),U=xn("blur"),j=xn("perspective"),Z=xn("aspect"),$=xn("ease"),fe=xn("animate"),me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ye=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],re=()=>[...ye(),Ce,Te],de=()=>["auto","hidden","clip","visible","scroll"],be=()=>["auto","contain","none"],ne=()=>[Ce,Te,A],Oe=()=>[mc,"full","auto",...ne()],Re=()=>[nu,"none","subgrid",Ce,Te],Ae=()=>["auto",{span:["full",nu,Ce,Te]},nu,Ce,Te],Ne=()=>[nu,"auto",Ce,Te],Ge=()=>["auto","min","max","fr",Ce,Te],pe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ae=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...ne()],K=()=>[mc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ne()],z=()=>[a,Ce,Te],ve=()=>[...ye(),X0,Q0,{position:[Ce,Te]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",hA,cA,{size:[Ce,Te]}],ce=()=>[yp,Cd,_s],ee=()=>["","none","full",S,Ce,Te],ge=()=>["",nt,Cd,_s],we=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],qe=()=>[nt,yp,X0,Q0],Ue=()=>["","none",U,Ce,Te],ut=()=>["none",nt,Ce,Te],Je=()=>["none",nt,Ce,Te],St=()=>[nt,Ce,Te],Et=()=>[mc,"full",...ne()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wi],breakpoint:[Wi],color:[iA],container:[Wi],"drop-shadow":[Wi],ease:["in","out","in-out"],font:[oA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wi],shadow:[Wi],spacing:["px",nt],text:[Wi],"text-shadow":[Wi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",mc,Te,Ce,Z]}],container:["container"],columns:[{columns:[nt,Te,Ce,y]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"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:re()}],overflow:[{overflow:de()}],"overflow-x":[{"overflow-x":de()}],"overflow-y":[{"overflow-y":de()}],overscroll:[{overscroll:be()}],"overscroll-x":[{"overscroll-x":be()}],"overscroll-y":[{"overscroll-y":be()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Oe()}],"inset-x":[{"inset-x":Oe()}],"inset-y":[{"inset-y":Oe()}],start:[{start:Oe()}],end:[{end:Oe()}],top:[{top:Oe()}],right:[{right:Oe()}],bottom:[{bottom:Oe()}],left:[{left:Oe()}],visibility:["visible","invisible","collapse"],z:[{z:[nu,"auto",Ce,Te]}],basis:[{basis:[mc,"full","auto",y,...ne()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[nt,mc,"auto","initial","none",Te]}],grow:[{grow:["",nt,Ce,Te]}],shrink:[{shrink:["",nt,Ce,Te]}],order:[{order:[nu,"first","last","none",Ce,Te]}],"grid-cols":[{"grid-cols":Re()}],"col-start-end":[{col:Ae()}],"col-start":[{"col-start":Ne()}],"col-end":[{"col-end":Ne()}],"grid-rows":[{"grid-rows":Re()}],"row-start-end":[{row:Ae()}],"row-start":[{"row-start":Ne()}],"row-end":[{"row-end":Ne()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Ge()}],"auto-rows":[{"auto-rows":Ge()}],gap:[{gap:ne()}],"gap-x":[{"gap-x":ne()}],"gap-y":[{"gap-y":ne()}],"justify-content":[{justify:[...pe(),"normal"]}],"justify-items":[{"justify-items":[...ae(),"normal"]}],"justify-self":[{"justify-self":["auto",...ae()]}],"align-content":[{content:["normal",...pe()]}],"align-items":[{items:[...ae(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ae(),{baseline:["","last"]}]}],"place-content":[{"place-content":pe()}],"place-items":[{"place-items":[...ae(),"baseline"]}],"place-self":[{"place-self":["auto",...ae()]}],p:[{p:ne()}],px:[{px:ne()}],py:[{py:ne()}],ps:[{ps:ne()}],pe:[{pe:ne()}],pt:[{pt:ne()}],pr:[{pr:ne()}],pb:[{pb:ne()}],pl:[{pl:ne()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":ne()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ne()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],w:[{w:[y,"screen",...K()]}],"min-w":[{"min-w":[y,"screen","none",...K()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[g]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",s,Cd,_s]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Ce,Ap]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yp,Te]}],"font-family":[{font:[dA,Te,u]}],"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:[h,Ce,Te]}],"line-clamp":[{"line-clamp":[nt,"none",Ce,Ap]}],leading:[{leading:[v,...ne()]}],"list-image":[{"list-image":["none",Ce,Te]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,Te]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[nt,"from-font","auto",Ce,_s]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[nt,"auto",Ce,Te]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ne()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce,Te]}],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",Ce,Te]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},nu,Ce,Te],radial:["",Ce,Te],conic:[nu,Ce,Te]},mA,fA]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:ce()}],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"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:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[nt,Ce,Te]}],"outline-w":[{outline:["",nt,Cd,_s]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",O,pv,gv]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",R,pv,gv]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[nt,_s]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",H,pv,gv]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[nt,Ce,Te]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"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":[nt]}],"mask-image-linear-from-pos":[{"mask-linear-from":qe()}],"mask-image-linear-to-pos":[{"mask-linear-to":qe()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":qe()}],"mask-image-t-to-pos":[{"mask-t-to":qe()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":qe()}],"mask-image-r-to-pos":[{"mask-r-to":qe()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":qe()}],"mask-image-b-to-pos":[{"mask-b-to":qe()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":qe()}],"mask-image-l-to-pos":[{"mask-l-to":qe()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":qe()}],"mask-image-x-to-pos":[{"mask-x-to":qe()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":qe()}],"mask-image-y-to-pos":[{"mask-y-to":qe()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[Ce,Te]}],"mask-image-radial-from-pos":[{"mask-radial-from":qe()}],"mask-image-radial-to-pos":[{"mask-radial-to":qe()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":ye()}],"mask-image-conic-pos":[{"mask-conic":[nt]}],"mask-image-conic-from-pos":[{"mask-conic-from":qe()}],"mask-image-conic-to-pos":[{"mask-conic-to":qe()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,Te]}],filter:[{filter:["","none",Ce,Te]}],blur:[{blur:Ue()}],brightness:[{brightness:[nt,Ce,Te]}],contrast:[{contrast:[nt,Ce,Te]}],"drop-shadow":[{"drop-shadow":["","none",X,pv,gv]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",nt,Ce,Te]}],"hue-rotate":[{"hue-rotate":[nt,Ce,Te]}],invert:[{invert:["",nt,Ce,Te]}],saturate:[{saturate:[nt,Ce,Te]}],sepia:[{sepia:["",nt,Ce,Te]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,Te]}],"backdrop-blur":[{"backdrop-blur":Ue()}],"backdrop-brightness":[{"backdrop-brightness":[nt,Ce,Te]}],"backdrop-contrast":[{"backdrop-contrast":[nt,Ce,Te]}],"backdrop-grayscale":[{"backdrop-grayscale":["",nt,Ce,Te]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[nt,Ce,Te]}],"backdrop-invert":[{"backdrop-invert":["",nt,Ce,Te]}],"backdrop-opacity":[{"backdrop-opacity":[nt,Ce,Te]}],"backdrop-saturate":[{"backdrop-saturate":[nt,Ce,Te]}],"backdrop-sepia":[{"backdrop-sepia":["",nt,Ce,Te]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ne()}],"border-spacing-x":[{"border-spacing-x":ne()}],"border-spacing-y":[{"border-spacing-y":ne()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,Te]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[nt,"initial",Ce,Te]}],ease:[{ease:["linear","initial",$,Ce,Te]}],delay:[{delay:[nt,Ce,Te]}],animate:[{animate:["none",fe,Ce,Te]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,Ce,Te]}],"perspective-origin":[{"perspective-origin":re()}],rotate:[{rotate:ut()}],"rotate-x":[{"rotate-x":ut()}],"rotate-y":[{"rotate-y":ut()}],"rotate-z":[{"rotate-z":ut()}],scale:[{scale:Je()}],"scale-x":[{"scale-x":Je()}],"scale-y":[{"scale-y":Je()}],"scale-z":[{"scale-z":Je()}],"scale-3d":["scale-3d"],skew:[{skew:St()}],"skew-x":[{"skew-x":St()}],"skew-y":[{"skew-y":St()}],transform:[{transform:[Ce,Te,"","none","gpu","cpu"]}],"transform-origin":[{origin:re()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Et()}],"translate-x":[{"translate-x":Et()}],"translate-y":[{"translate-y":Et()}],"translate-z":[{"translate-z":Et()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ce,Te]}],"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":ne()}],"scroll-mx":[{"scroll-mx":ne()}],"scroll-my":[{"scroll-my":ne()}],"scroll-ms":[{"scroll-ms":ne()}],"scroll-me":[{"scroll-me":ne()}],"scroll-mt":[{"scroll-mt":ne()}],"scroll-mr":[{"scroll-mr":ne()}],"scroll-mb":[{"scroll-mb":ne()}],"scroll-ml":[{"scroll-ml":ne()}],"scroll-p":[{"scroll-p":ne()}],"scroll-px":[{"scroll-px":ne()}],"scroll-py":[{"scroll-py":ne()}],"scroll-ps":[{"scroll-ps":ne()}],"scroll-pe":[{"scroll-pe":ne()}],"scroll-pt":[{"scroll-pt":ne()}],"scroll-pr":[{"scroll-pr":ne()}],"scroll-pb":[{"scroll-pb":ne()}],"scroll-pl":[{"scroll-pl":ne()}],"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",Ce,Te]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[nt,Cd,_s,Ap]}],stroke:[{stroke:["none",...z()]}],"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"]}},bA=Fy(pA);function yA(...a){const u=[];a.forEach(o=>{typeof o=="object"&&o.constructor===Object?Object.keys(o).forEach(h=>{o[h]&&u.push(h)}):Array.isArray(o)?u.push(...o):typeof o=="function"?u.push(o()):o&&o.value?u.push(o.value):o&&u.push(o)});const s=[];return u.forEach(o=>{s.indexOf(o)<0&&s.push(o)}),s.filter(o=>!!o).join(" ")}function w(...a){return bA(yA(...a))}const AA=(a,u,s)=>{const{safeAreas:o}=a;return w(u==="ios"&&"k-ios",u==="material"&&"k-material","k-app w-full h-full min-h-screen relative",o&&"safe-areas",s)};function Bp(){return Bp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Bp.apply(null,arguments)}const V1=a=>{const{component:u="div",className:s,theme:o="material",dark:h=!0,materialTouchRipple:v=!0,iosHoverHighlight:g=!0,safeAreas:y=!0,ref:A,children:S,...O}=a,R=F.useRef(null),H=u,X={...O},U=D1(o),j=AA({...a,safeAreas:y},U,s);return W.createElement(ky,{theme:U,dark:h,materialTouchRipple:v,iosHoverHighlight:g,autoThemeDetection:!1},W.createElement(H,Bp({ref:Z=>{R.current=Z,A&&typeof A=="function"?A(Z):A&&(A.current=Z)},className:j},X),S))};V1.displayName="App";const _p=(a,u,s)=>{if(typeof a=="string")return a;const o=[a[u],a.common];return s&&a[s]&&(typeof a[s]=="string"?o.push(a[s]):o.push(a[s].common,a[s][u])),o},_A=(a,u,s)=>{const o={},h=["common","ios","material"];return Object.keys(a).forEach(v=>{const g=v==="base"?s:"";if(!(typeof a[v]!="string"&&Object.keys(a[v]).filter(S=>!h.includes(S)).length>0)){o[v]=w(_p(a[v],u),g);return}o[v]={};const A=_p(a[v],u);o[v].default=w(A,g),Object.keys(a[v]).filter(S=>!h.includes(S)).forEach(S=>{o[v][S]=w(A,_p(a[v],u,S),g)})}),o},kn=({ios:a,material:u}={})=>{let o=F.useContext(wc).theme||"ios";return a&&(o="ios"),u&&(o="material"),(h,v)=>_A(h,o,v)},xA=(a,u)=>({base:{common:"",ios:w("bg-ios-light-glass shadow-ios-light-glass backdrop-blur-lg touch-none",u("dark:bg-ios-dark-glass dark:shadow-ios-dark-glass")),material:""}}),Rr=({ios:a,material:u}={})=>{let o=F.useContext(wc).theme||"ios";return a&&(o="ios"),u&&(o="material"),o},er=()=>{const a=F.useContext(wc);return u=>a.dark?u:""},SA=a=>{requestAnimationFrame(()=>{requestAnimationFrame(a)})},EA=({getEl:a,zIndex:u=10,opacity:s=1,offset:o=1,enabled:h=!0,data:v={}})=>{const g=()=>typeof h=="function"?h():h,y=()=>{const U=a();if(U&&v.elScale){v.elScale=!1,U.style.scale="";const j=()=>{U.style.transitionDuration="",U.style.transitionTimingFunction="",U.removeEventListener("transitionend",j)};U.addEventListener("transitionend",j)}if(v.lightElWrap){const j=v.lightElWrap;j.style.opacity==="0"?j.remove():(j.addEventListener("transitionend",()=>{j.remove()}),j.style.opacity=0)}},A=U=>{if(v.lightEl){const{x:j,y:Z}=U,$=j-v.rect.x,fe=Z-v.rect.y;v.lightEl.style.transform=`translate3d(${$}px, ${fe}px, 0)`}},S=U=>{if(!g())return;const j=v,Z=a();j.rect=Z.getBoundingClientRect();const $=document.createElement("span");$.className="rounded-[inherit]",$.style=`left: ${o}px; top: ${o}px; right: ${o}px; bottom: ${o}px;transition-duration: 300ms; opacity: 0; position: absolute; overflow: hidden; pointer-events: none`;const fe=document.createElement("span"),{width:me,height:ye}=j.rect,re=(me**2+ye**2)**.5;fe.style.position="absolute",fe.style.zIndex=u,fe.style.width=`${re*2}px`,fe.style.left=`${-re}px`,fe.style.height=`${re*2}px`,fe.style.top=`${-re}px`,fe.style.borderRadius="50%";const de="var(--color-ios-hover-highlight)";if(fe.style.backgroundImage=`radial-gradient(circle at center, color-mix(in oklab, ${de} ${s*100}%, transparent), transparent 50%)`,fe.style.pointerEvents="none",j.lightEl=fe,j.lightElWrap=$,A(U),$.append(fe),Z.append($),U.pointerType!=="mouse"&&U.pointerType!=="mouse"){j.elScale=!0;let be=1.25;(j.rect.width>60||j.rect.height>60)&&(be=1.05),Z.style.scale=be,Z.style.transitionDuration="300ms",Z.style.transitionTimingFunction="ease-in-out"}SA(()=>{$.style.opacity=1})},O=U=>{g()&&A(U)},R=U=>{y()};return{removeHoverHighlight:y,attachEvents:()=>{const U=a();U&&(U.addEventListener("pointerenter",S),U.addEventListener("pointermove",O),U.addEventListener("pointerleave",R))},detachEvents:()=>{const U=a();U&&(U.removeEventListener("pointerenter",S),U.removeEventListener("pointermove",O),U.removeEventListener("pointerleave",R))}}};function zp(){return zp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},zp.apply(null,arguments)}const _c=a=>{const{component:u="div",className:s,highlight:o=!0,ios:h,material:v,children:g,ref:y,...A}=a,S=F.useRef(null),O=u,R={...A},H=Rr(),X=kn({ios:h,material:v}),U=er(),{iosHoverHighlight:j}=F.useContext(wc),Z=F.useRef({}),{attachEvents:$,detachEvents:fe}=EA({getEl:()=>S.current,enabled:o&&H==="ios"&&j,data:Z.current}),me=X(xA({...a},U),s);return F.useEffect(()=>($(),()=>fe())),W.createElement(O,zp({ref:ye=>{y&&typeof y=="function"?y(ye):y&&(y.current=ye),S.current=ye},className:me.base},R),g)};_c.displayName="Glass";function tr(a){if(!a||typeof a!="object")return{};const u={};return Object.keys(a).forEach(s=>{a[s]!=null&&(u[s]=a[s])}),u}class OA{constructor(u,s,o){const h=this;if(!u)return;h.el=u;const{left:v,top:g,width:y,height:A}=u.getBoundingClientRect(),S={x:s-v,y:o-g};let O=Math.max((A**2+y**2)**.5,48);const R=u.classList.contains("k-touch-ripple-inset");R&&(O=Math.max(Math.min(y,A),48));const H=typeof window<"u"&&window.getComputedStyle(u,null).getPropertyValue("overflow")==="hidden";if(!R&&H){const U=((S.x-y/2)**2+(S.y-A/2)**2)**.5,j=(O/2+U)/(O/2);h.rippleTransform=`translate3d(0px, 0px, 0) scale(${j})`}else h.rippleTransform=`translate3d(${-S.x+y/2}px, ${-S.y+A/2}px, 0) scale(1)`;h.rippleWaveEl=document.createElement("span"),h.rippleWaveEl.classList.add("k-touch-ripple-wave"),h.rippleWaveEl.style=`
      width: ${O}px;
      height: ${O}px;
      margin-top:-${O/2}px;
      margin-left:-${O/2}px;
      left:${S.x}px;
      top:${S.y}px; --k-ripple-transform: ${h.rippleTransform}`,u.insertAdjacentElement("afterbegin",h.rippleWaveEl);const X=()=>{h.rippleWaveEl.removeEventListener("animationend",X),h.rippleWaveEl&&(h.rippleWaveEl.classList.contains("k-touch-ripple-wave-out")||(h.rippleWaveEl.classList.add("k-touch-ripple-wave-in"),h.shouldBeRemoved&&h.out()))};return h.rippleWaveEl.addEventListener("animationend",X),h}destroy(){}out(){const u=this,{rippleWaveEl:s}=this;clearTimeout(u.removeTimeout),s.classList.add("k-touch-ripple-wave-out"),u.removeTimeout=setTimeout(()=>{u.destroy()},300);const o=()=>{u.rippleWaveEl.removeEventListener("animationend",o),clearTimeout(u.removeTimeout),u.destroy()};u.rippleWaveEl.addEventListener("animationend",o)}remove(){const u=this;u.shouldBeRemoved||(u.removeTimeout=setTimeout(()=>{u.destroy()},400),u.shouldBeRemoved=!0,u.rippleWaveEl.classList.contains("k-touch-ripple-wave-in")&&u.out())}}const y0=(a,u,s)=>{const o=F.useContext(wc);s||(s=a);const h=F.useRef(null),v=()=>{h.current&&h.current.remove(),h.current=null},g=X=>{h.current=new OA(a.current,X.pageX,X.pageY)},y=()=>{v()},A=()=>{v()},S=()=>{if(!o.materialTouchRipple)return;const X=s.current;X.addEventListener("pointerdown",g),X.addEventListener("pointermove",y),X.addEventListener("pointerup",A),X.addEventListener("pointercancel",A),X.addEventListener("contextmenu",A)},O=()=>{const X=s.current;X.removeEventListener("pointerdown",g),X.removeEventListener("pointermove",y),X.removeEventListener("pointerup",A),X.removeEventListener("pointercancel",A),X.removeEventListener("contextmenu",A)},R=()=>{!s||!s.current||!u||S()},H=()=>{!s||!s.current||!u||O()};F.useEffect(()=>(R(),()=>H()))},wA=(a,u)=>({base:{common:`k-badge ${u.text} ${u.bg} inline-flex items-center justify-center rounded-full leading-none`,ios:"font-semibold",material:"font-medium",sm:"text-2xs min-w-4 min-h-4 px-0.5",md:"text-xs min-w-5 min-h-5 px-1.5 py-0.5"}}),MA=(a={})=>({bg:"bg-primary",text:"text-white",...tr(a)});function Lp(){return Lp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Lp.apply(null,arguments)}const I1=a=>{const{component:u="span",className:s,colors:o,small:h,ios:v,material:g,children:y,ref:A,...S}=a,O=F.useRef(null),R=u,H={...S},X=kn({ios:v,material:g}),U=MA(o),j=h?"sm":"md",Z=X(wA(a,U),s);return W.createElement(R,Lp({ref:$=>{O.current=$,A&&typeof A=="function"?A($):A&&(A.current=$)},className:Z.base[j]},H),y)};I1.displayName="Badge";const TA=(a,u)=>{const{inset:s,nested:o,strong:h,outline:v}=a;return{base:{common:w("k-block text-sm z-10 relative",!s&&!o&&v&&"hairline-t hairline-b",s&&v&&"border",s&&"px-4",!s&&"pl-safe-4 pr-safe-4",!o&&"my-8",(h||v)&&"py-4"),ios:w(u.textIos,h&&u.strongBgIos,s&&v&&u.outlineIos),material:w(u.textMaterial,h&&u.strongBgMaterial,s&&v&&u.outlineMaterial)},inset:{common:"ml-safe-4 mr-safe-4 overflow-hidden",ios:"rounded-3xl",material:"rounded-2xl"}}},CA=(a={},u)=>({outlineIos:w("border-black/20",u("dark:border-white/15")),outlineMaterial:w("border-md-light-outline",u("border-md-dark-outline")),strongBgIos:w("bg-ios-light-surface-1",u("dark:bg-ios-dark-surface-1")),strongBgMaterial:w("bg-md-light-surface-1",u("dark:bg-md-dark-surface-1")),textIos:"",textMaterial:w("text-md-light-on-surface",u("dark:text-md-dark-on-surface")),...tr(a)}),Iv=(a,u,s)=>{const o={};return Object.keys(u).forEach(h=>{o[h]=typeof u[h]>"u"?a==="ios"?s[`${h}Ios`]:s[`${h}Material`]:u[h]}),o};function Up(){return Up=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Up.apply(null,arguments)}const Q1=a=>{const{component:u="div",className:s,colors:o,inset:h,insetIos:v,insetMaterial:g,strong:y,strongIos:A,strongMaterial:S,outline:O,outlineIos:R,outlineMaterial:H,nested:X,ios:U,material:j,ref:Z,children:$,...fe}=a,me=F.useRef(null),ye=u,re={...fe},de=Rr({ios:U,material:j}),be=kn({ios:U,material:j}),ne=er(),Oe=CA(o,ne),{strong:Re,outline:Ae,inset:Ne}=Iv(de,{strong:y,outline:O,inset:h},a),Ge=be(TA({...a,inset:Ne,strong:Re,outline:Ae},Oe)),pe=w(Ge.base,Ne&&Ge.inset,s);return W.createElement(ye,Up({ref:ae=>{me.current=ae,Z&&typeof Z=="function"?Z(ae):Z&&(Z.current=ae)},className:pe},re),$)};Q1.displayName="Block";function jp(){return jp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},jp.apply(null,arguments)}const RA=a=>W.createElement("svg",jp({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"14",viewBox:"0 0 12 20",fill:"currentcolor"},a),W.createElement("path",{d:"M11.518406,10.5648622 C11.4831857,10.6163453 11.4426714,10.6653692 11.3968592,10.7111814 L2.5584348,19.5496058 C1.9753444,20.1326962 1.03186648,20.1345946 0.44199608,19.5447242 C-0.14379032,18.9589377 -0.14922592,18.0146258 0.43711448,17.4282854 L7.87507783,9.9903221 L0.4431923,2.5584366 C-0.1398981,1.9753462 -0.1417965,1.0318683 0.448074,0.4419979 C1.0338604,-0.1437886 1.9781723,-0.1492241 2.56451268,0.4371163 L11.4029371,9.2755407 C11.7556117,9.6282153 11.7969345,10.1725307 11.518406,10.5648622 Z"})),NA=(a,u,s)=>{const{inline:o,segmented:h,segmentedStrong:v,segmentedActive:g,disabled:y}=a;return{base:{common:w("k-button flex text-center justify-center items-center appearance-none py-1 transition-colors focus:outline-none cursor-pointer select-none overflow-hidden z-10 relative",o?"inline-flex":"w-full flex",y&&"pointer-events-none",v&&g&&"k-segmented-strong-button-active"),ios:"duration-100 font-medium px-2",material:"duration-300 font-medium px-4",square:{ios:h&&!v?"first:rounded-s last:rounded-e":"rounded",material:h&&!v?"first:rounded-lg-s last:rounded-lg-e":"rounded-lg"},rounded:h&&!v?"":"rounded-full"},style:{fill:{common:w(y&&w(u.disabledBg,u.disabledText)),ios:w(y?w(u.disabledBg,u.disabledText):`${u.fillTextIos} ${u.fillBgIos}`),material:w(y?w(u.disabledBg,u.disabledText):w(u.fillTextMaterial,u.fillBgMaterial,u.fillTouchRipple))},outline:{common:w(y?w(u.disabledText,u.disabledBorder):u.touchRipple),ios:w(!h&&"border-2",!y&&!h&&u.outlineBorderIos,!y&&w(u.textIos,u.outlineBgIos)),material:w(!h&&"border",!y&&!h&&u.outlineBorderMaterial,!y&&w(u.textMaterial,u.outlineBgMaterial))},clear:{common:w(y?u.disabledText:u.touchRipple),ios:!y&&w(u.textIos,u.clearBgIos),material:!y&&w(u.textMaterial,u.clearBgMaterial)},tonal:{common:y?w(u.disabledBg,u.disabledText):w(u.touchRipple),ios:!y&&w(u.tonalTextIos,u.tonalBgIos),material:!y&&w(u.tonalTextMaterial,u.tonalBgMaterial)},segmentedStrong:w("active:bg-black/10",s("dark:active:bg-white/5 dark:touch-ripple-white")),segmentedStrongActive:{ios:w("duration-200",u.segmentedStrongTextIos),material:w("duration-0",u.segmentedStrongTextMaterial)}},size:{small:{ios:"text-sm h-7",material:"text-sm h-8"},medium:{common:"text-sm",ios:"h-8.5 text-[15px]",material:"h-10"},large:{ios:"h-12 text-[17px] font-semibold",material:"h-12"}},raised:"shadow active:shadow-lg"}},DA=(a={},u)=>({textIos:"text-primary",textMaterial:w("text-md-light-primary","dark:text-md-dark-primary"),fillTextIos:w("text-white"),fillTextMaterial:w("text-md-light-on-primary",u("dark:text-md-dark-on-primary")),fillBgIos:"bg-primary active:bg-ios-primary-shade",fillBgMaterial:w("bg-md-light-primary",u("dark:bg-md-dark-primary")),fillTouchRipple:w("touch-ripple-white","dark:touch-ripple-primary"),clearBgIos:"bg-transparent active:bg-primary/15",clearBgMaterial:"bg-transparent",outlineBgIos:"bg-transparent active:bg-primary/15",outlineBgMaterial:"bg-transparent",outlineBorderIos:"border-primary",outlineBorderMaterial:w("border-md-light-outline",u("dark:border-md-dark-outline")),segmentedStrongTextIos:"text-black",segmentedStrongTextMaterial:"",tonalBgIos:"bg-primary/15 active:bg-primary/25",tonalBgMaterial:w("bg-md-light-secondary-container",u("dark:bg-md-dark-secondary-container")),tonalTextIos:"text-primary",tonalTextMaterial:w("text-md-light-on-secondary-container",u("dark:text-md-dark-on-secondary-container")),touchRipple:"touch-ripple-primary",disabledText:w("text-black/30",u("dark:text-white/30")),disabledBg:w("bg-black/10",u("dark:bg-white/10")),disabledBorder:w("border-black/10",u("dark:border-white/10")),...tr(a)});function kp(){return kp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},kp.apply(null,arguments)}const Qv=a=>{const{component:u="button",className:s,colors:o,ios:h,material:v,disabled:g,href:y,outline:A,outlineIos:S,outlineMaterial:O,clear:R,clearIos:H,clearMaterial:X,tonal:U,tonalIos:j,tonalMaterial:Z,rounded:$,roundedIos:fe,roundedMaterial:me,small:ye,smallIos:re,smallMaterial:de,large:be,largeIos:ne,largeMaterial:Oe,raised:Re,raisedIos:Ae,raisedMaterial:Ne,inline:Ge,segmented:pe,segmentedStrong:ae,segmentedActive:N,children:K,ref:z,...ve}=a,M=F.useRef(null);let Q=u;typeof a.component>"u"&&(y||y==="")&&(Q="a");const ce={href:y,...ve},ee=Rr({ios:h,material:v}),ge=kn({ios:h,material:v}),we=er();y0(M,ee==="material");const _e=Iv(ee,{outline:A,clear:R,tonal:U,rounded:$,small:ye,large:be,raised:Re},a),qe=_e.large?"large":_e.small?"small":"medium";let Ue=_e.outline?"outline":_e.clear||pe&&!N?"clear":_e.tonal?"tonal":"fill";ae&&(Ue="segmentedStrong"),ae&&N&&(Ue="segmentedStrongActive");const ut=DA(o,we),Je=ge(NA({...a,..._e},ut,we)),St=w(Je.base[_e.rounded?"rounded":"square"],Je.style[Ue],Je.size[qe],_e.raised&&Je.raised,s);return W.createElement(Q,kp({ref:Et=>{M.current=Et,z&&typeof z=="function"?z(Et):z&&(z.current=Et)},className:St,disabled:g,role:"button",tabIndex:"0"},ce),K)};Qv.displayName="Button";const BA=(a,u)=>({base:{common:"k-chip text-sm inline-flex items-center justify-center align-middle rounded-full px-3",ios:"rounded-full h-7",material:"rounded-lg h-8 font-medium",fill:{ios:w(u.fillBg||u.fillBgIos,u.fillText||u.fillTextIos),material:w(u.fillBg||u.fillBgMaterial,u.fillText||u.fillTextMaterial)},outline:{common:"border",ios:w(u.outlineText||u.outlineTextIos,u.outlineBorder||u.outlineBorderIos),material:w(u.outlineText||u.outlineTextMaterial,u.outlineBorder||u.outlineBorderMaterial)}},media:{common:"-my-1 me-1 select-none",ios:"-ms-3",material:"-ms-2"},deleteButton:"-me-2 -my-1 ms-1 h-full flex items-center justify-center w-6 cursor-pointer opacity-50 active:opacity-100 select-none"}),zA=(a={},u)=>({fillTextIos:"text-current",fillTextMaterial:w("text-md-light-on-secondary-container",u("dark:text-md-dark-on-secondary-container")),fillBgIos:w("bg-black/10",u("dark:bg-white/10")),fillBgMaterial:w("bg-md-light-secondary-container",u("dark:bg-md-dark-secondary-container")),outlineTextIos:w("text-current"),outlineTextMaterial:w("text-md-light-on-surface",u("dark:text-md-dark-on-surface")),outlineBorderIos:w("border-black/20",u("dark:border-white/20")),outlineBorderMaterial:w("border-md-light-outline",u("dark:border-md-dark-outline")),...tr(a)});function Mv(){return Mv=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Mv.apply(null,arguments)}const Tv=({theme:a,...u})=>a==="ios"?W.createElement("svg",Mv({xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentcolor"},u),W.createElement("path",{d:"M14,0 C21.7319865,0 28,6.2680135 28,14 C28,21.7319865 21.7319865,28 14,28 C6.2680135,28 0,21.7319865 0,14 C0,6.2680135 6.2680135,0 14,0 Z M18.9393398,6.93933983 L14,11.8786797 L9.06066017,6.93933983 L6.93933983,9.06066017 L11.8786797,14 L6.93933983,18.9393398 L9.06066017,21.0606602 L14,16.1213203 L18.9393398,21.0606602 L21.0606602,18.9393398 L16.1213203,14 L21.0606602,9.06066017 L18.9393398,6.93933983 Z"})):W.createElement("svg",Mv({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},u),W.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.47 2 2 6.47 2 12C2 17.53 6.47 22 12 22C17.53 22 22 17.53 22 12C22 6.47 17.53 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM12 10.59L15.59 7L17 8.41L13.41 12L17 15.59L15.59 17L12 13.41L8.41 17L7 15.59L10.59 12L7 8.41L8.41 7L12 10.59Z",fill:"currentcolor"}));function Hp(){return Hp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Hp.apply(null,arguments)}const zd=a=>{const{component:u="div",className:s,colors:o,media:h,deleteButton:v,onDelete:g,ios:y,material:A,outline:S,children:O,ref:R,...H}=a,X=F.useRef(null),U=u,j={...H},Z=kn({ios:y,material:A}),$=Rr({ios:y,material:A}),fe=er(),me=S?"outline":"fill",ye=zA(o,fe),re=Z(BA(a,ye),s);return W.createElement(U,Hp({ref:de=>{X.current=de,R&&typeof R=="function"?R(de):R&&(R.current=de)},className:re.base[me]},j),h&&W.createElement("div",{className:re.media},h),O,v&&W.createElement("div",{className:re.deleteButton,role:"button",tabIndex:"0",onClick:g},W.createElement(Tv,{theme:$,className:"h-4 w-4"})))};zd.displayName="Chip";const LA=(a,{textColor:u,needsTouchRipple:s})=>{const{iconOnly:o,tabbar:h,tabbarLabels:v,tabbarIcons:g}=a;return{base:{common:w("k-link",!h&&u,"inline-flex gap-1 justify-center items-center cursor-pointer select-none",s&&"touch-ripple-primary relative z-10"),ios:w(!h&&"active:opacity-50 duration-300"),material:!h&&w(s?"":"active:opacity-55")},tabbar:{common:w("w-full h-full duration-300 transition-colors relative"),ios:w("px-4 truncate",!g&&v&&"md:px-8",g&&v&&"md:min-w-24",g&&!v&&"md:min-w-12"),material:"font-medium text-sm z-10",active:"k-tabbar-link-active",inactive:""},toolbar:{common:w("h-full",o&&"k-touch-ripple-inset"),ios:w(!o&&"px-4 truncate",o&&"aspect-square"),material:"px-3 text-sm font-medium max-h-12"},navbar:{common:w("h-full max-h-12",o&&"k-touch-ripple-inset"),ios:w(!o&&"px-4",o&&"aspect-square"),material:"px-3"}}},UA=(a={},u)=>({textIos:"text-primary",textMaterial:w("text-md-light-primary",u("dark:text-md-dark-primary")),navbarTextIos:"",navbarTextMaterial:"",toolbarTextIos:"",toolbarTextMaterial:w("text-md-light-primary",u("dark:text-md-dark-primary")),...tr(a)}),X1=F.createContext({tabbarLabels:!0,tabbarIcons:!0,tabbar:!1,toolbar:!1}),jA=()=>F.useContext(X1),Z1=F.createContext({navbar:!1}),K1=()=>F.useContext(Z1);function Gp(){return Gp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Gp.apply(null,arguments)}const Cv=a=>{const{component:u="a",className:s,colors:o,iconOnly:h,linkProps:v={},tabbarActive:g,ios:y,material:A,onClick:S,children:O,ref:R,...H}=a,{navbar:X}=K1(),{toolbar:U,tabbar:j,tabbarLabels:Z,tabbarIcons:$}=jA(),fe=F.useRef(null),me=u,ye={...v,...H},re=Rr({ios:y,material:A}),de=kn({ios:y,material:A}),be=er(),ne=re==="material"&&(U||j||X);y0(fe,ne);const Oe=UA(o,be),Re=X?re==="material"?Oe.navbarTextMaterial:Oe.navbarTextIos:U?re==="material"?Oe.toolbarTextMaterial:Oe.toolbarTextIos:re==="material"?Oe.textMaterial:Oe.textIos,Ae=j&&!g?Oe.tabbarInactive:Re,Ne=g?"active":"inactive",Ge=de(LA({...a,tabbarLabels:Z,tabbarIcons:$,tabbar:j},{textColor:Ae,needsTouchRipple:ne})),pe=w(Ge.base,U&&Ge.toolbar,X&&Ge.navbar,j&&Ge.tabbar[Ne],s);return W.createElement(me,Gp({ref:ae=>{fe.current=ae,R&&typeof R=="function"?R(ae):R&&(R.current=ae)},className:pe},ye,{role:"link",tabIndex:"0",onClick:S}),O)};Cv.displayName="Link";const kA=(a,u)=>{const{nested:s,inset:o,strong:h,outline:v}=a;return{base:{common:w("k-list",!s&&"my-8",!o&&!s&&v&&"hairline-t hairline-b",o&&v&&"border","z-10 relative"),ios:w(h&&u.strongBgIos,o&&v&&u.outlineIos),material:w(h&&u.strongBgMaterial,o&&v&&u.outlineMaterial)},ul:{common:w(o&&"no-safe-areas","last-child-hairline-b-none")},inset:{common:"ml-safe-4 mr-safe-4 overflow-hidden",ios:"rounded-3xl",material:"rounded-2xl"},menuList:{common:"py-1"}}},HA=(a={},u)=>({outlineIos:w("border-black/20",u("dark:border-white/15")),outlineMaterial:w("border-md-light-outline",u("border-md-dark-outline")),strongBgIos:w("bg-ios-light-surface-1",u("dark:bg-ios-dark-surface-1")),strongBgMaterial:w("bg-md-light-surface-1",u("dark:bg-md-dark-surface-1")),...tr(a)}),P1=W.createContext({dividers:!1,nested:!1});function qp(){return qp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},qp.apply(null,arguments)}const Xv=a=>{const{component:u="div",className:s,colors:o,nested:h,menuList:v,dividers:g,dividersIos:y=!0,dividersMaterial:A=!1,inset:S,insetIos:O,insetMaterial:R,strong:H,strongIos:X,strongMaterial:U,outline:j,outlineIos:Z,outlineMaterial:$,ios:fe,material:me,children:ye,ref:re,...de}=a,be=F.useRef(null),ne=u,Oe={...de},Re=Rr(),Ae=kn({ios:fe,material:me}),Ne=er(),{strong:Ge,outline:pe,inset:ae,dividers:N}=Iv(Re,{strong:H,outline:j,inset:S,dividers:g},{strongIos:X,strongMaterial:U,outlineIos:Z,outlineMaterial:$,insetIos:O,insetMaterial:R,dividersIos:y,dividersMaterial:A,...a}),K=HA(o,Ne),z=Ae(kA({...a,inset:ae,strong:Ge,outline:pe},K)),ve=w(z.base,ae&&z.inset,v&&z.menuList,s);return W.createElement(P1.Provider,{value:{nested:h,dividers:N}},W.createElement(ne,qp({ref:M=>{be.current=M,re&&typeof re=="function"?re(M):re&&(re.current=M)},className:ve},Oe),W.createElement("ul",{className:z.ul},ye)))};Xv.displayName="List";const GA=()=>F.useContext(P1),qA=(a,u,{isMediaItem:s,theme:o,textColor:h,needsTouchRipple:v,isMenuListItemActive:g,autoStrongTitle:y,nested:A},S)=>{const{menuListItem:O,dividers:R,mediaClassName:H="",mediaClass:X="",innerClassName:U="",innerClass:j="",contentClassName:Z="",contentClass:$="",titleWrapClassName:fe="",titleWrapClass:me="",titleFontSizeIos:ye,titleFontSizeMaterial:re,strongTitle:de,contacts:be}=a;return{base:{common:w("k-list-item",O?`${h} py-1`:"",S),material:be&&"[&:nth-child(2)]:-mt-12"},itemContent:{common:w(`flex items-center ${Z||$}`),ios:w(!O&&w(u.primaryTextIos,A?"ps-4":"ps-safe-4"),O&&"rounded-2xl ml-safe-2 mr-safe-2 ps-2"),material:w(!O&&w(u.primaryTextMaterial,s?"ml-safe-2 mr-safe-2 rounded-2xl ps-2":"ps-safe-4",be&&"ml-10"),O&&"rounded-full min-h-[3.5rem] ml-safe-4 mr-safe-4 ps-4"),link:w("duration-300 active:duration-0 cursor-pointer select-none",R&&o==="ios"&&"active:hairline-transparent",v&&w("relative overflow-hidden z-10",u.touchRipple),w(g?o==="ios"?u.menuListItemActiveBgIos:u.menuListItemActiveBgMaterial:O?o==="ios"?u.menuListItemBgIos:u.menuListItemBgMaterial:o==="ios"?u.activeBgIos:u.activeBgMaterial))},media:{common:`shrink-0 flex ${H||X}`,ios:"py-2 me-4",material:w("py-3",O?"me-3":"me-4")},inner:{common:w("w-full relative",!O&&R&&"hairline-b",U||j),ios:w("py-3 pe-safe-4"),material:w("py-3",s&&!O?"pe-2":"pe-safe-4")},titleWrap:{common:w(`flex justify-between items-center ${fe||me}`),ios:w(!O&&ye,!O&&"min-h-7"),material:w(!O&&re)},title:{common:"shrink",menuListItem:w("text-sm",de===!0||y?"font-semibold":"font-medium"),strong:{common:"",ios:"font-semibold",material:"font-medium"}},after:{common:w("shrink-0 ms-auto ps-1 flex items-center gap-1"),ios:u.secondaryTextIos,material:w(u.secondaryTextMaterial,"text-sm")},chevron:"opacity-20 shrink-0 ms-3 rtl:rotate-180",subtitle:"text-sm",text:{common:w("text-sm line-clamp-2"),ios:u.secondaryTextIos,material:u.secondaryTextMaterial},header:{common:"text-xs mb-0.5",ios:u.secondaryTextIos,material:u.secondaryTextMaterial},footer:{common:w("text-xs mt-0.5"),ios:u.secondaryTextIos,material:u.secondaryTextMaterial},groupTitle:{common:w("pl-safe-4 pr-safe-4 py-1 flex items-center z-20"),ios:`h-8${R?" hairline-t":""} -mt-px ${ye} ${u.secondaryTextIos} ${u.groupTitleBgIos} ${be&&w("font-semibold top-safe-15 sticky",u.groupTitleContactsTextIos,u.groupTitleContactsBgIos)}`,material:`h-12 ${re} ${u.secondaryTextMaterial} ${u.groupTitleBgMaterial} ${be&&w("pointer-events-none overflow-visible h-12 box-border text-xl font-medium flex max-w-full items-center px-4 top-safe-16 sticky",u.groupTitleContactsTextMaterial,u.groupTitleContactsBgMaterial)}`}}},YA=(a={},u)=>({primaryTextIos:w("text-black",u("dark:text-white")),primaryTextMaterial:w("text-md-light-on-surface",u("dark:text-md-dark-on-surface")),secondaryTextIos:w("text-black/55",u("dark:text-white/55")),secondaryTextMaterial:w("text-md-light-on-surface-variant",u("dark:text-md-dark-on-surface-variant")),activeBgIos:w("active:not-[:has(.k-toggle:active)]:bg-black/10",u("dark:active:not-[:has(.k-toggle:active)]:bg-white/10")),activeBgMaterial:"",groupTitleBgIos:w("bg-ios-light-surface-variant",u("dark:bg-ios-dark-surface-variant")),groupTitleBgMaterial:w("bg-md-light-surface-2",u("dark:bg-md-dark-surface-2")),menuListItemTextIos:w("text-black",u("dark:text-white")),menuListItemTextMaterial:w("text-md-light-on-surface-variant",u("dark:text-md-dark-on-surface-variant")),menuListItemBgIos:w("active:bg-black/10",u("dark:active:bg-white/10")),menuListItemBgMaterial:w("bg-md-light-surface-1",u("dark:bg-md-dark-surface-1")),menuListItemActiveTextIos:w("text-primary",u("dark:text-white")),menuListItemActiveTextMaterial:w("text-md-light-on-secondary-container",u("dark:text-md-dark-on-secondary-container")),menuListItemActiveBgIos:w("bg-primary/15",u("dark:bg-primary")),menuListItemActiveBgMaterial:w("bg-md-light-secondary-container",u("dark:bg-md-dark-secondary-container")),touchRipple:w("touch-ripple-black",u("dark:touch-ripple-white")),groupTitleContactsTextIos:w("text-black/90",u("dark:text-white/90")),groupTitleContactsTextMaterial:w("text-md-light-primary",u("dark:text-md-dark-primary")),groupTitleContactsBgIos:w(u("dark:bg-[#323234]")),groupTitleContactsBgMaterial:w("bg-transparent",u("dark:bg-transparent")),...tr(a)});function Rv(){return Rv=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Rv.apply(null,arguments)}const Ac=a=>{const{component:u="li",colors:s,className:o,mediaClassName:h="",innerClassName:v="",innerChildren:g,contentClassName:y="",contentChildren:A,titleWrapClassName:S="",titleFontSizeIos:O="text-[17px]",titleFontSizeMaterial:R="text-[16px]",title:H,subtitle:X,text:U,after:j,media:Z,header:$,footer:fe,menuListItem:me,menuListItemActive:ye,groupTitle:re,strongTitle:de="auto",label:be,chevron:ne=void 0,chevronIos:Oe=!0,chevronMaterial:Re=!0,chevronIcon:Ae,href:Ne,target:Ge,link:pe,linkComponent:ae="a",linkProps:N={},dividers:K,contacts:z,ios:ve,material:M,children:Q,ref:ce,...ee}=a,ge=F.useRef(null),we=F.useRef(null),_e=u,qe={...ee},Ue=GA(),ut=typeof K>"u"?Ue?.dividers:K,Je=Rr({ios:ve,material:M}),St=kn({ios:ve,material:M}),Et=er(),on=typeof ne>"u"?Je==="ios"?Oe:Re:ne,zt=YA(s,Et),yn=me&&ye,Si=zt[`${yn?"menuListItemActiveText":me?"menuListItemText":"text"}${Je==="ios"?"Ios":"Material"}`],gt=!!Ne||Ne===""||me||pe,en=!!be,Vt=Je==="material"&&(en||gt);y0(ge,Vt);const nr=Ne===!0||Ne===!1||typeof Ne>"u"?void 0:Ne||"",Ot=gt?ae:en?"label":"div",En=gt?{href:nr,target:Ge,...N}:{},Nr=H&&(X||U),Dr=de==="auto"&&Nr,Ct=St(qA({...a,titleFontSizeIos:O,titleFontSizeMaterial:R,dividers:ut,strongTitle:de,mediaClassName:h,innerClassName:v,contentClassName:y,titleWrapClassName:S},zt,{isMediaItem:Nr,theme:Je,textColor:Si,needsTouchRipple:Vt,isMenuListItemActive:yn,autoStrongTitle:Dr,nested:Ue?.nested}),o),da=gt||en?Ct.itemContent.link:Ct.itemContent.default,Jt=me?Ct.title.menuListItem:de===!0||Dr?Ct.title.strong:Ct.title.default;return re?W.createElement(_e,{className:w(Ct.groupTitle,o)},H,Q):W.createElement(_e,Rv({ref:cn=>{we.current=cn,ce&&typeof ce=="function"?ce(cn):ce&&(ce.current=cn)},className:Ct.base},qe),W.createElement(Ot,Rv({ref:ge,className:da},En),Z&&W.createElement("div",{className:Ct.media},Z),W.createElement("div",{className:Ct.inner},$&&W.createElement("div",{className:Ct.header},$),(H||j)&&W.createElement("div",{className:Ct.titleWrap},H&&W.createElement("div",{className:Jt},H),j&&W.createElement("div",{className:Ct.after},j),gt&&on&&!me&&(Ae||W.createElement(RA,{className:Ct.chevron}))),X&&W.createElement("div",{className:Ct.subtitle},X),U&&W.createElement("div",{className:Ct.text},U),fe&&W.createElement("div",{className:Ct.footer},fe),g),A),Q)};Ac.displayName="ListItem";function Yp(){return Yp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Yp.apply(null,arguments)}const VA=a=>W.createElement("svg",Yp({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"5",viewBox:"0 0 8 5",fill:"currentcolor"},a),W.createElement("polygon",{fillRule:"evenodd",points:"0 0 8 0 4 5"})),IA=(a,u,{isFloatingTransformed:s,isFocused:o,darkClasses:h,getLabelColor:v,hasLabel:g},y)=>{const{error:A,type:S,outline:O,inputClassName:R="",inputClass:H=""}=a;return{base:{common:w("k-list-input",y),ios:w(O&&"my-4"),material:w("py-2")},itemContent:{common:"relative",ios:w(O&&"ml-4 mr-4 rounded-lg",!O&&u.bgIos),material:w("min-h-[56px] ml-4 mr-4",O?w("rounded"):w(u.bgMaterial,"rounded-t relative "))},inner:{common:"",material:w(O?"pt-4 pb-4":"pt-2 pb-2"),stacked:"",floating:""},label:{common:w("duration-200 text-xs",v(),O&&"flex"),ios:w(O&&"-mt-4"),material:w(O&&"-mt-4"),stacked:"",floating:{common:w("pointer-events-none duration-200 transform origin-left rtl:origin-right max-w-[66%]",s&&"scale-133"),ios:s?O?"translate-y-6":"translate-y-4":"",material:s?O?"translate-y-8":"translate-y-3":""}},labelText:{common:w(O&&"relative p-1 block -m-1"),ios:w(O&&w("-top-1",u.outlineLabelBgIos)),material:w(O&&w("-top-2",u.outlineLabelBgMaterial))},inputWrap:{common:"relative",ios:w((!g||O)&&"-mt-2.5","-mb-2.5"),stacked:"",floating:""},media:{material:""},titleWrap:{material:`duration-200 ${v()}`},input:{common:`block text-base appearance-none w-full focus:outline-none bg-transparent ${R||H}`,ios:"h-10",material:"h-6",notFloating:{common:w("placeholder-black/30",h("dark:placeholder-white/30")),material:w(S==="textarea"&&"py-1"),ios:w(S==="textarea"&&"py-2")},floating:s?"placeholder-transparent":w("placeholder-black/30",h("dark:placeholder-white/30"))},errorInfo:{common:"text-xs relative z-10",ios:"mt-1",material:""},error:u.errorText,info:"opacity-50",clearButton:{common:"absolute end-0 top-1/2 transform -translate-y-1/2 cursor-pointer",ios:w("w-3.5 h-3.5 opacity-45 active:opacity-30",u.labelTextIos),material:w("w-6 h-6 active:opacity-55",u.labelTextMaterial)},dropdown:"absolute end-0 top-1/2 transform -translate-y-1/2 pointer-events-none opacity-50",border:{common:"pointer-events-none absolute start-0 bottom-0 duration-200 w-full",ios:O&&w(A?u.errorBorder:o?u.outlineBorderFocusIos:u.outlineBorderIos,"h-full border rounded-lg -z-10"),material:w(A?u.errorBorder:o?u.outlineBorderFocusMaterial:u.outlineBorderMaterial,O&&w("h-full border rounded -z-10",o&&"border-2"),!O&&w("border-b h-px origin-bottom",o&&"scale-y-[2]"))}}},QA=(a={},u)=>({bgIos:"",bgMaterial:w("bg-md-light-surface-variant",u("dark:bg-md-dark-surface-variant")),outlineBorderIos:w("border-black/30",u("dark:border-white/30")),outlineBorderFocusIos:"border-primary",outlineBorderMaterial:w("border-md-light-on-surface",u("dark:border-md-dark-on-surface")),outlineBorderFocusMaterial:w("border-md-light-primary",u("dark:border-md-dark-primary")),outlineLabelBgIos:w("bg-ios-light-surface-1",u("dark:bg-ios-dark-surface-1")),outlineLabelBgMaterial:w("bg-md-light-surface",u("dark:bg-md-dark-surface")),labelTextIos:"",labelTextFocusIos:"",labelTextMaterial:w("text-md-light-on-surface-variant",u("dark:text-md-dark-on-surface-variant")),labelTextFocusMaterial:w("text-md-light-primary",u("dark:text-md-dark-primary")),errorText:"text-red-500",errorBorder:"border-red-500",...tr(a)});function Vp(){return Vp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Vp.apply(null,arguments)}const Ip=a=>{const{component:u="li",className:s,colors:o,label:h,floatingLabel:v,outline:g,outlineIos:y,outlineMaterial:A,media:S,input:O,info:R,error:H,clearButton:X,dropdown:U,inputId:j,inputStyle:Z,inputClassName:$="",name:fe,value:me,defaultValue:ye,type:re="text",inputMode:de,readOnly:be,required:ne,disabled:Oe,placeholder:Re,size:Ae,accept:Ne,autoComplete:Ge,autoCorrect:pe,autoCapitalize:ae,spellCheck:N,autoFocus:K,autoSave:z,max:ve,min:M,step:Q,maxLength:ce,minLength:ee,multiple:ge,pattern:we,tabIndex:_e,onInput:qe,onChange:Ue,onFocus:ut,onBlur:Je,onClear:St,ios:Et,material:on,children:zt,ref:yn,...Si}=a,gt=F.useRef(null),en=F.useRef(null),[Vt,nr]=F.useState(!1),Ot=Rr({ios:Et,material:on}),En=kn({ios:Et,material:on}),Nr=er(),Dr=QA(o,Nr),Ct=h&&v?"floating":"stacked",da=Ct==="floating"?"floating":"notFloating",Jt=()=>{if(gt.current)return gt.current.value},An=h&&v&&!(()=>{const On=Jt();return typeof me>"u"?On||On===0:me||me===0})()&&!Vt,lu=()=>H?Dr.errorText:Ot==="material"?Vt?Dr.labelTextFocusMaterial:Dr.labelTextMaterial:Ot==="ios"?Vt?Dr.labelTextFocusIos:Dr.labelTextIos:"",uu=On=>{nr(!0),ut&&ut(On)},su=On=>{nr(!1),Je&&Je(On)},Kr=typeof g>"u"?Ot==="ios"?y:A:g,It=En(IA({...a,outline:Kr},Dr,{isFloatingTransformed:An,isFocused:Vt,darkClasses:Nr,getLabelColor:lu,hasLabel:!!h})),Br={...Si},ka=()=>{if(O)return O;const On=re==="select"||re==="textarea"?re:"input",Bs=On==="input";return W.createElement(On,{id:j,ref:gt,className:It.input[da],style:Z,name:fe,type:Bs?re:void 0,placeholder:Re,inputMode:de,size:Ae,accept:Ne,autoComplete:Ge,autoCorrect:pe,autoCapitalize:ae,spellCheck:N,autoFocus:K,autoSave:z,disabled:Oe,max:ve,maxLength:ce,min:M,minLength:ee,step:Q,multiple:ge,readOnly:be,required:ne,pattern:we,tabIndex:_e,value:me,defaultValue:ye,onInput:qe,onChange:Ue,onFocus:uu,onBlur:su},re==="select"?zt:null)},ha=W.createElement(W.Fragment,null,H&&H!==!0&&W.createElement("div",{className:w(It.errorInfo,It.error)},H),R&&!H&&W.createElement("div",{className:w(It.errorInfo,It.info)},R)),Nc=W.createElement(W.Fragment,null,h&&W.createElement("div",{className:It.label[Ct]},W.createElement("div",{className:It.labelText},h)),W.createElement("div",{className:It.inputWrap[Ct]},ka(),X&&W.createElement(Tv,{theme:Ot,onClick:St,className:It.clearButton}),U&&W.createElement(VA,{className:It.dropdown})),ha);return W.createElement(Ac,Vp({ref:On=>{en.current=On,yn&&typeof yn=="function"?yn(On):yn&&(yn.current=On)},component:u,media:S,className:It.base,title:null,mediaClassName:It.media,innerClassName:It.inner[Ct],contentClassName:It.itemContent,titleWrapClassName:It.titleWrap,innerChildren:Nc,contentChildren:(Kr||Ot==="material")&&W.createElement("span",{className:It.border}),dividers:Ot==="material"||Kr?!1:void 0},Br),re!=="select"?zt:null)};Ip.displayName="ListInput";const XA=(a,u,s)=>{const{type:o}=a;return{message:{common:w("k-message max-w-[70%] box-border flex relative z-1 transform translate-z-0 mb-2 first:mt-2",s)},messageSent:{common:w("self-end",u.messageSent)},messageReceived:{common:u.messageReceived},messageName:{common:"text-xs",ios:w("mb-0.5 ms-4",u.messageNameIos),material:w("ms-4 mb-0.5",u.messageNameMd)},messageHeader:{common:"text-xs",ios:w("mb-0.5 ms-4",u.messageNameIos),material:w("ms-4 mb-0.5",u.messageNameMd)},messageFooter:{common:"text-xs",ios:w("mb-0.5 ms-4",u.messageNameIos),material:w("ms-4 mb-0.5",u.messageNameMd)},messageAvatar:{common:w("rounded-full relative bg-cover self-end shrink-0 me-1.5 w-8 h-8")},messageContent:{common:"flex flex-col"},messageBubble:{...o==="sent"&&{ios:w("rounded-3xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",u.bubbleSentIos),material:w("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4",u.bubbleSentMd)},...o==="received"&&{ios:w("rounded-2xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",u.bubbleReceivedIos),material:w("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4 ",u.bubbleReceivedMd)}},messageTextHeader:{common:"w-full text-left leading-tight text-sm opacity-80"},messageTextFooter:{common:"w-full text-left leading-tight text-sm opacity-80"},messageText:{common:"w-full text-left leading-tight"}}},ZA=(a={},u)=>({messageSent:"text-white",messageReceived:"text-inherit",messageNameIos:w("text-black/45",u("dark:text-white/45")),messageNameMd:w("text-md-light-on-surface-variant",u("dark:text-md-dark-on-surface-variant")),bubbleSentIos:w("bg-primary"),bubbleSentMd:w("bg-md-light-primary",u("dark:bg-md-dark-primary dark:text-md-dark-on-primary")),bubbleReceivedIos:w("bg-[#e5e5ea]",u("dark:bg-[#252525]")),bubbleReceivedMd:w(u("dark:bg-md-dark-surface-variant"),"bg-[#e5e5ea]"),...tr(a)});function Qp(){return Qp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Qp.apply(null,arguments)}const J1=a=>{const{component:u="div",className:s,colors:o,ref:h,id:v,text:g,name:y,type:A="sent",header:S,footer:O,textHeader:R,textFooter:H,avatar:X,ios:U,material:j,children:Z,...$}=a,fe=F.useRef(null),me=kn({ios:U,material:j}),ye=er(),re=ZA(o,ye),de=me(XA({...a},re,s)),be=u,ne={...$},Oe=w(de.message,{[de.messageSent]:A==="sent",[de.messageReceived]:A==="received"});return W.createElement(be,Qp({id:v,ref:fe,className:Oe},ne),X&&W.createElement("div",{className:de.messageAvatar},X),W.createElement("div",{className:de.messageContent},y&&W.createElement("div",{className:de.messageName},y),S&&W.createElement("div",{className:de.messageHeader},S),W.createElement("div",{className:de.messageBubble},R&&W.createElement("div",{className:de.messageTextHeader},R),g&&W.createElement("div",{className:de.messageText},g),H&&W.createElement("div",{className:de.messageTextFooter},H)),O&&W.createElement("div",{className:de.messageFooter},O)))};J1.displayName="Message";const KA=(a,u,s)=>{const{bgClassName:o="",bgClass:h="",outline:v,innerClassName:g="",innerClass:y="",tabbar:A,tabbarIcons:S,tabbarLabels:O,top:R}=a;return{base:{common:w("k-toolbar w-full z-20 relative",s),ios:w(!R&&"pb-safe-4","px-safe-4 flex justify-center"),material:w(!R&&"pb-safe")},bgBlur:{ios:!R&&w(w(S&&O?"h-[calc(var(--k-safe-area-bottom)_+16px_+_64px_+_16px)]":"h-[calc(var(--k-safe-area-bottom)_+16px_+_48px_+_16px)]"),"backdrop-blur-[2px] absolute left-0 bottom-0 w-full mask-t-from-50% mask-t-to-100% pointer-events-none")},bg:{common:w(o||h),ios:!R&&w(u.bgIos,"bottom-0 absolute w-full left-0 pointer-events-none",S&&O?"h-[calc(var(--k-safe-area-bottom)_+16px_+_64px_+_16px)]":"h-[calc(var(--k-safe-area-bottom)_+16px_+_48px_+_16px)]"),material:w(u.bgMaterial,"h-full top-0 absolute w-full left-0",v&&(R?"hairline-b":"hairline-t"))},inner:{common:w("flex relative justify-between",g||y),ios:w("gap-4 items-stretch",S&&O?"h-16":"h-12",A?"w-full md:w-auto":"w-auto"),material:w("w-full overflow-hidden items-center",A?"":"pl-safe-2 pr-safe-2",S?"h-20":"h-14")},highlight:{common:w(R?"bottom-0":"top-0","absolute left-0 w-full h-0.5 duration-200 pointer-events-none transition-transform"),ios:u.tabbarHighlightBgIos,material:u.tabbarHighlightBgMaterial}}},PA=(a={},u)=>({bgIos:w("bg-gradient-to-t from-ios-light-surface to-transparent",u("dark:from-ios-dark-surface/50")),bgMaterial:w("bg-md-light-surface-2",u("dark:bg-md-dark-surface-2")),tabbarHighlightBgIos:"",tabbarHighlightBgMaterial:w("bg-md-light-primary",u("dark:bg-md-dark-primary")),...tr(a)});function Xp(){return Xp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Xp.apply(null,arguments)}const W1=a=>{const{component:u="div",className:s,colors:o,bgClassName:h="",innerClassName:v="",outline:g,tabbar:y,tabbarIcons:A,tabbarLabels:S,top:O,ios:R,material:H,children:X,ref:U,...j}=a,Z=F.useRef(null),$=F.useRef(null),fe=u,[me,ye]=F.useState({transform:"",width:""}),re=Rr({ios:R,material:H}),de=kn({ios:R,material:H}),be=er(),ne={...j},Oe=PA(o,be),Ae=de(KA({...a,outline:typeof g>"u"?re==="ios":g,bgClassName:h,innerClassName:v},Oe),s),Ne=re==="material"&&y&&!A;return F.useEffect(()=>{if(Ne&&Z.current){const Ge=Z.current.previousElementSibling,pe=1/Ge.children.length*100,ae=[...Ge.children].indexOf(Ge.querySelector(".k-tabbar-link-active"));ye({...me,width:`${pe}%`,transform:`translateX(${ae*100}%)`})}},[X]),W.createElement(fe,Xp({ref:Ge=>{$.current=Ge,U&&typeof U=="function"?U(Ge):U&&(U.current=Ge)},className:Ae.base},ne),W.createElement(X1.Provider,{value:{toolbar:!0,tabbarLabels:S,tabbarIcons:A,tabbar:y}},re==="ios"&&!O&&W.createElement("div",{className:Ae.bgBlur}),(re==="material"||!O)&&W.createElement("div",{className:Ae.bg}),W.createElement("div",{className:Ae.inner},X),Ne&&W.createElement("span",{className:Ae.highlight,style:me,ref:Z})))};W1.displayName="Toolbar";const JA=(a,u,s)=>{const{outline:o,large:h,medium:v,transparent:g,left:y,right:A,subnavbar:S,fontSizeIos:O,fontSizeMaterial:R,titleFontSizeIos:H,titleFontSizeMaterial:X,titleLargeFontSizeIos:U,titleLargeFontSizeMaterial:j,titleMediumFontSizeIos:Z,titleMediumFontSizeMaterial:$,bgClassName:fe="",bgClass:me="",subnavbarClassName:ye="",subnavbarClass:re="",innerClassName:de="",innerClass:be="",leftClassName:ne="",leftClass:Oe="",titleClassName:Re="",titleClass:Ae="",subtitleClassName:Ne="",subtitleClass:Ge="",rightClassName:pe="",rightClass:ae="",centerTitle:N}=a;return{base:{common:w("k-navbar w-full z-20 top-0 sticky",(h||v)&&"pointer-events-none",s),ios:w("pt-[max(16px,var(--k-safe-area-top))]",O,u.textIos),material:w("pt-safe",R,u.textMaterial)},bgBlur:{ios:w("backdrop-blur-[2px] absolute left-0 top-0 w-full  mask-b-to-100% pointer-events-none mask-b-from-50%",S?"h-[calc(max(16px,var(--k-safe-area-top))_+_44px_+70px_+_16px)]":"h-[calc(max(16px,var(--k-safe-area-top))_+_44px_+_16px)]")},bg:{common:w("absolute w-full left-0 top-0",fe||me),ios:w(u.bgIos,"pointer-events-none",S?"h-[calc(max(16px,var(--k-safe-area-top))_+_44px_+70px_+_16px)]":"h-[calc(max(16px,var(--k-safe-area-top))_+_44px_+_16px)]"),material:w("h-full",u.bgMaterial,o&&"hairline-b")},subnavbar:{common:w("relative flex items-center",ye||re,(h||v)&&"pointer-events-auto"),ios:"h-14 pl-safe-4 pr-safe-4",material:"h-14 pl-safe-4 pr-safe-4"},inner:{common:w("flex relative items-center w-full",de||be,(h||v)&&"pointer-events-auto z-10"),ios:w("pl-safe-4 pr-safe-4 h-11",!y&&A?"justify-end":"justify-between"),material:"justify-start h-16 pl-safe pr-safe overflow-hidden"},titleContainer:{common:w("flex items-center px-safe-4 relative",(h||v)&&"pointer-events-auto"),ios:w(v&&w(Z,"h-11 font-semibold"),h&&w(U,"h-13 font-bold")),material:w(v&&w($,"h-12 pb-4"),h&&w(j,"h-[5.5rem]"))},left:{common:w("flex justify-center items-center h-full",ne||Oe),ios:"me-2 transform transform-gpu rounded-full",material:"mx-1"},title:{common:w("whitespace-nowrap leading-tight",Re||Ae,(h||v||g)&&"opacity-0",N?"absolute top-1/2 left-1/2 transform-gpu -translate-x-1/2 -translate-y-1/2 text-center":"text-start"),ios:w(`${H} font-semibold`,!N&&"first:mx-2"),material:w(`${X} font-normal`,!N&&"first:mx-4")},subtitle:{common:w("leading-none",Ne||Ge),ios:"text-sm opacity-75 font-medium",material:"text-sm opacity-85 font-normal"},right:{common:w("flex justify-center items-center h-full",pe||ae),ios:w("transform transform-gpu rounded-full",N?"ms-2":"ms-auto"),material:"ms-auto me-1"}}},WA=(a,u)=>({bgIos:w("bg-gradient-to-b from-ios-light-surface to-transparent",u("dark:from-ios-dark-surface/50")),bgMaterial:w("bg-md-light-surface-2",u("dark:bg-md-dark-surface-2")),textIos:w("text-black",u("dark:text-white")),textMaterial:w("text-md-light-on-surface",u("dark:text-md-dark-on-surface")),...tr(a)});function Zp(){return Zp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Zp.apply(null,arguments)}const Ld=a=>{const{component:u="div",className:s,bgClassName:o="",innerClassName:h="",leftClassName:v="",titleClassName:g="",subtitleClassName:y="",rightClassName:A="",subnavbarClassName:S="",centerTitle:O,colors:R,outline:H,medium:X,large:U,transparent:j,fontSizeIos:Z="text-[17px]",fontSizeMaterial:$="text-[16px]",titleFontSizeIos:fe="text-[17px]",titleFontSizeMaterial:me="text-[22px]",titleMediumFontSizeIos:ye="text-[24px]",titleMediumFontSizeMaterial:re="text-[24px]",titleLargeFontSizeIos:de="text-[34px]",titleLargeFontSizeMaterial:be="text-[28px]",scrollEl:ne,left:Oe,title:Re,subtitle:Ae,right:Ne,subnavbar:Ge,ios:pe,material:ae,children:N,ref:K,...z}=a,ve=F.useRef(null),M=F.useRef(0),Q=F.useRef(null),ce=F.useRef(null),ee=F.useRef(null),ge=F.useRef(null),we=F.useRef(null),_e=F.useRef(null),qe=u,Ue=Rr({ios:pe,material:ae}),ut=kn({ios:pe,material:ae}),Je=er(),St={...z},Et=WA(R,Je),on=j,zt=Vt=>{const{scrollTop:nr}=Vt.target;if(!on&&!U&&!X){_e.current&&(ge.current&&(ge.current.style.opacity=""),Q.current&&(Q.current.style.opacity=""));return}const Ot=M.current,En=Math.max(Math.min(nr/Ot,1),0);Ue==="material"&&(Q.current.style.opacity=on?-.5+En*1.5:"",(X||U)&&(Q.current.style.transform=`translateY(-${En*Ot}px)`)),ee.current&&(ee.current.style.transform=`translateY(-${En*Ot}px)`,ee.current.style.opacity=1-En*2),ge.current&&(ge.current.style.opacity=-.5+En*1.5),(X||U)&&we.current&&(we.current.style.transform=`translateY(-${En*Ot}px)`)},yn=()=>typeof ne>"u"?ve.current&&ve.current.parentNode:ne.current||ne,Si=()=>{if(!U&&!X&&!on){_e.current&&(zt({target:{scrollTop:0}}),_e.current=!1);return}_e.current=!0,ee.current?M.current=ee.current.offsetHeight:M.current=ce.current.offsetHeight;const Vt=yn();Vt?(Vt.addEventListener("scroll",zt),zt({target:Vt})):zt({target:{scrollTop:0}})},gt=()=>{const Vt=yn();Vt&&Vt.removeEventListener("scroll",zt)};F.useEffect(()=>(Si(),gt));const en=ut(JA({...a,centerTitle:typeof O>"u"?Ue==="ios":O,outline:H,fontSizeIos:Z,fontSizeMaterial:$,titleFontSizeIos:fe,titleFontSizeMaterial:me,titleMediumFontSizeIos:ye,titleMediumFontSizeMaterial:re,titleLargeFontSizeIos:de,titleLargeFontSizeMaterial:be,bgClassName:o,innerClassName:h,leftClassName:v,titleClassName:g,subtitleClassName:y,rightClassName:A,subnavbarClassName:S},Et),s);return W.createElement(qe,Zp({ref:Vt=>{ve.current=Vt,K&&typeof K=="function"?K(Vt):K&&(K.current=Vt)},className:en.base},St),W.createElement(Z1.Provider,{value:{navbar:!0}},Ue==="ios"&&W.createElement("div",{className:en.bgBlur}),W.createElement("div",{className:en.bg,ref:Q}),W.createElement("div",{className:en.inner,ref:ce},Oe&&W.createElement(_c,{className:en.left},Oe),(Re||Ae)&&W.createElement("div",{className:en.title,ref:ge},Re,Ae&&W.createElement("div",{className:en.subtitle},Ae)),Ne&&W.createElement(_c,{className:en.right},Ne),N),(U||X)&&W.createElement("div",{className:en.titleContainer,ref:ee},Re),Ge&&W.createElement("div",{className:en.subnavbar,ref:we},Ge)))};Ld.displayName="Navbar";const FA=(a,u,s)=>{const{opened:o}=a;return{base:{common:w("k-notifications z-50 transform transition-(--transition-transform-opacity) box-border duration-500 absolute",!o&&"-translate-y-full opacity-0 pointer-events-none transition duration-500","md:w-[568px] md:end-auto md:start-1/2 md:-ms-[284px]",s),ios:w("rounded-xl p-4 start-2 end-2 top-safe-2 rounded-3xl flex gap-4 items-center",u.bgIos),material:w("rounded-2xl py-5 px-4 start-4 end-4 top-safe-4",u.bgMaterial)},content:{common:"w-full shrink",ios:"",material:w("mt-2")},header:{common:w("flex justify-start"),ios:"items-center",material:"items-start"},icon:{ios:"shrink-0",material:"me-4"},contentTitle:{material:w("flex flex-row items-center")},title:{ios:w("text-sm font-bold",u.titleIos),material:w("font-medium")},titleRightText:{ios:w("me-1 ms-auto text-sm",u.titleRightIos),material:w("ms-1 text-xs before:w-0.75 before:h-0.75 before:rounded-full before:inline-block before:align-middle before:me-1",u.titleRightMd)},button:{ios:w("me-1 ms-auto cursor-pointer"),material:w("ms-auto cursor-pointer")},deleteIcon:{ios:w("w-5 h-5",u.deleteIconIos),material:w("w-6 h-6",u.deleteIconMd)},subtitle:{ios:w("text-sm font-semibold",u.subtitleIos),material:w("text-sm")},text:{ios:w("text-sm"),material:w("text-sm",u.textMaterial)}}},$A=(a,u)=>({bgIos:"",bgMaterial:w("bg-md-light-surface-5",u("dark:bg-md-dark-surface-5")),titleIos:w("text-black",u("dark:text-white")),titleRightIos:w("text-black/45",u("dark:text-white/45")),titleRightMd:w("text-md-light-on-surface-variant before:bg-md-light-on-surface-variant",u("dark:text-md-dark-on-surface-variant before:dark:bg-md-dark-on-surface-variant")),subtitleIos:w("text-black ",u("dark:text-white")),textMaterial:w("text-md-light-on-surface-variant",u("dark:text-md-dark-on-surface-variant ")),deleteIconIos:w("fill-stone-400 active:fill-stone-200",u("dark:fill-stone-500 dark:active:fill-stone-700")),deleteIconMd:w("text-md-light-on-surface-variant",u("dark:text-md-dark-on-surface-variant")),...tr(a)});function Nv(){return Nv=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Nv.apply(null,arguments)}const F1=a=>{const{component:u="div",className:s,colors:o,button:h,icon:v,title:g,titleRightText:y,subtitle:A,text:S,opened:O,onClose:R,ios:H,material:X,children:U,ref:j,...Z}=a,$=F.useRef(null),fe=u,me={...Z},ye=Rr({ios:H,material:X}),re=kn({ios:H,material:X}),de=er(),be=$A(o,de),ne=re(FA({...a},be),s);return ye==="ios"?W.createElement(_c,Nv({ref:Oe=>{$.current=Oe,j&&typeof j=="function"?j(Oe):j&&(j.current=Oe)},component:u,className:ne.base},me),v&&W.createElement("div",{className:ne.icon},v),W.createElement("div",{className:ne.content},W.createElement("div",{className:ne.header},g&&W.createElement("div",{className:ne.title},g),y&&W.createElement("div",{className:ne.titleRightText},y),h&&W.createElement("div",{className:ne.button,role:"button",tabIndex:"0",onClick:R},W.createElement(Tv,{theme:ye,className:ne.deleteIcon}))),A&&W.createElement("div",{className:ne.subtitle},A),S&&W.createElement("div",{className:ne.text},S),U)):W.createElement(fe,Nv({ref:Oe=>{$.current=Oe,j&&typeof j=="function"?j(Oe):j&&(j.current=Oe)},className:ne.base},me),W.createElement("div",{className:ne.header},v&&W.createElement("div",{className:ne.icon},v),W.createElement("div",{className:ne.contentWrapper},W.createElement("div",{className:ne.contentTitle},g&&W.createElement("div",{className:ne.title},g),y&&W.createElement("div",{className:ne.titleRightText},y)),W.createElement("div",{className:ne.content},A&&W.createElement("div",{className:ne.subtitle},A),S&&W.createElement("div",{className:ne.text},S),U)),h&&W.createElement("div",{className:ne.button,role:"button",tabIndex:"0",onClick:R},W.createElement(Tv,{theme:ye,className:ne.deleteIcon}))))};F1.displayName="Notification";const e_=(a,u,s)=>({base:{common:w("k-page h-full w-full left-0 top-0 overflow-auto absolute",s),ios:u.bgIos,material:u.bgMaterial}}),t_=(a={},u)=>({bgIos:w("bg-ios-light-surface",u("dark:bg-ios-dark-surface")),bgMaterial:w("bg-md-light-surface",u("dark:bg-md-dark-surface")),...tr(a)});function Kp(){return Kp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Kp.apply(null,arguments)}const xc=a=>{const{component:u="div",className:s,colors:o,ios:h,material:v,children:g,ref:y,...A}=a,S=F.useRef(null),O=u,R={...A},H=kn({ios:h,material:v}),X=er(),U=t_(o,X),j=H(e_(a,U,s));return W.createElement(O,Kp({ref:Z=>{S.current=Z,y&&typeof y=="function"?y(Z):y&&(y.current=Z)},className:j.base},R),g)};xc.displayName="Page";const n_=({popoverEl:a,targetEl:u,angleEl:s,needsAngle:o,targetX:h,targetY:v,targetWidth:g=0,targetHeight:y=0,theme:A})=>{u.current?u=u.current:u.value?u=u.value:u.el?u=u.el:u.$el&&(u=u.$el),typeof u=="string"&&(u=document.querySelector(u));let S=document.body.offsetWidth,O=document.body.offsetHeight;S===0&&(S=window.innerWidth),O===0&&(O=window.innerHeight);const[R,H]=[a.offsetWidth,a.offsetHeight];let X=0,U,j,Z="";o&&(X=s.offsetWidth/2);let $,fe;const me=window.getComputedStyle(u);let ye=parseInt(me.getPropertyValue("--k-safe-area-top"),10)||0,re=parseInt(me.getPropertyValue("--k-safe-area-left"),10)||0,de=parseInt(me.getPropertyValue("--k-safe-area-right"),10)||0;if(Number.isNaN(ye)&&(ye=0),Number.isNaN(re)&&(re=0),Number.isNaN(de)&&(de=0),u){g=u.offsetWidth,y=u.offsetHeight;const pe=u.getBoundingClientRect();$=pe.left,fe=pe.top}else typeof h<"u"&&v!=="undefined"&&($=h,fe=v);let[be,ne,Oe]=[0,0,0];const Re=A==="ios"?13:23;let Ae="top";H+X<fe-ye?ne=fe-H-X:H+X<O-fe-y?(Ae="bottom",ne=fe+y+X):(Ae="middle",ne=y/2+fe-H/2,Oe=ne,ne=Math.max(5,Math.min(ne,O-H-5)),Oe-=ne),Ae==="top"||Ae==="bottom"?(be=g/2+$-R/2,Oe=be,be=Math.max(5,Math.min(be,S-R-5)),re&&(be=Math.max(be,re)),de&&be+R>S-5-de&&(be=S-5-de-R),Ae==="top"&&(Z="bottom"),Ae==="bottom"&&(Z="top"),Oe-=be,U=R/2-X+Oe,U=Math.max(Math.min(U,R-X*2-Re),Re)):Ae==="middle"&&(be=$-R-X,Z="right",(be<5||be+R+de>S||be<re)&&(be<5&&(be=$+g+X),be+R+de>S&&(be=S-R-5-de),be<re&&(be=re),Z="left"),j=H/2-X+Oe,j=Math.max(Math.min(j,H-X*2-Re),Re));const Ne=Ae,Ge=be<$?"left":"right";return{set:!0,angleTop:typeof j>"u"?void 0:`${j}px`,angleLeft:typeof U>"u"?void 0:`${U}px`,anglePosition:Z,popoverTop:`${ne}px`,popoverLeft:`${be}px`,popoverPosition:`${Ne}-${Ge}`}},r_=(a,u,s)=>{const{angleClassName:o,angleClass:h}=a;return{base:{common:w("k-popover transition-(--transition-transform-opacity) z-40 w-60 no-safe-areas fixed translate-3d transform-gpu duration-400"),ios:"",material:"ease-material-in",opened:{common:"",ios:"ease-[cubic-bezier(0,1,0.2,1.05)]"},closed:{common:"pointer-events-none",ios:"scale-0",material:"scale-x-90 scale-y-75 opacity-0"}},inner:{common:w("overflow-hidden relative"),ios:w("rounded-4xl duration-600",u.bgIos),material:w("rounded-[1.75rem]",u.bgMaterial),opened:{common:"",ios:"ease-[cubic-bezier(0,1,0.2,1.05)]",material:""},closed:{common:"",ios:"-translate-y-20 opacity-0",material:""}},angleWrap:{common:w(o||h||"","pointer-events-none"),ios:w("absolute w-6.5 h-6.5 z-50 overflow-hidden"),material:w("absolute w-6.5 h-6.5 z-50 overflow-hidden"),bottom:"top-full",top:"bottom-full",left:"right-full",right:"left-full"},angleArrow:{common:w("absolute rounded w-full h-full transform rotate-45"),ios:w("bg-ios-light-glass backdrop-blur-lg",s("dark:bg-ios-dark-glass")),material:u.bgMaterial,bottom:"-top-4.75",top:"top-4.75",left:"left-4.75",right:"-left-4.75"},backdrop:{common:"fixed z-40 w-full h-full left-0 top-0 bg-black/50 duration-300",opened:"",closed:"opacity-0 pointer-events-none"}}},a_=(a={},u)=>({bgIos:"",bgMaterial:w("bg-md-light-surface-3",u("dark:bg-md-dark-surface-3")),...tr(a)});function Pp(){return Pp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Pp.apply(null,arguments)}const $1=a=>{const{component:u="div",className:s,angle:o=!1,angleClassName:h="",colors:v,opened:g,backdrop:y=!0,onBackdropClick:A,target:S,targetX:O,targetY:R,targetWidth:H,targetHeight:X,ios:U,material:j,children:Z,style:$={},ref:fe,...me}=a,ye=F.useRef(null),re=F.useRef(null),[de,be]=F.useState({set:!1,angleTop:0,angleLeft:0,anglePosition:"bottom",popoverTop:0,popoverLeft:0,popoverPosition:"top-left"}),ne=g?"opened":"closed",Oe=u,Re={...me},Ae=Rr({ios:U,material:j}),Ne=kn({ios:U,material:j}),Ge=er(),pe=a_(v,Ge),ae=Ne(r_({...a,angleClassName:h},pe,Ge),s),N=()=>{!S||!ye.current||!g||be(n_({popoverEl:ye.current,targetEl:S,angleEl:re.current,needsAngle:o,targetX:O,targetY:R,targetHeight:X,targetWidth:H,theme:Ae}))},K=()=>{typeof window>"u"||window.addEventListener("resize",N)},z=()=>{typeof window>"u"||window.removeEventListener("resize",N)};F.useEffect(()=>(K(),()=>z())),F.useEffect(()=>{N()},[g]);const ve=de.set?{...$||{},left:de.popoverLeft,top:de.popoverTop}:$,M=de.set?{left:de.angleLeft,top:de.angleTop}:void 0,Q={"top-right":"origin-bottom-left","top-left":"origin-bottom-right","middle-left":"origin-right","middle-right":"origin-left","bottom-right":"origin-top-left","bottom-left":"origin-top-right"},ce=w(ae.base[ne],Q[de.popoverPosition]);return W.createElement(W.Fragment,null,y&&W.createElement("div",{className:ae.backdrop[ne],onClick:A}),W.createElement(Oe,Pp({ref:ee=>{ye.current=ee,fe&&typeof fe=="function"?fe(ee):fe&&(fe.current=ee)},className:ce,style:ve},Re),o&&W.createElement("div",{ref:re,style:M,className:ae.angleWrap[de.anglePosition]},W.createElement("div",{className:ae.angleArrow[de.anglePosition]})),W.createElement(_c,{className:ae.inner[ne]},Z)))};$1.displayName="Popover";function Jp(){return Jp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Jp.apply(null,arguments)}const i_=a=>W.createElement("svg",Jp({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentcolor"},a),W.createElement("path",{d:"M10,0 C10.5522847,0 11,0.44771525 11,1 L11,6 C11,6.55228475 10.5522847,7 10,7 C9.44771525,7 9,6.55228475 9,6 L9,1 C9,0.44771525 9.44771525,0 10,0 Z"}),W.createElement("path",{d:"M10,13 C10.5522847,13 11,13.4477153 11,14 L11,19 C11,19.5522847 10.5522847,20 10,20 C9.44771525,20 9,19.5522847 9,19 L9,14 C9,13.4477153 9.44771525,13 10,13 Z",opacity:".64"}),W.createElement("path",{d:"M13,10 C13,9.44771525 13.4477153,9 14,9 L19,9 C19.5522847,9 20,9.44771525 20,10 C20,10.5522847 19.5522847,11 19,11 L14,11 C13.4477153,11 13,10.5522847 13,10 Z",opacity:".82"}),W.createElement("path",{d:"M-3.8285687e-16,10 C-3.8285687e-16,9.44771525 0.44771525,9 1,9 L6,9 C6.55228475,9 7,9.44771525 7,10 C7,10.5522847 6.55228475,11 6,11 L1,11 C0.44771525,11 -3.8285687e-16,10.5522847 -3.8285687e-16,10 Z",opacity:".46"}),W.createElement("path",{d:"M2.92912627,2.92912627 C3.31965056,2.53860197 3.95281554,2.53860197 4.34333983,2.92912627 L7.87887373,6.46466017 C8.26939803,6.85518446 8.26939803,7.48834944 7.87887373,7.87887373 C7.48834944,8.26939803 6.85518446,8.26939803 6.46466017,7.87887373 L2.92912627,4.34333983 C2.53860197,3.95281554 2.53860197,3.31965056 2.92912627,2.92912627 Z",opacity:".37"}),W.createElement("path",{d:"M12.1211263,12.1211263 C12.5116506,11.730602 13.1448155,11.730602 13.5353398,12.1211263 L17.0708737,15.6566602 C17.461398,16.0471845 17.461398,16.6803494 17.0708737,17.0708737 C16.6803494,17.461398 16.0471845,17.461398 15.6566602,17.0708737 L12.1211263,13.5353398 C11.730602,13.1448155 11.730602,12.5116506 12.1211263,12.1211263 Z",opacity:".73"}),W.createElement("path",{d:"M12.1211263,7.87887373 C11.730602,7.48834944 11.730602,6.85518446 12.1211263,6.46466017 L15.6566602,2.92912627 C16.0471845,2.53860197 16.6803494,2.53860197 17.0708737,2.92912627 C17.461398,3.31965056 17.461398,3.95281554 17.0708737,4.34333983 L13.5353398,7.87887373 C13.1448155,8.26939803 12.5116506,8.26939803 12.1211263,7.87887373 Z",opacity:".91"}),W.createElement("path",{d:"M2.92912627,17.0708737 C2.53860197,16.6803494 2.53860197,16.0471845 2.92912627,15.6566602 L6.46466017,12.1211263 C6.85518446,11.730602 7.48834944,11.730602 7.87887373,12.1211263 C8.26939803,12.5116506 8.26939803,13.1448155 7.87887373,13.5353398 L4.34333983,17.0708737 C3.95281554,17.461398 3.31965056,17.461398 2.92912627,17.0708737 Z",opacity:".55"}));function Wp(){return Wp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Wp.apply(null,arguments)}const l_=a=>W.createElement("svg",Wp({viewBox:"0 0 36 36"},a,{fill:"none",stroke:"currentcolor"}),W.createElement("circle",{cx:"18",cy:"18",r:"16"})),u_=(a,u,s,o)=>({base:{common:w("k-preloader",s==="ios"?"k-ios-preloader":"k-material-preloader","inline-block w-8 h-8",o),ios:u.iconIos,material:`stroke-4 ${u.iconMaterial}`},inner:{common:"block w-full h-full"}}),s_=(a={},u)=>({iconIos:"text-primary",iconMaterial:w("text-md-light-primary",u("dark:text-md-dark-primary")),...tr(a)});function Fp(){return Fp=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Fp.apply(null,arguments)}const A0=a=>{const{component:u="span",className:s,colors:o,ios:h,material:v,children:g,ref:y,...A}=a,S=F.useRef(null),O=u,R={...A},H=Rr({ios:h,material:v}),X=kn({ios:h,material:v}),U=er(),j=s_(o,U),Z=H==="ios"?i_:l_,$=X(u_(a,j,H,s));return W.createElement(O,Fp({ref:fe=>{S.current=fe,y&&typeof y=="function"?y(fe):y&&(y.current=fe)},className:$.base},R),W.createElement("span",{className:$.inner},W.createElement(Z,{className:"w-full h-full"})),g)};A0.displayName="Preloader";const o_=(a,u,s,o)=>{const{outline:h,rounded:v,navbar:g}=a;return{base:{common:w("k-segmented flex justify-center items-center overflow-hidden w-full",o),square:{ios:"rounded",material:"rounded-lg"},rounded:"rounded-full"},raised:h?"shadow":"shadow divide-x divide-black/10 rtl:divide-x-reverse",outline:{common:"",ios:`${u.borderIos} border-2`,material:`${u.borderMaterial} border`},outlineInner:{common:"-m-0.5 flex w-full justify-center items-center rtl:divide-x-reverse",ios:`divide-x-2 ${u.divideIos}`,material:`divide-x ${u.divideMaterial}`},strong:{common:w("gap-1 relative"),ios:w(!g&&u.strongBgIos,g?"p-1":"p-0.5"),material:w("p-0.5",u.strongBgMaterial)},strongHighlight:{common:w("absolute !ms-0 pointer-events-none duration-200",v&&"rounded-full","shadow",s("dark:touch-ripple-white")),ios:w(g?"start-1 top-1 bottom-1":"start-0.5 top-0.5 bottom-0.5",!v&&"rounded",u.strongHighlightBgIos),material:w("start-0.5 top-0.5 bottom-0.5",!v&&"rounded-md",u.strongHighlightBgMaterial)}}},c_=(a={},u)=>({strongBgIos:w("bg-black/5",u("dark:bg-white/10")),strongBgMaterial:w("bg-md-light-surface-variant",u("dark:bg-md-dark-surface-3")),strongHighlightBgIos:w("bg-white",u("dark:bg-white/75")),strongHighlightBgMaterial:w("bg-white",u("dark:bg-white/15")),borderIos:"border-primary",borderMaterial:w("border-md-light-outline",u("dark:border-md-dark-outline")),divideIos:"divide-primary",divideMaterial:w("divide-md-light-outline",u("dark:divide-md-dark-outline")),...tr(a)}),eb=F.createContext({strong:!1,outline:!1,rounded:!1,raised:!1}),f_=()=>F.useContext(eb);function $p(){return $p=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},$p.apply(null,arguments)}const e0=a=>{const{component:u="div",className:s,colors:o,ios:h,material:v,raised:g,raisedIos:y,raisedMaterial:A,outline:S,outlineIos:O,outlineMaterial:R,strong:H,strongIos:X,strongMaterial:U,rounded:j,roundedIos:Z,roundedMaterial:$,children:fe,ref:me,...ye}=a,re=F.useRef(null),de=F.useRef(null),[be,ne]=F.useState({transform:"",width:""}),Oe={...ye},Re=Rr({ios:h,material:v}),Ae=kn({ios:h,material:v}),Ne=er(),Ge=c_(o,Ne),pe=Iv(Re,{outline:S,rounded:j,strong:H,raised:g},a),{navbar:ae}=K1(),N=Ae(o_({...a,...pe,navbar:ae},Ge,Ne)),K=Re==="ios"&&ae?_c:u,z=w(pe.rounded?N.base.rounded:N.base.square,pe.raised&&N.raised,pe.outline&&N.outline,pe.strong&&N.strong,s);return F.useEffect(()=>{if(pe.strong&&de.current){const ve=de.current.parentElement,M=ve.children.length-1,Q=[...ve.children].indexOf(ve.querySelector(".k-segmented-strong-button-active")),ce="4px";ne({...be,width:`calc((100% - ${Re==="ios"&&ae?"4px":"2px"} * 2 - ${ce} * (${M} - 1)) / ${M})`,transform:`translateX(calc((${Q} * 100% + ${Q} * ${ce}) * var(--k-rtl-reverse)))`})}},[fe]),W.createElement(K,$p({ref:ve=>{re.current=ve,me&&typeof me=="function"?me(ve):me&&(me.current=ve)},className:z},Oe),W.createElement(eb.Provider,{value:{strong:pe.strong,outline:pe.outline,rounded:pe.rounded,raised:pe.raised}},pe.outline?W.createElement("span",{className:N.outlineInner},fe):fe,pe.strong&&W.createElement("span",{ref:de,className:N.strongHighlight,style:be})))};e0.displayName="Segmented";function t0(){return t0=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},t0.apply(null,arguments)}const Rd=a=>{const{active:u,children:s,outline:o,strong:h,rounded:v,raised:g,ref:y,...A}=a,S=F.useRef(null),{strong:O,rounded:R}=f_();return W.createElement(Qv,t0({ref:H=>{S.current=H,y&&typeof y=="function"?y(H):y&&(y.current=H)},segmented:!0,segmentedActive:u,segmentedStrong:O,rounded:R&&O},A),s)};Rd.displayName="SegmentedButton";function vt(a){for(var u=arguments.length,s=new Array(u>1?u-1:0),o=1;o<u;o++)s[o-1]=arguments[o];throw new Error(typeof a=="number"?"[MobX] minified error nr: "+a+(s.length?" "+s.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+a)}var d_={};function Zv(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:d_}var tb=Object.assign,Dv=Object.getOwnPropertyDescriptor,yi=Object.defineProperty,Kv=Object.prototype,n0=[];Object.freeze(n0);var nb={};Object.freeze(nb);var h_=typeof Proxy<"u",m_=Object.toString();function rb(){h_||vt("Proxy not available")}function ab(a){var u=!1;return function(){if(!u)return u=!0,a.apply(this,arguments)}}var gc=function(){};function La(a){return typeof a=="function"}function Es(a){var u=typeof a;switch(u){case"string":case"symbol":case"number":return!0}return!1}function Pv(a){return a!==null&&typeof a=="object"}function nl(a){if(!Pv(a))return!1;var u=Object.getPrototypeOf(a);if(u==null)return!0;var s=Object.hasOwnProperty.call(u,"constructor")&&u.constructor;return typeof s=="function"&&s.toString()===m_}function ib(a){var u=a?.constructor;return u?u.name==="GeneratorFunction"||u.displayName==="GeneratorFunction":!1}function Hd(a,u,s){yi(a,u,{enumerable:!1,writable:!0,configurable:!0,value:s})}function lb(a,u,s){yi(a,u,{enumerable:!1,writable:!1,configurable:!0,value:s})}function Ts(a,u){var s="isMobX"+a;return u.prototype[s]=!0,function(o){return Pv(o)&&o[s]===!0}}function Cc(a){return a!=null&&Object.prototype.toString.call(a)==="[object Map]"}function v_(a){var u=Object.getPrototypeOf(a),s=Object.getPrototypeOf(u),o=Object.getPrototypeOf(s);return o===null}function Fi(a){return a!=null&&Object.prototype.toString.call(a)==="[object Set]"}var ub=typeof Object.getOwnPropertySymbols<"u";function g_(a){var u=Object.keys(a);if(!ub)return u;var s=Object.getOwnPropertySymbols(a);return s.length?[].concat(u,s.filter(function(o){return Kv.propertyIsEnumerable.call(a,o)})):u}var Sc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:ub?function(a){return Object.getOwnPropertyNames(a).concat(Object.getOwnPropertySymbols(a))}:Object.getOwnPropertyNames;function sb(a){return a===null?null:typeof a=="object"?""+a:a}function el(a,u){return Kv.hasOwnProperty.call(a,u)}var p_=Object.getOwnPropertyDescriptors||function(u){var s={};return Sc(u).forEach(function(o){s[o]=Dv(u,o)}),s};function Qr(a,u){return!!(a&u)}function Xr(a,u,s){return s?a|=u:a&=~u,a}function Z0(a,u){(u==null||u>a.length)&&(u=a.length);for(var s=0,o=Array(u);s<u;s++)o[s]=a[s];return o}function b_(a,u){for(var s=0;s<u.length;s++){var o=u[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(a,A_(o.key),o)}}function Rc(a,u,s){return u&&b_(a.prototype,u),Object.defineProperty(a,"prototype",{writable:!1}),a}function pc(a,u){var s=typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(s)return(s=s.call(a)).next.bind(s);if(Array.isArray(a)||(s=__(a))||u){s&&(a=s);var o=0;return function(){return o>=a.length?{done:!0}:{done:!1,value:a[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Os(){return Os=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)({}).hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},Os.apply(null,arguments)}function ob(a,u){a.prototype=Object.create(u.prototype),a.prototype.constructor=a,r0(a,u)}function r0(a,u){return r0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},r0(a,u)}function y_(a,u){if(typeof a!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var o=s.call(a,u);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}function A_(a){var u=y_(a,"string");return typeof u=="symbol"?u:u+""}function __(a,u){if(a){if(typeof a=="string")return Z0(a,u);var s={}.toString.call(a).slice(8,-1);return s==="Object"&&a.constructor&&(s=a.constructor.name),s==="Map"||s==="Set"?Array.from(a):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Z0(a,u):void 0}}var bi=Symbol("mobx-stored-annotations");function Ai(a){function u(s,o){if(qd(o))return a.decorate_20223_(s,o);Gd(s,o,a)}return Object.assign(u,a)}function Gd(a,u,s){el(a,bi)||Hd(a,bi,Os({},a[bi])),T_(s)||(a[bi][u]=s)}function x_(a){return el(a,bi)||Hd(a,bi,Os({},a[bi])),a[bi]}function qd(a){return typeof a=="object"&&typeof a.kind=="string"}var Qe=Symbol("mobx administration"),au=(function(){function a(s){s===void 0&&(s="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=bt.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=s}var u=a.prototype;return u.onBO=function(){this.onBOL&&this.onBOL.forEach(function(o){return o()})},u.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(o){return o()})},u.reportObserved=function(){return Ob(this)},u.reportChanged=function(){ca(),wb(this),fa()},u.toString=function(){return this.name_},Rc(a,[{key:"isBeingObserved",get:function(){return Qr(this.flags_,a.isBeingObservedMask_)},set:function(o){this.flags_=Xr(this.flags_,a.isBeingObservedMask_,o)}},{key:"isPendingUnobservation",get:function(){return Qr(this.flags_,a.isPendingUnobservationMask_)},set:function(o){this.flags_=Xr(this.flags_,a.isPendingUnobservationMask_,o)}},{key:"diffValue",get:function(){return Qr(this.flags_,a.diffValueMask_)?1:0},set:function(o){this.flags_=Xr(this.flags_,a.diffValueMask_,o===1)}}])})();au.isBeingObservedMask_=1;au.isPendingUnobservationMask_=2;au.diffValueMask_=4;var _0=Ts("Atom",au);function cb(a,u,s){u===void 0&&(u=gc),s===void 0&&(s=gc);var o=new au(a);return u!==gc&&B2(o,u),s!==gc&&Nb(o,s),o}function S_(a,u){return Ib(a,u)}function E_(a,u){return Object.is?Object.is(a,u):a===u?a!==0||1/a===1/u:a!==a&&u!==u}var Bv={structural:S_,default:E_};function ws(a,u,s){return Ub(a)?a:Array.isArray(a)?Rn.array(a,{name:s}):nl(a)?Rn.object(a,void 0,{name:s}):Cc(a)?Rn.map(a,{name:s}):Fi(a)?Rn.set(a,{name:s}):typeof a=="function"&&!Ec(a)&&!jd(a)?ib(a)?Oc(a):Ud(s,a):a}function O_(a,u,s){if(a==null||rg(a)||ng(a)||Rs(a)||pi(a))return a;if(Array.isArray(a))return Rn.array(a,{name:s,deep:!1});if(nl(a))return Rn.object(a,void 0,{name:s,deep:!1});if(Cc(a))return Rn.map(a,{name:s,deep:!1});if(Fi(a))return Rn.set(a,{name:s,deep:!1})}function Jv(a){return a}function w_(a,u){return Ib(a,u)?u:a}var M_="override";function T_(a){return a.annotationType_===M_}function Yd(a,u){return{annotationType_:a,options_:u,make_:C_,extend_:R_,decorate_20223_:N_}}function C_(a,u,s,o){var h;if((h=this.options_)!=null&&h.bound)return this.extend_(a,u,s,!1)===null?0:1;if(o===a.target_)return this.extend_(a,u,s,!1)===null?0:2;if(Ec(s.value))return 1;var v=fb(a,this,u,s,!1);return yi(o,u,v),2}function R_(a,u,s,o){var h=fb(a,this,u,s);return a.defineProperty_(u,h,o)}function N_(a,u){var s=u.kind,o=u.name,h=u.addInitializer,v=this,g=function(S){var O,R,H,X;return Ms((O=(R=v.options_)==null?void 0:R.name)!=null?O:o.toString(),S,(H=(X=v.options_)==null?void 0:X.autoAction)!=null?H:!1)};if(s=="field")return function(A){var S,O=A;return Ec(O)||(O=g(O)),(S=v.options_)!=null&&S.bound&&(O=O.bind(this),O.isMobxAction=!0),O};if(s=="method"){var y;return Ec(a)||(a=g(a)),(y=this.options_)!=null&&y.bound&&h(function(){var A=this,S=A[o].bind(A);S.isMobxAction=!0,A[o]=S}),a}vt("Cannot apply '"+v.annotationType_+"' to '"+String(o)+"' (kind: "+s+"):"+(`
'`+v.annotationType_+"' can only be used on properties with a function value."))}function D_(a,u,s,o){u.annotationType_,o.value}function fb(a,u,s,o,h){var v,g,y,A,S,O,R;h===void 0&&(h=xe.safeDescriptors),D_(a,u,s,o);var H=o.value;if((v=u.options_)!=null&&v.bound){var X;H=H.bind((X=a.proxy_)!=null?X:a.target_)}return{value:Ms((g=(y=u.options_)==null?void 0:y.name)!=null?g:s.toString(),H,(A=(S=u.options_)==null?void 0:S.autoAction)!=null?A:!1,(O=u.options_)!=null&&O.bound?(R=a.proxy_)!=null?R:a.target_:void 0),configurable:h?a.isPlainObject_:!0,enumerable:!1,writable:!h}}function db(a,u){return{annotationType_:a,options_:u,make_:B_,extend_:z_,decorate_20223_:L_}}function B_(a,u,s,o){var h;if(o===a.target_)return this.extend_(a,u,s,!1)===null?0:2;if((h=this.options_)!=null&&h.bound&&(!el(a.target_,u)||!jd(a.target_[u]))&&this.extend_(a,u,s,!1)===null)return 0;if(jd(s.value))return 1;var v=hb(a,this,u,s,!1,!1);return yi(o,u,v),2}function z_(a,u,s,o){var h,v=hb(a,this,u,s,(h=this.options_)==null?void 0:h.bound);return a.defineProperty_(u,v,o)}function L_(a,u){var s,o=u.name,h=u.addInitializer;return jd(a)||(a=Oc(a)),(s=this.options_)!=null&&s.bound&&h(function(){var v=this,g=v[o].bind(v);g.isMobXFlow=!0,v[o]=g}),a}function U_(a,u,s,o){u.annotationType_,o.value}function hb(a,u,s,o,h,v){v===void 0&&(v=xe.safeDescriptors),U_(a,u,s,o);var g=o.value;if(jd(g)||(g=Oc(g)),h){var y;g=g.bind((y=a.proxy_)!=null?y:a.target_),g.isMobXFlow=!0}return{value:g,configurable:v?a.isPlainObject_:!0,enumerable:!1,writable:!v}}function x0(a,u){return{annotationType_:a,options_:u,make_:j_,extend_:k_,decorate_20223_:H_}}function j_(a,u,s){return this.extend_(a,u,s,!1)===null?0:1}function k_(a,u,s,o){return G_(a,this,u,s),a.defineComputedProperty_(u,Os({},this.options_,{get:s.get,set:s.set}),o)}function H_(a,u){var s=this,o=u.name,h=u.addInitializer;return h(function(){var v=Ns(this)[Qe],g=Os({},s.options_,{get:a,context:this});g.name||(g.name="ObservableObject."+o.toString()),v.values_.set(o,new Ua(g))}),function(){return this[Qe].getObservablePropValue_(o)}}function G_(a,u,s,o){u.annotationType_,o.get}function Wv(a,u){return{annotationType_:a,options_:u,make_:q_,extend_:Y_,decorate_20223_:V_}}function q_(a,u,s){return this.extend_(a,u,s,!1)===null?0:1}function Y_(a,u,s,o){var h,v;return I_(a,this),a.defineObservableProperty_(u,s.value,(h=(v=this.options_)==null?void 0:v.enhancer)!=null?h:ws,o)}function V_(a,u){var s=this,o=u.kind,h=u.name,v=new WeakSet;function g(y,A){var S,O,R=Ns(y)[Qe],H=new Ss(A,(S=(O=s.options_)==null?void 0:O.enhancer)!=null?S:ws,"ObservableObject."+h.toString(),!1);R.values_.set(h,H),v.add(y)}if(o=="accessor")return{get:function(){return v.has(this)||g(this,a.get.call(this)),this[Qe].getObservablePropValue_(h)},set:function(A){return v.has(this)||g(this,A),this[Qe].setObservablePropValue_(h,A)},init:function(A){return v.has(this)||g(this,A),A}}}function I_(a,u,s,o){u.annotationType_}var Q_="true",X_=mb();function mb(a){return{annotationType_:Q_,options_:a,make_:Z_,extend_:K_,decorate_20223_:P_}}function Z_(a,u,s,o){var h,v;if(s.get)return Fv.make_(a,u,s,o);if(s.set){var g=Ec(s.set)?s.set:Ms(u.toString(),s.set);return o===a.target_?a.defineProperty_(u,{configurable:xe.safeDescriptors?a.isPlainObject_:!0,set:g})===null?0:2:(yi(o,u,{configurable:!0,set:g}),2)}if(o!==a.target_&&typeof s.value=="function"){var y;if(ib(s.value)){var A,S=(A=this.options_)!=null&&A.autoBind?Oc.bound:Oc;return S.make_(a,u,s,o)}var O=(y=this.options_)!=null&&y.autoBind?Ud.bound:Ud;return O.make_(a,u,s,o)}var R=((h=this.options_)==null?void 0:h.deep)===!1?Rn.ref:Rn;if(typeof s.value=="function"&&(v=this.options_)!=null&&v.autoBind){var H;s.value=s.value.bind((H=a.proxy_)!=null?H:a.target_)}return R.make_(a,u,s,o)}function K_(a,u,s,o){var h,v;if(s.get)return Fv.extend_(a,u,s,o);if(s.set)return a.defineProperty_(u,{configurable:xe.safeDescriptors?a.isPlainObject_:!0,set:Ms(u.toString(),s.set)},o);if(typeof s.value=="function"&&(h=this.options_)!=null&&h.autoBind){var g;s.value=s.value.bind((g=a.proxy_)!=null?g:a.target_)}var y=((v=this.options_)==null?void 0:v.deep)===!1?Rn.ref:Rn;return y.extend_(a,u,s,o)}function P_(a,u){vt("'"+this.annotationType_+"' cannot be used as a decorator")}var J_="observable",W_="observable.ref",F_="observable.shallow",$_="observable.struct",vb={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(vb);function bv(a){return a||vb}var a0=Wv(J_),e2=Wv(W_,{enhancer:Jv}),t2=Wv(F_,{enhancer:O_}),n2=Wv($_,{enhancer:w_}),gb=Ai(a0);function yv(a){return a.deep===!0?ws:a.deep===!1?Jv:a2(a.defaultDecorator)}function r2(a){var u;return a?(u=a.defaultDecorator)!=null?u:mb(a):void 0}function a2(a){var u,s;return a&&(u=(s=a.options_)==null?void 0:s.enhancer)!=null?u:ws}function pb(a,u,s){if(qd(u))return a0.decorate_20223_(a,u);if(Es(u)){Gd(a,u,a0);return}return Ub(a)?a:nl(a)?Rn.object(a,u,s):Array.isArray(a)?Rn.array(a,u):Cc(a)?Rn.map(a,u):Fi(a)?Rn.set(a,u):typeof a=="object"&&a!==null?a:Rn.box(a,u)}tb(pb,gb);var i2={box:function(u,s){var o=bv(s);return new Ss(u,yv(o),o.name,!0,o.equals)},array:function(u,s){var o=bv(s);return(xe.useProxies===!1||o.proxy===!1?ax:K2)(u,yv(o),o.name)},map:function(u,s){var o=bv(s);return new kb(u,yv(o),o.name)},set:function(u,s){var o=bv(s);return new Hb(u,yv(o),o.name)},object:function(u,s,o){return iu(function(){return Bb(xe.useProxies===!1||o?.proxy===!1?Ns({},o):V2({},o),u,s)})},ref:Ai(e2),shallow:Ai(t2),deep:gb,struct:Ai(n2)},Rn=tb(pb,i2),bb="computed",l2="computed.struct",i0=x0(bb),u2=x0(l2,{equals:Bv.structural}),Fv=function(u,s){if(qd(s))return i0.decorate_20223_(u,s);if(Es(s))return Gd(u,s,i0);if(nl(u))return Ai(x0(bb,u));var o=nl(s)?s:{};return o.get=u,o.name||(o.name=u.name||""),new Ua(o)};Object.assign(Fv,i0);Fv.struct=Ai(u2);var K0,P0,zv=0,s2=1,o2=(K0=(P0=Dv(function(){},"name"))==null?void 0:P0.configurable)!=null?K0:!1,J0={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ms(a,u,s,o){s===void 0&&(s=!1);function h(){return c2(a,s,u,o||this,arguments)}return h.isMobxAction=!0,h.toString=function(){return u.toString()},o2&&(J0.value=a,yi(h,"name",J0)),h}function c2(a,u,s,o,h){var v=f2(a,u);try{return s.apply(o,h)}catch(g){throw v.error_=g,g}finally{d2(v)}}function f2(a,u,s,o){var h=!1,v=0,g=xe.trackingDerivation,y=!u||!g;ca();var A=xe.allowStateChanges;y&&(Cs(),A=$v(!0));var S=S0(!0),O={runAsAction_:y,prevDerivation_:g,prevAllowStateChanges_:A,prevAllowStateReads_:S,notifySpy_:h,startTime_:v,actionId_:s2++,parentActionId_:zv};return zv=O.actionId_,O}function d2(a){zv!==a.actionId_&&vt(30),zv=a.parentActionId_,a.error_!==void 0&&(xe.suppressReactionErrors=!0),eg(a.prevAllowStateChanges_),Dd(a.prevAllowStateReads_),fa(),a.runAsAction_&&tl(a.prevDerivation_),xe.suppressReactionErrors=!1}function h2(a,u){var s=$v(a);try{return u()}finally{eg(s)}}function $v(a){var u=xe.allowStateChanges;return xe.allowStateChanges=a,u}function eg(a){xe.allowStateChanges=a}var Ss=(function(a){function u(o,h,v,g,y){var A;return v===void 0&&(v="ObservableValue"),y===void 0&&(y=Bv.default),A=a.call(this,v)||this,A.enhancer=void 0,A.name_=void 0,A.equals=void 0,A.hasUnreportedChange_=!1,A.interceptors_=void 0,A.changeListeners_=void 0,A.value_=void 0,A.dehancer=void 0,A.enhancer=h,A.name_=v,A.equals=y,A.value_=h(o,void 0,v),A}ob(u,a);var s=u.prototype;return s.dehanceValue=function(h){return this.dehancer!==void 0?this.dehancer(h):h},s.set=function(h){this.value_,h=this.prepareNewValue_(h),h!==xe.UNCHANGED&&this.setNewValue_(h)},s.prepareNewValue_=function(h){if(sa(this)){var v=oa(this,{object:this,type:_i,newValue:h});if(!v)return xe.UNCHANGED;h=v.newValue}return h=this.enhancer(h,this.value_,this.name_),this.equals(this.value_,h)?xe.UNCHANGED:h},s.setNewValue_=function(h){var v=this.value_;this.value_=h,this.reportChanged(),Ba(this)&&za(this,{type:_i,object:this,newValue:h,oldValue:v})},s.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},s.intercept_=function(h){return Vd(this,h)},s.observe_=function(h,v){return v&&h({observableKind:"value",debugObjectName:this.name_,object:this,type:_i,newValue:this.value_,oldValue:void 0}),Id(this,h)},s.raw=function(){return this.value_},s.toJSON=function(){return this.get()},s.toString=function(){return this.name_+"["+this.value_+"]"},s.valueOf=function(){return sb(this.get())},s[Symbol.toPrimitive]=function(){return this.valueOf()},u})(au),Ua=(function(){function a(s){this.dependenciesState_=bt.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=bt.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Uv(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Lv.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,s.get||vt(31),this.derivation=s.get,this.name_=s.name||"ComputedValue",s.set&&(this.setter_=Ms("ComputedValue-setter",s.set)),this.equals_=s.equals||(s.compareStructural||s.struct?Bv.structural:Bv.default),this.scope_=s.context,this.requiresReaction_=s.requiresReaction,this.keepAlive_=!!s.keepAlive}var u=a.prototype;return u.onBecomeStale_=function(){b2(this)},u.onBO=function(){this.onBOL&&this.onBOL.forEach(function(o){return o()})},u.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(o){return o()})},u.get=function(){if(this.isComputing&&vt(32,this.name_,this.derivation),xe.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)l0(this)&&(this.warnAboutUntrackedRead_(),ca(),this.value_=this.computeValue_(!1),fa());else if(Ob(this),l0(this)){var o=xe.trackingContext;this.keepAlive_&&!o&&(xe.trackingContext=this),this.trackAndCompute()&&p2(this),xe.trackingContext=o}var h=this.value_;if(Ev(h))throw h.cause;return h},u.set=function(o){if(this.setter_){this.isRunningSetter&&vt(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,o)}finally{this.isRunningSetter=!1}}else vt(34,this.name_)},u.trackAndCompute=function(){var o=this.value_,h=this.dependenciesState_===bt.NOT_TRACKING_,v=this.computeValue_(!0),g=h||Ev(o)||Ev(v)||!this.equals_(o,v);return g&&(this.value_=v),g},u.computeValue_=function(o){this.isComputing=!0;var h=$v(!1),v;if(o)v=yb(this,this.derivation,this.scope_);else if(xe.disableErrorBoundaries===!0)v=this.derivation.call(this.scope_);else try{v=this.derivation.call(this.scope_)}catch(g){v=new Uv(g)}return eg(h),this.isComputing=!1,v},u.suspend_=function(){this.keepAlive_||(u0(this),this.value_=void 0)},u.observe_=function(o,h){var v=this,g=!0,y=void 0;return T2(function(){var A=v.get();if(!g||h){var S=Cs();o({observableKind:"computed",debugObjectName:v.name_,type:_i,object:v,newValue:A,oldValue:y}),tl(S)}g=!1,y=A})},u.warnAboutUntrackedRead_=function(){},u.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},u.valueOf=function(){return sb(this.get())},u[Symbol.toPrimitive]=function(){return this.valueOf()},Rc(a,[{key:"isComputing",get:function(){return Qr(this.flags_,a.isComputingMask_)},set:function(o){this.flags_=Xr(this.flags_,a.isComputingMask_,o)}},{key:"isRunningSetter",get:function(){return Qr(this.flags_,a.isRunningSetterMask_)},set:function(o){this.flags_=Xr(this.flags_,a.isRunningSetterMask_,o)}},{key:"isBeingObserved",get:function(){return Qr(this.flags_,a.isBeingObservedMask_)},set:function(o){this.flags_=Xr(this.flags_,a.isBeingObservedMask_,o)}},{key:"isPendingUnobservation",get:function(){return Qr(this.flags_,a.isPendingUnobservationMask_)},set:function(o){this.flags_=Xr(this.flags_,a.isPendingUnobservationMask_,o)}},{key:"diffValue",get:function(){return Qr(this.flags_,a.diffValueMask_)?1:0},set:function(o){this.flags_=Xr(this.flags_,a.diffValueMask_,o===1)}}])})();Ua.isComputingMask_=1;Ua.isRunningSetterMask_=2;Ua.isBeingObservedMask_=4;Ua.isPendingUnobservationMask_=8;Ua.diffValueMask_=16;var tg=Ts("ComputedValue",Ua),bt;(function(a){a[a.NOT_TRACKING_=-1]="NOT_TRACKING_",a[a.UP_TO_DATE_=0]="UP_TO_DATE_",a[a.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",a[a.STALE_=2]="STALE_"})(bt||(bt={}));var Lv;(function(a){a[a.NONE=0]="NONE",a[a.LOG=1]="LOG",a[a.BREAK=2]="BREAK"})(Lv||(Lv={}));var Uv=function(u){this.cause=void 0,this.cause=u};function Ev(a){return a instanceof Uv}function l0(a){switch(a.dependenciesState_){case bt.UP_TO_DATE_:return!1;case bt.NOT_TRACKING_:case bt.STALE_:return!0;case bt.POSSIBLY_STALE_:{for(var u=S0(!0),s=Cs(),o=a.observing_,h=o.length,v=0;v<h;v++){var g=o[v];if(tg(g)){if(xe.disableErrorBoundaries)g.get();else try{g.get()}catch{return tl(s),Dd(u),!0}if(a.dependenciesState_===bt.STALE_)return tl(s),Dd(u),!0}}return _b(a),tl(s),Dd(u),!1}}}function yb(a,u,s){var o=S0(!0);_b(a),a.newObserving_=new Array(a.runId_===0?100:a.observing_.length),a.unboundDepsCount_=0,a.runId_=++xe.runId;var h=xe.trackingDerivation;xe.trackingDerivation=a,xe.inBatch++;var v;if(xe.disableErrorBoundaries===!0)v=u.call(s);else try{v=u.call(s)}catch(g){v=new Uv(g)}return xe.inBatch--,xe.trackingDerivation=h,m2(a),Dd(o),v}function m2(a){for(var u=a.observing_,s=a.observing_=a.newObserving_,o=bt.UP_TO_DATE_,h=0,v=a.unboundDepsCount_,g=0;g<v;g++){var y=s[g];y.diffValue===0&&(y.diffValue=1,h!==g&&(s[h]=y),h++),y.dependenciesState_>o&&(o=y.dependenciesState_)}for(s.length=h,a.newObserving_=null,v=u.length;v--;){var A=u[v];A.diffValue===0&&Sb(A,a),A.diffValue=0}for(;h--;){var S=s[h];S.diffValue===1&&(S.diffValue=0,g2(S,a))}o!==bt.UP_TO_DATE_&&(a.dependenciesState_=o,a.onBecomeStale_())}function u0(a){var u=a.observing_;a.observing_=[];for(var s=u.length;s--;)Sb(u[s],a);a.dependenciesState_=bt.NOT_TRACKING_}function Ab(a){var u=Cs();try{return a()}finally{tl(u)}}function Cs(){var a=xe.trackingDerivation;return xe.trackingDerivation=null,a}function tl(a){xe.trackingDerivation=a}function S0(a){var u=xe.allowStateReads;return xe.allowStateReads=a,u}function Dd(a){xe.allowStateReads=a}function _b(a){if(a.dependenciesState_!==bt.UP_TO_DATE_){a.dependenciesState_=bt.UP_TO_DATE_;for(var u=a.observing_,s=u.length;s--;)u[s].lowestObserverState_=bt.UP_TO_DATE_}}var Ov=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},wv=!0,xb=!1,xe=(function(){var a=Zv();return a.__mobxInstanceCount>0&&!a.__mobxGlobals&&(wv=!1),a.__mobxGlobals&&a.__mobxGlobals.version!==new Ov().version&&(wv=!1),wv?a.__mobxGlobals?(a.__mobxInstanceCount+=1,a.__mobxGlobals.UNCHANGED||(a.__mobxGlobals.UNCHANGED={}),a.__mobxGlobals):(a.__mobxInstanceCount=1,a.__mobxGlobals=new Ov):(setTimeout(function(){xb||vt(35)},1),new Ov)})();function v2(){if((xe.pendingReactions.length||xe.inBatch||xe.isRunningReactions)&&vt(36),xb=!0,wv){var a=Zv();--a.__mobxInstanceCount===0&&(a.__mobxGlobals=void 0),xe=new Ov}}function g2(a,u){a.observers_.add(u),a.lowestObserverState_>u.dependenciesState_&&(a.lowestObserverState_=u.dependenciesState_)}function Sb(a,u){a.observers_.delete(u),a.observers_.size===0&&Eb(a)}function Eb(a){a.isPendingUnobservation===!1&&(a.isPendingUnobservation=!0,xe.pendingUnobservations.push(a))}function ca(){xe.inBatch++}function fa(){if(--xe.inBatch===0){Mb();for(var a=xe.pendingUnobservations,u=0;u<a.length;u++){var s=a[u];s.isPendingUnobservation=!1,s.observers_.size===0&&(s.isBeingObserved&&(s.isBeingObserved=!1,s.onBUO()),s instanceof Ua&&s.suspend_())}xe.pendingUnobservations=[]}}function Ob(a){var u=xe.trackingDerivation;return u!==null?(u.runId_!==a.lastAccessedBy_&&(a.lastAccessedBy_=u.runId_,u.newObserving_[u.unboundDepsCount_++]=a,!a.isBeingObserved&&xe.trackingContext&&(a.isBeingObserved=!0,a.onBO())),a.isBeingObserved):(a.observers_.size===0&&xe.inBatch>0&&Eb(a),!1)}function wb(a){a.lowestObserverState_!==bt.STALE_&&(a.lowestObserverState_=bt.STALE_,a.observers_.forEach(function(u){u.dependenciesState_===bt.UP_TO_DATE_&&u.onBecomeStale_(),u.dependenciesState_=bt.STALE_}))}function p2(a){a.lowestObserverState_!==bt.STALE_&&(a.lowestObserverState_=bt.STALE_,a.observers_.forEach(function(u){u.dependenciesState_===bt.POSSIBLY_STALE_?u.dependenciesState_=bt.STALE_:u.dependenciesState_===bt.UP_TO_DATE_&&(a.lowestObserverState_=bt.UP_TO_DATE_)}))}function b2(a){a.lowestObserverState_===bt.UP_TO_DATE_&&(a.lowestObserverState_=bt.POSSIBLY_STALE_,a.observers_.forEach(function(u){u.dependenciesState_===bt.UP_TO_DATE_&&(u.dependenciesState_=bt.POSSIBLY_STALE_,u.onBecomeStale_())}))}var xi=(function(){function a(s,o,h,v){s===void 0&&(s="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=bt.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Lv.NONE,this.name_=s,this.onInvalidate_=o,this.errorHandler_=h,this.requiresObservable_=v}var u=a.prototype;return u.onBecomeStale_=function(){this.schedule_()},u.schedule_=function(){this.isScheduled||(this.isScheduled=!0,xe.pendingReactions.push(this),Mb())},u.runReaction_=function(){if(!this.isDisposed){ca(),this.isScheduled=!1;var o=xe.trackingContext;if(xe.trackingContext=this,l0(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(h){this.reportExceptionInDerivation_(h)}}xe.trackingContext=o,fa()}},u.track=function(o){if(!this.isDisposed){ca(),this.isRunning=!0;var h=xe.trackingContext;xe.trackingContext=this;var v=yb(this,o,void 0);xe.trackingContext=h,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&u0(this),Ev(v)&&this.reportExceptionInDerivation_(v.cause),fa()}},u.reportExceptionInDerivation_=function(o){var h=this;if(this.errorHandler_){this.errorHandler_(o,this);return}if(xe.disableErrorBoundaries)throw o;var v="[mobx] uncaught error in '"+this+"'";xe.suppressReactionErrors||console.error(v,o),xe.globalReactionErrorHandlers.forEach(function(g){return g(o,h)})},u.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(ca(),u0(this),fa()))},u.getDisposer_=function(o){var h=this,v=function g(){h.dispose(),o==null||o.removeEventListener==null||o.removeEventListener("abort",g)};return o==null||o.addEventListener==null||o.addEventListener("abort",v),v[Qe]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(v[Symbol.dispose]=v),v},u.toString=function(){return"Reaction["+this.name_+"]"},u.trace=function(o){},Rc(a,[{key:"isDisposed",get:function(){return Qr(this.flags_,a.isDisposedMask_)},set:function(o){this.flags_=Xr(this.flags_,a.isDisposedMask_,o)}},{key:"isScheduled",get:function(){return Qr(this.flags_,a.isScheduledMask_)},set:function(o){this.flags_=Xr(this.flags_,a.isScheduledMask_,o)}},{key:"isTrackPending",get:function(){return Qr(this.flags_,a.isTrackPendingMask_)},set:function(o){this.flags_=Xr(this.flags_,a.isTrackPendingMask_,o)}},{key:"isRunning",get:function(){return Qr(this.flags_,a.isRunningMask_)},set:function(o){this.flags_=Xr(this.flags_,a.isRunningMask_,o)}},{key:"diffValue",get:function(){return Qr(this.flags_,a.diffValueMask_)?1:0},set:function(o){this.flags_=Xr(this.flags_,a.diffValueMask_,o===1)}}])})();xi.isDisposedMask_=1;xi.isScheduledMask_=2;xi.isTrackPendingMask_=4;xi.isRunningMask_=8;xi.diffValueMask_=16;var y2=100,s0=function(u){return u()};function Mb(){xe.inBatch>0||xe.isRunningReactions||s0(A2)}function A2(){xe.isRunningReactions=!0;for(var a=xe.pendingReactions,u=0;a.length>0;){++u===y2&&(console.error("[mobx] cycle in reaction: "+a[0]),a.splice(0));for(var s=a.splice(0),o=0,h=s.length;o<h;o++)s[o].runReaction_()}xe.isRunningReactions=!1}var jv=Ts("Reaction",xi);function _2(a){var u=s0;s0=function(o){return a(function(){return u(o)})}}function Bd(){return!1}function x2(a){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Tb="action",S2="action.bound",Cb="autoAction",E2="autoAction.bound",O2="<unnamed action>",o0=Yd(Tb),w2=Yd(S2,{bound:!0}),c0=Yd(Cb,{autoAction:!0}),M2=Yd(E2,{autoAction:!0,bound:!0});function Rb(a){var u=function(o,h){if(La(o))return Ms(o.name||O2,o,a);if(La(h))return Ms(o,h,a);if(qd(h))return(a?c0:o0).decorate_20223_(o,h);if(Es(h))return Gd(o,h,a?c0:o0);if(Es(o))return Ai(Yd(a?Cb:Tb,{name:o,autoAction:a}))};return u}var bc=Rb(!1);Object.assign(bc,o0);var Ud=Rb(!0);Object.assign(Ud,c0);bc.bound=Ai(w2);Ud.bound=Ai(M2);function Ec(a){return La(a)&&a.isMobxAction===!0}function T2(a,u){var s,o,h,v;u===void 0&&(u=nb);var g=(s=(o=u)==null?void 0:o.name)!=null?s:"Autorun",y=!u.scheduler&&!u.delay,A;if(y)A=new xi(g,function(){this.track(R)},u.onError,u.requiresObservable);else{var S=R2(u),O=!1;A=new xi(g,function(){O||(O=!0,S(function(){O=!1,A.isDisposed||A.track(R)}))},u.onError,u.requiresObservable)}function R(){a(A)}return(h=u)!=null&&(h=h.signal)!=null&&h.aborted||A.schedule_(),A.getDisposer_((v=u)==null?void 0:v.signal)}var C2=function(u){return u()};function R2(a){return a.scheduler?a.scheduler:a.delay?function(u){return setTimeout(u,a.delay)}:C2}var N2="onBO",D2="onBUO";function B2(a,u,s){return Db(N2,a,u,s)}function Nb(a,u,s){return Db(D2,a,u,s)}function Db(a,u,s,o){var h=Gv(u),v=La(o)?o:s,g=a+"L";return h[g]?h[g].add(v):h[g]=new Set([v]),function(){var y=h[g];y&&(y.delete(v),y.size===0&&delete h[g])}}var z2="never",Av="always",L2="observed";function U2(a){a.isolateGlobalState===!0&&v2();var u=a.useProxies,s=a.enforceActions;if(u!==void 0&&(xe.useProxies=u===Av?!0:u===z2?!1:typeof Proxy<"u"),u==="ifavailable"&&(xe.verifyProxies=!0),s!==void 0){var o=s===Av?Av:s===L2;xe.enforceActions=o,xe.allowStateChanges=!(o===!0||o===Av)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(h){h in a&&(xe[h]=!!a[h])}),xe.allowStateReads=!xe.observableRequiresReaction,a.reactionScheduler&&_2(a.reactionScheduler)}function Bb(a,u,s,o){var h=p_(u);return iu(function(){var v=Ns(a,o)[Qe];Sc(h).forEach(function(g){v.extend_(g,h[g],s&&g in s?s[g]:!0)})}),a}function j2(a,u){return zb(Gv(a,u))}function zb(a){var u={name:a.name_};return a.observing_&&a.observing_.length>0&&(u.dependencies=k2(a.observing_).map(zb)),u}function k2(a){return Array.from(new Set(a))}var H2=0;function Lb(){this.message="FLOW_CANCELLED"}Lb.prototype=Object.create(Error.prototype);var xp=db("flow"),G2=db("flow.bound",{bound:!0}),Oc=Object.assign(function(u,s){if(qd(s))return xp.decorate_20223_(u,s);if(Es(s))return Gd(u,s,xp);var o=u,h=o.name||"<unnamed flow>",v=function(){var y=this,A=arguments,S=++H2,O=bc(h+" - runid: "+S+" - init",o).apply(y,A),R,H=void 0,X=new Promise(function(U,j){var Z=0;R=j;function $(ye){H=void 0;var re;try{re=bc(h+" - runid: "+S+" - yield "+Z++,O.next).call(O,ye)}catch(de){return j(de)}me(re)}function fe(ye){H=void 0;var re;try{re=bc(h+" - runid: "+S+" - yield "+Z++,O.throw).call(O,ye)}catch(de){return j(de)}me(re)}function me(ye){if(La(ye?.then)){ye.then(me,j);return}return ye.done?U(ye.value):(H=Promise.resolve(ye.value),H.then($,fe))}$(void 0)});return X.cancel=bc(h+" - runid: "+S+" - cancel",function(){try{H&&W0(H);var U=O.return(void 0),j=Promise.resolve(U.value);j.then(gc,gc),W0(j),R(new Lb)}catch(Z){R(Z)}}),X};return v.isMobXFlow=!0,v},xp);Oc.bound=Ai(G2);function W0(a){La(a.cancel)&&a.cancel()}function jd(a){return a?.isMobXFlow===!0}function q2(a,u){return a?rg(a)||!!a[Qe]||_0(a)||jv(a)||tg(a):!1}function Ub(a){return q2(a)}function $i(a,u){u===void 0&&(u=void 0),ca();try{return a.apply(u)}finally{fa()}}function vc(a){return a[Qe]}var Y2={has:function(u,s){return vc(u).has_(s)},get:function(u,s){return vc(u).get_(s)},set:function(u,s,o){var h;return Es(s)?(h=vc(u).set_(s,o,!0))!=null?h:!0:!1},deleteProperty:function(u,s){var o;return Es(s)?(o=vc(u).delete_(s,!0))!=null?o:!0:!1},defineProperty:function(u,s,o){var h;return(h=vc(u).defineProperty_(s,o))!=null?h:!0},ownKeys:function(u){return vc(u).ownKeys_()},preventExtensions:function(u){vt(13)}};function V2(a,u){var s,o;return rb(),a=Ns(a,u),(o=(s=a[Qe]).proxy_)!=null?o:s.proxy_=new Proxy(a,Y2)}function sa(a){return a.interceptors_!==void 0&&a.interceptors_.length>0}function Vd(a,u){var s=a.interceptors_||(a.interceptors_=[]);return s.push(u),ab(function(){var o=s.indexOf(u);o!==-1&&s.splice(o,1)})}function oa(a,u){var s=Cs();try{for(var o=[].concat(a.interceptors_||[]),h=0,v=o.length;h<v&&(u=o[h](u),u&&!u.type&&vt(14),!!u);h++);return u}finally{tl(s)}}function Ba(a){return a.changeListeners_!==void 0&&a.changeListeners_.length>0}function Id(a,u){var s=a.changeListeners_||(a.changeListeners_=[]);return s.push(u),ab(function(){var o=s.indexOf(u);o!==-1&&s.splice(o,1)})}function za(a,u){var s=Cs(),o=a.changeListeners_;if(o){o=o.slice();for(var h=0,v=o.length;h<v;h++)o[h](u);tl(s)}}function I2(a,u,s){return iu(function(){var o,h=Ns(a,s)[Qe];(o=u)!=null||(u=x_(a)),Sc(u).forEach(function(v){return h.make_(v,u[v])})}),a}var Sp=Symbol("mobx-keys");function Q2(a,u,s){return nl(a)?Bb(a,a,u,s):(iu(function(){var o=Ns(a,s)[Qe];if(!a[Sp]){var h=Object.getPrototypeOf(a),v=new Set([].concat(Sc(a),Sc(h)));v.delete("constructor"),v.delete(Qe),Hd(h,Sp,v)}a[Sp].forEach(function(g){return o.make_(g,u&&g in u?u[g]:!0)})}),a)}var F0="splice",_i="update",X2=1e4,Z2={get:function(u,s){var o=u[Qe];return s===Qe?o:s==="length"?o.getArrayLength_():typeof s=="string"&&!isNaN(s)?o.get_(parseInt(s)):el(kv,s)?kv[s]:u[s]},set:function(u,s,o){var h=u[Qe];return s==="length"&&h.setArrayLength_(o),typeof s=="symbol"||isNaN(s)?u[s]=o:h.set_(parseInt(s),o),!0},preventExtensions:function(){vt(15)}},E0=(function(){function a(s,o,h,v){s===void 0&&(s="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=h,this.legacyMode_=v,this.atom_=new au(s),this.enhancer_=function(g,y){return o(g,y,"ObservableArray[..]")}}var u=a.prototype;return u.dehanceValue_=function(o){return this.dehancer!==void 0?this.dehancer(o):o},u.dehanceValues_=function(o){return this.dehancer!==void 0&&o.length>0?o.map(this.dehancer):o},u.intercept_=function(o){return Vd(this,o)},u.observe_=function(o,h){return h===void 0&&(h=!1),h&&o({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Id(this,o)},u.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},u.setArrayLength_=function(o){(typeof o!="number"||isNaN(o)||o<0)&&vt("Out of range: "+o);var h=this.values_.length;if(o!==h)if(o>h){for(var v=new Array(o-h),g=0;g<o-h;g++)v[g]=void 0;this.spliceWithArray_(h,0,v)}else this.spliceWithArray_(o,h-o)},u.updateArrayLength_=function(o,h){o!==this.lastKnownLength_&&vt(16),this.lastKnownLength_+=h,this.legacyMode_&&h>0&&Vb(o+h+1)},u.spliceWithArray_=function(o,h,v){var g=this;this.atom_;var y=this.values_.length;if(o===void 0?o=0:o>y?o=y:o<0&&(o=Math.max(0,y+o)),arguments.length===1?h=y-o:h==null?h=0:h=Math.max(0,Math.min(h,y-o)),v===void 0&&(v=n0),sa(this)){var A=oa(this,{object:this.proxy_,type:F0,index:o,removedCount:h,added:v});if(!A)return n0;h=A.removedCount,v=A.added}if(v=v.length===0?v:v.map(function(R){return g.enhancer_(R,void 0)}),this.legacyMode_){var S=v.length-h;this.updateArrayLength_(y,S)}var O=this.spliceItemsIntoValues_(o,h,v);return(h!==0||v.length!==0)&&this.notifyArraySplice_(o,v,O),this.dehanceValues_(O)},u.spliceItemsIntoValues_=function(o,h,v){if(v.length<X2){var g;return(g=this.values_).splice.apply(g,[o,h].concat(v))}else{var y=this.values_.slice(o,o+h),A=this.values_.slice(o+h);this.values_.length+=v.length-h;for(var S=0;S<v.length;S++)this.values_[o+S]=v[S];for(var O=0;O<A.length;O++)this.values_[o+v.length+O]=A[O];return y}},u.notifyArrayChildUpdate_=function(o,h,v){var g=!this.owned_&&Bd(),y=Ba(this),A=y||g?{observableKind:"array",object:this.proxy_,type:_i,debugObjectName:this.atom_.name_,index:o,newValue:h,oldValue:v}:null;this.atom_.reportChanged(),y&&za(this,A)},u.notifyArraySplice_=function(o,h,v){var g=!this.owned_&&Bd(),y=Ba(this),A=y||g?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:F0,index:o,removed:v,added:h,removedCount:v.length,addedCount:h.length}:null;this.atom_.reportChanged(),y&&za(this,A)},u.get_=function(o){if(this.legacyMode_&&o>=this.values_.length){console.warn("[mobx] Out of bounds read: "+o);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[o])},u.set_=function(o,h){var v=this.values_;if(this.legacyMode_&&o>v.length&&vt(17,o,v.length),o<v.length){this.atom_;var g=v[o];if(sa(this)){var y=oa(this,{type:_i,object:this.proxy_,index:o,newValue:h});if(!y)return;h=y.newValue}h=this.enhancer_(h,g);var A=h!==g;A&&(v[o]=h,this.notifyArrayChildUpdate_(o,h,g))}else{for(var S=new Array(o+1-v.length),O=0;O<S.length-1;O++)S[O]=void 0;S[S.length-1]=h,this.spliceWithArray_(v.length,0,S)}},a})();function K2(a,u,s,o){return s===void 0&&(s="ObservableArray"),o===void 0&&(o=!1),rb(),iu(function(){var h=new E0(s,u,o,!1);lb(h.values_,Qe,h);var v=new Proxy(h.values_,Z2);return h.proxy_=v,a&&a.length&&h.spliceWithArray_(0,0,a),v})}var kv={clear:function(){return this.splice(0)},replace:function(u){var s=this[Qe];return s.spliceWithArray_(0,s.values_.length,u)},toJSON:function(){return this.slice()},splice:function(u,s){for(var o=arguments.length,h=new Array(o>2?o-2:0),v=2;v<o;v++)h[v-2]=arguments[v];var g=this[Qe];switch(arguments.length){case 0:return[];case 1:return g.spliceWithArray_(u);case 2:return g.spliceWithArray_(u,s)}return g.spliceWithArray_(u,s,h)},spliceWithArray:function(u,s,o){return this[Qe].spliceWithArray_(u,s,o)},push:function(){for(var u=this[Qe],s=arguments.length,o=new Array(s),h=0;h<s;h++)o[h]=arguments[h];return u.spliceWithArray_(u.values_.length,0,o),u.values_.length},pop:function(){return this.splice(Math.max(this[Qe].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var u=this[Qe],s=arguments.length,o=new Array(s),h=0;h<s;h++)o[h]=arguments[h];return u.spliceWithArray_(0,0,o),u.values_.length},reverse:function(){return xe.trackingDerivation&&vt(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){xe.trackingDerivation&&vt(37,"sort");var u=this.slice();return u.sort.apply(u,arguments),this.replace(u),this},remove:function(u){var s=this[Qe],o=s.dehanceValues_(s.values_).indexOf(u);return o>-1?(this.splice(o,1),!0):!1}};Yt("at",Zr);Yt("concat",Zr);Yt("flat",Zr);Yt("includes",Zr);Yt("indexOf",Zr);Yt("join",Zr);Yt("lastIndexOf",Zr);Yt("slice",Zr);Yt("toString",Zr);Yt("toLocaleString",Zr);Yt("toSorted",Zr);Yt("toSpliced",Zr);Yt("with",Zr);Yt("every",ja);Yt("filter",ja);Yt("find",ja);Yt("findIndex",ja);Yt("findLast",ja);Yt("findLastIndex",ja);Yt("flatMap",ja);Yt("forEach",ja);Yt("map",ja);Yt("some",ja);Yt("toReversed",ja);Yt("reduce",jb);Yt("reduceRight",jb);function Yt(a,u){typeof Array.prototype[a]=="function"&&(kv[a]=u(a))}function Zr(a){return function(){var u=this[Qe];u.atom_.reportObserved();var s=u.dehanceValues_(u.values_);return s[a].apply(s,arguments)}}function ja(a){return function(u,s){var o=this,h=this[Qe];h.atom_.reportObserved();var v=h.dehanceValues_(h.values_);return v[a](function(g,y){return u.call(s,g,y,o)})}}function jb(a){return function(){var u=this,s=this[Qe];s.atom_.reportObserved();var o=s.dehanceValues_(s.values_),h=arguments[0];return arguments[0]=function(v,g,y){return h(v,g,y,u)},o[a].apply(o,arguments)}}var P2=Ts("ObservableArrayAdministration",E0);function ng(a){return Pv(a)&&P2(a[Qe])}var J2={},ru="add",Hv="delete",kb=(function(){function a(s,o,h){var v=this;o===void 0&&(o=ws),h===void 0&&(h="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Qe]=J2,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=o,this.name_=h,La(Map)||vt(18),iu(function(){v.keysAtom_=cb("ObservableMap.keys()"),v.data_=new Map,v.hasMap_=new Map,s&&v.merge(s)})}var u=a.prototype;return u.has_=function(o){return this.data_.has(o)},u.has=function(o){var h=this;if(!xe.trackingDerivation)return this.has_(o);var v=this.hasMap_.get(o);if(!v){var g=v=new Ss(this.has_(o),Jv,"ObservableMap.key?",!1);this.hasMap_.set(o,g),Nb(g,function(){return h.hasMap_.delete(o)})}return v.get()},u.set=function(o,h){var v=this.has_(o);if(sa(this)){var g=oa(this,{type:v?_i:ru,object:this,newValue:h,name:o});if(!g)return this;h=g.newValue}return v?this.updateValue_(o,h):this.addValue_(o,h),this},u.delete=function(o){var h=this;if(this.keysAtom_,sa(this)){var v=oa(this,{type:Hv,object:this,name:o});if(!v)return!1}if(this.has_(o)){var g=Bd(),y=Ba(this),A=y||g?{observableKind:"map",debugObjectName:this.name_,type:Hv,object:this,oldValue:this.data_.get(o).value_,name:o}:null;return $i(function(){var S;h.keysAtom_.reportChanged(),(S=h.hasMap_.get(o))==null||S.setNewValue_(!1);var O=h.data_.get(o);O.setNewValue_(void 0),h.data_.delete(o)}),y&&za(this,A),!0}return!1},u.updateValue_=function(o,h){var v=this.data_.get(o);if(h=v.prepareNewValue_(h),h!==xe.UNCHANGED){var g=Bd(),y=Ba(this),A=y||g?{observableKind:"map",debugObjectName:this.name_,type:_i,object:this,oldValue:v.value_,name:o,newValue:h}:null;v.setNewValue_(h),y&&za(this,A)}},u.addValue_=function(o,h){var v=this;this.keysAtom_,$i(function(){var S,O=new Ss(h,v.enhancer_,"ObservableMap.key",!1);v.data_.set(o,O),h=O.value_,(S=v.hasMap_.get(o))==null||S.setNewValue_(!0),v.keysAtom_.reportChanged()});var g=Bd(),y=Ba(this),A=y||g?{observableKind:"map",debugObjectName:this.name_,type:ru,object:this,name:o,newValue:h}:null;y&&za(this,A)},u.get=function(o){return this.has(o)?this.dehanceValue_(this.data_.get(o).get()):this.dehanceValue_(void 0)},u.dehanceValue_=function(o){return this.dehancer!==void 0?this.dehancer(o):o},u.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},u.values=function(){var o=this,h=this.keys();return $0({next:function(){var g=h.next(),y=g.done,A=g.value;return{done:y,value:y?void 0:o.get(A)}}})},u.entries=function(){var o=this,h=this.keys();return $0({next:function(){var g=h.next(),y=g.done,A=g.value;return{done:y,value:y?void 0:[A,o.get(A)]}}})},u[Symbol.iterator]=function(){return this.entries()},u.forEach=function(o,h){for(var v=pc(this),g;!(g=v()).done;){var y=g.value,A=y[0],S=y[1];o.call(h,S,A,this)}},u.merge=function(o){var h=this;return Rs(o)&&(o=new Map(o)),$i(function(){nl(o)?g_(o).forEach(function(v){return h.set(v,o[v])}):Array.isArray(o)?o.forEach(function(v){var g=v[0],y=v[1];return h.set(g,y)}):Cc(o)?(v_(o)||vt(19,o),o.forEach(function(v,g){return h.set(g,v)})):o!=null&&vt(20,o)}),this},u.clear=function(){var o=this;$i(function(){Ab(function(){for(var h=pc(o.keys()),v;!(v=h()).done;){var g=v.value;o.delete(g)}})})},u.replace=function(o){var h=this;return $i(function(){for(var v=W2(o),g=new Map,y=!1,A=pc(h.data_.keys()),S;!(S=A()).done;){var O=S.value;if(!v.has(O)){var R=h.delete(O);if(R)y=!0;else{var H=h.data_.get(O);g.set(O,H)}}}for(var X=pc(v.entries()),U;!(U=X()).done;){var j=U.value,Z=j[0],$=j[1],fe=h.data_.has(Z);if(h.set(Z,$),h.data_.has(Z)){var me=h.data_.get(Z);g.set(Z,me),fe||(y=!0)}}if(!y)if(h.data_.size!==g.size)h.keysAtom_.reportChanged();else for(var ye=h.data_.keys(),re=g.keys(),de=ye.next(),be=re.next();!de.done;){if(de.value!==be.value){h.keysAtom_.reportChanged();break}de=ye.next(),be=re.next()}h.data_=g}),this},u.toString=function(){return"[object ObservableMap]"},u.toJSON=function(){return Array.from(this)},u.observe_=function(o,h){return Id(this,o)},u.intercept_=function(o){return Vd(this,o)},Rc(a,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),Rs=Ts("ObservableMap",kb);function $0(a){return a[Symbol.toStringTag]="MapIterator",w0(a)}function W2(a){if(Cc(a)||Rs(a))return a;if(Array.isArray(a))return new Map(a);if(nl(a)){var u=new Map;for(var s in a)u.set(s,a[s]);return u}else return vt(21,a)}var F2={},Hb=(function(){function a(s,o,h){var v=this;o===void 0&&(o=ws),h===void 0&&(h="ObservableSet"),this.name_=void 0,this[Qe]=F2,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=h,La(Set)||vt(22),this.enhancer_=function(g,y){return o(g,y,h)},iu(function(){v.atom_=cb(v.name_),s&&v.replace(s)})}var u=a.prototype;return u.dehanceValue_=function(o){return this.dehancer!==void 0?this.dehancer(o):o},u.clear=function(){var o=this;$i(function(){Ab(function(){for(var h=pc(o.data_.values()),v;!(v=h()).done;){var g=v.value;o.delete(g)}})})},u.forEach=function(o,h){for(var v=pc(this),g;!(g=v()).done;){var y=g.value;o.call(h,y,y,this)}},u.add=function(o){var h=this;if(this.atom_,sa(this)){var v=oa(this,{type:ru,object:this,newValue:o});if(!v)return this;o=v.newValue}if(!this.has(o)){$i(function(){h.data_.add(h.enhancer_(o,void 0)),h.atom_.reportChanged()});var g=!1,y=Ba(this),A=y||g?{observableKind:"set",debugObjectName:this.name_,type:ru,object:this,newValue:o}:null;y&&za(this,A)}return this},u.delete=function(o){var h=this;if(sa(this)){var v=oa(this,{type:Hv,object:this,oldValue:o});if(!v)return!1}if(this.has(o)){var g=!1,y=Ba(this),A=y||g?{observableKind:"set",debugObjectName:this.name_,type:Hv,object:this,oldValue:o}:null;return $i(function(){h.atom_.reportChanged(),h.data_.delete(o)}),y&&za(this,A),!0}return!1},u.has=function(o){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(o))},u.entries=function(){var o=this.values();return e1({next:function(){var v=o.next(),g=v.value,y=v.done;return y?{value:void 0,done:y}:{value:[g,g],done:y}}})},u.keys=function(){return this.values()},u.values=function(){this.atom_.reportObserved();var o=this,h=this.data_.values();return e1({next:function(){var g=h.next(),y=g.value,A=g.done;return A?{value:void 0,done:A}:{value:o.dehanceValue_(y),done:A}}})},u.intersection=function(o){if(Fi(o)&&!pi(o))return o.intersection(this);var h=new Set(this);return h.intersection(o)},u.union=function(o){if(Fi(o)&&!pi(o))return o.union(this);var h=new Set(this);return h.union(o)},u.difference=function(o){return new Set(this).difference(o)},u.symmetricDifference=function(o){if(Fi(o)&&!pi(o))return o.symmetricDifference(this);var h=new Set(this);return h.symmetricDifference(o)},u.isSubsetOf=function(o){return new Set(this).isSubsetOf(o)},u.isSupersetOf=function(o){return new Set(this).isSupersetOf(o)},u.isDisjointFrom=function(o){if(Fi(o)&&!pi(o))return o.isDisjointFrom(this);var h=new Set(this);return h.isDisjointFrom(o)},u.replace=function(o){var h=this;return pi(o)&&(o=new Set(o)),$i(function(){Array.isArray(o)?(h.clear(),o.forEach(function(v){return h.add(v)})):Fi(o)?(h.clear(),o.forEach(function(v){return h.add(v)})):o!=null&&vt("Cannot initialize set from "+o)}),this},u.observe_=function(o,h){return Id(this,o)},u.intercept_=function(o){return Vd(this,o)},u.toJSON=function(){return Array.from(this)},u.toString=function(){return"[object ObservableSet]"},u[Symbol.iterator]=function(){return this.values()},Rc(a,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),pi=Ts("ObservableSet",Hb);function e1(a){return a[Symbol.toStringTag]="SetIterator",w0(a)}var t1=Object.create(null),n1="remove",Gb=(function(){function a(s,o,h,v){o===void 0&&(o=new Map),v===void 0&&(v=X_),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=s,this.values_=o,this.name_=h,this.defaultAnnotation_=v,this.keysAtom_=new au("ObservableObject.keys"),this.isPlainObject_=nl(this.target_)}var u=a.prototype;return u.getObservablePropValue_=function(o){return this.values_.get(o).get()},u.setObservablePropValue_=function(o,h){var v=this.values_.get(o);if(v instanceof Ua)return v.set(h),!0;if(sa(this)){var g=oa(this,{type:_i,object:this.proxy_||this.target_,name:o,newValue:h});if(!g)return null;h=g.newValue}if(h=v.prepareNewValue_(h),h!==xe.UNCHANGED){var y=Ba(this),A=!1,S=y||A?{type:_i,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:v.value_,name:o,newValue:h}:null;v.setNewValue_(h),y&&za(this,S)}return!0},u.get_=function(o){return xe.trackingDerivation&&!el(this.target_,o)&&this.has_(o),this.target_[o]},u.set_=function(o,h,v){return v===void 0&&(v=!1),el(this.target_,o)?this.values_.has(o)?this.setObservablePropValue_(o,h):v?Reflect.set(this.target_,o,h):(this.target_[o]=h,!0):this.extend_(o,{value:h,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,v)},u.has_=function(o){if(!xe.trackingDerivation)return o in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var h=this.pendingKeys_.get(o);return h||(h=new Ss(o in this.target_,Jv,"ObservableObject.key?",!1),this.pendingKeys_.set(o,h)),h.get()},u.make_=function(o,h){if(h===!0&&(h=this.defaultAnnotation_),h!==!1){if(!(o in this.target_)){var v;if((v=this.target_[bi])!=null&&v[o])return;vt(1,h.annotationType_,this.name_+"."+o.toString())}for(var g=this.target_;g&&g!==Kv;){var y=Dv(g,o);if(y){var A=h.make_(this,o,y,g);if(A===0)return;if(A===1)break}g=Object.getPrototypeOf(g)}a1(this,h,o)}},u.extend_=function(o,h,v,g){if(g===void 0&&(g=!1),v===!0&&(v=this.defaultAnnotation_),v===!1)return this.defineProperty_(o,h,g);var y=v.extend_(this,o,h,g);return y&&a1(this,v,o),y},u.defineProperty_=function(o,h,v){v===void 0&&(v=!1),this.keysAtom_;try{ca();var g=this.delete_(o);if(!g)return g;if(sa(this)){var y=oa(this,{object:this.proxy_||this.target_,name:o,type:ru,newValue:h.value});if(!y)return null;var A=y.newValue;h.value!==A&&(h=Os({},h,{value:A}))}if(v){if(!Reflect.defineProperty(this.target_,o,h))return!1}else yi(this.target_,o,h);this.notifyPropertyAddition_(o,h.value)}finally{fa()}return!0},u.defineObservableProperty_=function(o,h,v,g){g===void 0&&(g=!1),this.keysAtom_;try{ca();var y=this.delete_(o);if(!y)return y;if(sa(this)){var A=oa(this,{object:this.proxy_||this.target_,name:o,type:ru,newValue:h});if(!A)return null;h=A.newValue}var S=r1(o),O={configurable:xe.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:S.get,set:S.set};if(g){if(!Reflect.defineProperty(this.target_,o,O))return!1}else yi(this.target_,o,O);var R=new Ss(h,v,"ObservableObject.key",!1);this.values_.set(o,R),this.notifyPropertyAddition_(o,R.value_)}finally{fa()}return!0},u.defineComputedProperty_=function(o,h,v){v===void 0&&(v=!1),this.keysAtom_;try{ca();var g=this.delete_(o);if(!g)return g;if(sa(this)){var y=oa(this,{object:this.proxy_||this.target_,name:o,type:ru,newValue:void 0});if(!y)return null}h.name||(h.name="ObservableObject.key"),h.context=this.proxy_||this.target_;var A=r1(o),S={configurable:xe.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:A.get,set:A.set};if(v){if(!Reflect.defineProperty(this.target_,o,S))return!1}else yi(this.target_,o,S);this.values_.set(o,new Ua(h)),this.notifyPropertyAddition_(o,void 0)}finally{fa()}return!0},u.delete_=function(o,h){if(h===void 0&&(h=!1),this.keysAtom_,!el(this.target_,o))return!0;if(sa(this)){var v=oa(this,{object:this.proxy_||this.target_,name:o,type:n1});if(!v)return null}try{var g;ca();var y=Ba(this),A=!1,S=this.values_.get(o),O=void 0;if(!S&&(y||A)){var R;O=(R=Dv(this.target_,o))==null?void 0:R.value}if(h){if(!Reflect.deleteProperty(this.target_,o))return!1}else delete this.target_[o];if(S&&(this.values_.delete(o),S instanceof Ss&&(O=S.value_),wb(S)),this.keysAtom_.reportChanged(),(g=this.pendingKeys_)==null||(g=g.get(o))==null||g.set(o in this.target_),y||A){var H={type:n1,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:O,name:o};y&&za(this,H)}}finally{fa()}return!0},u.observe_=function(o,h){return Id(this,o)},u.intercept_=function(o){return Vd(this,o)},u.notifyPropertyAddition_=function(o,h){var v,g=Ba(this),y=!1;if(g||y){var A=g||y?{type:ru,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:o,newValue:h}:null;g&&za(this,A)}(v=this.pendingKeys_)==null||(v=v.get(o))==null||v.set(!0),this.keysAtom_.reportChanged()},u.ownKeys_=function(){return this.keysAtom_.reportObserved(),Sc(this.target_)},u.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},a})();function Ns(a,u){var s;if(el(a,Qe))return a;var o=(s=u?.name)!=null?s:"ObservableObject",h=new Gb(a,new Map,String(o),r2(u));return Hd(a,Qe,h),a}var $2=Ts("ObservableObjectAdministration",Gb);function r1(a){return t1[a]||(t1[a]={get:function(){return this[Qe].getObservablePropValue_(a)},set:function(s){return this[Qe].setObservablePropValue_(a,s)}})}function rg(a){return Pv(a)?$2(a[Qe]):!1}function a1(a,u,s){var o;(o=a.target_[bi])==null||delete o[s]}var ex=Yb(0),tx=(function(){var a=!1,u={};return Object.defineProperty(u,"0",{set:function(){a=!0}}),Object.create(u)[0]=1,a===!1})(),Ep=0,qb=function(){};function nx(a,u){Object.setPrototypeOf?Object.setPrototypeOf(a.prototype,u):a.prototype.__proto__!==void 0?a.prototype.__proto__=u:a.prototype=u}nx(qb,Array.prototype);var O0=(function(a){function u(o,h,v,g){var y;return v===void 0&&(v="ObservableArray"),g===void 0&&(g=!1),y=a.call(this)||this,iu(function(){var A=new E0(v,h,g,!0);A.proxy_=y,lb(y,Qe,A),o&&o.length&&y.spliceWithArray(0,0,o),tx&&Object.defineProperty(y,"0",ex)}),y}ob(u,a);var s=u.prototype;return s.concat=function(){this[Qe].atom_.reportObserved();for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];return Array.prototype.concat.apply(this.slice(),v.map(function(y){return ng(y)?y.slice():y}))},s[Symbol.iterator]=function(){var o=this,h=0;return w0({next:function(){return h<o.length?{value:o[h++],done:!1}:{done:!0,value:void 0}}})},Rc(u,[{key:"length",get:function(){return this[Qe].getArrayLength_()},set:function(h){this[Qe].setArrayLength_(h)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(qb);Object.entries(kv).forEach(function(a){var u=a[0],s=a[1];u!=="concat"&&Hd(O0.prototype,u,s)});function Yb(a){return{enumerable:!1,configurable:!0,get:function(){return this[Qe].get_(a)},set:function(s){this[Qe].set_(a,s)}}}function rx(a){yi(O0.prototype,""+a,Yb(a))}function Vb(a){if(a>Ep){for(var u=Ep;u<a+100;u++)rx(u);Ep=a}}Vb(1e3);function ax(a,u,s){return new O0(a,u,s)}function Gv(a,u){if(typeof a=="object"&&a!==null){if(ng(a))return u!==void 0&&vt(23),a[Qe].atom_;if(pi(a))return a.atom_;if(Rs(a)){if(u===void 0)return a.keysAtom_;var s=a.data_.get(u)||a.hasMap_.get(u);return s||vt(25,u,f0(a)),s}if(rg(a)){if(!u)return vt(26);var o=a[Qe].values_.get(u);return o||vt(27,u,f0(a)),o}if(_0(a)||tg(a)||jv(a))return a}else if(La(a)&&jv(a[Qe]))return a[Qe];vt(28)}function ix(a,u){if(a||vt(29),_0(a)||tg(a)||jv(a)||Rs(a)||pi(a))return a;if(a[Qe])return a[Qe];vt(24,a)}function f0(a,u){var s;if(u!==void 0)s=Gv(a,u);else{if(Ec(a))return a.name;rg(a)||Rs(a)||pi(a)?s=ix(a):s=Gv(a)}return s.name_}function iu(a){var u=Cs(),s=$v(!0);ca();try{return a()}finally{fa(),eg(s),tl(u)}}var i1=Kv.toString;function Ib(a,u,s){return s===void 0&&(s=-1),d0(a,u,s)}function d0(a,u,s,o,h){if(a===u)return a!==0||1/a===1/u;if(a==null||u==null)return!1;if(a!==a)return u!==u;var v=typeof a;if(v!=="function"&&v!=="object"&&typeof u!="object")return!1;var g=i1.call(a);if(g!==i1.call(u))return!1;switch(g){case"[object RegExp]":case"[object String]":return""+a==""+u;case"[object Number]":return+a!=+a?+u!=+u:+a==0?1/+a===1/u:+a==+u;case"[object Date]":case"[object Boolean]":return+a==+u;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(a)===Symbol.valueOf.call(u);case"[object Map]":case"[object Set]":s>=0&&s++;break}a=l1(a),u=l1(u);var y=g==="[object Array]";if(!y){if(typeof a!="object"||typeof u!="object")return!1;var A=a.constructor,S=u.constructor;if(A!==S&&!(La(A)&&A instanceof A&&La(S)&&S instanceof S)&&"constructor"in a&&"constructor"in u)return!1}if(s===0)return!1;s<0&&(s=-1),o=o||[],h=h||[];for(var O=o.length;O--;)if(o[O]===a)return h[O]===u;if(o.push(a),h.push(u),y){if(O=a.length,O!==u.length)return!1;for(;O--;)if(!d0(a[O],u[O],s-1,o,h))return!1}else{var R=Object.keys(a),H=R.length;if(Object.keys(u).length!==H)return!1;for(var X=0;X<H;X++){var U=R[X];if(!(el(u,U)&&d0(a[U],u[U],s-1,o,h)))return!1}}return o.pop(),h.pop(),!0}function l1(a){return ng(a)?a.slice():Cc(a)||Rs(a)||Fi(a)||pi(a)?Array.from(a.entries()):a}var u1,lx=((u1=Zv().Iterator)==null?void 0:u1.prototype)||{};function w0(a){return a[Symbol.iterator]=ux,Object.assign(Object.create(lx),a)}function ux(){return this}["Symbol","Map","Set"].forEach(function(a){var u=Zv();typeof u[a]>"u"&&vt("MobX requires global '"+a+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:x2,extras:{getDebugName:f0},$mobx:Qe});if(!F.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!I2)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var sx=R1();function ox(a){a()}function cx(a){a||(a=ox),U2({reactionScheduler:a})}function fx(a){return j2(a)}var dx=1e4,hx=1e4,mx=(function(){function a(u){var s=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:u}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(o){o===void 0&&(o=dx),clearTimeout(s.sweepTimeout),s.sweepTimeout=void 0;var h=Date.now();s.registrations.forEach(function(v,g){h-v.registeredAt>=o&&(s.finalize(v.value),s.registrations.delete(g))}),s.registrations.size>0&&s.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){s.sweep(0)}})}return Object.defineProperty(a.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(u,s,o){this.registrations.set(o,{value:s,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(a.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(u){this.registrations.delete(u)}}),Object.defineProperty(a.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,hx))}}),a})(),vx=typeof FinalizationRegistry<"u"?FinalizationRegistry:mx,kd=new vx(function(a){var u;(u=a.reaction)===null||u===void 0||u.dispose(),a.reaction=null}),Op={exports:{}},wp={};/**
 * @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 s1;function gx(){if(s1)return wp;s1=1;var a=Vv();function u(R,H){return R===H&&(R!==0||1/R===1/H)||R!==R&&H!==H}var s=typeof Object.is=="function"?Object.is:u,o=a.useState,h=a.useEffect,v=a.useLayoutEffect,g=a.useDebugValue;function y(R,H){var X=H(),U=o({inst:{value:X,getSnapshot:H}}),j=U[0].inst,Z=U[1];return v(function(){j.value=X,j.getSnapshot=H,A(j)&&Z({inst:j})},[R,X,H]),h(function(){return A(j)&&Z({inst:j}),R(function(){A(j)&&Z({inst:j})})},[R]),g(X),X}function A(R){var H=R.getSnapshot;R=R.value;try{var X=H();return!s(R,X)}catch{return!0}}function S(R,H){return H()}var O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?S:y;return wp.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:O,wp}var o1;function px(){return o1||(o1=1,Op.exports=gx()),Op.exports}var bx=px();function c1(a){a.reaction=new xi("observer".concat(a.name),function(){var u;a.stateVersion=Symbol(),(u=a.onStoreChange)===null||u===void 0||u.call(a)})}function yx(a,u){u===void 0&&(u="observed");var s=W.useRef(null);if(!s.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:u,subscribe:function(y){return kd.unregister(o),o.onStoreChange=y,o.reaction||(c1(o),o.stateVersion=Symbol()),function(){var A;o.onStoreChange=null,(A=o.reaction)===null||A===void 0||A.dispose(),o.reaction=null}},getSnapshot:function(){return o.stateVersion}};s.current=o}var h=s.current;h.reaction||(c1(h),kd.register(s,h,h)),W.useDebugValue(h.reaction,fx),bx.useSyncExternalStore(h.subscribe,h.getSnapshot,h.getSnapshot);var v,g;if(h.reaction.track(function(){try{v=a()}catch(y){g=y}}),g)throw g;return v}var Mp,Tp,Qb=typeof Symbol=="function"&&Symbol.for,Ax=(Tp=(Mp=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Mp===void 0?void 0:Mp.configurable)!==null&&Tp!==void 0?Tp:!1,f1=Qb?Symbol.for("react.forward_ref"):typeof F.forwardRef=="function"&&F.forwardRef(function(a){return null}).$$typeof,d1=Qb?Symbol.for("react.memo"):typeof F.memo=="function"&&F.memo(function(a){return null}).$$typeof;function _x(a,u){var s;if(d1&&a.$$typeof===d1)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var o=(s=void 0)!==null&&s!==void 0?s:!1,h=a,v=a.displayName||a.name;if(f1&&a.$$typeof===f1&&(o=!0,h=a.render,typeof h!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var g=function(y,A){return yx(function(){return h(y,A)},v)};return g.displayName=a.displayName,Ax&&Object.defineProperty(g,"name",{value:a.name,writable:!0,configurable:!0}),a.contextTypes&&(g.contextTypes=a.contextTypes),o&&(g=F.forwardRef(g)),g=F.memo(g),Sx(a,g),g}var xx={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function Sx(a,u){Object.keys(a).forEach(function(s){xx[s]||Object.defineProperty(u,s,Object.getOwnPropertyDescriptor(a,s))})}var Cp;cx(sx.unstable_batchedUpdates);Cp=kd.finalizeAllImmediately;function Ex(a,u){if(h1(a,u))return!0;if(typeof a!="object"||a===null||typeof u!="object"||u===null)return!1;var s=Object.keys(a),o=Object.keys(u);if(s.length!==o.length)return!1;for(var h=0;h<s.length;h++)if(!Object.hasOwnProperty.call(u,s[h])||!h1(a[s[h]],u[s[h]]))return!1;return!0}function h1(a,u){return a===u?a!==0||1/a===1/u:a!==a&&u!==u}var m1=Symbol("patchMixins"),Xb=Symbol("patchedDefinition");function Ox(a,u){var s=a[m1]=a[m1]||{},o=s[u]=s[u]||{};return o.locks=o.locks||0,o.methods=o.methods||[],o}function v1(a,u){for(var s=this,o=arguments.length,h=new Array(o>2?o-2:0),v=2;v<o;v++)h[v-2]=arguments[v];u.locks++;try{var g;return a!=null&&(g=a.apply(this,h)),g}finally{u.locks--,u.locks===0&&u.methods.forEach(function(y){y.apply(s,h)})}}function g1(a,u){var s=function(){for(var h=arguments.length,v=new Array(h),g=0;g<h;g++)v[g]=arguments[g];v1.call.apply(v1,[this,a,u].concat(v))};return s}function wx(a,u,s){var o=Ox(a,u);o.methods.indexOf(s)<0&&o.methods.push(s);var h=Object.getOwnPropertyDescriptor(a,u);if(!(h&&h[Xb])){var v=a[u],g=Zb(a,u,h?h.enumerable:void 0,o,v);Object.defineProperty(a,u,g)}}function Zb(a,u,s,o,h){var v,g=g1(h,o);return v={},v[Xb]=!0,v.get=function(){return g},v.set=function(A){if(this===a)g=g1(A,o);else{var S=Zb(this,u,s,o,A);Object.defineProperty(this,u,S)}},v.configurable=!0,v.enumerable=s,v}var p1=Symbol("ObserverAdministration"),b1=Symbol("isMobXReactObserver");function h0(a){var u;return(u=a[p1])!=null?u:a[p1]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:m0(a.constructor),state:void 0,props:void 0,context:void 0}}function Mx(a){var u=a.prototype;if(a[b1]){var s=m0(a);throw new Error("The provided component class ("+s+") has already been declared as an observer component.")}else a[b1]=!0;if(u.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(a.__proto__!==F.PureComponent){if(!u.shouldComponentUpdate)u.shouldComponentUpdate=y1;else if(u.shouldComponentUpdate!==y1)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}var o=u.render;if(typeof o!="function"){var h=m0(a);throw new Error("[mobx-react] class component ("+h+") is missing `render` method.\n`observer` requires `render` being a function defined on prototype.\n`render = () => {}` or `render = function() {}` is not supported.")}u.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:Tx.call(this,o)}),this.render()};var v=u.componentDidMount;return u.componentDidMount=function(){var g=this,y=h0(this);return y.mounted=!0,kd.unregister(this),y.forceUpdate=function(){return g.forceUpdate()},(!y.reaction||y.reactionInvalidatedBeforeMount)&&y.forceUpdate(),v?.apply(this,arguments)},wx(u,"componentWillUnmount",function(){var g,y=h0(this);(g=y.reaction)==null||g.dispose(),y.reaction=null,y.forceUpdate=null,y.mounted=!1,y.reactionInvalidatedBeforeMount=!1}),a}function m0(a){return a.displayName||a.name||"<component>"}function Tx(a){var u=a.bind(this),s=h0(this);function o(){s.reaction||(s.reaction=Cx(s),s.mounted||kd.register(this,s,this));var h=void 0,v=void 0;if(s.reaction.track(function(){try{v=h2(!1,u)}catch(g){h=g}}),h)throw h;return v}return o}function Cx(a){return new xi(a.name+".render()",function(){if(!a.mounted){a.reactionInvalidatedBeforeMount=!0;return}try{a.forceUpdate==null||a.forceUpdate()}catch{var u;(u=a.reaction)==null||u.dispose(),a.reaction=null}})}function y1(a,u){return this.state!==u?!0:!Ex(this.props,a)}function Ds(a,u){return a.isMobxInjector===!0&&console.warn("Mobx observer: You are trying to use `observer` on a component that already has `inject`. Please apply `observer` before applying `inject`"),Object.prototype.isPrototypeOf.call(F.Component,a)||Object.prototype.isPrototypeOf.call(F.PureComponent,a)?Mx(a):_x(a)}W.version.split(".")[0];if(!F.Component)throw new Error("mobx-react requires React to be available");if(!Rn)throw new Error("mobx-react requires mobx to be available");var Nd={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */var Rx=Nd.exports,A1;function Nx(){return A1||(A1=1,(function(a,u){(function(){var s,o="4.17.21",h=200,v="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",g="Expected a function",y="Invalid `variable` option passed into `_.template`",A="__lodash_hash_undefined__",S=500,O="__lodash_placeholder__",R=1,H=2,X=4,U=1,j=2,Z=1,$=2,fe=4,me=8,ye=16,re=32,de=64,be=128,ne=256,Oe=512,Re=30,Ae="...",Ne=800,Ge=16,pe=1,ae=2,N=3,K=1/0,z=9007199254740991,ve=17976931348623157e292,M=NaN,Q=4294967295,ce=Q-1,ee=Q>>>1,ge=[["ary",be],["bind",Z],["bindKey",$],["curry",me],["curryRight",ye],["flip",Oe],["partial",re],["partialRight",de],["rearg",ne]],we="[object Arguments]",_e="[object Array]",qe="[object AsyncFunction]",Ue="[object Boolean]",ut="[object Date]",Je="[object DOMException]",St="[object Error]",Et="[object Function]",on="[object GeneratorFunction]",zt="[object Map]",yn="[object Number]",Si="[object Null]",gt="[object Object]",en="[object Promise]",Vt="[object Proxy]",nr="[object RegExp]",Ot="[object Set]",En="[object String]",Nr="[object Symbol]",Dr="[object Undefined]",Ct="[object WeakMap]",da="[object WeakSet]",Jt="[object ArrayBuffer]",cn="[object DataView]",An="[object Float32Array]",lu="[object Float64Array]",uu="[object Int8Array]",su="[object Int16Array]",Kr="[object Int32Array]",It="[object Uint8Array]",Br="[object Uint8ClampedArray]",ka="[object Uint16Array]",ha="[object Uint32Array]",Nc=/\b__p \+= '';/g,On=/\b(__p \+=) '' \+/g,Bs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,zs=/&(?:amp|lt|gt|quot|#39);/g,al=/[&<>"']/g,ag=RegExp(zs.source),Qd=RegExp(al.source),Xd=/<%-([\s\S]+?)%>/g,Dc=/<%([\s\S]+?)%>/g,Ls=/<%=([\s\S]+?)%>/g,Zd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ig=/^\w*$/,Ha=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fn=/[\\^$.*+?()[\]{}|]/g,Hn=RegExp(fn.source),Ga=/^\s+/,Bc=/\s/,lg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ug=/\{\n\/\* \[wrapped with (.+)\] \*/,Kd=/,? & /,ou=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,zc=/[()=,{}\[\]\/\s]/,il=/\\(\\)?/g,ll=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ul=/\w*$/,sl=/^[-+]0x[0-9a-f]+$/i,dn=/^0b[01]+$/i,Pd=/^\[object .+?Constructor\]$/,Jd=/^0o[0-7]+$/i,Ei=/^(?:0|[1-9]\d*)$/,ol=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Us=/($^)/,Wd=/['\n\r\u2028\u2029\\]/g,cu="\\ud800-\\udfff",sg="\\u0300-\\u036f",js="\\ufe20-\\ufe2f",ks="\\u20d0-\\u20ff",Pr=sg+js+ks,Hs="\\u2700-\\u27bf",Lc="a-z\\xdf-\\xf6\\xf8-\\xff",cl="\\xac\\xb1\\xd7\\xf7",Uc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jc="\\u2000-\\u206f",og=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",kc="A-Z\\xc0-\\xd6\\xd8-\\xde",rr="\\ufe0e\\ufe0f",Hc=cl+Uc+jc+og,Gc="['’]",Gs="["+cu+"]",qc="["+Hc+"]",Oi="["+Pr+"]",Fd="\\d+",vr="["+Hs+"]",qs="["+Lc+"]",Yc="[^"+cu+Hc+Fd+Hs+Lc+kc+"]",fu="\\ud83c[\\udffb-\\udfff]",fl="(?:"+Oi+"|"+fu+")",Vc="[^"+cu+"]",Ys="(?:\\ud83c[\\udde6-\\uddff]){2}",qa="[\\ud800-\\udbff][\\udc00-\\udfff]",dl="["+kc+"]",Ic="\\u200d",Qc="(?:"+qs+"|"+Yc+")",Xc="(?:"+dl+"|"+Yc+")",$d="(?:"+Gc+"(?:d|ll|m|re|s|t|ve))?",eh="(?:"+Gc+"(?:D|LL|M|RE|S|T|VE))?",du=fl+"?",Vs="["+rr+"]?",Zc="(?:"+Ic+"(?:"+[Vc,Ys,qa].join("|")+")"+Vs+du+")*",hl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ml="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kc=Vs+du+Zc,Pc="(?:"+[vr,Ys,qa].join("|")+")"+Kc,th="(?:"+[Vc+Oi+"?",Oi,Ys,qa,Gs].join("|")+")",hu=RegExp(Gc,"g"),ma=RegExp(Oi,"g"),mu=RegExp(fu+"(?="+fu+")|"+th+Kc,"g"),vu=RegExp([dl+"?"+qs+"+"+$d+"(?="+[qc,dl,"$"].join("|")+")",Xc+"+"+eh+"(?="+[qc,dl+Qc,"$"].join("|")+")",dl+"?"+Qc+"+"+$d,dl+"+"+eh,ml,hl,Fd,Pc].join("|"),"g"),Ya=RegExp("["+Ic+cu+Pr+rr+"]"),Jc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Is=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nh=-1,wt={};wt[An]=wt[lu]=wt[uu]=wt[su]=wt[Kr]=wt[It]=wt[Br]=wt[ka]=wt[ha]=!0,wt[we]=wt[_e]=wt[Jt]=wt[Ue]=wt[cn]=wt[ut]=wt[St]=wt[Et]=wt[zt]=wt[yn]=wt[gt]=wt[nr]=wt[Ot]=wt[En]=wt[Ct]=!1;var yt={};yt[we]=yt[_e]=yt[Jt]=yt[cn]=yt[Ue]=yt[ut]=yt[An]=yt[lu]=yt[uu]=yt[su]=yt[Kr]=yt[zt]=yt[yn]=yt[gt]=yt[nr]=yt[Ot]=yt[En]=yt[Nr]=yt[It]=yt[Br]=yt[ka]=yt[ha]=!0,yt[St]=yt[Et]=yt[Ct]=!1;var rh={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"},Gn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},wi={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Qs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},gu=parseFloat,cg=parseInt,Xs=typeof vv=="object"&&vv&&vv.Object===Object&&vv,Wc=typeof self=="object"&&self&&self.Object===Object&&self,Wt=Xs||Wc||Function("return this")(),vl=u&&!u.nodeType&&u,Va=vl&&!0&&a&&!a.nodeType&&a,ah=Va&&Va.exports===vl,Fc=ah&&Xs.process,gr=(function(){try{var L=Va&&Va.require&&Va.require("util").types;return L||Fc&&Fc.binding&&Fc.binding("util")}catch{}})(),Zs=gr&&gr.isArrayBuffer,ih=gr&&gr.isDate,lh=gr&&gr.isMap,uh=gr&&gr.isRegExp,sh=gr&&gr.isSet,oh=gr&&gr.isTypedArray;function qn(L,te,J){switch(J.length){case 0:return L.call(te);case 1:return L.call(te,J[0]);case 2:return L.call(te,J[0],J[1]);case 3:return L.call(te,J[0],J[1],J[2])}return L.apply(te,J)}function fg(L,te,J,Se){for(var He=-1,ot=L==null?0:L.length;++He<ot;){var Ft=L[He];te(Se,Ft,J(Ft),L)}return Se}function pr(L,te){for(var J=-1,Se=L==null?0:L.length;++J<Se&&te(L[J],J,L)!==!1;);return L}function dg(L,te){for(var J=L==null?0:L.length;J--&&te(L[J],J,L)!==!1;);return L}function ch(L,te){for(var J=-1,Se=L==null?0:L.length;++J<Se;)if(!te(L[J],J,L))return!1;return!0}function Jr(L,te){for(var J=-1,Se=L==null?0:L.length,He=0,ot=[];++J<Se;){var Ft=L[J];te(Ft,J,L)&&(ot[He++]=Ft)}return ot}function Ks(L,te){var J=L==null?0:L.length;return!!J&&gl(L,te,0)>-1}function $c(L,te,J){for(var Se=-1,He=L==null?0:L.length;++Se<He;)if(J(te,L[Se]))return!0;return!1}function jt(L,te){for(var J=-1,Se=L==null?0:L.length,He=Array(Se);++J<Se;)He[J]=te(L[J],J,L);return He}function va(L,te){for(var J=-1,Se=te.length,He=L.length;++J<Se;)L[He+J]=te[J];return L}function ef(L,te,J,Se){var He=-1,ot=L==null?0:L.length;for(Se&&ot&&(J=L[++He]);++He<ot;)J=te(J,L[He],He,L);return J}function hg(L,te,J,Se){var He=L==null?0:L.length;for(Se&&He&&(J=L[--He]);He--;)J=te(J,L[He],He,L);return J}function tf(L,te){for(var J=-1,Se=L==null?0:L.length;++J<Se;)if(te(L[J],J,L))return!0;return!1}var mg=Js("length");function vg(L){return L.split("")}function gg(L){return L.match(ou)||[]}function fh(L,te,J){var Se;return J(L,function(He,ot,Ft){if(te(He,ot,Ft))return Se=ot,!1}),Se}function Ps(L,te,J,Se){for(var He=L.length,ot=J+(Se?1:-1);Se?ot--:++ot<He;)if(te(L[ot],ot,L))return ot;return-1}function gl(L,te,J){return te===te?Ag(L,te,J):Ps(L,pl,J)}function nf(L,te,J,Se){for(var He=J-1,ot=L.length;++He<ot;)if(Se(L[He],te))return He;return-1}function pl(L){return L!==L}function dh(L,te){var J=L==null?0:L.length;return J?Fs(L,te)/J:M}function Js(L){return function(te){return te==null?s:te[L]}}function Ws(L){return function(te){return L==null?s:L[te]}}function rf(L,te,J,Se,He){return He(L,function(ot,Ft,ct){J=Se?(Se=!1,ot):te(J,ot,Ft,ct)}),J}function hh(L,te){var J=L.length;for(L.sort(te);J--;)L[J]=L[J].value;return L}function Fs(L,te){for(var J,Se=-1,He=L.length;++Se<He;){var ot=te(L[Se]);ot!==s&&(J=J===s?ot:J+ot)}return J}function Ia(L,te){for(var J=-1,Se=Array(L);++J<L;)Se[J]=te(J);return Se}function pg(L,te){return jt(te,function(J){return[J,L[J]]})}function mh(L){return L&&L.slice(0,lf(L)+1).replace(Ga,"")}function ar(L){return function(te){return L(te)}}function $s(L,te){return jt(te,function(J){return L[J]})}function bl(L,te){return L.has(te)}function yl(L,te){for(var J=-1,Se=L.length;++J<Se&&gl(te,L[J],0)>-1;);return J}function Al(L,te){for(var J=L.length;J--&&gl(te,L[J],0)>-1;);return J}function bg(L,te){for(var J=L.length,Se=0;J--;)L[J]===te&&++Se;return Se}var eo=Ws(rh),vh=Ws(Gn);function gh(L){return"\\"+Qs[L]}function af(L,te){return L==null?s:L[te]}function Qa(L){return Ya.test(L)}function ph(L){return Jc.test(L)}function bh(L){for(var te,J=[];!(te=L.next()).done;)J.push(te.value);return J}function to(L){var te=-1,J=Array(L.size);return L.forEach(function(Se,He){J[++te]=[He,Se]}),J}function yh(L,te){return function(J){return L(te(J))}}function Xa(L,te){for(var J=-1,Se=L.length,He=0,ot=[];++J<Se;){var Ft=L[J];(Ft===te||Ft===O)&&(L[J]=O,ot[He++]=J)}return ot}function no(L){var te=-1,J=Array(L.size);return L.forEach(function(Se){J[++te]=Se}),J}function yg(L){var te=-1,J=Array(L.size);return L.forEach(function(Se){J[++te]=[Se,Se]}),J}function Ag(L,te,J){for(var Se=J-1,He=L.length;++Se<He;)if(L[Se]===te)return Se;return-1}function ir(L,te,J){for(var Se=J+1;Se--;)if(L[Se]===te)return Se;return Se}function Wr(L){return Qa(L)?_h(L):mg(L)}function br(L){return Qa(L)?uf(L):vg(L)}function lf(L){for(var te=L.length;te--&&Bc.test(L.charAt(te)););return te}var Ah=Ws(wi);function _h(L){for(var te=mu.lastIndex=0;mu.test(L);)++te;return te}function uf(L){return L.match(mu)||[]}function _g(L){return L.match(vu)||[]}var _l=(function L(te){te=te==null?Wt:Za.defaults(Wt.Object(),te,Za.pick(Wt,Is));var J=te.Array,Se=te.Date,He=te.Error,ot=te.Function,Ft=te.Math,ct=te.Object,ro=te.RegExp,xh=te.String,lr=te.TypeError,ao=J.prototype,xg=ot.prototype,xl=ct.prototype,pu=te["__core-js_shared__"],bu=xg.toString,ht=xl.hasOwnProperty,zr=0,sf=(function(){var r=/[^.]+$/.exec(pu&&pu.keys&&pu.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})(),Nn=xl.toString,yr=bu.call(ct),Sl=Wt._,of=ro("^"+bu.call(ht).replace(fn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mi=ah?te.Buffer:s,Lr=te.Symbol,El=te.Uint8Array,Ti=Mi?Mi.allocUnsafe:s,yu=yh(ct.getPrototypeOf,ct),Au=ct.create,Ci=xl.propertyIsEnumerable,io=ao.splice,Yn=Lr?Lr.isConcatSpreadable:s,Ri=Lr?Lr.iterator:s,Dn=Lr?Lr.toStringTag:s,_u=(function(){try{var r=ni(ct,"defineProperty");return r({},"",{}),r}catch{}})(),lo=te.clearTimeout!==Wt.clearTimeout&&te.clearTimeout,Ni=Se&&Se.now!==Wt.Date.now&&Se.now,cf=te.setTimeout!==Wt.setTimeout&&te.setTimeout,Ol=Ft.ceil,ga=Ft.floor,Ka=ct.getOwnPropertySymbols,uo=Mi?Mi.isBuffer:s,xu=te.isFinite,Ar=ao.join,_r=yh(ct.keys,ct),Lt=Ft.max,kt=Ft.min,pa=Se.now,Di=te.parseInt,ff=Ft.random,df=ao.reverse,Su=ni(te,"DataView"),tn=ni(te,"Map"),Ht=ni(te,"Promise"),rt=ni(te,"Set"),Ur=ni(te,"WeakMap"),Vn=ni(ct,"create"),wl=Ur&&new Ur,xr={},Sh=wa(Su),Eh=wa(tn),Eu=wa(Ht),Ou=wa(rt),Oh=wa(Ur),Pa=Lr?Lr.prototype:s,Bi=Pa?Pa.valueOf:s,Ja=Pa?Pa.toString:s;function _(r){if(Qt(r)&&!Ie(r)&&!(r instanceof We)){if(r instanceof In)return r;if(ht.call(r,"__wrapped__"))return rn(r)}return new In(r)}var ur=(function(){function r(){}return function(i){if(!qt(i))return{};if(Au)return Au(i);r.prototype=i;var f=new r;return r.prototype=s,f}})();function Sr(){}function In(r,i){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=s}_.templateSettings={escape:Xd,evaluate:Dc,interpolate:Ls,variable:"",imports:{_}},_.prototype=Sr.prototype,_.prototype.constructor=_,In.prototype=ur(Sr.prototype),In.prototype.constructor=In;function We(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function wu(){var r=new We(this.__wrapped__);return r.__actions__=nn(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=nn(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=nn(this.__views__),r}function so(){if(this.__filtered__){var r=new We(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function zi(){var r=this.__wrapped__.value(),i=this.__dir__,f=Ie(r),m=i<0,b=f?r.length:0,E=am(0,b,this.__views__),T=E.start,D=E.end,q=D-T,ue=m?D:T-1,oe=this.__iteratees__,he=oe.length,Ee=0,De=kt(q,this.__takeCount__);if(!f||!m&&b==q&&De==q)return Ih(r,this.__actions__);var Ye=[];e:for(;q--&&Ee<De;){ue+=i;for(var $e=-1,Ve=r[ue];++$e<he;){var lt=oe[$e],dt=lt.iteratee,Vr=lt.type,mr=dt(Ve);if(Vr==ae)Ve=mr;else if(!mr){if(Vr==pe)continue e;break e}}Ye[Ee++]=Ve}return Ye}We.prototype=ur(Sr.prototype),We.prototype.constructor=We;function Xt(r){var i=-1,f=r==null?0:r.length;for(this.clear();++i<f;){var m=r[i];this.set(m[0],m[1])}}function oo(){this.__data__=Vn?Vn(null):{},this.size=0}function wh(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}function Sg(r){var i=this.__data__;if(Vn){var f=i[r];return f===A?s:f}return ht.call(i,r)?i[r]:s}function Eg(r){var i=this.__data__;return Vn?i[r]!==s:ht.call(i,r)}function Og(r,i){var f=this.__data__;return this.size+=this.has(r)?0:1,f[r]=Vn&&i===s?A:i,this}Xt.prototype.clear=oo,Xt.prototype.delete=wh,Xt.prototype.get=Sg,Xt.prototype.has=Eg,Xt.prototype.set=Og;function Rt(r){var i=-1,f=r==null?0:r.length;for(this.clear();++i<f;){var m=r[i];this.set(m[0],m[1])}}function hf(){this.__data__=[],this.size=0}function Mu(r){var i=this.__data__,f=Cl(i,r);if(f<0)return!1;var m=i.length-1;return f==m?i.pop():io.call(i,f,1),--this.size,!0}function Tu(r){var i=this.__data__,f=Cl(i,r);return f<0?s:i[f][1]}function mf(r){return Cl(this.__data__,r)>-1}function Ml(r,i){var f=this.__data__,m=Cl(f,r);return m<0?(++this.size,f.push([r,i])):f[m][1]=i,this}Rt.prototype.clear=hf,Rt.prototype.delete=Mu,Rt.prototype.get=Tu,Rt.prototype.has=mf,Rt.prototype.set=Ml;function Qn(r){var i=-1,f=r==null?0:r.length;for(this.clear();++i<f;){var m=r[i];this.set(m[0],m[1])}}function wg(){this.size=0,this.__data__={hash:new Xt,map:new(tn||Rt),string:new Xt}}function Mh(r){var i=Ll(this,r).delete(r);return this.size-=i?1:0,i}function Mg(r){return Ll(this,r).get(r)}function Th(r){return Ll(this,r).has(r)}function Li(r,i){var f=Ll(this,r),m=f.size;return f.set(r,i),this.size+=f.size==m?0:1,this}Qn.prototype.clear=wg,Qn.prototype.delete=Mh,Qn.prototype.get=Mg,Qn.prototype.has=Th,Qn.prototype.set=Li;function ba(r){var i=-1,f=r==null?0:r.length;for(this.__data__=new Qn;++i<f;)this.add(r[i])}function co(r){return this.__data__.set(r,A),this}function Ch(r){return this.__data__.has(r)}ba.prototype.add=ba.prototype.push=co,ba.prototype.has=Ch;function Bn(r){var i=this.__data__=new Rt(r);this.size=i.size}function Rh(){this.__data__=new Rt,this.size=0}function fo(r){var i=this.__data__,f=i.delete(r);return this.size=i.size,f}function vf(r){return this.__data__.get(r)}function Nh(r){return this.__data__.has(r)}function ho(r,i){var f=this.__data__;if(f instanceof Rt){var m=f.__data__;if(!tn||m.length<h-1)return m.push([r,i]),this.size=++f.size,this;f=this.__data__=new Qn(m)}return f.set(r,i),this.size=f.size,this}Bn.prototype.clear=Rh,Bn.prototype.delete=fo,Bn.prototype.get=vf,Bn.prototype.has=Nh,Bn.prototype.set=ho;function gf(r,i){var f=Ie(r),m=!f&&Ra(r),b=!f&&!m&&di(r),E=!f&&!m&&!b&&Pl(r),T=f||m||b||E,D=T?Ia(r.length,xh):[],q=D.length;for(var ue in r)(i||ht.call(r,ue))&&!(T&&(ue=="length"||b&&(ue=="offset"||ue=="parent")||E&&(ue=="buffer"||ue=="byteLength"||ue=="byteOffset")||Gr(ue,q)))&&D.push(ue);return D}function Tl(r){var i=r.length;return i?r[So(0,i-1)]:s}function Dh(r,i){return ts(nn(r),kr(i,0,r.length))}function Bh(r){return ts(nn(r))}function Fr(r,i,f){(f!==s&&!Fn(r[i],f)||f===s&&!(i in r))&&jr(r,i,f)}function Ui(r,i,f){var m=r[i];(!(ht.call(r,i)&&Fn(m,f))||f===s&&!(i in r))&&jr(r,i,f)}function Cl(r,i){for(var f=r.length;f--;)if(Fn(r[f][0],i))return f;return-1}function Wa(r,i,f,m){return Aa(r,function(b,E,T){i(m,b,f(b),T)}),m}function ya(r,i){return r&&Kn(i,un(i),r)}function Cu(r,i){return r&&Kn(i,vn(i),r)}function jr(r,i,f){i=="__proto__"&&_u?_u(r,i,{configurable:!0,enumerable:!0,value:f,writable:!0}):r[i]=f}function Ru(r,i){for(var f=-1,m=i.length,b=J(m),E=r==null;++f<m;)b[f]=E?s:vs(r,i[f]);return b}function kr(r,i,f){return r===r&&(f!==s&&(r=r<=f?r:f),i!==s&&(r=r>=i?r:i)),r}function wn(r,i,f,m,b,E){var T,D=i&R,q=i&H,ue=i&X;if(f&&(T=b?f(r,m,b,E):f(r)),T!==s)return T;if(!qt(r))return r;var oe=Ie(r);if(oe){if(T=Yf(r),!D)return nn(r,T)}else{var he=mn(r),Ee=he==Et||he==on;if(di(r))return zf(r,D);if(he==gt||he==we||Ee&&!b){if(T=q||Ee?{}:Vf(r),!D)return q?Vu(r,Cu(T,r)):Co(r,ya(T,r))}else{if(!yt[he])return b?r:{};T=If(r,he,D)}}E||(E=new Bn);var De=E.get(r);if(De)return De;E.set(r,T),Jm(r)?r.forEach(function(Ve){T.add(wn(Ve,i,f,Ve,r,E))}):ec(r)&&r.forEach(function(Ve,lt){T.set(lt,wn(Ve,i,f,lt,r,E))});var Ye=ue?q?Bo:Do:q?vn:un,$e=oe?s:Ye(r);return pr($e||r,function(Ve,lt){$e&&(lt=Ve,Ve=r[lt]),Ui(T,lt,wn(Ve,i,f,lt,r,E))}),T}function zh(r){var i=un(r);return function(f){return pf(f,r,i)}}function pf(r,i,f){var m=f.length;if(r==null)return!m;for(r=ct(r);m--;){var b=f[m],E=i[b],T=r[b];if(T===s&&!(b in r)||!E(T))return!1}return!0}function ji(r,i,f){if(typeof r!="function")throw new lr(g);return jl(function(){r.apply(s,f)},i)}function Fa(r,i,f,m){var b=-1,E=Ks,T=!0,D=r.length,q=[],ue=i.length;if(!D)return q;f&&(i=jt(i,ar(f))),m?(E=$c,T=!1):i.length>=h&&(E=bl,T=!1,i=new ba(i));e:for(;++b<D;){var oe=r[b],he=f==null?oe:f(oe);if(oe=m||oe!==0?oe:0,T&&he===he){for(var Ee=ue;Ee--;)if(i[Ee]===he)continue e;q.push(oe)}else E(i,he,m)||q.push(oe)}return q}var Aa=kf(Mn),mo=kf(Nl,!0);function bf(r,i){var f=!0;return Aa(r,function(m,b,E){return f=!!i(m,b,E),f}),f}function Hr(r,i,f){for(var m=-1,b=r.length;++m<b;){var E=r[m],T=i(E);if(T!=null&&(D===s?T===T&&!Un(T):f(T,D)))var D=T,q=E}return q}function Ke(r,i,f,m){var b=r.length;for(f=Xe(f),f<0&&(f=-f>b?0:b+f),m=m===s||m>b?b:Xe(m),m<0&&(m+=b),m=f>m?0:ua(m);f<m;)r[f++]=i;return r}function At(r,i){var f=[];return Aa(r,function(m,b,E){i(m,b,E)&&f.push(m)}),f}function at(r,i,f,m,b){var E=-1,T=r.length;for(f||(f=Ea),b||(b=[]);++E<T;){var D=r[E];i>0&&f(D)?i>1?at(D,i-1,f,m,b):va(b,D):m||(b[b.length]=D)}return b}var Rl=Ii(),ki=Ii(!0);function Mn(r,i){return r&&Rl(r,i,un)}function Nl(r,i){return r&&ki(r,i,un)}function $a(r,i){return Jr(i,function(f){return qr(r[f])})}function Er(r,i){i=xa(i,r);for(var f=0,m=i.length;r!=null&&f<m;)r=r[pt(i[f++])];return f&&f==m?r:s}function Lh(r,i,f){var m=i(r);return Ie(r)?m:va(m,f(r))}function it(r){return r==null?r===s?Dr:Si:Dn&&Dn in ct(r)?rm(r):om(r)}function Nu(r,i){return r>i}function yf(r,i){return r!=null&&ht.call(r,i)}function Uh(r,i){return r!=null&&i in ct(r)}function jh(r,i,f){return r>=kt(i,f)&&r<Lt(i,f)}function Af(r,i,f){for(var m=f?$c:Ks,b=r[0].length,E=r.length,T=E,D=J(E),q=1/0,ue=[];T--;){var oe=r[T];T&&i&&(oe=jt(oe,ar(i))),q=kt(oe.length,q),D[T]=!f&&(i||b>=120&&oe.length>=120)?new ba(T&&oe):s}oe=r[0];var he=-1,Ee=D[0];e:for(;++he<b&&ue.length<q;){var De=oe[he],Ye=i?i(De):De;if(De=f||De!==0?De:0,!(Ee?bl(Ee,Ye):m(ue,Ye,f))){for(T=E;--T;){var $e=D[T];if(!($e?bl($e,Ye):m(r[T],Ye,f)))continue e}Ee&&Ee.push(Ye),ue.push(De)}}return ue}function _f(r,i,f,m){return Mn(r,function(b,E,T){i(m,f(b),E,T)}),m}function Hi(r,i,f){i=xa(i,r),r=Ul(r,i);var m=r==null?r:r[pt(Tn(i))];return m==null?s:qn(m,r,f)}function vo(r){return Qt(r)&&it(r)==we}function Xn(r){return Qt(r)&&it(r)==Jt}function $t(r){return Qt(r)&&it(r)==ut}function Gi(r,i,f,m,b){return r===i?!0:r==null||i==null||!Qt(r)&&!Qt(i)?r!==r&&i!==i:Du(r,i,f,m,Gi,b)}function Du(r,i,f,m,b,E){var T=Ie(r),D=Ie(i),q=T?_e:mn(r),ue=D?_e:mn(i);q=q==we?gt:q,ue=ue==we?gt:ue;var oe=q==gt,he=ue==gt,Ee=q==ue;if(Ee&&di(r)){if(!di(i))return!1;T=!0,oe=!1}if(Ee&&!oe)return E||(E=new Bn),T||Pl(r)?tm(r,i,f,m,b,E):nm(r,i,q,f,m,b,E);if(!(f&U)){var De=oe&&ht.call(r,"__wrapped__"),Ye=he&&ht.call(i,"__wrapped__");if(De||Ye){var $e=De?r.value():r,Ve=Ye?i.value():i;return E||(E=new Bn),b($e,Ve,f,m,E)}}return Ee?(E||(E=new Bn),hn(r,i,f,m,b,E)):!1}function go(r){return Qt(r)&&mn(r)==zt}function Bu(r,i,f,m){var b=f.length,E=b,T=!m;if(r==null)return!E;for(r=ct(r);b--;){var D=f[b];if(T&&D[2]?D[1]!==r[D[0]]:!(D[0]in r))return!1}for(;++b<E;){D=f[b];var q=D[0],ue=r[q],oe=D[1];if(T&&D[2]){if(ue===s&&!(q in r))return!1}else{var he=new Bn;if(m)var Ee=m(ue,oe,q,r,i,he);if(!(Ee===s?Gi(oe,ue,U|j,m,he):Ee))return!1}}return!0}function $r(r){if(!qt(r)||Ho(r))return!1;var i=qr(r)?of:Pd;return i.test(wa(r))}function po(r){return Qt(r)&&it(r)==nr}function xf(r){return Qt(r)&&mn(r)==Ot}function Sf(r){return Qt(r)&&Pi(r.length)&&!!wt[it(r)]}function Ef(r){return typeof r=="function"?r:r==null?I:typeof r=="object"?Ie(r)?Ao(r[0],r[1]):wf(r):ft(r)}function bo(r){if(!Nt(r))return _r(r);var i=[];for(var f in ct(r))ht.call(r,f)&&f!="constructor"&&i.push(f);return i}function kh(r){if(!qt(r))return ri(r);var i=Nt(r),f=[];for(var m in r)m=="constructor"&&(i||!ht.call(r,m))||f.push(m);return f}function yo(r,i){return r<i}function Of(r,i){var f=-1,m=an(r)?J(r.length):[];return Aa(r,function(b,E,T){m[++f]=i(b,E,T)}),m}function wf(r){var i=Lo(r);return i.length==1&&i[0][2]?um(i[0][0],i[0][1]):function(f){return f===r||Bu(f,r,i)}}function Ao(r,i){return jo(r)&&lm(i)?um(pt(r),i):function(f){var m=vs(f,r);return m===s&&m===i?$l(f,r):Gi(i,m,U|j)}}function zu(r,i,f,m,b){r!==i&&Rl(i,function(E,T){if(b||(b=new Bn),qt(E))Tg(r,i,T,f,zu,m,b);else{var D=m?m(Go(r,T),E,T+"",r,i,b):s;D===s&&(D=E),Fr(r,T,D)}},vn)}function Tg(r,i,f,m,b,E,T){var D=Go(r,f),q=Go(i,f),ue=T.get(q);if(ue){Fr(r,f,ue);return}var oe=E?E(D,q,f+"",r,i,T):s,he=oe===s;if(he){var Ee=Ie(q),De=!Ee&&di(q),Ye=!Ee&&!De&&Pl(q);oe=q,Ee||De||Ye?Ie(D)?oe=D:Pt(D)?oe=nn(D):De?(he=!1,oe=zf(q,!0)):Ye?(he=!1,oe=Uf(q,!0)):oe=[]:Tr(q)||Ra(q)?(oe=D,Ra(D)?oe=$m(D):(!qt(D)||qr(D))&&(oe=Vf(q))):he=!1}he&&(T.set(q,oe),b(oe,q,m,E,T),T.delete(q)),Fr(r,f,oe)}function Mf(r,i){var f=r.length;if(f)return i+=i<0?f:0,Gr(i,f)?r[i]:s}function Tf(r,i,f){i.length?i=jt(i,function(E){return Ie(E)?function(T){return Er(T,E.length===1?E[0]:E)}:E}):i=[I];var m=-1;i=jt(i,ar(ze()));var b=Of(r,function(E,T,D){var q=jt(i,function(ue){return ue(E)});return{criteria:q,index:++m,value:E}});return hh(b,function(E,T){return Kh(E,T,f)})}function Hh(r,i){return _o(r,i,function(f,m){return $l(r,m)})}function _o(r,i,f){for(var m=-1,b=i.length,E={};++m<b;){var T=i[m],D=Er(r,T);f(D,T)&&Bl(E,xa(T,r),D)}return E}function Gh(r){return function(i){return Er(i,r)}}function xo(r,i,f,m){var b=m?nf:gl,E=-1,T=i.length,D=r;for(r===i&&(i=nn(i)),f&&(D=jt(r,ar(f)));++E<T;)for(var q=0,ue=i[E],oe=f?f(ue):ue;(q=b(D,oe,q,m))>-1;)D!==r&&io.call(D,q,1),io.call(r,q,1);return r}function Cf(r,i){for(var f=r?i.length:0,m=f-1;f--;){var b=i[f];if(f==m||b!==E){var E=b;Gr(b)?io.call(r,b,1):ku(r,b)}}return r}function So(r,i){return r+ga(ff()*(i-r+1))}function qh(r,i,f,m){for(var b=-1,E=Lt(Ol((i-r)/(f||1)),0),T=J(E);E--;)T[m?E:++b]=r,r+=f;return T}function Rf(r,i){var f="";if(!r||i<1||i>z)return f;do i%2&&(f+=r),i=ga(i/2),i&&(r+=r);while(i);return f}function Ze(r,i){return $u(Qf(r,i,I),r+"")}function Dl(r){return Tl(tu(r))}function Eo(r,i){var f=tu(r);return ts(f,kr(i,0,f.length))}function Bl(r,i,f,m){if(!qt(r))return r;i=xa(i,r);for(var b=-1,E=i.length,T=E-1,D=r;D!=null&&++b<E;){var q=pt(i[b]),ue=f;if(q==="__proto__"||q==="constructor"||q==="prototype")return r;if(b!=T){var oe=D[q];ue=m?m(oe,q,D):s,ue===s&&(ue=qt(oe)?oe:Gr(i[b+1])?[]:{})}Ui(D,q,ue),D=D[q]}return r}var Lu=wl?function(r,i){return wl.set(r,i),r}:I,Uu=_u?function(r,i){return _u(r,"toString",{configurable:!0,enumerable:!1,value:V(i),writable:!0})}:I;function Yh(r){return ts(tu(r))}function sr(r,i,f){var m=-1,b=r.length;i<0&&(i=-i>b?0:b+i),f=f>b?b:f,f<0&&(f+=b),b=i>f?0:f-i>>>0,i>>>=0;for(var E=J(b);++m<b;)E[m]=r[m+i];return E}function Vh(r,i){var f;return Aa(r,function(m,b,E){return f=i(m,b,E),!f}),!!f}function ju(r,i,f){var m=0,b=r==null?m:r.length;if(typeof i=="number"&&i===i&&b<=ee){for(;m<b;){var E=m+b>>>1,T=r[E];T!==null&&!Un(T)&&(f?T<=i:T<i)?m=E+1:b=E}return b}return Oo(r,i,I,f)}function Oo(r,i,f,m){var b=0,E=r==null?0:r.length;if(E===0)return 0;i=f(i);for(var T=i!==i,D=i===null,q=Un(i),ue=i===s;b<E;){var oe=ga((b+E)/2),he=f(r[oe]),Ee=he!==s,De=he===null,Ye=he===he,$e=Un(he);if(T)var Ve=m||Ye;else ue?Ve=Ye&&(m||Ee):D?Ve=Ye&&Ee&&(m||!De):q?Ve=Ye&&Ee&&!De&&(m||!$e):De||$e?Ve=!1:Ve=m?he<=i:he<i;Ve?b=oe+1:E=oe}return kt(E,ce)}function Nf(r,i){for(var f=-1,m=r.length,b=0,E=[];++f<m;){var T=r[f],D=i?i(T):T;if(!f||!Fn(D,q)){var q=D;E[b++]=T===0?0:T}}return E}function wo(r){return typeof r=="number"?r:Un(r)?M:+r}function Zn(r){if(typeof r=="string")return r;if(Ie(r))return jt(r,Zn)+"";if(Un(r))return Ja?Ja.call(r):"";var i=r+"";return i=="0"&&1/r==-K?"-0":i}function _a(r,i,f){var m=-1,b=Ks,E=r.length,T=!0,D=[],q=D;if(f)T=!1,b=$c;else if(E>=h){var ue=i?null:$h(r);if(ue)return no(ue);T=!1,b=bl,q=new ba}else q=i?[]:D;e:for(;++m<E;){var oe=r[m],he=i?i(oe):oe;if(oe=f||oe!==0?oe:0,T&&he===he){for(var Ee=q.length;Ee--;)if(q[Ee]===he)continue e;i&&q.push(he),D.push(oe)}else b(q,he,f)||(q!==D&&q.push(he),D.push(oe))}return D}function ku(r,i){return i=xa(i,r),r=Ul(r,i),r==null||delete r[pt(Tn(i))]}function Df(r,i,f,m){return Bl(r,i,f(Er(r,i)),m)}function Hu(r,i,f,m){for(var b=r.length,E=m?b:-1;(m?E--:++E<b)&&i(r[E],E,r););return f?sr(r,m?0:E,m?E+1:b):sr(r,m?E+1:0,m?b:E)}function Ih(r,i){var f=r;return f instanceof We&&(f=f.value()),ef(i,function(m,b){return b.func.apply(b.thisArg,va([m],b.args))},f)}function Gu(r,i,f){var m=r.length;if(m<2)return m?_a(r[0]):[];for(var b=-1,E=J(m);++b<m;)for(var T=r[b],D=-1;++D<m;)D!=b&&(E[b]=Fa(E[b]||T,r[D],i,f));return _a(at(E,1),i,f)}function Bf(r,i,f){for(var m=-1,b=r.length,E=i.length,T={};++m<b;){var D=m<E?i[m]:s;f(T,r[m],D)}return T}function Mo(r){return Pt(r)?r:[]}function qu(r){return typeof r=="function"?r:I}function xa(r,i){return Ie(r)?r:jo(r,i)?[r]:ra(mt(r))}var Qh=Ze;function ei(r,i,f){var m=r.length;return f=f===s?m:f,!i&&f>=m?r:sr(r,i,f)}var Xh=lo||function(r){return Wt.clearTimeout(r)};function zf(r,i){if(i)return r.slice();var f=r.length,m=Ti?Ti(f):new r.constructor(f);return r.copy(m),m}function qi(r){var i=new r.constructor(r.byteLength);return new El(i).set(new El(r)),i}function Lf(r,i){var f=i?qi(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.byteLength)}function To(r){var i=new r.constructor(r.source,ul.exec(r));return i.lastIndex=r.lastIndex,i}function Zh(r){return Bi?ct(Bi.call(r)):{}}function Uf(r,i){var f=i?qi(r.buffer):r.buffer;return new r.constructor(f,r.byteOffset,r.length)}function Yu(r,i){if(r!==i){var f=r!==s,m=r===null,b=r===r,E=Un(r),T=i!==s,D=i===null,q=i===i,ue=Un(i);if(!D&&!ue&&!E&&r>i||E&&T&&q&&!D&&!ue||m&&T&&q||!f&&q||!b)return 1;if(!m&&!E&&!ue&&r<i||ue&&f&&b&&!m&&!E||D&&f&&b||!T&&b||!q)return-1}return 0}function Kh(r,i,f){for(var m=-1,b=r.criteria,E=i.criteria,T=b.length,D=f.length;++m<T;){var q=Yu(b[m],E[m]);if(q){if(m>=D)return q;var ue=f[m];return q*(ue=="desc"?-1:1)}}return r.index-i.index}function jf(r,i,f,m){for(var b=-1,E=r.length,T=f.length,D=-1,q=i.length,ue=Lt(E-T,0),oe=J(q+ue),he=!m;++D<q;)oe[D]=i[D];for(;++b<T;)(he||b<E)&&(oe[f[b]]=r[b]);for(;ue--;)oe[D++]=r[b++];return oe}function Ph(r,i,f,m){for(var b=-1,E=r.length,T=-1,D=f.length,q=-1,ue=i.length,oe=Lt(E-D,0),he=J(oe+ue),Ee=!m;++b<oe;)he[b]=r[b];for(var De=b;++q<ue;)he[De+q]=i[q];for(;++T<D;)(Ee||b<E)&&(he[De+f[T]]=r[b++]);return he}function nn(r,i){var f=-1,m=r.length;for(i||(i=J(m));++f<m;)i[f]=r[f];return i}function Kn(r,i,f,m){var b=!f;f||(f={});for(var E=-1,T=i.length;++E<T;){var D=i[E],q=m?m(f[D],r[D],D,f,r):s;q===s&&(q=r[D]),b?jr(f,D,q):Ui(f,D,q)}return f}function Co(r,i){return Kn(r,Pu(r),i)}function Vu(r,i){return Kn(r,Uo(r),i)}function Yi(r,i){return function(f,m){var b=Ie(f)?fg:Wa,E=i?i():{};return b(f,r,ze(m,2),E)}}function Vi(r){return Ze(function(i,f){var m=-1,b=f.length,E=b>1?f[b-1]:s,T=b>2?f[2]:s;for(E=r.length>3&&typeof E=="function"?(b--,E):s,T&&Ln(f[0],f[1],T)&&(E=b<3?s:E,b=1),i=ct(i);++m<b;){var D=f[m];D&&r(i,D,m,E)}return i})}function kf(r,i){return function(f,m){if(f==null)return f;if(!an(f))return r(f,m);for(var b=f.length,E=i?b:-1,T=ct(f);(i?E--:++E<b)&&m(T[E],E,T)!==!1;);return f}}function Ii(r){return function(i,f,m){for(var b=-1,E=ct(i),T=m(i),D=T.length;D--;){var q=T[r?D:++b];if(f(E[q],q,E)===!1)break}return i}}function Jh(r,i,f){var m=i&Z,b=Or(r);function E(){var T=this&&this!==Wt&&this instanceof E?b:r;return T.apply(m?f:this,arguments)}return E}function or(r){return function(i){i=mt(i);var f=Qa(i)?br(i):s,m=f?f[0]:i.charAt(0),b=f?ei(f,1).join(""):i.slice(1);return m[r]()+b}}function zn(r){return function(i){return ef(c(Na(i).replace(hu,"")),r,"")}}function Or(r){return function(){var i=arguments;switch(i.length){case 0:return new r;case 1:return new r(i[0]);case 2:return new r(i[0],i[1]);case 3:return new r(i[0],i[1],i[2]);case 4:return new r(i[0],i[1],i[2],i[3]);case 5:return new r(i[0],i[1],i[2],i[3],i[4]);case 6:return new r(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new r(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var f=ur(r.prototype),m=r.apply(f,i);return qt(m)?m:f}}function Wh(r,i,f){var m=Or(r);function b(){for(var E=arguments.length,T=J(E),D=E,q=Xi(b);D--;)T[D]=arguments[D];var ue=E<3&&T[0]!==q&&T[E-1]!==q?[]:Xa(T,q);if(E-=ue.length,E<f)return Hf(r,i,Zt,b.placeholder,s,T,ue,s,s,f-E);var oe=this&&this!==Wt&&this instanceof b?m:r;return qn(oe,this,T)}return b}function Sa(r){return function(i,f,m){var b=ct(i);if(!an(i)){var E=ze(f,3);i=un(i),f=function(D){return E(b[D],D,b)}}var T=r(i,f,m);return T>-1?b[E?i[T]:T]:s}}function ea(r){return Ut(function(i){var f=i.length,m=f,b=In.prototype.thru;for(r&&i.reverse();m--;){var E=i[m];if(typeof E!="function")throw new lr(g);if(b&&!T&&Ku(E)=="wrapper")var T=new In([],!0)}for(m=T?m:f;++m<f;){E=i[m];var D=Ku(E),q=D=="wrapper"?zo(E):s;q&&ko(q[0])&&q[1]==(be|me|re|ne)&&!q[4].length&&q[9]==1?T=T[Ku(q[0])].apply(T,q[3]):T=E.length==1&&ko(E)?T[D]():T.thru(E)}return function(){var ue=arguments,oe=ue[0];if(T&&ue.length==1&&Ie(oe))return T.plant(oe).value();for(var he=0,Ee=f?i[he].apply(this,ue):oe;++he<f;)Ee=i[he].call(this,Ee);return Ee}})}function Zt(r,i,f,m,b,E,T,D,q,ue){var oe=i&be,he=i&Z,Ee=i&$,De=i&(me|ye),Ye=i&Oe,$e=Ee?s:Or(r);function Ve(){for(var lt=arguments.length,dt=J(lt),Vr=lt;Vr--;)dt[Vr]=arguments[Vr];if(De)var mr=Xi(Ve),Ir=bg(dt,mr);if(m&&(dt=jf(dt,m,b,De)),E&&(dt=Ph(dt,E,T,De)),lt-=Ir,De&&lt<ue){var sn=Xa(dt,mr);return Hf(r,i,Zt,Ve.placeholder,f,dt,sn,D,q,ue-lt)}var Da=he?f:this,Ji=Ee?Da[r]:r;return lt=dt.length,D?dt=na(dt,D):Ye&&lt>1&&dt.reverse(),oe&&q<lt&&(dt.length=q),this&&this!==Wt&&this instanceof Ve&&(Ji=$e||Or(Ji)),Ji.apply(Da,dt)}return Ve}function Iu(r,i){return function(f,m){return _f(f,r,i(m),{})}}function zl(r,i){return function(f,m){var b;if(f===s&&m===s)return i;if(f!==s&&(b=f),m!==s){if(b===s)return m;typeof f=="string"||typeof m=="string"?(f=Zn(f),m=Zn(m)):(f=wo(f),m=wo(m)),b=r(f,m)}return b}}function Qu(r){return Ut(function(i){return i=jt(i,ar(ze())),Ze(function(f){var m=this;return r(i,function(b){return qn(b,m,f)})})})}function Xu(r,i){i=i===s?" ":Zn(i);var f=i.length;if(f<2)return f?Rf(i,r):i;var m=Rf(i,Ol(r/Wr(i)));return Qa(i)?ei(br(m),0,r).join(""):m.slice(0,r)}function Fh(r,i,f,m){var b=i&Z,E=Or(r);function T(){for(var D=-1,q=arguments.length,ue=-1,oe=m.length,he=J(oe+q),Ee=this&&this!==Wt&&this instanceof T?E:r;++ue<oe;)he[ue]=m[ue];for(;q--;)he[ue++]=arguments[++D];return qn(Ee,b?f:this,he)}return T}function ti(r){return function(i,f,m){return m&&typeof m!="number"&&Ln(i,f,m)&&(f=m=s),i=la(i),f===s?(f=i,i=0):f=la(f),m=m===s?i<f?1:-1:la(m),qh(i,f,m,r)}}function Qi(r){return function(i,f){return typeof i=="string"&&typeof f=="string"||(i=Cr(i),f=Cr(f)),r(i,f)}}function Hf(r,i,f,m,b,E,T,D,q,ue){var oe=i&me,he=oe?T:s,Ee=oe?s:T,De=oe?E:s,Ye=oe?s:E;i|=oe?re:de,i&=~(oe?de:re),i&fe||(i&=-4);var $e=[r,i,b,De,he,Ye,Ee,D,q,ue],Ve=f.apply(s,$e);return ko(r)&&qo(Ve,$e),Ve.placeholder=m,Yo(Ve,r,i)}function Ro(r){var i=Ft[r];return function(f,m){if(f=Cr(f),m=m==null?0:kt(Xe(m),292),m&&xu(f)){var b=(mt(f)+"e").split("e"),E=i(b[0]+"e"+(+b[1]+m));return b=(mt(E)+"e").split("e"),+(b[0]+"e"+(+b[1]-m))}return i(f)}}var $h=rt&&1/no(new rt([,-0]))[1]==K?function(r){return new rt(r)}:Me;function Zu(r){return function(i){var f=mn(i);return f==zt?to(i):f==Ot?yg(i):pg(i,r(i))}}function ta(r,i,f,m,b,E,T,D){var q=i&$;if(!q&&typeof r!="function")throw new lr(g);var ue=m?m.length:0;if(ue||(i&=-97,m=b=s),T=T===s?T:Lt(Xe(T),0),D=D===s?D:Xe(D),ue-=b?b.length:0,i&de){var oe=m,he=b;m=b=s}var Ee=q?s:zo(r),De=[r,i,f,m,b,oe,he,E,T,D];if(Ee&&Fu(De,Ee),r=De[0],i=De[1],f=De[2],m=De[3],b=De[4],D=De[9]=De[9]===s?q?0:r.length:Lt(De[9]-ue,0),!D&&i&(me|ye)&&(i&=-25),!i||i==Z)var Ye=Jh(r,i,f);else i==me||i==ye?Ye=Wh(r,i,D):(i==re||i==(Z|re))&&!b.length?Ye=Fh(r,i,f,m):Ye=Zt.apply(s,De);var $e=Ee?Lu:qo;return Yo($e(Ye,De),r,i)}function No(r,i,f,m){return r===s||Fn(r,xl[f])&&!ht.call(m,f)?i:r}function Gf(r,i,f,m,b,E){return qt(r)&&qt(i)&&(E.set(i,r),zu(r,i,s,Gf,E),E.delete(i)),r}function em(r){return Tr(r)?s:r}function tm(r,i,f,m,b,E){var T=f&U,D=r.length,q=i.length;if(D!=q&&!(T&&q>D))return!1;var ue=E.get(r),oe=E.get(i);if(ue&&oe)return ue==i&&oe==r;var he=-1,Ee=!0,De=f&j?new ba:s;for(E.set(r,i),E.set(i,r);++he<D;){var Ye=r[he],$e=i[he];if(m)var Ve=T?m($e,Ye,he,i,r,E):m(Ye,$e,he,r,i,E);if(Ve!==s){if(Ve)continue;Ee=!1;break}if(De){if(!tf(i,function(lt,dt){if(!bl(De,dt)&&(Ye===lt||b(Ye,lt,f,m,E)))return De.push(dt)})){Ee=!1;break}}else if(!(Ye===$e||b(Ye,$e,f,m,E))){Ee=!1;break}}return E.delete(r),E.delete(i),Ee}function nm(r,i,f,m,b,E,T){switch(f){case cn:if(r.byteLength!=i.byteLength||r.byteOffset!=i.byteOffset)return!1;r=r.buffer,i=i.buffer;case Jt:return!(r.byteLength!=i.byteLength||!E(new El(r),new El(i)));case Ue:case ut:case yn:return Fn(+r,+i);case St:return r.name==i.name&&r.message==i.message;case nr:case En:return r==i+"";case zt:var D=to;case Ot:var q=m&U;if(D||(D=no),r.size!=i.size&&!q)return!1;var ue=T.get(r);if(ue)return ue==i;m|=j,T.set(r,i);var oe=tm(D(r),D(i),m,b,E,T);return T.delete(r),oe;case Nr:if(Bi)return Bi.call(r)==Bi.call(i)}return!1}function hn(r,i,f,m,b,E){var T=f&U,D=Do(r),q=D.length,ue=Do(i),oe=ue.length;if(q!=oe&&!T)return!1;for(var he=q;he--;){var Ee=D[he];if(!(T?Ee in i:ht.call(i,Ee)))return!1}var De=E.get(r),Ye=E.get(i);if(De&&Ye)return De==i&&Ye==r;var $e=!0;E.set(r,i),E.set(i,r);for(var Ve=T;++he<q;){Ee=D[he];var lt=r[Ee],dt=i[Ee];if(m)var Vr=T?m(dt,lt,Ee,i,r,E):m(lt,dt,Ee,r,i,E);if(!(Vr===s?lt===dt||b(lt,dt,f,m,E):Vr)){$e=!1;break}Ve||(Ve=Ee=="constructor")}if($e&&!Ve){var mr=r.constructor,Ir=i.constructor;mr!=Ir&&"constructor"in r&&"constructor"in i&&!(typeof mr=="function"&&mr instanceof mr&&typeof Ir=="function"&&Ir instanceof Ir)&&($e=!1)}return E.delete(r),E.delete(i),$e}function Ut(r){return $u(Qf(r,s,Jn),r+"")}function Do(r){return Lh(r,un,Pu)}function Bo(r){return Lh(r,vn,Uo)}var zo=wl?function(r){return wl.get(r)}:Me;function Ku(r){for(var i=r.name+"",f=xr[i],m=ht.call(xr,i)?f.length:0;m--;){var b=f[m],E=b.func;if(E==null||E==r)return b.name}return i}function Xi(r){var i=ht.call(_,"placeholder")?_:r;return i.placeholder}function ze(){var r=_.iteratee||je;return r=r===je?Ef:r,arguments.length?r(arguments[0],arguments[1]):r}function Ll(r,i){var f=r.__data__;return Oa(i)?f[typeof i=="string"?"string":"hash"]:f.map}function Lo(r){for(var i=un(r),f=i.length;f--;){var m=i[f],b=r[m];i[f]=[m,b,lm(b)]}return i}function ni(r,i){var f=af(r,i);return $r(f)?f:s}function rm(r){var i=ht.call(r,Dn),f=r[Dn];try{r[Dn]=s;var m=!0}catch{}var b=Nn.call(r);return m&&(i?r[Dn]=f:delete r[Dn]),b}var Pu=Ka?function(r){return r==null?[]:(r=ct(r),Jr(Ka(r),function(i){return Ci.call(r,i)}))}:fp,Uo=Ka?function(r){for(var i=[];r;)va(i,Pu(r)),r=yu(r);return i}:fp,mn=it;(Su&&mn(new Su(new ArrayBuffer(1)))!=cn||tn&&mn(new tn)!=zt||Ht&&mn(Ht.resolve())!=en||rt&&mn(new rt)!=Ot||Ur&&mn(new Ur)!=Ct)&&(mn=function(r){var i=it(r),f=i==gt?r.constructor:s,m=f?wa(f):"";if(m)switch(m){case Sh:return cn;case Eh:return zt;case Eu:return en;case Ou:return Ot;case Oh:return Ct}return i});function am(r,i,f){for(var m=-1,b=f.length;++m<b;){var E=f[m],T=E.size;switch(E.type){case"drop":r+=T;break;case"dropRight":i-=T;break;case"take":i=kt(i,r+T);break;case"takeRight":r=Lt(r,i-T);break}}return{start:r,end:i}}function qf(r){var i=r.match(ug);return i?i[1].split(Kd):[]}function Ju(r,i,f){i=xa(i,r);for(var m=-1,b=i.length,E=!1;++m<b;){var T=pt(i[m]);if(!(E=r!=null&&f(r,T)))break;r=r[T]}return E||++m!=b?E:(b=r==null?0:r.length,!!b&&Pi(b)&&Gr(T,b)&&(Ie(r)||Ra(r)))}function Yf(r){var i=r.length,f=new r.constructor(i);return i&&typeof r[0]=="string"&&ht.call(r,"index")&&(f.index=r.index,f.input=r.input),f}function Vf(r){return typeof r.constructor=="function"&&!Nt(r)?ur(yu(r)):{}}function If(r,i,f){var m=r.constructor;switch(i){case Jt:return qi(r);case Ue:case ut:return new m(+r);case cn:return Lf(r,f);case An:case lu:case uu:case su:case Kr:case It:case Br:case ka:case ha:return Uf(r,f);case zt:return new m;case yn:case En:return new m(r);case nr:return To(r);case Ot:return new m;case Nr:return Zh(r)}}function im(r,i){var f=i.length;if(!f)return r;var m=f-1;return i[m]=(f>1?"& ":"")+i[m],i=i.join(f>2?", ":" "),r.replace(lg,`{
/* [wrapped with `+i+`] */
`)}function Ea(r){return Ie(r)||Ra(r)||!!(Yn&&r&&r[Yn])}function Gr(r,i){var f=typeof r;return i=i??z,!!i&&(f=="number"||f!="symbol"&&Ei.test(r))&&r>-1&&r%1==0&&r<i}function Ln(r,i,f){if(!qt(f))return!1;var m=typeof i;return(m=="number"?an(f)&&Gr(i,f.length):m=="string"&&i in f)?Fn(f[i],r):!1}function jo(r,i){if(Ie(r))return!1;var f=typeof r;return f=="number"||f=="symbol"||f=="boolean"||r==null||Un(r)?!0:ig.test(r)||!Zd.test(r)||i!=null&&r in ct(i)}function Oa(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}function ko(r){var i=Ku(r),f=_[i];if(typeof f!="function"||!(i in We.prototype))return!1;if(r===f)return!0;var m=zo(f);return!!m&&r===m[0]}function Ho(r){return!!sf&&sf in r}var Wu=pu?qr:dp;function Nt(r){var i=r&&r.constructor,f=typeof i=="function"&&i.prototype||xl;return r===f}function lm(r){return r===r&&!qt(r)}function um(r,i){return function(f){return f==null?!1:f[r]===i&&(i!==s||r in ct(f))}}function sm(r){var i=os(r,function(m){return f.size===S&&f.clear(),m}),f=i.cache;return i}function Fu(r,i){var f=r[1],m=i[1],b=f|m,E=b<(Z|$|be),T=m==be&&f==me||m==be&&f==ne&&r[7].length<=i[8]||m==(be|ne)&&i[7].length<=i[8]&&f==me;if(!(E||T))return r;m&Z&&(r[2]=i[2],b|=f&Z?0:fe);var D=i[3];if(D){var q=r[3];r[3]=q?jf(q,D,i[4]):D,r[4]=q?Xa(r[3],O):i[4]}return D=i[5],D&&(q=r[5],r[5]=q?Ph(q,D,i[6]):D,r[6]=q?Xa(r[5],O):i[6]),D=i[7],D&&(r[7]=D),m&be&&(r[8]=r[8]==null?i[8]:kt(r[8],i[8])),r[9]==null&&(r[9]=i[9]),r[0]=i[0],r[1]=b,r}function ri(r){var i=[];if(r!=null)for(var f in ct(r))i.push(f);return i}function om(r){return Nn.call(r)}function Qf(r,i,f){return i=Lt(i===s?r.length-1:i,0),function(){for(var m=arguments,b=-1,E=Lt(m.length-i,0),T=J(E);++b<E;)T[b]=m[i+b];b=-1;for(var D=J(i+1);++b<i;)D[b]=m[b];return D[i]=f(T),qn(r,this,D)}}function Ul(r,i){return i.length<2?r:Er(r,sr(i,0,-1))}function na(r,i){for(var f=r.length,m=kt(i.length,f),b=nn(r);m--;){var E=i[m];r[m]=Gr(E,f)?b[E]:s}return r}function Go(r,i){if(!(i==="constructor"&&typeof r[i]=="function")&&i!="__proto__")return r[i]}var qo=es(Lu),jl=cf||function(r,i){return Wt.setTimeout(r,i)},$u=es(Uu);function Yo(r,i,f){var m=i+"";return $u(r,im(m,cm(qf(m),f)))}function es(r){var i=0,f=0;return function(){var m=pa(),b=Ge-(m-f);if(f=m,b>0){if(++i>=Ne)return arguments[0]}else i=0;return r.apply(s,arguments)}}function ts(r,i){var f=-1,m=r.length,b=m-1;for(i=i===s?m:i;++f<i;){var E=So(f,b),T=r[E];r[E]=r[f],r[f]=T}return r.length=i,r}var ra=sm(function(r){var i=[];return r.charCodeAt(0)===46&&i.push(""),r.replace(Ha,function(f,m,b,E){i.push(b?E.replace(il,"$1"):m||f)}),i});function pt(r){if(typeof r=="string"||Un(r))return r;var i=r+"";return i=="0"&&1/r==-K?"-0":i}function wa(r){if(r!=null){try{return bu.call(r)}catch{}try{return r+""}catch{}}return""}function cm(r,i){return pr(ge,function(f){var m="_."+f[0];i&f[1]&&!Ks(r,m)&&r.push(m)}),r.sort()}function rn(r){if(r instanceof We)return r.clone();var i=new In(r.__wrapped__,r.__chain__);return i.__actions__=nn(r.__actions__),i.__index__=r.__index__,i.__values__=r.__values__,i}function Cg(r,i,f){(f?Ln(r,i,f):i===s)?i=1:i=Lt(Xe(i),0);var m=r==null?0:r.length;if(!m||i<1)return[];for(var b=0,E=0,T=J(Ol(m/i));b<m;)T[E++]=sr(r,b,b+=i);return T}function fm(r){for(var i=-1,f=r==null?0:r.length,m=0,b=[];++i<f;){var E=r[i];E&&(b[m++]=E)}return b}function dm(){var r=arguments.length;if(!r)return[];for(var i=J(r-1),f=arguments[0],m=r;m--;)i[m-1]=arguments[m];return va(Ie(f)?nn(f):[f],at(i,1))}var Gt=Ze(function(r,i){return Pt(r)?Fa(r,at(i,1,Pt,!0)):[]}),Pn=Ze(function(r,i){var f=Tn(i);return Pt(f)&&(f=s),Pt(r)?Fa(r,at(i,1,Pt,!0),ze(f,2)):[]}),Ma=Ze(function(r,i){var f=Tn(i);return Pt(f)&&(f=s),Pt(r)?Fa(r,at(i,1,Pt,!0),s,f):[]});function hm(r,i,f){var m=r==null?0:r.length;return m?(i=f||i===s?1:Xe(i),sr(r,i<0?0:i,m)):[]}function mm(r,i,f){var m=r==null?0:r.length;return m?(i=f||i===s?1:Xe(i),i=m-i,sr(r,0,i<0?0:i)):[]}function Rg(r,i){return r&&r.length?Hu(r,ze(i,3),!0,!0):[]}function Xf(r,i){return r&&r.length?Hu(r,ze(i,3),!0):[]}function cr(r,i,f,m){var b=r==null?0:r.length;return b?(f&&typeof f!="number"&&Ln(r,i,f)&&(f=0,m=b),Ke(r,i,f,m)):[]}function wr(r,i,f){var m=r==null?0:r.length;if(!m)return-1;var b=f==null?0:Xe(f);return b<0&&(b=Lt(m+b,0)),Ps(r,ze(i,3),b)}function Zf(r,i,f){var m=r==null?0:r.length;if(!m)return-1;var b=m-1;return f!==s&&(b=Xe(f),b=f<0?Lt(m+b,0):kt(b,m-1)),Ps(r,ze(i,3),b,!0)}function Jn(r){var i=r==null?0:r.length;return i?at(r,1):[]}function vm(r){var i=r==null?0:r.length;return i?at(r,K):[]}function ai(r,i){var f=r==null?0:r.length;return f?(i=i===s?1:Xe(i),at(r,i)):[]}function Zi(r){for(var i=-1,f=r==null?0:r.length,m={};++i<f;){var b=r[i];m[b[0]]=b[1]}return m}function Ta(r){return r&&r.length?r[0]:s}function Kf(r,i,f){var m=r==null?0:r.length;if(!m)return-1;var b=f==null?0:Xe(f);return b<0&&(b=Lt(m+b,0)),gl(r,i,b)}function Pf(r){var i=r==null?0:r.length;return i?sr(r,0,-1):[]}var aa=Ze(function(r){var i=jt(r,Mo);return i.length&&i[0]===r[0]?Af(i):[]}),gm=Ze(function(r){var i=Tn(r),f=jt(r,Mo);return i===Tn(f)?i=s:f.pop(),f.length&&f[0]===r[0]?Af(f,ze(i,2)):[]}),kl=Ze(function(r){var i=Tn(r),f=jt(r,Mo);return i=typeof i=="function"?i:s,i&&f.pop(),f.length&&f[0]===r[0]?Af(f,s,i):[]});function ns(r,i){return r==null?"":Ar.call(r,i)}function Tn(r){var i=r==null?0:r.length;return i?r[i-1]:s}function Hl(r,i,f){var m=r==null?0:r.length;if(!m)return-1;var b=m;return f!==s&&(b=Xe(f),b=b<0?Lt(m+b,0):kt(b,m-1)),i===i?ir(r,i,b):Ps(r,pl,b,!0)}function pm(r,i){return r&&r.length?Mf(r,Xe(i)):s}var bm=Ze(Gl);function Gl(r,i){return r&&r.length&&i&&i.length?xo(r,i):r}function ym(r,i,f){return r&&r.length&&i&&i.length?xo(r,i,ze(f,2)):r}function Vo(r,i,f){return r&&r.length&&i&&i.length?xo(r,i,s,f):r}var Am=Ut(function(r,i){var f=r==null?0:r.length,m=Ru(r,i);return Cf(r,jt(i,function(b){return Gr(b,f)?+b:b}).sort(Yu)),m});function Ng(r,i){var f=[];if(!(r&&r.length))return f;var m=-1,b=[],E=r.length;for(i=ze(i,3);++m<E;){var T=r[m];i(T,m,r)&&(f.push(T),b.push(m))}return Cf(r,b),f}function Jf(r){return r==null?r:df.call(r)}function _t(r,i,f){var m=r==null?0:r.length;return m?(f&&typeof f!="number"&&Ln(r,i,f)?(i=0,f=m):(i=i==null?0:Xe(i),f=f===s?m:Xe(f)),sr(r,i,f)):[]}function Bt(r,i){return ju(r,i)}function et(r,i,f){return Oo(r,i,ze(f,2))}function st(r,i){var f=r==null?0:r.length;if(f){var m=ju(r,i);if(m<f&&Fn(r[m],i))return m}return-1}function xt(r,i){return ju(r,i,!0)}function fr(r,i,f){return Oo(r,i,ze(f,2),!0)}function ii(r,i){var f=r==null?0:r.length;if(f){var m=ju(r,i,!0)-1;if(Fn(r[m],i))return m}return-1}function ql(r){return r&&r.length?Nf(r):[]}function Wf(r,i){return r&&r.length?Nf(r,ze(i,2)):[]}function Ca(r){var i=r==null?0:r.length;return i?sr(r,1,i):[]}function Kt(r,i,f){return r&&r.length?(i=f||i===s?1:Xe(i),sr(r,0,i<0?0:i)):[]}function li(r,i,f){var m=r==null?0:r.length;return m?(i=f||i===s?1:Xe(i),i=m-i,sr(r,i<0?0:i,m)):[]}function Ki(r,i){return r&&r.length?Hu(r,ze(i,3),!1,!0):[]}function Ff(r,i){return r&&r.length?Hu(r,ze(i,3)):[]}var Mr=Ze(function(r){return _a(at(r,1,Pt,!0))}),Yl=Ze(function(r){var i=Tn(r);return Pt(i)&&(i=s),_a(at(r,1,Pt,!0),ze(i,2))}),rs=Ze(function(r){var i=Tn(r);return i=typeof i=="function"?i:s,_a(at(r,1,Pt,!0),s,i)});function Wn(r){return r&&r.length?_a(r):[]}function $f(r,i){return r&&r.length?_a(r,ze(i,2)):[]}function ed(r,i){return i=typeof i=="function"?i:s,r&&r.length?_a(r,s,i):[]}function Vl(r){if(!(r&&r.length))return[];var i=0;return r=Jr(r,function(f){if(Pt(f))return i=Lt(f.length,i),!0}),Ia(i,function(f){return jt(r,Js(f))})}function as(r,i){if(!(r&&r.length))return[];var f=Vl(r);return i==null?f:jt(f,function(m){return qn(i,s,m)})}var ui=Ze(function(r,i){return Pt(r)?Fa(r,i):[]}),_n=Ze(function(r){return Gu(Jr(r,Pt))}),si=Ze(function(r){var i=Tn(r);return Pt(i)&&(i=s),Gu(Jr(r,Pt),ze(i,2))}),Il=Ze(function(r){var i=Tn(r);return i=typeof i=="function"?i:s,Gu(Jr(r,Pt),s,i)}),Ql=Ze(Vl);function td(r,i){return Bf(r||[],i||[],Ui)}function nd(r,i){return Bf(r||[],i||[],Bl)}var _m=Ze(function(r){var i=r.length,f=i>1?r[i-1]:s;return f=typeof f=="function"?(r.pop(),f):s,as(r,f)});function Xl(r){var i=_(r);return i.__chain__=!0,i}function rd(r,i){return i(r),r}function Cn(r,i){return i(r)}var xm=Ut(function(r){var i=r.length,f=i?r[0]:0,m=this.__wrapped__,b=function(E){return Ru(E,r)};return i>1||this.__actions__.length||!(m instanceof We)||!Gr(f)?this.thru(b):(m=m.slice(f,+f+(i?1:0)),m.__actions__.push({func:Cn,args:[b],thisArg:s}),new In(m,this.__chain__).thru(function(E){return i&&!E.length&&E.push(s),E}))});function dr(){return Xl(this)}function Sm(){return new In(this.value(),this.__chain__)}function Em(){this.__values__===s&&(this.__values__=hr(this.value()));var r=this.__index__>=this.__values__.length,i=r?s:this.__values__[this.__index__++];return{done:r,value:i}}function Dg(){return this}function oi(r){for(var i,f=this;f instanceof Sr;){var m=rn(f);m.__index__=0,m.__values__=s,i?b.__wrapped__=m:i=m;var b=m;f=f.__wrapped__}return b.__wrapped__=r,i}function Io(){var r=this.__wrapped__;if(r instanceof We){var i=r;return this.__actions__.length&&(i=new We(this)),i=i.reverse(),i.__actions__.push({func:Cn,args:[Jf],thisArg:s}),new In(i,this.__chain__)}return this.thru(Jf)}function ad(){return Ih(this.__wrapped__,this.__actions__)}var Zl=Yi(function(r,i,f){ht.call(r,f)?++r[f]:jr(r,f,1)});function Om(r,i,f){var m=Ie(r)?ch:bf;return f&&Ln(r,i,f)&&(i=s),m(r,ze(i,3))}function wm(r,i){var f=Ie(r)?Jr:At;return f(r,ze(i,3))}var Mm=Sa(wr),id=Sa(Zf);function ld(r,i){return at(is(r,i),1)}function Bg(r,i){return at(is(r,i),K)}function zg(r,i,f){return f=f===s?1:Xe(f),at(is(r,i),f)}function Tm(r,i){var f=Ie(r)?pr:Aa;return f(r,ze(i,3))}function ud(r,i){var f=Ie(r)?dg:mo;return f(r,ze(i,3))}var Cm=Yi(function(r,i,f){ht.call(r,f)?r[f].push(i):jr(r,f,[i])});function Kl(r,i,f,m){r=an(r)?r:tu(r),f=f&&!m?Xe(f):0;var b=r.length;return f<0&&(f=Lt(b+f,0)),nc(r)?f<=b&&r.indexOf(i,f)>-1:!!b&&gl(r,i,f)>-1}var Qo=Ze(function(r,i,f){var m=-1,b=typeof i=="function",E=an(r)?J(r.length):[];return Aa(r,function(T){E[++m]=b?qn(i,T,f):Hi(T,i,f)}),E}),Rm=Yi(function(r,i,f){jr(r,f,i)});function is(r,i){var f=Ie(r)?jt:Of;return f(r,ze(i,3))}function Nm(r,i,f,m){return r==null?[]:(Ie(i)||(i=i==null?[]:[i]),f=m?s:f,Ie(f)||(f=f==null?[]:[f]),Tf(r,i,f))}var Dm=Yi(function(r,i,f){r[f?0:1].push(i)},function(){return[[],[]]});function Bm(r,i,f){var m=Ie(r)?ef:rf,b=arguments.length<3;return m(r,ze(i,4),f,b,Aa)}function zm(r,i,f){var m=Ie(r)?hg:rf,b=arguments.length<3;return m(r,ze(i,4),f,b,mo)}function Xo(r,i){var f=Ie(r)?Jr:At;return f(r,cs(ze(i,3)))}function Lm(r){var i=Ie(r)?Tl:Dl;return i(r)}function Um(r,i,f){(f?Ln(r,i,f):i===s)?i=1:i=Xe(i);var m=Ie(r)?Dh:Eo;return m(r,i)}function Dt(r){var i=Ie(r)?Bh:Yh;return i(r)}function sd(r){if(r==null)return 0;if(an(r))return nc(r)?Wr(r):r.length;var i=mn(r);return i==zt||i==Ot?r.size:bo(r).length}function Lg(r,i,f){var m=Ie(r)?tf:Vh;return f&&Ln(r,i,f)&&(i=s),m(r,ze(i,3))}var jm=Ze(function(r,i){if(r==null)return[];var f=i.length;return f>1&&Ln(r,i[0],i[1])?i=[]:f>2&&Ln(i[0],i[1],i[2])&&(i=[i[0]]),Tf(r,at(i,1),[])}),Zo=Ni||function(){return Wt.Date.now()};function Ug(r,i){if(typeof i!="function")throw new lr(g);return r=Xe(r),function(){if(--r<1)return i.apply(this,arguments)}}function km(r,i,f){return i=f?s:i,i=r&&i==null?r.length:i,ta(r,be,s,s,s,s,i)}function ls(r,i){var f;if(typeof i!="function")throw new lr(g);return r=Xe(r),function(){return--r>0&&(f=i.apply(this,arguments)),r<=1&&(i=s),f}}var ci=Ze(function(r,i,f){var m=Z;if(f.length){var b=Xa(f,Xi(ci));m|=re}return ta(r,m,i,f,b)}),Ko=Ze(function(r,i,f){var m=Z|$;if(f.length){var b=Xa(f,Xi(Ko));m|=re}return ta(i,m,r,f,b)});function us(r,i,f){i=f?s:i;var m=ta(r,me,s,s,s,s,s,i);return m.placeholder=us.placeholder,m}function Po(r,i,f){i=f?s:i;var m=ta(r,ye,s,s,s,s,s,i);return m.placeholder=Po.placeholder,m}function fi(r,i,f){var m,b,E,T,D,q,ue=0,oe=!1,he=!1,Ee=!0;if(typeof r!="function")throw new lr(g);i=Cr(i)||0,qt(f)&&(oe=!!f.leading,he="maxWait"in f,E=he?Lt(Cr(f.maxWait)||0,i):E,Ee="trailing"in f?!!f.trailing:Ee);function De(sn){var Da=m,Ji=b;return m=b=s,ue=sn,T=r.apply(Ji,Da),T}function Ye(sn){return ue=sn,D=jl(lt,i),oe?De(sn):T}function $e(sn){var Da=sn-q,Ji=sn-ue,R0=i-Da;return he?kt(R0,E-Ji):R0}function Ve(sn){var Da=sn-q,Ji=sn-ue;return q===s||Da>=i||Da<0||he&&Ji>=E}function lt(){var sn=Zo();if(Ve(sn))return dt(sn);D=jl(lt,$e(sn))}function dt(sn){return D=s,Ee&&m?De(sn):(m=b=s,T)}function Vr(){D!==s&&Xh(D),ue=0,m=q=b=D=s}function mr(){return D===s?T:dt(Zo())}function Ir(){var sn=Zo(),Da=Ve(sn);if(m=arguments,b=this,q=sn,Da){if(D===s)return Ye(q);if(he)return Xh(D),D=jl(lt,i),De(q)}return D===s&&(D=jl(lt,i)),T}return Ir.cancel=Vr,Ir.flush=mr,Ir}var ia=Ze(function(r,i){return ji(r,1,i)}),ss=Ze(function(r,i,f){return ji(r,Cr(i)||0,f)});function jg(r){return ta(r,Oe)}function os(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new lr(g);var f=function(){var m=arguments,b=i?i.apply(this,m):m[0],E=f.cache;if(E.has(b))return E.get(b);var T=r.apply(this,m);return f.cache=E.set(b,T)||E,T};return f.cache=new(os.Cache||Qn),f}os.Cache=Qn;function cs(r){if(typeof r!="function")throw new lr(g);return function(){var i=arguments;switch(i.length){case 0:return!r.call(this);case 1:return!r.call(this,i[0]);case 2:return!r.call(this,i[0],i[1]);case 3:return!r.call(this,i[0],i[1],i[2])}return!r.apply(this,i)}}function Hm(r){return ls(2,r)}var Gm=Qh(function(r,i){i=i.length==1&&Ie(i[0])?jt(i[0],ar(ze())):jt(at(i,1),ar(ze()));var f=i.length;return Ze(function(m){for(var b=-1,E=kt(m.length,f);++b<E;)m[b]=i[b].call(this,m[b]);return qn(r,this,m)})}),od=Ze(function(r,i){var f=Xa(i,Xi(od));return ta(r,re,s,i,f)}),Jo=Ze(function(r,i){var f=Xa(i,Xi(Jo));return ta(r,de,s,i,f)}),qm=Ut(function(r,i){return ta(r,ne,s,s,s,i)});function Ym(r,i){if(typeof r!="function")throw new lr(g);return i=i===s?i:Xe(i),Ze(r,i)}function kg(r,i){if(typeof r!="function")throw new lr(g);return i=i==null?0:Lt(Xe(i),0),Ze(function(f){var m=f[i],b=ei(f,0,i);return m&&va(b,m),qn(r,this,b)})}function cd(r,i,f){var m=!0,b=!0;if(typeof r!="function")throw new lr(g);return qt(f)&&(m="leading"in f?!!f.leading:m,b="trailing"in f?!!f.trailing:b),fi(r,i,{leading:m,maxWait:i,trailing:b})}function fd(r){return km(r,1)}function Hg(r,i){return od(qu(i),r)}function Gg(){if(!arguments.length)return[];var r=arguments[0];return Ie(r)?r:[r]}function fs(r){return wn(r,X)}function qg(r,i){return i=typeof i=="function"?i:s,wn(r,X,i)}function Vm(r){return wn(r,R|X)}function tt(r,i){return i=typeof i=="function"?i:s,wn(r,R|X,i)}function dd(r,i){return i==null||pf(r,i,un(i))}function Fn(r,i){return r===i||r!==r&&i!==i}var hd=Qi(Nu),Im=Qi(function(r,i){return r>=i}),Ra=vo((function(){return arguments})())?vo:function(r){return Qt(r)&&ht.call(r,"callee")&&!Ci.call(r,"callee")},Ie=J.isArray,Wo=Zs?ar(Zs):Xn;function an(r){return r!=null&&Pi(r.length)&&!qr(r)}function Pt(r){return Qt(r)&&an(r)}function Yg(r){return r===!0||r===!1||Qt(r)&&it(r)==Ue}var di=uo||dp,Qm=ih?ar(ih):$t;function Xm(r){return Qt(r)&&r.nodeType===1&&!Tr(r)}function Fo(r){if(r==null)return!0;if(an(r)&&(Ie(r)||typeof r=="string"||typeof r.splice=="function"||di(r)||Pl(r)||Ra(r)))return!r.length;var i=mn(r);if(i==zt||i==Ot)return!r.size;if(Nt(r))return!bo(r).length;for(var f in r)if(ht.call(r,f))return!1;return!0}function Mt(r,i){return Gi(r,i)}function md(r,i,f){f=typeof f=="function"?f:s;var m=f?f(r,i):s;return m===s?Gi(r,i,s,f):!!m}function ln(r){if(!Qt(r))return!1;var i=it(r);return i==St||i==Je||typeof r.message=="string"&&typeof r.name=="string"&&!Tr(r)}function Vg(r){return typeof r=="number"&&xu(r)}function qr(r){if(!qt(r))return!1;var i=it(r);return i==Et||i==on||i==qe||i==Vt}function $o(r){return typeof r=="number"&&r==Xe(r)}function Pi(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=z}function qt(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}function Qt(r){return r!=null&&typeof r=="object"}var ec=lh?ar(lh):go;function vd(r,i){return r===i||Bu(r,i,Lo(i))}function Ig(r,i,f){return f=typeof f=="function"?f:s,Bu(r,i,Lo(i),f)}function Zm(r){return Pm(r)&&r!=+r}function Qg(r){if(Wu(r))throw new He(v);return $r(r)}function Km(r){return r===null}function Xg(r){return r==null}function Pm(r){return typeof r=="number"||Qt(r)&&it(r)==yn}function Tr(r){if(!Qt(r)||it(r)!=gt)return!1;var i=yu(r);if(i===null)return!0;var f=ht.call(i,"constructor")&&i.constructor;return typeof f=="function"&&f instanceof f&&bu.call(f)==yr}var tc=uh?ar(uh):po;function gd(r){return $o(r)&&r>=-z&&r<=z}var Jm=sh?ar(sh):xf;function nc(r){return typeof r=="string"||!Ie(r)&&Qt(r)&&it(r)==En}function Un(r){return typeof r=="symbol"||Qt(r)&&it(r)==Nr}var Pl=oh?ar(oh):Sf;function Yr(r){return r===s}function pd(r){return Qt(r)&&mn(r)==Ct}function Wm(r){return Qt(r)&&it(r)==da}var Fm=Qi(yo),ds=Qi(function(r,i){return r<=i});function hr(r){if(!r)return[];if(an(r))return nc(r)?br(r):nn(r);if(Ri&&r[Ri])return bh(r[Ri]());var i=mn(r),f=i==zt?to:i==Ot?no:tu;return f(r)}function la(r){if(!r)return r===0?r:0;if(r=Cr(r),r===K||r===-K){var i=r<0?-1:1;return i*ve}return r===r?r:0}function Xe(r){var i=la(r),f=i%1;return i===i?f?i-f:i:0}function ua(r){return r?kr(Xe(r),0,Q):0}function Cr(r){if(typeof r=="number")return r;if(Un(r))return M;if(qt(r)){var i=typeof r.valueOf=="function"?r.valueOf():r;r=qt(i)?i+"":i}if(typeof r!="string")return r===0?r:+r;r=mh(r);var f=dn.test(r);return f||Jd.test(r)?cg(r.slice(2),f?2:8):sl.test(r)?M:+r}function $m(r){return Kn(r,vn(r))}function Jl(r){return r?kr(Xe(r),-z,z):r===0?r:0}function mt(r){return r==null?"":Zn(r)}var Zg=Vi(function(r,i){if(Nt(i)||an(i)){Kn(i,un(i),r);return}for(var f in i)ht.call(i,f)&&Ui(r,f,i[f])}),ev=Vi(function(r,i){Kn(i,vn(i),r)}),rc=Vi(function(r,i,f,m){Kn(i,vn(i),r,m)}),Kg=Vi(function(r,i,f,m){Kn(i,un(i),r,m)}),Pg=Ut(Ru);function Jg(r,i){var f=ur(r);return i==null?f:ya(f,i)}var Wg=Ze(function(r,i){r=ct(r);var f=-1,m=i.length,b=m>2?i[2]:s;for(b&&Ln(i[0],i[1],b)&&(m=1);++f<m;)for(var E=i[f],T=vn(E),D=-1,q=T.length;++D<q;){var ue=T[D],oe=r[ue];(oe===s||Fn(oe,xl[ue])&&!ht.call(r,ue))&&(r[ue]=E[ue])}return r}),tv=Ze(function(r){return r.push(s,Gf),qn(gs,s,r)});function Wl(r,i){return fh(r,ze(i,3),Mn)}function hs(r,i){return fh(r,ze(i,3),Nl)}function nv(r,i){return r==null?r:Rl(r,ze(i,3),vn)}function Fg(r,i){return r==null?r:ki(r,ze(i,3),vn)}function Fl(r,i){return r&&Mn(r,ze(i,3))}function ms(r,i){return r&&Nl(r,ze(i,3))}function rv(r){return r==null?[]:$a(r,un(r))}function ac(r){return r==null?[]:$a(r,vn(r))}function vs(r,i,f){var m=r==null?s:Er(r,i);return m===s?f:m}function bd(r,i){return r!=null&&Ju(r,i,yf)}function $l(r,i){return r!=null&&Ju(r,i,Uh)}var av=Iu(function(r,i,f){i!=null&&typeof i.toString!="function"&&(i=Nn.call(i)),r[i]=f},V(I)),iv=Iu(function(r,i,f){i!=null&&typeof i.toString!="function"&&(i=Nn.call(i)),ht.call(r,i)?r[i].push(f):r[i]=[f]},ze),$g=Ze(Hi);function un(r){return an(r)?gf(r):bo(r)}function vn(r){return an(r)?gf(r,!0):kh(r)}function ep(r,i){var f={};return i=ze(i,3),Mn(r,function(m,b,E){jr(f,i(m,b,E),m)}),f}function tp(r,i){var f={};return i=ze(i,3),Mn(r,function(m,b,E){jr(f,b,i(m,b,E))}),f}var np=Vi(function(r,i,f){zu(r,i,f)}),gs=Vi(function(r,i,f,m){zu(r,i,f,m)}),ic=Ut(function(r,i){var f={};if(r==null)return f;var m=!1;i=jt(i,function(E){return E=xa(E,r),m||(m=E.length>1),E}),Kn(r,Bo(r),f),m&&(f=wn(f,R|H|X,em));for(var b=i.length;b--;)ku(f,i[b]);return f});function yd(r,i){return eu(r,cs(ze(i)))}var rp=Ut(function(r,i){return r==null?{}:Hh(r,i)});function eu(r,i){if(r==null)return{};var f=jt(Bo(r),function(m){return[m]});return i=ze(i),_o(r,f,function(m,b){return i(m,b[0])})}function ap(r,i,f){i=xa(i,r);var m=-1,b=i.length;for(b||(b=1,r=s);++m<b;){var E=r==null?s:r[pt(i[m])];E===s&&(m=b,E=f),r=qr(E)?E.call(r):E}return r}function lv(r,i,f){return r==null?r:Bl(r,i,f)}function uv(r,i,f,m){return m=typeof m=="function"?m:s,r==null?r:Bl(r,i,f,m)}var Ad=Zu(un),_d=Zu(vn);function xd(r,i,f){var m=Ie(r),b=m||di(r)||Pl(r);if(i=ze(i,4),f==null){var E=r&&r.constructor;b?f=m?new E:[]:qt(r)?f=qr(E)?ur(yu(r)):{}:f={}}return(b?pr:Mn)(r,function(T,D,q){return i(f,T,D,q)}),f}function sv(r,i){return r==null?!0:ku(r,i)}function lc(r,i,f){return r==null?r:Df(r,i,qu(f))}function ip(r,i,f,m){return m=typeof m=="function"?m:s,r==null?r:Df(r,i,qu(f),m)}function tu(r){return r==null?[]:$s(r,un(r))}function Sd(r){return r==null?[]:$s(r,vn(r))}function Ed(r,i,f){return f===s&&(f=i,i=s),f!==s&&(f=Cr(f),f=f===f?f:0),i!==s&&(i=Cr(i),i=i===i?i:0),kr(Cr(r),i,f)}function uc(r,i,f){return i=la(i),f===s?(f=i,i=0):f=la(f),r=Cr(r),jh(r,i,f)}function Od(r,i,f){if(f&&typeof f!="boolean"&&Ln(r,i,f)&&(i=f=s),f===s&&(typeof i=="boolean"?(f=i,i=s):typeof r=="boolean"&&(f=r,r=s)),r===s&&i===s?(r=0,i=1):(r=la(r),i===s?(i=r,r=0):i=la(i)),r>i){var m=r;r=i,i=m}if(f||r%1||i%1){var b=ff();return kt(r+b*(i-r+gu("1e-"+((b+"").length-1))),i)}return So(r,i)}var ov=zn(function(r,i,f){return i=i.toLowerCase(),r+(f?sc(i):i)});function sc(r){return l(mt(r).toLowerCase())}function Na(r){return r=mt(r),r&&r.replace(ol,eo).replace(ma,"")}function hi(r,i,f){r=mt(r),i=Zn(i);var m=r.length;f=f===s?m:kr(Xe(f),0,m);var b=f;return f-=i.length,f>=0&&r.slice(f,b)==i}function mi(r){return r=mt(r),r&&Qd.test(r)?r.replace(al,vh):r}function ps(r){return r=mt(r),r&&Hn.test(r)?r.replace(fn,"\\$&"):r}var bs=zn(function(r,i,f){return r+(f?"-":"")+i.toLowerCase()}),vi=zn(function(r,i,f){return r+(f?" ":"")+i.toLowerCase()}),lp=or("toLowerCase");function cv(r,i,f){r=mt(r),i=Xe(i);var m=i?Wr(r):0;if(!i||m>=i)return r;var b=(i-m)/2;return Xu(ga(b),f)+r+Xu(Ol(b),f)}function ys(r,i,f){r=mt(r),i=Xe(i);var m=i?Wr(r):0;return i&&m<i?r+Xu(i-m,f):r}function up(r,i,f){r=mt(r),i=Xe(i);var m=i?Wr(r):0;return i&&m<i?Xu(i-m,f)+r:r}function fv(r,i,f){return f||i==null?i=0:i&&(i=+i),Di(mt(r).replace(Ga,""),i||0)}function oc(r,i,f){return(f?Ln(r,i,f):i===s)?i=1:i=Xe(i),Rf(mt(r),i)}function dv(){var r=arguments,i=mt(r[0]);return r.length<3?i:i.replace(r[1],r[2])}var sp=zn(function(r,i,f){return r+(f?"_":"")+i.toLowerCase()});function cc(r,i,f){return f&&typeof f!="number"&&Ln(r,i,f)&&(i=f=s),f=f===s?Q:f>>>0,f?(r=mt(r),r&&(typeof i=="string"||i!=null&&!tc(i))&&(i=Zn(i),!i&&Qa(r))?ei(br(r),0,f):r.split(i,f)):[]}var fc=zn(function(r,i,f){return r+(f?" ":"")+l(i)});function hv(r,i,f){return r=mt(r),f=f==null?0:kr(Xe(f),0,r.length),i=Zn(i),r.slice(f,f+i.length)==i}function As(r,i,f){var m=_.templateSettings;f&&Ln(r,i,f)&&(i=s),r=mt(r),i=rc({},i,m,No);var b=rc({},i.imports,m.imports,No),E=un(b),T=$s(b,E),D,q,ue=0,oe=i.interpolate||Us,he="__p += '",Ee=ro((i.escape||Us).source+"|"+oe.source+"|"+(oe===Ls?ll:Us).source+"|"+(i.evaluate||Us).source+"|$","g"),De="//# sourceURL="+(ht.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nh+"]")+`
`;r.replace(Ee,function(Ve,lt,dt,Vr,mr,Ir){return dt||(dt=Vr),he+=r.slice(ue,Ir).replace(Wd,gh),lt&&(D=!0,he+=`' +
__e(`+lt+`) +
'`),mr&&(q=!0,he+=`';
`+mr+`;
__p += '`),dt&&(he+=`' +
((__t = (`+dt+`)) == null ? '' : __t) +
'`),ue=Ir+Ve.length,Ve}),he+=`';
`;var Ye=ht.call(i,"variable")&&i.variable;if(!Ye)he=`with (obj) {
`+he+`
}
`;else if(zc.test(Ye))throw new He(y);he=(q?he.replace(Nc,""):he).replace(On,"$1").replace(Bs,"$1;"),he="function("+(Ye||"obj")+`) {
`+(Ye?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(q?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+he+`return __p
}`;var $e=d(function(){return ot(E,De+"return "+he).apply(s,T)});if($e.source=he,ln($e))throw $e;return $e}function wd(r){return mt(r).toLowerCase()}function dc(r){return mt(r).toUpperCase()}function mv(r,i,f){if(r=mt(r),r&&(f||i===s))return mh(r);if(!r||!(i=Zn(i)))return r;var m=br(r),b=br(i),E=yl(m,b),T=Al(m,b)+1;return ei(m,E,T).join("")}function op(r,i,f){if(r=mt(r),r&&(f||i===s))return r.slice(0,lf(r)+1);if(!r||!(i=Zn(i)))return r;var m=br(r),b=Al(m,br(i))+1;return ei(m,0,b).join("")}function hc(r,i,f){if(r=mt(r),r&&(f||i===s))return r.replace(Ga,"");if(!r||!(i=Zn(i)))return r;var m=br(r),b=yl(m,br(i));return ei(m,b).join("")}function e(r,i){var f=Re,m=Ae;if(qt(i)){var b="separator"in i?i.separator:b;f="length"in i?Xe(i.length):f,m="omission"in i?Zn(i.omission):m}r=mt(r);var E=r.length;if(Qa(r)){var T=br(r);E=T.length}if(f>=E)return r;var D=f-Wr(m);if(D<1)return m;var q=T?ei(T,0,D).join(""):r.slice(0,D);if(b===s)return q+m;if(T&&(D+=q.length-D),tc(b)){if(r.slice(D).search(b)){var ue,oe=q;for(b.global||(b=ro(b.source,mt(ul.exec(b))+"g")),b.lastIndex=0;ue=b.exec(oe);)var he=ue.index;q=q.slice(0,he===s?D:he)}}else if(r.indexOf(Zn(b),D)!=D){var Ee=q.lastIndexOf(b);Ee>-1&&(q=q.slice(0,Ee))}return q+m}function t(r){return r=mt(r),r&&ag.test(r)?r.replace(zs,Ah):r}var n=zn(function(r,i,f){return r+(f?" ":"")+i.toUpperCase()}),l=or("toUpperCase");function c(r,i,f){return r=mt(r),i=f?s:i,i===s?ph(r)?_g(r):gg(r):r.match(i)||[]}var d=Ze(function(r,i){try{return qn(r,s,i)}catch(f){return ln(f)?f:new He(f)}}),p=Ut(function(r,i){return pr(i,function(f){f=pt(f),jr(r,f,ci(r[f],r))}),r});function x(r){var i=r==null?0:r.length,f=ze();return r=i?jt(r,function(m){if(typeof m[1]!="function")throw new lr(g);return[f(m[0]),m[1]]}):[],Ze(function(m){for(var b=-1;++b<i;){var E=r[b];if(qn(E[0],this,m))return qn(E[1],this,m)}})}function C(r){return zh(wn(r,R))}function V(r){return function(){return r}}function ie(r,i){return r==null||r!==r?i:r}var se=ea(),P=ea(!0);function I(r){return r}function je(r){return Ef(typeof r=="function"?r:wn(r,R))}function Le(r){return wf(wn(r,R))}function Tt(r,i){return Ao(r,wn(i,R))}var k=Ze(function(r,i){return function(f){return Hi(f,r,i)}}),B=Ze(function(r,i){return function(f){return Hi(r,f,i)}});function Y(r,i,f){var m=un(i),b=$a(i,m);f==null&&!(qt(i)&&(b.length||!m.length))&&(f=i,i=r,r=this,b=$a(i,un(i)));var E=!(qt(f)&&"chain"in f)||!!f.chain,T=qr(r);return pr(b,function(D){var q=i[D];r[D]=q,T&&(r.prototype[D]=function(){var ue=this.__chain__;if(E||ue){var oe=r(this.__wrapped__),he=oe.__actions__=nn(this.__actions__);return he.push({func:q,args:arguments,thisArg:r}),oe.__chain__=ue,oe}return q.apply(r,va([this.value()],arguments))})}),r}function le(){return Wt._===this&&(Wt._=Sl),this}function Me(){}function Fe(r){return r=Xe(r),Ze(function(i){return Mf(i,r)})}var Be=Qu(jt),ke=Qu(ch),gn=Qu(tf);function ft(r){return jo(r)?Js(pt(r)):Gh(r)}function gi(r){return function(i){return r==null?s:Er(r,i)}}var cp=ti(),ny=ti(!0);function fp(){return[]}function dp(){return!1}function ry(){return{}}function ay(){return""}function iy(){return!0}function ly(r,i){if(r=Xe(r),r<1||r>z)return[];var f=Q,m=kt(r,Q);i=ze(i),r-=Q;for(var b=Ia(m,i);++f<r;)i(f);return b}function uy(r){return Ie(r)?jt(r,pt):Un(r)?[r]:nn(ra(mt(r)))}function sy(r){var i=++zr;return mt(r)+i}var oy=zl(function(r,i){return r+i},0),cy=Ro("ceil"),fy=zl(function(r,i){return r/i},1),dy=Ro("floor");function hy(r){return r&&r.length?Hr(r,I,Nu):s}function my(r,i){return r&&r.length?Hr(r,ze(i,2),Nu):s}function vy(r){return dh(r,I)}function gy(r,i){return dh(r,ze(i,2))}function py(r){return r&&r.length?Hr(r,I,yo):s}function by(r,i){return r&&r.length?Hr(r,ze(i,2),yo):s}var yy=zl(function(r,i){return r*i},1),Ay=Ro("round"),_y=zl(function(r,i){return r-i},0);function xy(r){return r&&r.length?Fs(r,I):0}function Sy(r,i){return r&&r.length?Fs(r,ze(i,2)):0}return _.after=Ug,_.ary=km,_.assign=Zg,_.assignIn=ev,_.assignInWith=rc,_.assignWith=Kg,_.at=Pg,_.before=ls,_.bind=ci,_.bindAll=p,_.bindKey=Ko,_.castArray=Gg,_.chain=Xl,_.chunk=Cg,_.compact=fm,_.concat=dm,_.cond=x,_.conforms=C,_.constant=V,_.countBy=Zl,_.create=Jg,_.curry=us,_.curryRight=Po,_.debounce=fi,_.defaults=Wg,_.defaultsDeep=tv,_.defer=ia,_.delay=ss,_.difference=Gt,_.differenceBy=Pn,_.differenceWith=Ma,_.drop=hm,_.dropRight=mm,_.dropRightWhile=Rg,_.dropWhile=Xf,_.fill=cr,_.filter=wm,_.flatMap=ld,_.flatMapDeep=Bg,_.flatMapDepth=zg,_.flatten=Jn,_.flattenDeep=vm,_.flattenDepth=ai,_.flip=jg,_.flow=se,_.flowRight=P,_.fromPairs=Zi,_.functions=rv,_.functionsIn=ac,_.groupBy=Cm,_.initial=Pf,_.intersection=aa,_.intersectionBy=gm,_.intersectionWith=kl,_.invert=av,_.invertBy=iv,_.invokeMap=Qo,_.iteratee=je,_.keyBy=Rm,_.keys=un,_.keysIn=vn,_.map=is,_.mapKeys=ep,_.mapValues=tp,_.matches=Le,_.matchesProperty=Tt,_.memoize=os,_.merge=np,_.mergeWith=gs,_.method=k,_.methodOf=B,_.mixin=Y,_.negate=cs,_.nthArg=Fe,_.omit=ic,_.omitBy=yd,_.once=Hm,_.orderBy=Nm,_.over=Be,_.overArgs=Gm,_.overEvery=ke,_.overSome=gn,_.partial=od,_.partialRight=Jo,_.partition=Dm,_.pick=rp,_.pickBy=eu,_.property=ft,_.propertyOf=gi,_.pull=bm,_.pullAll=Gl,_.pullAllBy=ym,_.pullAllWith=Vo,_.pullAt=Am,_.range=cp,_.rangeRight=ny,_.rearg=qm,_.reject=Xo,_.remove=Ng,_.rest=Ym,_.reverse=Jf,_.sampleSize=Um,_.set=lv,_.setWith=uv,_.shuffle=Dt,_.slice=_t,_.sortBy=jm,_.sortedUniq=ql,_.sortedUniqBy=Wf,_.split=cc,_.spread=kg,_.tail=Ca,_.take=Kt,_.takeRight=li,_.takeRightWhile=Ki,_.takeWhile=Ff,_.tap=rd,_.throttle=cd,_.thru=Cn,_.toArray=hr,_.toPairs=Ad,_.toPairsIn=_d,_.toPath=uy,_.toPlainObject=$m,_.transform=xd,_.unary=fd,_.union=Mr,_.unionBy=Yl,_.unionWith=rs,_.uniq=Wn,_.uniqBy=$f,_.uniqWith=ed,_.unset=sv,_.unzip=Vl,_.unzipWith=as,_.update=lc,_.updateWith=ip,_.values=tu,_.valuesIn=Sd,_.without=ui,_.words=c,_.wrap=Hg,_.xor=_n,_.xorBy=si,_.xorWith=Il,_.zip=Ql,_.zipObject=td,_.zipObjectDeep=nd,_.zipWith=_m,_.entries=Ad,_.entriesIn=_d,_.extend=ev,_.extendWith=rc,Y(_,_),_.add=oy,_.attempt=d,_.camelCase=ov,_.capitalize=sc,_.ceil=cy,_.clamp=Ed,_.clone=fs,_.cloneDeep=Vm,_.cloneDeepWith=tt,_.cloneWith=qg,_.conformsTo=dd,_.deburr=Na,_.defaultTo=ie,_.divide=fy,_.endsWith=hi,_.eq=Fn,_.escape=mi,_.escapeRegExp=ps,_.every=Om,_.find=Mm,_.findIndex=wr,_.findKey=Wl,_.findLast=id,_.findLastIndex=Zf,_.findLastKey=hs,_.floor=dy,_.forEach=Tm,_.forEachRight=ud,_.forIn=nv,_.forInRight=Fg,_.forOwn=Fl,_.forOwnRight=ms,_.get=vs,_.gt=hd,_.gte=Im,_.has=bd,_.hasIn=$l,_.head=Ta,_.identity=I,_.includes=Kl,_.indexOf=Kf,_.inRange=uc,_.invoke=$g,_.isArguments=Ra,_.isArray=Ie,_.isArrayBuffer=Wo,_.isArrayLike=an,_.isArrayLikeObject=Pt,_.isBoolean=Yg,_.isBuffer=di,_.isDate=Qm,_.isElement=Xm,_.isEmpty=Fo,_.isEqual=Mt,_.isEqualWith=md,_.isError=ln,_.isFinite=Vg,_.isFunction=qr,_.isInteger=$o,_.isLength=Pi,_.isMap=ec,_.isMatch=vd,_.isMatchWith=Ig,_.isNaN=Zm,_.isNative=Qg,_.isNil=Xg,_.isNull=Km,_.isNumber=Pm,_.isObject=qt,_.isObjectLike=Qt,_.isPlainObject=Tr,_.isRegExp=tc,_.isSafeInteger=gd,_.isSet=Jm,_.isString=nc,_.isSymbol=Un,_.isTypedArray=Pl,_.isUndefined=Yr,_.isWeakMap=pd,_.isWeakSet=Wm,_.join=ns,_.kebabCase=bs,_.last=Tn,_.lastIndexOf=Hl,_.lowerCase=vi,_.lowerFirst=lp,_.lt=Fm,_.lte=ds,_.max=hy,_.maxBy=my,_.mean=vy,_.meanBy=gy,_.min=py,_.minBy=by,_.stubArray=fp,_.stubFalse=dp,_.stubObject=ry,_.stubString=ay,_.stubTrue=iy,_.multiply=yy,_.nth=pm,_.noConflict=le,_.noop=Me,_.now=Zo,_.pad=cv,_.padEnd=ys,_.padStart=up,_.parseInt=fv,_.random=Od,_.reduce=Bm,_.reduceRight=zm,_.repeat=oc,_.replace=dv,_.result=ap,_.round=Ay,_.runInContext=L,_.sample=Lm,_.size=sd,_.snakeCase=sp,_.some=Lg,_.sortedIndex=Bt,_.sortedIndexBy=et,_.sortedIndexOf=st,_.sortedLastIndex=xt,_.sortedLastIndexBy=fr,_.sortedLastIndexOf=ii,_.startCase=fc,_.startsWith=hv,_.subtract=_y,_.sum=xy,_.sumBy=Sy,_.template=As,_.times=ly,_.toFinite=la,_.toInteger=Xe,_.toLength=ua,_.toLower=wd,_.toNumber=Cr,_.toSafeInteger=Jl,_.toString=mt,_.toUpper=dc,_.trim=mv,_.trimEnd=op,_.trimStart=hc,_.truncate=e,_.unescape=t,_.uniqueId=sy,_.upperCase=n,_.upperFirst=l,_.each=Tm,_.eachRight=ud,_.first=Ta,Y(_,(function(){var r={};return Mn(_,function(i,f){ht.call(_.prototype,f)||(r[f]=i)}),r})(),{chain:!1}),_.VERSION=o,pr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){_[r].placeholder=_}),pr(["drop","take"],function(r,i){We.prototype[r]=function(f){f=f===s?1:Lt(Xe(f),0);var m=this.__filtered__&&!i?new We(this):this.clone();return m.__filtered__?m.__takeCount__=kt(f,m.__takeCount__):m.__views__.push({size:kt(f,Q),type:r+(m.__dir__<0?"Right":"")}),m},We.prototype[r+"Right"]=function(f){return this.reverse()[r](f).reverse()}}),pr(["filter","map","takeWhile"],function(r,i){var f=i+1,m=f==pe||f==N;We.prototype[r]=function(b){var E=this.clone();return E.__iteratees__.push({iteratee:ze(b,3),type:f}),E.__filtered__=E.__filtered__||m,E}}),pr(["head","last"],function(r,i){var f="take"+(i?"Right":"");We.prototype[r]=function(){return this[f](1).value()[0]}}),pr(["initial","tail"],function(r,i){var f="drop"+(i?"":"Right");We.prototype[r]=function(){return this.__filtered__?new We(this):this[f](1)}}),We.prototype.compact=function(){return this.filter(I)},We.prototype.find=function(r){return this.filter(r).head()},We.prototype.findLast=function(r){return this.reverse().find(r)},We.prototype.invokeMap=Ze(function(r,i){return typeof r=="function"?new We(this):this.map(function(f){return Hi(f,r,i)})}),We.prototype.reject=function(r){return this.filter(cs(ze(r)))},We.prototype.slice=function(r,i){r=Xe(r);var f=this;return f.__filtered__&&(r>0||i<0)?new We(f):(r<0?f=f.takeRight(-r):r&&(f=f.drop(r)),i!==s&&(i=Xe(i),f=i<0?f.dropRight(-i):f.take(i-r)),f)},We.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},We.prototype.toArray=function(){return this.take(Q)},Mn(We.prototype,function(r,i){var f=/^(?:filter|find|map|reject)|While$/.test(i),m=/^(?:head|last)$/.test(i),b=_[m?"take"+(i=="last"?"Right":""):i],E=m||/^find/.test(i);b&&(_.prototype[i]=function(){var T=this.__wrapped__,D=m?[1]:arguments,q=T instanceof We,ue=D[0],oe=q||Ie(T),he=function(lt){var dt=b.apply(_,va([lt],D));return m&&Ee?dt[0]:dt};oe&&f&&typeof ue=="function"&&ue.length!=1&&(q=oe=!1);var Ee=this.__chain__,De=!!this.__actions__.length,Ye=E&&!Ee,$e=q&&!De;if(!E&&oe){T=$e?T:new We(this);var Ve=r.apply(T,D);return Ve.__actions__.push({func:Cn,args:[he],thisArg:s}),new In(Ve,Ee)}return Ye&&$e?r.apply(this,D):(Ve=this.thru(he),Ye?m?Ve.value()[0]:Ve.value():Ve)})}),pr(["pop","push","shift","sort","splice","unshift"],function(r){var i=ao[r],f=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",m=/^(?:pop|shift)$/.test(r);_.prototype[r]=function(){var b=arguments;if(m&&!this.__chain__){var E=this.value();return i.apply(Ie(E)?E:[],b)}return this[f](function(T){return i.apply(Ie(T)?T:[],b)})}}),Mn(We.prototype,function(r,i){var f=_[i];if(f){var m=f.name+"";ht.call(xr,m)||(xr[m]=[]),xr[m].push({name:i,func:f})}}),xr[Zt(s,$).name]=[{name:"wrapper",func:s}],We.prototype.clone=wu,We.prototype.reverse=so,We.prototype.value=zi,_.prototype.at=xm,_.prototype.chain=dr,_.prototype.commit=Sm,_.prototype.next=Em,_.prototype.plant=oi,_.prototype.reverse=Io,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=ad,_.prototype.first=_.prototype.head,Ri&&(_.prototype[Ri]=Dg),_}),Za=_l();Va?((Va.exports=Za)._=Za,vl._=Za):Wt._=Za}).call(Rx)})(Nd,Nd.exports)),Nd.exports}var v0=Nx();const _1=p0(v0),jn={auth:a=>pn.call("auth",a,[]),channelClose:a=>pn.call("channelClose",a,[]),channelDeleteMessage:a=>pn.call("channelDeleteMessage",a,[]),channelDocumentUpload:a=>pn.callFormData("channelDocumentUpload",a),channelInfo:(a,u)=>pn.call("channelInfo",a,u),channelList:(a,u)=>pn.call("channelList",a,u),channelMessages:(a,u)=>pn.call("channelMessages",a,u),channelReaction:a=>pn.call("channelReaction",a,[]),channelSendMessage:(a,u)=>pn.call("channelSendMessage",a,u),channelVoiceUpload:a=>pn.callFormData("channelVoiceUpload",a),joinChannel:a=>pn.call("joinChannel",a,[]),joinChannelList:(a,u)=>pn.call("joinChannelList",a,u),mode:()=>pn.call("mode",{},[]),pinnedMessage:a=>pn.call("pinnedMessage",a,[]),profileID:()=>pn.call("profileID",{},[])},x1=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{const u=crypto.getRandomValues(new Uint8Array(1))[0]&15;return(a==="x"?u:u&3|8).toString(16)}),Dx=(a,u)=>{const s=new TextEncoder().encode(a),o=new TextEncoder().encode(u),h=new Uint8Array(s.length);for(let v=0;v<s.length;v++)h[v]=s[v]^o[v%o.length];return btoa(String.fromCharCode(...Array.from(h)))},_v=(a,u)=>{const s=atob(a),o=new Uint8Array(s.length);for(let g=0;g<s.length;g++)o[g]=s.charCodeAt(g);const h=new TextEncoder().encode(u),v=new Uint8Array(o.length);for(let g=0;g<o.length;g++)v[g]=o[g]^h[g%h.length];return new TextDecoder().decode(v)};class pn{static endpoints=[];static ENDPOINT_INDEX_KEY="rpcClient_endpointIndex";static currentEndpointIndex=0;static initialized=!1;static headers={};static tokenGetter=null;static tokenGetterAsync=null;static unauthorizedHandler=null;static networkErrorHandler=null;static toastHandler=null;static storage=null;static defaultExtensions=[];static setDefaultExtensions(u){this.defaultExtensions=u}static abortControllerTimeout=3e4;static setAbortControllerTimeout(u){this.abortControllerTimeout=u}static setStorage(u){this.storage=u}static useEncrypt=!1;static setUseEncrypt(u){this.useEncrypt=u}static setNetworkErrorHandler(u){this.networkErrorHandler=u}static async init(){if(!this.initialized){if(this.storage)try{const u=await this.storage.get(this.ENDPOINT_INDEX_KEY);if(u!==null){const s=parseInt(u,10);!isNaN(s)&&s>=0&&s<this.endpoints.length&&(this.currentEndpointIndex=s)}}catch(u){console.log("⚠️ Ошибка при загрузке индекса endpoint:",u)}else this.currentEndpointIndex=0;this.initialized=!0}}static async saveEndpointIndex(){if(this.storage)try{await this.storage.save(this.ENDPOINT_INDEX_KEY,this.currentEndpointIndex.toString())}catch(u){console.log("⚠️ Ошибка при сохранении индекса endpoint:",u)}}static switchToNextEndpoint(){this.endpoints.length<=1||(this.currentEndpointIndex=(this.currentEndpointIndex+1)%this.endpoints.length,this.saveEndpointIndex())}static async waitForEndpoints(){if(!(this.endpoints.length>0)&&(await new Promise(u=>setTimeout(u,1e3)),this.endpoints.length===0))throw new Error("Endpoints are not set")}static getCurrentEndpoint(){if(this.endpoints.length===0)throw new Error("Endpoints are not set");return this.endpoints[this.currentEndpointIndex]}static getCurrentEndpointDomain(){let u=this.getCurrentEndpoint().split("://")[0],o=this.getCurrentEndpoint().split("://")[1].split("/")[0];return`${u}://${o}`}static isNetworkError(u){return u.name==="AbortError"||u.name==="TimeoutError"||u.name==="TypeError"||u.message?.includes("Network request failed")||u.message?.includes("Failed to fetch")||u.message?.includes("NetworkError")}static setToken(u){this.tokenGetter=u}static setTokenAsync(u){this.tokenGetterAsync=u}static setUnauthorizedHandler(u){this.unauthorizedHandler=u}static setToast(u){this.toastHandler=u}static setEndpoints(u){this.endpoints=u,this.currentEndpointIndex=0,this.initialized=!1}static getToken(){return this.tokenGetter?this.tokenGetter():null}static async getTokenAsync(){return this.tokenGetter?this.tokenGetter():this.tokenGetterAsync?await this.tokenGetterAsync():null}static setHeaders(u){this.headers={...this.headers,...u}}static handleError(u){(u?.type==="UNAUTHORIZED"||u?.type==="UNAUTHENTICATED")&&this.unauthorizedHandler&&this.unauthorizedHandler(),u?.message&&this.toastHandler&&this.toastHandler(u.message)}static async callFormData(u,s){await this.waitForEndpoints();const o=this.getCurrentEndpoint();s.append("method",u);let h=await this.getTokenAsync();h&&s.append("token",h),s.append("timezone",Intl.DateTimeFormat().resolvedOptions().timeZone);const v=this.useEncrypt?x1():void 0;this.useEncrypt&&v&&s.append("context",v);const g={...this.headers};delete g["Content-Type"];const y=new AbortController,A=setTimeout(()=>{y.abort()},this.abortControllerTimeout);return fetch(o,{method:"POST",headers:g,body:s,signal:y.signal}).then(S=>S.json()).then(S=>{if(clearTimeout(A),this.useEncrypt&&v&&(S.result&&(S.result=JSON.parse(_v(S.result,v))),S.extensions&&(S.extensions=JSON.parse(_v(S.extensions,v)))),S?.error)throw this.handleError(S.error),S.error;return this.saveEndpointIndex(),S.result}).catch(S=>{throw clearTimeout(A),this.isNetworkError(S)&&(this.networkErrorHandler&&this.networkErrorHandler(),this.switchToNextEndpoint()),S})}static async call(u,s,o){await this.waitForEndpoints();const h=this.getCurrentEndpoint(),v=this.useEncrypt?x1():void 0;let g=o??this.defaultExtensions;const y=await this.getTokenAsync(),A={method:u,extensions:g,context:v,token:y,params:s?v?Dx(JSON.stringify(s??{}),v):s:void 0,id:Date.now().toString()};console.log("🚀🚀🚀 method: ",u," RPC Endpoint: ",h),console.log("🚀🚀🚀 method: ",u," RPC Body: ",JSON.stringify(A));const S=new AbortController,O=setTimeout(()=>{S.abort()},this.abortControllerTimeout);return fetch(h,{method:"POST",headers:{"Content-Type":"application/json",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,...this.headers},body:JSON.stringify(A),signal:S.signal}).then(R=>R.json()).then(R=>{if(clearTimeout(O),this.useEncrypt&&v&&(R.result&&(R.result=JSON.parse(_v(R.result,v))),R.extensions&&(R.extensions=JSON.parse(_v(R.extensions,v)))),console.log("🍪🍪🍪 method: ",u," RPC Response: ",JSON.stringify(R)),R?.error)throw this.handleError(R.error),R.error;return this.saveEndpointIndex(),R?.extensions&&M0.addToStore(R.extensions),R}).catch(R=>{throw clearTimeout(O),this.isNetworkError(R)&&(this.networkErrorHandler&&this.networkErrorHandler(),this.switchToNextEndpoint()),console.log("🛑🛑🛑 RPC Error: ",JSON.stringify(A)),R})}}class M0{static storage=null;static setStorage(u){this.storage=u}static async loadFromStorage(){if(this.storage){const u=await this.storage.get("extensionsStore");if(u)try{let s=JSON.parse(u);v0.map(s,(o,h)=>{o&&(this.store?.[h]?this.store[h]={...this.store[h],...o}:this.store[h]=o)})}catch(s){console.error("⚠️ Ошибка при загрузке extensionsStore из storage:",s)}}}static saveToStorage=v0.debounce(()=>{this.storage&&this.storage.save("extensionsStore",JSON.stringify(this.store))},1e3);static store={shmChannelMessages:{},shmChannels:{}};static addToStore(u){if(u?.shmChannelMessages&&u?.shmChannelMessages.length>0)for(const s of u?.shmChannelMessages)s?._id&&(this.store.shmChannelMessages[s._id]=s);if(u?.shmChannels&&u?.shmChannels.length>0)for(const s of u?.shmChannels)s?._id&&(this.store.shmChannels[s._id]=s);this.saveToStorage()}static shmChannelMessagesByID(u){return u?this.store.shmChannelMessages?.[u]?this.store.shmChannelMessages[u]:(console.info("📕 Extension shmChannelMessages not found by ID: "+u),null):null}static shmChannelsByID(u){return u?this.store.shmChannels?.[u]?this.store.shmChannels[u]:(console.info("📕 Extension shmChannels not found by ID: "+u),null):null}static shmChannelMessagesByIDs(u){if(!u)return[];const s=[];for(const o of u)this.store.shmChannelMessages[o]&&s.push(this.store.shmChannelMessages[o]);return s.length===0&&console.info("📕 Extensions shmChannelMessages not found by IDs: "+u.join(", ")),s}static shmChannelsByIDs(u){if(!u)return[];const s=[];for(const o of u)this.store.shmChannels[o]&&s.push(this.store.shmChannels[o]);return s.length===0&&console.info("📕 Extensions shmChannels not found by IDs: "+u.join(", ")),s}}const Kb=F.createRef(),Bx=a=>{Kb.current?.show(a)},zx=F.forwardRef((a,u)=>{const[s,o]=F.useState(null);return F.useImperativeHandle(u,()=>({show:h=>{o(h)}})),F.useEffect(()=>{if(s){const h=setTimeout(()=>{o(null)},3e3);return()=>clearTimeout(h)}},[s]),G.jsx(F1,{opened:!!s,onClick:()=>{o(null)},title:s,button:!0})}),Lx=window.location.hostname==="localhost"||window.location.port!=="8888",Ux=()=>{if(Lx)return"http://localhost:8888/chat/widget";let a=window.location.href;return a=a.split("#")[0],a=a.split("?")[0],a};var Pb={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},S1=W.createContext&&W.createContext(Pb),jx=["attr","size","title"];function kx(a,u){if(a==null)return{};var s=Hx(a,u),o,h;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(a);for(h=0;h<v.length;h++)o=v[h],!(u.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(a,o)&&(s[o]=a[o])}return s}function Hx(a,u){if(a==null)return{};var s={};for(var o in a)if(Object.prototype.hasOwnProperty.call(a,o)){if(u.indexOf(o)>=0)continue;s[o]=a[o]}return s}function qv(){return qv=Object.assign?Object.assign.bind():function(a){for(var u=1;u<arguments.length;u++){var s=arguments[u];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(a[o]=s[o])}return a},qv.apply(this,arguments)}function E1(a,u){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);u&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(a,h).enumerable})),s.push.apply(s,o)}return s}function Yv(a){for(var u=1;u<arguments.length;u++){var s=arguments[u]!=null?arguments[u]:{};u%2?E1(Object(s),!0).forEach(function(o){Gx(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):E1(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}function Gx(a,u,s){return u=qx(u),u in a?Object.defineProperty(a,u,{value:s,enumerable:!0,configurable:!0,writable:!0}):a[u]=s,a}function qx(a){var u=Yx(a,"string");return typeof u=="symbol"?u:u+""}function Yx(a,u){if(typeof a!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var o=s.call(a,u);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(a)}function Jb(a){return a&&a.map((u,s)=>W.createElement(u.tag,Yv({key:s},u.attr),Jb(u.child)))}function Sn(a){return u=>W.createElement(Vx,qv({attr:Yv({},a.attr)},u),Jb(a.child))}function Vx(a){var u=s=>{var{attr:o,size:h,title:v}=a,g=kx(a,jx),y=h||s.size||"1em",A;return s.className&&(A=s.className),a.className&&(A=(A?A+" ":"")+a.className),W.createElement("svg",qv({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,o,g,{className:A,style:Yv(Yv({color:a.color||s.color},s.style),a.style),height:y,width:y,xmlns:"http://www.w3.org/2000/svg"}),v&&W.createElement("title",null,v),a.children)};return S1!==void 0?W.createElement(S1.Consumer,null,s=>u(s)):u(Pb)}function Ix(a){return Sn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z"},child:[]}]})(a)}function Qx(a){return Sn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.5 16.5v-9l7 4.5-7 4.5z"},child:[]}]})(a)}function T0(a){return Sn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"},child:[]}]})(a)}class Xx{constructor(){Q2(this)}mode="widget";setMode(u){this.mode=u}isFixedChannel=!1;setIsFixedChannel(u){this.isFixedChannel=u}selectChannelID=null;setSelectChannelID(u){this.selectChannelID=u}channelList=[];userID=null;loadUser(){jn.profileID().then(({result:u})=>{this.userID=u??null})}isMobile=()=>window.innerWidth<768||this.cap;cap=!1;setCap(u){this.cap=u}}const bn=new Xx,Zx="data:image/jpeg;base64, ";function Wb(a){return Sn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8A8 8 0 1 0 0 8a8 8 0 0 0 16 0m-7.5 3.5a.5.5 0 0 1-1 0V5.707L5.354 7.854a.5.5 0 1 1-.708-.708l3-3a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 5.707z"},child:[]}]})(a)}function Fb(a){return Sn({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5M11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47M8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5"},child:[]}]})(a)}function Kx(a){return Sn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(a)}const O1=new Map,Px=a=>{const u=[];let h=25;for(let v=0;v<a;v++){const g=(Math.random()-.5)*10,y=Math.max(10,Math.min(50,h+g));u.push(Math.round(y)),h=y}return u},Jx=({src:a,barsCount:u=30,cacheKey:s})=>{const o=F.useRef(null),[h,v]=F.useState(!1),[g,y]=F.useState(0),[A,S]=F.useState(0),[O,R]=F.useState([]);F.useEffect(()=>{const j=s??a,Z=O1.get(j);if(Z&&Z.length===u){R(Z);return}const $=Px(u);O1.set(j,$),R($)},[u,s,a]),F.useEffect(()=>{const j=o.current;if(!j)return;const Z=()=>{j.duration&&y(j.currentTime/j.duration*100)},$=()=>{S(j.duration||0)};return j.addEventListener("timeupdate",Z),j.addEventListener("loadedmetadata",$),j.addEventListener("ended",()=>v(!1)),()=>{j.removeEventListener("timeupdate",Z),j.removeEventListener("loadedmetadata",$)}},[]);const H=()=>{const j=o.current;j&&(h?j.pause():j.play(),v(!h))},X=j=>{const Z=o.current;if(!Z||!A)return;const $=j/O.length*A;Z.currentTime=$},U=Math.floor(g/100*O.length);return G.jsxs("div",{className:"flex items-end  mt-4",onClick:j=>{j.preventDefault(),j.stopPropagation()},children:[G.jsx("audio",{ref:o,src:a,preload:"metadata"}),G.jsx("div",{children:G.jsx("div",{onClick:j=>{j.preventDefault(),j.stopPropagation(),H()},className:"mr-1",children:h?G.jsx(Ix,{size:28}):G.jsx(Qx,{size:28})})}),G.jsx("div",{className:"flex items-end space-x-1 flex-1  cursor-pointer overflow-hidden",children:O.map((j,Z)=>G.jsx("div",{onClick:$=>{$.preventDefault(),$.stopPropagation(),X(Z)},className:`w-[2px] rounded-sm transition-colors duration-200 bg-black dark:bg-white ${Z<=U?"opacity-100":"opacity-50"}`,style:{height:`${j}px`}},Z))})]})};function Wx(a){return Sn({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 624c93.9 0 170-75.2 170-168V232c0-92.8-76.1-168-170-168s-170 75.2-170 168v224c0 92.8 76.1 168 170 168zm330-170c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 140.3-113.7 254-254 254S258 594.3 258 454c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 168.7 126.6 307.9 290 327.6V884H326.7c-13.7 0-24.7 14.3-24.7 32v36c0 4.4 2.8 8 6.2 8h407.6c3.4 0 6.2-3.6 6.2-8v-36c0-17.7-11-32-24.7-32H548V782.1c165.3-18 294-158 294-328.1z"},child:[]}]})(a)}function Fx(a){return Sn({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM400 402c22.1 0 40 17.9 40 40s-17.9 40-40 40-40-17.9-40-40 17.9-40 40-40zm296 294H328c-6.7 0-10.4-7.7-6.3-12.9l99.8-127.2a8 8 0 0 1 12.6 0l41.1 52.4 77.8-99.2a8 8 0 0 1 12.6 0l136.5 174c4.3 5.2.5 12.9-6.1 12.9zm-94-370V137.8L790.2 326H602z"},child:[]}]})(a)}function $x(a){return Sn({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.22 637.26c-15.18-.5-31.32.67-49.65 2.96-24.3-14.99-40.66-35.58-52.28-65.83l1.07-4.38 1.24-5.18c4.3-18.13 6.61-31.36 7.3-44.7.52-10.07-.04-19.36-1.83-27.97-3.3-18.59-16.45-29.46-33.02-30.13-15.45-.63-29.65 8-33.28 21.37-5.91 21.62-2.45 50.07 10.08 98.59-15.96 38.05-37.05 82.66-51.2 107.54-18.89 9.74-33.6 18.6-45.96 28.42-16.3 12.97-26.48 26.3-29.28 40.3-1.36 6.49.69 14.97 5.36 21.92 5.3 7.88 13.28 13 22.85 13.74 24.15 1.87 53.83-23.03 86.6-79.26 3.29-1.1 6.77-2.26 11.02-3.7l11.9-4.02c7.53-2.54 12.99-4.36 18.39-6.11 23.4-7.62 41.1-12.43 57.2-15.17 27.98 14.98 60.32 24.8 82.1 24.8 17.98 0 30.13-9.32 34.52-23.99 3.85-12.88.8-27.82-7.48-36.08-8.56-8.41-24.3-12.43-45.65-13.12zM385.23 765.68v-.36l.13-.34a54.86 54.86 0 0 1 5.6-10.76c4.28-6.58 10.17-13.5 17.47-20.87 3.92-3.95 8-7.8 12.79-12.12 1.07-.96 7.91-7.05 9.19-8.25l11.17-10.4-8.12 12.93c-12.32 19.64-23.46 33.78-33 43-3.51 3.4-6.6 5.9-9.1 7.51a16.43 16.43 0 0 1-2.61 1.42c-.41.17-.77.27-1.13.3a2.2 2.2 0 0 1-1.12-.15 2.07 2.07 0 0 1-1.27-1.91zM511.17 547.4l-2.26 4-1.4-4.38c-3.1-9.83-5.38-24.64-6.01-38-.72-15.2.49-24.32 5.29-24.32 6.74 0 9.83 10.8 10.07 27.05.22 14.28-2.03 29.14-5.7 35.65zm-5.81 58.46l1.53-4.05 2.09 3.8c11.69 21.24 26.86 38.96 43.54 51.31l3.6 2.66-4.39.9c-16.33 3.38-31.54 8.46-52.34 16.85 2.17-.88-21.62 8.86-27.64 11.17l-5.25 2.01 2.8-4.88c12.35-21.5 23.76-47.32 36.05-79.77zm157.62 76.26c-7.86 3.1-24.78.33-54.57-12.39l-7.56-3.22 8.2-.6c23.3-1.73 39.8-.45 49.42 3.07 4.1 1.5 6.83 3.39 8.04 5.55a4.64 4.64 0 0 1-1.36 6.31 6.7 6.7 0 0 1-2.17 1.28z"},child:[]}]})(a)}function w1(a){return Sn({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM296 136v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm64 64v64h64v-64h-64zm-64 64v64h64v-64h-64zm0 64v160h128V584H296zm48 48h32v64h-32v-64z"},child:[]}]})(a)}function M1(a){return Sn({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2z"},child:[]}]})(a)}function e4(a){return Sn({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M912 302.3L784 376V224c0-35.3-28.7-64-64-64H128c-35.3 0-64 28.7-64 64v576c0 35.3 28.7 64 64 64h592c35.3 0 64-28.7 64-64V648l128 73.7c21.3 12.3 48-3.1 48-27.6V330c0-24.6-26.7-40-48-27.7zM328 352c0 4.4-3.6 8-8 8H208c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h112c4.4 0 8 3.6 8 8v48zm560 273l-104-59.8V458.9L888 399v226z"},child:[]}]})(a)}const C0=({doc:a,size:u=40,className:s=""})=>{const o=a?.type;if(!o)return G.jsx(M1,{size:u,className:s});const h={image:Fx,audio:Wx,video:e4,"application/pdf":$x,"application/zip":w1,"application/x-zip-compressed":w1};if(h[o]){const g=h[o];return G.jsx(g,{size:u,className:s})}const v=o.split("/")[0];if(v=="image")return G.jsx("img",{src:a.url,alt:a.name,style:{width:u,height:u},className:` object-cover ${s} rounded-xl bg-white`});if(h[v]){const g=h[v];return G.jsx(g,{size:u,className:s})}return G.jsx(M1,{size:u,className:s})},$b=({msg:a,onClick:u})=>{const s=!!a.deleted;return G.jsx("div",{className:"mb-2 mt-2 border-l-2 border-gray-500 pl-2",children:G.jsx("div",{onClick:o=>{o.stopPropagation(),u()},id:`replay-msg-${a._id}`,children:s?G.jsx(G.Fragment,{children:G.jsxs("div",{className:"opacity-80 text-sm flex items-center gap-2",children:[G.jsx(Fb,{className:"w-4 h-4"})," Сообщение удалено"]})}):G.jsxs(G.Fragment,{children:[G.jsx("div",{children:a.text}),a.voice?.url&&G.jsx("div",{className:"text-sm ",children:"Аудио сообщение"}),a.attachments?.map(o=>G.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[G.jsx(C0,{doc:o}),G.jsx("div",{children:o.name})]}))]})})})};rl.locale("ru");const g0=[{name:"❤️",value:"heart"},{name:"👍",value:"like"},{name:"😂",value:"laugh"},{name:"😮",value:"wow"},{name:"😢",value:"sad"},{name:"😡",value:"angry"},{name:"👏",value:"clap"},{name:"🎉",value:"party"},{name:"💩",value:"poop"},{name:"🔥",value:"fire"}],t4=a=>{const u=g0.find(s=>s.value===a);return u?u.name:""},n4=({onReplayClick:a,msg:u,onClick:s,onChange:o})=>{const h=S=>{jn.channelReaction({message:u._id,channel:u.channel,reaction:S}).then(()=>{o()})},v=()=>{if(!u.reactions||u.reactions.length==0)return null;const S=_1.groupBy(u.reactions,O=>O.type);return G.jsx("div",{className:"flex items-center space-x-1 mt-2",children:_1.map(S,(O,R)=>G.jsx(zd,{onClick:H=>{H.stopPropagation(),h(R)},media:G.jsx("div",{className:"ml-2",children:t4(R)}),className:"m-1 cursor-pointer",children:G.jsx("span",{className:"font-medium",children:O.length})},R))})},g=M0.shmChannelMessagesByID(u.reply),y=!!u.deleted;return u.type=="system"?G.jsx("div",{className:"text-sm  text-center p-6 opacity-70",children:u.text}):G.jsx(G.Fragment,{children:G.jsx(J1,{onClick:()=>{y||s()},type:u.owner!=bn.userID?"received":"sent",name:u.owner??"",text:y?G.jsxs("div",{className:"opacity-80 text-sm flex items-center gap-2",children:[G.jsx(Fb,{className:"w-4 h-4"})," Сообщение удалено"]}):G.jsxs("div",{id:`msg-${u._id}`,children:[!!g&&G.jsx($b,{msg:g,onClick:()=>{g&&a(g)}}),G.jsx("div",{children:u.text}),u.voice?.url&&G.jsx(Jx,{src:u.voice?.url,cacheKey:u._id}),u.attachments?.map(S=>G.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[G.jsx(C0,{doc:S}),G.jsx("div",{children:S.name}),G.jsx("div",{onClick:O=>{O.stopPropagation(),window.open(S.url,"_blank")},children:G.jsx(Kx,{})})]})),G.jsx(v,{})]}),footer:G.jsx("div",{children:u.created_at&&rl.unix(u.created_at).format("DD.MM hh:mm")})},u._id)})},r4=({msg:a,onClick:u,onPin:s})=>G.jsxs("div",{className:"mb-2 mt-2 border-l-2 w-full border-gray-500 pl-2  flex justify-between items-center",children:[G.jsxs("div",{className:"active:opacity-50 cursor-pointer",onClick:o=>{o.stopPropagation(),u()},id:`pin-msg-${a._id}`,children:[G.jsx("div",{children:a.text}),a.voice?.url&&G.jsx("div",{className:"text-sm text-gray-500",children:"Аудио сообщение"}),a.attachments?.map(o=>G.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[G.jsx(C0,{doc:o}),G.jsx("div",{children:o.name})]}))]}),G.jsx("div",{className:"cursor-pointer active:opacity-50 p-2",onClick:o=>{o.stopPropagation(),s()},children:G.jsx(T0,{})})]}),a4=F.forwardRef((a,u)=>{const[s,o]=F.useState(null),h=F.useRef(null);F.useImperativeHandle(u,()=>({open:R=>{g(!0),o(R.msg),h.current=R}}));const[v,g]=F.useState(!1),y=()=>{g(!1)},A=R=>{y(),jn.channelReaction({channel:s?.channel,message:s?._id,reaction:R}).then(()=>{h.current?.onChange?.()})},S=()=>{const R=s?.reactions?.find(H=>H.user==bn.userID);return G.jsxs("div",{className:" p-2",children:[G.jsx("div",{className:"flex  justify-around items-center",children:g0.map((H,X)=>{if(X<5)return G.jsx(zd,{outline:R?.type!=H.value,className:"m-1 cursor-pointer",onClick:()=>{A(H.value)},children:H.name},H.value)})}),G.jsx("div",{className:"flex  justify-around items-center",children:g0.map((H,X)=>{if(X>=5)return G.jsx(zd,{outline:R?.type!=H.value,className:"m-1 cursor-pointer",onClick:()=>{A(H.value)},children:H.name},H.value)})})]})},O=s?.owner==bn.userID;return!v||!s?._id?null:G.jsxs($1,{opened:v&&!!s?._id,target:`#msg-${s?._id}`,onBackdropClick:y,className:"w-[300px]",children:[G.jsx(S,{}),G.jsxs(Xv,{nested:!0,children:[G.jsx(Ac,{title:"Ответить",link:!0,onClick:()=>{s&&(h.current?.onReply?.(s),y())}}),G.jsx(Ac,{title:s?.pinned?.enabled?"Убрать закрепление":"Закрепить",link:!0,onClick:()=>{s&&(h.current?.onPinned?.(),y())}}),O&&G.jsx(Ac,{title:G.jsx("span",{className:"text-red-500",children:"Удалить"}),link:!0,onClick:()=>{s&&(h.current?.onDelete?.(),y())}})]})]})}),i4=1e4,l4=F.forwardRef(({selectChannel:a,onReply:u,onChannelChange:s},o)=>{const[h,v]=F.useState(null),[g,y]=F.useState(null),A=F.useRef(null),S=F.useRef(null),O=F.useRef(null),R=F.useRef(null);F.useImperativeHandle(o,()=>({loadMessages:()=>{U()}})),F.useEffect(()=>(a?._id&&(R.current=setInterval(()=>{U()},i4)),()=>{R.current&&clearInterval(R.current)}),[a?._id]),F.useEffect(()=>{a?._id&&U()},[a?._id]);const H=()=>{setTimeout(()=>{O.current.scrollTop=O.current.scrollHeight},100)},X=F.useRef(null),U=()=>{a?._id&&jn.channelMessages({channel:a._id,limit:50,offset:0},["shmChannelMessages"]).then(({result:Z})=>{A.current?(A.current._id!=Z?.data?.[Z?.data.length-1]?._id&&H(),S.current=Z?.hash??null):H(),A.current=Z?.data?.[Z?.data.length-1]??null,console.log(Z),v(Z?.data??[])})};F.useEffect(()=>{let Z=h?.filter(fe=>fe.pinned?.enabled);if(!Z)return;let $=Z[Z?.length-1]??null;$?._id!=g?._id&&y($??null)},[h]);const j=Z=>{if(!Z){console.warn("Не указан ID сообщения для скрола");return}let fe=document.getElementById(`msg-${Z}`)?.parentElement?.parentElement?.parentElement?.parentElement?.offsetTop;fe?setTimeout(()=>{fe&&O.current.scrollTo({top:fe-100,behavior:"smooth"})},100):console.warn(`Не найден элемент с ID msg-${Z}`)};return G.jsxs(G.Fragment,{children:[!!g&&G.jsx(W1,{top:!0,children:G.jsx(r4,{onPin:()=>{jn.pinnedMessage({message:g._id}).then(()=>{U()})},onClick:()=>{j(g._id)},msg:g})}),G.jsxs("div",{ref:O,className:"overflow-y-scroll h-screen ",children:[G.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-cover bg-center opacity-20",style:{background:`url(${Zx})`}}),G.jsxs("div",{className:"flex flex-col relative z-1 px-4 mb-48",children:[h?.map(Z=>G.jsx(n4,{onReplayClick:$=>{j($._id)},onClick:()=>{X.current?.open({msg:Z,onChange:()=>{U()},onPinned:()=>{jn.pinnedMessage({message:Z._id}).then(()=>{U()})},onDelete:()=>{jn.channelDeleteMessage({message:Z._id,channel:a?._id}).then(()=>{U()})},onReply:$=>{u($)}})},onChange:()=>{U()},msg:Z},Z._id)),!a?.closed&&a?.type=="support"&&a?.members?.find(Z=>Z.owner==bn.userID)&&G.jsx("div",{onClick:()=>{jn.channelClose({channel:a?._id}).then(()=>{U(),s()})},className:"flex justify-center items-center cursor-pointer active:opacity-50",children:G.jsx(zd,{children:"Закрыть обращение"})})]}),G.jsx(a4,{ref:X})]})]})}),u4=Ds(l4);function ey(a){return Sn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",strokeWidth:"2",d:"M8,11 C8,14 9.790861,15 12,15 C14.209139,15 16,14 16,11 L16,5 C16,2 14.209139,1 12,1 C9.790861,1 8,2 8,5 L8,11 Z M4,9 L4,11 C4,16 7.581722,19 12,19 C16.418278,19 20,16 20,11 L20,9 M12,24 L12,19"},child:[]}]})(a)}function s4(a){return Sn({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.404 5.11l-1.015-1.014-5.075 5.074c-0.841 0.841-0.841 2.204 0 3.044s2.204 0.841 3.045 0l6.090-6.089c1.402-1.401 1.402-3.673 0-5.074s-3.674-1.402-5.075 0l-6.394 6.393c-0.005 0.005-0.010 0.009-0.014 0.013-1.955 1.955-1.955 5.123 0 7.077s5.123 1.954 7.078 0c0.004-0.004 0.008-0.009 0.013-0.014l0.001 0.001 4.365-4.364-1.015-1.014-4.365 4.363c-0.005 0.004-0.009 0.009-0.013 0.013-1.392 1.392-3.656 1.392-5.048 0s-1.392-3.655 0-5.047c0.005-0.005 0.009-0.009 0.014-0.013l-0.001-0.001 6.395-6.393c0.839-0.84 2.205-0.84 3.045 0s0.839 2.205 0 3.044l-6.090 6.089c-0.28 0.28-0.735 0.28-1.015 0s-0.28-0.735 0-1.014l5.075-5.075z"},child:[]}]})(a)}const o4="data:audio/mpeg;base64,SUQzAwAAAAAATlRFTkMAAAATIAAAU291bmQgR3JpbmRlciA0LjAAQVBJQwAAAAQgAAAAAABUQ09QAAAAGSAAAENvcHlyaWdodCBBbGFuIE1jS2lubmV5AP/7mEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFhpbmcAAAAPAAAABQAACNwAGxsbGxsbGxsbGxsbGxsbGxsbG2dnZ2dnZ2dnZ2dnZ2dnZ2dnZ2dn1NTU1NTU1NTU1NTU1NTU1NTU1NTq6urq6urq6urq6urq6urq6urq6v//////////////////////////AAAADkxBTUUzLjEwMAN9AAAAAAAAAADUICQEQI0AAaQAAAjcsAR05wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/7KGgAAAAAAGkFAAAIAAANIKAAAQhQrTzY2gAAvZRnBw8gAAASAgQAAQPMCvxgyF4sQd/ihwagvwAkgHECAHF/8GwQTxBF//gWDi4Bmw48iBB///HeaF8rsmbu/5d5u//+n6f//pIIA9Sniwj4gAM8oC7/DlwJ2IAf4fOYk///GQL6BIG5p//5pDH/6P//+m///0H7kCAABTMwaYmZrIKWFdEGMo7hCh/GCA6h0i7AAYGkI//7iGgPCfasPNA/P4AAxOr55+fsAEWYTzK0HoAAfgkmAoPAAAAYLBgcCgYETEAhHhKYVHhmEhGRSCav2BmjgmjgEZbOBmMdAUKmMBuYoBYjCxhgOhwdBoKMIgpNkEAcwMAWSA0BF4XAL/JXPWkKwV6lTPzATEoGgFrsViTvSF0mJSJ9WuyGGnesxJ/qOUw7IYk7UZqNKV0rawWUOVD1SGoezjMZsPs71h9nen4Zd29DT/Xoah6/KYdvSqNXpVGugqAg4DQFDQNFg6JRgcBpZ0RKPAqIgeArv///2JCAArkkRuDFkVzNKhqEok0UJXRBjiO0QksK8S5KsJfYwcIRaMAFzKh0xgaNa4zLewOkzJjUyoVLyGHiQOFhwBMBAkuk0S4rZk5kwouraxKVtZcWgcpp0EsNh6IuTFYk/09KYdizgs5kL7O9RwzDvZmW3u5U1NXfZnTPwgBRuXtALi4TMtuWst4//////////////67+8f1l+WX7x5rL9ZfjjzLL8su1aXmVNytTZymHZhyou1qTwzDtSNWt0uW6XkJKbF/eMEPr/LrG5Vjjxr6EYMmEQHGLoeGPbFHb60AI+xoMSYDlQus9svzubpY1n//1r/+R/d6u4QSm4EAMw4DTEinOTJkWKCbLUX6nZ6wEUUWA9qOFIAMCtgsKAP/7qGgFgAcJZ1JuYqAAnUz6bcZQAA2A0UM8HgABXRnot4NQAEABjv1KqgyGPfaemuSGQK/bSG0H/hOZmLCM0BggNgUEwgwAwDF0UwAYIiCQGCRGCIdgZ4AxzYA4EABEALnxWgHE3uBow0g0IAGFxfV4GEgAFqwsfDzi2ht4GHRGA0vAGEmBjsZAYWF4RE3+JzIYVES8RAdhfAeFgMJgEAIUAYMAYGBQMBACgLAUG6n/upaZXMGTUaADAsMFBgkTsA0HAMKgMAYGBgkG8Qej//NE+7+zDkkwRcniKlIpF8nC6XjEx////9voJpIqUmyKR1ZoXyuaH//p/4t0hD4m0AIxuBiGAyAAh07YSQmmTwdBPQ+sdqxgLqBJF0MbBuz5F5fIUnQugI0AkvTbCysBRGIKEDA5D4DNjgmDCzjr8DHgQyQLTBAoxRBAcwTMYgoEcoj/8PUI8rmyJPkTMCNIgRMixFTIyN//stOtPdqKhtDsK6SKX/9//skv/Utf////ZttnSRUpNBFI6Ylwi5ByKF//6X/4Mg0DgSkAAGYAQrIhOITCGIWOP5Zdquy13OWrSAoCAwGIQOZJ4xs0+GWSEYgEJhQDiQJpKbOljMtzjMOy3WWcpjNqrS4/ll/5ZZfvn5U3NZd/+ayxx5//vGz3HHH8u/uVOE/Uuy7/xL/iL////aVDRmFbSAAEx4HcWecKlmFJ6K6i8Ty3KIrUWSOgDCCTAyAHwMIAkG4g24ZJaNJJKkkl0kmv+iijUlRRdFFutFJ/6nqdq1EyMqOEnTu3/2nf////xKdBUFf/UgAAJUH///XRzU2GoG+DnDQBQDAYoFYGS56BoYOAYTAYDwCAgEAYXAA+TBVVW71d2Z+////////4V//6f//1/9RgDA93//T/PKnl7dFhYeexIIxofMl6TXhoDDaGYgAAUNR2o0daTLEEOJvoCE8NvzIosscwg//7GEg6idH/N0qYNSpgKyKZpQQ7OINIUTs0CQAA35ClQoOwAIDIivmCBuXaCBhb9////+V/5twEaH+t/br24Kze9GpyIFRMJgIPABAOpGSFSagN7VJU3XysY9/PH+9/v85z+6se96BP7v6vE1UCAAAAAAEAAACgAD8v/2+UAm/AFD4mb1uZ+v//WHf////0hf/7GEgRgAFDEk5WBUAAMiNKDMCoAAAAAaQcAAAgAAA0g4AABEAkQqNisAIAAABAAGCACEGB/l8Pq3isUAHfghBdFyX/FUsTCsTkv5UyHQD/2L//XZ//+z///9i1TEFNRTMuMTAwVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVRBRwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/",c4=({onCancel:a,onSend:u})=>{const[s,o]=F.useState(0),h=F.useRef(null),v=F.useRef(null),g=F.useRef(null),y=F.useRef(null),A=F.useRef([]),S=F.useRef(!1);F.useEffect(()=>S.current?void 0:(S.current=!0,(async()=>{try{const U=await navigator.mediaDevices.getUserMedia({audio:!0});g.current=U;const j=new MediaRecorder(U,{mimeType:"audio/webm"});j.ondataavailable=Z=>A.current.push(Z.data),j.onstop=()=>{const Z=new Blob(A.current,{type:"audio/webm"});h.current=Z,A.current=[]},j.start(),v.current=j,y.current=setInterval(()=>o(Z=>Z+1),1e3)}catch(U){console.error("🎙 Не удалось получить доступ к микрофону",U),a()}})(),()=>{y.current&&clearInterval(y.current)}),[]);const O=()=>{v?.current?.stop(),g.current?.getTracks().forEach(X=>X.stop()),y.current&&clearInterval(y.current),setTimeout(()=>{h.current&&u(h.current)},200)},R=()=>{v?.current?.stop(),g.current?.getTracks().forEach(X=>X.stop()),y.current&&clearInterval(y.current),a()},H=X=>`${Math.floor(X/60)}:${(X%60).toString().padStart(2,"0")}`;return G.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-60 flex flex-col items-center justify-center z-50",children:G.jsxs("div",{className:"flex  items-start space-x-4 ",children:[G.jsx("div",{onClick:R,className:" bg-gray-600 text-white p-6 rounded-full",children:G.jsx(T0,{size:36})}),G.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[G.jsx("div",{className:"animate-pulse bg-red-600 p-6 rounded-full",children:G.jsx(ey,{className:"text-white",size:36})}),G.jsx("div",{className:"text-white text-xl",children:H(s)})]}),G.jsx("div",{className:" bg-green-600 text-white  p-6 rounded-full",onClick:O,children:G.jsx(Wb,{size:36})})]})})};async function f4(){return new Promise(a=>{const u=document.createElement("input");u.type="file",u.style.display="none",u.addEventListener("change",()=>{const s=u.files?.[0]??null;if(u.remove(),s&&s.size>5242880){alert("❌ Файл слишком большой. Максимальный размер — 5MB."),a(null);return}a(s)}),document.body.appendChild(u),u.click()})}const d4=new Audio(o4),h4=F.forwardRef(({onSended:a,selectChannelID:u},s)=>{const[o,h]=F.useState(null);F.useImperativeHandle(s,()=>({setReplyMsg:$=>{h($)}}));const v=()=>{g||f4().then($=>{$&&A($)})},[g,y]=F.useState(!1),A=$=>{let fe=new FormData;fe.append("file",$),y(!0),jn.channelDocumentUpload(fe).then(me=>{if(!me){y(!1);return}if(!u){y(!1);return}j({attachments:[me],channel:u})}).catch(()=>{y(!1)})},[S,O]=F.useState(""),R=F.useRef(null),H=F.useRef(null),[X,U]=F.useState(!1),j=$=>{u&&($.channel=u,o?._id&&($.reply=o._id),y(!0),jn.channelSendMessage($).then(()=>{a(),o&&h(null),d4.play(),$.text&&(O(""),H.current&&(H.current.style.height="auto"))}).finally(()=>{y(!1)}))},Z=()=>{if(!g)if(!S)U(!0);else{if(!u)return;j({channel:u,text:S})}};return G.jsxs(G.Fragment,{children:[G.jsxs("div",{style:{height:"auto"},className:"left-0 z-10 bottom-0 absolute  w-full  p-2 bg-ios-light-surface-2 dark:bg-ios-dark-surface-2 ",children:[g&&G.jsx("div",{className:"flex items-center justify-center w-full  mb-2",children:G.jsx(A0,{className:"w-4 h-4 text-gray-800 dark:text-white"})}),o&&G.jsx($b,{onClick:()=>{g||h(null)},msg:o}),G.jsxs("div",{className:"w-full  flex",children:[G.jsx("div",{className:"flex items-end",children:G.jsx("div",{className:"p-2 flex items-center justify-center min-h-11",children:G.jsx("div",{onClick:()=>{v()},ref:R,children:G.jsx(s4,{className:"text-gray-500",size:20})})})}),G.jsx("textarea",{ref:H,value:S,className:" p-2 w-full outline-none border-none text-base resize-none overflow-hidden bg-white  rounded-md dark:bg-gray-800",rows:1,onChange:$=>{if(g)return;const fe=$.currentTarget;fe.style.height="auto",fe.style.height=`${fe.scrollHeight}px`;let me=$.target?.value;me.trim()===""&&(me=""),O(me)},placeholder:"Введите сообщение..."}),G.jsx("div",{className:"flex items-end w-10 ",children:G.jsx("div",{onClick:()=>{Z()},className:"p-2 flex items-center justify-center min-h-11 relative",children:S?G.jsxs(G.Fragment,{children:[G.jsx("input",{onFocus:()=>{H.current?.focus()},className:"absolute opacity-0  right-0 left-0 top-0 bottom-0  cursor-pointer"}),G.jsx(Wb,{size:28,className:"w-6"})]}):G.jsx(ey,{size:28,className:"w-6"})})})]})]}),X&&G.jsx(c4,{onCancel:()=>{U(!1)},onSend:$=>{let fe=new FormData;fe.append("file",$,"audio.webm"),y(!0),jn.channelVoiceUpload(fe).then(me=>{me?._id&&u?j({channel:u,voice:{_id:me._id}}):y(!1)}).catch(()=>{y(!1)}),U(!1)}})]})});rl.locale("ru");const m4=({noPage:a,channelID:u})=>{const s=F.useRef(null),[o,h]=F.useState(null),v=()=>{h(null),y(null),u&&jn.channelInfo({channel:u}).then(({result:O})=>{O&&(h(O??null),y(!!O?.members?.find(R=>R.owner==bn.userID)))})};F.useEffect(()=>{v()},[u]);const[g,y]=F.useState(null),A=F.useRef(null),S=({children:O})=>a?G.jsx("div",{className:"relative w-full h-full",children:O}):G.jsx(xc,{className:"ios:bg-white ios:dark:bg-black overflow-hidden",children:O});return G.jsxs(S,{children:[!bn.cap&&G.jsx(Ld,{title:G.jsx("div",{className:"text-sm ml-3",children:o?.name}),right:bn.isMobile()&&G.jsx(G.Fragment,{children:G.jsx(Cv,{onClick:()=>{T4()},children:G.jsx(T0,{size:24})})})}),!o?.closed&&g!=null&&!!o?._id&&G.jsx(G.Fragment,{children:g?G.jsx(h4,{ref:s,selectChannelID:o?._id,onSended:()=>{A.current?.loadMessages()}}):G.jsxs("div",{style:{height:"auto"},className:"left-0 z-10 bottom-0 absolute  w-full  p-2 bg-ios-light-surface-2 dark:bg-ios-dark-surface-2 ",children:[" ",G.jsx(Qv,{onClick:()=>{o?._id&&jn.joinChannel({channel:o?._id}).then(()=>{v()})},children:"Присоединиться"})]})}),G.jsx(u4,{ref:A,selectChannel:o,onReply:O=>{s.current?.setReplyMsg(O)},onChannelChange:()=>{v()}})]})},ty=Ds(m4);rl.locale("ru");const v4=()=>{const a=async()=>{let u=await jn.mode();if(u.result=="widget"){pn.setToken(()=>new URLSearchParams(window.location.search).get("token")??null);const o=new URLSearchParams(window.location.search).get("channel");if(o){bn.setIsFixedChannel(!0),xs().ChannelPage.move({channelID:o});return}else xs().MainPage.move({}),bn.setIsFixedChannel(!1);bn.loadUser()}else pn.setToken(()=>localStorage.getItem("token")??null),pn.setUnauthorizedHandler(()=>{localStorage.removeItem("token"),window.location.reload()}),bn.setMode(u.result??"full"),localStorage.getItem("token")?(bn.loadUser(),xs().MainPage.move({})):xs().LoginPage.move({})};return F.useEffect(()=>{a()},[]),G.jsx(xc,{className:"ios:bg-white ios:dark:bg-black overflow-hidden flex items-center justify-center",children:G.jsx(A0,{})})},g4=Ds(v4);function p4(a){return Sn({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{opacity:"0.2",fillRule:"evenodd",clipRule:"evenodd",d:"M12 19C15.866 19 19 15.866 19 12C19 8.13401 15.866 5 12 5C8.13401 5 5 8.13401 5 12C5 15.866 8.13401 19 12 19ZM12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",fill:"currentColor"},child:[]},{tag:"path",attr:{d:"M2 12C2 6.47715 6.47715 2 12 2V5C8.13401 5 5 8.13401 5 12H2Z",fill:"currentColor"},child:[]}]})(a)}rl.locale("ru");const b4=()=>{const[a,u]=F.useState(""),[s,o]=F.useState(""),[h,v]=F.useState(!1),g=()=>{v(!0),jn.auth({login:a,password:s}).then(({result:y})=>{y&&(localStorage.setItem("token",y),xs().MainPage.move({}))}).catch(y=>{v(!1)})};return G.jsxs(xc,{className:"ios:bg-white ios:dark:bg-black overflow-hidden",children:[G.jsx(Ld,{title:"Вход",large:!0}),G.jsxs(Xv,{dividers:!0,outline:!0,children:[G.jsx(Ip,{label:"Логин",placeholder:"Введите логин",value:a,onChange:y=>u(y.target.value)}),G.jsx(Ip,{label:"Пароль",placeholder:"Введите пароль",value:s,onChange:y=>o(y.target.value)})]}),G.jsx(Q1,{children:G.jsx(Qv,{disabled:!a||!s||h,large:!0,outline:!0,onClick:()=>{g()},children:h?G.jsx(p4,{className:"animate-spin"}):"Вход"})})]})},y4=Ds(b4);function T1(a){return Sn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"},child:[]},{tag:"polyline",attr:{points:"16 17 21 12 16 7"},child:[]},{tag:"line",attr:{x1:"21",x2:"9",y1:"12",y2:"12"},child:[]}]})(a)}function A4(a){return Sn({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"},child:[]}]})(a)}function _4(a){return Sn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16 2H8C4.691 2 2 4.691 2 8v13a1 1 0 0 0 1 1h13c3.309 0 6-2.691 6-6V8c0-3.309-2.691-6-6-6zm4 14c0 2.206-1.794 4-4 4H4V8c0-2.206 1.794-4 4-4h8c2.206 0 4 1.794 4 4v8z"},child:[]},{tag:"path",attr:{d:"M7 9h10v2H7zm0 4h7v2H7z"},child:[]}]})(a)}function x4(a){return Sn({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16 2H8C4.691 2 2 4.691 2 8v13a1 1 0 0 0 1 1h13c3.309 0 6-2.691 6-6V8c0-3.309-2.691-6-6-6zm4 14c0 2.206-1.794 4-4 4H4V8c0-2.206 1.794-4 4-4h8c2.206 0 4 1.794 4 4v8z"},child:[]},{tag:"path",attr:{d:"M15.292 7.295 12 10.587 8.708 7.295 7.294 8.709l3.292 3.292-3.292 3.292 1.414 1.414L12 13.415l3.292 3.292 1.414-1.414-3.292-3.292 3.292-3.292z"},child:[]}]})(a)}const S4=({className:a})=>G.jsx("div",{className:`w-full  bg-gray-200 animate-pulse ${a}`});rl.locale("ru");const E4=({message:a})=>a?.deleted?"Удалено":a?a?.text?a?.text:a.attachments?.length?"Прикрепленные файлы":a?.voice?.url?"Аудио сообщение":"...":"...",O4=({channelTab:a,onSelectChannel:u,selectChannelID:s})=>{const[o,h]=F.useState(!1),[v,g]=F.useState([]);return F.useEffect(()=>{h(!0),!a||a==="member"?jn.channelList({},["shmChannelMessages"]).then(({result:y})=>{g(y?.data??[])}).finally(()=>{h(!1)}):jn.joinChannelList({},["shmChannelMessages"]).then(({result:y})=>{g(y?.data??[])}).finally(()=>{h(!1)})},[a]),G.jsx(Xv,{strong:!0,outline:!0,children:o?G.jsx("div",{children:[1,2,3,4].map(()=>G.jsx(S4,{className:"h-20 mb-2"}))}):v.length?v.map(y=>{const A=M0.shmChannelMessagesByID(y.lastMessage),S=y.unreadCounts?.[bn.userID]??0;return G.jsx(Ac,{style:{opacity:y.closed?.5:1},after:S?G.jsx(I1,{children:S}):void 0,link:!0,onClick:()=>{y._id&&u(y)},chevron:!1,title:y.name?y.name:"Без имени",header:y.closed?"Диалог закрыт":void 0,text:G.jsx(E4,{message:A}),footer:y.created_at?rl(y.created_at).format("DD.MM.YYYY HH:mm"):"",media:G.jsx("div",{className:"w-10 h-10 flex items-center justify-center text-2xl text-gray-500 bg-gray-100 rounded-full",children:y.closed?G.jsx(x4,{}):G.jsx(_4,{})})})}):G.jsx("div",{className:"py-10 opacity-50",children:G.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[G.jsx(A4,{size:24}),G.jsx("div",{className:"text-sm mt-2",children:"Нет диалогов"})]})})})},C1=Ds(O4);rl.locale("ru");const w4=()=>{const[a,u]=F.useState("member"),[s,o]=F.useState(null);return bn.isMobile()?G.jsxs(xc,{className:"ios:bg-white ios:dark:bg-black overflow-hidden",children:[!bn.cap&&G.jsx(Ld,{title:"Диалоги",right:bn.mode=="full"&&G.jsx(Cv,{onClick:()=>{localStorage.clear(),window.location.reload()},children:G.jsx(T1,{size:24})}),subnavbar:G.jsxs(e0,{outline:!0,children:[G.jsx(Rd,{onClick:()=>u("member"),active:a==="member",value:"member",children:"Активные"}),G.jsx(Rd,{active:a==="join",onClick:()=>u("join"),value:"join",children:"Новые"})]})}),G.jsx(C1,{selectChannelID:s?._id??null,channelTab:a,onSelectChannel:h=>{h?._id&&xs().ChannelPage.move({channelID:h?._id})},selectChannel:s})]}):G.jsx(xc,{className:"ios:bg-white ios:dark:bg-black overflow-hidden flex items-center justify-center",children:G.jsxs("div",{className:"flex h-screen w-full overflow-hidden",children:[G.jsxs("div",{className:"w-[400px]  flex-shrink-0 overflow-hidden",children:[G.jsx(Ld,{title:"Диалоги",right:bn.mode=="full"&&G.jsx(Cv,{onClick:()=>{localStorage.clear(),window.location.reload()},children:G.jsx(T1,{size:24})}),subnavbar:G.jsxs(e0,{outline:!0,children:[G.jsx(Rd,{onClick:()=>u("member"),active:a==="member",value:"all",children:"Активные"}),G.jsx(Rd,{onClick:()=>u("join"),active:a==="join",value:"unread",children:"Новые"})]})}),G.jsx(C1,{selectChannelID:s?._id??null,channelTab:a,onSelectChannel:o,selectChannel:s})]}),G.jsx("div",{className:"flex-1 ",children:s?._id&&G.jsx(ty,{channelID:s?._id,noPage:!0})})]})})},M4=Ds(w4),T4=()=>{yc.current?.goBack()},xs=()=>({LoadingPage:{component:g4,move:a=>{yc.current?.onChanceRoute("LoadingPage",a)}},LoginPage:{component:y4,move:a=>{yc.current?.onChanceRoute("LoginPage",a)}},MainPage:{component:M4,move:a=>{yc.current?.onChanceRoute("MainPage",a)}},ChannelPage:{component:ty,move:a=>{yc.current?.onChanceRoute("ChannelPage",a)}}}),yc=W.createRef(),C4=W.forwardRef((a,u)=>{const s=F.useRef(0);F.useImperativeHandle(u,()=>({goBack:()=>{h(y=>y.slice(0,-1))},onChanceRoute:(y,A)=>{o[o.length-1]?.route!==y&&h(S=>{const O={route:y,props:A,id:s.current++};return[...S,O]})}}));const[o,h]=F.useState([]),[v,g]=F.useState(!1);return F.useEffect(()=>{h([{route:"LoadingPage",props:{},id:s.current++}]),g(!0)},[]),F.useEffect(()=>{if(v&&o.length==0){h([{route:"LoadingPage",props:{},id:s.current++}]);return}},[o,v]),G.jsx(G.Fragment,{children:o.map((y,A)=>{let S=xs()[y.route];if(!S)return null;if(A==o.length-1)return G.jsx(S.component,{...y.props})})})}),R4=()=>/iPad|iPhone|iPod/.test(navigator.userAgent),N4=a=>{let u="k-color-brand-primary";switch(a){case"primary":u="k-color-brand-primary";break;case"red":u="k-color-brand-red";break;case"green":u="k-color-brand-green";break;case"blue":u="k-color-brand-blue";break;case"pink":u="k-color-brand-pink";break;case"yellow":u="k-color-brand-yellow";break;case"orange":u="k-color-brand-orange";break;case"purple":u="k-color-brand-purple";break;case"deeppurple":u="k-color-brand-deeppurple";break;case"lightblue":u="k-color-brand-lightblue";break;case"teal":u="k-color-brand-teal";break;case"lime":u="k-color-brand-lime";break;case"deeporange":u="k-color-brand-deeporange";break}const s=document.documentElement;s.classList.forEach(o=>{o.includes("k-color")&&s.classList.remove(o)}),u&&s.classList.add(u)};rl.locale("ru");pn.setEndpoints([Ux()]);pn.setToast(a=>{Bx(a)});const D4=()=>{const{userID:a}=bn;return F.useEffect(()=>{const u=new URLSearchParams(window.location.search);u.get("cap")?bn.setCap(!0):bn.setCap(!1),u.get("dark")?document.body.classList.add("dark"):document.body.classList.remove("dark");let h=u.get("theme");h&&N4(h)},[]),G.jsxs(V1,{theme:R4()?"ios":"material",safeAreas:!0,children:[G.jsx(C4,{ref:yc}),G.jsx(zx,{ref:Kb})]})},B4=Ds(D4);Dy.createRoot(document.getElementById("root")).render(G.jsx(F.StrictMode,{children:G.jsx(B4,{})}));
