(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const h of document.querySelectorAll('link[rel="modulepreload"]'))o(h);new MutationObserver(h=>{for(const g of h)if(g.type==="childList")for(const v of g.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&o(v)}).observe(document,{childList:!0,subtree:!0});function s(h){const g={};return h.integrity&&(g.integrity=h.integrity),h.referrerPolicy&&(g.referrerPolicy=h.referrerPolicy),h.crossOrigin==="use-credentials"?g.credentials="include":h.crossOrigin==="anonymous"?g.credentials="omit":g.credentials="same-origin",g}function o(h){if(h.ep)return;h.ep=!0;const g=s(h);fetch(h.href,g)}})();var pg=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function y0(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var gp={exports:{}},Cd={};/**
 * @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 L0;function Ry(){if(L0)return Cd;L0=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,h,g){var v=null;if(g!==void 0&&(v=""+g),h.key!==void 0&&(v=""+h.key),"key"in h){g={};for(var y in h)y!=="key"&&(g[y]=h[y])}else g=h;return h=g.ref,{$$typeof:r,type:o,key:v,ref:h!==void 0?h:null,props:g}}return Cd.Fragment=i,Cd.jsx=s,Cd.jsxs=s,Cd}var B0;function Ny(){return B0||(B0=1,gp.exports=Ry()),gp.exports}var U=Ny(),vp={exports:{}},We={};/**
 * @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 z0;function Dy(){if(z0)return We;z0=1;var r=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),v=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"),N=Symbol.iterator;function q(w){return w===null||typeof w!="object"?null:(w=N&&w[N]||w["@@iterator"],typeof w=="function"?w:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},H=Object.assign,G={};function W(w,Q,oe){this.props=w,this.context=Q,this.refs=G,this.updater=oe||Z}W.prototype.isReactComponent={},W.prototype.setState=function(w,Q){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,Q,"setState")},W.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function fe(){}fe.prototype=W.prototype;function ve(w,Q,oe){this.props=w,this.context=Q,this.refs=G,this.updater=oe||Z}var pe=ve.prototype=new fe;pe.constructor=ve,H(pe,W.prototype),pe.isPureReactComponent=!0;var ye=Array.isArray,te={H:null,A:null,T:null,S:null,V:null},ce=Object.prototype.hasOwnProperty;function be(w,Q,oe,F,me,we){return oe=we.ref,{$$typeof:r,type:w,key:Q,ref:oe!==void 0?oe:null,props:we}}function ee(w,Q){return be(w.type,Q,void 0,void 0,void 0,w.props)}function Me(w){return typeof w=="object"&&w!==null&&w.$$typeof===r}function Ne(w){var Q={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(oe){return Q[oe]})}var Ae=/\/+/g;function De(w,Q){return typeof w=="object"&&w!==null&&w.key!=null?Ne(""+w.key):Q.toString(36)}function qe(){}function ge(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(qe,qe):(w.status="pending",w.then(function(Q){w.status==="pending"&&(w.status="fulfilled",w.value=Q)},function(Q){w.status==="pending"&&(w.status="rejected",w.reason=Q)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function ne(w,Q,oe,F,me){var we=typeof w;(we==="undefined"||we==="boolean")&&(w=null);var _e=!1;if(w===null)_e=!0;else switch(we){case"bigint":case"string":case"number":_e=!0;break;case"object":switch(w.$$typeof){case r:case i:_e=!0;break;case O:return _e=w._init,ne(_e(w._payload),Q,oe,F,me)}}if(_e)return me=me(w),_e=F===""?"."+De(w,0):F,ye(me)?(oe="",_e!=null&&(oe=_e.replace(Ae,"$&/")+"/"),ne(me,Q,oe,"",function(ot){return ot})):me!=null&&(Me(me)&&(me=ee(me,oe+(me.key==null||w&&w.key===me.key?"":(""+me.key).replace(Ae,"$&/")+"/")+_e)),Q.push(me)),1;_e=0;var Ye=F===""?".":F+":";if(ye(w))for(var je=0;je<w.length;je++)F=w[je],we=Ye+De(F,je),_e+=ne(F,Q,oe,we,me);else if(je=q(w),typeof je=="function")for(w=je.call(w),je=0;!(F=w.next()).done;)F=F.value,we=Ye+De(F,je++),_e+=ne(F,Q,oe,we,me);else if(we==="object"){if(typeof w.then=="function")return ne(ge(w),Q,oe,F,me);throw Q=String(w),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return _e}function R(w,Q,oe){if(w==null)return w;var F=[],me=0;return ne(w,F,"","",function(we){return Q.call(oe,we,me++)}),F}function X(w){if(w._status===-1){var Q=w._result;Q=Q(),Q.then(function(oe){(w._status===0||w._status===-1)&&(w._status=1,w._result=oe)},function(oe){(w._status===0||w._status===-1)&&(w._status=2,w._result=oe)}),w._status===-1&&(w._status=0,w._result=Q)}if(w._status===1)return w._result.default;throw w._result}var B=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)};function he(){}return We.Children={map:R,forEach:function(w,Q,oe){R(w,function(){Q.apply(this,arguments)},oe)},count:function(w){var Q=0;return R(w,function(){Q++}),Q},toArray:function(w){return R(w,function(Q){return Q})||[]},only:function(w){if(!Me(w))throw Error("React.Children.only expected to receive a single React element child.");return w}},We.Component=W,We.Fragment=s,We.Profiler=h,We.PureComponent=ve,We.StrictMode=o,We.Suspense=A,We.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=te,We.__COMPILER_RUNTIME={__proto__:null,c:function(w){return te.H.useMemoCache(w)}},We.cache=function(w){return function(){return w.apply(null,arguments)}},We.cloneElement=function(w,Q,oe){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var F=H({},w.props),me=w.key,we=void 0;if(Q!=null)for(_e in Q.ref!==void 0&&(we=void 0),Q.key!==void 0&&(me=""+Q.key),Q)!ce.call(Q,_e)||_e==="key"||_e==="__self"||_e==="__source"||_e==="ref"&&Q.ref===void 0||(F[_e]=Q[_e]);var _e=arguments.length-2;if(_e===1)F.children=oe;else if(1<_e){for(var Ye=Array(_e),je=0;je<_e;je++)Ye[je]=arguments[je+2];F.children=Ye}return be(w.type,me,void 0,void 0,we,F)},We.createContext=function(w){return w={$$typeof:v,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:g,_context:w},w},We.createElement=function(w,Q,oe){var F,me={},we=null;if(Q!=null)for(F in Q.key!==void 0&&(we=""+Q.key),Q)ce.call(Q,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(me[F]=Q[F]);var _e=arguments.length-2;if(_e===1)me.children=oe;else if(1<_e){for(var Ye=Array(_e),je=0;je<_e;je++)Ye[je]=arguments[je+2];me.children=Ye}if(w&&w.defaultProps)for(F in _e=w.defaultProps,_e)me[F]===void 0&&(me[F]=_e[F]);return be(w,we,void 0,void 0,null,me)},We.createRef=function(){return{current:null}},We.forwardRef=function(w){return{$$typeof:y,render:w}},We.isValidElement=Me,We.lazy=function(w){return{$$typeof:O,_payload:{_status:-1,_result:w},_init:X}},We.memo=function(w,Q){return{$$typeof:S,type:w,compare:Q===void 0?null:Q}},We.startTransition=function(w){var Q=te.T,oe={};te.T=oe;try{var F=w(),me=te.S;me!==null&&me(oe,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(he,B)}catch(we){B(we)}finally{te.T=Q}},We.unstable_useCacheRefresh=function(){return te.H.useCacheRefresh()},We.use=function(w){return te.H.use(w)},We.useActionState=function(w,Q,oe){return te.H.useActionState(w,Q,oe)},We.useCallback=function(w,Q){return te.H.useCallback(w,Q)},We.useContext=function(w){return te.H.useContext(w)},We.useDebugValue=function(){},We.useDeferredValue=function(w,Q){return te.H.useDeferredValue(w,Q)},We.useEffect=function(w,Q,oe){var F=te.H;if(typeof oe=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return F.useEffect(w,Q)},We.useId=function(){return te.H.useId()},We.useImperativeHandle=function(w,Q,oe){return te.H.useImperativeHandle(w,Q,oe)},We.useInsertionEffect=function(w,Q){return te.H.useInsertionEffect(w,Q)},We.useLayoutEffect=function(w,Q){return te.H.useLayoutEffect(w,Q)},We.useMemo=function(w,Q){return te.H.useMemo(w,Q)},We.useOptimistic=function(w,Q){return te.H.useOptimistic(w,Q)},We.useReducer=function(w,Q,oe){return te.H.useReducer(w,Q,oe)},We.useRef=function(w){return te.H.useRef(w)},We.useState=function(w){return te.H.useState(w)},We.useSyncExternalStore=function(w,Q,oe){return te.H.useSyncExternalStore(w,Q,oe)},We.useTransition=function(){return te.H.useTransition()},We.version="19.1.1",We}var U0;function Qg(){return U0||(U0=1,vp.exports=Dy()),vp.exports}var le=Qg();const J=y0(le);var pp={exports:{}},Rd={},bp={exports:{}},yp={};/**
 * @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 j0;function Ly(){return j0||(j0=1,(function(r){function i(R,X){var B=R.length;R.push(X);e:for(;0<B;){var he=B-1>>>1,w=R[he];if(0<h(w,X))R[he]=X,R[B]=w,B=he;else break e}}function s(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var X=R[0],B=R.pop();if(B!==X){R[0]=B;e:for(var he=0,w=R.length,Q=w>>>1;he<Q;){var oe=2*(he+1)-1,F=R[oe],me=oe+1,we=R[me];if(0>h(F,B))me<w&&0>h(we,F)?(R[he]=we,R[me]=B,he=me):(R[he]=F,R[oe]=B,he=oe);else if(me<w&&0>h(we,B))R[he]=we,R[me]=B,he=me;else break e}}return X}function h(R,X){var B=R.sortIndex-X.sortIndex;return B!==0?B:R.id-X.id}if(r.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var g=performance;r.unstable_now=function(){return g.now()}}else{var v=Date,y=v.now();r.unstable_now=function(){return v.now()-y}}var A=[],S=[],O=1,N=null,q=3,Z=!1,H=!1,G=!1,W=!1,fe=typeof setTimeout=="function"?setTimeout:null,ve=typeof clearTimeout=="function"?clearTimeout:null,pe=typeof setImmediate<"u"?setImmediate:null;function ye(R){for(var X=s(S);X!==null;){if(X.callback===null)o(S);else if(X.startTime<=R)o(S),X.sortIndex=X.expirationTime,i(A,X);else break;X=s(S)}}function te(R){if(G=!1,ye(R),!H)if(s(A)!==null)H=!0,ce||(ce=!0,De());else{var X=s(S);X!==null&&ne(te,X.startTime-R)}}var ce=!1,be=-1,ee=5,Me=-1;function Ne(){return W?!0:!(r.unstable_now()-Me<ee)}function Ae(){if(W=!1,ce){var R=r.unstable_now();Me=R;var X=!0;try{e:{H=!1,G&&(G=!1,ve(be),be=-1),Z=!0;var B=q;try{t:{for(ye(R),N=s(A);N!==null&&!(N.expirationTime>R&&Ne());){var he=N.callback;if(typeof he=="function"){N.callback=null,q=N.priorityLevel;var w=he(N.expirationTime<=R);if(R=r.unstable_now(),typeof w=="function"){N.callback=w,ye(R),X=!0;break t}N===s(A)&&o(A),ye(R)}else o(A);N=s(A)}if(N!==null)X=!0;else{var Q=s(S);Q!==null&&ne(te,Q.startTime-R),X=!1}}break e}finally{N=null,q=B,Z=!1}X=void 0}}finally{X?De():ce=!1}}}var De;if(typeof pe=="function")De=function(){pe(Ae)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,ge=qe.port2;qe.port1.onmessage=Ae,De=function(){ge.postMessage(null)}}else De=function(){fe(Ae,0)};function ne(R,X){be=fe(function(){R(r.unstable_now())},X)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(R){R.callback=null},r.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<R?Math.floor(1e3/R):5},r.unstable_getCurrentPriorityLevel=function(){return q},r.unstable_next=function(R){switch(q){case 1:case 2:case 3:var X=3;break;default:X=q}var B=q;q=X;try{return R()}finally{q=B}},r.unstable_requestPaint=function(){W=!0},r.unstable_runWithPriority=function(R,X){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var B=q;q=R;try{return X()}finally{q=B}},r.unstable_scheduleCallback=function(R,X,B){var he=r.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?he+B:he):B=he,R){case 1:var w=-1;break;case 2:w=250;break;case 5:w=1073741823;break;case 4:w=1e4;break;default:w=5e3}return w=B+w,R={id:O++,callback:X,priorityLevel:R,startTime:B,expirationTime:w,sortIndex:-1},B>he?(R.sortIndex=B,i(S,R),s(A)===null&&R===s(S)&&(G?(ve(be),be=-1):G=!0,ne(te,B-he))):(R.sortIndex=w,i(A,R),H||Z||(H=!0,ce||(ce=!0,De()))),R},r.unstable_shouldYield=Ne,r.unstable_wrapCallback=function(R){var X=q;return function(){var B=q;q=X;try{return R.apply(this,arguments)}finally{q=B}}}})(yp)),yp}var k0;function By(){return k0||(k0=1,bp.exports=Ly()),bp.exports}var Ap={exports:{}},ea={};/**
 * @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 H0;function zy(){if(H0)return ea;H0=1;var r=Qg();function i(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(i(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 g(A,S,O){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:h,key:N==null?null:""+N,children:A,containerInfo:S,implementation:O}}var v=r.__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 ea.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ea.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(i(299));return g(A,S,null,O)},ea.flushSync=function(A){var S=v.T,O=o.p;try{if(v.T=null,o.p=2,A)return A()}finally{v.T=S,o.p=O,o.d.f()}},ea.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))},ea.prefetchDNS=function(A){typeof A=="string"&&o.d.D(A)},ea.preinit=function(A,S){if(typeof A=="string"&&S&&typeof S.as=="string"){var O=S.as,N=y(O,S.crossOrigin),q=typeof S.integrity=="string"?S.integrity:void 0,Z=typeof S.fetchPriority=="string"?S.fetchPriority:void 0;O==="style"?o.d.S(A,typeof S.precedence=="string"?S.precedence:void 0,{crossOrigin:N,integrity:q,fetchPriority:Z}):O==="script"&&o.d.X(A,{crossOrigin:N,integrity:q,fetchPriority:Z,nonce:typeof S.nonce=="string"?S.nonce:void 0})}},ea.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)},ea.preload=function(A,S){if(typeof A=="string"&&typeof S=="object"&&S!==null&&typeof S.as=="string"){var O=S.as,N=y(O,S.crossOrigin);o.d.L(A,O,{crossOrigin:N,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})}},ea.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)},ea.requestFormReset=function(A){o.d.r(A)},ea.unstable_batchedUpdates=function(A,S){return A(S)},ea.useFormState=function(A,S,O){return v.H.useFormState(A,S,O)},ea.useFormStatus=function(){return v.H.useHostTransitionStatus()},ea.version="19.1.1",ea}var G0;function D1(){if(G0)return Ap.exports;G0=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),Ap.exports=zy(),Ap.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 q0;function Uy(){if(q0)return Rd;q0=1;var r=By(),i=Qg(),s=D1();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 g(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 v(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(g(e)!==e)throw Error(o(188))}function A(e){var t=e.alternate;if(!t){if(t=g(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,u=t;;){var c=n.return;if(c===null)break;var d=c.alternate;if(d===null){if(u=c.return,u!==null){n=u;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===n)return y(c),e;if(d===u)return y(c),t;d=d.sibling}throw Error(o(188))}if(n.return!==u.return)n=c,u=d;else{for(var p=!1,x=c.child;x;){if(x===n){p=!0,n=c,u=d;break}if(x===u){p=!0,u=c,n=d;break}x=x.sibling}if(!p){for(x=d.child;x;){if(x===n){p=!0,n=d,u=c;break}if(x===u){p=!0,u=d,n=c;break}x=x.sibling}if(!p)throw Error(o(189))}}if(n.alternate!==u)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,N=Symbol.for("react.element"),q=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),fe=Symbol.for("react.provider"),ve=Symbol.for("react.consumer"),pe=Symbol.for("react.context"),ye=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),Me=Symbol.for("react.activity"),Ne=Symbol.for("react.memo_cache_sentinel"),Ae=Symbol.iterator;function De(e){return e===null||typeof e!="object"?null:(e=Ae&&e[Ae]||e["@@iterator"],typeof e=="function"?e:null)}var qe=Symbol.for("react.client.reference");function ge(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===qe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case H:return"Fragment";case W:return"Profiler";case G:return"StrictMode";case te:return"Suspense";case ce:return"SuspenseList";case Me:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Z:return"Portal";case pe:return(e.displayName||"Context")+".Provider";case ve: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:ge(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var ne=Array.isArray,R=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},he=[],w=-1;function Q(e){return{current:e}}function oe(e){0>w||(e.current=he[w],he[w]=null,w--)}function F(e,t){w++,he[w]=e.current,e.current=t}var me=Q(null),we=Q(null),_e=Q(null),Ye=Q(null);function je(e,t){switch(F(_e,t),F(we,e),F(me,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?It(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=It(t),e=Zt(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}oe(me),F(me,e)}function ot(){oe(me),oe(we),oe(_e)}function Fe(e){e.memoizedState!==null&&F(Ye,e);var t=me.current,n=Zt(t,e.type);t!==n&&(F(we,e),F(me,n))}function Mt(e){we.current===e&&(oe(me),oe(we)),Ye.current===e&&(oe(Ye),nu._currentValue=B)}var wt=Object.prototype.hasOwnProperty,hn=r.unstable_scheduleCallback,Ut=r.unstable_cancelCallback,xn=r.unstable_shouldYield,Ei=r.unstable_requestPaint,bt=r.unstable_now,rn=r.unstable_getCurrentPriorityLevel,Qt=r.unstable_ImmediatePriority,aa=r.unstable_UserBlockingPriority,Ot=r.unstable_NormalPriority,wn=r.unstable_LowPriority,Da=r.unstable_IdlePriority,La=r.log,Nt=r.unstable_setDisableYieldValue,hr=null,$t=null;function mn(e){if(typeof La=="function"&&Nt(e),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(hr,e)}catch{}}var Sn=Math.clz32?Math.clz32:fu,ou=Math.log,cu=Math.LN2;function fu(e){return e>>>=0,e===0?32:31-(ou(e)/cu|0)|0}var Pa=256,Xt=4194304;function Ba(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 Hr(e,t,n){var u=e.pendingLanes;if(u===0)return 0;var c=0,d=e.suspendedLanes,p=e.pingedLanes;e=e.warmLanes;var x=u&134217727;return x!==0?(u=x&~d,u!==0?c=Ba(u):(p&=x,p!==0?c=Ba(p):n||(n=x&~e,n!==0&&(c=Ba(n))))):(x=u&~d,x!==0?c=Ba(x):p!==0?c=Ba(p):n||(n=u&~e,n!==0&&(c=Ba(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 mr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Lc(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=Pa;return Pa<<=1,(Pa&4194048)===0&&(Pa=256),e}function zs(){var e=Xt;return Xt<<=1,(Xt&62914560)===0&&(Xt=4194304),e}function Us(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ll(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lv(e,t,n,u,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,I=e.hiddenUpdates;for(n=p&~n;0<n;){var ae=31-Sn(n),ue=1<<ae;x[ae]=0,C[ae]=-1;var K=I[ae];if(K!==null)for(I[ae]=null,ae=0;ae<K.length;ae++){var V=K[ae];V!==null&&(V.lane&=-536870913)}n&=~ue}u!==0&&Zd(e,u,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(p&~t))}function Zd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var u=31-Sn(t);e.entangledLanes|=t,e.entanglements[u]=e.entanglements[u]|1073741824|n&4194090}function Kd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var u=31-Sn(n),c=1<<u;c&t|e[u]&t&&(e[u]|=t),n&=~c}}function Bc(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 js(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Pd(){var e=X.p;return e!==0?e:(e=window.event,e===void 0?32:fg(e.type))}function uv(e,t){var n=X.p;try{return X.p=e,t()}finally{X.p=n}}var Gr=Math.random().toString(36).slice(2),gn="__reactFiber$"+Gr,Gn="__reactProps$"+Gr,qr="__reactContainer$"+Gr,zc="__reactEvents$"+Gr,sv="__reactListeners$"+Gr,ov="__reactHandles$"+Gr,Jd="__reactResources$"+Gr,du="__reactMarker$"+Gr;function Uc(e){delete e[gn],delete e[Gn],delete e[zc],delete e[sv],delete e[ov]}function ul(e){var t=e[gn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qr]||n[gn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=$m(e);e!==null;){if(n=e[gn])return n;e=$m(e)}return t}e=n,n=e.parentNode}return null}function sl(e){if(e=e[gn]||e[qr]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function ol(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function cl(e){var t=e[Jd];return t||(t=e[Jd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function vn(e){e[du]=!0}var Wd=new Set,Fd={};function Mi(e,t){fl(e,t),fl(e+"Capture",t)}function fl(e,t){for(Fd[e]=t,e=0;e<t.length;e++)Wd.add(t[e])}var ks=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]*$"),$d={},hu={};function cv(e){return wt.call(hu,e)?!0:wt.call($d,e)?!1:ks.test(e)?hu[e]=!0:($d[e]=!0,!1)}function Hs(e,t,n){if(cv(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var u=t.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Gs(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 Ja(e,t,n,u){if(u===null)e.removeAttribute(n);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+u)}}var qs,jc;function dl(e){if(qs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);qs=t&&t[1]||"",jc=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+qs+e+jc}var kc=!1;function Hc(e,t){if(!e||kc)return"";kc=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(t){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(V){var K=V}Reflect.construct(e,[],ue)}else{try{ue.call()}catch(V){K=V}e.call(ue.prototype)}}else{try{throw Error()}catch(V){K=V}(ue=e())&&typeof ue.catch=="function"&&ue.catch(function(){})}}catch(V){if(V&&K&&typeof V.stack=="string")return[V.stack,K.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=u.DetermineComponentFrameRoot(),p=d[0],x=d[1];if(p&&x){var C=p.split(`
`),I=x.split(`
`);for(c=u=0;u<C.length&&!C[u].includes("DetermineComponentFrameRoot");)u++;for(;c<I.length&&!I[c].includes("DetermineComponentFrameRoot");)c++;if(u===C.length||c===I.length)for(u=C.length-1,c=I.length-1;1<=u&&0<=c&&C[u]!==I[c];)c--;for(;1<=u&&0<=c;u--,c--)if(C[u]!==I[c]){if(u!==1||c!==1)do if(u--,c--,0>c||C[u]!==I[c]){var ae=`
`+C[u].replace(" at new "," at ");return e.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",e.displayName)),ae}while(1<=u&&0<=c);break}}}finally{kc=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?dl(n):""}function fv(e){switch(e.tag){case 26:case 27:case 5:return dl(e.type);case 16:return dl("Lazy");case 13:return dl("Suspense");case 19:return dl("SuspenseList");case 0:case 15:return Hc(e.type,!1);case 11:return Hc(e.type.render,!1);case 1:return Hc(e.type,!0);case 31:return dl("Activity");default:return""}}function Gc(e){try{var t="";do t+=fv(e),e=e.return;while(e);return t}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}function ra(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yc(e){var t=qc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),u=""+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){u=""+p,d.call(this,p)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return u},setValue:function(p){u=""+p},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ys(e){e._valueTracker||(e._valueTracker=Yc(e))}function Ic(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),u="";return e&&(u=qc(e)?e.checked?"true":"false":e.value),e=u,e!==n?(t.setValue(e),!0):!1}function wi(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 eh=/[\n"\\]/g;function va(e){return e.replace(eh,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Is(e,t,n,u,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=""+ra(t)):e.value!==""+ra(t)&&(e.value=""+ra(t)):p!=="submit"&&p!=="reset"||e.removeAttribute("value"),t!=null?mu(e,p,ra(t)):n!=null?mu(e,p,ra(n)):u!=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=""+ra(x):e.removeAttribute("name")}function Vc(e,t,n,u,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?""+ra(n):"",t=t!=null?""+ra(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}u=u??c,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=x?e.checked:!!u,e.defaultChecked=!!u,p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.name=p)}function mu(e,t,n){t==="number"&&wi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function hl(e,t,n,u){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&&u&&(e[n].defaultSelected=!0)}else{for(n=""+ra(n),t=null,c=0;c<e.length;c++){if(e[c].value===n){e[c].selected=!0,u&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Qc(e,t,n){if(t!=null&&(t=""+ra(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ra(n):""}function Vs(e,t,n,u){if(t==null){if(u!=null){if(n!=null)throw Error(o(92));if(ne(u)){if(1<u.length)throw Error(o(93));u=u[0]}n=u}n==null&&(n=""),t=n}n=ra(t),e.defaultValue=n,u=e.textContent,u===n&&u!==""&&u!==null&&(e.value=u)}function Yr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ml=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 Xc(e,t,n){var u=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?u?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":u?e.setProperty(t,n):typeof n!="number"||n===0||ml.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Zc(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var u in n)!n.hasOwnProperty(u)||t!=null&&t.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var c in t)u=t[c],t.hasOwnProperty(c)&&n[c]!==u&&Xc(e,c,u)}else for(var d in t)t.hasOwnProperty(d)&&Xc(e,d,t[d])}function Kc(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 th=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"]]),nh=/^[\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 gu(e){return nh.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Qs=null;function Pc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gl=null,vl=null;function Jc(e){var t=sl(e);if(t&&(e=t.stateNode)){var n=e[Gn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Is(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="'+va(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var u=n[t];if(u!==e&&u.form===e.form){var c=u[Gn]||null;if(!c)throw Error(o(90));Is(u,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<n.length;t++)u=n[t],u.form===e.form&&Ic(u)}break e;case"textarea":Qc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&hl(e,!!n.multiple,t,!1)}}}var Wc=!1;function ah(e,t,n){if(Wc)return e(t,n);Wc=!0;try{var u=e(t);return u}finally{if(Wc=!1,(gl!==null||vl!==null)&&(Xo(),gl&&(t=gl,e=vl,vl=gl=null,Jc(t),e)))for(t=0;t<e.length;t++)Jc(e[t])}}function vu(e,t){var n=e.stateNode;if(n===null)return null;var u=n[Gn]||null;if(u===null)return null;n=u[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":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var gr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pu=!1;if(gr)try{var bu={};Object.defineProperty(bu,"passive",{get:function(){pu=!0}}),window.addEventListener("test",bu,bu),window.removeEventListener("test",bu,bu)}catch{pu=!1}var Ir=null,Fc=null,Xs=null;function rh(){if(Xs)return Xs;var e,t=Fc,n=t.length,u,c="value"in Ir?Ir.value:Ir.textContent,d=c.length;for(e=0;e<n&&t[e]===c[e];e++);var p=n-e;for(u=1;u<=p&&t[n-u]===c[d-u];u++);return Xs=c.slice(e,1<u?1-u:void 0)}function Tt(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 _t(){return!0}function ih(){return!1}function qn(e){function t(n,u,c,d,p){this._reactName=n,this._targetInst=c,this.type=u,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)?_t:ih,this.isPropagationStopped=ih,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=_t)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_t)},persist:function(){},isPersistent:_t}),t}var Oi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zs=qn(Oi),yu=O({},Oi,{view:0,detail:0}),dv=qn(yu),Ks,$c,en,pl=O({},yu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wa,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!==en&&(en&&e.type==="mousemove"?(Ks=e.screenX-en.screenX,$c=e.screenY-en.screenY):$c=Ks=0,en=e),Ks)},movementY:function(e){return"movementY"in e?e.movementY:$c}}),Vr=qn(pl),lh=O({},pl,{dataTransfer:0}),ef=qn(lh),pa=O({},yu,{relatedTarget:0}),Ps=qn(pa),uh=O({},Oi,{animationName:0,elapsedTime:0,pseudoElement:0}),sh=qn(uh),oh=O({},Oi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ch=qn(oh),fh=O({},Oi,{data:0}),Yn=qn(fh),hv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ba={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"},mv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mv[e])?!!t[e]:!1}function Wa(){return dh}var Js=O({},yu,{key:function(e){if(e.key){var t=hv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Tt(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ba[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wa,charCode:function(e){return e.type==="keypress"?Tt(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Tt(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tf=qn(Js),Ht=O({},pl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vr=qn(Ht),nf=O({},yu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wa}),gv=qn(nf),af=O({},Oi,{propertyName:0,elapsedTime:0,pseudoElement:0}),vv=qn(af),pv=O({},pl,{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}),bv=qn(pv),hh=O({},Oi,{newState:0,oldState:0}),Ws=qn(hh),bl=[9,13,27,32],rf=gr&&"CompositionEvent"in window,yl=null;gr&&"documentMode"in document&&(yl=document.documentMode);var mh=gr&&"TextEvent"in window&&!yl,Fs=gr&&(!rf||yl&&8<yl&&11>=yl),$s=" ",lf=!1;function gh(e,t){switch(e){case"keyup":return bl.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function eo(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Qr=!1;function yv(e,t){switch(e){case"compositionend":return eo(t);case"keypress":return t.which!==32?null:(lf=!0,$s);case"textInput":return e=t.data,e===$s&&lf?null:e;default:return null}}function vh(e,t){if(Qr)return e==="compositionend"||!rf&&gh(e,t)?(e=rh(),Xs=Fc=Ir=null,Qr=!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 Fs&&t.locale!=="ko"?null:t.data;default:return null}}var ia={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 to(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!ia[e.type]:t==="textarea"}function Al(e,t,n,u){gl?vl?vl.push(u):vl=[u]:gl=u,t=$o(t,"onChange"),0<t.length&&(n=new Zs("onChange","change",null,n,u),e.push({event:n,listeners:t}))}var _l=null,xl=null;function Av(e){Qm(e,0)}function no(e){var t=ol(e);if(Ic(t))return e}function ph(e,t){if(e==="change")return t}var bh=!1;if(gr){var uf;if(gr){var Xr="oninput"in document;if(!Xr){var yh=document.createElement("div");yh.setAttribute("oninput","return;"),Xr=typeof yh.oninput=="function"}uf=Xr}else uf=!1;bh=uf&&(!document.documentMode||9<document.documentMode)}function Ah(){_l&&(_l.detachEvent("onpropertychange",ao),xl=_l=null)}function ao(e){if(e.propertyName==="value"&&no(xl)){var t=[];Al(t,xl,e,Pc(e)),ah(Av,t)}}function _h(e,t,n){e==="focusin"?(Ah(),_l=t,xl=n,_l.attachEvent("onpropertychange",ao)):e==="focusout"&&Ah()}function Zr(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return no(xl)}function ro(e,t){if(e==="click")return no(t)}function _v(e,t){if(e==="input"||e==="change")return no(t)}function xv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var la=typeof Object.is=="function"?Object.is:xv;function Fa(e,t){if(la(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),u=Object.keys(t);if(n.length!==u.length)return!1;for(u=0;u<n.length;u++){var c=n[u];if(!wt.call(t,c)||!la(e[c],t[c]))return!1}return!0}function ya(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sf(e,t){var n=ya(e);e=0;for(var u;n;){if(n.nodeType===3){if(u=e+n.textContent.length,e<=t&&u>=t)return{node:n,offset:t-e};e=u}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ya(n)}}function xh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?xh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=wi(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=wi(e.document)}return t}function of(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 Sv=gr&&"documentMode"in document&&11>=document.documentMode,Sl=null,Kr=null,z=null,$=!1;function P(e,t,n){var u=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$||Sl==null||Sl!==wi(u)||(u=Sl,"selectionStart"in u&&of(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),z&&Fa(z,u)||(z=u,u=$o(Kr,"onSelect"),0<u.length&&(t=new Zs("onSelect","select",null,t,n),e.push({event:t,listeners:u}),t.target=Sl)))}function Se(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ge={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")},ft={},tn={};gr&&(tn=document.createElement("div").style,"AnimationEvent"in window||(delete Ge.animationend.animation,delete Ge.animationiteration.animation,delete Ge.animationstart.animation),"TransitionEvent"in window||delete Ge.transitionend.transition);function dt(e){if(ft[e])return ft[e];if(!Ge[e])return e;var t=Ge[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in tn)return ft[e]=t[n];return e}var io=dt("animationend"),Eh=dt("animationiteration"),ua=dt("animationstart"),lo=dt("transitionrun"),Ev=dt("transitionstart"),El=dt("transitioncancel"),Au=dt("transitionend"),_u=new Map,gt="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(" ");gt.push("scrollEnd");function za(e,t){_u.set(e,t),Mi(t,[e])}var cf=new WeakMap;function Ln(e,t){if(typeof e=="object"&&e!==null){var n=cf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Gc(t)},cf.set(e,t),t)}return{value:e,source:t,stack:Gc(t)}}var Aa=[],Ml=0,ff=0;function Ti(){for(var e=Ml,t=ff=Ml=0;t<e;){var n=Aa[t];Aa[t++]=null;var u=Aa[t];Aa[t++]=null;var c=Aa[t];Aa[t++]=null;var d=Aa[t];if(Aa[t++]=null,u!==null&&c!==null){var p=u.pending;p===null?c.next=c:(c.next=p.next,p.next=c),u.pending=c}d!==0&&xu(n,c,d)}}function Ua(e,t,n,u){Aa[Ml++]=e,Aa[Ml++]=t,Aa[Ml++]=n,Aa[Ml++]=u,ff|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function wl(e,t,n,u){return Ua(e,t,n,u),Su(e)}function Ci(e,t){return Ua(e,null,null,t),Su(e)}function xu(e,t,n){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n);for(var c=!1,d=e.return;d!==null;)d.childLanes|=n,u=d.alternate,u!==null&&(u.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-Sn(n),e=d.hiddenUpdates,u=e[c],u===null?e[c]=[t]:u.push(t),t.lane=n|536870912),d):null}function Su(e){if(50<Kl)throw Kl=0,id=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ri={};function uo(e,t,n,u){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=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(e,t,n,u){return new uo(e,t,n,u)}function Ni(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bn(e,t){var n=e.alternate;return n===null?(n=In(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 Eu(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 so(e,t,n,u,c,d){var p=0;if(u=e,typeof e=="function")Ni(e)&&(p=1);else if(typeof e=="string")p=tp(e,n,me.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Me:return e=In(31,n,t,c),e.elementType=Me,e.lanes=d,e;case H:return Di(n.children,c,d,t);case G:p=8,c|=24;break;case W:return e=In(12,n,t,c|2),e.elementType=W,e.lanes=d,e;case te:return e=In(13,n,t,c),e.elementType=te,e.lanes=d,e;case ce:return e=In(19,n,t,c),e.elementType=ce,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fe:case pe:p=10;break e;case ve:p=9;break e;case ye:p=11;break e;case be:p=14;break e;case ee:p=16,u=null;break e}p=29,n=Error(o(130,e===null?"null":typeof e,"")),u=null}return t=In(p,n,t,c),t.elementType=e,t.type=u,t.lanes=d,t}function Di(e,t,n,u){return e=In(7,e,u,t),e.lanes=n,e}function df(e,t,n){return e=In(6,e,null,t),e.lanes=n,e}function Ol(e,t,n){return t=In(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pr=[],Pr=0,oo=null,Mu=0,_a=[],xa=0,jt=null,Gt=1,br="";function Li(e,t){pr[Pr++]=Mu,pr[Pr++]=oo,oo=e,Mu=t}function hf(e,t,n){_a[xa++]=Gt,_a[xa++]=br,_a[xa++]=jt,jt=e;var u=Gt;e=br;var c=32-Sn(u)-1;u&=~(1<<c),n+=1;var d=32-Sn(t)+c;if(30<d){var p=c-c%5;d=(u&(1<<p)-1).toString(32),u>>=p,c-=p,Gt=1<<32-Sn(t)+c|n<<c|u,br=d+e}else Gt=1<<d|n<<c|u,br=e}function mf(e){e.return!==null&&(Li(e,1),hf(e,1,0))}function wu(e){for(;e===oo;)oo=pr[--Pr],pr[Pr]=null,Mu=pr[--Pr],pr[Pr]=null;for(;e===jt;)jt=_a[--xa],_a[xa]=null,br=_a[--xa],_a[xa]=null,Gt=_a[--xa],_a[xa]=null}var ln=null,qt=null,it=!1,ja=null,Vn=!1,Tl=Error(o(519));function Sa(e){var t=Error(o(418,""));throw Jr(Ln(t,e)),Tl}function Mh(e){var t=e.stateNode,n=e.type,u=e.memoizedProps;switch(t[gn]=e,t[Gn]=u,n){case"dialog":at("cancel",t),at("close",t);break;case"iframe":case"object":case"embed":at("load",t);break;case"video":case"audio":for(n=0;n<ms.length;n++)at(ms[n],t);break;case"source":at("error",t);break;case"img":case"image":case"link":at("error",t),at("load",t);break;case"details":at("toggle",t);break;case"input":at("invalid",t),Vc(t,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),Ys(t);break;case"select":at("invalid",t);break;case"textarea":at("invalid",t),Vs(t,u.value,u.defaultValue,u.children),Ys(t)}n=u.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||u.suppressHydrationWarning===!0||Km(t.textContent,n)?(u.popover!=null&&(at("beforetoggle",t),at("toggle",t)),u.onScroll!=null&&at("scroll",t),u.onScrollEnd!=null&&at("scrollend",t),u.onClick!=null&&(t.onclick=ec),t=!0):t=!1,t||Sa(e)}function wh(e){for(ln=e.return;ln;)switch(ln.tag){case 5:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:ln=ln.return}}function Ou(e){if(e!==ln)return!1;if(!it)return wh(e),it=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||nc(e.type,e.memoizedProps)),n=!n),n&&qt&&Sa(e),wh(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){qt=Ia(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}qt=null}}else t===27?(t=qt,Ca(e.type)?(e=yd,yd=null,qt=e):qt=t):qt=ln?Ia(e.stateNode.nextSibling):null;return!0}function Tu(){qt=ln=null,it=!1}function Oh(){var e=ja;return e!==null&&(Fn===null?Fn=e:Fn.push.apply(Fn,e),ja=null),e}function Jr(e){ja===null?ja=[e]:ja.push(e)}var Bi=Q(null),Wr=null,_=null;function sa(e,t,n){F(Bi,t._currentValue),t._currentValue=n}function Ea(e){e._currentValue=Bi.current,oe(Bi)}function Qn(e,t,n){for(;e!==null;){var u=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,u!==null&&(u.childLanes|=t)):u!==null&&(u.childLanes&t)!==t&&(u.childLanes|=t),e===n)break;e=e.return}}function $e(e,t,n,u){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),Qn(d.return,n,e),u||(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),Qn(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 Cu(e,t,n,u){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;la(c.pendingProps.value,p.value)||(e!==null?e.push(x):e=[x])}}else if(c===Ye.current){if(p=c.alternate,p===null)throw Error(o(387));p.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(nu):e=[nu])}c=c.return}e!==null&&$e(t,e,n,u),t.flags|=262144}function co(e){for(e=e.firstContext;e!==null;){if(!la(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function zi(e){Wr=e,_=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Kt(e){return Th(Wr,e)}function fo(e,t){return Wr===null&&zi(e),Th(e,t)}function Th(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 Mv=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,u){e.push(u)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},wv=r.unstable_scheduleCallback,Ov=r.unstable_NormalPriority,Dt={$$typeof:pe,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gf(){return{controller:new Mv,data:new Map,refCount:0}}function Ru(e){e.refCount--,e.refCount===0&&wv(Ov,function(){e.controller.abort()})}var Nu=null,vf=0,Cl=0,Xn=null;function Tv(e,t){if(Nu===null){var n=Nu=[];vf=0,Cl=Fo(),Xn={status:"pending",value:void 0,then:function(u){n.push(u)}}}return vf++,t.then(Ch,Ch),t}function Ch(){if(--vf===0&&Nu!==null){Xn!==null&&(Xn.status="fulfilled");var e=Nu;Nu=null,Cl=0,Xn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Cv(e,t){var n=[],u={status:"pending",value:null,reason:null,then:function(c){n.push(c)}};return e.then(function(){u.status="fulfilled",u.value=t;for(var c=0;c<n.length;c++)(0,n[c])(t)},function(c){for(u.status="rejected",u.reason=c,c=0;c<n.length;c++)(0,n[c])(void 0)}),u}var Rh=R.S;R.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&Tv(e,t),Rh!==null&&Rh(e,t)};var Ui=Q(null);function yr(){var e=Ui.current;return e!==null?e:zt.pooledCache}function ho(e,t){t===null?F(Ui,Ui.current):F(Ui,t.pool)}function Nh(){var e=yr();return e===null?null:{parent:Dt._currentValue,pool:e}}var zn=Error(o(460)),Dh=Error(o(474)),mo=Error(o(542)),pf={then:function(){}};function Lh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function go(){}function bf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(go,go),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zh(e),e;default:if(typeof t.status=="string")t.then(go,go);else{if(e=zt,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(u){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=u}},function(u){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=u}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,zh(e),e}throw Rl=t,zn}}var Rl=null;function Bh(){if(Rl===null)throw Error(o(459));var e=Rl;return Rl=null,e}function zh(e){if(e===zn||e===mo)throw Error(o(483))}var $a=!1;function ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nl(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 Fr(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ar(e,t,n){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(St&2)!==0){var c=u.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),u.pending=t,t=Su(e),xu(e,null,n),t}return Ua(e,u,t,n),Su(e)}function Du(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var u=t.lanes;u&=e.pendingLanes,n|=u,t.lanes=n,Kd(e,n)}}function ka(e,t){var n=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,n===u)){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:u.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:u.shared,callbacks:u.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Lu=!1;function Ha(){if(Lu){var e=Xn;if(e!==null)throw e}}function Tn(e,t,n,u){Lu=!1;var c=e.updateQueue;$a=!1;var d=c.firstBaseUpdate,p=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var C=x,I=C.next;C.next=null,p===null?d=I:p.next=I,p=C;var ae=e.alternate;ae!==null&&(ae=ae.updateQueue,x=ae.lastBaseUpdate,x!==p&&(x===null?ae.firstBaseUpdate=I:x.next=I,ae.lastBaseUpdate=C))}if(d!==null){var ue=c.baseState;p=0,ae=I=C=null,x=d;do{var K=x.lane&-536870913,V=K!==x.lane;if(V?(ct&K)===K:(u&K)===K){K!==0&&K===Cl&&(Lu=!0),ae!==null&&(ae=ae.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var ke=e,Ue=x;K=t;var Rt=n;switch(Ue.tag){case 1:if(ke=Ue.payload,typeof ke=="function"){ue=ke.call(Rt,ue,K);break e}ue=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=Ue.payload,K=typeof ke=="function"?ke.call(Rt,ue,K):ke,K==null)break e;ue=O({},ue,K);break e;case 2:$a=!0}}K=x.callback,K!==null&&(e.flags|=64,V&&(e.flags|=8192),V=c.callbacks,V===null?c.callbacks=[K]:V.push(K))}else V={lane:K,tag:x.tag,payload:x.payload,callback:x.callback,next:null},ae===null?(I=ae=V,C=ue):ae=ae.next=V,p|=K;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;V=x,x=V.next,V.next=null,c.lastBaseUpdate=V,c.shared.pending=null}}while(!0);ae===null&&(C=ue),c.baseState=C,c.firstBaseUpdate=I,c.lastBaseUpdate=ae,d===null&&(c.shared.lanes=0),ui|=p,e.lanes=p,e.memoizedState=ue}}function Uh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function yf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Uh(n[e],t)}var ki=Q(null),$r=Q(0);function _r(e,t){e=Rr,F($r,e),F(ki,t),Rr=e|t.baseLanes}function vo(){F($r,Rr),F(ki,ki.current)}function Af(){Rr=$r.current,oe(ki),oe($r)}var Ga=0,Je=null,xt=null,lt=null,Dl=!1,Hi=!1,Cn=!1,Ll=0,ei=0,Ma=null,jh=0;function ut(){throw Error(o(321))}function Bu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!la(e[n],t[n]))return!1;return!0}function _f(e,t,n,u,c,d){return Ga=d,Je=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?Jh:Hf,Cn=!1,d=n(u,c),Cn=!1,Hi&&(d=Hh(t,n,u,c)),kh(e),d}function kh(e){R.H=Qu;var t=xt!==null&&xt.next!==null;if(Ga=0,lt=xt=Je=null,Dl=!1,ei=0,Ma=null,t)throw Error(o(300));e===null||pn||(e=e.dependencies,e!==null&&co(e)&&(pn=!0))}function Hh(e,t,n,u){Je=e;var c=0;do{if(Hi&&(Ma=null),ei=0,Hi=!1,25<=c)throw Error(o(301));if(c+=1,lt=xt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}R.H=Wh,d=t(n,u)}while(Hi);return d}function xf(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?zu(t):t,e=e.useState()[0],(xt!==null?xt.memoizedState:null)!==e&&(Je.flags|=1024),t}function Sf(){var e=Ll!==0;return Ll=0,e}function Gi(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function po(e){if(Dl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Dl=!1}Ga=0,lt=xt=Je=null,Hi=!1,ei=Ll=0,Ma=null}function Zn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Je.memoizedState=lt=e:lt=lt.next=e,lt}function nn(){if(xt===null){var e=Je.alternate;e=e!==null?e.memoizedState:null}else e=xt.next;var t=lt===null?Je.memoizedState:lt.next;if(t!==null)lt=t,xt=e;else{if(e===null)throw Je.alternate===null?Error(o(467)):Error(o(310));xt=e,e={memoizedState:xt.memoizedState,baseState:xt.baseState,baseQueue:xt.baseQueue,queue:xt.queue,next:null},lt===null?Je.memoizedState=lt=e:lt=lt.next=e}return lt}function qi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zu(e){var t=ei;return ei+=1,Ma===null&&(Ma=[]),e=bf(Ma,e,t),t=Je,(lt===null?t.memoizedState:lt.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?Jh:Hf),e}function bo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return zu(e);if(e.$$typeof===pe)return Kt(e)}throw Error(o(438,String(e)))}function Uu(e){var t=null,n=Je.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var u=Je.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(t={data:u.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=qi(),Je.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),u=0;u<e;u++)n[u]=Ne;return t.index++,n}function er(e,t){return typeof t=="function"?t(e):t}function yo(e){var t=nn();return Ef(t,xt,e)}function Ef(e,t,n){var u=e.queue;if(u===null)throw Error(o(311));u.lastRenderedReducer=n;var c=e.baseQueue,d=u.pending;if(d!==null){if(c!==null){var p=c.next;c.next=d.next,d.next=p}t.baseQueue=c=d,u.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{t=c.next;var x=p=null,C=null,I=t,ae=!1;do{var ue=I.lane&-536870913;if(ue!==I.lane?(ct&ue)===ue:(Ga&ue)===ue){var K=I.revertLane;if(K===0)C!==null&&(C=C.next={lane:0,revertLane:0,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null}),ue===Cl&&(ae=!0);else if((Ga&K)===K){I=I.next,K===Cl&&(ae=!0);continue}else ue={lane:0,revertLane:I.revertLane,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},C===null?(x=C=ue,p=d):C=C.next=ue,Je.lanes|=K,ui|=K;ue=I.action,Cn&&n(d,ue),d=I.hasEagerState?I.eagerState:n(d,ue)}else K={lane:ue,revertLane:I.revertLane,action:I.action,hasEagerState:I.hasEagerState,eagerState:I.eagerState,next:null},C===null?(x=C=K,p=d):C=C.next=K,Je.lanes|=ue,ui|=ue;I=I.next}while(I!==null&&I!==t);if(C===null?p=d:C.next=x,!la(d,e.memoizedState)&&(pn=!0,ae&&(n=Xn,n!==null)))throw n;e.memoizedState=d,e.baseState=p,e.baseQueue=C,u.lastRenderedState=d}return c===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function Mf(e){var t=nn(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var u=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);la(d,t.memoizedState)||(pn=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),n.lastRenderedState=d}return[d,u]}function wf(e,t,n){var u=Je,c=nn(),d=it;if(d){if(n===void 0)throw Error(o(407));n=n()}else n=t();var p=!la((xt||c).memoizedState,n);p&&(c.memoizedState=n,pn=!0),c=c.queue;var x=_o.bind(null,u,c,e);if(Hu(2048,8,x,[e]),c.getSnapshot!==t||p||lt!==null&&lt.memoizedState.tag&1){if(u.flags|=2048,Bl(9,wo(),Gh.bind(null,u,c,n,t),null),zt===null)throw Error(o(349));d||(Ga&124)!==0||Ao(u,t,n)}return n}function Ao(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Je.updateQueue,t===null?(t=qi(),Je.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Gh(e,t,n,u){t.value=n,t.getSnapshot=u,Of(t)&&Tf(e)}function _o(e,t,n){return n(function(){Of(t)&&Tf(e)})}function Of(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!la(e,n)}catch{return!0}}function Tf(e){var t=Ci(e,2);t!==null&&ha(t,e,2)}function xo(e){var t=Zn();if(typeof e=="function"){var n=e;if(e=n(),Cn){mn(!0);try{n()}finally{mn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:er,lastRenderedState:e},t}function ju(e,t,n,u){return e.baseState=n,Ef(e,xt,typeof u=="function"?u:er)}function Rv(e,t,n,u,c){if(Ro(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)}};R.T!==null?n(!0):d.isTransition=!1,u(d),n=t.pending,n===null?(d.next=t.pending=d,Cf(t,d)):(d.next=n.next,t.pending=n.next=d)}}function Cf(e,t){var n=t.action,u=t.payload,c=e.state;if(t.isTransition){var d=R.T,p={};R.T=p;try{var x=n(c,u),C=R.S;C!==null&&C(p,x),Rf(e,t,x)}catch(I){So(e,t,I)}finally{R.T=d}}else try{d=n(c,u),Rf(e,t,d)}catch(I){So(e,t,I)}}function Rf(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(u){qh(e,t,u)},function(u){return So(e,t,u)}):qh(e,t,n)}function qh(e,t,n){t.status="fulfilled",t.value=n,Yh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Cf(e,n)))}function So(e,t,n){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do t.status="rejected",t.reason=n,Yh(t),t=t.next;while(t!==u)}e.action=null}function Yh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Eo(e,t){return t}function Nf(e,t){if(it){var n=zt.formState;if(n!==null){e:{var u=Je;if(it){if(qt){t:{for(var c=qt,d=Vn;c.nodeType!==8;){if(!d){c=null;break t}if(c=Ia(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){qt=Ia(c.nextSibling),u=c.data==="F!";break e}}Sa(u)}u=!1}u&&(t=n[0])}}return n=Zn(),n.memoizedState=n.baseState=t,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:t},n.queue=u,n=Uf.bind(null,Je,u),u.dispatch=n,u=xo(!1),d=jf.bind(null,Je,!1,u.queue),u=Zn(),c={state:t,dispatch:null,action:e,pending:null},u.queue=c,n=Rv.bind(null,Je,c,d,n),c.dispatch=n,u.memoizedState=e,[t,n,!1]}function Mo(e){var t=nn();return Ih(t,xt,e)}function Ih(e,t,n){if(t=Ef(e,t,Eo)[0],e=yo(er)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var u=zu(t)}catch(p){throw p===zn?mo:p}else u=t;t=nn();var c=t.queue,d=c.dispatch;return n!==t.memoizedState&&(Je.flags|=2048,Bl(9,wo(),Df.bind(null,c,n),null)),[u,d,e]}function Df(e,t){e.action=t}function Pe(e){var t=nn(),n=xt;if(n!==null)return Ih(t,n,e);nn(),t=t.memoizedState,n=nn();var u=n.queue.dispatch;return n.memoizedState=e,[t,u,!1]}function Bl(e,t,n,u){return e={tag:e,create:n,deps:u,inst:t,next:null},t=Je.updateQueue,t===null&&(t=qi(),Je.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(u=n.next,n.next=e,e.next=u,t.lastEffect=e),e}function wo(){return{destroy:void 0,resource:void 0}}function zl(){return nn().memoizedState}function ku(e,t,n,u){var c=Zn();u=u===void 0?null:u,Je.flags|=e,c.memoizedState=Bl(1|t,wo(),n,u)}function Hu(e,t,n,u){var c=nn();u=u===void 0?null:u;var d=c.memoizedState.inst;xt!==null&&u!==null&&Bu(u,xt.memoizedState.deps)?c.memoizedState=Bl(t,d,n,u):(Je.flags|=e,c.memoizedState=Bl(1|t,d,n,u))}function Vh(e,t){ku(8390656,8,e,t)}function oa(e,t){Hu(2048,8,e,t)}function Qh(e,t){return Hu(4,2,e,t)}function Gu(e,t){return Hu(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 Lf(e,t,n){n=n!=null?n.concat([e]):null,Hu(4,4,Oo.bind(null,t,e),n)}function To(){}function Kn(e,t){var n=nn();t=t===void 0?null:t;var u=n.memoizedState;return t!==null&&Bu(t,u[1])?u[0]:(n.memoizedState=[e,t],e)}function xr(e,t){var n=nn();t=t===void 0?null:t;var u=n.memoizedState;if(t!==null&&Bu(t,u[1]))return u[0];if(u=e(),Cn){mn(!0);try{e()}finally{mn(!1)}}return n.memoizedState=[u,t],u}function qu(e,t,n){return n===void 0||(Ga&1073741824)!==0?e.memoizedState=t:(e.memoizedState=n,e=Em(),Je.lanes|=e,ui|=e,n)}function Bf(e,t,n,u){return la(n,t)?n:ki.current!==null?(e=qu(e,n,u),la(e,t)||(pn=!0),e):(Ga&42)===0?(pn=!0,e.memoizedState=n):(e=Em(),Je.lanes|=e,ui|=e,t)}function Yu(e,t,n,u,c){var d=X.p;X.p=d!==0&&8>d?d:8;var p=R.T,x={};R.T=x,jf(e,!1,t,n);try{var C=c(),I=R.S;if(I!==null&&I(x,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var ae=Cv(C,u);Yi(e,t,ae,Nn(e))}else Yi(e,t,u,Nn(e))}catch(ue){Yi(e,t,{then:function(){},status:"rejected",reason:ue},Nn())}finally{X.p=d,R.T=p}}function Xh(){}function Iu(e,t,n,u){if(e.tag!==5)throw Error(o(476));var c=zf(e).queue;Yu(e,c,t,B,n===null?Xh:function(){return Co(e),n(u)})}function zf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:er,lastRenderedState:B},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:er,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Co(e){var t=zf(e).next.queue;Yi(e,t,{},Nn())}function Vu(){return Kt(nu)}function Sr(){return nn().memoizedState}function Zh(){return nn().memoizedState}function ti(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Nn();e=Fr(n);var u=Ar(t,e,n);u!==null&&(ha(u,t,n),Du(u,t,n)),t={cache:gf()},e.payload=t;return}t=t.return}}function Kh(e,t,n){var u=Nn();n={lane:u,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Ro(e)?Ph(t,n):(n=wl(e,t,n,u),n!==null&&(ha(n,e,u),kf(n,t,u)))}function Uf(e,t,n){var u=Nn();Yi(e,t,n,u)}function Yi(e,t,n,u){var c={lane:u,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ro(e))Ph(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,la(x,p))return Ua(e,t,c,0),zt===null&&Ti(),!1}catch{}finally{}if(n=wl(e,t,c,u),n!==null)return ha(n,e,u),kf(n,t,u),!0}return!1}function jf(e,t,n,u){if(u={lane:2,revertLane:Fo(),action:u,hasEagerState:!1,eagerState:null,next:null},Ro(e)){if(t)throw Error(o(479))}else t=wl(e,n,u,2),t!==null&&ha(t,e,2)}function Ro(e){var t=e.alternate;return e===Je||t!==null&&t===Je}function Ph(e,t){Hi=Dl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kf(e,t,n){if((n&4194048)!==0){var u=t.lanes;u&=e.pendingLanes,n|=u,t.lanes=n,Kd(e,n)}}var Qu={readContext:Kt,use:bo,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut},Jh={readContext:Kt,use:bo,useCallback:function(e,t){return Zn().memoizedState=[e,t===void 0?null:t],e},useContext:Kt,useEffect:Vh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ku(4194308,4,Oo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ku(4194308,4,e,t)},useInsertionEffect:function(e,t){ku(4,2,e,t)},useMemo:function(e,t){var n=Zn();t=t===void 0?null:t;var u=e();if(Cn){mn(!0);try{e()}finally{mn(!1)}}return n.memoizedState=[u,t],u},useReducer:function(e,t,n){var u=Zn();if(n!==void 0){var c=n(t);if(Cn){mn(!0);try{n(t)}finally{mn(!1)}}}else c=t;return u.memoizedState=u.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},u.queue=e,e=e.dispatch=Kh.bind(null,Je,e),[u.memoizedState,e]},useRef:function(e){var t=Zn();return e={current:e},t.memoizedState=e},useState:function(e){e=xo(e);var t=e.queue,n=Uf.bind(null,Je,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:To,useDeferredValue:function(e,t){var n=Zn();return qu(n,e,t)},useTransition:function(){var e=xo(!1);return e=Yu.bind(null,Je,e.queue,!0,!1),Zn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var u=Je,c=Zn();if(it){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),zt===null)throw Error(o(349));(ct&124)!==0||Ao(u,t,n)}c.memoizedState=n;var d={value:n,getSnapshot:t};return c.queue=d,Vh(_o.bind(null,u,d,e),[e]),u.flags|=2048,Bl(9,wo(),Gh.bind(null,u,d,n,t),null),n},useId:function(){var e=Zn(),t=zt.identifierPrefix;if(it){var n=br,u=Gt;n=(u&~(1<<32-Sn(u)-1)).toString(32)+n,t="«"+t+"R"+n,n=Ll++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=jh++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Vu,useFormState:Nf,useActionState:Nf,useOptimistic:function(e){var t=Zn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=jf.bind(null,Je,!0,n),n.dispatch=t,[e,t]},useMemoCache:Uu,useCacheRefresh:function(){return Zn().memoizedState=ti.bind(null,Je)}},Hf={readContext:Kt,use:bo,useCallback:Kn,useContext:Kt,useEffect:oa,useImperativeHandle:Lf,useInsertionEffect:Qh,useLayoutEffect:Gu,useMemo:xr,useReducer:yo,useRef:zl,useState:function(){return yo(er)},useDebugValue:To,useDeferredValue:function(e,t){var n=nn();return Bf(n,xt.memoizedState,e,t)},useTransition:function(){var e=yo(er)[0],t=nn().memoizedState;return[typeof e=="boolean"?e:zu(e),t]},useSyncExternalStore:wf,useId:Sr,useHostTransitionStatus:Vu,useFormState:Mo,useActionState:Mo,useOptimistic:function(e,t){var n=nn();return ju(n,xt,e,t)},useMemoCache:Uu,useCacheRefresh:Zh},Wh={readContext:Kt,use:bo,useCallback:Kn,useContext:Kt,useEffect:oa,useImperativeHandle:Lf,useInsertionEffect:Qh,useLayoutEffect:Gu,useMemo:xr,useReducer:Mf,useRef:zl,useState:function(){return Mf(er)},useDebugValue:To,useDeferredValue:function(e,t){var n=nn();return xt===null?qu(n,e,t):Bf(n,xt.memoizedState,e,t)},useTransition:function(){var e=Mf(er)[0],t=nn().memoizedState;return[typeof e=="boolean"?e:zu(e),t]},useSyncExternalStore:wf,useId:Sr,useHostTransitionStatus:Vu,useFormState:Pe,useActionState:Pe,useOptimistic:function(e,t){var n=nn();return xt!==null?ju(n,xt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Uu,useCacheRefresh:Zh},un=null,Pn=0;function No(e){var t=Pn;return Pn+=1,un===null&&(un=[]),bf(un,e,t)}function Xu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ii(e,t){throw t.$$typeof===N?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 Gf(e){function t(j,L){if(e){var Y=j.deletions;Y===null?(j.deletions=[L],j.flags|=16):Y.push(L)}}function n(j,L){if(!e)return null;for(;L!==null;)t(j,L),L=L.sibling;return null}function u(j){for(var L=new Map;j!==null;)j.key!==null?L.set(j.key,j):L.set(j.index,j),j=j.sibling;return L}function c(j,L){return j=Bn(j,L),j.index=0,j.sibling=null,j}function d(j,L,Y){return j.index=Y,e?(Y=j.alternate,Y!==null?(Y=Y.index,Y<L?(j.flags|=67108866,L):Y):(j.flags|=67108866,L)):(j.flags|=1048576,L)}function p(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function x(j,L,Y,re){return L===null||L.tag!==6?(L=df(Y,j.mode,re),L.return=j,L):(L=c(L,Y),L.return=j,L)}function C(j,L,Y,re){var Oe=Y.type;return Oe===H?ae(j,L,Y.props.children,re,Y.key):L!==null&&(L.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===ee&&Vi(Oe)===L.type)?(L=c(L,Y.props),Xu(L,Y),L.return=j,L):(L=so(Y.type,Y.key,Y.props,null,j.mode,re),Xu(L,Y),L.return=j,L)}function I(j,L,Y,re){return L===null||L.tag!==4||L.stateNode.containerInfo!==Y.containerInfo||L.stateNode.implementation!==Y.implementation?(L=Ol(Y,j.mode,re),L.return=j,L):(L=c(L,Y.children||[]),L.return=j,L)}function ae(j,L,Y,re,Oe){return L===null||L.tag!==7?(L=Di(Y,j.mode,re,Oe),L.return=j,L):(L=c(L,Y),L.return=j,L)}function ue(j,L,Y){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=df(""+L,j.mode,Y),L.return=j,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case q:return Y=so(L.type,L.key,L.props,null,j.mode,Y),Xu(Y,L),Y.return=j,Y;case Z:return L=Ol(L,j.mode,Y),L.return=j,L;case ee:var re=L._init;return L=re(L._payload),ue(j,L,Y)}if(ne(L)||De(L))return L=Di(L,j.mode,Y,null),L.return=j,L;if(typeof L.then=="function")return ue(j,No(L),Y);if(L.$$typeof===pe)return ue(j,fo(j,L),Y);Ii(j,L)}return null}function K(j,L,Y,re){var Oe=L!==null?L.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Oe!==null?null:x(j,L,""+Y,re);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case q:return Y.key===Oe?C(j,L,Y,re):null;case Z:return Y.key===Oe?I(j,L,Y,re):null;case ee:return Oe=Y._init,Y=Oe(Y._payload),K(j,L,Y,re)}if(ne(Y)||De(Y))return Oe!==null?null:ae(j,L,Y,re,null);if(typeof Y.then=="function")return K(j,L,No(Y),re);if(Y.$$typeof===pe)return K(j,L,fo(j,Y),re);Ii(j,Y)}return null}function V(j,L,Y,re,Oe){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return j=j.get(Y)||null,x(L,j,""+re,Oe);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case q:return j=j.get(re.key===null?Y:re.key)||null,C(L,j,re,Oe);case Z:return j=j.get(re.key===null?Y:re.key)||null,I(L,j,re,Oe);case ee:var et=re._init;return re=et(re._payload),V(j,L,Y,re,Oe)}if(ne(re)||De(re))return j=j.get(Y)||null,ae(L,j,re,Oe,null);if(typeof re.then=="function")return V(j,L,Y,No(re),Oe);if(re.$$typeof===pe)return V(j,L,Y,fo(L,re),Oe);Ii(L,re)}return null}function ke(j,L,Y,re){for(var Oe=null,et=null,Be=L,He=L=0,An=null;Be!==null&&He<Y.length;He++){Be.index>He?(An=Be,Be=null):An=Be.sibling;var ht=K(j,Be,Y[He],re);if(ht===null){Be===null&&(Be=An);break}e&&Be&&ht.alternate===null&&t(j,Be),L=d(ht,L,He),et===null?Oe=ht:et.sibling=ht,et=ht,Be=An}if(He===Y.length)return n(j,Be),it&&Li(j,He),Oe;if(Be===null){for(;He<Y.length;He++)Be=ue(j,Y[He],re),Be!==null&&(L=d(Be,L,He),et===null?Oe=Be:et.sibling=Be,et=Be);return it&&Li(j,He),Oe}for(Be=u(Be);He<Y.length;He++)An=V(Be,j,He,Y[He],re),An!==null&&(e&&An.alternate!==null&&Be.delete(An.key===null?He:An.key),L=d(An,L,He),et===null?Oe=An:et.sibling=An,et=An);return e&&Be.forEach(function(pi){return t(j,pi)}),it&&Li(j,He),Oe}function Ue(j,L,Y,re){if(Y==null)throw Error(o(151));for(var Oe=null,et=null,Be=L,He=L=0,An=null,ht=Y.next();Be!==null&&!ht.done;He++,ht=Y.next()){Be.index>He?(An=Be,Be=null):An=Be.sibling;var pi=K(j,Be,ht.value,re);if(pi===null){Be===null&&(Be=An);break}e&&Be&&pi.alternate===null&&t(j,Be),L=d(pi,L,He),et===null?Oe=pi:et.sibling=pi,et=pi,Be=An}if(ht.done)return n(j,Be),it&&Li(j,He),Oe;if(Be===null){for(;!ht.done;He++,ht=Y.next())ht=ue(j,ht.value,re),ht!==null&&(L=d(ht,L,He),et===null?Oe=ht:et.sibling=ht,et=ht);return it&&Li(j,He),Oe}for(Be=u(Be);!ht.done;He++,ht=Y.next())ht=V(Be,j,He,ht.value,re),ht!==null&&(e&&ht.alternate!==null&&Be.delete(ht.key===null?He:ht.key),L=d(ht,L,He),et===null?Oe=ht:et.sibling=ht,et=ht);return e&&Be.forEach(function(dp){return t(j,dp)}),it&&Li(j,He),Oe}function Rt(j,L,Y,re){if(typeof Y=="object"&&Y!==null&&Y.type===H&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case q:e:{for(var Oe=Y.key;L!==null;){if(L.key===Oe){if(Oe=Y.type,Oe===H){if(L.tag===7){n(j,L.sibling),re=c(L,Y.props.children),re.return=j,j=re;break e}}else if(L.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===ee&&Vi(Oe)===L.type){n(j,L.sibling),re=c(L,Y.props),Xu(re,Y),re.return=j,j=re;break e}n(j,L);break}else t(j,L);L=L.sibling}Y.type===H?(re=Di(Y.props.children,j.mode,re,Y.key),re.return=j,j=re):(re=so(Y.type,Y.key,Y.props,null,j.mode,re),Xu(re,Y),re.return=j,j=re)}return p(j);case Z:e:{for(Oe=Y.key;L!==null;){if(L.key===Oe)if(L.tag===4&&L.stateNode.containerInfo===Y.containerInfo&&L.stateNode.implementation===Y.implementation){n(j,L.sibling),re=c(L,Y.children||[]),re.return=j,j=re;break e}else{n(j,L);break}else t(j,L);L=L.sibling}re=Ol(Y,j.mode,re),re.return=j,j=re}return p(j);case ee:return Oe=Y._init,Y=Oe(Y._payload),Rt(j,L,Y,re)}if(ne(Y))return ke(j,L,Y,re);if(De(Y)){if(Oe=De(Y),typeof Oe!="function")throw Error(o(150));return Y=Oe.call(Y),Ue(j,L,Y,re)}if(typeof Y.then=="function")return Rt(j,L,No(Y),re);if(Y.$$typeof===pe)return Rt(j,L,fo(j,Y),re);Ii(j,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,L!==null&&L.tag===6?(n(j,L.sibling),re=c(L,Y),re.return=j,j=re):(n(j,L),re=df(Y,j.mode,re),re.return=j,j=re),p(j)):n(j,L)}return function(j,L,Y,re){try{Pn=0;var Oe=Rt(j,L,Y,re);return un=null,Oe}catch(Be){if(Be===zn||Be===mo)throw Be;var et=In(29,Be,null,j.mode);return et.lanes=re,et.return=j,et}finally{}}}var Qi=Gf(!0),Fh=Gf(!1),ca=Q(null),Un=null;function wa(e){var t=e.alternate;F(Pt,Pt.current&1),F(ca,e),Un===null&&(t===null||ki.current!==null||t.memoizedState!==null)&&(Un=e)}function $h(e){if(e.tag===22){if(F(Pt,Pt.current),F(ca,e),Un===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Un=e)}}else Er()}function Er(){F(Pt,Pt.current),F(ca,ca.current)}function tr(e){oe(ca),Un===e&&(Un=null),oe(Pt)}var Pt=Q(0);function Zu(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==="$?"||kn(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 Ul(e,t,n,u){t=e.memoizedState,n=n(u,t),n=n==null?t:O({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ku={enqueueSetState:function(e,t,n){e=e._reactInternals;var u=Nn(),c=Fr(u);c.payload=t,n!=null&&(c.callback=n),t=Ar(e,c,u),t!==null&&(ha(t,e,u),Du(t,e,u))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var u=Nn(),c=Fr(u);c.tag=1,c.payload=t,n!=null&&(c.callback=n),t=Ar(e,c,u),t!==null&&(ha(t,e,u),Du(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Nn(),u=Fr(n);u.tag=2,t!=null&&(u.callback=t),t=Ar(e,u,n),t!==null&&(ha(t,e,n),Du(t,e,n))}};function Pu(e,t,n,u,c,d,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,d,p):t.prototype&&t.prototype.isPureReactComponent?!Fa(n,u)||!Fa(c,d):!0}function em(e,t,n,u){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,u),t.state!==e&&Ku.enqueueReplaceState(t,t.state,null)}function ni(e,t){var n=t;if("ref"in t){n={};for(var u in t)u!=="ref"&&(n[u]=t[u])}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 Xi=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 qf(e){Xi(e)}function Do(e){console.error(e)}function tm(e){Xi(e)}function Ju(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(u){setTimeout(function(){throw u})}}function nr(e,t,n){try{var u=e.onCaughtError;u(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function Lo(e,t,n){return n=Fr(n),n.tag=3,n.payload={element:null},n.callback=function(){Ju(e,t)},n}function Yf(e){return e=Fr(e),e.tag=3,e}function nm(e,t,n,u){var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var d=u.value;e.payload=function(){return c(d)},e.callback=function(){nr(t,n,u)}}var p=n.stateNode;p!==null&&typeof p.componentDidCatch=="function"&&(e.callback=function(){nr(t,n,u),typeof c!="function"&&(si===null?si=new Set([this]):si.add(this));var x=u.stack;this.componentDidCatch(u.value,{componentStack:x!==null?x:""})})}function am(e,t,n,u,c){if(n.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(t=n.alternate,t!==null&&Cu(t,n,c,!0),n=ca.current,n!==null){switch(n.tag){case 13:return Un===null?ud():n.alternate===null&&Jt===0&&(Jt=3),n.flags&=-257,n.flags|=65536,n.lanes=c,u===pf?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([u]):t.add(u),cd(e,u,c)),!1;case 22:return n.flags|=65536,u===pf?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([u])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([u]):n.add(u)),cd(e,u,c)),!1}throw Error(o(435,n.tag))}return cd(e,u,c),ud(),!1}if(it)return t=ca.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,u!==Tl&&(e=Error(o(422),{cause:u}),Jr(Ln(e,n)))):(u!==Tl&&(t=Error(o(423),{cause:u}),Jr(Ln(t,n))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,u=Ln(u,n),c=Lo(e.stateNode,u,c),ka(e,c),Jt!==4&&(Jt=2)),!1;var d=Error(o(520),{cause:u});if(d=Ln(d,n),ls===null?ls=[d]:ls.push(d),Jt!==4&&(Jt=2),t===null)return!0;u=Ln(u,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=c&-c,n.lanes|=e,e=Lo(n.stateNode,u,e),ka(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"&&(si===null||!si.has(d))))return n.flags|=65536,c&=-c,n.lanes|=c,c=Yf(c),nm(c,e,n,u),ka(n,c),!1}n=n.return}while(n!==null);return!1}var rm=Error(o(461)),pn=!1;function kt(e,t,n,u){t.child=e===null?Fh(t,null,n,u):Qi(t,e.child,n,u)}function Bo(e,t,n,u,c){n=n.render;var d=t.ref;if("ref"in u){var p={};for(var x in u)x!=="ref"&&(p[x]=u[x])}else p=u;return zi(t),u=_f(e,t,n,p,d,c),x=Sf(),e!==null&&!pn?(Gi(e,t,c),Mr(e,t,c)):(it&&x&&mf(t),t.flags|=1,kt(e,t,u,c),t.child)}function zo(e,t,n,u,c){if(e===null){var d=n.type;return typeof d=="function"&&!Ni(d)&&d.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=d,Uo(e,t,d,u,c)):(e=so(n.type,null,u,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!qa(e,c)){var p=d.memoizedProps;if(n=n.compare,n=n!==null?n:Fa,n(p,u)&&e.ref===t.ref)return Mr(e,t,c)}return t.flags|=1,e=Bn(d,u),e.ref=t.ref,e.return=t,t.child=e}function Uo(e,t,n,u,c){if(e!==null){var d=e.memoizedProps;if(Fa(d,u)&&e.ref===t.ref)if(pn=!1,t.pendingProps=u=d,qa(e,c))(e.flags&131072)!==0&&(pn=!0);else return t.lanes=e.lanes,Mr(e,t,c)}return jl(e,t,n,u,c)}function Wu(e,t,n){var u=t.pendingProps,c=u.children,d=e!==null?e.memoizedState:null;if(u.mode==="hidden"){if((t.flags&128)!==0){if(u=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&~u}else t.childLanes=0,t.child=null;return Zi(e,t,u,n)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ho(t,d!==null?d.cachePool:null),d!==null?_r(t,d):vo(),$h(t);else return t.lanes=t.childLanes=536870912,Zi(e,t,d!==null?d.baseLanes|n:n,n)}else d!==null?(ho(t,d.cachePool),_r(t,d),Er(),t.memoizedState=null):(e!==null&&ho(t,null),vo(),Er());return kt(e,t,c,n),t.child}function Zi(e,t,n,u){var c=yr();return c=c===null?null:{parent:Dt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&ho(t,null),vo(),$h(t),e!==null&&Cu(e,t,u,!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 jl(e,t,n,u,c){return zi(t),n=_f(e,t,n,u,void 0,c),u=Sf(),e!==null&&!pn?(Gi(e,t,c),Mr(e,t,c)):(it&&u&&mf(t),t.flags|=1,kt(e,t,n,c),t.child)}function jo(e,t,n,u,c,d){return zi(t),t.updateQueue=null,n=Hh(t,u,n,c),kh(e),u=Sf(),e!==null&&!pn?(Gi(e,t,d),Mr(e,t,d)):(it&&u&&mf(t),t.flags|=1,kt(e,t,n,d),t.child)}function ai(e,t,n,u,c){if(zi(t),t.stateNode===null){var d=Ri,p=n.contextType;typeof p=="object"&&p!==null&&(d=Kt(p)),d=new n(u,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Ku,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=u,d.state=t.memoizedState,d.refs={},ji(t),p=n.contextType,d.context=typeof p=="object"&&p!==null?Kt(p):Ri,d.state=t.memoizedState,p=n.getDerivedStateFromProps,typeof p=="function"&&(Ul(t,n,p,u),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&&Ku.enqueueReplaceState(d,d.state,null),Tn(t,u,d,c),Ha(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),u=!0}else if(e===null){d=t.stateNode;var x=t.memoizedProps,C=ni(n,x);d.props=C;var I=d.context,ae=n.contextType;p=Ri,typeof ae=="object"&&ae!==null&&(p=Kt(ae));var ue=n.getDerivedStateFromProps;ae=typeof ue=="function"||typeof d.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,ae||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x||I!==p)&&em(t,d,u,p),$a=!1;var K=t.memoizedState;d.state=K,Tn(t,u,d,c),Ha(),I=t.memoizedState,x||K!==I||$a?(typeof ue=="function"&&(Ul(t,n,ue,u),I=t.memoizedState),(C=$a||Pu(t,n,C,u,K,I,p))?(ae||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=u,t.memoizedState=I),d.props=u,d.state=I,d.context=p,u=C):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),u=!1)}else{d=t.stateNode,Nl(e,t),p=t.memoizedProps,ae=ni(n,p),d.props=ae,ue=t.pendingProps,K=d.context,I=n.contextType,C=Ri,typeof I=="object"&&I!==null&&(C=Kt(I)),x=n.getDerivedStateFromProps,(I=typeof x=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(p!==ue||K!==C)&&em(t,d,u,C),$a=!1,K=t.memoizedState,d.state=K,Tn(t,u,d,c),Ha();var V=t.memoizedState;p!==ue||K!==V||$a||e!==null&&e.dependencies!==null&&co(e.dependencies)?(typeof x=="function"&&(Ul(t,n,x,u),V=t.memoizedState),(ae=$a||Pu(t,n,ae,u,K,V,C)||e!==null&&e.dependencies!==null&&co(e.dependencies))?(I||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(u,V,C),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(u,V,C)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&K===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&K===e.memoizedState||(t.flags|=1024),t.memoizedProps=u,t.memoizedState=V),d.props=u,d.state=V,d.context=C,u=ae):(typeof d.componentDidUpdate!="function"||p===e.memoizedProps&&K===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&K===e.memoizedState||(t.flags|=1024),u=!1)}return d=u,ze(e,t),u=(t.flags&128)!==0,d||u?(d=t.stateNode,n=u&&typeof n.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&u?(t.child=Qi(t,e.child,null,c),t.child=Qi(t,null,n,c)):kt(e,t,n,c),t.memoizedState=d.state,e=t.child):e=Mr(e,t,c),e}function im(e,t,n,u){return Tu(),t.flags|=256,kt(e,t,n,u),t.child}var Fu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ko(e){return{baseLanes:e,cachePool:Nh()}}function bn(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ta),e}function lm(e,t,n){var u=t.pendingProps,c=!1,d=(t.flags&128)!==0,p;if((p=d)||(p=e!==null&&e.memoizedState===null?!1:(Pt.current&2)!==0),p&&(c=!0,t.flags&=-129),p=(t.flags&32)!==0,t.flags&=-33,e===null){if(it){if(c?wa(t):Er(),it){var x=qt,C;if(C=x){e:{for(C=x,x=Vn;C.nodeType!==8;){if(!x){x=null;break e}if(C=Ia(C.nextSibling),C===null){x=null;break e}}x=C}x!==null?(t.memoizedState={dehydrated:x,treeContext:jt!==null?{id:Gt,overflow:br}:null,retryLane:536870912,hydrationErrors:null},C=In(18,null,null,0),C.stateNode=x,C.return=t,t.child=C,ln=t,qt=null,C=!0):C=!1}C||Sa(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return kn(x)?t.lanes=32:t.lanes=536870912,null;tr(t)}return x=u.children,u=u.fallback,c?(Er(),c=t.mode,x=$u({mode:"hidden",children:x},c),u=Di(u,c,n,null),x.return=t,u.return=t,x.sibling=u,t.child=x,c=t.child,c.memoizedState=ko(n),c.childLanes=bn(e,p,n),t.memoizedState=Fu,u):(wa(t),If(t,x))}if(C=e.memoizedState,C!==null&&(x=C.dehydrated,x!==null)){if(d)t.flags&256?(wa(t),t.flags&=-257,t=Vf(e,t,n)):t.memoizedState!==null?(Er(),t.child=e.child,t.flags|=128,t=null):(Er(),c=u.fallback,x=t.mode,u=$u({mode:"visible",children:u.children},x),c=Di(c,x,n,null),c.flags|=2,u.return=t,c.return=t,u.sibling=c,t.child=u,Qi(t,e.child,null,n),u=t.child,u.memoizedState=ko(n),u.childLanes=bn(e,p,n),t.memoizedState=Fu,t=c);else if(wa(t),kn(x)){if(p=x.nextSibling&&x.nextSibling.dataset,p)var I=p.dgst;p=I,u=Error(o(419)),u.stack="",u.digest=p,Jr({value:u,source:null,stack:null}),t=Vf(e,t,n)}else if(pn||Cu(e,t,n,!1),p=(n&e.childLanes)!==0,pn||p){if(p=zt,p!==null&&(u=n&-n,u=(u&42)!==0?1:Bc(u),u=(u&(p.suspendedLanes|n))!==0?0:u,u!==0&&u!==C.retryLane))throw C.retryLane=u,Ci(e,u),ha(p,e,u),rm;x.data==="$?"||ud(),t=Vf(e,t,n)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=C.treeContext,qt=Ia(x.nextSibling),ln=t,it=!0,ja=null,Vn=!1,e!==null&&(_a[xa++]=Gt,_a[xa++]=br,_a[xa++]=jt,Gt=e.id,br=e.overflow,jt=t),t=If(t,u.children),t.flags|=4096);return t}return c?(Er(),c=u.fallback,x=t.mode,C=e.child,I=C.sibling,u=Bn(C,{mode:"hidden",children:u.children}),u.subtreeFlags=C.subtreeFlags&65011712,I!==null?c=Bn(I,c):(c=Di(c,x,n,null),c.flags|=2),c.return=t,u.return=t,u.sibling=c,t.child=u,u=c,c=t.child,x=e.child.memoizedState,x===null?x=ko(n):(C=x.cachePool,C!==null?(I=Dt._currentValue,C=C.parent!==I?{parent:I,pool:I}:C):C=Nh(),x={baseLanes:x.baseLanes|n,cachePool:C}),c.memoizedState=x,c.childLanes=bn(e,p,n),t.memoizedState=Fu,u):(wa(t),n=e.child,e=n.sibling,n=Bn(n,{mode:"visible",children:u.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 If(e,t){return t=$u({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $u(e,t){return e=In(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Vf(e,t,n){return Qi(t,e.child,null,n),e=If(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Qf(e,t,n){e.lanes|=t;var u=e.alternate;u!==null&&(u.lanes|=t),Qn(e.return,t,n)}function Xf(e,t,n,u,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:n,tailMode:c}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=u,d.tail=n,d.tailMode=c)}function um(e,t,n){var u=t.pendingProps,c=u.revealOrder,d=u.tail;if(kt(e,t,u.children,n),u=Pt.current,(u&2)!==0)u=u&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&&Qf(e,n,t);else if(e.tag===19)Qf(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}u&=1}switch(F(Pt,u),c){case"forwards":for(n=t.child,c=null;n!==null;)e=n.alternate,e!==null&&Zu(e)===null&&(c=n),n=n.sibling;n=c,n===null?(c=t.child,t.child=null):(c=n.sibling,n.sibling=null),Xf(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&&Zu(e)===null){t.child=c;break}e=c.sibling,c.sibling=n,n=c,c=e}Xf(t,!0,n,null,d);break;case"together":Xf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Mr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ui|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Cu(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=Bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function qa(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&co(e)))}function jn(e,t,n){switch(t.tag){case 3:je(t,t.stateNode.containerInfo),sa(t,Dt,e.memoizedState.cache),Tu();break;case 27:case 5:Fe(t);break;case 4:je(t,t.stateNode.containerInfo);break;case 10:sa(t,t.type,t.memoizedProps.value);break;case 13:var u=t.memoizedState;if(u!==null)return u.dehydrated!==null?(wa(t),t.flags|=128,null):(n&t.child.childLanes)!==0?lm(e,t,n):(wa(t),e=Mr(e,t,n),e!==null?e.sibling:null);wa(t);break;case 19:var c=(e.flags&128)!==0;if(u=(n&t.childLanes)!==0,u||(Cu(e,t,n,!1),u=(n&t.childLanes)!==0),c){if(u)return um(e,t,n);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),F(Pt,Pt.current),u)break;return null;case 22:case 23:return t.lanes=0,Wu(e,t,n);case 24:sa(t,Dt,e.memoizedState.cache)}return Mr(e,t,n)}function Ho(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)pn=!0;else{if(!qa(e,n)&&(t.flags&128)===0)return pn=!1,jn(e,t,n);pn=(e.flags&131072)!==0}else pn=!1,it&&(t.flags&1048576)!==0&&hf(t,Mu,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var u=t.elementType,c=u._init;if(u=c(u._payload),t.type=u,typeof u=="function")Ni(u)?(e=ni(u,e),t.tag=1,t=ai(null,t,u,e,n)):(t.tag=0,t=jl(null,t,u,e,n));else{if(u!=null){if(c=u.$$typeof,c===ye){t.tag=11,t=Bo(null,t,u,e,n);break e}else if(c===be){t.tag=14,t=zo(null,t,u,e,n);break e}}throw t=ge(u)||u,Error(o(306,t,""))}}return t;case 0:return jl(e,t,t.type,t.pendingProps,n);case 1:return u=t.type,c=ni(u,t.pendingProps),ai(e,t,u,c,n);case 3:e:{if(je(t,t.stateNode.containerInfo),e===null)throw Error(o(387));u=t.pendingProps;var d=t.memoizedState;c=d.element,Nl(e,t),Tn(t,u,null,n);var p=t.memoizedState;if(u=p.cache,sa(t,Dt,u),u!==d.cache&&$e(t,[Dt],n,!0),Ha(),u=p.element,d.isDehydrated)if(d={element:u,isDehydrated:!1,cache:p.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=im(e,t,u,n);break e}else if(u!==c){c=Ln(Error(o(424)),t),Jr(c),t=im(e,t,u,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(qt=Ia(e.firstChild),ln=t,it=!0,ja=null,Vn=!0,n=Fh(t,null,u,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Tu(),u===c){t=Mr(e,t,n);break e}kt(e,t,u,n)}t=t.child}return t;case 26:return ze(e,t),e===null?(n=ag(t.type,null,t.pendingProps,null))?t.memoizedState=n:it||(n=t.type,e=t.pendingProps,u=Ji(_e.current).createElement(n),u[gn]=t,u[Gn]=e,cn(u,n,e),vn(u),t.stateNode=u):t.memoizedState=ag(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Fe(t),e===null&&it&&(u=t.stateNode=eg(t.type,t.pendingProps,_e.current),ln=t,Vn=!0,c=qt,Ca(t.type)?(yd=c,qt=Ia(u.firstChild)):qt=c),kt(e,t,t.pendingProps.children,n),ze(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&it&&((c=u=qt)&&(u=Fm(u,t.type,t.pendingProps,Vn),u!==null?(t.stateNode=u,ln=t,qt=Ia(u.firstChild),Vn=!1,c=!0):c=!1),c||Sa(t)),Fe(t),c=t.type,d=t.pendingProps,p=e!==null?e.memoizedProps:null,u=d.children,nc(c,d)?u=null:p!==null&&nc(c,p)&&(t.flags|=32),t.memoizedState!==null&&(c=_f(e,t,xf,null,null,n),nu._currentValue=c),ze(e,t),kt(e,t,u,n),t.child;case 6:return e===null&&it&&((e=n=qt)&&(n=rc(n,t.pendingProps,Vn),n!==null?(t.stateNode=n,ln=t,qt=null,e=!0):e=!1),e||Sa(t)),null;case 13:return lm(e,t,n);case 4:return je(t,t.stateNode.containerInfo),u=t.pendingProps,e===null?t.child=Qi(t,null,u,n):kt(e,t,u,n),t.child;case 11:return Bo(e,t,t.type,t.pendingProps,n);case 7:return kt(e,t,t.pendingProps,n),t.child;case 8:return kt(e,t,t.pendingProps.children,n),t.child;case 12:return kt(e,t,t.pendingProps.children,n),t.child;case 10:return u=t.pendingProps,sa(t,t.type,u.value),kt(e,t,u.children,n),t.child;case 9:return c=t.type._context,u=t.pendingProps.children,zi(t),c=Kt(c),u=u(c),t.flags|=1,kt(e,t,u,n),t.child;case 14:return zo(e,t,t.type,t.pendingProps,n);case 15:return Uo(e,t,t.type,t.pendingProps,n);case 19:return um(e,t,n);case 31:return u=t.pendingProps,n=t.mode,u={mode:u.mode,children:u.children},e===null?(n=$u(u,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=Bn(e.child,u),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return Wu(e,t,n);case 24:return zi(t),u=Kt(Dt),e===null?(c=yr(),c===null&&(c=zt,d=gf(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=n),c=d),t.memoizedState={parent:u,cache:c},ji(t),sa(t,Dt,c)):((e.lanes&n)!==0&&(Nl(e,t),Tn(t,null,null,n),Ha()),c=e.memoizedState,d=t.memoizedState,c.parent!==u?(c={parent:u,cache:u},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),sa(t,Dt,u)):(u=d.cache,sa(t,Dt,u),u!==c.cache&&$e(t,[Dt],n,!0))),kt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function wr(e){e.flags|=4}function Go(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fn(t)){if(t=ca.current,t!==null&&((ct&4194048)===ct?Un!==null:(ct&62914560)!==ct&&(ct&536870912)===0||t!==Un))throw Rl=pf,Dh;e.flags|=8192}}function qo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?zs():536870912,e.lanes|=t,Vl|=t)}function es(e,t){if(!it)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 u=null;n!==null;)n.alternate!==null&&(u=n),n=n.sibling;u===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function Lt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,u=0;if(t)for(var c=e.child;c!==null;)n|=c.lanes|c.childLanes,u|=c.subtreeFlags&65011712,u|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)n|=c.lanes|c.childLanes,u|=c.subtreeFlags,u|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=u,e.childLanes=n,t}function sm(e,t,n){var u=t.pendingProps;switch(wu(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(t),null;case 1:return Lt(t),null;case 3:return n=t.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),t.memoizedState.cache!==u&&(t.flags|=2048),Ea(Dt),ot(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ou(t)?wr(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Oh())),Lt(t),null;case 26:return n=t.memoizedState,e===null?(wr(t),n!==null?(Lt(t),Go(t,n)):(Lt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(wr(t),Lt(t),Go(t,n)):(Lt(t),t.flags&=-16777217):(e.memoizedProps!==u&&wr(t),Lt(t),t.flags&=-16777217),null;case 27:Mt(t),n=_e.current;var c=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==u&&wr(t);else{if(!u){if(t.stateNode===null)throw Error(o(166));return Lt(t),null}e=me.current,Ou(t)?Mh(t):(e=eg(c,u,n),t.stateNode=e,wr(t))}return Lt(t),null;case 5:if(Mt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==u&&wr(t);else{if(!u){if(t.stateNode===null)throw Error(o(166));return Lt(t),null}if(e=me.current,Ou(t))Mh(t);else{switch(c=Ji(_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 u.is=="string"?c.createElement("select",{is:u.is}):c.createElement("select"),u.multiple?e.multiple=!0:u.size&&(e.size=u.size);break;default:e=typeof u.is=="string"?c.createElement(n,{is:u.is}):c.createElement(n)}}e[gn]=t,e[Gn]=u;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(cn(e,n,u),n){case"button":case"input":case"select":case"textarea":e=!!u.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&wr(t)}}return Lt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==u&&wr(t);else{if(typeof u!="string"&&t.stateNode===null)throw Error(o(166));if(e=_e.current,Ou(t)){if(e=t.stateNode,n=t.memoizedProps,u=null,c=ln,c!==null)switch(c.tag){case 27:case 5:u=c.memoizedProps}e[gn]=t,e=!!(e.nodeValue===n||u!==null&&u.suppressHydrationWarning===!0||Km(e.nodeValue,n)),e||Sa(t)}else e=Ji(e).createTextNode(u),e[gn]=t,t.stateNode=e}return Lt(t),null;case 13:if(u=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Ou(t),u!==null&&u.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[gn]=t}else Tu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Lt(t),c=!1}else c=Oh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(tr(t),t):(tr(t),null)}if(tr(t),(t.flags&128)!==0)return t.lanes=n,t;if(n=u!==null,e=e!==null&&e.memoizedState!==null,n){u=t.child,c=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(c=u.alternate.memoizedState.cachePool.pool);var d=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(d=u.memoizedState.cachePool.pool),d!==c&&(u.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),qo(t,t.updateQueue),Lt(t),null;case 4:return ot(),e===null&&gd(t.stateNode.containerInfo),Lt(t),null;case 10:return Ea(t.type),Lt(t),null;case 19:if(oe(Pt),c=t.memoizedState,c===null)return Lt(t),null;if(u=(t.flags&128)!==0,d=c.rendering,d===null)if(u)es(c,!1);else{if(Jt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Zu(e),d!==null){for(t.flags|=128,es(c,!1),e=d.updateQueue,t.updateQueue=e,qo(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Eu(n,e),n=n.sibling;return F(Pt,Pt.current&1|2),t.child}e=e.sibling}c.tail!==null&&bt()>Ql&&(t.flags|=128,u=!0,es(c,!1),t.lanes=4194304)}else{if(!u)if(e=Zu(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,qo(t,e),es(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!it)return Lt(t),null}else 2*bt()-c.renderingStartTime>Ql&&n!==536870912&&(t.flags|=128,u=!0,es(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=bt(),t.sibling=null,e=Pt.current,F(Pt,u?e&1|2:e&1),t):(Lt(t),null);case 22:case 23:return tr(t),Af(),u=t.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(t.flags|=8192):u&&(t.flags|=8192),u?(n&536870912)!==0&&(t.flags&128)===0&&(Lt(t),t.subtreeFlags&6&&(t.flags|=8192)):Lt(t),n=t.updateQueue,n!==null&&qo(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),u=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),u!==n&&(t.flags|=2048),e!==null&&oe(Ui),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ea(Dt),Lt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function om(e,t){switch(wu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ea(Dt),ot(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Mt(t),null;case 13:if(tr(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Tu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return oe(Pt),null;case 4:return ot(),null;case 10:return Ea(t.type),null;case 22:case 23:return tr(t),Af(),e!==null&&oe(Ui),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ea(Dt),null;case 25:return null;default:return null}}function cm(e,t){switch(wu(t),t.tag){case 3:Ea(Dt),ot();break;case 26:case 27:case 5:Mt(t);break;case 4:ot();break;case 13:tr(t);break;case 19:oe(Pt);break;case 10:Ea(t.type);break;case 22:case 23:tr(t),Af(),e!==null&&oe(Ui);break;case 24:Ea(Dt)}}function ts(e,t){try{var n=t.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var c=u.next;n=c;do{if((n.tag&e)===e){u=void 0;var d=n.create,p=n.inst;u=d(),p.destroy=u}n=n.next}while(n!==c)}}catch(x){Bt(t,t.return,x)}}function ri(e,t,n){try{var u=t.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var d=c.next;u=d;do{if((u.tag&e)===e){var p=u.inst,x=p.destroy;if(x!==void 0){p.destroy=void 0,c=t;var C=n,I=x;try{I()}catch(ae){Bt(c,C,ae)}}}u=u.next}while(u!==d)}}catch(ae){Bt(t,t.return,ae)}}function fm(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{yf(t,n)}catch(u){Bt(e,e.return,u)}}}function Zf(e,t,n){n.props=ni(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(u){Bt(e,t,u)}}function kl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof n=="function"?e.refCleanup=n(u):n.current=u}}catch(c){Bt(e,t,c)}}function ar(e,t){var n=e.ref,u=e.refCleanup;if(n!==null)if(typeof u=="function")try{u()}catch(c){Bt(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){Bt(e,t,c)}else n.current=null}function Yo(e){var t=e.type,n=e.memoizedProps,u=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&u.focus();break e;case"img":n.src?u.src=n.src:n.srcSet&&(u.srcset=n.srcSet)}}catch(c){Bt(e,e.return,c)}}function Io(e,t,n){try{var u=e.stateNode;Qv(u,e.type,n,t),u[Gn]=t}catch(c){Bt(e,e.return,c)}}function Hl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ca(e.type)||e.tag===4}function ns(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hl(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&&Ca(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 Vo(e,t,n){var u=e.tag;if(u===5||u===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=ec));else if(u!==4&&(u===27&&Ca(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Vo(e,t,n),e=e.sibling;e!==null;)Vo(e,t,n),e=e.sibling}function as(e,t,n){var u=e.tag;if(u===5||u===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(u!==4&&(u===27&&Ca(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(as(e,t,n),e=e.sibling;e!==null;)as(e,t,n),e=e.sibling}function rs(e){var t=e.stateNode,n=e.memoizedProps;try{for(var u=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);cn(t,u,n),t[gn]=e,t[Gn]=n}catch(d){Bt(e,e.return,d)}}var rr=!1,yt=!1,Or=!1,dm=typeof WeakSet=="function"?WeakSet:Set,sn=null;function Nv(e,t){if(e=e.containerInfo,Ya=sc,e=Sh(e),of(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var u=n.getSelection&&n.getSelection();if(u&&u.rangeCount!==0){n=u.anchorNode;var c=u.anchorOffset,d=u.focusNode;u=u.focusOffset;try{n.nodeType,d.nodeType}catch{n=null;break e}var p=0,x=-1,C=-1,I=0,ae=0,ue=e,K=null;t:for(;;){for(var V;ue!==n||c!==0&&ue.nodeType!==3||(x=p+c),ue!==d||u!==0&&ue.nodeType!==3||(C=p+u),ue.nodeType===3&&(p+=ue.nodeValue.length),(V=ue.firstChild)!==null;)K=ue,ue=V;for(;;){if(ue===e)break t;if(K===n&&++I===c&&(x=p),K===d&&++ae===u&&(C=p),(V=ue.nextSibling)!==null)break;ue=K,K=ue.parentNode}ue=V}n=x===-1||C===-1?null:{start:x,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(tc={focusedElem:e,selectionRange:n},sc=!1,sn=t;sn!==null;)if(t=sn,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,sn=e;else for(;sn!==null;){switch(t=sn,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,u=n.stateNode;try{var ke=ni(n.type,c,n.elementType===n.type);e=u.getSnapshotBeforeUpdate(ke,d),u.__reactInternalSnapshotBeforeUpdate=e}catch(Ue){Bt(n,n.return,Ue)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)bd(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":bd(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,sn=e;break}sn=t.return}}function hm(e,t,n){var u=n.flags;switch(n.tag){case 0:case 11:case 15:ii(e,n),u&4&&ts(5,n);break;case 1:if(ii(e,n),u&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(p){Bt(n,n.return,p)}else{var c=ni(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(p){Bt(n,n.return,p)}}u&64&&fm(n),u&512&&kl(n,n.return);break;case 3:if(ii(e,n),u&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{yf(e,t)}catch(p){Bt(n,n.return,p)}}break;case 27:t===null&&u&4&&rs(n);case 26:case 5:ii(e,n),t===null&&u&4&&Yo(n),u&512&&kl(n,n.return);break;case 12:ii(e,n);break;case 13:ii(e,n),u&4&&vm(e,n),u&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Po.bind(null,n),Wl(e,n))));break;case 22:if(u=n.memoizedState!==null||rr,!u){t=t!==null&&t.memoizedState!==null||yt,c=rr;var d=yt;rr=u,(yt=t)&&!d?Cr(e,n,(n.subtreeFlags&8772)!==0):ii(e,n),rr=c,yt=d}break;case 30:break;default:ii(e,n)}}function mm(e){var t=e.alternate;t!==null&&(e.alternate=null,mm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Uc(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 Yt=null,Jn=!1;function Tr(e,t,n){for(n=n.child;n!==null;)gm(e,t,n),n=n.sibling}function gm(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(hr,n)}catch{}switch(n.tag){case 26:yt||ar(n,t),Tr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:yt||ar(n,t);var u=Yt,c=Jn;Ca(n.type)&&(Yt=n.stateNode,Jn=!1),Tr(e,t,n),gs(n.stateNode),Yt=u,Jn=c;break;case 5:yt||ar(n,t);case 6:if(u=Yt,c=Jn,Yt=null,Tr(e,t,n),Yt=u,Jn=c,Yt!==null)if(Jn)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(n.stateNode)}catch(d){Bt(n,t,d)}else try{Yt.removeChild(n.stateNode)}catch(d){Bt(n,t,d)}break;case 18:Yt!==null&&(Jn?(e=Yt,ac(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ss(e)):ac(Yt,n.stateNode));break;case 4:u=Yt,c=Jn,Yt=n.stateNode.containerInfo,Jn=!0,Tr(e,t,n),Yt=u,Jn=c;break;case 0:case 11:case 14:case 15:yt||ri(2,n,t),yt||ri(4,n,t),Tr(e,t,n);break;case 1:yt||(ar(n,t),u=n.stateNode,typeof u.componentWillUnmount=="function"&&Zf(n,t,u)),Tr(e,t,n);break;case 21:Tr(e,t,n);break;case 22:yt=(u=yt)||n.memoizedState!==null,Tr(e,t,n),yt=u;break;default:Tr(e,t,n)}}function vm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ss(e)}catch(n){Bt(t,t.return,n)}}function Dv(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dm),t;default:throw Error(o(435,e.tag))}}function Kf(e,t){var n=Dv(e);t.forEach(function(u){var c=kv.bind(null,e,u);n.has(u)||(n.add(u),u.then(c,c))})}function fa(e,t){var n=t.deletions;if(n!==null)for(var u=0;u<n.length;u++){var c=n[u],d=e,p=t,x=p;e:for(;x!==null;){switch(x.tag){case 27:if(Ca(x.type)){Yt=x.stateNode,Jn=!1;break e}break;case 5:Yt=x.stateNode,Jn=!1;break e;case 3:case 4:Yt=x.stateNode.containerInfo,Jn=!0;break e}x=x.return}if(Yt===null)throw Error(o(160));gm(d,p,c),Yt=null,Jn=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)Pf(t,e),t=t.sibling}var Oa=null;function Pf(e,t){var n=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:fa(t,e),Wn(e),u&4&&(ri(3,e,e.return),ts(3,e),ri(5,e,e.return));break;case 1:fa(t,e),Wn(e),u&512&&(yt||n===null||ar(n,n.return)),u&64&&rr&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?u:n.concat(u))));break;case 26:var c=Oa;if(fa(t,e),Wn(e),u&512&&(yt||n===null||ar(n,n.return)),u&4){var d=n!==null?n.memoizedState:null;if(u=e.memoizedState,n===null)if(u===null)if(e.stateNode===null){e:{u=e.type,n=e.memoizedProps,c=c.ownerDocument||c;t:switch(u){case"title":d=c.getElementsByTagName("title")[0],(!d||d[du]||d[gn]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(u),c.head.insertBefore(d,c.querySelector("head > title"))),cn(d,u,n),d[gn]=e,vn(d),u=d;break e;case"link":var p=lg("link","href",c).get(u+(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(u),cn(d,u,n),c.head.appendChild(d);break;case"meta":if(p=lg("meta","content",c).get(u+(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(u),cn(d,u,n),c.head.appendChild(d);break;default:throw Error(o(468,u))}d[gn]=e,vn(d),u=d}e.stateNode=u}else ug(c,e.type,e.stateNode);else e.stateNode=ig(c,u,e.memoizedProps);else d!==u?(d===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):d.count--,u===null?ug(c,e.type,e.stateNode):ig(c,u,e.memoizedProps)):u===null&&e.stateNode!==null&&Io(e,e.memoizedProps,n.memoizedProps)}break;case 27:fa(t,e),Wn(e),u&512&&(yt||n===null||ar(n,n.return)),n!==null&&u&4&&Io(e,e.memoizedProps,n.memoizedProps);break;case 5:if(fa(t,e),Wn(e),u&512&&(yt||n===null||ar(n,n.return)),e.flags&32){c=e.stateNode;try{Yr(c,"")}catch(V){Bt(e,e.return,V)}}u&4&&e.stateNode!=null&&(c=e.memoizedProps,Io(e,c,n!==null?n.memoizedProps:c)),u&1024&&(Or=!0);break;case 6:if(fa(t,e),Wn(e),u&4){if(e.stateNode===null)throw Error(o(162));u=e.memoizedProps,n=e.stateNode;try{n.nodeValue=u}catch(V){Bt(e,e.return,V)}}break;case 3:if(tu=null,c=Oa,Oa=Ze(t.containerInfo),fa(t,e),Oa=c,Wn(e),u&4&&n!==null&&n.memoizedState.isDehydrated)try{Ss(t.containerInfo)}catch(V){Bt(e,e.return,V)}Or&&(Or=!1,pm(e));break;case 4:u=Oa,Oa=Ze(e.stateNode.containerInfo),fa(t,e),Wn(e),Oa=u;break;case 12:fa(t,e),Wn(e);break;case 13:fa(t,e),Wn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(nd=bt()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Kf(e,u)));break;case 22:c=e.memoizedState!==null;var C=n!==null&&n.memoizedState!==null,I=rr,ae=yt;if(rr=I||c,yt=ae||C,fa(t,e),yt=ae,rr=I,Wn(e),u&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(n===null||C||rr||yt||Ki(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 ue=C.memoizedProps.style,K=ue!=null&&ue.hasOwnProperty("display")?ue.display:null;x.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(V){Bt(C,C.return,V)}}}else if(t.tag===6){if(n===null){C=t;try{C.stateNode.nodeValue=c?"":C.memoizedProps}catch(V){Bt(C,C.return,V)}}}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}u&4&&(u=e.updateQueue,u!==null&&(n=u.retryQueue,n!==null&&(u.retryQueue=null,Kf(e,n))));break;case 19:fa(t,e),Wn(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,Kf(e,u)));break;case 30:break;case 21:break;default:fa(t,e),Wn(e)}}function Wn(e){var t=e.flags;if(t&2){try{for(var n,u=e.return;u!==null;){if(Hl(u)){n=u;break}u=u.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var c=n.stateNode,d=ns(e);as(e,d,c);break;case 5:var p=n.stateNode;n.flags&32&&(Yr(p,""),n.flags&=-33);var x=ns(e);as(e,x,p);break;case 3:case 4:var C=n.stateNode.containerInfo,I=ns(e);Vo(e,I,C);break;default:throw Error(o(161))}}catch(ae){Bt(e,e.return,ae)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function pm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;pm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ii(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hm(e,t.alternate,t),t=t.sibling}function Ki(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),Ki(t);break;case 1:ar(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&Zf(t,t.return,n),Ki(t);break;case 27:gs(t.stateNode);case 26:case 5:ar(t,t.return),Ki(t);break;case 22:t.memoizedState===null&&Ki(t);break;case 30:Ki(t);break;default:Ki(t)}e=e.sibling}}function Cr(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var u=t.alternate,c=e,d=t,p=d.flags;switch(d.tag){case 0:case 11:case 15:Cr(c,d,n),ts(4,d);break;case 1:if(Cr(c,d,n),u=d,c=u.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(I){Bt(u,u.return,I)}if(u=d,c=u.updateQueue,c!==null){var x=u.stateNode;try{var C=c.shared.hiddenCallbacks;if(C!==null)for(c.shared.hiddenCallbacks=null,c=0;c<C.length;c++)Uh(C[c],x)}catch(I){Bt(u,u.return,I)}}n&&p&64&&fm(d),kl(d,d.return);break;case 27:rs(d);case 26:case 5:Cr(c,d,n),n&&u===null&&p&4&&Yo(d),kl(d,d.return);break;case 12:Cr(c,d,n);break;case 13:Cr(c,d,n),n&&p&4&&vm(c,d);break;case 22:d.memoizedState===null&&Cr(c,d,n),kl(d,d.return);break;case 30:break;default:Cr(c,d,n)}t=t.sibling}}function Jf(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&&Ru(n))}function Wf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ru(e))}function ir(e,t,n,u){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bm(e,t,n,u),t=t.sibling}function bm(e,t,n,u){var c=t.flags;switch(t.tag){case 0:case 11:case 15:ir(e,t,n,u),c&2048&&ts(9,t);break;case 1:ir(e,t,n,u);break;case 3:ir(e,t,n,u),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ru(e)));break;case 12:if(c&2048){ir(e,t,n,u),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){Bt(t,t.return,C)}}else ir(e,t,n,u);break;case 13:ir(e,t,n,u);break;case 23:break;case 22:d=t.stateNode,p=t.alternate,t.memoizedState!==null?d._visibility&2?ir(e,t,n,u):is(e,t):d._visibility&2?ir(e,t,n,u):(d._visibility|=2,Gl(e,t,n,u,(t.subtreeFlags&10256)!==0)),c&2048&&Jf(p,t);break;case 24:ir(e,t,n,u),c&2048&&Wf(t.alternate,t);break;default:ir(e,t,n,u)}}function Gl(e,t,n,u,c){for(c=c&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var d=e,p=t,x=n,C=u,I=p.flags;switch(p.tag){case 0:case 11:case 15:Gl(d,p,x,C,c),ts(8,p);break;case 23:break;case 22:var ae=p.stateNode;p.memoizedState!==null?ae._visibility&2?Gl(d,p,x,C,c):is(d,p):(ae._visibility|=2,Gl(d,p,x,C,c)),c&&I&2048&&Jf(p.alternate,p);break;case 24:Gl(d,p,x,C,c),c&&I&2048&&Wf(p.alternate,p);break;default:Gl(d,p,x,C,c)}t=t.sibling}}function is(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,u=t,c=u.flags;switch(u.tag){case 22:is(n,u),c&2048&&Jf(u.alternate,u);break;case 24:is(n,u),c&2048&&Wf(u.alternate,u);break;default:is(n,u)}t=t.sibling}}var Rn=8192;function ql(e){if(e.subtreeFlags&Rn)for(e=e.child;e!==null;)ym(e),e=e.sibling}function ym(e){switch(e.tag){case 26:ql(e),e.flags&Rn&&e.memoizedState!==null&&ap(Oa,e.memoizedState,e.memoizedProps);break;case 5:ql(e);break;case 3:case 4:var t=Oa;Oa=Ze(e.stateNode.containerInfo),ql(e),Oa=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Rn,Rn=16777216,ql(e),Rn=t):ql(e));break;default:ql(e)}}function Am(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 Yl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var u=t[n];sn=u,xm(u,e)}Am(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_m(e),e=e.sibling}function _m(e){switch(e.tag){case 0:case 11:case 15:Yl(e),e.flags&2048&&ri(9,e,e.return);break;case 3:Yl(e);break;case 12:Yl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Qo(e)):Yl(e);break;default:Yl(e)}}function Qo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var u=t[n];sn=u,xm(u,e)}Am(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ri(8,t,t.return),Qo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Qo(t));break;default:Qo(t)}e=e.sibling}}function xm(e,t){for(;sn!==null;){var n=sn;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 u=n.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Ru(n.memoizedState.cache)}if(u=n.child,u!==null)u.return=n,sn=u;else e:for(n=e;sn!==null;){u=sn;var c=u.sibling,d=u.return;if(mm(u),u===n){sn=null;break e}if(c!==null){c.return=d,sn=c;break e}sn=d}}}var Lv={getCacheForType:function(e){var t=Kt(Dt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},Ff=typeof WeakMap=="function"?WeakMap:Map,St=0,zt=null,nt=null,ct=0,Et=0,da=null,li=!1,Il=!1,$f=!1,Rr=0,Jt=0,ui=0,Pi=0,ed=0,Ta=0,Vl=0,ls=null,Fn=null,td=!1,nd=0,Ql=1/0,us=null,si=null,En=0,oi=null,Xl=null,Zl=0,ad=0,rd=null,Sm=null,Kl=0,id=null;function Nn(){if((St&2)!==0&&ct!==0)return ct&-ct;if(R.T!==null){var e=Cl;return e!==0?e:Fo()}return Pd()}function Em(){Ta===0&&(Ta=(ct&536870912)===0||it?On():536870912);var e=ca.current;return e!==null&&(e.flags|=32),Ta}function ha(e,t,n){(e===zt&&(Et===2||Et===9)||e.cancelPendingCommit!==null)&&(Pl(e,0),ci(e,ct,Ta,!1)),ll(e,n),((St&2)===0||e!==zt)&&(e===zt&&((St&2)===0&&(Pi|=n),Jt===4&&ci(e,ct,Ta,!1)),lr(e))}function Mm(e,t,n){if((St&6)!==0)throw Error(o(327));var u=!n&&(t&124)===0&&(t&e.expiredLanes)===0||mr(e,t),c=u?Uv(e,t):sd(e,t,!0),d=u;do{if(c===0){Il&&!u&&ci(e,t,0,!1);break}else{if(n=e.current.alternate,d&&!Bv(n)){c=sd(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=ls;var C=x.current.memoizedState.isDehydrated;if(C&&(Pl(x,p).flags|=256),p=sd(x,p,!1),p!==2){if($f&&!C){x.errorRecoveryDisabledLanes|=d,Pi|=d,c=4;break e}d=Fn,Fn=c,d!==null&&(Fn===null?Fn=d:Fn.push.apply(Fn,d))}c=p}if(d=!1,c!==2)continue}}if(c===1){Pl(e,0),ci(e,t,0,!0);break}e:{switch(u=e,d=c,d){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:ci(u,t,Ta,!li);break e;case 2:Fn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(c=nd+300-bt(),10<c)){if(ci(u,t,Ta,!li),Hr(u,0,!0)!==0)break e;u.timeoutHandle=Pm(wm.bind(null,u,n,Fn,us,td,t,Ta,Pi,Vl,li,d,2,-0,0),c);break e}wm(u,n,Fn,us,td,t,Ta,Pi,Vl,li,d,0,-0,0)}}break}while(!0);lr(e)}function wm(e,t,n,u,c,d,p,x,C,I,ae,ue,K,V){if(e.timeoutHandle=-1,ue=t.subtreeFlags,(ue&8192||(ue&16785408)===16785408)&&(yn={stylesheets:null,count:0,unsuspend:np},ym(t),ue=rp(),ue!==null)){e.cancelPendingCommit=ue(ss.bind(null,e,t,d,n,u,c,p,x,C,ae,1,K,V)),ci(e,d,p,!I);return}ss(e,t,d,n,u,c,p,x,C)}function Bv(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 u=0;u<n.length;u++){var c=n[u],d=c.getSnapshot;c=c.value;try{if(!la(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 ci(e,t,n,u){t&=~ed,t&=~Pi,e.suspendedLanes|=t,e.pingedLanes&=~t,u&&(e.warmLanes|=t),u=e.expirationTimes;for(var c=t;0<c;){var d=31-Sn(c),p=1<<d;u[d]=-1,c&=~p}n!==0&&Zd(e,n,t)}function Xo(){return(St&6)===0?(fs(0),!1):!0}function ld(){if(nt!==null){if(Et===0)var e=nt.return;else e=nt,_=Wr=null,po(e),un=null,Pn=0,e=nt;for(;e!==null;)cm(e.alternate,e),e=e.return;nt=null}}function Pl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Zv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ld(),zt=e,nt=n=Bn(e.current,null),ct=t,Et=0,da=null,li=!1,Il=mr(e,t),$f=!1,Vl=Ta=ed=Pi=ui=Jt=0,Fn=ls=null,td=!1,(t&8)!==0&&(t|=t&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=t;0<u;){var c=31-Sn(u),d=1<<c;t|=e[c],u&=~d}return Rr=t,Ti(),n}function Om(e,t){Je=null,R.H=Qu,t===zn||t===mo?(t=Bh(),Et=3):t===Dh?(t=Bh(),Et=4):Et=t===rm?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,da=t,nt===null&&(Jt=1,Ju(e,Ln(t,e.current)))}function Tm(){var e=R.H;return R.H=Qu,e===null?Qu:e}function Cm(){var e=R.A;return R.A=Lv,e}function ud(){Jt=4,li||(ct&4194048)!==ct&&ca.current!==null||(Il=!0),(ui&134217727)===0&&(Pi&134217727)===0||zt===null||ci(zt,ct,Ta,!1)}function sd(e,t,n){var u=St;St|=2;var c=Tm(),d=Cm();(zt!==e||ct!==t)&&(us=null,Pl(e,t)),t=!1;var p=Jt;e:do try{if(Et!==0&&nt!==null){var x=nt,C=da;switch(Et){case 8:ld(),p=6;break e;case 3:case 2:case 9:case 6:ca.current===null&&(t=!0);var I=Et;if(Et=0,da=null,Jl(e,x,C,I),n&&Il){p=0;break e}break;default:I=Et,Et=0,da=null,Jl(e,x,C,I)}}zv(),p=Jt;break}catch(ae){Om(e,ae)}while(!0);return t&&e.shellSuspendCounter++,_=Wr=null,St=u,R.H=c,R.A=d,nt===null&&(zt=null,ct=0,Ti()),p}function zv(){for(;nt!==null;)od(nt)}function Uv(e,t){var n=St;St|=2;var u=Tm(),c=Cm();zt!==e||ct!==t?(us=null,Ql=bt()+500,Pl(e,t)):Il=mr(e,t);e:do try{if(Et!==0&&nt!==null){t=nt;var d=da;t:switch(Et){case 1:Et=0,da=null,Jl(e,t,d,1);break;case 2:case 9:if(Lh(d)){Et=0,da=null,Nm(t);break}t=function(){Et!==2&&Et!==9||zt!==e||(Et=7),lr(e)},d.then(t,t);break e;case 3:Et=7;break e;case 4:Et=5;break e;case 7:Lh(d)?(Et=0,da=null,Nm(t)):(Et=0,da=null,Jl(e,t,d,7));break;case 5:var p=null;switch(nt.tag){case 26:p=nt.memoizedState;case 5:case 27:var x=nt;if(!p||fn(p)){Et=0,da=null;var C=x.sibling;if(C!==null)nt=C;else{var I=x.return;I!==null?(nt=I,Zo(I)):nt=null}break t}}Et=0,da=null,Jl(e,t,d,5);break;case 6:Et=0,da=null,Jl(e,t,d,6);break;case 8:ld(),Jt=6;break e;default:throw Error(o(462))}}Rm();break}catch(ae){Om(e,ae)}while(!0);return _=Wr=null,R.H=u,R.A=c,St=n,nt!==null?0:(zt=null,ct=0,Ti(),Jt)}function Rm(){for(;nt!==null&&!xn();)od(nt)}function od(e){var t=Ho(e.alternate,e,Rr);e.memoizedProps=e.pendingProps,t===null?Zo(e):nt=t}function Nm(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=jo(n,t,t.pendingProps,t.type,void 0,ct);break;case 11:t=jo(n,t,t.pendingProps,t.type.render,t.ref,ct);break;case 5:po(t);default:cm(n,t),t=nt=Eu(t,Rr),t=Ho(n,t,Rr)}e.memoizedProps=e.pendingProps,t===null?Zo(e):nt=t}function Jl(e,t,n,u){_=Wr=null,po(t),un=null,Pn=0;var c=t.return;try{if(am(e,c,t,n,ct)){Jt=1,Ju(e,Ln(n,e.current)),nt=null;return}}catch(d){if(c!==null)throw nt=c,d;Jt=1,Ju(e,Ln(n,e.current)),nt=null;return}t.flags&32768?(it||u===1?e=!0:Il||(ct&536870912)!==0?e=!1:(li=e=!0,(u===2||u===9||u===3||u===6)&&(u=ca.current,u!==null&&u.tag===13&&(u.flags|=16384))),Dm(t,e)):Zo(t)}function Zo(e){var t=e;do{if((t.flags&32768)!==0){Dm(t,li);return}e=t.return;var n=sm(t.alternate,t,Rr);if(n!==null){nt=n;return}if(t=t.sibling,t!==null){nt=t;return}nt=t=e}while(t!==null);Jt===0&&(Jt=5)}function Dm(e,t){do{var n=om(e.alternate,e);if(n!==null){n.flags&=32767,nt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){nt=e;return}nt=e=n}while(e!==null);Jt=6,nt=null}function ss(e,t,n,u,c,d,p,x,C){e.cancelPendingCommit=null;do Ko();while(En!==0);if((St&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(d=t.lanes|t.childLanes,d|=ff,lv(e,n,d,p,x,C),e===zt&&(nt=zt=null,ct=0),Xl=t,oi=e,Zl=n,ad=d,rd=c,Sm=u,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Gm(Ot,function(){return jm(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||u){u=R.T,R.T=null,c=X.p,X.p=2,p=St,St|=4;try{Nv(e,t,n)}finally{St=p,X.p=c,R.T=u}}En=1,Lm(),Bm(),zm()}}function Lm(){if(En===1){En=0;var e=oi,t=Xl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var u=X.p;X.p=2;var c=St;St|=4;try{Pf(t,e);var d=tc,p=Sh(e.containerInfo),x=d.focusedElem,C=d.selectionRange;if(p!==x&&x&&x.ownerDocument&&xh(x.ownerDocument.documentElement,x)){if(C!==null&&of(x)){var I=C.start,ae=C.end;if(ae===void 0&&(ae=I),"selectionStart"in x)x.selectionStart=I,x.selectionEnd=Math.min(ae,x.value.length);else{var ue=x.ownerDocument||document,K=ue&&ue.defaultView||window;if(K.getSelection){var V=K.getSelection(),ke=x.textContent.length,Ue=Math.min(C.start,ke),Rt=C.end===void 0?Ue:Math.min(C.end,ke);!V.extend&&Ue>Rt&&(p=Rt,Rt=Ue,Ue=p);var j=sf(x,Ue),L=sf(x,Rt);if(j&&L&&(V.rangeCount!==1||V.anchorNode!==j.node||V.anchorOffset!==j.offset||V.focusNode!==L.node||V.focusOffset!==L.offset)){var Y=ue.createRange();Y.setStart(j.node,j.offset),V.removeAllRanges(),Ue>Rt?(V.addRange(Y),V.extend(L.node,L.offset)):(Y.setEnd(L.node,L.offset),V.addRange(Y))}}}}for(ue=[],V=x;V=V.parentNode;)V.nodeType===1&&ue.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<ue.length;x++){var re=ue[x];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}sc=!!Ya,tc=Ya=null}finally{St=c,X.p=u,R.T=n}}e.current=t,En=2}}function Bm(){if(En===2){En=0;var e=oi,t=Xl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var u=X.p;X.p=2;var c=St;St|=4;try{hm(e,t.alternate,t)}finally{St=c,X.p=u,R.T=n}}En=3}}function zm(){if(En===4||En===3){En=0,Ei();var e=oi,t=Xl,n=Zl,u=Sm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?En=5:(En=0,Xl=oi=null,Um(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(si=null),js(n),t=t.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(hr,t,void 0,(t.current.flags&128)===128)}catch{}if(u!==null){t=R.T,c=X.p,X.p=2,R.T=null;try{for(var d=e.onRecoverableError,p=0;p<u.length;p++){var x=u[p];d(x.value,{componentStack:x.stack})}}finally{R.T=t,X.p=c}}(Zl&3)!==0&&Ko(),lr(e),c=e.pendingLanes,(n&4194090)!==0&&(c&42)!==0?e===id?Kl++:(Kl=0,id=e):Kl=0,fs(0)}}function Um(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ru(t)))}function Ko(e){return Lm(),Bm(),zm(),jm()}function jm(){if(En!==5)return!1;var e=oi,t=ad;ad=0;var n=js(Zl),u=R.T,c=X.p;try{X.p=32>n?32:n,R.T=null,n=rd,rd=null;var d=oi,p=Zl;if(En=0,Xl=oi=null,Zl=0,(St&6)!==0)throw Error(o(331));var x=St;if(St|=4,_m(d.current),bm(d,d.current,p,n),St=x,fs(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(hr,d)}catch{}return!0}finally{X.p=c,R.T=u,Um(e,t)}}function km(e,t,n){t=Ln(n,t),t=Lo(e.stateNode,t,2),e=Ar(e,t,2),e!==null&&(ll(e,2),lr(e))}function Bt(e,t,n){if(e.tag===3)km(e,e,n);else for(;t!==null;){if(t.tag===3){km(t,e,n);break}else if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(si===null||!si.has(u))){e=Ln(n,e),n=Yf(2),u=Ar(t,n,2),u!==null&&(nm(n,u,t,e),ll(u,2),lr(u));break}}t=t.return}}function cd(e,t,n){var u=e.pingCache;if(u===null){u=e.pingCache=new Ff;var c=new Set;u.set(t,c)}else c=u.get(t),c===void 0&&(c=new Set,u.set(t,c));c.has(n)||($f=!0,c.add(n),e=jv.bind(null,e,t,n),t.then(e,e))}function jv(e,t,n){var u=e.pingCache;u!==null&&u.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,zt===e&&(ct&n)===n&&(Jt===4||Jt===3&&(ct&62914560)===ct&&300>bt()-nd?(St&2)===0&&Pl(e,0):ed|=n,Vl===ct&&(Vl=0)),lr(e)}function Hm(e,t){t===0&&(t=zs()),e=Ci(e,t),e!==null&&(ll(e,t),lr(e))}function Po(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Hm(e,n)}function kv(e,t){var n=0;switch(e.tag){case 13:var u=e.stateNode,c=e.memoizedState;c!==null&&(n=c.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(o(314))}u!==null&&u.delete(t),Hm(e,n)}function Gm(e,t){return hn(e,t)}var os=null,fi=null,Jo=!1,cs=!1,Wo=!1,di=0;function lr(e){e!==fi&&e.next===null&&(fi===null?os=fi=e:fi=fi.next=e),cs=!0,Jo||(Jo=!0,fd())}function fs(e,t){if(!Wo&&cs){Wo=!0;do for(var n=!1,u=os;u!==null;){if(e!==0){var c=u.pendingLanes;if(c===0)var d=0;else{var p=u.suspendedLanes,x=u.pingedLanes;d=(1<<31-Sn(42|e)+1)-1,d&=c&~(p&~x),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(n=!0,Ym(u,d))}else d=ct,d=Hr(u,u===zt?d:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(d&3)===0||mr(u,d)||(n=!0,Ym(u,d));u=u.next}while(n);Wo=!1}}function Hv(){ds()}function ds(){cs=Jo=!1;var e=0;di!==0&&(Xv()&&(e=di),di=0);for(var t=bt(),n=null,u=os;u!==null;){var c=u.next,d=hs(u,t);d===0?(u.next=null,n===null?os=c:n.next=c,c===null&&(fi=n)):(n=u,(e!==0||(d&3)!==0)&&(cs=!0)),u=c}fs(e)}function hs(e,t){for(var n=e.suspendedLanes,u=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var p=31-Sn(d),x=1<<p,C=c[p];C===-1?((x&n)===0||(x&u)!==0)&&(c[p]=Lc(x,t)):C<=t&&(e.expiredLanes|=x),d&=~x}if(t=zt,n=ct,n=Hr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,n===0||e===t&&(Et===2||Et===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&Ut(u),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||mr(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(u!==null&&Ut(u),js(n)){case 2:case 8:n=aa;break;case 32:n=Ot;break;case 268435456:n=Da;break;default:n=Ot}return u=qm.bind(null,e),n=hn(n,u),e.callbackPriority=t,e.callbackNode=n,t}return u!==null&&u!==null&&Ut(u),e.callbackPriority=2,e.callbackNode=null,2}function qm(e,t){if(En!==0&&En!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ko()&&e.callbackNode!==n)return null;var u=ct;return u=Hr(e,e===zt?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(Mm(e,u,t),hs(e,bt()),e.callbackNode!=null&&e.callbackNode===n?qm.bind(null,e):null)}function Ym(e,t){if(Ko())return null;Mm(e,t,!0)}function fd(){Kv(function(){(St&6)!==0?hn(Qt,Hv):ds()})}function Fo(){return di===0&&(di=On()),di}function Im(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:gu(""+e)}function Vm(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 Gv(e,t,n,u,c){if(t==="submit"&&n&&n.stateNode===c){var d=Im((c[Gn]||null).action),p=u.submitter;p&&(t=(t=p[Gn]||null)?Im(t.formAction):p.getAttribute("formAction"),t!==null&&(d=t,p=null));var x=new Zs("action","action",null,u,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(di!==0){var C=p?Vm(c,p):new FormData(c);Iu(n,{pending:!0,data:C,method:c.method,action:d},null,C)}}else typeof d=="function"&&(x.preventDefault(),C=p?Vm(c,p):new FormData(c),Iu(n,{pending:!0,data:C,method:c.method,action:d},d,C))},currentTarget:c}]})}}for(var dd=0;dd<gt.length;dd++){var hd=gt[dd],qv=hd.toLowerCase(),Yv=hd[0].toUpperCase()+hd.slice(1);za(qv,"on"+Yv)}za(io,"onAnimationEnd"),za(Eh,"onAnimationIteration"),za(ua,"onAnimationStart"),za("dblclick","onDoubleClick"),za("focusin","onFocus"),za("focusout","onBlur"),za(lo,"onTransitionRun"),za(Ev,"onTransitionStart"),za(El,"onTransitionCancel"),za(Au,"onTransitionEnd"),fl("onMouseEnter",["mouseout","mouseover"]),fl("onMouseLeave",["mouseout","mouseover"]),fl("onPointerEnter",["pointerout","pointerover"]),fl("onPointerLeave",["pointerout","pointerover"]),Mi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Mi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ms="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(" "),Iv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ms));function Qm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var u=e[n],c=u.event;u=u.listeners;e:{var d=void 0;if(t)for(var p=u.length-1;0<=p;p--){var x=u[p],C=x.instance,I=x.currentTarget;if(x=x.listener,C!==d&&c.isPropagationStopped())break e;d=x,c.currentTarget=I;try{d(c)}catch(ae){Xi(ae)}c.currentTarget=null,d=C}else for(p=0;p<u.length;p++){if(x=u[p],C=x.instance,I=x.currentTarget,x=x.listener,C!==d&&c.isPropagationStopped())break e;d=x,c.currentTarget=I;try{d(c)}catch(ae){Xi(ae)}c.currentTarget=null,d=C}}}}function at(e,t){var n=t[zc];n===void 0&&(n=t[zc]=new Set);var u=e+"__bubble";n.has(u)||(Xm(t,e,2,!1),n.add(u))}function md(e,t,n){var u=0;t&&(u|=4),Xm(n,e,u,t)}var $n="_reactListening"+Math.random().toString(36).slice(2);function gd(e){if(!e[$n]){e[$n]=!0,Wd.forEach(function(n){n!=="selectionchange"&&(Iv.has(n)||md(n,!1,e),md(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$n]||(t[$n]=!0,md("selectionchange",!1,t))}}function Xm(e,t,n,u){switch(fg(t)){case 2:var c=up;break;case 8:c=au;break;default:c=Md}n=c.bind(null,t,n,e),c=void 0,!pu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),u?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 Nr(e,t,n,u,c){var d=u;if((t&1)===0&&(t&2)===0&&u!==null)e:for(;;){if(u===null)return;var p=u.tag;if(p===3||p===4){var x=u.stateNode.containerInfo;if(x===c)break;if(p===4)for(p=u.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=ul(x),p===null)return;if(C=p.tag,C===5||C===6||C===26||C===27){u=d=p;continue e}x=x.parentNode}}u=u.return}ah(function(){var I=d,ae=Pc(n),ue=[];e:{var K=_u.get(e);if(K!==void 0){var V=Zs,ke=e;switch(e){case"keypress":if(Tt(n)===0)break e;case"keydown":case"keyup":V=tf;break;case"focusin":ke="focus",V=Ps;break;case"focusout":ke="blur",V=Ps;break;case"beforeblur":case"afterblur":V=Ps;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":V=Vr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=ef;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=gv;break;case io:case Eh:case ua:V=sh;break;case Au:V=vv;break;case"scroll":case"scrollend":V=dv;break;case"wheel":V=bv;break;case"copy":case"cut":case"paste":V=ch;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=vr;break;case"toggle":case"beforetoggle":V=Ws}var Ue=(t&4)!==0,Rt=!Ue&&(e==="scroll"||e==="scrollend"),j=Ue?K!==null?K+"Capture":null:K;Ue=[];for(var L=I,Y;L!==null;){var re=L;if(Y=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||Y===null||j===null||(re=vu(L,j),re!=null&&Ue.push(Qe(L,re,Y))),Rt)break;L=L.return}0<Ue.length&&(K=new V(K,ke,null,n,ae),ue.push({event:K,listeners:Ue}))}}if((t&7)===0){e:{if(K=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",K&&n!==Qs&&(ke=n.relatedTarget||n.fromElement)&&(ul(ke)||ke[qr]))break e;if((V||K)&&(K=ae.window===ae?ae:(K=ae.ownerDocument)?K.defaultView||K.parentWindow:window,V?(ke=n.relatedTarget||n.toElement,V=I,ke=ke?ul(ke):null,ke!==null&&(Rt=g(ke),Ue=ke.tag,ke!==Rt||Ue!==5&&Ue!==27&&Ue!==6)&&(ke=null)):(V=null,ke=I),V!==ke)){if(Ue=Vr,re="onMouseLeave",j="onMouseEnter",L="mouse",(e==="pointerout"||e==="pointerover")&&(Ue=vr,re="onPointerLeave",j="onPointerEnter",L="pointer"),Rt=V==null?K:ol(V),Y=ke==null?K:ol(ke),K=new Ue(re,L+"leave",V,n,ae),K.target=Rt,K.relatedTarget=Y,re=null,ul(ae)===I&&(Ue=new Ue(j,L+"enter",ke,n,ae),Ue.target=Y,Ue.relatedTarget=Rt,re=Ue),Rt=re,V&&ke)t:{for(Ue=V,j=ke,L=0,Y=Ue;Y;Y=on(Y))L++;for(Y=0,re=j;re;re=on(re))Y++;for(;0<L-Y;)Ue=on(Ue),L--;for(;0<Y-L;)j=on(j),Y--;for(;L--;){if(Ue===j||j!==null&&Ue===j.alternate)break t;Ue=on(Ue),j=on(j)}Ue=null}else Ue=null;V!==null&&Wt(ue,K,V,Ue,!1),ke!==null&&Rt!==null&&Wt(ue,Rt,ke,Ue,!0)}}e:{if(K=I?ol(I):window,V=K.nodeName&&K.nodeName.toLowerCase(),V==="select"||V==="input"&&K.type==="file")var Oe=ph;else if(to(K))if(bh)Oe=_v;else{Oe=Zr;var et=_h}else V=K.nodeName,!V||V.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?I&&Kc(I.elementType)&&(Oe=ph):Oe=ro;if(Oe&&(Oe=Oe(e,I))){Al(ue,Oe,n,ae);break e}et&&et(e,K,I),e==="focusout"&&I&&K.type==="number"&&I.memoizedProps.value!=null&&mu(K,"number",K.value)}switch(et=I?ol(I):window,e){case"focusin":(to(et)||et.contentEditable==="true")&&(Sl=et,Kr=I,z=null);break;case"focusout":z=Kr=Sl=null;break;case"mousedown":$=!0;break;case"contextmenu":case"mouseup":case"dragend":$=!1,P(ue,n,ae);break;case"selectionchange":if(Sv)break;case"keydown":case"keyup":P(ue,n,ae)}var Be;if(rf)e:{switch(e){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else Qr?gh(e,n)&&(He="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(He="onCompositionStart");He&&(Fs&&n.locale!=="ko"&&(Qr||He!=="onCompositionStart"?He==="onCompositionEnd"&&Qr&&(Be=rh()):(Ir=ae,Fc="value"in Ir?Ir.value:Ir.textContent,Qr=!0)),et=$o(I,He),0<et.length&&(He=new Yn(He,e,null,n,ae),ue.push({event:He,listeners:et}),Be?He.data=Be:(Be=eo(n),Be!==null&&(He.data=Be)))),(Be=mh?yv(e,n):vh(e,n))&&(He=$o(I,"onBeforeInput"),0<He.length&&(et=new Yn("onBeforeInput","beforeinput",null,n,ae),ue.push({event:et,listeners:He}),et.data=Be)),Gv(ue,e,I,n,ae)}Qm(ue,t)})}function Qe(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $o(e,t){for(var n=t+"Capture",u=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=vu(e,n),c!=null&&u.unshift(Qe(e,c,d)),c=vu(e,t),c!=null&&u.push(Qe(e,c,d))),e.tag===3)return u;e=e.return}return[]}function on(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wt(e,t,n,u,c){for(var d=t._reactName,p=[];n!==null&&n!==u;){var x=n,C=x.alternate,I=x.stateNode;if(x=x.tag,C!==null&&C===u)break;x!==5&&x!==26&&x!==27||I===null||(C=I,c?(I=vu(n,d),I!=null&&p.unshift(Qe(n,I,C))):c||(I=vu(n,d),I!=null&&p.push(Qe(n,I,C)))),n=n.return}p.length!==0&&e.push({event:t,listeners:p})}var Vv=/\r\n?/g,hi=/\u0000|\uFFFD/g;function Zm(e){return(typeof e=="string"?e:""+e).replace(Vv,`
`).replace(hi,"")}function Km(e,t){return t=Zm(t),Zm(e)===t}function ec(){}function Ct(e,t,n,u,c,d){switch(n){case"children":typeof u=="string"?t==="body"||t==="textarea"&&u===""||Yr(e,u):(typeof u=="number"||typeof u=="bigint")&&t!=="body"&&Yr(e,""+u);break;case"className":Gs(e,"class",u);break;case"tabIndex":Gs(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Gs(e,n,u);break;case"style":Zc(e,u,d);break;case"data":if(t!=="object"){Gs(e,"data",u);break}case"src":case"href":if(u===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(n);break}u=gu(""+u),e.setAttribute(n,u);break;case"action":case"formAction":if(typeof u=="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"&&Ct(e,t,"name",c.name,c,null),Ct(e,t,"formEncType",c.formEncType,c,null),Ct(e,t,"formMethod",c.formMethod,c,null),Ct(e,t,"formTarget",c.formTarget,c,null)):(Ct(e,t,"encType",c.encType,c,null),Ct(e,t,"method",c.method,c,null),Ct(e,t,"target",c.target,c,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(n);break}u=gu(""+u),e.setAttribute(n,u);break;case"onClick":u!=null&&(e.onclick=ec);break;case"onScroll":u!=null&&at("scroll",e);break;case"onScrollEnd":u!=null&&at("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(o(61));if(n=u.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}n=gu(""+u),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":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(n,""+u):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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":u===!0?e.setAttribute(n,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(n,u):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(n,u):e.removeAttribute(n);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(n):e.setAttribute(n,u);break;case"popover":at("beforetoggle",e),at("toggle",e),Hs(e,"popover",u);break;case"xlinkActuate":Ja(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Ja(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Ja(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Ja(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Ja(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Ja(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Ja(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Ja(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Ja(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Hs(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=th.get(n)||n,Hs(e,n,u))}}function vd(e,t,n,u,c,d){switch(n){case"style":Zc(e,u,d);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(o(61));if(n=u.__html,n!=null){if(c.children!=null)throw Error(o(60));e.innerHTML=n}}break;case"children":typeof u=="string"?Yr(e,u):(typeof u=="number"||typeof u=="bigint")&&Yr(e,""+u);break;case"onScroll":u!=null&&at("scroll",e);break;case"onScrollEnd":u!=null&&at("scrollend",e);break;case"onClick":u!=null&&(e.onclick=ec);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Fd.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[Gn]||null,d=d!=null?d[n]:null,typeof d=="function"&&e.removeEventListener(t,d,c),typeof u=="function")){typeof d!="function"&&d!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,u,c);break e}n in e?e[n]=u:u===!0?e.setAttribute(n,""):Hs(e,n,u)}}}function cn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",e),at("load",e);var u=!1,c=!1,d;for(d in n)if(n.hasOwnProperty(d)){var p=n[d];if(p!=null)switch(d){case"src":u=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ct(e,t,d,p,n,null)}}c&&Ct(e,t,"srcSet",n.srcSet,n,null),u&&Ct(e,t,"src",n.src,n,null);return;case"input":at("invalid",e);var x=d=p=c=null,C=null,I=null;for(u in n)if(n.hasOwnProperty(u)){var ae=n[u];if(ae!=null)switch(u){case"name":c=ae;break;case"type":p=ae;break;case"checked":C=ae;break;case"defaultChecked":I=ae;break;case"value":d=ae;break;case"defaultValue":x=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(o(137,t));break;default:Ct(e,t,u,ae,n,null)}}Vc(e,d,x,C,I,p,c,!1),Ys(e);return;case"select":at("invalid",e),u=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":u=x;default:Ct(e,t,c,x,n,null)}t=d,n=p,e.multiple=!!u,t!=null?hl(e,!!u,t,!1):n!=null&&hl(e,!!u,n,!0);return;case"textarea":at("invalid",e),d=c=u=null;for(p in n)if(n.hasOwnProperty(p)&&(x=n[p],x!=null))switch(p){case"value":u=x;break;case"defaultValue":c=x;break;case"children":d=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(o(91));break;default:Ct(e,t,p,x,n,null)}Vs(e,u,c,d),Ys(e);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(u=n[C],u!=null))switch(C){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Ct(e,t,C,u,n,null)}return;case"dialog":at("beforetoggle",e),at("toggle",e),at("cancel",e),at("close",e);break;case"iframe":case"object":at("load",e);break;case"video":case"audio":for(u=0;u<ms.length;u++)at(ms[u],e);break;case"image":at("error",e),at("load",e);break;case"details":at("toggle",e);break;case"embed":case"source":case"link":at("error",e),at("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(I in n)if(n.hasOwnProperty(I)&&(u=n[I],u!=null))switch(I){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ct(e,t,I,u,n,null)}return;default:if(Kc(t)){for(ae in n)n.hasOwnProperty(ae)&&(u=n[ae],u!==void 0&&vd(e,t,ae,u,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(u=n[x],u!=null&&Ct(e,t,x,u,n,null))}function Qv(e,t,n,u){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,I=null,ae=null;for(V in n){var ue=n[V];if(n.hasOwnProperty(V)&&ue!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":C=ue;default:u.hasOwnProperty(V)||Ct(e,t,V,null,u,ue)}}for(var K in u){var V=u[K];if(ue=n[K],u.hasOwnProperty(K)&&(V!=null||ue!=null))switch(K){case"type":d=V;break;case"name":c=V;break;case"checked":I=V;break;case"defaultChecked":ae=V;break;case"value":p=V;break;case"defaultValue":x=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,t));break;default:V!==ue&&Ct(e,t,K,V,u,ue)}}Is(e,p,x,C,I,ae,d,c);return;case"select":V=p=x=K=null;for(d in n)if(C=n[d],n.hasOwnProperty(d)&&C!=null)switch(d){case"value":break;case"multiple":V=C;default:u.hasOwnProperty(d)||Ct(e,t,d,null,u,C)}for(c in u)if(d=u[c],C=n[c],u.hasOwnProperty(c)&&(d!=null||C!=null))switch(c){case"value":K=d;break;case"defaultValue":x=d;break;case"multiple":p=d;default:d!==C&&Ct(e,t,c,d,u,C)}t=x,n=p,u=V,K!=null?hl(e,!!n,K,!1):!!u!=!!n&&(t!=null?hl(e,!!n,t,!0):hl(e,!!n,n?[]:"",!1));return;case"textarea":V=K=null;for(x in n)if(c=n[x],n.hasOwnProperty(x)&&c!=null&&!u.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ct(e,t,x,null,u,c)}for(p in u)if(c=u[p],d=n[p],u.hasOwnProperty(p)&&(c!=null||d!=null))switch(p){case"value":K=c;break;case"defaultValue":V=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(o(91));break;default:c!==d&&Ct(e,t,p,c,u,d)}Qc(e,K,V);return;case"option":for(var ke in n)if(K=n[ke],n.hasOwnProperty(ke)&&K!=null&&!u.hasOwnProperty(ke))switch(ke){case"selected":e.selected=!1;break;default:Ct(e,t,ke,null,u,K)}for(C in u)if(K=u[C],V=n[C],u.hasOwnProperty(C)&&K!==V&&(K!=null||V!=null))switch(C){case"selected":e.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:Ct(e,t,C,K,u,V)}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 Ue in n)K=n[Ue],n.hasOwnProperty(Ue)&&K!=null&&!u.hasOwnProperty(Ue)&&Ct(e,t,Ue,null,u,K);for(I in u)if(K=u[I],V=n[I],u.hasOwnProperty(I)&&K!==V&&(K!=null||V!=null))switch(I){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(o(137,t));break;default:Ct(e,t,I,K,u,V)}return;default:if(Kc(t)){for(var Rt in n)K=n[Rt],n.hasOwnProperty(Rt)&&K!==void 0&&!u.hasOwnProperty(Rt)&&vd(e,t,Rt,void 0,u,K);for(ae in u)K=u[ae],V=n[ae],!u.hasOwnProperty(ae)||K===V||K===void 0&&V===void 0||vd(e,t,ae,K,u,V);return}}for(var j in n)K=n[j],n.hasOwnProperty(j)&&K!=null&&!u.hasOwnProperty(j)&&Ct(e,t,j,null,u,K);for(ue in u)K=u[ue],V=n[ue],!u.hasOwnProperty(ue)||K===V||K==null&&V==null||Ct(e,t,ue,K,u,V)}var Ya=null,tc=null;function Ji(e){return e.nodeType===9?e:e.ownerDocument}function It(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 Zt(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 nc(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 pd=null;function Xv(){var e=window.event;return e&&e.type==="popstate"?e===pd?!1:(pd=e,!0):(pd=null,!1)}var Pm=typeof setTimeout=="function"?setTimeout:void 0,Zv=typeof clearTimeout=="function"?clearTimeout:void 0,Jm=typeof Promise=="function"?Promise:void 0,Kv=typeof queueMicrotask=="function"?queueMicrotask:typeof Jm<"u"?function(e){return Jm.resolve(null).then(e).catch(Wm)}:Pm;function Wm(e){setTimeout(function(){throw e})}function Ca(e){return e==="head"}function ac(e,t){var n=t,u=0,c=0;do{var d=n.nextSibling;if(e.removeChild(n),d&&d.nodeType===8)if(n=d.data,n==="/$"){if(0<u&&8>u){n=u;var p=e.ownerDocument;if(n&1&&gs(p.documentElement),n&2&&gs(p.body),n&4)for(n=p.head,gs(n),p=n.firstChild;p;){var x=p.nextSibling,C=p.nodeName;p[du]||C==="SCRIPT"||C==="STYLE"||C==="LINK"&&p.rel.toLowerCase()==="stylesheet"||n.removeChild(p),p=x}}if(c===0){e.removeChild(d),Ss(t);return}c--}else n==="$"||n==="$?"||n==="$!"?c++:u=n.charCodeAt(0)-48;else u=0;n=d}while(n);Ss(t)}function bd(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":bd(n),Uc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Fm(e,t,n,u){for(;e.nodeType===1;){var c=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[du])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=Ia(e.nextSibling),e===null)break}return null}function rc(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Ia(e.nextSibling),e===null))return null;return e}function kn(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function Wl(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var u=function(){t(),n.removeEventListener("DOMContentLoaded",u)};n.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function Ia(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 yd=null;function $m(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 eg(e,t,n){switch(t=Ji(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 gs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Uc(e)}var ma=new Map,ur=new Set;function Ze(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sr=X.d;X.d={f:Ra,r:tg,D:Pv,C:ng,L:ic,m:Jv,X:Fv,S:Wv,M:$v};function Ra(){var e=sr.f(),t=Xo();return e||t}function tg(e){var t=sl(e);t!==null&&t.tag===5&&t.type==="form"?Co(t):sr.r(e)}var Fl=typeof document>"u"?null:document;function vt(e,t,n){var u=Fl;if(u&&typeof t=="string"&&t){var c=va(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof n=="string"&&(c+='[crossorigin="'+n+'"]'),ur.has(c)||(ur.add(c),e={rel:e,crossOrigin:n,href:t},u.querySelector(c)===null&&(t=u.createElement("link"),cn(t,"link",e),vn(t),u.head.appendChild(t)))}}function Pv(e){sr.D(e),vt("dns-prefetch",e,null)}function ng(e,t){sr.C(e,t),vt("preconnect",e,t)}function ic(e,t,n){sr.L(e,t,n);var u=Fl;if(u&&e&&t){var c='link[rel="preload"][as="'+va(t)+'"]';t==="image"&&n&&n.imageSrcSet?(c+='[imagesrcset="'+va(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(c+='[imagesizes="'+va(n.imageSizes)+'"]')):c+='[href="'+va(e)+'"]';var d=c;switch(t){case"style":d=$l(e);break;case"script":d=eu(e)}ma.has(d)||(e=O({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),ma.set(d,e),u.querySelector(c)!==null||t==="style"&&u.querySelector(vs(d))||t==="script"&&u.querySelector(ps(d))||(t=u.createElement("link"),cn(t,"link",e),vn(t),u.head.appendChild(t)))}}function Jv(e,t){sr.m(e,t);var n=Fl;if(n&&e){var u=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+va(u)+'"][href="'+va(e)+'"]',d=c;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=eu(e)}if(!ma.has(d)&&(e=O({rel:"modulepreload",href:e},t),ma.set(d,e),n.querySelector(c)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ps(d)))return}u=n.createElement("link"),cn(u,"link",e),vn(u),n.head.appendChild(u)}}}function Wv(e,t,n){sr.S(e,t,n);var u=Fl;if(u&&e){var c=cl(u).hoistableStyles,d=$l(e);t=t||"default";var p=c.get(d);if(!p){var x={loading:0,preload:null};if(p=u.querySelector(vs(d)))x.loading=5;else{e=O({rel:"stylesheet",href:e,"data-precedence":t},n),(n=ma.get(d))&&bs(e,n);var C=p=u.createElement("link");vn(C),cn(C,"link",e),C._p=new Promise(function(I,ae){C.onload=I,C.onerror=ae}),C.addEventListener("load",function(){x.loading|=1}),C.addEventListener("error",function(){x.loading|=2}),x.loading|=4,lc(p,t,u)}p={type:"stylesheet",instance:p,count:1,state:x},c.set(d,p)}}}function Fv(e,t){sr.X(e,t);var n=Fl;if(n&&e){var u=cl(n).hoistableScripts,c=eu(e),d=u.get(c);d||(d=n.querySelector(ps(c)),d||(e=O({src:e,async:!0},t),(t=ma.get(c))&&Ad(e,t),d=n.createElement("script"),vn(d),cn(d,"link",e),n.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},u.set(c,d))}}function $v(e,t){sr.M(e,t);var n=Fl;if(n&&e){var u=cl(n).hoistableScripts,c=eu(e),d=u.get(c);d||(d=n.querySelector(ps(c)),d||(e=O({src:e,async:!0,type:"module"},t),(t=ma.get(c))&&Ad(e,t),d=n.createElement("script"),vn(d),cn(d,"link",e),n.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},u.set(c,d))}}function ag(e,t,n,u){var c=(c=_e.current)?Ze(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=$l(n.href),n=cl(c).hoistableStyles,u=n.get(t),u||(u={type:"style",instance:null,count:0,state:null},n.set(t,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=$l(n.href);var d=cl(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(vs(e)))&&!d._p&&(p.instance=d,p.state.loading=5),ma.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},ma.set(e,n),d||ep(c,e,n,p.state))),t&&u===null)throw Error(o(528,""));return p}if(t&&u!==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=eu(n),n=cl(c).hoistableScripts,u=n.get(t),u||(u={type:"script",instance:null,count:0,state:null},n.set(t,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function $l(e){return'href="'+va(e)+'"'}function vs(e){return'link[rel="stylesheet"]['+e+"]"}function rg(e){return O({},e,{"data-precedence":e.precedence,precedence:null})}function ep(e,t,n,u){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?u.loading=1:(t=e.createElement("link"),u.preload=t,t.addEventListener("load",function(){return u.loading|=1}),t.addEventListener("error",function(){return u.loading|=2}),cn(t,"link",n),vn(t),e.head.appendChild(t))}function eu(e){return'[src="'+va(e)+'"]'}function ps(e){return"script[async]"+e}function ig(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var u=e.querySelector('style[data-href~="'+va(n.href)+'"]');if(u)return t.instance=u,vn(u),u;var c=O({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),vn(u),cn(u,"style",c),lc(u,n.precedence,e),t.instance=u;case"stylesheet":c=$l(n.href);var d=e.querySelector(vs(c));if(d)return t.state.loading|=4,t.instance=d,vn(d),d;u=rg(n),(c=ma.get(c))&&bs(u,c),d=(e.ownerDocument||e).createElement("link"),vn(d);var p=d;return p._p=new Promise(function(x,C){p.onload=x,p.onerror=C}),cn(d,"link",u),t.state.loading|=4,lc(d,n.precedence,e),t.instance=d;case"script":return d=eu(n.src),(c=e.querySelector(ps(d)))?(t.instance=c,vn(c),c):(u=n,(c=ma.get(d))&&(u=O({},n),Ad(u,c)),e=e.ownerDocument||e,c=e.createElement("script"),vn(c),cn(c,"link",u),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&&(u=t.instance,t.state.loading|=4,lc(u,n.precedence,e));return t.instance}function lc(e,t,n){for(var u=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=u.length?u[u.length-1]:null,d=c,p=0;p<u.length;p++){var x=u[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 bs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ad(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var tu=null;function lg(e,t,n){if(tu===null){var u=new Map,c=tu=new Map;c.set(n,u)}else c=tu,u=c.get(n),u||(u=new Map,c.set(n,u));if(u.has(e))return u;for(u.set(e,null),n=n.getElementsByTagName(e),c=0;c<n.length;c++){var d=n[c];if(!(d[du]||d[gn]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var p=d.getAttribute(t)||"";p=e+p;var x=u.get(p);x?x.push(d):u.set(p,[d])}}return u}function ug(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function tp(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 fn(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var yn=null;function np(){}function ap(e,t,n){if(yn===null)throw Error(o(475));var u=yn;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var c=$l(n.href),d=e.querySelector(vs(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(u.count++,u=ys.bind(u),e.then(u,u)),t.state.loading|=4,t.instance=d,vn(d);return}d=e.ownerDocument||e,n=rg(n),(c=ma.get(c))&&bs(n,c),d=d.createElement("link"),vn(d);var p=d;p._p=new Promise(function(x,C){p.onload=x,p.onerror=C}),cn(d,"link",n),t.instance=d}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(u.count++,t=ys.bind(u),e.addEventListener("load",t),e.addEventListener("error",t))}}function rp(){if(yn===null)throw Error(o(475));var e=yn;return e.stylesheets&&e.count===0&&_d(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&_d(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function ys(){if(this.count--,this.count===0){if(this.stylesheets)_d(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var uc=null;function _d(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uc=new Map,t.forEach(ip,e),uc=null,ys.call(e))}function ip(e,t){if(!(t.state.loading&4)){var n=uc.get(e);if(n)var u=n.get(null);else{n=new Map,uc.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),u=p)}u&&n.set(null,u)}c=t.instance,p=c.getAttribute("data-precedence"),d=n.get(p)||u,d===u&&n.set(null,c),n.set(p,c),this.count++,u=ys.bind(this),c.addEventListener("load",u),c.addEventListener("error",u),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var nu={$$typeof:pe,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function lp(e,t,n,u,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=Us(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Us(0),this.hiddenUpdates=Us(null),this.identifierPrefix=u,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=p,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function sg(e,t,n,u,c,d,p,x,C,I,ae,ue){return e=new lp(e,t,n,p,x,C,I,ue),t=1,d===!0&&(t|=24),d=In(3,null,null,t),e.current=d,d.stateNode=e,t=gf(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:u,isDehydrated:n,cache:t},ji(d),e}function og(e){return e?(e=Ri,e):Ri}function xd(e,t,n,u,c,d){c=og(c),u.context===null?u.context=c:u.pendingContext=c,u=Fr(t),u.payload={element:n},d=d===void 0?null:d,d!==null&&(u.callback=d),n=Ar(e,u,t),n!==null&&(ha(n,e,t),Du(n,e,t))}function Sd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ed(e,t){Sd(e,t),(e=e.alternate)&&Sd(e,t)}function cg(e){if(e.tag===13){var t=Ci(e,67108864);t!==null&&ha(t,e,67108864),Ed(e,67108864)}}var sc=!0;function up(e,t,n,u){var c=R.T;R.T=null;var d=X.p;try{X.p=2,Md(e,t,n,u)}finally{X.p=d,R.T=c}}function au(e,t,n,u){var c=R.T;R.T=null;var d=X.p;try{X.p=8,Md(e,t,n,u)}finally{X.p=d,R.T=c}}function Md(e,t,n,u){if(sc){var c=wd(u);if(c===null)Nr(e,t,u,oc,n),dg(e,u);else if(op(c,e,t,n,u))u.stopPropagation();else if(dg(e,u),t&4&&-1<sp.indexOf(e)){for(;c!==null;){var d=sl(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var p=Ba(d.pendingLanes);if(p!==0){var x=d;for(x.pendingLanes|=2,x.entangledLanes|=2;p;){var C=1<<31-Sn(p);x.entanglements[1]|=C,p&=~C}lr(d),(St&6)===0&&(Ql=bt()+500,fs(0))}}break;case 13:x=Ci(d,2),x!==null&&ha(x,d,2),Xo(),Ed(d,2)}if(d=wd(u),d===null&&Nr(e,t,u,oc,n),d===c)break;c=d}c!==null&&u.stopPropagation()}else Nr(e,t,u,null,n)}}function wd(e){return e=Pc(e),Od(e)}var oc=null;function Od(e){if(oc=null,e=ul(e),e!==null){var t=g(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=v(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 oc=e,null}function fg(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(rn()){case Qt:return 2;case aa:return 8;case Ot:case wn:return 32;case Da:return 268435456;default:return 32}default:return 32}}var cc=!1,Dr=null,mi=null,gi=null,As=new Map,_s=new Map,vi=[],sp="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 dg(e,t){switch(e){case"focusin":case"focusout":Dr=null;break;case"dragenter":case"dragleave":mi=null;break;case"mouseover":case"mouseout":gi=null;break;case"pointerover":case"pointerout":As.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_s.delete(t.pointerId)}}function xs(e,t,n,u,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:n,eventSystemFlags:u,nativeEvent:d,targetContainers:[c]},t!==null&&(t=sl(t),t!==null&&cg(t)),e):(e.eventSystemFlags|=u,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function op(e,t,n,u,c){switch(t){case"focusin":return Dr=xs(Dr,e,t,n,u,c),!0;case"dragenter":return mi=xs(mi,e,t,n,u,c),!0;case"mouseover":return gi=xs(gi,e,t,n,u,c),!0;case"pointerover":var d=c.pointerId;return As.set(d,xs(As.get(d)||null,e,t,n,u,c)),!0;case"gotpointercapture":return d=c.pointerId,_s.set(d,xs(_s.get(d)||null,e,t,n,u,c)),!0}return!1}function hg(e){var t=ul(e.target);if(t!==null){var n=g(t);if(n!==null){if(t=n.tag,t===13){if(t=v(n),t!==null){e.blockedOn=t,uv(e.priority,function(){if(n.tag===13){var u=Nn();u=Bc(u);var c=Ci(n,u);c!==null&&ha(c,n,u),Ed(n,u)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=wd(e.nativeEvent);if(n===null){n=e.nativeEvent;var u=new n.constructor(n.type,n);Qs=u,n.target.dispatchEvent(u),Qs=null}else return t=sl(n),t!==null&&cg(t),e.blockedOn=n,!1;t.shift()}return!0}function mg(e,t,n){fc(e)&&n.delete(t)}function cp(){cc=!1,Dr!==null&&fc(Dr)&&(Dr=null),mi!==null&&fc(mi)&&(mi=null),gi!==null&&fc(gi)&&(gi=null),As.forEach(mg),_s.forEach(mg)}function dc(e,t){e.blockedOn===t&&(e.blockedOn=null,cc||(cc=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,cp)))}var hc=null;function gg(e){hc!==e&&(hc=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){hc===e&&(hc=null);for(var t=0;t<e.length;t+=3){var n=e[t],u=e[t+1],c=e[t+2];if(typeof u!="function"){if(Od(u||n)===null)continue;break}var d=sl(n);d!==null&&(e.splice(t,3),t-=3,Iu(d,{pending:!0,data:c,method:n.method,action:u},u,c))}}))}function Ss(e){function t(C){return dc(C,e)}Dr!==null&&dc(Dr,e),mi!==null&&dc(mi,e),gi!==null&&dc(gi,e),As.forEach(t),_s.forEach(t);for(var n=0;n<vi.length;n++){var u=vi[n];u.blockedOn===e&&(u.blockedOn=null)}for(;0<vi.length&&(n=vi[0],n.blockedOn===null);)hg(n),n.blockedOn===null&&vi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(u=0;u<n.length;u+=3){var c=n[u],d=n[u+1],p=c[Gn]||null;if(typeof d=="function")p||gg(n);else if(p){var x=null;if(d&&d.hasAttribute("formAction")){if(c=d,p=d[Gn]||null)x=p.formAction;else if(Od(c)!==null)continue}else x=p.action;typeof x=="function"?n[u+1]=x:(n.splice(u,3),u-=3),gg(n)}}}function Td(e){this._internalRoot=e}mc.prototype.render=Td.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,u=Nn();xd(n,u,e,t,null,null)},mc.prototype.unmount=Td.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xd(e.current,2,null,e,null,null),Xo(),t[qr]=null}};function mc(e){this._internalRoot=e}mc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Pd();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&&hg(e)}};var vg=i.version;if(vg!=="19.1.1")throw Error(o(527,vg,"19.1.1"));X.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 fp={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gc.isDisabled&&gc.supportsFiber)try{hr=gc.inject(fp),$t=gc}catch{}}return Rd.createRoot=function(e,t){if(!h(e))throw Error(o(299));var n=!1,u="",c=qf,d=Do,p=tm,x=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(u=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=sg(e,1,!1,null,null,n,u,c,d,p,x,null),e[qr]=t.current,gd(e),new Td(t)},Rd.hydrateRoot=function(e,t,n){if(!h(e))throw Error(o(299));var u=!1,c="",d=qf,p=Do,x=tm,C=null,I=null;return n!=null&&(n.unstable_strictMode===!0&&(u=!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&&(I=n.formState)),t=sg(e,1,!0,t,n??null,u,c,d,p,x,C,I),t.context=og(null),n=t.current,u=Nn(),u=Bc(u),c=Fr(u),c.callback=null,Ar(n,c,u),n=u,t.current.lanes=n,ll(t,n),lr(t),e[qr]=t.current,gd(e),new mc(t)},Rd.version="19.1.1",Rd}var Y0;function jy(){if(Y0)return pp.exports;Y0=1;function r(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(i){console.error(i)}}return r(),pp.exports=Uy(),pp.exports}var ky=jy(),Eg={exports:{}},Mg={exports:{}},Hy=Mg.exports,I0;function L1(){return I0||(I0=1,(function(r,i){(function(s,o){r.exports=o()})(Hy,(function(){var s=1e3,o=6e4,h=36e5,g="millisecond",v="second",y="minute",A="hour",S="day",O="week",N="month",q="quarter",Z="year",H="date",G="Invalid Date",W=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,fe=/\[([^\]]+)]|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,ve={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(ge){var ne=["th","st","nd","rd"],R=ge%100;return"["+ge+(ne[(R-20)%10]||ne[R]||ne[0])+"]"}},pe=function(ge,ne,R){var X=String(ge);return!X||X.length>=ne?ge:""+Array(ne+1-X.length).join(R)+ge},ye={s:pe,z:function(ge){var ne=-ge.utcOffset(),R=Math.abs(ne),X=Math.floor(R/60),B=R%60;return(ne<=0?"+":"-")+pe(X,2,"0")+":"+pe(B,2,"0")},m:function ge(ne,R){if(ne.date()<R.date())return-ge(R,ne);var X=12*(R.year()-ne.year())+(R.month()-ne.month()),B=ne.clone().add(X,N),he=R-B<0,w=ne.clone().add(X+(he?-1:1),N);return+(-(X+(R-B)/(he?B-w:w-B))||0)},a:function(ge){return ge<0?Math.ceil(ge)||0:Math.floor(ge)},p:function(ge){return{M:N,y:Z,w:O,d:S,D:H,h:A,m:y,s:v,ms:g,Q:q}[ge]||String(ge||"").toLowerCase().replace(/s$/,"")},u:function(ge){return ge===void 0}},te="en",ce={};ce[te]=ve;var be="$isDayjsObject",ee=function(ge){return ge instanceof De||!(!ge||!ge[be])},Me=function ge(ne,R,X){var B;if(!ne)return te;if(typeof ne=="string"){var he=ne.toLowerCase();ce[he]&&(B=he),R&&(ce[he]=R,B=he);var w=ne.split("-");if(!B&&w.length>1)return ge(w[0])}else{var Q=ne.name;ce[Q]=ne,B=Q}return!X&&B&&(te=B),B||!X&&te},Ne=function(ge,ne){if(ee(ge))return ge.clone();var R=typeof ne=="object"?ne:{};return R.date=ge,R.args=arguments,new De(R)},Ae=ye;Ae.l=Me,Ae.i=ee,Ae.w=function(ge,ne){return Ne(ge,{locale:ne.$L,utc:ne.$u,x:ne.$x,$offset:ne.$offset})};var De=(function(){function ge(R){this.$L=Me(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[be]=!0}var ne=ge.prototype;return ne.parse=function(R){this.$d=(function(X){var B=X.date,he=X.utc;if(B===null)return new Date(NaN);if(Ae.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var w=B.match(W);if(w){var Q=w[2]-1||0,oe=(w[7]||"0").substring(0,3);return he?new Date(Date.UTC(w[1],Q,w[3]||1,w[4]||0,w[5]||0,w[6]||0,oe)):new Date(w[1],Q,w[3]||1,w[4]||0,w[5]||0,w[6]||0,oe)}}return new Date(B)})(R),this.init()},ne.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},ne.$utils=function(){return Ae},ne.isValid=function(){return this.$d.toString()!==G},ne.isSame=function(R,X){var B=Ne(R);return this.startOf(X)<=B&&B<=this.endOf(X)},ne.isAfter=function(R,X){return Ne(R)<this.startOf(X)},ne.isBefore=function(R,X){return this.endOf(X)<Ne(R)},ne.$g=function(R,X,B){return Ae.u(R)?this[X]:this.set(B,R)},ne.unix=function(){return Math.floor(this.valueOf()/1e3)},ne.valueOf=function(){return this.$d.getTime()},ne.startOf=function(R,X){var B=this,he=!!Ae.u(X)||X,w=Ae.p(R),Q=function(ot,Fe){var Mt=Ae.w(B.$u?Date.UTC(B.$y,Fe,ot):new Date(B.$y,Fe,ot),B);return he?Mt:Mt.endOf(S)},oe=function(ot,Fe){return Ae.w(B.toDate()[ot].apply(B.toDate("s"),(he?[0,0,0,0]:[23,59,59,999]).slice(Fe)),B)},F=this.$W,me=this.$M,we=this.$D,_e="set"+(this.$u?"UTC":"");switch(w){case Z:return he?Q(1,0):Q(31,11);case N:return he?Q(1,me):Q(0,me+1);case O:var Ye=this.$locale().weekStart||0,je=(F<Ye?F+7:F)-Ye;return Q(he?we-je:we+(6-je),me);case S:case H:return oe(_e+"Hours",0);case A:return oe(_e+"Minutes",1);case y:return oe(_e+"Seconds",2);case v:return oe(_e+"Milliseconds",3);default:return this.clone()}},ne.endOf=function(R){return this.startOf(R,!1)},ne.$set=function(R,X){var B,he=Ae.p(R),w="set"+(this.$u?"UTC":""),Q=(B={},B[S]=w+"Date",B[H]=w+"Date",B[N]=w+"Month",B[Z]=w+"FullYear",B[A]=w+"Hours",B[y]=w+"Minutes",B[v]=w+"Seconds",B[g]=w+"Milliseconds",B)[he],oe=he===S?this.$D+(X-this.$W):X;if(he===N||he===Z){var F=this.clone().set(H,1);F.$d[Q](oe),F.init(),this.$d=F.set(H,Math.min(this.$D,F.daysInMonth())).$d}else Q&&this.$d[Q](oe);return this.init(),this},ne.set=function(R,X){return this.clone().$set(R,X)},ne.get=function(R){return this[Ae.p(R)]()},ne.add=function(R,X){var B,he=this;R=Number(R);var w=Ae.p(X),Q=function(me){var we=Ne(he);return Ae.w(we.date(we.date()+Math.round(me*R)),he)};if(w===N)return this.set(N,this.$M+R);if(w===Z)return this.set(Z,this.$y+R);if(w===S)return Q(1);if(w===O)return Q(7);var oe=(B={},B[y]=o,B[A]=h,B[v]=s,B)[w]||1,F=this.$d.getTime()+R*oe;return Ae.w(F,this)},ne.subtract=function(R,X){return this.add(-1*R,X)},ne.format=function(R){var X=this,B=this.$locale();if(!this.isValid())return B.invalidDate||G;var he=R||"YYYY-MM-DDTHH:mm:ssZ",w=Ae.z(this),Q=this.$H,oe=this.$m,F=this.$M,me=B.weekdays,we=B.months,_e=B.meridiem,Ye=function(Fe,Mt,wt,hn){return Fe&&(Fe[Mt]||Fe(X,he))||wt[Mt].slice(0,hn)},je=function(Fe){return Ae.s(Q%12||12,Fe,"0")},ot=_e||function(Fe,Mt,wt){var hn=Fe<12?"AM":"PM";return wt?hn.toLowerCase():hn};return he.replace(fe,(function(Fe,Mt){return Mt||(function(wt){switch(wt){case"YY":return String(X.$y).slice(-2);case"YYYY":return Ae.s(X.$y,4,"0");case"M":return F+1;case"MM":return Ae.s(F+1,2,"0");case"MMM":return Ye(B.monthsShort,F,we,3);case"MMMM":return Ye(we,F);case"D":return X.$D;case"DD":return Ae.s(X.$D,2,"0");case"d":return String(X.$W);case"dd":return Ye(B.weekdaysMin,X.$W,me,2);case"ddd":return Ye(B.weekdaysShort,X.$W,me,3);case"dddd":return me[X.$W];case"H":return String(Q);case"HH":return Ae.s(Q,2,"0");case"h":return je(1);case"hh":return je(2);case"a":return ot(Q,oe,!0);case"A":return ot(Q,oe,!1);case"m":return String(oe);case"mm":return Ae.s(oe,2,"0");case"s":return String(X.$s);case"ss":return Ae.s(X.$s,2,"0");case"SSS":return Ae.s(X.$ms,3,"0");case"Z":return w}return null})(Fe)||w.replace(":","")}))},ne.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},ne.diff=function(R,X,B){var he,w=this,Q=Ae.p(X),oe=Ne(R),F=(oe.utcOffset()-this.utcOffset())*o,me=this-oe,we=function(){return Ae.m(w,oe)};switch(Q){case Z:he=we()/12;break;case N:he=we();break;case q:he=we()/3;break;case O:he=(me-F)/6048e5;break;case S:he=(me-F)/864e5;break;case A:he=me/h;break;case y:he=me/o;break;case v:he=me/s;break;default:he=me}return B?he:Ae.a(he)},ne.daysInMonth=function(){return this.endOf(N).$D},ne.$locale=function(){return ce[this.$L]},ne.locale=function(R,X){if(!R)return this.$L;var B=this.clone(),he=Me(R,X,!0);return he&&(B.$L=he),B},ne.clone=function(){return Ae.w(this.$d,this)},ne.toDate=function(){return new Date(this.valueOf())},ne.toJSON=function(){return this.isValid()?this.toISOString():null},ne.toISOString=function(){return this.$d.toISOString()},ne.toString=function(){return this.$d.toUTCString()},ge})(),qe=De.prototype;return Ne.prototype=qe,[["$ms",g],["$s",v],["$m",y],["$H",A],["$W",S],["$M",N],["$y",Z],["$D",H]].forEach((function(ge){qe[ge[1]]=function(ne){return this.$g(ne,ge[0],ge[1])}})),Ne.extend=function(ge,ne){return ge.$i||(ge(ne,De,Ne),ge.$i=!0),Ne},Ne.locale=Me,Ne.isDayjs=ee,Ne.unix=function(ge){return Ne(1e3*ge)},Ne.en=ce[te],Ne.Ls=ce,Ne.p={},Ne}))})(Mg)),Mg.exports}var Gy=Eg.exports,V0;function qy(){return V0||(V0=1,(function(r,i){(function(s,o){r.exports=o(L1())})(Gy,(function(s){function o(H){return H&&typeof H=="object"&&"default"in H?H:{default:H}}var h=o(s),g="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),v="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),y="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),A="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),S=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function O(H,G,W){var fe,ve;return W==="m"?G?"минута":"минуту":H+" "+(fe=+H,ve={mm:G?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[W].split("_"),fe%10==1&&fe%100!=11?ve[0]:fe%10>=2&&fe%10<=4&&(fe%100<10||fe%100>=20)?ve[1]:ve[2])}var N=function(H,G){return S.test(G)?g[H.month()]:v[H.month()]};N.s=v,N.f=g;var q=function(H,G){return S.test(G)?y[H.month()]:A[H.month()]};q.s=A,q.f=y;var Z={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:N,monthsShort:q,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(H){return H},meridiem:function(H){return H<4?"ночи":H<12?"утра":H<17?"дня":"вечера"}};return h.default.locale(Z,null,!0),Z}))})(Eg)),Eg.exports}qy();var Yy=L1();const rl=y0(Yy),Tc=J.createContext({theme:"material",dark:!0,materialTouchRipple:!0,iosHoverHighlight:!0});function Iy(r,i){return typeof window>"u"?le.useEffect(r,i):le.useLayoutEffect(r,i)}const B1=(r,i=!0)=>{const[s,o]=le.useState(r);return Iy(()=>{if(i){if(r==="ios"||r==="material")s!==r&&o(r);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"))}}},[r]),i?s:r},Vy=r=>{const{theme:i,dark:s,materialTouchRipple:o=!0,iosHoverHighlight:h=!0,autoThemeDetection:g=!0,children:v}=r,y=B1(i,g);return J.createElement(Tc.Provider,{value:{theme:y,dark:s,materialTouchRipple:o,iosHoverHighlight:h}},v)},A0="-",Qy=r=>{const i=Zy(r),{conflictingClassGroups:s,conflictingClassGroupModifiers:o}=r;return{getClassGroupId:v=>{const y=v.split(A0);return y[0]===""&&y.length!==1&&y.shift(),z1(y,i)||Xy(v)},getConflictingClassGroupIds:(v,y)=>{const A=s[v]||[];return y&&o[v]?[...A,...o[v]]:A}}},z1=(r,i)=>{if(r.length===0)return i.classGroupId;const s=r[0],o=i.nextPart.get(s),h=o?z1(r.slice(1),o):void 0;if(h)return h;if(i.validators.length===0)return;const g=r.join(A0);return i.validators.find(({validator:v})=>v(g))?.classGroupId},Q0=/^\[(.+)\]$/,Xy=r=>{if(Q0.test(r)){const i=Q0.exec(r)[1],s=i?.substring(0,i.indexOf(":"));if(s)return"arbitrary.."+s}},Zy=r=>{const{theme:i,classGroups:s}=r,o={nextPart:new Map,validators:[]};for(const h in s)Dp(s[h],o,h,i);return o},Dp=(r,i,s,o)=>{r.forEach(h=>{if(typeof h=="string"){const g=h===""?i:X0(i,h);g.classGroupId=s;return}if(typeof h=="function"){if(Ky(h)){Dp(h(o),i,s,o);return}i.validators.push({validator:h,classGroupId:s});return}Object.entries(h).forEach(([g,v])=>{Dp(v,X0(i,g),s,o)})})},X0=(r,i)=>{let s=r;return i.split(A0).forEach(o=>{s.nextPart.has(o)||s.nextPart.set(o,{nextPart:new Map,validators:[]}),s=s.nextPart.get(o)}),s},Ky=r=>r.isThemeGetter,Py=r=>{if(r<1)return{get:()=>{},set:()=>{}};let i=0,s=new Map,o=new Map;const h=(g,v)=>{s.set(g,v),i++,i>r&&(i=0,o=s,s=new Map)};return{get(g){let v=s.get(g);if(v!==void 0)return v;if((v=o.get(g))!==void 0)return h(g,v),v},set(g,v){s.has(g)?s.set(g,v):h(g,v)}}},Lp="!",Bp=":",Jy=Bp.length,Wy=r=>{const{prefix:i,experimentalParseClassName:s}=r;let o=h=>{const g=[];let v=0,y=0,A=0,S;for(let H=0;H<h.length;H++){let G=h[H];if(v===0&&y===0){if(G===Bp){g.push(h.slice(A,H)),A=H+Jy;continue}if(G==="/"){S=H;continue}}G==="["?v++:G==="]"?v--:G==="("?y++:G===")"&&y--}const O=g.length===0?h:h.substring(A),N=Fy(O),q=N!==O,Z=S&&S>A?S-A:void 0;return{modifiers:g,hasImportantModifier:q,baseClassName:N,maybePostfixModifierPosition:Z}};if(i){const h=i+Bp,g=o;o=v=>v.startsWith(h)?g(v.substring(h.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:v,maybePostfixModifierPosition:void 0}}if(s){const h=o;o=g=>s({className:g,parseClassName:h})}return o},Fy=r=>r.endsWith(Lp)?r.substring(0,r.length-1):r.startsWith(Lp)?r.substring(1):r,$y=r=>{const i=Object.fromEntries(r.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const h=[];let g=[];return o.forEach(v=>{v[0]==="["||i[v]?(h.push(...g.sort(),v),g=[]):g.push(v)}),h.push(...g.sort()),h}},eA=r=>({cache:Py(r.cacheSize),parseClassName:Wy(r),sortModifiers:$y(r),...Qy(r)}),tA=/\s+/,nA=(r,i)=>{const{parseClassName:s,getClassGroupId:o,getConflictingClassGroupIds:h,sortModifiers:g}=i,v=[],y=r.trim().split(tA);let A="";for(let S=y.length-1;S>=0;S-=1){const O=y[S],{isExternal:N,modifiers:q,hasImportantModifier:Z,baseClassName:H,maybePostfixModifierPosition:G}=s(O);if(N){A=O+(A.length>0?" "+A:A);continue}let W=!!G,fe=o(W?H.substring(0,G):H);if(!fe){if(!W){A=O+(A.length>0?" "+A:A);continue}if(fe=o(H),!fe){A=O+(A.length>0?" "+A:A);continue}W=!1}const ve=g(q).join(":"),pe=Z?ve+Lp:ve,ye=pe+fe;if(v.includes(ye))continue;v.push(ye);const te=h(fe,W);for(let ce=0;ce<te.length;++ce){const be=te[ce];v.push(pe+be)}A=O+(A.length>0?" "+A:A)}return A};function aA(){let r=0,i,s,o="";for(;r<arguments.length;)(i=arguments[r++])&&(s=U1(i))&&(o&&(o+=" "),o+=s);return o}const U1=r=>{if(typeof r=="string")return r;let i,s="";for(let o=0;o<r.length;o++)r[o]&&(i=U1(r[o]))&&(s&&(s+=" "),s+=i);return s};function rA(r,...i){let s,o,h,g=v;function v(A){const S=i.reduce((O,N)=>N(O),r());return s=eA(S),o=s.cache.get,h=s.cache.set,g=y,y(A)}function y(A){const S=o(A);if(S)return S;const O=nA(A,s);return h(A,O),O}return function(){return g(aA.apply(null,arguments))}}const Mn=r=>{const i=s=>s[r]||[];return i.isThemeGetter=!0,i},j1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,iA=/^\d+\/\d+$/,lA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uA=/\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$/,sA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,oA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vc=r=>iA.test(r),rt=r=>!!r&&!Number.isNaN(Number(r)),ru=r=>!!r&&Number.isInteger(Number(r)),_p=r=>r.endsWith("%")&&rt(r.slice(0,-1)),Fi=r=>lA.test(r),fA=()=>!0,dA=r=>uA.test(r)&&!sA.test(r),H1=()=>!1,hA=r=>oA.test(r),mA=r=>cA.test(r),gA=r=>!Ce(r)&&!Re(r),vA=r=>Cc(r,Y1,H1),Ce=r=>j1.test(r),Es=r=>Cc(r,I1,dA),xp=r=>Cc(r,_A,rt),Z0=r=>Cc(r,G1,H1),pA=r=>Cc(r,q1,mA),bg=r=>Cc(r,V1,hA),Re=r=>k1.test(r),Nd=r=>Rc(r,I1),bA=r=>Rc(r,xA),K0=r=>Rc(r,G1),yA=r=>Rc(r,Y1),AA=r=>Rc(r,q1),yg=r=>Rc(r,V1,!0),Cc=(r,i,s)=>{const o=j1.exec(r);return o?o[1]?i(o[1]):s(o[2]):!1},Rc=(r,i,s=!1)=>{const o=k1.exec(r);return o?o[1]?i(o[1]):s:!1},G1=r=>r==="position"||r==="percentage",q1=r=>r==="image"||r==="url",Y1=r=>r==="length"||r==="size"||r==="bg-size",I1=r=>r==="length",_A=r=>r==="number",xA=r=>r==="family-name",V1=r=>r==="shadow",SA=()=>{const r=Mn("color"),i=Mn("font"),s=Mn("text"),o=Mn("font-weight"),h=Mn("tracking"),g=Mn("leading"),v=Mn("breakpoint"),y=Mn("container"),A=Mn("spacing"),S=Mn("radius"),O=Mn("shadow"),N=Mn("inset-shadow"),q=Mn("text-shadow"),Z=Mn("drop-shadow"),H=Mn("blur"),G=Mn("perspective"),W=Mn("aspect"),fe=Mn("ease"),ve=Mn("animate"),pe=()=>["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"],te=()=>[...ye(),Re,Ce],ce=()=>["auto","hidden","clip","visible","scroll"],be=()=>["auto","contain","none"],ee=()=>[Re,Ce,A],Me=()=>[vc,"full","auto",...ee()],Ne=()=>[ru,"none","subgrid",Re,Ce],Ae=()=>["auto",{span:["full",ru,Re,Ce]},ru,Re,Ce],De=()=>[ru,"auto",Re,Ce],qe=()=>["auto","min","max","fr",Re,Ce],ge=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...ee()],X=()=>[vc,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...ee()],B=()=>[r,Re,Ce],he=()=>[...ye(),K0,Z0,{position:[Re,Ce]}],w=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",yA,vA,{size:[Re,Ce]}],oe=()=>[_p,Nd,Es],F=()=>["","none","full",S,Re,Ce],me=()=>["",rt,Nd,Es],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"],Ye=()=>[rt,_p,K0,Z0],je=()=>["","none",H,Re,Ce],ot=()=>["none",rt,Re,Ce],Fe=()=>["none",rt,Re,Ce],Mt=()=>[rt,Re,Ce],wt=()=>[vc,"full",...ee()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Fi],breakpoint:[Fi],color:[fA],container:[Fi],"drop-shadow":[Fi],ease:["in","out","in-out"],font:[gA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Fi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Fi],shadow:[Fi],spacing:["px",rt],text:[Fi],"text-shadow":[Fi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vc,Ce,Re,W]}],container:["container"],columns:[{columns:[rt,Ce,Re,y]}],"break-after":[{"break-after":pe()}],"break-before":[{"break-before":pe()}],"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:te()}],overflow:[{overflow:ce()}],"overflow-x":[{"overflow-x":ce()}],"overflow-y":[{"overflow-y":ce()}],overscroll:[{overscroll:be()}],"overscroll-x":[{"overscroll-x":be()}],"overscroll-y":[{"overscroll-y":be()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Me()}],"inset-x":[{"inset-x":Me()}],"inset-y":[{"inset-y":Me()}],start:[{start:Me()}],end:[{end:Me()}],top:[{top:Me()}],right:[{right:Me()}],bottom:[{bottom:Me()}],left:[{left:Me()}],visibility:["visible","invisible","collapse"],z:[{z:[ru,"auto",Re,Ce]}],basis:[{basis:[vc,"full","auto",y,...ee()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[rt,vc,"auto","initial","none",Ce]}],grow:[{grow:["",rt,Re,Ce]}],shrink:[{shrink:["",rt,Re,Ce]}],order:[{order:[ru,"first","last","none",Re,Ce]}],"grid-cols":[{"grid-cols":Ne()}],"col-start-end":[{col:Ae()}],"col-start":[{"col-start":De()}],"col-end":[{"col-end":De()}],"grid-rows":[{"grid-rows":Ne()}],"row-start-end":[{row:Ae()}],"row-start":[{"row-start":De()}],"row-end":[{"row-end":De()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":qe()}],"auto-rows":[{"auto-rows":qe()}],gap:[{gap:ee()}],"gap-x":[{"gap-x":ee()}],"gap-y":[{"gap-y":ee()}],"justify-content":[{justify:[...ge(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...ge()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":ge()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:ee()}],px:[{px:ee()}],py:[{py:ee()}],ps:[{ps:ee()}],pe:[{pe:ee()}],pt:[{pt:ee()}],pr:[{pr:ee()}],pb:[{pb:ee()}],pl:[{pl:ee()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":ee()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":ee()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[y,"screen",...X()]}],"min-w":[{"min-w":[y,"screen","none",...X()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[v]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",s,Nd,Es]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,Re,xp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",_p,Ce]}],"font-family":[{font:[bA,Ce,i]}],"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,Re,Ce]}],"line-clamp":[{"line-clamp":[rt,"none",Re,xp]}],leading:[{leading:[g,...ee()]}],"list-image":[{"list-image":["none",Re,Ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Re,Ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[rt,"from-font","auto",Re,Es]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[rt,"auto",Re,Ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:ee()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Re,Ce]}],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",Re,Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:he()}],"bg-repeat":[{bg:w()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ru,Re,Ce],radial:["",Re,Ce],conic:[ru,Re,Ce]},AA,pA]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:me()}],"border-w-x":[{"border-x":me()}],"border-w-y":[{"border-y":me()}],"border-w-s":[{"border-s":me()}],"border-w-e":[{"border-e":me()}],"border-w-t":[{"border-t":me()}],"border-w-r":[{"border-r":me()}],"border-w-b":[{"border-b":me()}],"border-w-l":[{"border-l":me()}],"divide-x":[{"divide-x":me()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":me()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[rt,Re,Ce]}],"outline-w":[{outline:["",rt,Nd,Es]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",O,yg,bg]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",N,yg,bg]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:me()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[rt,Es]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":me()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",q,yg,bg]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[rt,Re,Ce]}],"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":[rt]}],"mask-image-linear-from-pos":[{"mask-linear-from":Ye()}],"mask-image-linear-to-pos":[{"mask-linear-to":Ye()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":Ye()}],"mask-image-t-to-pos":[{"mask-t-to":Ye()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":Ye()}],"mask-image-r-to-pos":[{"mask-r-to":Ye()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":Ye()}],"mask-image-b-to-pos":[{"mask-b-to":Ye()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":Ye()}],"mask-image-l-to-pos":[{"mask-l-to":Ye()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":Ye()}],"mask-image-x-to-pos":[{"mask-x-to":Ye()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":Ye()}],"mask-image-y-to-pos":[{"mask-y-to":Ye()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[Re,Ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":Ye()}],"mask-image-radial-to-pos":[{"mask-radial-to":Ye()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":ye()}],"mask-image-conic-pos":[{"mask-conic":[rt]}],"mask-image-conic-from-pos":[{"mask-conic-from":Ye()}],"mask-image-conic-to-pos":[{"mask-conic-to":Ye()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:he()}],"mask-repeat":[{mask:w()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Re,Ce]}],filter:[{filter:["","none",Re,Ce]}],blur:[{blur:je()}],brightness:[{brightness:[rt,Re,Ce]}],contrast:[{contrast:[rt,Re,Ce]}],"drop-shadow":[{"drop-shadow":["","none",Z,yg,bg]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",rt,Re,Ce]}],"hue-rotate":[{"hue-rotate":[rt,Re,Ce]}],invert:[{invert:["",rt,Re,Ce]}],saturate:[{saturate:[rt,Re,Ce]}],sepia:[{sepia:["",rt,Re,Ce]}],"backdrop-filter":[{"backdrop-filter":["","none",Re,Ce]}],"backdrop-blur":[{"backdrop-blur":je()}],"backdrop-brightness":[{"backdrop-brightness":[rt,Re,Ce]}],"backdrop-contrast":[{"backdrop-contrast":[rt,Re,Ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",rt,Re,Ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[rt,Re,Ce]}],"backdrop-invert":[{"backdrop-invert":["",rt,Re,Ce]}],"backdrop-opacity":[{"backdrop-opacity":[rt,Re,Ce]}],"backdrop-saturate":[{"backdrop-saturate":[rt,Re,Ce]}],"backdrop-sepia":[{"backdrop-sepia":["",rt,Re,Ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":ee()}],"border-spacing-x":[{"border-spacing-x":ee()}],"border-spacing-y":[{"border-spacing-y":ee()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Re,Ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[rt,"initial",Re,Ce]}],ease:[{ease:["linear","initial",fe,Re,Ce]}],delay:[{delay:[rt,Re,Ce]}],animate:[{animate:["none",ve,Re,Ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[G,Re,Ce]}],"perspective-origin":[{"perspective-origin":te()}],rotate:[{rotate:ot()}],"rotate-x":[{"rotate-x":ot()}],"rotate-y":[{"rotate-y":ot()}],"rotate-z":[{"rotate-z":ot()}],scale:[{scale:Fe()}],"scale-x":[{"scale-x":Fe()}],"scale-y":[{"scale-y":Fe()}],"scale-z":[{"scale-z":Fe()}],"scale-3d":["scale-3d"],skew:[{skew:Mt()}],"skew-x":[{"skew-x":Mt()}],"skew-y":[{"skew-y":Mt()}],transform:[{transform:[Re,Ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:te()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:wt()}],"translate-x":[{"translate-x":wt()}],"translate-y":[{"translate-y":wt()}],"translate-z":[{"translate-z":wt()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"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",Re,Ce]}],"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":ee()}],"scroll-mx":[{"scroll-mx":ee()}],"scroll-my":[{"scroll-my":ee()}],"scroll-ms":[{"scroll-ms":ee()}],"scroll-me":[{"scroll-me":ee()}],"scroll-mt":[{"scroll-mt":ee()}],"scroll-mr":[{"scroll-mr":ee()}],"scroll-mb":[{"scroll-mb":ee()}],"scroll-ml":[{"scroll-ml":ee()}],"scroll-p":[{"scroll-p":ee()}],"scroll-px":[{"scroll-px":ee()}],"scroll-py":[{"scroll-py":ee()}],"scroll-ps":[{"scroll-ps":ee()}],"scroll-pe":[{"scroll-pe":ee()}],"scroll-pt":[{"scroll-pt":ee()}],"scroll-pr":[{"scroll-pr":ee()}],"scroll-pb":[{"scroll-pb":ee()}],"scroll-pl":[{"scroll-pl":ee()}],"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",Re,Ce]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[rt,Nd,Es,xp]}],stroke:[{stroke:["none",...B()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},EA=rA(SA);function MA(...r){const i=[];r.forEach(o=>{typeof o=="object"&&o.constructor===Object?Object.keys(o).forEach(h=>{o[h]&&i.push(h)}):Array.isArray(o)?i.push(...o):typeof o=="function"?i.push(o()):o&&o.value?i.push(o.value):o&&i.push(o)});const s=[];return i.forEach(o=>{s.indexOf(o)<0&&s.push(o)}),s.filter(o=>!!o).join(" ")}function M(...r){return EA(MA(...r))}const wA=(r,i,s)=>{const{safeAreas:o}=r;return M(i==="ios"&&"k-ios",i==="material"&&"k-material","k-app w-full h-full min-h-screen relative",o&&"safe-areas",s)};function zp(){return zp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},zp.apply(null,arguments)}const Q1=r=>{const{component:i="div",className:s,theme:o="material",dark:h=!0,materialTouchRipple:g=!0,iosHoverHighlight:v=!0,safeAreas:y=!0,ref:A,children:S,...O}=r,N=le.useRef(null),q=i,Z={...O},H=B1(o),G=wA({...r,safeAreas:y},H,s);return J.createElement(Vy,{theme:H,dark:h,materialTouchRipple:g,iosHoverHighlight:v,autoThemeDetection:!1},J.createElement(q,zp({ref:W=>{N.current=W,A&&typeof A=="function"?A(W):A&&(A.current=W)},className:G},Z),S))};Q1.displayName="App";const Sp=(r,i,s)=>{if(typeof r=="string")return r;const o=[r[i],r.common];return s&&r[s]&&(typeof r[s]=="string"?o.push(r[s]):o.push(r[s].common,r[s][i])),o},OA=(r,i,s)=>{const o={},h=["common","ios","material"];return Object.keys(r).forEach(g=>{const v=g==="base"?s:"";if(!(typeof r[g]!="string"&&Object.keys(r[g]).filter(S=>!h.includes(S)).length>0)){o[g]=M(Sp(r[g],i),v);return}o[g]={};const A=Sp(r[g],i);o[g].default=M(A,v),Object.keys(r[g]).filter(S=>!h.includes(S)).forEach(S=>{o[g][S]=M(A,Sp(r[g],i,S),v)})}),o},Hn=({ios:r,material:i}={})=>{let o=le.useContext(Tc).theme||"ios";return r&&(o="ios"),i&&(o="material"),(h,g)=>OA(h,o,g)},TA=(r,i)=>({base:{common:"",ios:M("bg-ios-light-glass shadow-ios-light-glass backdrop-blur-lg touch-none",i("dark:bg-ios-dark-glass dark:shadow-ios-dark-glass")),material:""}}),Na=({ios:r,material:i}={})=>{let o=le.useContext(Tc).theme||"ios";return r&&(o="ios"),i&&(o="material"),o},ta=()=>{const r=le.useContext(Tc);return i=>r.dark?i:""},CA=r=>{requestAnimationFrame(()=>{requestAnimationFrame(r)})},RA=({getEl:r,zIndex:i=10,opacity:s=1,offset:o=1,enabled:h=!0,data:g={}})=>{const v=()=>typeof h=="function"?h():h,y=()=>{const H=r();if(H&&g.elScale){g.elScale=!1,H.style.scale="";const G=()=>{H.style.transitionDuration="",H.style.transitionTimingFunction="",H.removeEventListener("transitionend",G)};H.addEventListener("transitionend",G)}if(g.lightElWrap){const G=g.lightElWrap;G.style.opacity==="0"?G.remove():(G.addEventListener("transitionend",()=>{G.remove()}),G.style.opacity=0)}},A=H=>{if(g.lightEl){const{x:G,y:W}=H,fe=G-g.rect.x,ve=W-g.rect.y;g.lightEl.style.transform=`translate3d(${fe}px, ${ve}px, 0)`}},S=H=>{if(!v())return;const G=g,W=r();G.rect=W.getBoundingClientRect();const fe=document.createElement("span");fe.className="rounded-[inherit]",fe.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 ve=document.createElement("span"),{width:pe,height:ye}=G.rect,te=(pe**2+ye**2)**.5;ve.style.position="absolute",ve.style.zIndex=i,ve.style.width=`${te*2}px`,ve.style.left=`${-te}px`,ve.style.height=`${te*2}px`,ve.style.top=`${-te}px`,ve.style.borderRadius="50%";const ce="var(--color-ios-hover-highlight)";if(ve.style.backgroundImage=`radial-gradient(circle at center, color-mix(in oklab, ${ce} ${s*100}%, transparent), transparent 50%)`,ve.style.pointerEvents="none",G.lightEl=ve,G.lightElWrap=fe,A(H),fe.append(ve),W.append(fe),H.pointerType!=="mouse"&&H.pointerType!=="mouse"){G.elScale=!0;let be=1.25;(G.rect.width>60||G.rect.height>60)&&(be=1.05),W.style.scale=be,W.style.transitionDuration="300ms",W.style.transitionTimingFunction="ease-in-out"}CA(()=>{fe.style.opacity=1})},O=H=>{v()&&A(H)},N=H=>{y()};return{removeHoverHighlight:y,attachEvents:()=>{const H=r();H&&(H.addEventListener("pointerenter",S),H.addEventListener("pointermove",O),H.addEventListener("pointerleave",N))},detachEvents:()=>{const H=r();H&&(H.removeEventListener("pointerenter",S),H.removeEventListener("pointermove",O),H.removeEventListener("pointerleave",N))}}};function Up(){return Up=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Up.apply(null,arguments)}const Sc=r=>{const{component:i="div",className:s,highlight:o=!0,ios:h,material:g,children:v,ref:y,...A}=r,S=le.useRef(null),O=i,N={...A},q=Na(),Z=Hn({ios:h,material:g}),H=ta(),{iosHoverHighlight:G}=le.useContext(Tc),W=le.useRef({}),{attachEvents:fe,detachEvents:ve}=RA({getEl:()=>S.current,enabled:o&&q==="ios"&&G,data:W.current}),pe=Z(TA({...r},H),s);return le.useEffect(()=>(fe(),()=>ve())),J.createElement(O,Up({ref:ye=>{y&&typeof y=="function"?y(ye):y&&(y.current=ye),S.current=ye},className:pe.base},N),v)};Sc.displayName="Glass";function na(r){if(!r||typeof r!="object")return{};const i={};return Object.keys(r).forEach(s=>{r[s]!=null&&(i[s]=r[s])}),i}class NA{constructor(i,s,o){const h=this;if(!i)return;h.el=i;const{left:g,top:v,width:y,height:A}=i.getBoundingClientRect(),S={x:s-g,y:o-v};let O=Math.max((A**2+y**2)**.5,48);const N=i.classList.contains("k-touch-ripple-inset");N&&(O=Math.max(Math.min(y,A),48));const q=typeof window<"u"&&window.getComputedStyle(i,null).getPropertyValue("overflow")==="hidden";if(!N&&q){const H=((S.x-y/2)**2+(S.y-A/2)**2)**.5,G=(O/2+H)/(O/2);h.rippleTransform=`translate3d(0px, 0px, 0) scale(${G})`}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}`,i.insertAdjacentElement("afterbegin",h.rippleWaveEl);const Z=()=>{h.rippleWaveEl.removeEventListener("animationend",Z),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",Z),h}destroy(){}out(){const i=this,{rippleWaveEl:s}=this;clearTimeout(i.removeTimeout),s.classList.add("k-touch-ripple-wave-out"),i.removeTimeout=setTimeout(()=>{i.destroy()},300);const o=()=>{i.rippleWaveEl.removeEventListener("animationend",o),clearTimeout(i.removeTimeout),i.destroy()};i.rippleWaveEl.addEventListener("animationend",o)}remove(){const i=this;i.shouldBeRemoved||(i.removeTimeout=setTimeout(()=>{i.destroy()},400),i.shouldBeRemoved=!0,i.rippleWaveEl.classList.contains("k-touch-ripple-wave-in")&&i.out())}}const _0=(r,i,s)=>{const o=le.useContext(Tc);s||(s=r);const h=le.useRef(null),g=()=>{h.current&&h.current.remove(),h.current=null},v=Z=>{h.current=new NA(r.current,Z.pageX,Z.pageY)},y=()=>{g()},A=()=>{g()},S=()=>{if(!o.materialTouchRipple)return;const Z=s.current;Z.addEventListener("pointerdown",v),Z.addEventListener("pointermove",y),Z.addEventListener("pointerup",A),Z.addEventListener("pointercancel",A),Z.addEventListener("contextmenu",A)},O=()=>{const Z=s.current;Z.removeEventListener("pointerdown",v),Z.removeEventListener("pointermove",y),Z.removeEventListener("pointerup",A),Z.removeEventListener("pointercancel",A),Z.removeEventListener("contextmenu",A)},N=()=>{!s||!s.current||!i||S()},q=()=>{!s||!s.current||!i||O()};le.useEffect(()=>(N(),()=>q()))},DA=(r,i)=>({base:{common:`k-badge ${i.text} ${i.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"}}),LA=(r={})=>({bg:"bg-primary",text:"text-white",...na(r)});function jp(){return jp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},jp.apply(null,arguments)}const X1=r=>{const{component:i="span",className:s,colors:o,small:h,ios:g,material:v,children:y,ref:A,...S}=r,O=le.useRef(null),N=i,q={...S},Z=Hn({ios:g,material:v}),H=LA(o),G=h?"sm":"md",W=Z(DA(r,H),s);return J.createElement(N,jp({ref:fe=>{O.current=fe,A&&typeof A=="function"?A(fe):A&&(A.current=fe)},className:W.base[G]},q),y)};X1.displayName="Badge";const BA=(r,i)=>{const{inset:s,nested:o,strong:h,outline:g}=r;return{base:{common:M("k-block text-sm z-10 relative",!s&&!o&&g&&"hairline-t hairline-b",s&&g&&"border",s&&"px-4",!s&&"pl-safe-4 pr-safe-4",!o&&"my-8",(h||g)&&"py-4"),ios:M(i.textIos,h&&i.strongBgIos,s&&g&&i.outlineIos),material:M(i.textMaterial,h&&i.strongBgMaterial,s&&g&&i.outlineMaterial)},inset:{common:"ml-safe-4 mr-safe-4 overflow-hidden",ios:"rounded-3xl",material:"rounded-2xl"}}},zA=(r={},i)=>({outlineIos:M("border-black/20",i("dark:border-white/15")),outlineMaterial:M("border-md-light-outline",i("border-md-dark-outline")),strongBgIos:M("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),strongBgMaterial:M("bg-md-light-surface-1",i("dark:bg-md-dark-surface-1")),textIos:"",textMaterial:M("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),...na(r)}),Xg=(r,i,s)=>{const o={};return Object.keys(i).forEach(h=>{o[h]=typeof i[h]>"u"?r==="ios"?s[`${h}Ios`]:s[`${h}Material`]:i[h]}),o};function kp(){return kp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},kp.apply(null,arguments)}const Z1=r=>{const{component:i="div",className:s,colors:o,inset:h,insetIos:g,insetMaterial:v,strong:y,strongIos:A,strongMaterial:S,outline:O,outlineIos:N,outlineMaterial:q,nested:Z,ios:H,material:G,ref:W,children:fe,...ve}=r,pe=le.useRef(null),ye=i,te={...ve},ce=Na({ios:H,material:G}),be=Hn({ios:H,material:G}),ee=ta(),Me=zA(o,ee),{strong:Ne,outline:Ae,inset:De}=Xg(ce,{strong:y,outline:O,inset:h},r),qe=be(BA({...r,inset:De,strong:Ne,outline:Ae},Me)),ge=M(qe.base,De&&qe.inset,s);return J.createElement(ye,kp({ref:ne=>{pe.current=ne,W&&typeof W=="function"?W(ne):W&&(W.current=ne)},className:ge},te),fe)};Z1.displayName="Block";function Hp(){return Hp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Hp.apply(null,arguments)}const UA=r=>J.createElement("svg",Hp({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"14",viewBox:"0 0 12 20",fill:"currentcolor"},r),J.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"})),jA=(r,i,s)=>{const{inline:o,segmented:h,segmentedStrong:g,segmentedActive:v,disabled:y}=r;return{base:{common:M("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",g&&v&&"k-segmented-strong-button-active"),ios:"duration-100 font-medium px-2",material:"duration-300 font-medium px-4",square:{ios:h&&!g?"first:rounded-s last:rounded-e":"rounded",material:h&&!g?"first:rounded-lg-s last:rounded-lg-e":"rounded-lg"},rounded:h&&!g?"":"rounded-full"},style:{fill:{common:M(y&&M(i.disabledBg,i.disabledText)),ios:M(y?M(i.disabledBg,i.disabledText):`${i.fillTextIos} ${i.fillBgIos}`),material:M(y?M(i.disabledBg,i.disabledText):M(i.fillTextMaterial,i.fillBgMaterial,i.fillTouchRipple))},outline:{common:M(y?M(i.disabledText,i.disabledBorder):i.touchRipple),ios:M(!h&&"border-2",!y&&!h&&i.outlineBorderIos,!y&&M(i.textIos,i.outlineBgIos)),material:M(!h&&"border",!y&&!h&&i.outlineBorderMaterial,!y&&M(i.textMaterial,i.outlineBgMaterial))},clear:{common:M(y?i.disabledText:i.touchRipple),ios:!y&&M(i.textIos,i.clearBgIos),material:!y&&M(i.textMaterial,i.clearBgMaterial)},tonal:{common:y?M(i.disabledBg,i.disabledText):M(i.touchRipple),ios:!y&&M(i.tonalTextIos,i.tonalBgIos),material:!y&&M(i.tonalTextMaterial,i.tonalBgMaterial)},segmentedStrong:M("active:bg-black/10",s("dark:active:bg-white/5 dark:touch-ripple-white")),segmentedStrongActive:{ios:M("duration-200",i.segmentedStrongTextIos),material:M("duration-0",i.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"}},kA=(r={},i)=>({textIos:"text-primary",textMaterial:M("text-md-light-primary","dark:text-md-dark-primary"),fillTextIos:M("text-white"),fillTextMaterial:M("text-md-light-on-primary",i("dark:text-md-dark-on-primary")),fillBgIos:"bg-primary active:bg-ios-primary-shade",fillBgMaterial:M("bg-md-light-primary",i("dark:bg-md-dark-primary")),fillTouchRipple:M("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:M("border-md-light-outline",i("dark:border-md-dark-outline")),segmentedStrongTextIos:"text-black",segmentedStrongTextMaterial:"",tonalBgIos:"bg-primary/15 active:bg-primary/25",tonalBgMaterial:M("bg-md-light-secondary-container",i("dark:bg-md-dark-secondary-container")),tonalTextIos:"text-primary",tonalTextMaterial:M("text-md-light-on-secondary-container",i("dark:text-md-dark-on-secondary-container")),touchRipple:"touch-ripple-primary",disabledText:M("text-black/30",i("dark:text-white/30")),disabledBg:M("bg-black/10",i("dark:bg-white/10")),disabledBorder:M("border-black/10",i("dark:border-white/10")),...na(r)});function Gp(){return Gp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Gp.apply(null,arguments)}const Zg=r=>{const{component:i="button",className:s,colors:o,ios:h,material:g,disabled:v,href:y,outline:A,outlineIos:S,outlineMaterial:O,clear:N,clearIos:q,clearMaterial:Z,tonal:H,tonalIos:G,tonalMaterial:W,rounded:fe,roundedIos:ve,roundedMaterial:pe,small:ye,smallIos:te,smallMaterial:ce,large:be,largeIos:ee,largeMaterial:Me,raised:Ne,raisedIos:Ae,raisedMaterial:De,inline:qe,segmented:ge,segmentedStrong:ne,segmentedActive:R,children:X,ref:B,...he}=r,w=le.useRef(null);let Q=i;typeof r.component>"u"&&(y||y==="")&&(Q="a");const oe={href:y,...he},F=Na({ios:h,material:g}),me=Hn({ios:h,material:g}),we=ta();_0(w,F==="material");const _e=Xg(F,{outline:A,clear:N,tonal:H,rounded:fe,small:ye,large:be,raised:Ne},r),Ye=_e.large?"large":_e.small?"small":"medium";let je=_e.outline?"outline":_e.clear||ge&&!R?"clear":_e.tonal?"tonal":"fill";ne&&(je="segmentedStrong"),ne&&R&&(je="segmentedStrongActive");const ot=kA(o,we),Fe=me(jA({...r,..._e},ot,we)),Mt=M(Fe.base[_e.rounded?"rounded":"square"],Fe.style[je],Fe.size[Ye],_e.raised&&Fe.raised,s);return J.createElement(Q,Gp({ref:wt=>{w.current=wt,B&&typeof B=="function"?B(wt):B&&(B.current=wt)},className:Mt,disabled:v,role:"button",tabIndex:"0"},oe),X)};Zg.displayName="Button";const HA=(r,i)=>({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:M(i.fillBg||i.fillBgIos,i.fillText||i.fillTextIos),material:M(i.fillBg||i.fillBgMaterial,i.fillText||i.fillTextMaterial)},outline:{common:"border",ios:M(i.outlineText||i.outlineTextIos,i.outlineBorder||i.outlineBorderIos),material:M(i.outlineText||i.outlineTextMaterial,i.outlineBorder||i.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"}),GA=(r={},i)=>({fillTextIos:"text-current",fillTextMaterial:M("text-md-light-on-secondary-container",i("dark:text-md-dark-on-secondary-container")),fillBgIos:M("bg-black/10",i("dark:bg-white/10")),fillBgMaterial:M("bg-md-light-secondary-container",i("dark:bg-md-dark-secondary-container")),outlineTextIos:M("text-current"),outlineTextMaterial:M("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),outlineBorderIos:M("border-black/20",i("dark:border-white/20")),outlineBorderMaterial:M("border-md-light-outline",i("dark:border-md-dark-outline")),...na(r)});function Cg(){return Cg=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Cg.apply(null,arguments)}const Rg=({theme:r,...i})=>r==="ios"?J.createElement("svg",Cg({xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 28 28",fill:"currentcolor"},i),J.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"})):J.createElement("svg",Cg({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),J.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 qp(){return qp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},qp.apply(null,arguments)}const Ud=r=>{const{component:i="div",className:s,colors:o,media:h,deleteButton:g,onDelete:v,ios:y,material:A,outline:S,children:O,ref:N,...q}=r,Z=le.useRef(null),H=i,G={...q},W=Hn({ios:y,material:A}),fe=Na({ios:y,material:A}),ve=ta(),pe=S?"outline":"fill",ye=GA(o,ve),te=W(HA(r,ye),s);return J.createElement(H,qp({ref:ce=>{Z.current=ce,N&&typeof N=="function"?N(ce):N&&(N.current=ce)},className:te.base[pe]},G),h&&J.createElement("div",{className:te.media},h),O,g&&J.createElement("div",{className:te.deleteButton,role:"button",tabIndex:"0",onClick:v},J.createElement(Rg,{theme:fe,className:"h-4 w-4"})))};Ud.displayName="Chip";const qA=(r,{textColor:i,needsTouchRipple:s})=>{const{iconOnly:o,tabbar:h,tabbarLabels:g,tabbarIcons:v}=r;return{base:{common:M("k-link",!h&&i,"inline-flex gap-1 justify-center items-center cursor-pointer select-none",s&&"touch-ripple-primary relative z-10"),ios:M(!h&&"active:opacity-50 duration-300"),material:!h&&M(s?"":"active:opacity-55")},tabbar:{common:M("w-full h-full duration-300 transition-colors relative"),ios:M("px-4 truncate",!v&&g&&"md:px-8",v&&g&&"md:min-w-24",v&&!g&&"md:min-w-12"),material:"font-medium text-sm z-10",active:"k-tabbar-link-active",inactive:""},toolbar:{common:M("h-full",o&&"k-touch-ripple-inset"),ios:M(!o&&"px-4 truncate",o&&"aspect-square"),material:"px-3 text-sm font-medium max-h-12"},navbar:{common:M("h-full max-h-12",o&&"k-touch-ripple-inset"),ios:M(!o&&"px-4",o&&"aspect-square"),material:"px-3"}}},YA=(r={},i)=>({textIos:"text-primary",textMaterial:M("text-md-light-primary",i("dark:text-md-dark-primary")),navbarTextIos:"",navbarTextMaterial:"",toolbarTextIos:"",toolbarTextMaterial:M("text-md-light-primary",i("dark:text-md-dark-primary")),...na(r)}),K1=le.createContext({tabbarLabels:!0,tabbarIcons:!0,tabbar:!1,toolbar:!1}),IA=()=>le.useContext(K1),P1=le.createContext({navbar:!1}),J1=()=>le.useContext(P1);function Yp(){return Yp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Yp.apply(null,arguments)}const Ng=r=>{const{component:i="a",className:s,colors:o,iconOnly:h,linkProps:g={},tabbarActive:v,ios:y,material:A,onClick:S,children:O,ref:N,...q}=r,{navbar:Z}=J1(),{toolbar:H,tabbar:G,tabbarLabels:W,tabbarIcons:fe}=IA(),ve=le.useRef(null),pe=i,ye={...g,...q},te=Na({ios:y,material:A}),ce=Hn({ios:y,material:A}),be=ta(),ee=te==="material"&&(H||G||Z);_0(ve,ee);const Me=YA(o,be),Ne=Z?te==="material"?Me.navbarTextMaterial:Me.navbarTextIos:H?te==="material"?Me.toolbarTextMaterial:Me.toolbarTextIos:te==="material"?Me.textMaterial:Me.textIos,Ae=G&&!v?Me.tabbarInactive:Ne,De=v?"active":"inactive",qe=ce(qA({...r,tabbarLabels:W,tabbarIcons:fe,tabbar:G},{textColor:Ae,needsTouchRipple:ee})),ge=M(qe.base,H&&qe.toolbar,Z&&qe.navbar,G&&qe.tabbar[De],s);return J.createElement(pe,Yp({ref:ne=>{ve.current=ne,N&&typeof N=="function"?N(ne):N&&(N.current=ne)},className:ge},ye,{role:"link",tabIndex:"0",onClick:S}),O)};Ng.displayName="Link";const VA=(r,i)=>{const{nested:s,inset:o,strong:h,outline:g}=r;return{base:{common:M("k-list",!s&&"my-8",!o&&!s&&g&&"hairline-t hairline-b",o&&g&&"border","z-10 relative"),ios:M(h&&i.strongBgIos,o&&g&&i.outlineIos),material:M(h&&i.strongBgMaterial,o&&g&&i.outlineMaterial)},ul:{common:M(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"}}},QA=(r={},i)=>({outlineIos:M("border-black/20",i("dark:border-white/15")),outlineMaterial:M("border-md-light-outline",i("border-md-dark-outline")),strongBgIos:M("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),strongBgMaterial:M("bg-md-light-surface-1",i("dark:bg-md-dark-surface-1")),...na(r)}),W1=J.createContext({dividers:!1,nested:!1});function Ip(){return Ip=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Ip.apply(null,arguments)}const Kg=r=>{const{component:i="div",className:s,colors:o,nested:h,menuList:g,dividers:v,dividersIos:y=!0,dividersMaterial:A=!1,inset:S,insetIos:O,insetMaterial:N,strong:q,strongIos:Z,strongMaterial:H,outline:G,outlineIos:W,outlineMaterial:fe,ios:ve,material:pe,children:ye,ref:te,...ce}=r,be=le.useRef(null),ee=i,Me={...ce},Ne=Na(),Ae=Hn({ios:ve,material:pe}),De=ta(),{strong:qe,outline:ge,inset:ne,dividers:R}=Xg(Ne,{strong:q,outline:G,inset:S,dividers:v},{strongIos:Z,strongMaterial:H,outlineIos:W,outlineMaterial:fe,insetIos:O,insetMaterial:N,dividersIos:y,dividersMaterial:A,...r}),X=QA(o,De),B=Ae(VA({...r,inset:ne,strong:qe,outline:ge},X)),he=M(B.base,ne&&B.inset,g&&B.menuList,s);return J.createElement(W1.Provider,{value:{nested:h,dividers:R}},J.createElement(ee,Ip({ref:w=>{be.current=w,te&&typeof te=="function"?te(w):te&&(te.current=w)},className:he},Me),J.createElement("ul",{className:B.ul},ye)))};Kg.displayName="List";const XA=()=>le.useContext(W1),ZA=(r,i,{isMediaItem:s,theme:o,textColor:h,needsTouchRipple:g,isMenuListItemActive:v,autoStrongTitle:y,nested:A},S)=>{const{menuListItem:O,dividers:N,mediaClassName:q="",mediaClass:Z="",innerClassName:H="",innerClass:G="",contentClassName:W="",contentClass:fe="",titleWrapClassName:ve="",titleWrapClass:pe="",titleFontSizeIos:ye,titleFontSizeMaterial:te,strongTitle:ce,contacts:be}=r;return{base:{common:M("k-list-item",O?`${h} py-1`:"",S),material:be&&"[&:nth-child(2)]:-mt-12"},itemContent:{common:M(`flex items-center ${W||fe}`),ios:M(!O&&M(i.primaryTextIos,A?"ps-4":"ps-safe-4"),O&&"rounded-2xl ml-safe-2 mr-safe-2 ps-2"),material:M(!O&&M(i.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:M("duration-300 active:duration-0 cursor-pointer select-none",N&&o==="ios"&&"active:hairline-transparent",g&&M("relative overflow-hidden z-10",i.touchRipple),M(v?o==="ios"?i.menuListItemActiveBgIos:i.menuListItemActiveBgMaterial:O?o==="ios"?i.menuListItemBgIos:i.menuListItemBgMaterial:o==="ios"?i.activeBgIos:i.activeBgMaterial))},media:{common:`shrink-0 flex ${q||Z}`,ios:"py-2 me-4",material:M("py-3",O?"me-3":"me-4")},inner:{common:M("w-full relative",!O&&N&&"hairline-b",H||G),ios:M("py-3 pe-safe-4"),material:M("py-3",s&&!O?"pe-2":"pe-safe-4")},titleWrap:{common:M(`flex justify-between items-center ${ve||pe}`),ios:M(!O&&ye,!O&&"min-h-7"),material:M(!O&&te)},title:{common:"shrink",menuListItem:M("text-sm",ce===!0||y?"font-semibold":"font-medium"),strong:{common:"",ios:"font-semibold",material:"font-medium"}},after:{common:M("shrink-0 ms-auto ps-1 flex items-center gap-1"),ios:i.secondaryTextIos,material:M(i.secondaryTextMaterial,"text-sm")},chevron:"opacity-20 shrink-0 ms-3 rtl:rotate-180",subtitle:"text-sm",text:{common:M("text-sm line-clamp-2"),ios:i.secondaryTextIos,material:i.secondaryTextMaterial},header:{common:"text-xs mb-0.5",ios:i.secondaryTextIos,material:i.secondaryTextMaterial},footer:{common:M("text-xs mt-0.5"),ios:i.secondaryTextIos,material:i.secondaryTextMaterial},groupTitle:{common:M("pl-safe-4 pr-safe-4 py-1 flex items-center z-20"),ios:`h-8${N?" hairline-t":""} -mt-px ${ye} ${i.secondaryTextIos} ${i.groupTitleBgIos} ${be&&M("font-semibold top-safe-15 sticky",i.groupTitleContactsTextIos,i.groupTitleContactsBgIos)}`,material:`h-12 ${te} ${i.secondaryTextMaterial} ${i.groupTitleBgMaterial} ${be&&M("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",i.groupTitleContactsTextMaterial,i.groupTitleContactsBgMaterial)}`}}},KA=(r={},i)=>({primaryTextIos:M("text-black",i("dark:text-white")),primaryTextMaterial:M("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),secondaryTextIos:M("text-black/55",i("dark:text-white/55")),secondaryTextMaterial:M("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),activeBgIos:M("active:not-[:has(.k-toggle:active)]:bg-black/10",i("dark:active:not-[:has(.k-toggle:active)]:bg-white/10")),activeBgMaterial:"",groupTitleBgIos:M("bg-ios-light-surface-variant",i("dark:bg-ios-dark-surface-variant")),groupTitleBgMaterial:M("bg-md-light-surface-2",i("dark:bg-md-dark-surface-2")),menuListItemTextIos:M("text-black",i("dark:text-white")),menuListItemTextMaterial:M("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),menuListItemBgIos:M("active:bg-black/10",i("dark:active:bg-white/10")),menuListItemBgMaterial:M("bg-md-light-surface-1",i("dark:bg-md-dark-surface-1")),menuListItemActiveTextIos:M("text-primary",i("dark:text-white")),menuListItemActiveTextMaterial:M("text-md-light-on-secondary-container",i("dark:text-md-dark-on-secondary-container")),menuListItemActiveBgIos:M("bg-primary/15",i("dark:bg-primary")),menuListItemActiveBgMaterial:M("bg-md-light-secondary-container",i("dark:bg-md-dark-secondary-container")),touchRipple:M("touch-ripple-black",i("dark:touch-ripple-white")),groupTitleContactsTextIos:M("text-black/90",i("dark:text-white/90")),groupTitleContactsTextMaterial:M("text-md-light-primary",i("dark:text-md-dark-primary")),groupTitleContactsBgIos:M(i("dark:bg-[#323234]")),groupTitleContactsBgMaterial:M("bg-transparent",i("dark:bg-transparent")),...na(r)});function Dg(){return Dg=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Dg.apply(null,arguments)}const xc=r=>{const{component:i="li",colors:s,className:o,mediaClassName:h="",innerClassName:g="",innerChildren:v,contentClassName:y="",contentChildren:A,titleWrapClassName:S="",titleFontSizeIos:O="text-[17px]",titleFontSizeMaterial:N="text-[16px]",title:q,subtitle:Z,text:H,after:G,media:W,header:fe,footer:ve,menuListItem:pe,menuListItemActive:ye,groupTitle:te,strongTitle:ce="auto",label:be,chevron:ee=void 0,chevronIos:Me=!0,chevronMaterial:Ne=!0,chevronIcon:Ae,href:De,target:qe,link:ge,linkComponent:ne="a",linkProps:R={},dividers:X,contacts:B,ios:he,material:w,children:Q,ref:oe,...F}=r,me=le.useRef(null),we=le.useRef(null),_e=i,Ye={...F},je=XA(),ot=typeof X>"u"?je?.dividers:X,Fe=Na({ios:he,material:w}),Mt=Hn({ios:he,material:w}),wt=ta(),hn=typeof ee>"u"?Fe==="ios"?Me:Ne:ee,Ut=KA(s,wt),xn=pe&&ye,Ei=Ut[`${xn?"menuListItemActiveText":pe?"menuListItemText":"text"}${Fe==="ios"?"Ios":"Material"}`],bt=!!De||De===""||pe||ge,rn=!!be,Qt=Fe==="material"&&(rn||bt);_0(me,Qt);const aa=De===!0||De===!1||typeof De>"u"?void 0:De||"",Ot=bt?ne:rn?"label":"div",wn=bt?{href:aa,target:qe,...R}:{},Da=q&&(Z||H),La=ce==="auto"&&Da,Nt=Mt(ZA({...r,titleFontSizeIos:O,titleFontSizeMaterial:N,dividers:ot,strongTitle:ce,mediaClassName:h,innerClassName:g,contentClassName:y,titleWrapClassName:S},Ut,{isMediaItem:Da,theme:Fe,textColor:Ei,needsTouchRipple:Qt,isMenuListItemActive:xn,autoStrongTitle:La,nested:je?.nested}),o),hr=bt||rn?Nt.itemContent.link:Nt.itemContent.default,$t=pe?Nt.title.menuListItem:ce===!0||La?Nt.title.strong:Nt.title.default;return te?J.createElement(_e,{className:M(Nt.groupTitle,o)},q,Q):J.createElement(_e,Dg({ref:mn=>{we.current=mn,oe&&typeof oe=="function"?oe(mn):oe&&(oe.current=mn)},className:Nt.base},Ye),J.createElement(Ot,Dg({ref:me,className:hr},wn),W&&J.createElement("div",{className:Nt.media},W),J.createElement("div",{className:Nt.inner},fe&&J.createElement("div",{className:Nt.header},fe),(q||G)&&J.createElement("div",{className:Nt.titleWrap},q&&J.createElement("div",{className:$t},q),G&&J.createElement("div",{className:Nt.after},G),bt&&hn&&!pe&&(Ae||J.createElement(UA,{className:Nt.chevron}))),Z&&J.createElement("div",{className:Nt.subtitle},Z),H&&J.createElement("div",{className:Nt.text},H),ve&&J.createElement("div",{className:Nt.footer},ve),v),A),Q)};xc.displayName="ListItem";function Vp(){return Vp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Vp.apply(null,arguments)}const PA=r=>J.createElement("svg",Vp({xmlns:"http://www.w3.org/2000/svg",width:"8",height:"5",viewBox:"0 0 8 5",fill:"currentcolor"},r),J.createElement("polygon",{fillRule:"evenodd",points:"0 0 8 0 4 5"})),JA=(r,i,{isFloatingTransformed:s,isFocused:o,darkClasses:h,getLabelColor:g,hasLabel:v},y)=>{const{error:A,type:S,outline:O,inputClassName:N="",inputClass:q=""}=r;return{base:{common:M("k-list-input",y),ios:M(O&&"my-4"),material:M("py-2")},itemContent:{common:"relative",ios:M(O&&"ml-4 mr-4 rounded-lg",!O&&i.bgIos),material:M("min-h-[56px] ml-4 mr-4",O?M("rounded"):M(i.bgMaterial,"rounded-t relative "))},inner:{common:"",material:M(O?"pt-4 pb-4":"pt-2 pb-2"),stacked:"",floating:""},label:{common:M("duration-200 text-xs",g(),O&&"flex"),ios:M(O&&"-mt-4"),material:M(O&&"-mt-4"),stacked:"",floating:{common:M("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:M(O&&"relative p-1 block -m-1"),ios:M(O&&M("-top-1",i.outlineLabelBgIos)),material:M(O&&M("-top-2",i.outlineLabelBgMaterial))},inputWrap:{common:"relative",ios:M((!v||O)&&"-mt-2.5","-mb-2.5"),stacked:"",floating:""},media:{material:""},titleWrap:{material:`duration-200 ${g()}`},input:{common:`block text-base appearance-none w-full focus:outline-none bg-transparent ${N||q}`,ios:"h-10",material:"h-6",notFloating:{common:M("placeholder-black/30",h("dark:placeholder-white/30")),material:M(S==="textarea"&&"py-1"),ios:M(S==="textarea"&&"py-2")},floating:s?"placeholder-transparent":M("placeholder-black/30",h("dark:placeholder-white/30"))},errorInfo:{common:"text-xs relative z-10",ios:"mt-1",material:""},error:i.errorText,info:"opacity-50",clearButton:{common:"absolute end-0 top-1/2 transform -translate-y-1/2 cursor-pointer",ios:M("w-3.5 h-3.5 opacity-45 active:opacity-30",i.labelTextIos),material:M("w-6 h-6 active:opacity-55",i.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&&M(A?i.errorBorder:o?i.outlineBorderFocusIos:i.outlineBorderIos,"h-full border rounded-lg -z-10"),material:M(A?i.errorBorder:o?i.outlineBorderFocusMaterial:i.outlineBorderMaterial,O&&M("h-full border rounded -z-10",o&&"border-2"),!O&&M("border-b h-px origin-bottom",o&&"scale-y-[2]"))}}},WA=(r={},i)=>({bgIos:"",bgMaterial:M("bg-md-light-surface-variant",i("dark:bg-md-dark-surface-variant")),outlineBorderIos:M("border-black/30",i("dark:border-white/30")),outlineBorderFocusIos:"border-primary",outlineBorderMaterial:M("border-md-light-on-surface",i("dark:border-md-dark-on-surface")),outlineBorderFocusMaterial:M("border-md-light-primary",i("dark:border-md-dark-primary")),outlineLabelBgIos:M("bg-ios-light-surface-1",i("dark:bg-ios-dark-surface-1")),outlineLabelBgMaterial:M("bg-md-light-surface",i("dark:bg-md-dark-surface")),labelTextIos:"",labelTextFocusIos:"",labelTextMaterial:M("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),labelTextFocusMaterial:M("text-md-light-primary",i("dark:text-md-dark-primary")),errorText:"text-red-500",errorBorder:"border-red-500",...na(r)});function Qp(){return Qp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Qp.apply(null,arguments)}const Xp=r=>{const{component:i="li",className:s,colors:o,label:h,floatingLabel:g,outline:v,outlineIos:y,outlineMaterial:A,media:S,input:O,info:N,error:q,clearButton:Z,dropdown:H,inputId:G,inputStyle:W,inputClassName:fe="",name:ve,value:pe,defaultValue:ye,type:te="text",inputMode:ce,readOnly:be,required:ee,disabled:Me,placeholder:Ne,size:Ae,accept:De,autoComplete:qe,autoCorrect:ge,autoCapitalize:ne,spellCheck:R,autoFocus:X,autoSave:B,max:he,min:w,step:Q,maxLength:oe,minLength:F,multiple:me,pattern:we,tabIndex:_e,onInput:Ye,onChange:je,onFocus:ot,onBlur:Fe,onClear:Mt,ios:wt,material:hn,children:Ut,ref:xn,...Ei}=r,bt=le.useRef(null),rn=le.useRef(null),[Qt,aa]=le.useState(!1),Ot=Na({ios:wt,material:hn}),wn=Hn({ios:wt,material:hn}),Da=ta(),La=WA(o,Da),Nt=h&&g?"floating":"stacked",hr=Nt==="floating"?"floating":"notFloating",$t=()=>{if(bt.current)return bt.current.value},Sn=h&&g&&!(()=>{const On=$t();return typeof pe>"u"?On||On===0:pe||pe===0})()&&!Qt,ou=()=>q?La.errorText:Ot==="material"?Qt?La.labelTextFocusMaterial:La.labelTextMaterial:Ot==="ios"?Qt?La.labelTextFocusIos:La.labelTextIos:"",cu=On=>{aa(!0),ot&&ot(On)},fu=On=>{aa(!1),Fe&&Fe(On)},Pa=typeof v>"u"?Ot==="ios"?y:A:v,Xt=wn(JA({...r,outline:Pa},La,{isFloatingTransformed:Sn,isFocused:Qt,darkClasses:Da,getLabelColor:ou,hasLabel:!!h})),Ba={...Ei},Hr=()=>{if(O)return O;const On=te==="select"||te==="textarea"?te:"input",zs=On==="input";return J.createElement(On,{id:G,ref:bt,className:Xt.input[hr],style:W,name:ve,type:zs?te:void 0,placeholder:Ne,inputMode:ce,size:Ae,accept:De,autoComplete:qe,autoCorrect:ge,autoCapitalize:ne,spellCheck:R,autoFocus:X,autoSave:B,disabled:Me,max:he,maxLength:oe,min:w,minLength:F,step:Q,multiple:me,readOnly:be,required:ee,pattern:we,tabIndex:_e,value:pe,defaultValue:ye,onInput:Ye,onChange:je,onFocus:cu,onBlur:fu},te==="select"?Ut:null)},mr=J.createElement(J.Fragment,null,q&&q!==!0&&J.createElement("div",{className:M(Xt.errorInfo,Xt.error)},q),N&&!q&&J.createElement("div",{className:M(Xt.errorInfo,Xt.info)},N)),Lc=J.createElement(J.Fragment,null,h&&J.createElement("div",{className:Xt.label[Nt]},J.createElement("div",{className:Xt.labelText},h)),J.createElement("div",{className:Xt.inputWrap[Nt]},Hr(),Z&&J.createElement(Rg,{theme:Ot,onClick:Mt,className:Xt.clearButton}),H&&J.createElement(PA,{className:Xt.dropdown})),mr);return J.createElement(xc,Qp({ref:On=>{rn.current=On,xn&&typeof xn=="function"?xn(On):xn&&(xn.current=On)},component:i,media:S,className:Xt.base,title:null,mediaClassName:Xt.media,innerClassName:Xt.inner[Nt],contentClassName:Xt.itemContent,titleWrapClassName:Xt.titleWrap,innerChildren:Lc,contentChildren:(Pa||Ot==="material")&&J.createElement("span",{className:Xt.border}),dividers:Ot==="material"||Pa?!1:void 0},Ba),te!=="select"?Ut:null)};Xp.displayName="ListInput";const FA=(r,i,s)=>{const{type:o}=r;return{message:{common:M("k-message max-w-[70%] box-border flex relative z-1 transform translate-z-0 mb-2 first:mt-2",s)},messageSent:{common:M("self-end",i.messageSent)},messageReceived:{common:i.messageReceived},messageName:{common:"text-xs",ios:M("mb-0.5 ms-4",i.messageNameIos),material:M("ms-4 mb-0.5",i.messageNameMd)},messageHeader:{common:"text-xs",ios:M("mb-0.5 ms-4",i.messageNameIos),material:M("ms-4 mb-0.5",i.messageNameMd)},messageFooter:{common:"text-xs",ios:M("mb-0.5 ms-4",i.messageNameIos),material:M("ms-4 mb-0.5",i.messageNameMd)},messageAvatar:{common:M("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:M("rounded-3xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",i.bubbleSentIos),material:M("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4",i.bubbleSentMd)},...o==="received"&&{ios:M("rounded-2xl box-border break-words flex flex-col relative rounded-2xl py-1.5 px-4",i.bubbleReceivedIos),material:M("box-border break-words flex flex-col relative rounded-3xl py-2.5 px-4 ",i.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"}}},$A=(r={},i)=>({messageSent:"text-white",messageReceived:"text-inherit",messageNameIos:M("text-black/45",i("dark:text-white/45")),messageNameMd:M("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),bubbleSentIos:M("bg-primary"),bubbleSentMd:M("bg-md-light-primary",i("dark:bg-md-dark-primary dark:text-md-dark-on-primary")),bubbleReceivedIos:M("bg-[#e5e5ea]",i("dark:bg-[#252525]")),bubbleReceivedMd:M(i("dark:bg-md-dark-surface-variant"),"bg-[#e5e5ea]"),...na(r)});function Zp(){return Zp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Zp.apply(null,arguments)}const F1=r=>{const{component:i="div",className:s,colors:o,ref:h,id:g,text:v,name:y,type:A="sent",header:S,footer:O,textHeader:N,textFooter:q,avatar:Z,ios:H,material:G,children:W,...fe}=r,ve=le.useRef(null),pe=Hn({ios:H,material:G}),ye=ta(),te=$A(o,ye),ce=pe(FA({...r},te,s)),be=i,ee={...fe},Me=M(ce.message,{[ce.messageSent]:A==="sent",[ce.messageReceived]:A==="received"});return J.createElement(be,Zp({id:g,ref:ve,className:Me},ee),Z&&J.createElement("div",{className:ce.messageAvatar},Z),J.createElement("div",{className:ce.messageContent},y&&J.createElement("div",{className:ce.messageName},y),S&&J.createElement("div",{className:ce.messageHeader},S),J.createElement("div",{className:ce.messageBubble},N&&J.createElement("div",{className:ce.messageTextHeader},N),v&&J.createElement("div",{className:ce.messageText},v),q&&J.createElement("div",{className:ce.messageTextFooter},q)),O&&J.createElement("div",{className:ce.messageFooter},O)))};F1.displayName="Message";const e_=(r,i,s)=>{const{bgClassName:o="",bgClass:h="",outline:g,innerClassName:v="",innerClass:y="",tabbar:A,tabbarIcons:S,tabbarLabels:O,top:N}=r;return{base:{common:M("k-toolbar w-full z-20 relative",s),ios:M(!N&&"pb-safe-4","px-safe-4 flex justify-center"),material:M(!N&&"pb-safe")},bgBlur:{ios:!N&&M(M(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:M(o||h),ios:!N&&M(i.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:M(i.bgMaterial,"h-full top-0 absolute w-full left-0",g&&(N?"hairline-b":"hairline-t"))},inner:{common:M("flex relative justify-between",v||y),ios:M("gap-4 items-stretch",S&&O?"h-16":"h-12",A?"w-full md:w-auto":"w-auto"),material:M("w-full overflow-hidden items-center",A?"":"pl-safe-2 pr-safe-2",S?"h-20":"h-14")},highlight:{common:M(N?"bottom-0":"top-0","absolute left-0 w-full h-0.5 duration-200 pointer-events-none transition-transform"),ios:i.tabbarHighlightBgIos,material:i.tabbarHighlightBgMaterial}}},t_=(r={},i)=>({bgIos:M("bg-gradient-to-t from-ios-light-surface to-transparent",i("dark:from-ios-dark-surface/50")),bgMaterial:M("bg-md-light-surface-2",i("dark:bg-md-dark-surface-2")),tabbarHighlightBgIos:"",tabbarHighlightBgMaterial:M("bg-md-light-primary",i("dark:bg-md-dark-primary")),...na(r)});function Kp(){return Kp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Kp.apply(null,arguments)}const $1=r=>{const{component:i="div",className:s,colors:o,bgClassName:h="",innerClassName:g="",outline:v,tabbar:y,tabbarIcons:A,tabbarLabels:S,top:O,ios:N,material:q,children:Z,ref:H,...G}=r,W=le.useRef(null),fe=le.useRef(null),ve=i,[pe,ye]=le.useState({transform:"",width:""}),te=Na({ios:N,material:q}),ce=Hn({ios:N,material:q}),be=ta(),ee={...G},Me=t_(o,be),Ae=ce(e_({...r,outline:typeof v>"u"?te==="ios":v,bgClassName:h,innerClassName:g},Me),s),De=te==="material"&&y&&!A;return le.useEffect(()=>{if(De&&W.current){const qe=W.current.previousElementSibling,ge=1/qe.children.length*100,ne=[...qe.children].indexOf(qe.querySelector(".k-tabbar-link-active"));ye({...pe,width:`${ge}%`,transform:`translateX(${ne*100}%)`})}},[Z]),J.createElement(ve,Kp({ref:qe=>{fe.current=qe,H&&typeof H=="function"?H(qe):H&&(H.current=qe)},className:Ae.base},ee),J.createElement(K1.Provider,{value:{toolbar:!0,tabbarLabels:S,tabbarIcons:A,tabbar:y}},te==="ios"&&!O&&J.createElement("div",{className:Ae.bgBlur}),(te==="material"||!O)&&J.createElement("div",{className:Ae.bg}),J.createElement("div",{className:Ae.inner},Z),De&&J.createElement("span",{className:Ae.highlight,style:pe,ref:W})))};$1.displayName="Toolbar";const n_=(r,i,s)=>{const{outline:o,large:h,medium:g,transparent:v,left:y,right:A,subnavbar:S,fontSizeIos:O,fontSizeMaterial:N,titleFontSizeIos:q,titleFontSizeMaterial:Z,titleLargeFontSizeIos:H,titleLargeFontSizeMaterial:G,titleMediumFontSizeIos:W,titleMediumFontSizeMaterial:fe,bgClassName:ve="",bgClass:pe="",subnavbarClassName:ye="",subnavbarClass:te="",innerClassName:ce="",innerClass:be="",leftClassName:ee="",leftClass:Me="",titleClassName:Ne="",titleClass:Ae="",subtitleClassName:De="",subtitleClass:qe="",rightClassName:ge="",rightClass:ne="",centerTitle:R}=r;return{base:{common:M("k-navbar w-full z-20 top-0 sticky",(h||g)&&"pointer-events-none",s),ios:M("pt-[max(16px,var(--k-safe-area-top))]",O,i.textIos),material:M("pt-safe",N,i.textMaterial)},bgBlur:{ios:M("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:M("absolute w-full left-0 top-0",ve||pe),ios:M(i.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:M("h-full",i.bgMaterial,o&&"hairline-b")},subnavbar:{common:M("relative flex items-center",ye||te,(h||g)&&"pointer-events-auto"),ios:"h-14 pl-safe-4 pr-safe-4",material:"h-14 pl-safe-4 pr-safe-4"},inner:{common:M("flex relative items-center w-full",ce||be,(h||g)&&"pointer-events-auto z-10"),ios:M("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:M("flex items-center px-safe-4 relative",(h||g)&&"pointer-events-auto"),ios:M(g&&M(W,"h-11 font-semibold"),h&&M(H,"h-13 font-bold")),material:M(g&&M(fe,"h-12 pb-4"),h&&M(G,"h-[5.5rem]"))},left:{common:M("flex justify-center items-center h-full",ee||Me),ios:"me-2 transform transform-gpu rounded-full",material:"mx-1"},title:{common:M("whitespace-nowrap leading-tight",Ne||Ae,(h||g||v)&&"opacity-0",R?"absolute top-1/2 left-1/2 transform-gpu -translate-x-1/2 -translate-y-1/2 text-center":"text-start"),ios:M(`${q} font-semibold`,!R&&"first:mx-2"),material:M(`${Z} font-normal`,!R&&"first:mx-4")},subtitle:{common:M("leading-none",De||qe),ios:"text-sm opacity-75 font-medium",material:"text-sm opacity-85 font-normal"},right:{common:M("flex justify-center items-center h-full",ge||ne),ios:M("transform transform-gpu rounded-full",R?"ms-2":"ms-auto"),material:"ms-auto me-1"}}},a_=(r,i)=>({bgIos:M("bg-gradient-to-b from-ios-light-surface to-transparent",i("dark:from-ios-dark-surface/50")),bgMaterial:M("bg-md-light-surface-2",i("dark:bg-md-dark-surface-2")),textIos:M("text-black",i("dark:text-white")),textMaterial:M("text-md-light-on-surface",i("dark:text-md-dark-on-surface")),...na(r)});function Pp(){return Pp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Pp.apply(null,arguments)}const jd=r=>{const{component:i="div",className:s,bgClassName:o="",innerClassName:h="",leftClassName:g="",titleClassName:v="",subtitleClassName:y="",rightClassName:A="",subnavbarClassName:S="",centerTitle:O,colors:N,outline:q,medium:Z,large:H,transparent:G,fontSizeIos:W="text-[17px]",fontSizeMaterial:fe="text-[16px]",titleFontSizeIos:ve="text-[17px]",titleFontSizeMaterial:pe="text-[22px]",titleMediumFontSizeIos:ye="text-[24px]",titleMediumFontSizeMaterial:te="text-[24px]",titleLargeFontSizeIos:ce="text-[34px]",titleLargeFontSizeMaterial:be="text-[28px]",scrollEl:ee,left:Me,title:Ne,subtitle:Ae,right:De,subnavbar:qe,ios:ge,material:ne,children:R,ref:X,...B}=r,he=le.useRef(null),w=le.useRef(0),Q=le.useRef(null),oe=le.useRef(null),F=le.useRef(null),me=le.useRef(null),we=le.useRef(null),_e=le.useRef(null),Ye=i,je=Na({ios:ge,material:ne}),ot=Hn({ios:ge,material:ne}),Fe=ta(),Mt={...B},wt=a_(N,Fe),hn=G,Ut=Qt=>{const{scrollTop:aa}=Qt.target;if(!hn&&!H&&!Z){_e.current&&(me.current&&(me.current.style.opacity=""),Q.current&&(Q.current.style.opacity=""));return}const Ot=w.current,wn=Math.max(Math.min(aa/Ot,1),0);je==="material"&&(Q.current.style.opacity=hn?-.5+wn*1.5:"",(Z||H)&&(Q.current.style.transform=`translateY(-${wn*Ot}px)`)),F.current&&(F.current.style.transform=`translateY(-${wn*Ot}px)`,F.current.style.opacity=1-wn*2),me.current&&(me.current.style.opacity=-.5+wn*1.5),(Z||H)&&we.current&&(we.current.style.transform=`translateY(-${wn*Ot}px)`)},xn=()=>typeof ee>"u"?he.current&&he.current.parentNode:ee.current||ee,Ei=()=>{if(!H&&!Z&&!hn){_e.current&&(Ut({target:{scrollTop:0}}),_e.current=!1);return}_e.current=!0,F.current?w.current=F.current.offsetHeight:w.current=oe.current.offsetHeight;const Qt=xn();Qt?(Qt.addEventListener("scroll",Ut),Ut({target:Qt})):Ut({target:{scrollTop:0}})},bt=()=>{const Qt=xn();Qt&&Qt.removeEventListener("scroll",Ut)};le.useEffect(()=>(Ei(),bt));const rn=ot(n_({...r,centerTitle:typeof O>"u"?je==="ios":O,outline:q,fontSizeIos:W,fontSizeMaterial:fe,titleFontSizeIos:ve,titleFontSizeMaterial:pe,titleMediumFontSizeIos:ye,titleMediumFontSizeMaterial:te,titleLargeFontSizeIos:ce,titleLargeFontSizeMaterial:be,bgClassName:o,innerClassName:h,leftClassName:g,titleClassName:v,subtitleClassName:y,rightClassName:A,subnavbarClassName:S},wt),s);return J.createElement(Ye,Pp({ref:Qt=>{he.current=Qt,X&&typeof X=="function"?X(Qt):X&&(X.current=Qt)},className:rn.base},Mt),J.createElement(P1.Provider,{value:{navbar:!0}},je==="ios"&&J.createElement("div",{className:rn.bgBlur}),J.createElement("div",{className:rn.bg,ref:Q}),J.createElement("div",{className:rn.inner,ref:oe},Me&&J.createElement(Sc,{className:rn.left},Me),(Ne||Ae)&&J.createElement("div",{className:rn.title,ref:me},Ne,Ae&&J.createElement("div",{className:rn.subtitle},Ae)),De&&J.createElement(Sc,{className:rn.right},De),R),(H||Z)&&J.createElement("div",{className:rn.titleContainer,ref:F},Ne),qe&&J.createElement("div",{className:rn.subnavbar,ref:we},qe)))};jd.displayName="Navbar";const r_=(r,i,s)=>{const{opened:o}=r;return{base:{common:M("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:M("rounded-xl p-4 start-2 end-2 top-safe-2 rounded-3xl flex gap-4 items-center",i.bgIos),material:M("rounded-2xl py-5 px-4 start-4 end-4 top-safe-4",i.bgMaterial)},content:{common:"w-full shrink",ios:"",material:M("mt-2")},header:{common:M("flex justify-start"),ios:"items-center",material:"items-start"},icon:{ios:"shrink-0",material:"me-4"},contentTitle:{material:M("flex flex-row items-center")},title:{ios:M("text-sm font-bold",i.titleIos),material:M("font-medium")},titleRightText:{ios:M("me-1 ms-auto text-sm",i.titleRightIos),material:M("ms-1 text-xs before:w-0.75 before:h-0.75 before:rounded-full before:inline-block before:align-middle before:me-1",i.titleRightMd)},button:{ios:M("me-1 ms-auto cursor-pointer"),material:M("ms-auto cursor-pointer")},deleteIcon:{ios:M("w-5 h-5",i.deleteIconIos),material:M("w-6 h-6",i.deleteIconMd)},subtitle:{ios:M("text-sm font-semibold",i.subtitleIos),material:M("text-sm")},text:{ios:M("text-sm"),material:M("text-sm",i.textMaterial)}}},i_=(r,i)=>({bgIos:"",bgMaterial:M("bg-md-light-surface-5",i("dark:bg-md-dark-surface-5")),titleIos:M("text-black",i("dark:text-white")),titleRightIos:M("text-black/45",i("dark:text-white/45")),titleRightMd:M("text-md-light-on-surface-variant before:bg-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant before:dark:bg-md-dark-on-surface-variant")),subtitleIos:M("text-black ",i("dark:text-white")),textMaterial:M("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant ")),deleteIconIos:M("fill-stone-400 active:fill-stone-200",i("dark:fill-stone-500 dark:active:fill-stone-700")),deleteIconMd:M("text-md-light-on-surface-variant",i("dark:text-md-dark-on-surface-variant")),...na(r)});function Lg(){return Lg=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Lg.apply(null,arguments)}const eb=r=>{const{component:i="div",className:s,colors:o,button:h,icon:g,title:v,titleRightText:y,subtitle:A,text:S,opened:O,onClose:N,ios:q,material:Z,children:H,ref:G,...W}=r,fe=le.useRef(null),ve=i,pe={...W},ye=Na({ios:q,material:Z}),te=Hn({ios:q,material:Z}),ce=ta(),be=i_(o,ce),ee=te(r_({...r},be),s);return ye==="ios"?J.createElement(Sc,Lg({ref:Me=>{fe.current=Me,G&&typeof G=="function"?G(Me):G&&(G.current=Me)},component:i,className:ee.base},pe),g&&J.createElement("div",{className:ee.icon},g),J.createElement("div",{className:ee.content},J.createElement("div",{className:ee.header},v&&J.createElement("div",{className:ee.title},v),y&&J.createElement("div",{className:ee.titleRightText},y),h&&J.createElement("div",{className:ee.button,role:"button",tabIndex:"0",onClick:N},J.createElement(Rg,{theme:ye,className:ee.deleteIcon}))),A&&J.createElement("div",{className:ee.subtitle},A),S&&J.createElement("div",{className:ee.text},S),H)):J.createElement(ve,Lg({ref:Me=>{fe.current=Me,G&&typeof G=="function"?G(Me):G&&(G.current=Me)},className:ee.base},pe),J.createElement("div",{className:ee.header},g&&J.createElement("div",{className:ee.icon},g),J.createElement("div",{className:ee.contentWrapper},J.createElement("div",{className:ee.contentTitle},v&&J.createElement("div",{className:ee.title},v),y&&J.createElement("div",{className:ee.titleRightText},y)),J.createElement("div",{className:ee.content},A&&J.createElement("div",{className:ee.subtitle},A),S&&J.createElement("div",{className:ee.text},S),H)),h&&J.createElement("div",{className:ee.button,role:"button",tabIndex:"0",onClick:N},J.createElement(Rg,{theme:ye,className:ee.deleteIcon}))))};eb.displayName="Notification";const l_=(r,i,s)=>({base:{common:M("k-page h-full w-full left-0 top-0 overflow-auto absolute",s),ios:i.bgIos,material:i.bgMaterial}}),u_=(r={},i)=>({bgIos:M("bg-ios-light-surface",i("dark:bg-ios-dark-surface")),bgMaterial:M("bg-md-light-surface",i("dark:bg-md-dark-surface")),...na(r)});function Jp(){return Jp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Jp.apply(null,arguments)}const Ec=r=>{const{component:i="div",className:s,colors:o,ios:h,material:g,children:v,ref:y,...A}=r,S=le.useRef(null),O=i,N={...A},q=Hn({ios:h,material:g}),Z=ta(),H=u_(o,Z),G=q(l_(r,H,s));return J.createElement(O,Jp({ref:W=>{S.current=W,y&&typeof y=="function"?y(W):y&&(y.current=W)},className:G.base},N),v)};Ec.displayName="Page";const s_=({popoverEl:r,targetEl:i,angleEl:s,needsAngle:o,targetX:h,targetY:g,targetWidth:v=0,targetHeight:y=0,theme:A})=>{i.current?i=i.current:i.value?i=i.value:i.el?i=i.el:i.$el&&(i=i.$el),typeof i=="string"&&(i=document.querySelector(i));let S=document.body.offsetWidth,O=document.body.offsetHeight;S===0&&(S=window.innerWidth),O===0&&(O=window.innerHeight);const[N,q]=[r.offsetWidth,r.offsetHeight];let Z=0,H,G,W="";o&&(Z=s.offsetWidth/2);let fe,ve;const pe=window.getComputedStyle(i);let ye=parseInt(pe.getPropertyValue("--k-safe-area-top"),10)||0,te=parseInt(pe.getPropertyValue("--k-safe-area-left"),10)||0,ce=parseInt(pe.getPropertyValue("--k-safe-area-right"),10)||0;if(Number.isNaN(ye)&&(ye=0),Number.isNaN(te)&&(te=0),Number.isNaN(ce)&&(ce=0),i){v=i.offsetWidth,y=i.offsetHeight;const ge=i.getBoundingClientRect();fe=ge.left,ve=ge.top}else typeof h<"u"&&g!=="undefined"&&(fe=h,ve=g);let[be,ee,Me]=[0,0,0];const Ne=A==="ios"?13:23;let Ae="top";q+Z<ve-ye?ee=ve-q-Z:q+Z<O-ve-y?(Ae="bottom",ee=ve+y+Z):(Ae="middle",ee=y/2+ve-q/2,Me=ee,ee=Math.max(5,Math.min(ee,O-q-5)),Me-=ee),Ae==="top"||Ae==="bottom"?(be=v/2+fe-N/2,Me=be,be=Math.max(5,Math.min(be,S-N-5)),te&&(be=Math.max(be,te)),ce&&be+N>S-5-ce&&(be=S-5-ce-N),Ae==="top"&&(W="bottom"),Ae==="bottom"&&(W="top"),Me-=be,H=N/2-Z+Me,H=Math.max(Math.min(H,N-Z*2-Ne),Ne)):Ae==="middle"&&(be=fe-N-Z,W="right",(be<5||be+N+ce>S||be<te)&&(be<5&&(be=fe+v+Z),be+N+ce>S&&(be=S-N-5-ce),be<te&&(be=te),W="left"),G=q/2-Z+Me,G=Math.max(Math.min(G,q-Z*2-Ne),Ne));const De=Ae,qe=be<fe?"left":"right";return{set:!0,angleTop:typeof G>"u"?void 0:`${G}px`,angleLeft:typeof H>"u"?void 0:`${H}px`,anglePosition:W,popoverTop:`${ee}px`,popoverLeft:`${be}px`,popoverPosition:`${De}-${qe}`}},o_=(r,i,s)=>{const{angleClassName:o,angleClass:h}=r;return{base:{common:M("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:M("overflow-hidden relative"),ios:M("rounded-4xl duration-600",i.bgIos),material:M("rounded-[1.75rem]",i.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:M(o||h||"","pointer-events-none"),ios:M("absolute w-6.5 h-6.5 z-50 overflow-hidden"),material:M("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:M("absolute rounded w-full h-full transform rotate-45"),ios:M("bg-ios-light-glass backdrop-blur-lg",s("dark:bg-ios-dark-glass")),material:i.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"}}},c_=(r={},i)=>({bgIos:"",bgMaterial:M("bg-md-light-surface-3",i("dark:bg-md-dark-surface-3")),...na(r)});function Wp(){return Wp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Wp.apply(null,arguments)}const tb=r=>{const{component:i="div",className:s,angle:o=!1,angleClassName:h="",colors:g,opened:v,backdrop:y=!0,onBackdropClick:A,target:S,targetX:O,targetY:N,targetWidth:q,targetHeight:Z,ios:H,material:G,children:W,style:fe={},ref:ve,...pe}=r,ye=le.useRef(null),te=le.useRef(null),[ce,be]=le.useState({set:!1,angleTop:0,angleLeft:0,anglePosition:"bottom",popoverTop:0,popoverLeft:0,popoverPosition:"top-left"}),ee=v?"opened":"closed",Me=i,Ne={...pe},Ae=Na({ios:H,material:G}),De=Hn({ios:H,material:G}),qe=ta(),ge=c_(g,qe),ne=De(o_({...r,angleClassName:h},ge,qe),s),R=()=>{!S||!ye.current||!v||be(s_({popoverEl:ye.current,targetEl:S,angleEl:te.current,needsAngle:o,targetX:O,targetY:N,targetHeight:Z,targetWidth:q,theme:Ae}))},X=()=>{typeof window>"u"||window.addEventListener("resize",R)},B=()=>{typeof window>"u"||window.removeEventListener("resize",R)};le.useEffect(()=>(X(),()=>B())),le.useEffect(()=>{R()},[v]);const he=ce.set?{...fe||{},left:ce.popoverLeft,top:ce.popoverTop}:fe,w=ce.set?{left:ce.angleLeft,top:ce.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"},oe=M(ne.base[ee],Q[ce.popoverPosition]);return J.createElement(J.Fragment,null,y&&J.createElement("div",{className:ne.backdrop[ee],onClick:A}),J.createElement(Me,Wp({ref:F=>{ye.current=F,ve&&typeof ve=="function"?ve(F):ve&&(ve.current=F)},className:oe,style:he},Ne),o&&J.createElement("div",{ref:te,style:w,className:ne.angleWrap[ce.anglePosition]},J.createElement("div",{className:ne.angleArrow[ce.anglePosition]})),J.createElement(Sc,{className:ne.inner[ee]},W)))};tb.displayName="Popover";function Fp(){return Fp=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Fp.apply(null,arguments)}const f_=r=>J.createElement("svg",Fp({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentcolor"},r),J.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"}),J.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"}),J.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"}),J.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"}),J.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"}),J.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"}),J.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"}),J.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 $p(){return $p=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},$p.apply(null,arguments)}const d_=r=>J.createElement("svg",$p({viewBox:"0 0 36 36"},r,{fill:"none",stroke:"currentcolor"}),J.createElement("circle",{cx:"18",cy:"18",r:"16"})),h_=(r,i,s,o)=>({base:{common:M("k-preloader",s==="ios"?"k-ios-preloader":"k-material-preloader","inline-block w-8 h-8",o),ios:i.iconIos,material:`stroke-4 ${i.iconMaterial}`},inner:{common:"block w-full h-full"}}),m_=(r={},i)=>({iconIos:"text-primary",iconMaterial:M("text-md-light-primary",i("dark:text-md-dark-primary")),...na(r)});function e0(){return e0=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},e0.apply(null,arguments)}const x0=r=>{const{component:i="span",className:s,colors:o,ios:h,material:g,children:v,ref:y,...A}=r,S=le.useRef(null),O=i,N={...A},q=Na({ios:h,material:g}),Z=Hn({ios:h,material:g}),H=ta(),G=m_(o,H),W=q==="ios"?f_:d_,fe=Z(h_(r,G,q,s));return J.createElement(O,e0({ref:ve=>{S.current=ve,y&&typeof y=="function"?y(ve):y&&(y.current=ve)},className:fe.base},N),J.createElement("span",{className:fe.inner},J.createElement(W,{className:"w-full h-full"})),v)};x0.displayName="Preloader";const g_=(r,i,s,o)=>{const{outline:h,rounded:g,navbar:v}=r;return{base:{common:M("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:`${i.borderIos} border-2`,material:`${i.borderMaterial} border`},outlineInner:{common:"-m-0.5 flex w-full justify-center items-center rtl:divide-x-reverse",ios:`divide-x-2 ${i.divideIos}`,material:`divide-x ${i.divideMaterial}`},strong:{common:M("gap-1 relative"),ios:M(!v&&i.strongBgIos,v?"p-1":"p-0.5"),material:M("p-0.5",i.strongBgMaterial)},strongHighlight:{common:M("absolute !ms-0 pointer-events-none duration-200",g&&"rounded-full","shadow",s("dark:touch-ripple-white")),ios:M(v?"start-1 top-1 bottom-1":"start-0.5 top-0.5 bottom-0.5",!g&&"rounded",i.strongHighlightBgIos),material:M("start-0.5 top-0.5 bottom-0.5",!g&&"rounded-md",i.strongHighlightBgMaterial)}}},v_=(r={},i)=>({strongBgIos:M("bg-black/5",i("dark:bg-white/10")),strongBgMaterial:M("bg-md-light-surface-variant",i("dark:bg-md-dark-surface-3")),strongHighlightBgIos:M("bg-white",i("dark:bg-white/75")),strongHighlightBgMaterial:M("bg-white",i("dark:bg-white/15")),borderIos:"border-primary",borderMaterial:M("border-md-light-outline",i("dark:border-md-dark-outline")),divideIos:"divide-primary",divideMaterial:M("divide-md-light-outline",i("dark:divide-md-dark-outline")),...na(r)}),nb=le.createContext({strong:!1,outline:!1,rounded:!1,raised:!1}),p_=()=>le.useContext(nb);function t0(){return t0=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},t0.apply(null,arguments)}const n0=r=>{const{component:i="div",className:s,colors:o,ios:h,material:g,raised:v,raisedIos:y,raisedMaterial:A,outline:S,outlineIos:O,outlineMaterial:N,strong:q,strongIos:Z,strongMaterial:H,rounded:G,roundedIos:W,roundedMaterial:fe,children:ve,ref:pe,...ye}=r,te=le.useRef(null),ce=le.useRef(null),[be,ee]=le.useState({transform:"",width:""}),Me={...ye},Ne=Na({ios:h,material:g}),Ae=Hn({ios:h,material:g}),De=ta(),qe=v_(o,De),ge=Xg(Ne,{outline:S,rounded:G,strong:q,raised:v},r),{navbar:ne}=J1(),R=Ae(g_({...r,...ge,navbar:ne},qe,De)),X=Ne==="ios"&&ne?Sc:i,B=M(ge.rounded?R.base.rounded:R.base.square,ge.raised&&R.raised,ge.outline&&R.outline,ge.strong&&R.strong,s);return le.useEffect(()=>{if(ge.strong&&ce.current){const he=ce.current.parentElement,w=he.children.length-1,Q=[...he.children].indexOf(he.querySelector(".k-segmented-strong-button-active")),oe="4px";ee({...be,width:`calc((100% - ${Ne==="ios"&&ne?"4px":"2px"} * 2 - ${oe} * (${w} - 1)) / ${w})`,transform:`translateX(calc((${Q} * 100% + ${Q} * ${oe}) * var(--k-rtl-reverse)))`})}},[ve]),J.createElement(X,t0({ref:he=>{te.current=he,pe&&typeof pe=="function"?pe(he):pe&&(pe.current=he)},className:B},Me),J.createElement(nb.Provider,{value:{strong:ge.strong,outline:ge.outline,rounded:ge.rounded,raised:ge.raised}},ge.outline?J.createElement("span",{className:R.outlineInner},ve):ve,ge.strong&&J.createElement("span",{ref:ce,className:R.strongHighlight,style:be})))};n0.displayName="Segmented";function a0(){return a0=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},a0.apply(null,arguments)}const Dd=r=>{const{active:i,children:s,outline:o,strong:h,rounded:g,raised:v,ref:y,...A}=r,S=le.useRef(null),{strong:O,rounded:N}=p_();return J.createElement(Zg,a0({ref:q=>{S.current=q,y&&typeof y=="function"?y(q):y&&(y.current=q)},segmented:!0,segmentedActive:i,segmentedStrong:O,rounded:N&&O},A),s)};Dd.displayName="SegmentedButton";function pt(r){for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];throw new Error(typeof r=="number"?"[MobX] minified error nr: "+r+(s.length?" "+s.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+r)}var b_={};function Pg(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:b_}var ab=Object.assign,Bg=Object.getOwnPropertyDescriptor,Ai=Object.defineProperty,Jg=Object.prototype,r0=[];Object.freeze(r0);var rb={};Object.freeze(rb);var y_=typeof Proxy<"u",A_=Object.toString();function ib(){y_||pt("Proxy not available")}function lb(r){var i=!1;return function(){if(!i)return i=!0,r.apply(this,arguments)}}var bc=function(){};function Ur(r){return typeof r=="function"}function Os(r){var i=typeof r;switch(i){case"string":case"symbol":case"number":return!0}return!1}function Wg(r){return r!==null&&typeof r=="object"}function al(r){if(!Wg(r))return!1;var i=Object.getPrototypeOf(r);if(i==null)return!0;var s=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return typeof s=="function"&&s.toString()===A_}function ub(r){var i=r?.constructor;return i?i.name==="GeneratorFunction"||i.displayName==="GeneratorFunction":!1}function qd(r,i,s){Ai(r,i,{enumerable:!1,writable:!0,configurable:!0,value:s})}function sb(r,i,s){Ai(r,i,{enumerable:!1,writable:!1,configurable:!0,value:s})}function Ns(r,i){var s="isMobX"+r;return i.prototype[s]=!0,function(o){return Wg(o)&&o[s]===!0}}function Nc(r){return r!=null&&Object.prototype.toString.call(r)==="[object Map]"}function __(r){var i=Object.getPrototypeOf(r),s=Object.getPrototypeOf(i),o=Object.getPrototypeOf(s);return o===null}function $i(r){return r!=null&&Object.prototype.toString.call(r)==="[object Set]"}var ob=typeof Object.getOwnPropertySymbols<"u";function x_(r){var i=Object.keys(r);if(!ob)return i;var s=Object.getOwnPropertySymbols(r);return s.length?[].concat(i,s.filter(function(o){return Jg.propertyIsEnumerable.call(r,o)})):i}var Mc=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:ob?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames;function cb(r){return r===null?null:typeof r=="object"?""+r:r}function tl(r,i){return Jg.hasOwnProperty.call(r,i)}var S_=Object.getOwnPropertyDescriptors||function(i){var s={};return Mc(i).forEach(function(o){s[o]=Bg(i,o)}),s};function Xa(r,i){return!!(r&i)}function Za(r,i,s){return s?r|=i:r&=~i,r}function P0(r,i){(i==null||i>r.length)&&(i=r.length);for(var s=0,o=Array(i);s<i;s++)o[s]=r[s];return o}function E_(r,i){for(var s=0;s<i.length;s++){var o=i[s];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,w_(o.key),o)}}function Dc(r,i,s){return i&&E_(r.prototype,i),Object.defineProperty(r,"prototype",{writable:!1}),r}function yc(r,i){var s=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(s)return(s=s.call(r)).next.bind(s);if(Array.isArray(r)||(s=O_(r))||i){s&&(r=s);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[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 Ts(){return Ts=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Ts.apply(null,arguments)}function fb(r,i){r.prototype=Object.create(i.prototype),r.prototype.constructor=r,i0(r,i)}function i0(r,i){return i0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},i0(r,i)}function M_(r,i){if(typeof r!="object"||!r)return r;var s=r[Symbol.toPrimitive];if(s!==void 0){var o=s.call(r,i);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}function w_(r){var i=M_(r,"string");return typeof i=="symbol"?i:i+""}function O_(r,i){if(r){if(typeof r=="string")return P0(r,i);var s={}.toString.call(r).slice(8,-1);return s==="Object"&&r.constructor&&(s=r.constructor.name),s==="Map"||s==="Set"?Array.from(r):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?P0(r,i):void 0}}var yi=Symbol("mobx-stored-annotations");function _i(r){function i(s,o){if(Id(o))return r.decorate_20223_(s,o);Yd(s,o,r)}return Object.assign(i,r)}function Yd(r,i,s){tl(r,yi)||qd(r,yi,Ts({},r[yi])),B_(s)||(r[yi][i]=s)}function T_(r){return tl(r,yi)||qd(r,yi,Ts({},r[yi])),r[yi]}function Id(r){return typeof r=="object"&&typeof r.kind=="string"}var Xe=Symbol("mobx administration"),uu=(function(){function r(s){s===void 0&&(s="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=At.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=s}var i=r.prototype;return i.onBO=function(){this.onBOL&&this.onBOL.forEach(function(o){return o()})},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(o){return o()})},i.reportObserved=function(){return Tb(this)},i.reportChanged=function(){fr(),Cb(this),dr()},i.toString=function(){return this.name_},Dc(r,[{key:"isBeingObserved",get:function(){return Xa(this.flags_,r.isBeingObservedMask_)},set:function(o){this.flags_=Za(this.flags_,r.isBeingObservedMask_,o)}},{key:"isPendingUnobservation",get:function(){return Xa(this.flags_,r.isPendingUnobservationMask_)},set:function(o){this.flags_=Za(this.flags_,r.isPendingUnobservationMask_,o)}},{key:"diffValue",get:function(){return Xa(this.flags_,r.diffValueMask_)?1:0},set:function(o){this.flags_=Za(this.flags_,r.diffValueMask_,o===1)}}])})();uu.isBeingObservedMask_=1;uu.isPendingUnobservationMask_=2;uu.diffValueMask_=4;var S0=Ns("Atom",uu);function db(r,i,s){i===void 0&&(i=bc),s===void 0&&(s=bc);var o=new uu(r);return i!==bc&&j2(o,i),s!==bc&&zb(o,s),o}function C_(r,i){return Pb(r,i)}function R_(r,i){return Object.is?Object.is(r,i):r===i?r!==0||1/r===1/i:r!==r&&i!==i}var zg={structural:C_,default:R_};function Cs(r,i,s){return Gb(r)?r:Array.isArray(r)?Dn.array(r,{name:s}):al(r)?Dn.object(r,void 0,{name:s}):Nc(r)?Dn.map(r,{name:s}):$i(r)?Dn.set(r,{name:s}):typeof r=="function"&&!wc(r)&&!Hd(r)?ub(r)?Oc(r):kd(s,r):r}function N_(r,i,s){if(r==null||iv(r)||rv(r)||Ls(r)||bi(r))return r;if(Array.isArray(r))return Dn.array(r,{name:s,deep:!1});if(al(r))return Dn.object(r,void 0,{name:s,deep:!1});if(Nc(r))return Dn.map(r,{name:s,deep:!1});if($i(r))return Dn.set(r,{name:s,deep:!1})}function Fg(r){return r}function D_(r,i){return Pb(r,i)?i:r}var L_="override";function B_(r){return r.annotationType_===L_}function Vd(r,i){return{annotationType_:r,options_:i,make_:z_,extend_:U_,decorate_20223_:j_}}function z_(r,i,s,o){var h;if((h=this.options_)!=null&&h.bound)return this.extend_(r,i,s,!1)===null?0:1;if(o===r.target_)return this.extend_(r,i,s,!1)===null?0:2;if(wc(s.value))return 1;var g=hb(r,this,i,s,!1);return Ai(o,i,g),2}function U_(r,i,s,o){var h=hb(r,this,i,s);return r.defineProperty_(i,h,o)}function j_(r,i){var s=i.kind,o=i.name,h=i.addInitializer,g=this,v=function(S){var O,N,q,Z;return Rs((O=(N=g.options_)==null?void 0:N.name)!=null?O:o.toString(),S,(q=(Z=g.options_)==null?void 0:Z.autoAction)!=null?q:!1)};if(s=="field")return function(A){var S,O=A;return wc(O)||(O=v(O)),(S=g.options_)!=null&&S.bound&&(O=O.bind(this),O.isMobxAction=!0),O};if(s=="method"){var y;return wc(r)||(r=v(r)),(y=this.options_)!=null&&y.bound&&h(function(){var A=this,S=A[o].bind(A);S.isMobxAction=!0,A[o]=S}),r}pt("Cannot apply '"+g.annotationType_+"' to '"+String(o)+"' (kind: "+s+"):"+(`
'`+g.annotationType_+"' can only be used on properties with a function value."))}function k_(r,i,s,o){i.annotationType_,o.value}function hb(r,i,s,o,h){var g,v,y,A,S,O,N;h===void 0&&(h=xe.safeDescriptors),k_(r,i,s,o);var q=o.value;if((g=i.options_)!=null&&g.bound){var Z;q=q.bind((Z=r.proxy_)!=null?Z:r.target_)}return{value:Rs((v=(y=i.options_)==null?void 0:y.name)!=null?v:s.toString(),q,(A=(S=i.options_)==null?void 0:S.autoAction)!=null?A:!1,(O=i.options_)!=null&&O.bound?(N=r.proxy_)!=null?N:r.target_:void 0),configurable:h?r.isPlainObject_:!0,enumerable:!1,writable:!h}}function mb(r,i){return{annotationType_:r,options_:i,make_:H_,extend_:G_,decorate_20223_:q_}}function H_(r,i,s,o){var h;if(o===r.target_)return this.extend_(r,i,s,!1)===null?0:2;if((h=this.options_)!=null&&h.bound&&(!tl(r.target_,i)||!Hd(r.target_[i]))&&this.extend_(r,i,s,!1)===null)return 0;if(Hd(s.value))return 1;var g=gb(r,this,i,s,!1,!1);return Ai(o,i,g),2}function G_(r,i,s,o){var h,g=gb(r,this,i,s,(h=this.options_)==null?void 0:h.bound);return r.defineProperty_(i,g,o)}function q_(r,i){var s,o=i.name,h=i.addInitializer;return Hd(r)||(r=Oc(r)),(s=this.options_)!=null&&s.bound&&h(function(){var g=this,v=g[o].bind(g);v.isMobXFlow=!0,g[o]=v}),r}function Y_(r,i,s,o){i.annotationType_,o.value}function gb(r,i,s,o,h,g){g===void 0&&(g=xe.safeDescriptors),Y_(r,i,s,o);var v=o.value;if(Hd(v)||(v=Oc(v)),h){var y;v=v.bind((y=r.proxy_)!=null?y:r.target_),v.isMobXFlow=!0}return{value:v,configurable:g?r.isPlainObject_:!0,enumerable:!1,writable:!g}}function E0(r,i){return{annotationType_:r,options_:i,make_:I_,extend_:V_,decorate_20223_:Q_}}function I_(r,i,s){return this.extend_(r,i,s,!1)===null?0:1}function V_(r,i,s,o){return X_(r,this,i,s),r.defineComputedProperty_(i,Ts({},this.options_,{get:s.get,set:s.set}),o)}function Q_(r,i){var s=this,o=i.name,h=i.addInitializer;return h(function(){var g=Bs(this)[Xe],v=Ts({},s.options_,{get:r,context:this});v.name||(v.name="ObservableObject."+o.toString()),g.values_.set(o,new jr(v))}),function(){return this[Xe].getObservablePropValue_(o)}}function X_(r,i,s,o){i.annotationType_,o.get}function $g(r,i){return{annotationType_:r,options_:i,make_:Z_,extend_:K_,decorate_20223_:P_}}function Z_(r,i,s){return this.extend_(r,i,s,!1)===null?0:1}function K_(r,i,s,o){var h,g;return J_(r,this),r.defineObservableProperty_(i,s.value,(h=(g=this.options_)==null?void 0:g.enhancer)!=null?h:Cs,o)}function P_(r,i){var s=this,o=i.kind,h=i.name,g=new WeakSet;function v(y,A){var S,O,N=Bs(y)[Xe],q=new ws(A,(S=(O=s.options_)==null?void 0:O.enhancer)!=null?S:Cs,"ObservableObject."+h.toString(),!1);N.values_.set(h,q),g.add(y)}if(o=="accessor")return{get:function(){return g.has(this)||v(this,r.get.call(this)),this[Xe].getObservablePropValue_(h)},set:function(A){return g.has(this)||v(this,A),this[Xe].setObservablePropValue_(h,A)},init:function(A){return g.has(this)||v(this,A),A}}}function J_(r,i,s,o){i.annotationType_}var W_="true",F_=vb();function vb(r){return{annotationType_:W_,options_:r,make_:$_,extend_:e2,decorate_20223_:t2}}function $_(r,i,s,o){var h,g;if(s.get)return ev.make_(r,i,s,o);if(s.set){var v=wc(s.set)?s.set:Rs(i.toString(),s.set);return o===r.target_?r.defineProperty_(i,{configurable:xe.safeDescriptors?r.isPlainObject_:!0,set:v})===null?0:2:(Ai(o,i,{configurable:!0,set:v}),2)}if(o!==r.target_&&typeof s.value=="function"){var y;if(ub(s.value)){var A,S=(A=this.options_)!=null&&A.autoBind?Oc.bound:Oc;return S.make_(r,i,s,o)}var O=(y=this.options_)!=null&&y.autoBind?kd.bound:kd;return O.make_(r,i,s,o)}var N=((h=this.options_)==null?void 0:h.deep)===!1?Dn.ref:Dn;if(typeof s.value=="function"&&(g=this.options_)!=null&&g.autoBind){var q;s.value=s.value.bind((q=r.proxy_)!=null?q:r.target_)}return N.make_(r,i,s,o)}function e2(r,i,s,o){var h,g;if(s.get)return ev.extend_(r,i,s,o);if(s.set)return r.defineProperty_(i,{configurable:xe.safeDescriptors?r.isPlainObject_:!0,set:Rs(i.toString(),s.set)},o);if(typeof s.value=="function"&&(h=this.options_)!=null&&h.autoBind){var v;s.value=s.value.bind((v=r.proxy_)!=null?v:r.target_)}var y=((g=this.options_)==null?void 0:g.deep)===!1?Dn.ref:Dn;return y.extend_(r,i,s,o)}function t2(r,i){pt("'"+this.annotationType_+"' cannot be used as a decorator")}var n2="observable",a2="observable.ref",r2="observable.shallow",i2="observable.struct",pb={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(pb);function Ag(r){return r||pb}var l0=$g(n2),l2=$g(a2,{enhancer:Fg}),u2=$g(r2,{enhancer:N_}),s2=$g(i2,{enhancer:D_}),bb=_i(l0);function _g(r){return r.deep===!0?Cs:r.deep===!1?Fg:c2(r.defaultDecorator)}function o2(r){var i;return r?(i=r.defaultDecorator)!=null?i:vb(r):void 0}function c2(r){var i,s;return r&&(i=(s=r.options_)==null?void 0:s.enhancer)!=null?i:Cs}function yb(r,i,s){if(Id(i))return l0.decorate_20223_(r,i);if(Os(i)){Yd(r,i,l0);return}return Gb(r)?r:al(r)?Dn.object(r,i,s):Array.isArray(r)?Dn.array(r,i):Nc(r)?Dn.map(r,i):$i(r)?Dn.set(r,i):typeof r=="object"&&r!==null?r:Dn.box(r,i)}ab(yb,bb);var f2={box:function(i,s){var o=Ag(s);return new ws(i,_g(o),o.name,!0,o.equals)},array:function(i,s){var o=Ag(s);return(xe.useProxies===!1||o.proxy===!1?ux:W2)(i,_g(o),o.name)},map:function(i,s){var o=Ag(s);return new Ib(i,_g(o),o.name)},set:function(i,s){var o=Ag(s);return new Vb(i,_g(o),o.name)},object:function(i,s,o){return su(function(){return jb(xe.useProxies===!1||o?.proxy===!1?Bs({},o):Z2({},o),i,s)})},ref:_i(l2),shallow:_i(u2),deep:bb,struct:_i(s2)},Dn=ab(yb,f2),Ab="computed",d2="computed.struct",u0=E0(Ab),h2=E0(d2,{equals:zg.structural}),ev=function(i,s){if(Id(s))return u0.decorate_20223_(i,s);if(Os(s))return Yd(i,s,u0);if(al(i))return _i(E0(Ab,i));var o=al(s)?s:{};return o.get=i,o.name||(o.name=i.name||""),new jr(o)};Object.assign(ev,u0);ev.struct=_i(h2);var J0,W0,Ug=0,m2=1,g2=(J0=(W0=Bg(function(){},"name"))==null?void 0:W0.configurable)!=null?J0:!1,F0={value:"action",configurable:!0,writable:!1,enumerable:!1};function Rs(r,i,s,o){s===void 0&&(s=!1);function h(){return _b(r,s,i,o||this,arguments)}return h.isMobxAction=!0,h.toString=function(){return i.toString()},g2&&(F0.value=r,Ai(h,"name",F0)),h}function _b(r,i,s,o,h){var g=v2(r,i);try{return s.apply(o,h)}catch(v){throw g.error_=v,v}finally{p2(g)}}function v2(r,i,s,o){var h=!1,g=0,v=xe.trackingDerivation,y=!i||!v;fr();var A=xe.allowStateChanges;y&&(Ds(),A=tv(!0));var S=M0(!0),O={runAsAction_:y,prevDerivation_:v,prevAllowStateChanges_:A,prevAllowStateReads_:S,notifySpy_:h,startTime_:g,actionId_:m2++,parentActionId_:Ug};return Ug=O.actionId_,O}function p2(r){Ug!==r.actionId_&&pt(30),Ug=r.parentActionId_,r.error_!==void 0&&(xe.suppressReactionErrors=!0),nv(r.prevAllowStateChanges_),Bd(r.prevAllowStateReads_),dr(),r.runAsAction_&&nl(r.prevDerivation_),xe.suppressReactionErrors=!1}function b2(r,i){var s=tv(r);try{return i()}finally{nv(s)}}function tv(r){var i=xe.allowStateChanges;return xe.allowStateChanges=r,i}function nv(r){xe.allowStateChanges=r}var ws=(function(r){function i(o,h,g,v,y){var A;return g===void 0&&(g="ObservableValue"),y===void 0&&(y=zg.default),A=r.call(this,g)||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_=g,A.equals=y,A.value_=h(o,void 0,g),A}fb(i,r);var s=i.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(or(this)){var g=cr(this,{object:this,type:xi,newValue:h});if(!g)return xe.UNCHANGED;h=g.newValue}return h=this.enhancer(h,this.value_,this.name_),this.equals(this.value_,h)?xe.UNCHANGED:h},s.setNewValue_=function(h){var g=this.value_;this.value_=h,this.reportChanged(),Br(this)&&zr(this,{type:xi,object:this,newValue:h,oldValue:g})},s.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},s.intercept_=function(h){return Qd(this,h)},s.observe_=function(h,g){return g&&h({observableKind:"value",debugObjectName:this.name_,object:this,type:xi,newValue:this.value_,oldValue:void 0}),Xd(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 cb(this.get())},s[Symbol.toPrimitive]=function(){return this.valueOf()},i})(uu),jr=(function(){function r(s){this.dependenciesState_=At.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=At.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new kg(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=jg.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||pt(31),this.derivation=s.get,this.name_=s.name||"ComputedValue",s.set&&(this.setter_=Rs("ComputedValue-setter",s.set)),this.equals_=s.equals||(s.compareStructural||s.struct?zg.structural:zg.default),this.scope_=s.context,this.requiresReaction_=s.requiresReaction,this.keepAlive_=!!s.keepAlive}var i=r.prototype;return i.onBecomeStale_=function(){S2(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach(function(o){return o()})},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(o){return o()})},i.get=function(){if(this.isComputing&&pt(32,this.name_,this.derivation),xe.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)s0(this)&&(this.warnAboutUntrackedRead_(),fr(),this.value_=this.computeValue_(!1),dr());else if(Tb(this),s0(this)){var o=xe.trackingContext;this.keepAlive_&&!o&&(xe.trackingContext=this),this.trackAndCompute()&&x2(this),xe.trackingContext=o}var h=this.value_;if(wg(h))throw h.cause;return h},i.set=function(o){if(this.setter_){this.isRunningSetter&&pt(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,o)}finally{this.isRunningSetter=!1}}else pt(34,this.name_)},i.trackAndCompute=function(){var o=this.value_,h=this.dependenciesState_===At.NOT_TRACKING_,g=this.computeValue_(!0),v=h||wg(o)||wg(g)||!this.equals_(o,g);return v&&(this.value_=g),v},i.computeValue_=function(o){this.isComputing=!0;var h=tv(!1),g;if(o)g=xb(this,this.derivation,this.scope_);else if(xe.disableErrorBoundaries===!0)g=this.derivation.call(this.scope_);else try{g=this.derivation.call(this.scope_)}catch(v){g=new kg(v)}return nv(h),this.isComputing=!1,g},i.suspend_=function(){this.keepAlive_||(o0(this),this.value_=void 0)},i.observe_=function(o,h){var g=this,v=!0,y=void 0;return D2(function(){var A=g.get();if(!v||h){var S=Ds();o({observableKind:"computed",debugObjectName:g.name_,type:xi,object:g,newValue:A,oldValue:y}),nl(S)}v=!1,y=A})},i.warnAboutUntrackedRead_=function(){},i.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},i.valueOf=function(){return cb(this.get())},i[Symbol.toPrimitive]=function(){return this.valueOf()},Dc(r,[{key:"isComputing",get:function(){return Xa(this.flags_,r.isComputingMask_)},set:function(o){this.flags_=Za(this.flags_,r.isComputingMask_,o)}},{key:"isRunningSetter",get:function(){return Xa(this.flags_,r.isRunningSetterMask_)},set:function(o){this.flags_=Za(this.flags_,r.isRunningSetterMask_,o)}},{key:"isBeingObserved",get:function(){return Xa(this.flags_,r.isBeingObservedMask_)},set:function(o){this.flags_=Za(this.flags_,r.isBeingObservedMask_,o)}},{key:"isPendingUnobservation",get:function(){return Xa(this.flags_,r.isPendingUnobservationMask_)},set:function(o){this.flags_=Za(this.flags_,r.isPendingUnobservationMask_,o)}},{key:"diffValue",get:function(){return Xa(this.flags_,r.diffValueMask_)?1:0},set:function(o){this.flags_=Za(this.flags_,r.diffValueMask_,o===1)}}])})();jr.isComputingMask_=1;jr.isRunningSetterMask_=2;jr.isBeingObservedMask_=4;jr.isPendingUnobservationMask_=8;jr.diffValueMask_=16;var av=Ns("ComputedValue",jr),At;(function(r){r[r.NOT_TRACKING_=-1]="NOT_TRACKING_",r[r.UP_TO_DATE_=0]="UP_TO_DATE_",r[r.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",r[r.STALE_=2]="STALE_"})(At||(At={}));var jg;(function(r){r[r.NONE=0]="NONE",r[r.LOG=1]="LOG",r[r.BREAK=2]="BREAK"})(jg||(jg={}));var kg=function(i){this.cause=void 0,this.cause=i};function wg(r){return r instanceof kg}function s0(r){switch(r.dependenciesState_){case At.UP_TO_DATE_:return!1;case At.NOT_TRACKING_:case At.STALE_:return!0;case At.POSSIBLY_STALE_:{for(var i=M0(!0),s=Ds(),o=r.observing_,h=o.length,g=0;g<h;g++){var v=o[g];if(av(v)){if(xe.disableErrorBoundaries)v.get();else try{v.get()}catch{return nl(s),Bd(i),!0}if(r.dependenciesState_===At.STALE_)return nl(s),Bd(i),!0}}return Eb(r),nl(s),Bd(i),!1}}}function xb(r,i,s){var o=M0(!0);Eb(r),r.newObserving_=new Array(r.runId_===0?100:r.observing_.length),r.unboundDepsCount_=0,r.runId_=++xe.runId;var h=xe.trackingDerivation;xe.trackingDerivation=r,xe.inBatch++;var g;if(xe.disableErrorBoundaries===!0)g=i.call(s);else try{g=i.call(s)}catch(v){g=new kg(v)}return xe.inBatch--,xe.trackingDerivation=h,y2(r),Bd(o),g}function y2(r){for(var i=r.observing_,s=r.observing_=r.newObserving_,o=At.UP_TO_DATE_,h=0,g=r.unboundDepsCount_,v=0;v<g;v++){var y=s[v];y.diffValue===0&&(y.diffValue=1,h!==v&&(s[h]=y),h++),y.dependenciesState_>o&&(o=y.dependenciesState_)}for(s.length=h,r.newObserving_=null,g=i.length;g--;){var A=i[g];A.diffValue===0&&wb(A,r),A.diffValue=0}for(;h--;){var S=s[h];S.diffValue===1&&(S.diffValue=0,_2(S,r))}o!==At.UP_TO_DATE_&&(r.dependenciesState_=o,r.onBecomeStale_())}function o0(r){var i=r.observing_;r.observing_=[];for(var s=i.length;s--;)wb(i[s],r);r.dependenciesState_=At.NOT_TRACKING_}function Sb(r){var i=Ds();try{return r()}finally{nl(i)}}function Ds(){var r=xe.trackingDerivation;return xe.trackingDerivation=null,r}function nl(r){xe.trackingDerivation=r}function M0(r){var i=xe.allowStateReads;return xe.allowStateReads=r,i}function Bd(r){xe.allowStateReads=r}function Eb(r){if(r.dependenciesState_!==At.UP_TO_DATE_){r.dependenciesState_=At.UP_TO_DATE_;for(var i=r.observing_,s=i.length;s--;)i[s].lowestObserverState_=At.UP_TO_DATE_}}var Og=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},Tg=!0,Mb=!1,xe=(function(){var r=Pg();return r.__mobxInstanceCount>0&&!r.__mobxGlobals&&(Tg=!1),r.__mobxGlobals&&r.__mobxGlobals.version!==new Og().version&&(Tg=!1),Tg?r.__mobxGlobals?(r.__mobxInstanceCount+=1,r.__mobxGlobals.UNCHANGED||(r.__mobxGlobals.UNCHANGED={}),r.__mobxGlobals):(r.__mobxInstanceCount=1,r.__mobxGlobals=new Og):(setTimeout(function(){Mb||pt(35)},1),new Og)})();function A2(){if((xe.pendingReactions.length||xe.inBatch||xe.isRunningReactions)&&pt(36),Mb=!0,Tg){var r=Pg();--r.__mobxInstanceCount===0&&(r.__mobxGlobals=void 0),xe=new Og}}function _2(r,i){r.observers_.add(i),r.lowestObserverState_>i.dependenciesState_&&(r.lowestObserverState_=i.dependenciesState_)}function wb(r,i){r.observers_.delete(i),r.observers_.size===0&&Ob(r)}function Ob(r){r.isPendingUnobservation===!1&&(r.isPendingUnobservation=!0,xe.pendingUnobservations.push(r))}function fr(){xe.inBatch++}function dr(){if(--xe.inBatch===0){Rb();for(var r=xe.pendingUnobservations,i=0;i<r.length;i++){var s=r[i];s.isPendingUnobservation=!1,s.observers_.size===0&&(s.isBeingObserved&&(s.isBeingObserved=!1,s.onBUO()),s instanceof jr&&s.suspend_())}xe.pendingUnobservations=[]}}function Tb(r){var i=xe.trackingDerivation;return i!==null?(i.runId_!==r.lastAccessedBy_&&(r.lastAccessedBy_=i.runId_,i.newObserving_[i.unboundDepsCount_++]=r,!r.isBeingObserved&&xe.trackingContext&&(r.isBeingObserved=!0,r.onBO())),r.isBeingObserved):(r.observers_.size===0&&xe.inBatch>0&&Ob(r),!1)}function Cb(r){r.lowestObserverState_!==At.STALE_&&(r.lowestObserverState_=At.STALE_,r.observers_.forEach(function(i){i.dependenciesState_===At.UP_TO_DATE_&&i.onBecomeStale_(),i.dependenciesState_=At.STALE_}))}function x2(r){r.lowestObserverState_!==At.STALE_&&(r.lowestObserverState_=At.STALE_,r.observers_.forEach(function(i){i.dependenciesState_===At.POSSIBLY_STALE_?i.dependenciesState_=At.STALE_:i.dependenciesState_===At.UP_TO_DATE_&&(r.lowestObserverState_=At.UP_TO_DATE_)}))}function S2(r){r.lowestObserverState_===At.UP_TO_DATE_&&(r.lowestObserverState_=At.POSSIBLY_STALE_,r.observers_.forEach(function(i){i.dependenciesState_===At.UP_TO_DATE_&&(i.dependenciesState_=At.POSSIBLY_STALE_,i.onBecomeStale_())}))}var Si=(function(){function r(s,o,h,g){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_=At.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=jg.NONE,this.name_=s,this.onInvalidate_=o,this.errorHandler_=h,this.requiresObservable_=g}var i=r.prototype;return i.onBecomeStale_=function(){this.schedule_()},i.schedule_=function(){this.isScheduled||(this.isScheduled=!0,xe.pendingReactions.push(this),Rb())},i.runReaction_=function(){if(!this.isDisposed){fr(),this.isScheduled=!1;var o=xe.trackingContext;if(xe.trackingContext=this,s0(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(h){this.reportExceptionInDerivation_(h)}}xe.trackingContext=o,dr()}},i.track=function(o){if(!this.isDisposed){fr(),this.isRunning=!0;var h=xe.trackingContext;xe.trackingContext=this;var g=xb(this,o,void 0);xe.trackingContext=h,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&o0(this),wg(g)&&this.reportExceptionInDerivation_(g.cause),dr()}},i.reportExceptionInDerivation_=function(o){var h=this;if(this.errorHandler_){this.errorHandler_(o,this);return}if(xe.disableErrorBoundaries)throw o;var g="[mobx] uncaught error in '"+this+"'";xe.suppressReactionErrors||console.error(g,o),xe.globalReactionErrorHandlers.forEach(function(v){return v(o,h)})},i.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(fr(),o0(this),dr()))},i.getDisposer_=function(o){var h=this,g=function v(){h.dispose(),o==null||o.removeEventListener==null||o.removeEventListener("abort",v)};return o==null||o.addEventListener==null||o.addEventListener("abort",g),g[Xe]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(g[Symbol.dispose]=g),g},i.toString=function(){return"Reaction["+this.name_+"]"},i.trace=function(o){},Dc(r,[{key:"isDisposed",get:function(){return Xa(this.flags_,r.isDisposedMask_)},set:function(o){this.flags_=Za(this.flags_,r.isDisposedMask_,o)}},{key:"isScheduled",get:function(){return Xa(this.flags_,r.isScheduledMask_)},set:function(o){this.flags_=Za(this.flags_,r.isScheduledMask_,o)}},{key:"isTrackPending",get:function(){return Xa(this.flags_,r.isTrackPendingMask_)},set:function(o){this.flags_=Za(this.flags_,r.isTrackPendingMask_,o)}},{key:"isRunning",get:function(){return Xa(this.flags_,r.isRunningMask_)},set:function(o){this.flags_=Za(this.flags_,r.isRunningMask_,o)}},{key:"diffValue",get:function(){return Xa(this.flags_,r.diffValueMask_)?1:0},set:function(o){this.flags_=Za(this.flags_,r.diffValueMask_,o===1)}}])})();Si.isDisposedMask_=1;Si.isScheduledMask_=2;Si.isTrackPendingMask_=4;Si.isRunningMask_=8;Si.diffValueMask_=16;var E2=100,c0=function(i){return i()};function Rb(){xe.inBatch>0||xe.isRunningReactions||c0(M2)}function M2(){xe.isRunningReactions=!0;for(var r=xe.pendingReactions,i=0;r.length>0;){++i===E2&&(console.error("[mobx] cycle in reaction: "+r[0]),r.splice(0));for(var s=r.splice(0),o=0,h=s.length;o<h;o++)s[o].runReaction_()}xe.isRunningReactions=!1}var Hg=Ns("Reaction",Si);function w2(r){var i=c0;c0=function(o){return r(function(){return i(o)})}}function zd(){return!1}function O2(r){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Nb="action",T2="action.bound",Db="autoAction",C2="autoAction.bound",Lb="<unnamed action>",f0=Vd(Nb),R2=Vd(T2,{bound:!0}),d0=Vd(Db,{autoAction:!0}),N2=Vd(C2,{autoAction:!0,bound:!0});function Bb(r){var i=function(o,h){if(Ur(o))return Rs(o.name||Lb,o,r);if(Ur(h))return Rs(o,h,r);if(Id(h))return(r?d0:f0).decorate_20223_(o,h);if(Os(h))return Yd(o,h,r?d0:f0);if(Os(o))return _i(Vd(r?Db:Nb,{name:o,autoAction:r}))};return i}var Ac=Bb(!1);Object.assign(Ac,f0);var kd=Bb(!0);Object.assign(kd,d0);Ac.bound=_i(R2);kd.bound=_i(N2);function iu(r){return _b(r.name||Lb,!1,r,this,void 0)}function wc(r){return Ur(r)&&r.isMobxAction===!0}function D2(r,i){var s,o,h,g;i===void 0&&(i=rb);var v=(s=(o=i)==null?void 0:o.name)!=null?s:"Autorun",y=!i.scheduler&&!i.delay,A;if(y)A=new Si(v,function(){this.track(N)},i.onError,i.requiresObservable);else{var S=B2(i),O=!1;A=new Si(v,function(){O||(O=!0,S(function(){O=!1,A.isDisposed||A.track(N)}))},i.onError,i.requiresObservable)}function N(){r(A)}return(h=i)!=null&&(h=h.signal)!=null&&h.aborted||A.schedule_(),A.getDisposer_((g=i)==null?void 0:g.signal)}var L2=function(i){return i()};function B2(r){return r.scheduler?r.scheduler:r.delay?function(i){return setTimeout(i,r.delay)}:L2}var z2="onBO",U2="onBUO";function j2(r,i,s){return Ub(z2,r,i,s)}function zb(r,i,s){return Ub(U2,r,i,s)}function Ub(r,i,s,o){var h=Yg(i),g=Ur(o)?o:s,v=r+"L";return h[v]?h[v].add(g):h[v]=new Set([g]),function(){var y=h[v];y&&(y.delete(g),y.size===0&&delete h[v])}}var k2="never",xg="always",H2="observed";function G2(r){r.isolateGlobalState===!0&&A2();var i=r.useProxies,s=r.enforceActions;if(i!==void 0&&(xe.useProxies=i===xg?!0:i===k2?!1:typeof Proxy<"u"),i==="ifavailable"&&(xe.verifyProxies=!0),s!==void 0){var o=s===xg?xg:s===H2;xe.enforceActions=o,xe.allowStateChanges=!(o===!0||o===xg)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(h){h in r&&(xe[h]=!!r[h])}),xe.allowStateReads=!xe.observableRequiresReaction,r.reactionScheduler&&w2(r.reactionScheduler)}function jb(r,i,s,o){var h=S_(i);return su(function(){var g=Bs(r,o)[Xe];Mc(h).forEach(function(v){g.extend_(v,h[v],s&&v in s?s[v]:!0)})}),r}function q2(r,i){return kb(Yg(r,i))}function kb(r){var i={name:r.name_};return r.observing_&&r.observing_.length>0&&(i.dependencies=Y2(r.observing_).map(kb)),i}function Y2(r){return Array.from(new Set(r))}var I2=0;function Hb(){this.message="FLOW_CANCELLED"}Hb.prototype=Object.create(Error.prototype);var Ep=mb("flow"),V2=mb("flow.bound",{bound:!0}),Oc=Object.assign(function(i,s){if(Id(s))return Ep.decorate_20223_(i,s);if(Os(s))return Yd(i,s,Ep);var o=i,h=o.name||"<unnamed flow>",g=function(){var y=this,A=arguments,S=++I2,O=Ac(h+" - runid: "+S+" - init",o).apply(y,A),N,q=void 0,Z=new Promise(function(H,G){var W=0;N=G;function fe(ye){q=void 0;var te;try{te=Ac(h+" - runid: "+S+" - yield "+W++,O.next).call(O,ye)}catch(ce){return G(ce)}pe(te)}function ve(ye){q=void 0;var te;try{te=Ac(h+" - runid: "+S+" - yield "+W++,O.throw).call(O,ye)}catch(ce){return G(ce)}pe(te)}function pe(ye){if(Ur(ye?.then)){ye.then(pe,G);return}return ye.done?H(ye.value):(q=Promise.resolve(ye.value),q.then(fe,ve))}fe(void 0)});return Z.cancel=Ac(h+" - runid: "+S+" - cancel",function(){try{q&&$0(q);var H=O.return(void 0),G=Promise.resolve(H.value);G.then(bc,bc),$0(G),N(new Hb)}catch(W){N(W)}}),Z};return g.isMobXFlow=!0,g},Ep);Oc.bound=_i(V2);function $0(r){Ur(r.cancel)&&r.cancel()}function Hd(r){return r?.isMobXFlow===!0}function Q2(r,i){return r?iv(r)||!!r[Xe]||S0(r)||Hg(r)||av(r):!1}function Gb(r){return Q2(r)}function el(r,i){i===void 0&&(i=void 0),fr();try{return r.apply(i)}finally{dr()}}function pc(r){return r[Xe]}var X2={has:function(i,s){return pc(i).has_(s)},get:function(i,s){return pc(i).get_(s)},set:function(i,s,o){var h;return Os(s)?(h=pc(i).set_(s,o,!0))!=null?h:!0:!1},deleteProperty:function(i,s){var o;return Os(s)?(o=pc(i).delete_(s,!0))!=null?o:!0:!1},defineProperty:function(i,s,o){var h;return(h=pc(i).defineProperty_(s,o))!=null?h:!0},ownKeys:function(i){return pc(i).ownKeys_()},preventExtensions:function(i){pt(13)}};function Z2(r,i){var s,o;return ib(),r=Bs(r,i),(o=(s=r[Xe]).proxy_)!=null?o:s.proxy_=new Proxy(r,X2)}function or(r){return r.interceptors_!==void 0&&r.interceptors_.length>0}function Qd(r,i){var s=r.interceptors_||(r.interceptors_=[]);return s.push(i),lb(function(){var o=s.indexOf(i);o!==-1&&s.splice(o,1)})}function cr(r,i){var s=Ds();try{for(var o=[].concat(r.interceptors_||[]),h=0,g=o.length;h<g&&(i=o[h](i),i&&!i.type&&pt(14),!!i);h++);return i}finally{nl(s)}}function Br(r){return r.changeListeners_!==void 0&&r.changeListeners_.length>0}function Xd(r,i){var s=r.changeListeners_||(r.changeListeners_=[]);return s.push(i),lb(function(){var o=s.indexOf(i);o!==-1&&s.splice(o,1)})}function zr(r,i){var s=Ds(),o=r.changeListeners_;if(o){o=o.slice();for(var h=0,g=o.length;h<g;h++)o[h](i);nl(s)}}function K2(r,i,s){return su(function(){var o,h=Bs(r,s)[Xe];(o=i)!=null||(i=T_(r)),Mc(i).forEach(function(g){return h.make_(g,i[g])})}),r}var Mp=Symbol("mobx-keys");function qb(r,i,s){return al(r)?jb(r,r,i,s):(su(function(){var o=Bs(r,s)[Xe];if(!r[Mp]){var h=Object.getPrototypeOf(r),g=new Set([].concat(Mc(r),Mc(h)));g.delete("constructor"),g.delete(Xe),qd(h,Mp,g)}r[Mp].forEach(function(v){return o.make_(v,i&&v in i?i[v]:!0)})}),r)}var e1="splice",xi="update",P2=1e4,J2={get:function(i,s){var o=i[Xe];return s===Xe?o:s==="length"?o.getArrayLength_():typeof s=="string"&&!isNaN(s)?o.get_(parseInt(s)):tl(Gg,s)?Gg[s]:i[s]},set:function(i,s,o){var h=i[Xe];return s==="length"&&h.setArrayLength_(o),typeof s=="symbol"||isNaN(s)?i[s]=o:h.set_(parseInt(s),o),!0},preventExtensions:function(){pt(15)}},w0=(function(){function r(s,o,h,g){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_=g,this.atom_=new uu(s),this.enhancer_=function(v,y){return o(v,y,"ObservableArray[..]")}}var i=r.prototype;return i.dehanceValue_=function(o){return this.dehancer!==void 0?this.dehancer(o):o},i.dehanceValues_=function(o){return this.dehancer!==void 0&&o.length>0?o.map(this.dehancer):o},i.intercept_=function(o){return Qd(this,o)},i.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}),Xd(this,o)},i.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},i.setArrayLength_=function(o){(typeof o!="number"||isNaN(o)||o<0)&&pt("Out of range: "+o);var h=this.values_.length;if(o!==h)if(o>h){for(var g=new Array(o-h),v=0;v<o-h;v++)g[v]=void 0;this.spliceWithArray_(h,0,g)}else this.spliceWithArray_(o,h-o)},i.updateArrayLength_=function(o,h){o!==this.lastKnownLength_&&pt(16),this.lastKnownLength_+=h,this.legacyMode_&&h>0&&Kb(o+h+1)},i.spliceWithArray_=function(o,h,g){var v=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)),g===void 0&&(g=r0),or(this)){var A=cr(this,{object:this.proxy_,type:e1,index:o,removedCount:h,added:g});if(!A)return r0;h=A.removedCount,g=A.added}if(g=g.length===0?g:g.map(function(N){return v.enhancer_(N,void 0)}),this.legacyMode_){var S=g.length-h;this.updateArrayLength_(y,S)}var O=this.spliceItemsIntoValues_(o,h,g);return(h!==0||g.length!==0)&&this.notifyArraySplice_(o,g,O),this.dehanceValues_(O)},i.spliceItemsIntoValues_=function(o,h,g){if(g.length<P2){var v;return(v=this.values_).splice.apply(v,[o,h].concat(g))}else{var y=this.values_.slice(o,o+h),A=this.values_.slice(o+h);this.values_.length+=g.length-h;for(var S=0;S<g.length;S++)this.values_[o+S]=g[S];for(var O=0;O<A.length;O++)this.values_[o+g.length+O]=A[O];return y}},i.notifyArrayChildUpdate_=function(o,h,g){var v=!this.owned_&&zd(),y=Br(this),A=y||v?{observableKind:"array",object:this.proxy_,type:xi,debugObjectName:this.atom_.name_,index:o,newValue:h,oldValue:g}:null;this.atom_.reportChanged(),y&&zr(this,A)},i.notifyArraySplice_=function(o,h,g){var v=!this.owned_&&zd(),y=Br(this),A=y||v?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:e1,index:o,removed:g,added:h,removedCount:g.length,addedCount:h.length}:null;this.atom_.reportChanged(),y&&zr(this,A)},i.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])},i.set_=function(o,h){var g=this.values_;if(this.legacyMode_&&o>g.length&&pt(17,o,g.length),o<g.length){this.atom_;var v=g[o];if(or(this)){var y=cr(this,{type:xi,object:this.proxy_,index:o,newValue:h});if(!y)return;h=y.newValue}h=this.enhancer_(h,v);var A=h!==v;A&&(g[o]=h,this.notifyArrayChildUpdate_(o,h,v))}else{for(var S=new Array(o+1-g.length),O=0;O<S.length-1;O++)S[O]=void 0;S[S.length-1]=h,this.spliceWithArray_(g.length,0,S)}},r})();function W2(r,i,s,o){return s===void 0&&(s="ObservableArray"),o===void 0&&(o=!1),ib(),su(function(){var h=new w0(s,i,o,!1);sb(h.values_,Xe,h);var g=new Proxy(h.values_,J2);return h.proxy_=g,r&&r.length&&h.spliceWithArray_(0,0,r),g})}var Gg={clear:function(){return this.splice(0)},replace:function(i){var s=this[Xe];return s.spliceWithArray_(0,s.values_.length,i)},toJSON:function(){return this.slice()},splice:function(i,s){for(var o=arguments.length,h=new Array(o>2?o-2:0),g=2;g<o;g++)h[g-2]=arguments[g];var v=this[Xe];switch(arguments.length){case 0:return[];case 1:return v.spliceWithArray_(i);case 2:return v.spliceWithArray_(i,s)}return v.spliceWithArray_(i,s,h)},spliceWithArray:function(i,s,o){return this[Xe].spliceWithArray_(i,s,o)},push:function(){for(var i=this[Xe],s=arguments.length,o=new Array(s),h=0;h<s;h++)o[h]=arguments[h];return i.spliceWithArray_(i.values_.length,0,o),i.values_.length},pop:function(){return this.splice(Math.max(this[Xe].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var i=this[Xe],s=arguments.length,o=new Array(s),h=0;h<s;h++)o[h]=arguments[h];return i.spliceWithArray_(0,0,o),i.values_.length},reverse:function(){return xe.trackingDerivation&&pt(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){xe.trackingDerivation&&pt(37,"sort");var i=this.slice();return i.sort.apply(i,arguments),this.replace(i),this},remove:function(i){var s=this[Xe],o=s.dehanceValues_(s.values_).indexOf(i);return o>-1?(this.splice(o,1),!0):!1}};Vt("at",Ka);Vt("concat",Ka);Vt("flat",Ka);Vt("includes",Ka);Vt("indexOf",Ka);Vt("join",Ka);Vt("lastIndexOf",Ka);Vt("slice",Ka);Vt("toString",Ka);Vt("toLocaleString",Ka);Vt("toSorted",Ka);Vt("toSpliced",Ka);Vt("with",Ka);Vt("every",kr);Vt("filter",kr);Vt("find",kr);Vt("findIndex",kr);Vt("findLast",kr);Vt("findLastIndex",kr);Vt("flatMap",kr);Vt("forEach",kr);Vt("map",kr);Vt("some",kr);Vt("toReversed",kr);Vt("reduce",Yb);Vt("reduceRight",Yb);function Vt(r,i){typeof Array.prototype[r]=="function"&&(Gg[r]=i(r))}function Ka(r){return function(){var i=this[Xe];i.atom_.reportObserved();var s=i.dehanceValues_(i.values_);return s[r].apply(s,arguments)}}function kr(r){return function(i,s){var o=this,h=this[Xe];h.atom_.reportObserved();var g=h.dehanceValues_(h.values_);return g[r](function(v,y){return i.call(s,v,y,o)})}}function Yb(r){return function(){var i=this,s=this[Xe];s.atom_.reportObserved();var o=s.dehanceValues_(s.values_),h=arguments[0];return arguments[0]=function(g,v,y){return h(g,v,y,i)},o[r].apply(o,arguments)}}var F2=Ns("ObservableArrayAdministration",w0);function rv(r){return Wg(r)&&F2(r[Xe])}var $2={},lu="add",qg="delete",Ib=(function(){function r(s,o,h){var g=this;o===void 0&&(o=Cs),h===void 0&&(h="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Xe]=$2,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,Ur(Map)||pt(18),su(function(){g.keysAtom_=db("ObservableMap.keys()"),g.data_=new Map,g.hasMap_=new Map,s&&g.merge(s)})}var i=r.prototype;return i.has_=function(o){return this.data_.has(o)},i.has=function(o){var h=this;if(!xe.trackingDerivation)return this.has_(o);var g=this.hasMap_.get(o);if(!g){var v=g=new ws(this.has_(o),Fg,"ObservableMap.key?",!1);this.hasMap_.set(o,v),zb(v,function(){return h.hasMap_.delete(o)})}return g.get()},i.set=function(o,h){var g=this.has_(o);if(or(this)){var v=cr(this,{type:g?xi:lu,object:this,newValue:h,name:o});if(!v)return this;h=v.newValue}return g?this.updateValue_(o,h):this.addValue_(o,h),this},i.delete=function(o){var h=this;if(this.keysAtom_,or(this)){var g=cr(this,{type:qg,object:this,name:o});if(!g)return!1}if(this.has_(o)){var v=zd(),y=Br(this),A=y||v?{observableKind:"map",debugObjectName:this.name_,type:qg,object:this,oldValue:this.data_.get(o).value_,name:o}:null;return el(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&&zr(this,A),!0}return!1},i.updateValue_=function(o,h){var g=this.data_.get(o);if(h=g.prepareNewValue_(h),h!==xe.UNCHANGED){var v=zd(),y=Br(this),A=y||v?{observableKind:"map",debugObjectName:this.name_,type:xi,object:this,oldValue:g.value_,name:o,newValue:h}:null;g.setNewValue_(h),y&&zr(this,A)}},i.addValue_=function(o,h){var g=this;this.keysAtom_,el(function(){var S,O=new ws(h,g.enhancer_,"ObservableMap.key",!1);g.data_.set(o,O),h=O.value_,(S=g.hasMap_.get(o))==null||S.setNewValue_(!0),g.keysAtom_.reportChanged()});var v=zd(),y=Br(this),A=y||v?{observableKind:"map",debugObjectName:this.name_,type:lu,object:this,name:o,newValue:h}:null;y&&zr(this,A)},i.get=function(o){return this.has(o)?this.dehanceValue_(this.data_.get(o).get()):this.dehanceValue_(void 0)},i.dehanceValue_=function(o){return this.dehancer!==void 0?this.dehancer(o):o},i.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},i.values=function(){var o=this,h=this.keys();return t1({next:function(){var v=h.next(),y=v.done,A=v.value;return{done:y,value:y?void 0:o.get(A)}}})},i.entries=function(){var o=this,h=this.keys();return t1({next:function(){var v=h.next(),y=v.done,A=v.value;return{done:y,value:y?void 0:[A,o.get(A)]}}})},i[Symbol.iterator]=function(){return this.entries()},i.forEach=function(o,h){for(var g=yc(this),v;!(v=g()).done;){var y=v.value,A=y[0],S=y[1];o.call(h,S,A,this)}},i.merge=function(o){var h=this;return Ls(o)&&(o=new Map(o)),el(function(){al(o)?x_(o).forEach(function(g){return h.set(g,o[g])}):Array.isArray(o)?o.forEach(function(g){var v=g[0],y=g[1];return h.set(v,y)}):Nc(o)?(__(o)||pt(19,o),o.forEach(function(g,v){return h.set(v,g)})):o!=null&&pt(20,o)}),this},i.clear=function(){var o=this;el(function(){Sb(function(){for(var h=yc(o.keys()),g;!(g=h()).done;){var v=g.value;o.delete(v)}})})},i.replace=function(o){var h=this;return el(function(){for(var g=ex(o),v=new Map,y=!1,A=yc(h.data_.keys()),S;!(S=A()).done;){var O=S.value;if(!g.has(O)){var N=h.delete(O);if(N)y=!0;else{var q=h.data_.get(O);v.set(O,q)}}}for(var Z=yc(g.entries()),H;!(H=Z()).done;){var G=H.value,W=G[0],fe=G[1],ve=h.data_.has(W);if(h.set(W,fe),h.data_.has(W)){var pe=h.data_.get(W);v.set(W,pe),ve||(y=!0)}}if(!y)if(h.data_.size!==v.size)h.keysAtom_.reportChanged();else for(var ye=h.data_.keys(),te=v.keys(),ce=ye.next(),be=te.next();!ce.done;){if(ce.value!==be.value){h.keysAtom_.reportChanged();break}ce=ye.next(),be=te.next()}h.data_=v}),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.observe_=function(o,h){return Xd(this,o)},i.intercept_=function(o){return Qd(this,o)},Dc(r,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])})(),Ls=Ns("ObservableMap",Ib);function t1(r){return r[Symbol.toStringTag]="MapIterator",T0(r)}function ex(r){if(Nc(r)||Ls(r))return r;if(Array.isArray(r))return new Map(r);if(al(r)){var i=new Map;for(var s in r)i.set(s,r[s]);return i}else return pt(21,r)}var tx={},Vb=(function(){function r(s,o,h){var g=this;o===void 0&&(o=Cs),h===void 0&&(h="ObservableSet"),this.name_=void 0,this[Xe]=tx,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,Ur(Set)||pt(22),this.enhancer_=function(v,y){return o(v,y,h)},su(function(){g.atom_=db(g.name_),s&&g.replace(s)})}var i=r.prototype;return i.dehanceValue_=function(o){return this.dehancer!==void 0?this.dehancer(o):o},i.clear=function(){var o=this;el(function(){Sb(function(){for(var h=yc(o.data_.values()),g;!(g=h()).done;){var v=g.value;o.delete(v)}})})},i.forEach=function(o,h){for(var g=yc(this),v;!(v=g()).done;){var y=v.value;o.call(h,y,y,this)}},i.add=function(o){var h=this;if(this.atom_,or(this)){var g=cr(this,{type:lu,object:this,newValue:o});if(!g)return this;o=g.newValue}if(!this.has(o)){el(function(){h.data_.add(h.enhancer_(o,void 0)),h.atom_.reportChanged()});var v=!1,y=Br(this),A=y||v?{observableKind:"set",debugObjectName:this.name_,type:lu,object:this,newValue:o}:null;y&&zr(this,A)}return this},i.delete=function(o){var h=this;if(or(this)){var g=cr(this,{type:qg,object:this,oldValue:o});if(!g)return!1}if(this.has(o)){var v=!1,y=Br(this),A=y||v?{observableKind:"set",debugObjectName:this.name_,type:qg,object:this,oldValue:o}:null;return el(function(){h.atom_.reportChanged(),h.data_.delete(o)}),y&&zr(this,A),!0}return!1},i.has=function(o){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(o))},i.entries=function(){var o=this.values();return n1({next:function(){var g=o.next(),v=g.value,y=g.done;return y?{value:void 0,done:y}:{value:[v,v],done:y}}})},i.keys=function(){return this.values()},i.values=function(){this.atom_.reportObserved();var o=this,h=this.data_.values();return n1({next:function(){var v=h.next(),y=v.value,A=v.done;return A?{value:void 0,done:A}:{value:o.dehanceValue_(y),done:A}}})},i.intersection=function(o){if($i(o)&&!bi(o))return o.intersection(this);var h=new Set(this);return h.intersection(o)},i.union=function(o){if($i(o)&&!bi(o))return o.union(this);var h=new Set(this);return h.union(o)},i.difference=function(o){return new Set(this).difference(o)},i.symmetricDifference=function(o){if($i(o)&&!bi(o))return o.symmetricDifference(this);var h=new Set(this);return h.symmetricDifference(o)},i.isSubsetOf=function(o){return new Set(this).isSubsetOf(o)},i.isSupersetOf=function(o){return new Set(this).isSupersetOf(o)},i.isDisjointFrom=function(o){if($i(o)&&!bi(o))return o.isDisjointFrom(this);var h=new Set(this);return h.isDisjointFrom(o)},i.replace=function(o){var h=this;return bi(o)&&(o=new Set(o)),el(function(){Array.isArray(o)?(h.clear(),o.forEach(function(g){return h.add(g)})):$i(o)?(h.clear(),o.forEach(function(g){return h.add(g)})):o!=null&&pt("Cannot initialize set from "+o)}),this},i.observe_=function(o,h){return Xd(this,o)},i.intercept_=function(o){return Qd(this,o)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[Symbol.iterator]=function(){return this.values()},Dc(r,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])})(),bi=Ns("ObservableSet",Vb);function n1(r){return r[Symbol.toStringTag]="SetIterator",T0(r)}var a1=Object.create(null),r1="remove",Qb=(function(){function r(s,o,h,g){o===void 0&&(o=new Map),g===void 0&&(g=F_),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_=g,this.keysAtom_=new uu("ObservableObject.keys"),this.isPlainObject_=al(this.target_)}var i=r.prototype;return i.getObservablePropValue_=function(o){return this.values_.get(o).get()},i.setObservablePropValue_=function(o,h){var g=this.values_.get(o);if(g instanceof jr)return g.set(h),!0;if(or(this)){var v=cr(this,{type:xi,object:this.proxy_||this.target_,name:o,newValue:h});if(!v)return null;h=v.newValue}if(h=g.prepareNewValue_(h),h!==xe.UNCHANGED){var y=Br(this),A=!1,S=y||A?{type:xi,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:g.value_,name:o,newValue:h}:null;g.setNewValue_(h),y&&zr(this,S)}return!0},i.get_=function(o){return xe.trackingDerivation&&!tl(this.target_,o)&&this.has_(o),this.target_[o]},i.set_=function(o,h,g){return g===void 0&&(g=!1),tl(this.target_,o)?this.values_.has(o)?this.setObservablePropValue_(o,h):g?Reflect.set(this.target_,o,h):(this.target_[o]=h,!0):this.extend_(o,{value:h,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,g)},i.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 ws(o in this.target_,Fg,"ObservableObject.key?",!1),this.pendingKeys_.set(o,h)),h.get()},i.make_=function(o,h){if(h===!0&&(h=this.defaultAnnotation_),h!==!1){if(!(o in this.target_)){var g;if((g=this.target_[yi])!=null&&g[o])return;pt(1,h.annotationType_,this.name_+"."+o.toString())}for(var v=this.target_;v&&v!==Jg;){var y=Bg(v,o);if(y){var A=h.make_(this,o,y,v);if(A===0)return;if(A===1)break}v=Object.getPrototypeOf(v)}l1(this,h,o)}},i.extend_=function(o,h,g,v){if(v===void 0&&(v=!1),g===!0&&(g=this.defaultAnnotation_),g===!1)return this.defineProperty_(o,h,v);var y=g.extend_(this,o,h,v);return y&&l1(this,g,o),y},i.defineProperty_=function(o,h,g){g===void 0&&(g=!1),this.keysAtom_;try{fr();var v=this.delete_(o);if(!v)return v;if(or(this)){var y=cr(this,{object:this.proxy_||this.target_,name:o,type:lu,newValue:h.value});if(!y)return null;var A=y.newValue;h.value!==A&&(h=Ts({},h,{value:A}))}if(g){if(!Reflect.defineProperty(this.target_,o,h))return!1}else Ai(this.target_,o,h);this.notifyPropertyAddition_(o,h.value)}finally{dr()}return!0},i.defineObservableProperty_=function(o,h,g,v){v===void 0&&(v=!1),this.keysAtom_;try{fr();var y=this.delete_(o);if(!y)return y;if(or(this)){var A=cr(this,{object:this.proxy_||this.target_,name:o,type:lu,newValue:h});if(!A)return null;h=A.newValue}var S=i1(o),O={configurable:xe.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:S.get,set:S.set};if(v){if(!Reflect.defineProperty(this.target_,o,O))return!1}else Ai(this.target_,o,O);var N=new ws(h,g,"ObservableObject.key",!1);this.values_.set(o,N),this.notifyPropertyAddition_(o,N.value_)}finally{dr()}return!0},i.defineComputedProperty_=function(o,h,g){g===void 0&&(g=!1),this.keysAtom_;try{fr();var v=this.delete_(o);if(!v)return v;if(or(this)){var y=cr(this,{object:this.proxy_||this.target_,name:o,type:lu,newValue:void 0});if(!y)return null}h.name||(h.name="ObservableObject.key"),h.context=this.proxy_||this.target_;var A=i1(o),S={configurable:xe.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:A.get,set:A.set};if(g){if(!Reflect.defineProperty(this.target_,o,S))return!1}else Ai(this.target_,o,S);this.values_.set(o,new jr(h)),this.notifyPropertyAddition_(o,void 0)}finally{dr()}return!0},i.delete_=function(o,h){if(h===void 0&&(h=!1),this.keysAtom_,!tl(this.target_,o))return!0;if(or(this)){var g=cr(this,{object:this.proxy_||this.target_,name:o,type:r1});if(!g)return null}try{var v;fr();var y=Br(this),A=!1,S=this.values_.get(o),O=void 0;if(!S&&(y||A)){var N;O=(N=Bg(this.target_,o))==null?void 0:N.value}if(h){if(!Reflect.deleteProperty(this.target_,o))return!1}else delete this.target_[o];if(S&&(this.values_.delete(o),S instanceof ws&&(O=S.value_),Cb(S)),this.keysAtom_.reportChanged(),(v=this.pendingKeys_)==null||(v=v.get(o))==null||v.set(o in this.target_),y||A){var q={type:r1,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:O,name:o};y&&zr(this,q)}}finally{dr()}return!0},i.observe_=function(o,h){return Xd(this,o)},i.intercept_=function(o){return Qd(this,o)},i.notifyPropertyAddition_=function(o,h){var g,v=Br(this),y=!1;if(v||y){var A=v||y?{type:lu,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:o,newValue:h}:null;v&&zr(this,A)}(g=this.pendingKeys_)==null||(g=g.get(o))==null||g.set(!0),this.keysAtom_.reportChanged()},i.ownKeys_=function(){return this.keysAtom_.reportObserved(),Mc(this.target_)},i.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},r})();function Bs(r,i){var s;if(tl(r,Xe))return r;var o=(s=i?.name)!=null?s:"ObservableObject",h=new Qb(r,new Map,String(o),o2(i));return qd(r,Xe,h),r}var nx=Ns("ObservableObjectAdministration",Qb);function i1(r){return a1[r]||(a1[r]={get:function(){return this[Xe].getObservablePropValue_(r)},set:function(s){return this[Xe].setObservablePropValue_(r,s)}})}function iv(r){return Wg(r)?nx(r[Xe]):!1}function l1(r,i,s){var o;(o=r.target_[yi])==null||delete o[s]}var ax=Zb(0),rx=(function(){var r=!1,i={};return Object.defineProperty(i,"0",{set:function(){r=!0}}),Object.create(i)[0]=1,r===!1})(),wp=0,Xb=function(){};function ix(r,i){Object.setPrototypeOf?Object.setPrototypeOf(r.prototype,i):r.prototype.__proto__!==void 0?r.prototype.__proto__=i:r.prototype=i}ix(Xb,Array.prototype);var O0=(function(r){function i(o,h,g,v){var y;return g===void 0&&(g="ObservableArray"),v===void 0&&(v=!1),y=r.call(this)||this,su(function(){var A=new w0(g,h,v,!0);A.proxy_=y,sb(y,Xe,A),o&&o.length&&y.spliceWithArray(0,0,o),rx&&Object.defineProperty(y,"0",ax)}),y}fb(i,r);var s=i.prototype;return s.concat=function(){this[Xe].atom_.reportObserved();for(var h=arguments.length,g=new Array(h),v=0;v<h;v++)g[v]=arguments[v];return Array.prototype.concat.apply(this.slice(),g.map(function(y){return rv(y)?y.slice():y}))},s[Symbol.iterator]=function(){var o=this,h=0;return T0({next:function(){return h<o.length?{value:o[h++],done:!1}:{done:!0,value:void 0}}})},Dc(i,[{key:"length",get:function(){return this[Xe].getArrayLength_()},set:function(h){this[Xe].setArrayLength_(h)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])})(Xb);Object.entries(Gg).forEach(function(r){var i=r[0],s=r[1];i!=="concat"&&qd(O0.prototype,i,s)});function Zb(r){return{enumerable:!1,configurable:!0,get:function(){return this[Xe].get_(r)},set:function(s){this[Xe].set_(r,s)}}}function lx(r){Ai(O0.prototype,""+r,Zb(r))}function Kb(r){if(r>wp){for(var i=wp;i<r+100;i++)lx(i);wp=r}}Kb(1e3);function ux(r,i,s){return new O0(r,i,s)}function Yg(r,i){if(typeof r=="object"&&r!==null){if(rv(r))return i!==void 0&&pt(23),r[Xe].atom_;if(bi(r))return r.atom_;if(Ls(r)){if(i===void 0)return r.keysAtom_;var s=r.data_.get(i)||r.hasMap_.get(i);return s||pt(25,i,h0(r)),s}if(iv(r)){if(!i)return pt(26);var o=r[Xe].values_.get(i);return o||pt(27,i,h0(r)),o}if(S0(r)||av(r)||Hg(r))return r}else if(Ur(r)&&Hg(r[Xe]))return r[Xe];pt(28)}function sx(r,i){if(r||pt(29),S0(r)||av(r)||Hg(r)||Ls(r)||bi(r))return r;if(r[Xe])return r[Xe];pt(24,r)}function h0(r,i){var s;if(i!==void 0)s=Yg(r,i);else{if(wc(r))return r.name;iv(r)||Ls(r)||bi(r)?s=sx(r):s=Yg(r)}return s.name_}function su(r){var i=Ds(),s=tv(!0);fr();try{return r()}finally{dr(),nv(s),nl(i)}}var u1=Jg.toString;function Pb(r,i,s){return s===void 0&&(s=-1),m0(r,i,s)}function m0(r,i,s,o,h){if(r===i)return r!==0||1/r===1/i;if(r==null||i==null)return!1;if(r!==r)return i!==i;var g=typeof r;if(g!=="function"&&g!=="object"&&typeof i!="object")return!1;var v=u1.call(r);if(v!==u1.call(i))return!1;switch(v){case"[object RegExp]":case"[object String]":return""+r==""+i;case"[object Number]":return+r!=+r?+i!=+i:+r==0?1/+r===1/i:+r==+i;case"[object Date]":case"[object Boolean]":return+r==+i;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(r)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":s>=0&&s++;break}r=s1(r),i=s1(i);var y=v==="[object Array]";if(!y){if(typeof r!="object"||typeof i!="object")return!1;var A=r.constructor,S=i.constructor;if(A!==S&&!(Ur(A)&&A instanceof A&&Ur(S)&&S instanceof S)&&"constructor"in r&&"constructor"in i)return!1}if(s===0)return!1;s<0&&(s=-1),o=o||[],h=h||[];for(var O=o.length;O--;)if(o[O]===r)return h[O]===i;if(o.push(r),h.push(i),y){if(O=r.length,O!==i.length)return!1;for(;O--;)if(!m0(r[O],i[O],s-1,o,h))return!1}else{var N=Object.keys(r),q=N.length;if(Object.keys(i).length!==q)return!1;for(var Z=0;Z<q;Z++){var H=N[Z];if(!(tl(i,H)&&m0(r[H],i[H],s-1,o,h)))return!1}}return o.pop(),h.pop(),!0}function s1(r){return rv(r)?r.slice():Nc(r)||Ls(r)||$i(r)||bi(r)?Array.from(r.entries()):r}var o1,ox=((o1=Pg().Iterator)==null?void 0:o1.prototype)||{};function T0(r){return r[Symbol.iterator]=cx,Object.assign(Object.create(ox),r)}function cx(){return this}["Symbol","Map","Set"].forEach(function(r){var i=Pg();typeof i[r]>"u"&&pt("MobX requires global '"+r+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:O2,extras:{getDebugName:h0},$mobx:Xe});if(!le.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!K2)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var fx=D1();function dx(r){r()}function hx(r){r||(r=dx),G2({reactionScheduler:r})}function mx(r){return q2(r)}var gx=1e4,vx=1e4,px=(function(){function r(i){var s=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:i}),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=gx),clearTimeout(s.sweepTimeout),s.sweepTimeout=void 0;var h=Date.now();s.registrations.forEach(function(g,v){h-g.registeredAt>=o&&(s.finalize(g.value),s.registrations.delete(v))}),s.registrations.size>0&&s.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){s.sweep(0)}})}return Object.defineProperty(r.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(i,s,o){this.registrations.set(o,{value:s,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(r.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(i){this.registrations.delete(i)}}),Object.defineProperty(r.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,vx))}}),r})(),bx=typeof FinalizationRegistry<"u"?FinalizationRegistry:px,Gd=new bx(function(r){var i;(i=r.reaction)===null||i===void 0||i.dispose(),r.reaction=null}),Op={exports:{}},Tp={};/**
 * @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 c1;function yx(){if(c1)return Tp;c1=1;var r=Qg();function i(N,q){return N===q&&(N!==0||1/N===1/q)||N!==N&&q!==q}var s=typeof Object.is=="function"?Object.is:i,o=r.useState,h=r.useEffect,g=r.useLayoutEffect,v=r.useDebugValue;function y(N,q){var Z=q(),H=o({inst:{value:Z,getSnapshot:q}}),G=H[0].inst,W=H[1];return g(function(){G.value=Z,G.getSnapshot=q,A(G)&&W({inst:G})},[N,Z,q]),h(function(){return A(G)&&W({inst:G}),N(function(){A(G)&&W({inst:G})})},[N]),v(Z),Z}function A(N){var q=N.getSnapshot;N=N.value;try{var Z=q();return!s(N,Z)}catch{return!0}}function S(N,q){return q()}var O=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?S:y;return Tp.useSyncExternalStore=r.useSyncExternalStore!==void 0?r.useSyncExternalStore:O,Tp}var f1;function Ax(){return f1||(f1=1,Op.exports=yx()),Op.exports}var _x=Ax();function d1(r){r.reaction=new Si("observer".concat(r.name),function(){var i;r.stateVersion=Symbol(),(i=r.onStoreChange)===null||i===void 0||i.call(r)})}function xx(r,i){i===void 0&&(i="observed");var s=J.useRef(null);if(!s.current){var o={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:i,subscribe:function(y){return Gd.unregister(o),o.onStoreChange=y,o.reaction||(d1(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||(d1(h),Gd.register(s,h,h)),J.useDebugValue(h.reaction,mx),_x.useSyncExternalStore(h.subscribe,h.getSnapshot,h.getSnapshot);var g,v;if(h.reaction.track(function(){try{g=r()}catch(y){v=y}}),v)throw v;return g}var Cp,Rp,Jb=typeof Symbol=="function"&&Symbol.for,Sx=(Rp=(Cp=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Cp===void 0?void 0:Cp.configurable)!==null&&Rp!==void 0?Rp:!1,h1=Jb?Symbol.for("react.forward_ref"):typeof le.forwardRef=="function"&&le.forwardRef(function(r){return null}).$$typeof,m1=Jb?Symbol.for("react.memo"):typeof le.memo=="function"&&le.memo(function(r){return null}).$$typeof;function Ex(r,i){var s;if(m1&&r.$$typeof===m1)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=r,g=r.displayName||r.name;if(h1&&r.$$typeof===h1&&(o=!0,h=r.render,typeof h!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var v=function(y,A){return xx(function(){return h(y,A)},g)};return v.displayName=r.displayName,Sx&&Object.defineProperty(v,"name",{value:r.name,writable:!0,configurable:!0}),r.contextTypes&&(v.contextTypes=r.contextTypes),o&&(v=le.forwardRef(v)),v=le.memo(v),wx(r,v),v}var Mx={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function wx(r,i){Object.keys(r).forEach(function(s){Mx[s]||Object.defineProperty(i,s,Object.getOwnPropertyDescriptor(r,s))})}var Np;hx(fx.unstable_batchedUpdates);Np=Gd.finalizeAllImmediately;function Ox(r,i){if(g1(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var s=Object.keys(r),o=Object.keys(i);if(s.length!==o.length)return!1;for(var h=0;h<s.length;h++)if(!Object.hasOwnProperty.call(i,s[h])||!g1(r[s[h]],i[s[h]]))return!1;return!0}function g1(r,i){return r===i?r!==0||1/r===1/i:r!==r&&i!==i}var v1=Symbol("patchMixins"),Wb=Symbol("patchedDefinition");function Tx(r,i){var s=r[v1]=r[v1]||{},o=s[i]=s[i]||{};return o.locks=o.locks||0,o.methods=o.methods||[],o}function p1(r,i){for(var s=this,o=arguments.length,h=new Array(o>2?o-2:0),g=2;g<o;g++)h[g-2]=arguments[g];i.locks++;try{var v;return r!=null&&(v=r.apply(this,h)),v}finally{i.locks--,i.locks===0&&i.methods.forEach(function(y){y.apply(s,h)})}}function b1(r,i){var s=function(){for(var h=arguments.length,g=new Array(h),v=0;v<h;v++)g[v]=arguments[v];p1.call.apply(p1,[this,r,i].concat(g))};return s}function Cx(r,i,s){var o=Tx(r,i);o.methods.indexOf(s)<0&&o.methods.push(s);var h=Object.getOwnPropertyDescriptor(r,i);if(!(h&&h[Wb])){var g=r[i],v=Fb(r,i,h?h.enumerable:void 0,o,g);Object.defineProperty(r,i,v)}}function Fb(r,i,s,o,h){var g,v=b1(h,o);return g={},g[Wb]=!0,g.get=function(){return v},g.set=function(A){if(this===r)v=b1(A,o);else{var S=Fb(this,i,s,o,A);Object.defineProperty(this,i,S)}},g.configurable=!0,g.enumerable=s,g}var y1=Symbol("ObserverAdministration"),A1=Symbol("isMobXReactObserver");function g0(r){var i;return(i=r[y1])!=null?i:r[y1]={reaction:null,mounted:!1,reactionInvalidatedBeforeMount:!1,forceUpdate:null,name:v0(r.constructor),state:void 0,props:void 0,context:void 0}}function Rx(r){var i=r.prototype;if(r[A1]){var s=v0(r);throw new Error("The provided component class ("+s+") has already been declared as an observer component.")}else r[A1]=!0;if(i.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(r.__proto__!==le.PureComponent){if(!i.shouldComponentUpdate)i.shouldComponentUpdate=_1;else if(i.shouldComponentUpdate!==_1)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}var o=i.render;if(typeof o!="function"){var h=v0(r);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.")}i.render=function(){return Object.defineProperty(this,"render",{configurable:!1,writable:!1,value:Nx.call(this,o)}),this.render()};var g=i.componentDidMount;return i.componentDidMount=function(){var v=this,y=g0(this);return y.mounted=!0,Gd.unregister(this),y.forceUpdate=function(){return v.forceUpdate()},(!y.reaction||y.reactionInvalidatedBeforeMount)&&y.forceUpdate(),g?.apply(this,arguments)},Cx(i,"componentWillUnmount",function(){var v,y=g0(this);(v=y.reaction)==null||v.dispose(),y.reaction=null,y.forceUpdate=null,y.mounted=!1,y.reactionInvalidatedBeforeMount=!1}),r}function v0(r){return r.displayName||r.name||"<component>"}function Nx(r){var i=r.bind(this),s=g0(this);function o(){s.reaction||(s.reaction=Dx(s),s.mounted||Gd.register(this,s,this));var h=void 0,g=void 0;if(s.reaction.track(function(){try{g=b2(!1,i)}catch(v){h=v}}),h)throw h;return g}return o}function Dx(r){return new Si(r.name+".render()",function(){if(!r.mounted){r.reactionInvalidatedBeforeMount=!0;return}try{r.forceUpdate==null||r.forceUpdate()}catch{var i;(i=r.reaction)==null||i.dispose(),r.reaction=null}})}function _1(r,i){return this.state!==i?!0:!Ox(this.props,r)}function il(r,i){return r.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(le.Component,r)||Object.prototype.isPrototypeOf.call(le.PureComponent,r)?Rx(r):Ex(r)}J.version.split(".")[0];if(!le.Component)throw new Error("mobx-react requires React to be available");if(!Dn)throw new Error("mobx-react requires mobx to be available");var Ld={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 Lx=Ld.exports,x1;function Bx(){return x1||(x1=1,(function(r,i){(function(){var s,o="4.17.21",h=200,g="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",y="Invalid `variable` option passed into `_.template`",A="__lodash_hash_undefined__",S=500,O="__lodash_placeholder__",N=1,q=2,Z=4,H=1,G=2,W=1,fe=2,ve=4,pe=8,ye=16,te=32,ce=64,be=128,ee=256,Me=512,Ne=30,Ae="...",De=800,qe=16,ge=1,ne=2,R=3,X=1/0,B=9007199254740991,he=17976931348623157e292,w=NaN,Q=4294967295,oe=Q-1,F=Q>>>1,me=[["ary",be],["bind",W],["bindKey",fe],["curry",pe],["curryRight",ye],["flip",Me],["partial",te],["partialRight",ce],["rearg",ee]],we="[object Arguments]",_e="[object Array]",Ye="[object AsyncFunction]",je="[object Boolean]",ot="[object Date]",Fe="[object DOMException]",Mt="[object Error]",wt="[object Function]",hn="[object GeneratorFunction]",Ut="[object Map]",xn="[object Number]",Ei="[object Null]",bt="[object Object]",rn="[object Promise]",Qt="[object Proxy]",aa="[object RegExp]",Ot="[object Set]",wn="[object String]",Da="[object Symbol]",La="[object Undefined]",Nt="[object WeakMap]",hr="[object WeakSet]",$t="[object ArrayBuffer]",mn="[object DataView]",Sn="[object Float32Array]",ou="[object Float64Array]",cu="[object Int8Array]",fu="[object Int16Array]",Pa="[object Int32Array]",Xt="[object Uint8Array]",Ba="[object Uint8ClampedArray]",Hr="[object Uint16Array]",mr="[object Uint32Array]",Lc=/\b__p \+= '';/g,On=/\b(__p \+=) '' \+/g,zs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Us=/&(?:amp|lt|gt|quot|#39);/g,ll=/[&<>"']/g,lv=RegExp(Us.source),Zd=RegExp(ll.source),Kd=/<%-([\s\S]+?)%>/g,Bc=/<%([\s\S]+?)%>/g,js=/<%=([\s\S]+?)%>/g,Pd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uv=/^\w*$/,Gr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gn=/[\\^$.*+?()[\]{}|]/g,Gn=RegExp(gn.source),qr=/^\s+/,zc=/\s/,sv=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ov=/\{\n\/\* \[wrapped with (.+)\] \*/,Jd=/,? & /,du=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Uc=/[()=,{}\[\]\/\s]/,ul=/\\(\\)?/g,sl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ol=/\w*$/,cl=/^[-+]0x[0-9a-f]+$/i,vn=/^0b[01]+$/i,Wd=/^\[object .+?Constructor\]$/,Fd=/^0o[0-7]+$/i,Mi=/^(?:0|[1-9]\d*)$/,fl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ks=/($^)/,$d=/['\n\r\u2028\u2029\\]/g,hu="\\ud800-\\udfff",cv="\\u0300-\\u036f",Hs="\\ufe20-\\ufe2f",Gs="\\u20d0-\\u20ff",Ja=cv+Hs+Gs,qs="\\u2700-\\u27bf",jc="a-z\\xdf-\\xf6\\xf8-\\xff",dl="\\xac\\xb1\\xd7\\xf7",kc="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Hc="\\u2000-\\u206f",fv=" \\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",Gc="A-Z\\xc0-\\xd6\\xd8-\\xde",ra="\\ufe0e\\ufe0f",qc=dl+kc+Hc+fv,Yc="['’]",Ys="["+hu+"]",Ic="["+qc+"]",wi="["+Ja+"]",eh="\\d+",va="["+qs+"]",Is="["+jc+"]",Vc="[^"+hu+qc+eh+qs+jc+Gc+"]",mu="\\ud83c[\\udffb-\\udfff]",hl="(?:"+wi+"|"+mu+")",Qc="[^"+hu+"]",Vs="(?:\\ud83c[\\udde6-\\uddff]){2}",Yr="[\\ud800-\\udbff][\\udc00-\\udfff]",ml="["+Gc+"]",Xc="\\u200d",Zc="(?:"+Is+"|"+Vc+")",Kc="(?:"+ml+"|"+Vc+")",th="(?:"+Yc+"(?:d|ll|m|re|s|t|ve))?",nh="(?:"+Yc+"(?:D|LL|M|RE|S|T|VE))?",gu=hl+"?",Qs="["+ra+"]?",Pc="(?:"+Xc+"(?:"+[Qc,Vs,Yr].join("|")+")"+Qs+gu+")*",gl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jc=Qs+gu+Pc,Wc="(?:"+[va,Vs,Yr].join("|")+")"+Jc,ah="(?:"+[Qc+wi+"?",wi,Vs,Yr,Ys].join("|")+")",vu=RegExp(Yc,"g"),gr=RegExp(wi,"g"),pu=RegExp(mu+"(?="+mu+")|"+ah+Jc,"g"),bu=RegExp([ml+"?"+Is+"+"+th+"(?="+[Ic,ml,"$"].join("|")+")",Kc+"+"+nh+"(?="+[Ic,ml+Zc,"$"].join("|")+")",ml+"?"+Zc+"+"+th,ml+"+"+nh,vl,gl,eh,Wc].join("|"),"g"),Ir=RegExp("["+Xc+hu+Ja+ra+"]"),Fc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Xs=["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"],rh=-1,Tt={};Tt[Sn]=Tt[ou]=Tt[cu]=Tt[fu]=Tt[Pa]=Tt[Xt]=Tt[Ba]=Tt[Hr]=Tt[mr]=!0,Tt[we]=Tt[_e]=Tt[$t]=Tt[je]=Tt[mn]=Tt[ot]=Tt[Mt]=Tt[wt]=Tt[Ut]=Tt[xn]=Tt[bt]=Tt[aa]=Tt[Ot]=Tt[wn]=Tt[Nt]=!1;var _t={};_t[we]=_t[_e]=_t[$t]=_t[mn]=_t[je]=_t[ot]=_t[Sn]=_t[ou]=_t[cu]=_t[fu]=_t[Pa]=_t[Ut]=_t[xn]=_t[bt]=_t[aa]=_t[Ot]=_t[wn]=_t[Da]=_t[Xt]=_t[Ba]=_t[Hr]=_t[mr]=!0,_t[Mt]=_t[wt]=_t[Nt]=!1;var ih={À:"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"},qn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Oi={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Zs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},yu=parseFloat,dv=parseInt,Ks=typeof pg=="object"&&pg&&pg.Object===Object&&pg,$c=typeof self=="object"&&self&&self.Object===Object&&self,en=Ks||$c||Function("return this")(),pl=i&&!i.nodeType&&i,Vr=pl&&!0&&r&&!r.nodeType&&r,lh=Vr&&Vr.exports===pl,ef=lh&&Ks.process,pa=(function(){try{var z=Vr&&Vr.require&&Vr.require("util").types;return z||ef&&ef.binding&&ef.binding("util")}catch{}})(),Ps=pa&&pa.isArrayBuffer,uh=pa&&pa.isDate,sh=pa&&pa.isMap,oh=pa&&pa.isRegExp,ch=pa&&pa.isSet,fh=pa&&pa.isTypedArray;function Yn(z,$,P){switch(P.length){case 0:return z.call($);case 1:return z.call($,P[0]);case 2:return z.call($,P[0],P[1]);case 3:return z.call($,P[0],P[1],P[2])}return z.apply($,P)}function hv(z,$,P,Se){for(var Ge=-1,ft=z==null?0:z.length;++Ge<ft;){var tn=z[Ge];$(Se,tn,P(tn),z)}return Se}function ba(z,$){for(var P=-1,Se=z==null?0:z.length;++P<Se&&$(z[P],P,z)!==!1;);return z}function mv(z,$){for(var P=z==null?0:z.length;P--&&$(z[P],P,z)!==!1;);return z}function dh(z,$){for(var P=-1,Se=z==null?0:z.length;++P<Se;)if(!$(z[P],P,z))return!1;return!0}function Wa(z,$){for(var P=-1,Se=z==null?0:z.length,Ge=0,ft=[];++P<Se;){var tn=z[P];$(tn,P,z)&&(ft[Ge++]=tn)}return ft}function Js(z,$){var P=z==null?0:z.length;return!!P&&bl(z,$,0)>-1}function tf(z,$,P){for(var Se=-1,Ge=z==null?0:z.length;++Se<Ge;)if(P($,z[Se]))return!0;return!1}function Ht(z,$){for(var P=-1,Se=z==null?0:z.length,Ge=Array(Se);++P<Se;)Ge[P]=$(z[P],P,z);return Ge}function vr(z,$){for(var P=-1,Se=$.length,Ge=z.length;++P<Se;)z[Ge+P]=$[P];return z}function nf(z,$,P,Se){var Ge=-1,ft=z==null?0:z.length;for(Se&&ft&&(P=z[++Ge]);++Ge<ft;)P=$(P,z[Ge],Ge,z);return P}function gv(z,$,P,Se){var Ge=z==null?0:z.length;for(Se&&Ge&&(P=z[--Ge]);Ge--;)P=$(P,z[Ge],Ge,z);return P}function af(z,$){for(var P=-1,Se=z==null?0:z.length;++P<Se;)if($(z[P],P,z))return!0;return!1}var vv=Fs("length");function pv(z){return z.split("")}function bv(z){return z.match(du)||[]}function hh(z,$,P){var Se;return P(z,function(Ge,ft,tn){if($(Ge,ft,tn))return Se=ft,!1}),Se}function Ws(z,$,P,Se){for(var Ge=z.length,ft=P+(Se?1:-1);Se?ft--:++ft<Ge;)if($(z[ft],ft,z))return ft;return-1}function bl(z,$,P){return $===$?xv(z,$,P):Ws(z,yl,P)}function rf(z,$,P,Se){for(var Ge=P-1,ft=z.length;++Ge<ft;)if(Se(z[Ge],$))return Ge;return-1}function yl(z){return z!==z}function mh(z,$){var P=z==null?0:z.length;return P?eo(z,$)/P:w}function Fs(z){return function($){return $==null?s:$[z]}}function $s(z){return function($){return z==null?s:z[$]}}function lf(z,$,P,Se,Ge){return Ge(z,function(ft,tn,dt){P=Se?(Se=!1,ft):$(P,ft,tn,dt)}),P}function gh(z,$){var P=z.length;for(z.sort($);P--;)z[P]=z[P].value;return z}function eo(z,$){for(var P,Se=-1,Ge=z.length;++Se<Ge;){var ft=$(z[Se]);ft!==s&&(P=P===s?ft:P+ft)}return P}function Qr(z,$){for(var P=-1,Se=Array(z);++P<z;)Se[P]=$(P);return Se}function yv(z,$){return Ht($,function(P){return[P,z[P]]})}function vh(z){return z&&z.slice(0,sf(z)+1).replace(qr,"")}function ia(z){return function($){return z($)}}function to(z,$){return Ht($,function(P){return z[P]})}function Al(z,$){return z.has($)}function _l(z,$){for(var P=-1,Se=z.length;++P<Se&&bl($,z[P],0)>-1;);return P}function xl(z,$){for(var P=z.length;P--&&bl($,z[P],0)>-1;);return P}function Av(z,$){for(var P=z.length,Se=0;P--;)z[P]===$&&++Se;return Se}var no=$s(ih),ph=$s(qn);function bh(z){return"\\"+Zs[z]}function uf(z,$){return z==null?s:z[$]}function Xr(z){return Ir.test(z)}function yh(z){return Fc.test(z)}function Ah(z){for(var $,P=[];!($=z.next()).done;)P.push($.value);return P}function ao(z){var $=-1,P=Array(z.size);return z.forEach(function(Se,Ge){P[++$]=[Ge,Se]}),P}function _h(z,$){return function(P){return z($(P))}}function Zr(z,$){for(var P=-1,Se=z.length,Ge=0,ft=[];++P<Se;){var tn=z[P];(tn===$||tn===O)&&(z[P]=O,ft[Ge++]=P)}return ft}function ro(z){var $=-1,P=Array(z.size);return z.forEach(function(Se){P[++$]=Se}),P}function _v(z){var $=-1,P=Array(z.size);return z.forEach(function(Se){P[++$]=[Se,Se]}),P}function xv(z,$,P){for(var Se=P-1,Ge=z.length;++Se<Ge;)if(z[Se]===$)return Se;return-1}function la(z,$,P){for(var Se=P+1;Se--;)if(z[Se]===$)return Se;return Se}function Fa(z){return Xr(z)?Sh(z):vv(z)}function ya(z){return Xr(z)?of(z):pv(z)}function sf(z){for(var $=z.length;$--&&zc.test(z.charAt($)););return $}var xh=$s(Oi);function Sh(z){for(var $=pu.lastIndex=0;pu.test(z);)++$;return $}function of(z){return z.match(pu)||[]}function Sv(z){return z.match(bu)||[]}var Sl=(function z($){$=$==null?en:Kr.defaults(en.Object(),$,Kr.pick(en,Xs));var P=$.Array,Se=$.Date,Ge=$.Error,ft=$.Function,tn=$.Math,dt=$.Object,io=$.RegExp,Eh=$.String,ua=$.TypeError,lo=P.prototype,Ev=ft.prototype,El=dt.prototype,Au=$["__core-js_shared__"],_u=Ev.toString,gt=El.hasOwnProperty,za=0,cf=(function(){var a=/[^.]+$/.exec(Au&&Au.keys&&Au.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})(),Ln=El.toString,Aa=_u.call(dt),Ml=en._,ff=io("^"+_u.call(gt).replace(gn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ti=lh?$.Buffer:s,Ua=$.Symbol,wl=$.Uint8Array,Ci=Ti?Ti.allocUnsafe:s,xu=_h(dt.getPrototypeOf,dt),Su=dt.create,Ri=El.propertyIsEnumerable,uo=lo.splice,In=Ua?Ua.isConcatSpreadable:s,Ni=Ua?Ua.iterator:s,Bn=Ua?Ua.toStringTag:s,Eu=(function(){try{var a=ai(dt,"defineProperty");return a({},"",{}),a}catch{}})(),so=$.clearTimeout!==en.clearTimeout&&$.clearTimeout,Di=Se&&Se.now!==en.Date.now&&Se.now,df=$.setTimeout!==en.setTimeout&&$.setTimeout,Ol=tn.ceil,pr=tn.floor,Pr=dt.getOwnPropertySymbols,oo=Ti?Ti.isBuffer:s,Mu=$.isFinite,_a=lo.join,xa=_h(dt.keys,dt),jt=tn.max,Gt=tn.min,br=Se.now,Li=$.parseInt,hf=tn.random,mf=lo.reverse,wu=ai($,"DataView"),ln=ai($,"Map"),qt=ai($,"Promise"),it=ai($,"Set"),ja=ai($,"WeakMap"),Vn=ai(dt,"create"),Tl=ja&&new ja,Sa={},Mh=Or(wu),wh=Or(ln),Ou=Or(qt),Tu=Or(it),Oh=Or(ja),Jr=Ua?Ua.prototype:s,Bi=Jr?Jr.valueOf:s,Wr=Jr?Jr.toString:s;function _(a){if(Zt(a)&&!Qe(a)&&!(a instanceof $e)){if(a instanceof Qn)return a;if(gt.call(a,"__wrapped__"))return sn(a)}return new Qn(a)}var sa=(function(){function a(){}return function(l){if(!It(l))return{};if(Su)return Su(l);a.prototype=l;var f=new a;return a.prototype=s,f}})();function Ea(){}function Qn(a,l){this.__wrapped__=a,this.__actions__=[],this.__chain__=!!l,this.__index__=0,this.__values__=s}_.templateSettings={escape:Kd,evaluate:Bc,interpolate:js,variable:"",imports:{_}},_.prototype=Ea.prototype,_.prototype.constructor=_,Qn.prototype=sa(Ea.prototype),Qn.prototype.constructor=Qn;function $e(a){this.__wrapped__=a,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function Cu(){var a=new $e(this.__wrapped__);return a.__actions__=un(this.__actions__),a.__dir__=this.__dir__,a.__filtered__=this.__filtered__,a.__iteratees__=un(this.__iteratees__),a.__takeCount__=this.__takeCount__,a.__views__=un(this.__views__),a}function co(){if(this.__filtered__){var a=new $e(this);a.__dir__=-1,a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a}function zi(){var a=this.__wrapped__.value(),l=this.__dir__,f=Qe(a),m=l<0,b=f?a.length:0,E=lm(0,b,this.__views__),T=E.start,D=E.end,k=D-T,ie=m?D:T-1,se=this.__iteratees__,de=se.length,Ee=0,Le=Gt(k,this.__takeCount__);if(!f||!m&&b==k&&Le==k)return Xh(a,this.__actions__);var Ie=[];e:for(;k--&&Ee<Le;){ie+=l;for(var tt=-1,Ve=a[ie];++tt<de;){var st=se[tt],mt=st.iteratee,Va=st.type,ga=mt(Ve);if(Va==ne)Ve=ga;else if(!ga){if(Va==ge)continue e;break e}}Ie[Ee++]=Ve}return Ie}$e.prototype=sa(Ea.prototype),$e.prototype.constructor=$e;function Kt(a){var l=-1,f=a==null?0:a.length;for(this.clear();++l<f;){var m=a[l];this.set(m[0],m[1])}}function fo(){this.__data__=Vn?Vn(null):{},this.size=0}function Th(a){var l=this.has(a)&&delete this.__data__[a];return this.size-=l?1:0,l}function Mv(a){var l=this.__data__;if(Vn){var f=l[a];return f===A?s:f}return gt.call(l,a)?l[a]:s}function wv(a){var l=this.__data__;return Vn?l[a]!==s:gt.call(l,a)}function Ov(a,l){var f=this.__data__;return this.size+=this.has(a)?0:1,f[a]=Vn&&l===s?A:l,this}Kt.prototype.clear=fo,Kt.prototype.delete=Th,Kt.prototype.get=Mv,Kt.prototype.has=wv,Kt.prototype.set=Ov;function Dt(a){var l=-1,f=a==null?0:a.length;for(this.clear();++l<f;){var m=a[l];this.set(m[0],m[1])}}function gf(){this.__data__=[],this.size=0}function Ru(a){var l=this.__data__,f=Nl(l,a);if(f<0)return!1;var m=l.length-1;return f==m?l.pop():uo.call(l,f,1),--this.size,!0}function Nu(a){var l=this.__data__,f=Nl(l,a);return f<0?s:l[f][1]}function vf(a){return Nl(this.__data__,a)>-1}function Cl(a,l){var f=this.__data__,m=Nl(f,a);return m<0?(++this.size,f.push([a,l])):f[m][1]=l,this}Dt.prototype.clear=gf,Dt.prototype.delete=Ru,Dt.prototype.get=Nu,Dt.prototype.has=vf,Dt.prototype.set=Cl;function Xn(a){var l=-1,f=a==null?0:a.length;for(this.clear();++l<f;){var m=a[l];this.set(m[0],m[1])}}function Tv(){this.size=0,this.__data__={hash:new Kt,map:new(ln||Dt),string:new Kt}}function Ch(a){var l=jl(this,a).delete(a);return this.size-=l?1:0,l}function Cv(a){return jl(this,a).get(a)}function Rh(a){return jl(this,a).has(a)}function Ui(a,l){var f=jl(this,a),m=f.size;return f.set(a,l),this.size+=f.size==m?0:1,this}Xn.prototype.clear=Tv,Xn.prototype.delete=Ch,Xn.prototype.get=Cv,Xn.prototype.has=Rh,Xn.prototype.set=Ui;function yr(a){var l=-1,f=a==null?0:a.length;for(this.__data__=new Xn;++l<f;)this.add(a[l])}function ho(a){return this.__data__.set(a,A),this}function Nh(a){return this.__data__.has(a)}yr.prototype.add=yr.prototype.push=ho,yr.prototype.has=Nh;function zn(a){var l=this.__data__=new Dt(a);this.size=l.size}function Dh(){this.__data__=new Dt,this.size=0}function mo(a){var l=this.__data__,f=l.delete(a);return this.size=l.size,f}function pf(a){return this.__data__.get(a)}function Lh(a){return this.__data__.has(a)}function go(a,l){var f=this.__data__;if(f instanceof Dt){var m=f.__data__;if(!ln||m.length<h-1)return m.push([a,l]),this.size=++f.size,this;f=this.__data__=new Xn(m)}return f.set(a,l),this.size=f.size,this}zn.prototype.clear=Dh,zn.prototype.delete=mo,zn.prototype.get=pf,zn.prototype.has=Lh,zn.prototype.set=go;function bf(a,l){var f=Qe(a),m=!f&&Nr(a),b=!f&&!m&&hi(a),E=!f&&!m&&!b&&Wl(a),T=f||m||b||E,D=T?Qr(a.length,Eh):[],k=D.length;for(var ie in a)(l||gt.call(a,ie))&&!(T&&(ie=="length"||b&&(ie=="offset"||ie=="parent")||E&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||qa(ie,k)))&&D.push(ie);return D}function Rl(a){var l=a.length;return l?a[Mo(0,l-1)]:s}function Bh(a,l){return rs(un(a),Ha(l,0,a.length))}function zh(a){return rs(un(a))}function $a(a,l,f){(f!==s&&!$n(a[l],f)||f===s&&!(l in a))&&ka(a,l,f)}function ji(a,l,f){var m=a[l];(!(gt.call(a,l)&&$n(m,f))||f===s&&!(l in a))&&ka(a,l,f)}function Nl(a,l){for(var f=a.length;f--;)if($n(a[f][0],l))return f;return-1}function Fr(a,l,f,m){return _r(a,function(b,E,T){l(m,b,f(b),T)}),m}function Ar(a,l){return a&&Pn(l,fn(l),a)}function Du(a,l){return a&&Pn(l,yn(l),a)}function ka(a,l,f){l=="__proto__"&&Eu?Eu(a,l,{configurable:!0,enumerable:!0,value:f,writable:!0}):a[l]=f}function Lu(a,l){for(var f=-1,m=l.length,b=P(m),E=a==null;++f<m;)b[f]=E?s:bs(a,l[f]);return b}function Ha(a,l,f){return a===a&&(f!==s&&(a=a<=f?a:f),l!==s&&(a=a>=l?a:l)),a}function Tn(a,l,f,m,b,E){var T,D=l&N,k=l&q,ie=l&Z;if(f&&(T=b?f(a,m,b,E):f(a)),T!==s)return T;if(!It(a))return a;var se=Qe(a);if(se){if(T=Vf(a),!D)return un(a,T)}else{var de=bn(a),Ee=de==wt||de==hn;if(hi(a))return Uf(a,D);if(de==bt||de==we||Ee&&!b){if(T=k||Ee?{}:Qf(a),!D)return k?Xu(a,Du(T,a)):No(a,Ar(T,a))}else{if(!_t[de])return b?a:{};T=Xf(a,de,D)}}E||(E=new zn);var Le=E.get(a);if(Le)return Le;E.set(a,T),Fm(a)?a.forEach(function(Ve){T.add(Tn(Ve,l,f,Ve,a,E))}):nc(a)&&a.forEach(function(Ve,st){T.set(st,Tn(Ve,l,f,st,a,E))});var Ie=ie?k?zo:Bo:k?yn:fn,tt=se?s:Ie(a);return ba(tt||a,function(Ve,st){tt&&(st=Ve,Ve=a[st]),ji(T,st,Tn(Ve,l,f,st,a,E))}),T}function Uh(a){var l=fn(a);return function(f){return yf(f,a,l)}}function yf(a,l,f){var m=f.length;if(a==null)return!m;for(a=dt(a);m--;){var b=f[m],E=l[b],T=a[b];if(T===s&&!(b in a)||!E(T))return!1}return!0}function ki(a,l,f){if(typeof a!="function")throw new ua(v);return Hl(function(){a.apply(s,f)},l)}function $r(a,l,f,m){var b=-1,E=Js,T=!0,D=a.length,k=[],ie=l.length;if(!D)return k;f&&(l=Ht(l,ia(f))),m?(E=tf,T=!1):l.length>=h&&(E=Al,T=!1,l=new yr(l));e:for(;++b<D;){var se=a[b],de=f==null?se:f(se);if(se=m||se!==0?se:0,T&&de===de){for(var Ee=ie;Ee--;)if(l[Ee]===de)continue e;k.push(se)}else E(l,de,m)||k.push(se)}return k}var _r=Gf(Cn),vo=Gf(Ll,!0);function Af(a,l){var f=!0;return _r(a,function(m,b,E){return f=!!l(m,b,E),f}),f}function Ga(a,l,f){for(var m=-1,b=a.length;++m<b;){var E=a[m],T=l(E);if(T!=null&&(D===s?T===T&&!kn(T):f(T,D)))var D=T,k=E}return k}function Je(a,l,f,m){var b=a.length;for(f=Ze(f),f<0&&(f=-f>b?0:b+f),m=m===s||m>b?b:Ze(m),m<0&&(m+=b),m=f>m?0:sr(m);f<m;)a[f++]=l;return a}function xt(a,l){var f=[];return _r(a,function(m,b,E){l(m,b,E)&&f.push(m)}),f}function lt(a,l,f,m,b){var E=-1,T=a.length;for(f||(f=Mr),b||(b=[]);++E<T;){var D=a[E];l>0&&f(D)?l>1?lt(D,l-1,f,m,b):vr(b,D):m||(b[b.length]=D)}return b}var Dl=Qi(),Hi=Qi(!0);function Cn(a,l){return a&&Dl(a,l,fn)}function Ll(a,l){return a&&Hi(a,l,fn)}function ei(a,l){return Wa(l,function(f){return Ya(a[f])})}function Ma(a,l){l=Sr(l,a);for(var f=0,m=l.length;a!=null&&f<m;)a=a[yt(l[f++])];return f&&f==m?a:s}function jh(a,l,f){var m=l(a);return Qe(a)?m:vr(m,f(a))}function ut(a){return a==null?a===s?La:Ei:Bn&&Bn in dt(a)?im(a):fm(a)}function Bu(a,l){return a>l}function _f(a,l){return a!=null&&gt.call(a,l)}function kh(a,l){return a!=null&&l in dt(a)}function Hh(a,l,f){return a>=Gt(l,f)&&a<jt(l,f)}function xf(a,l,f){for(var m=f?tf:Js,b=a[0].length,E=a.length,T=E,D=P(E),k=1/0,ie=[];T--;){var se=a[T];T&&l&&(se=Ht(se,ia(l))),k=Gt(se.length,k),D[T]=!f&&(l||b>=120&&se.length>=120)?new yr(T&&se):s}se=a[0];var de=-1,Ee=D[0];e:for(;++de<b&&ie.length<k;){var Le=se[de],Ie=l?l(Le):Le;if(Le=f||Le!==0?Le:0,!(Ee?Al(Ee,Ie):m(ie,Ie,f))){for(T=E;--T;){var tt=D[T];if(!(tt?Al(tt,Ie):m(a[T],Ie,f)))continue e}Ee&&Ee.push(Ie),ie.push(Le)}}return ie}function Sf(a,l,f,m){return Cn(a,function(b,E,T){l(m,f(b),E,T)}),m}function Gi(a,l,f){l=Sr(l,a),a=kl(a,l);var m=a==null?a:a[yt(Rn(l))];return m==null?s:Yn(m,a,f)}function po(a){return Zt(a)&&ut(a)==we}function Zn(a){return Zt(a)&&ut(a)==$t}function nn(a){return Zt(a)&&ut(a)==ot}function qi(a,l,f,m,b){return a===l?!0:a==null||l==null||!Zt(a)&&!Zt(l)?a!==a&&l!==l:zu(a,l,f,m,qi,b)}function zu(a,l,f,m,b,E){var T=Qe(a),D=Qe(l),k=T?_e:bn(a),ie=D?_e:bn(l);k=k==we?bt:k,ie=ie==we?bt:ie;var se=k==bt,de=ie==bt,Ee=k==ie;if(Ee&&hi(a)){if(!hi(l))return!1;T=!0,se=!1}if(Ee&&!se)return E||(E=new zn),T||Wl(a)?am(a,l,f,m,b,E):rm(a,l,k,f,m,b,E);if(!(f&H)){var Le=se&&gt.call(a,"__wrapped__"),Ie=de&&gt.call(l,"__wrapped__");if(Le||Ie){var tt=Le?a.value():a,Ve=Ie?l.value():l;return E||(E=new zn),b(tt,Ve,f,m,E)}}return Ee?(E||(E=new zn),pn(a,l,f,m,b,E)):!1}function bo(a){return Zt(a)&&bn(a)==Ut}function Uu(a,l,f,m){var b=f.length,E=b,T=!m;if(a==null)return!E;for(a=dt(a);b--;){var D=f[b];if(T&&D[2]?D[1]!==a[D[0]]:!(D[0]in a))return!1}for(;++b<E;){D=f[b];var k=D[0],ie=a[k],se=D[1];if(T&&D[2]){if(ie===s&&!(k in a))return!1}else{var de=new zn;if(m)var Ee=m(ie,se,k,a,l,de);if(!(Ee===s?qi(se,ie,H|G,m,de):Ee))return!1}}return!0}function er(a){if(!It(a)||qo(a))return!1;var l=Ya(a)?ff:Wd;return l.test(Or(a))}function yo(a){return Zt(a)&&ut(a)==aa}function Ef(a){return Zt(a)&&bn(a)==Ot}function Mf(a){return Zt(a)&&Ji(a.length)&&!!Tt[ut(a)]}function wf(a){return typeof a=="function"?a:a==null?V:typeof a=="object"?Qe(a)?xo(a[0],a[1]):Tf(a):ht(a)}function Ao(a){if(!Lt(a))return xa(a);var l=[];for(var f in dt(a))gt.call(a,f)&&f!="constructor"&&l.push(f);return l}function Gh(a){if(!It(a))return ri(a);var l=Lt(a),f=[];for(var m in a)m=="constructor"&&(l||!gt.call(a,m))||f.push(m);return f}function _o(a,l){return a<l}function Of(a,l){var f=-1,m=on(a)?P(a.length):[];return _r(a,function(b,E,T){m[++f]=l(b,E,T)}),m}function Tf(a){var l=jo(a);return l.length==1&&l[0][2]?om(l[0][0],l[0][1]):function(f){return f===a||Uu(f,a,l)}}function xo(a,l){return Ho(a)&&sm(l)?om(yt(a),l):function(f){var m=bs(f,a);return m===s&&m===l?tu(f,a):qi(l,m,H|G)}}function ju(a,l,f,m,b){a!==l&&Dl(l,function(E,T){if(b||(b=new zn),It(E))Rv(a,l,T,f,ju,m,b);else{var D=m?m(Yo(a,T),E,T+"",a,l,b):s;D===s&&(D=E),$a(a,T,D)}},yn)}function Rv(a,l,f,m,b,E,T){var D=Yo(a,f),k=Yo(l,f),ie=T.get(k);if(ie){$a(a,f,ie);return}var se=E?E(D,k,f+"",a,l,T):s,de=se===s;if(de){var Ee=Qe(k),Le=!Ee&&hi(k),Ie=!Ee&&!Le&&Wl(k);se=k,Ee||Le||Ie?Qe(D)?se=D:Wt(D)?se=un(D):Le?(de=!1,se=Uf(k,!0)):Ie?(de=!1,se=kf(k,!0)):se=[]:Ca(k)||Nr(k)?(se=D,Nr(D)?se=tg(D):(!It(D)||Ya(D))&&(se=Qf(k))):de=!1}de&&(T.set(k,se),b(se,k,m,E,T),T.delete(k)),$a(a,f,se)}function Cf(a,l){var f=a.length;if(f)return l+=l<0?f:0,qa(l,f)?a[l]:s}function Rf(a,l,f){l.length?l=Ht(l,function(E){return Qe(E)?function(T){return Ma(T,E.length===1?E[0]:E)}:E}):l=[V];var m=-1;l=Ht(l,ia(ze()));var b=Of(a,function(E,T,D){var k=Ht(l,function(ie){return ie(E)});return{criteria:k,index:++m,value:E}});return gh(b,function(E,T){return Jh(E,T,f)})}function qh(a,l){return So(a,l,function(f,m){return tu(a,m)})}function So(a,l,f){for(var m=-1,b=l.length,E={};++m<b;){var T=l[m],D=Ma(a,T);f(D,T)&&zl(E,Sr(T,a),D)}return E}function Yh(a){return function(l){return Ma(l,a)}}function Eo(a,l,f,m){var b=m?rf:bl,E=-1,T=l.length,D=a;for(a===l&&(l=un(l)),f&&(D=Ht(a,ia(f)));++E<T;)for(var k=0,ie=l[E],se=f?f(ie):ie;(k=b(D,se,k,m))>-1;)D!==a&&uo.call(D,k,1),uo.call(a,k,1);return a}function Nf(a,l){for(var f=a?l.length:0,m=f-1;f--;){var b=l[f];if(f==m||b!==E){var E=b;qa(b)?uo.call(a,b,1):qu(a,b)}}return a}function Mo(a,l){return a+pr(hf()*(l-a+1))}function Ih(a,l,f,m){for(var b=-1,E=jt(Ol((l-a)/(f||1)),0),T=P(E);E--;)T[m?E:++b]=a,a+=f;return T}function Df(a,l){var f="";if(!a||l<1||l>B)return f;do l%2&&(f+=a),l=pr(l/2),l&&(a+=a);while(l);return f}function Pe(a,l){return ns(Zf(a,l,V),a+"")}function Bl(a){return Rl(au(a))}function wo(a,l){var f=au(a);return rs(f,Ha(l,0,f.length))}function zl(a,l,f,m){if(!It(a))return a;l=Sr(l,a);for(var b=-1,E=l.length,T=E-1,D=a;D!=null&&++b<E;){var k=yt(l[b]),ie=f;if(k==="__proto__"||k==="constructor"||k==="prototype")return a;if(b!=T){var se=D[k];ie=m?m(se,k,D):s,ie===s&&(ie=It(se)?se:qa(l[b+1])?[]:{})}ji(D,k,ie),D=D[k]}return a}var ku=Tl?function(a,l){return Tl.set(a,l),a}:V,Hu=Eu?function(a,l){return Eu(a,"toString",{configurable:!0,enumerable:!1,value:I(l),writable:!0})}:V;function Vh(a){return rs(au(a))}function oa(a,l,f){var m=-1,b=a.length;l<0&&(l=-l>b?0:b+l),f=f>b?b:f,f<0&&(f+=b),b=l>f?0:f-l>>>0,l>>>=0;for(var E=P(b);++m<b;)E[m]=a[m+l];return E}function Qh(a,l){var f;return _r(a,function(m,b,E){return f=l(m,b,E),!f}),!!f}function Gu(a,l,f){var m=0,b=a==null?m:a.length;if(typeof l=="number"&&l===l&&b<=F){for(;m<b;){var E=m+b>>>1,T=a[E];T!==null&&!kn(T)&&(f?T<=l:T<l)?m=E+1:b=E}return b}return Oo(a,l,V,f)}function Oo(a,l,f,m){var b=0,E=a==null?0:a.length;if(E===0)return 0;l=f(l);for(var T=l!==l,D=l===null,k=kn(l),ie=l===s;b<E;){var se=pr((b+E)/2),de=f(a[se]),Ee=de!==s,Le=de===null,Ie=de===de,tt=kn(de);if(T)var Ve=m||Ie;else ie?Ve=Ie&&(m||Ee):D?Ve=Ie&&Ee&&(m||!Le):k?Ve=Ie&&Ee&&!Le&&(m||!tt):Le||tt?Ve=!1:Ve=m?de<=l:de<l;Ve?b=se+1:E=se}return Gt(E,oe)}function Lf(a,l){for(var f=-1,m=a.length,b=0,E=[];++f<m;){var T=a[f],D=l?l(T):T;if(!f||!$n(D,k)){var k=D;E[b++]=T===0?0:T}}return E}function To(a){return typeof a=="number"?a:kn(a)?w:+a}function Kn(a){if(typeof a=="string")return a;if(Qe(a))return Ht(a,Kn)+"";if(kn(a))return Wr?Wr.call(a):"";var l=a+"";return l=="0"&&1/a==-X?"-0":l}function xr(a,l,f){var m=-1,b=Js,E=a.length,T=!0,D=[],k=D;if(f)T=!1,b=tf;else if(E>=h){var ie=l?null:tm(a);if(ie)return ro(ie);T=!1,b=Al,k=new yr}else k=l?[]:D;e:for(;++m<E;){var se=a[m],de=l?l(se):se;if(se=f||se!==0?se:0,T&&de===de){for(var Ee=k.length;Ee--;)if(k[Ee]===de)continue e;l&&k.push(de),D.push(se)}else b(k,de,f)||(k!==D&&k.push(de),D.push(se))}return D}function qu(a,l){return l=Sr(l,a),a=kl(a,l),a==null||delete a[yt(Rn(l))]}function Bf(a,l,f,m){return zl(a,l,f(Ma(a,l)),m)}function Yu(a,l,f,m){for(var b=a.length,E=m?b:-1;(m?E--:++E<b)&&l(a[E],E,a););return f?oa(a,m?0:E,m?E+1:b):oa(a,m?E+1:0,m?b:E)}function Xh(a,l){var f=a;return f instanceof $e&&(f=f.value()),nf(l,function(m,b){return b.func.apply(b.thisArg,vr([m],b.args))},f)}function Iu(a,l,f){var m=a.length;if(m<2)return m?xr(a[0]):[];for(var b=-1,E=P(m);++b<m;)for(var T=a[b],D=-1;++D<m;)D!=b&&(E[b]=$r(E[b]||T,a[D],l,f));return xr(lt(E,1),l,f)}function zf(a,l,f){for(var m=-1,b=a.length,E=l.length,T={};++m<b;){var D=m<E?l[m]:s;f(T,a[m],D)}return T}function Co(a){return Wt(a)?a:[]}function Vu(a){return typeof a=="function"?a:V}function Sr(a,l){return Qe(a)?a:Ho(a,l)?[a]:rr(vt(a))}var Zh=Pe;function ti(a,l,f){var m=a.length;return f=f===s?m:f,!l&&f>=m?a:oa(a,l,f)}var Kh=so||function(a){return en.clearTimeout(a)};function Uf(a,l){if(l)return a.slice();var f=a.length,m=Ci?Ci(f):new a.constructor(f);return a.copy(m),m}function Yi(a){var l=new a.constructor(a.byteLength);return new wl(l).set(new wl(a)),l}function jf(a,l){var f=l?Yi(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.byteLength)}function Ro(a){var l=new a.constructor(a.source,ol.exec(a));return l.lastIndex=a.lastIndex,l}function Ph(a){return Bi?dt(Bi.call(a)):{}}function kf(a,l){var f=l?Yi(a.buffer):a.buffer;return new a.constructor(f,a.byteOffset,a.length)}function Qu(a,l){if(a!==l){var f=a!==s,m=a===null,b=a===a,E=kn(a),T=l!==s,D=l===null,k=l===l,ie=kn(l);if(!D&&!ie&&!E&&a>l||E&&T&&k&&!D&&!ie||m&&T&&k||!f&&k||!b)return 1;if(!m&&!E&&!ie&&a<l||ie&&f&&b&&!m&&!E||D&&f&&b||!T&&b||!k)return-1}return 0}function Jh(a,l,f){for(var m=-1,b=a.criteria,E=l.criteria,T=b.length,D=f.length;++m<T;){var k=Qu(b[m],E[m]);if(k){if(m>=D)return k;var ie=f[m];return k*(ie=="desc"?-1:1)}}return a.index-l.index}function Hf(a,l,f,m){for(var b=-1,E=a.length,T=f.length,D=-1,k=l.length,ie=jt(E-T,0),se=P(k+ie),de=!m;++D<k;)se[D]=l[D];for(;++b<T;)(de||b<E)&&(se[f[b]]=a[b]);for(;ie--;)se[D++]=a[b++];return se}function Wh(a,l,f,m){for(var b=-1,E=a.length,T=-1,D=f.length,k=-1,ie=l.length,se=jt(E-D,0),de=P(se+ie),Ee=!m;++b<se;)de[b]=a[b];for(var Le=b;++k<ie;)de[Le+k]=l[k];for(;++T<D;)(Ee||b<E)&&(de[Le+f[T]]=a[b++]);return de}function un(a,l){var f=-1,m=a.length;for(l||(l=P(m));++f<m;)l[f]=a[f];return l}function Pn(a,l,f,m){var b=!f;f||(f={});for(var E=-1,T=l.length;++E<T;){var D=l[E],k=m?m(f[D],a[D],D,f,a):s;k===s&&(k=a[D]),b?ka(f,D,k):ji(f,D,k)}return f}function No(a,l){return Pn(a,Fu(a),l)}function Xu(a,l){return Pn(a,ko(a),l)}function Ii(a,l){return function(f,m){var b=Qe(f)?hv:Fr,E=l?l():{};return b(f,a,ze(m,2),E)}}function Vi(a){return Pe(function(l,f){var m=-1,b=f.length,E=b>1?f[b-1]:s,T=b>2?f[2]:s;for(E=a.length>3&&typeof E=="function"?(b--,E):s,T&&jn(f[0],f[1],T)&&(E=b<3?s:E,b=1),l=dt(l);++m<b;){var D=f[m];D&&a(l,D,m,E)}return l})}function Gf(a,l){return function(f,m){if(f==null)return f;if(!on(f))return a(f,m);for(var b=f.length,E=l?b:-1,T=dt(f);(l?E--:++E<b)&&m(T[E],E,T)!==!1;);return f}}function Qi(a){return function(l,f,m){for(var b=-1,E=dt(l),T=m(l),D=T.length;D--;){var k=T[a?D:++b];if(f(E[k],k,E)===!1)break}return l}}function Fh(a,l,f){var m=l&W,b=wa(a);function E(){var T=this&&this!==en&&this instanceof E?b:a;return T.apply(m?f:this,arguments)}return E}function ca(a){return function(l){l=vt(l);var f=Xr(l)?ya(l):s,m=f?f[0]:l.charAt(0),b=f?ti(f,1).join(""):l.slice(1);return m[a]()+b}}function Un(a){return function(l){return nf(c(Dr(l).replace(vu,"")),a,"")}}function wa(a){return function(){var l=arguments;switch(l.length){case 0:return new a;case 1:return new a(l[0]);case 2:return new a(l[0],l[1]);case 3:return new a(l[0],l[1],l[2]);case 4:return new a(l[0],l[1],l[2],l[3]);case 5:return new a(l[0],l[1],l[2],l[3],l[4]);case 6:return new a(l[0],l[1],l[2],l[3],l[4],l[5]);case 7:return new a(l[0],l[1],l[2],l[3],l[4],l[5],l[6])}var f=sa(a.prototype),m=a.apply(f,l);return It(m)?m:f}}function $h(a,l,f){var m=wa(a);function b(){for(var E=arguments.length,T=P(E),D=E,k=Zi(b);D--;)T[D]=arguments[D];var ie=E<3&&T[0]!==k&&T[E-1]!==k?[]:Zr(T,k);if(E-=ie.length,E<f)return qf(a,l,Pt,b.placeholder,s,T,ie,s,s,f-E);var se=this&&this!==en&&this instanceof b?m:a;return Yn(se,this,T)}return b}function Er(a){return function(l,f,m){var b=dt(l);if(!on(l)){var E=ze(f,3);l=fn(l),f=function(D){return E(b[D],D,b)}}var T=a(l,f,m);return T>-1?b[E?l[T]:T]:s}}function tr(a){return kt(function(l){var f=l.length,m=f,b=Qn.prototype.thru;for(a&&l.reverse();m--;){var E=l[m];if(typeof E!="function")throw new ua(v);if(b&&!T&&Wu(E)=="wrapper")var T=new Qn([],!0)}for(m=T?m:f;++m<f;){E=l[m];var D=Wu(E),k=D=="wrapper"?Uo(E):s;k&&Go(k[0])&&k[1]==(be|pe|te|ee)&&!k[4].length&&k[9]==1?T=T[Wu(k[0])].apply(T,k[3]):T=E.length==1&&Go(E)?T[D]():T.thru(E)}return function(){var ie=arguments,se=ie[0];if(T&&ie.length==1&&Qe(se))return T.plant(se).value();for(var de=0,Ee=f?l[de].apply(this,ie):se;++de<f;)Ee=l[de].call(this,Ee);return Ee}})}function Pt(a,l,f,m,b,E,T,D,k,ie){var se=l&be,de=l&W,Ee=l&fe,Le=l&(pe|ye),Ie=l&Me,tt=Ee?s:wa(a);function Ve(){for(var st=arguments.length,mt=P(st),Va=st;Va--;)mt[Va]=arguments[Va];if(Le)var ga=Zi(Ve),Qa=Av(mt,ga);if(m&&(mt=Hf(mt,m,b,Le)),E&&(mt=Wh(mt,E,T,Le)),st-=Qa,Le&&st<ie){var dn=Zr(mt,ga);return qf(a,l,Pt,Ve.placeholder,f,mt,dn,D,k,ie-st)}var Lr=de?f:this,Wi=Ee?Lr[a]:a;return st=mt.length,D?mt=ar(mt,D):Ie&&st>1&&mt.reverse(),se&&k<st&&(mt.length=k),this&&this!==en&&this instanceof Ve&&(Wi=tt||wa(Wi)),Wi.apply(Lr,mt)}return Ve}function Zu(a,l){return function(f,m){return Sf(f,a,l(m),{})}}function Ul(a,l){return function(f,m){var b;if(f===s&&m===s)return l;if(f!==s&&(b=f),m!==s){if(b===s)return m;typeof f=="string"||typeof m=="string"?(f=Kn(f),m=Kn(m)):(f=To(f),m=To(m)),b=a(f,m)}return b}}function Ku(a){return kt(function(l){return l=Ht(l,ia(ze())),Pe(function(f){var m=this;return a(l,function(b){return Yn(b,m,f)})})})}function Pu(a,l){l=l===s?" ":Kn(l);var f=l.length;if(f<2)return f?Df(l,a):l;var m=Df(l,Ol(a/Fa(l)));return Xr(l)?ti(ya(m),0,a).join(""):m.slice(0,a)}function em(a,l,f,m){var b=l&W,E=wa(a);function T(){for(var D=-1,k=arguments.length,ie=-1,se=m.length,de=P(se+k),Ee=this&&this!==en&&this instanceof T?E:a;++ie<se;)de[ie]=m[ie];for(;k--;)de[ie++]=arguments[++D];return Yn(Ee,b?f:this,de)}return T}function ni(a){return function(l,f,m){return m&&typeof m!="number"&&jn(l,f,m)&&(f=m=s),l=ur(l),f===s?(f=l,l=0):f=ur(f),m=m===s?l<f?1:-1:ur(m),Ih(l,f,m,a)}}function Xi(a){return function(l,f){return typeof l=="string"&&typeof f=="string"||(l=Ra(l),f=Ra(f)),a(l,f)}}function qf(a,l,f,m,b,E,T,D,k,ie){var se=l&pe,de=se?T:s,Ee=se?s:T,Le=se?E:s,Ie=se?s:E;l|=se?te:ce,l&=~(se?ce:te),l&ve||(l&=-4);var tt=[a,l,b,Le,de,Ie,Ee,D,k,ie],Ve=f.apply(s,tt);return Go(a)&&Io(Ve,tt),Ve.placeholder=m,Vo(Ve,a,l)}function Do(a){var l=tn[a];return function(f,m){if(f=Ra(f),m=m==null?0:Gt(Ze(m),292),m&&Mu(f)){var b=(vt(f)+"e").split("e"),E=l(b[0]+"e"+(+b[1]+m));return b=(vt(E)+"e").split("e"),+(b[0]+"e"+(+b[1]-m))}return l(f)}}var tm=it&&1/ro(new it([,-0]))[1]==X?function(a){return new it(a)}:Oe;function Ju(a){return function(l){var f=bn(l);return f==Ut?ao(l):f==Ot?_v(l):yv(l,a(l))}}function nr(a,l,f,m,b,E,T,D){var k=l&fe;if(!k&&typeof a!="function")throw new ua(v);var ie=m?m.length:0;if(ie||(l&=-97,m=b=s),T=T===s?T:jt(Ze(T),0),D=D===s?D:Ze(D),ie-=b?b.length:0,l&ce){var se=m,de=b;m=b=s}var Ee=k?s:Uo(a),Le=[a,l,f,m,b,se,de,E,T,D];if(Ee&&ts(Le,Ee),a=Le[0],l=Le[1],f=Le[2],m=Le[3],b=Le[4],D=Le[9]=Le[9]===s?k?0:a.length:jt(Le[9]-ie,0),!D&&l&(pe|ye)&&(l&=-25),!l||l==W)var Ie=Fh(a,l,f);else l==pe||l==ye?Ie=$h(a,l,D):(l==te||l==(W|te))&&!b.length?Ie=em(a,l,f,m):Ie=Pt.apply(s,Le);var tt=Ee?ku:Io;return Vo(tt(Ie,Le),a,l)}function Lo(a,l,f,m){return a===s||$n(a,El[f])&&!gt.call(m,f)?l:a}function Yf(a,l,f,m,b,E){return It(a)&&It(l)&&(E.set(l,a),ju(a,l,s,Yf,E),E.delete(l)),a}function nm(a){return Ca(a)?s:a}function am(a,l,f,m,b,E){var T=f&H,D=a.length,k=l.length;if(D!=k&&!(T&&k>D))return!1;var ie=E.get(a),se=E.get(l);if(ie&&se)return ie==l&&se==a;var de=-1,Ee=!0,Le=f&G?new yr:s;for(E.set(a,l),E.set(l,a);++de<D;){var Ie=a[de],tt=l[de];if(m)var Ve=T?m(tt,Ie,de,l,a,E):m(Ie,tt,de,a,l,E);if(Ve!==s){if(Ve)continue;Ee=!1;break}if(Le){if(!af(l,function(st,mt){if(!Al(Le,mt)&&(Ie===st||b(Ie,st,f,m,E)))return Le.push(mt)})){Ee=!1;break}}else if(!(Ie===tt||b(Ie,tt,f,m,E))){Ee=!1;break}}return E.delete(a),E.delete(l),Ee}function rm(a,l,f,m,b,E,T){switch(f){case mn:if(a.byteLength!=l.byteLength||a.byteOffset!=l.byteOffset)return!1;a=a.buffer,l=l.buffer;case $t:return!(a.byteLength!=l.byteLength||!E(new wl(a),new wl(l)));case je:case ot:case xn:return $n(+a,+l);case Mt:return a.name==l.name&&a.message==l.message;case aa:case wn:return a==l+"";case Ut:var D=ao;case Ot:var k=m&H;if(D||(D=ro),a.size!=l.size&&!k)return!1;var ie=T.get(a);if(ie)return ie==l;m|=G,T.set(a,l);var se=am(D(a),D(l),m,b,E,T);return T.delete(a),se;case Da:if(Bi)return Bi.call(a)==Bi.call(l)}return!1}function pn(a,l,f,m,b,E){var T=f&H,D=Bo(a),k=D.length,ie=Bo(l),se=ie.length;if(k!=se&&!T)return!1;for(var de=k;de--;){var Ee=D[de];if(!(T?Ee in l:gt.call(l,Ee)))return!1}var Le=E.get(a),Ie=E.get(l);if(Le&&Ie)return Le==l&&Ie==a;var tt=!0;E.set(a,l),E.set(l,a);for(var Ve=T;++de<k;){Ee=D[de];var st=a[Ee],mt=l[Ee];if(m)var Va=T?m(mt,st,Ee,l,a,E):m(st,mt,Ee,a,l,E);if(!(Va===s?st===mt||b(st,mt,f,m,E):Va)){tt=!1;break}Ve||(Ve=Ee=="constructor")}if(tt&&!Ve){var ga=a.constructor,Qa=l.constructor;ga!=Qa&&"constructor"in a&&"constructor"in l&&!(typeof ga=="function"&&ga instanceof ga&&typeof Qa=="function"&&Qa instanceof Qa)&&(tt=!1)}return E.delete(a),E.delete(l),tt}function kt(a){return ns(Zf(a,s,Wn),a+"")}function Bo(a){return jh(a,fn,Fu)}function zo(a){return jh(a,yn,ko)}var Uo=Tl?function(a){return Tl.get(a)}:Oe;function Wu(a){for(var l=a.name+"",f=Sa[l],m=gt.call(Sa,l)?f.length:0;m--;){var b=f[m],E=b.func;if(E==null||E==a)return b.name}return l}function Zi(a){var l=gt.call(_,"placeholder")?_:a;return l.placeholder}function ze(){var a=_.iteratee||ke;return a=a===ke?wf:a,arguments.length?a(arguments[0],arguments[1]):a}function jl(a,l){var f=a.__data__;return wr(l)?f[typeof l=="string"?"string":"hash"]:f.map}function jo(a){for(var l=fn(a),f=l.length;f--;){var m=l[f],b=a[m];l[f]=[m,b,sm(b)]}return l}function ai(a,l){var f=uf(a,l);return er(f)?f:s}function im(a){var l=gt.call(a,Bn),f=a[Bn];try{a[Bn]=s;var m=!0}catch{}var b=Ln.call(a);return m&&(l?a[Bn]=f:delete a[Bn]),b}var Fu=Pr?function(a){return a==null?[]:(a=dt(a),Wa(Pr(a),function(l){return Ri.call(a,l)}))}:hp,ko=Pr?function(a){for(var l=[];a;)vr(l,Fu(a)),a=xu(a);return l}:hp,bn=ut;(wu&&bn(new wu(new ArrayBuffer(1)))!=mn||ln&&bn(new ln)!=Ut||qt&&bn(qt.resolve())!=rn||it&&bn(new it)!=Ot||ja&&bn(new ja)!=Nt)&&(bn=function(a){var l=ut(a),f=l==bt?a.constructor:s,m=f?Or(f):"";if(m)switch(m){case Mh:return mn;case wh:return Ut;case Ou:return rn;case Tu:return Ot;case Oh:return Nt}return l});function lm(a,l,f){for(var m=-1,b=f.length;++m<b;){var E=f[m],T=E.size;switch(E.type){case"drop":a+=T;break;case"dropRight":l-=T;break;case"take":l=Gt(l,a+T);break;case"takeRight":a=jt(a,l-T);break}}return{start:a,end:l}}function If(a){var l=a.match(ov);return l?l[1].split(Jd):[]}function $u(a,l,f){l=Sr(l,a);for(var m=-1,b=l.length,E=!1;++m<b;){var T=yt(l[m]);if(!(E=a!=null&&f(a,T)))break;a=a[T]}return E||++m!=b?E:(b=a==null?0:a.length,!!b&&Ji(b)&&qa(T,b)&&(Qe(a)||Nr(a)))}function Vf(a){var l=a.length,f=new a.constructor(l);return l&&typeof a[0]=="string"&&gt.call(a,"index")&&(f.index=a.index,f.input=a.input),f}function Qf(a){return typeof a.constructor=="function"&&!Lt(a)?sa(xu(a)):{}}function Xf(a,l,f){var m=a.constructor;switch(l){case $t:return Yi(a);case je:case ot:return new m(+a);case mn:return jf(a,f);case Sn:case ou:case cu:case fu:case Pa:case Xt:case Ba:case Hr:case mr:return kf(a,f);case Ut:return new m;case xn:case wn:return new m(a);case aa:return Ro(a);case Ot:return new m;case Da:return Ph(a)}}function um(a,l){var f=l.length;if(!f)return a;var m=f-1;return l[m]=(f>1?"& ":"")+l[m],l=l.join(f>2?", ":" "),a.replace(sv,`{
/* [wrapped with `+l+`] */
`)}function Mr(a){return Qe(a)||Nr(a)||!!(In&&a&&a[In])}function qa(a,l){var f=typeof a;return l=l??B,!!l&&(f=="number"||f!="symbol"&&Mi.test(a))&&a>-1&&a%1==0&&a<l}function jn(a,l,f){if(!It(f))return!1;var m=typeof l;return(m=="number"?on(f)&&qa(l,f.length):m=="string"&&l in f)?$n(f[l],a):!1}function Ho(a,l){if(Qe(a))return!1;var f=typeof a;return f=="number"||f=="symbol"||f=="boolean"||a==null||kn(a)?!0:uv.test(a)||!Pd.test(a)||l!=null&&a in dt(l)}function wr(a){var l=typeof a;return l=="string"||l=="number"||l=="symbol"||l=="boolean"?a!=="__proto__":a===null}function Go(a){var l=Wu(a),f=_[l];if(typeof f!="function"||!(l in $e.prototype))return!1;if(a===f)return!0;var m=Uo(f);return!!m&&a===m[0]}function qo(a){return!!cf&&cf in a}var es=Au?Ya:mp;function Lt(a){var l=a&&a.constructor,f=typeof l=="function"&&l.prototype||El;return a===f}function sm(a){return a===a&&!It(a)}function om(a,l){return function(f){return f==null?!1:f[a]===l&&(l!==s||a in dt(f))}}function cm(a){var l=ds(a,function(m){return f.size===S&&f.clear(),m}),f=l.cache;return l}function ts(a,l){var f=a[1],m=l[1],b=f|m,E=b<(W|fe|be),T=m==be&&f==pe||m==be&&f==ee&&a[7].length<=l[8]||m==(be|ee)&&l[7].length<=l[8]&&f==pe;if(!(E||T))return a;m&W&&(a[2]=l[2],b|=f&W?0:ve);var D=l[3];if(D){var k=a[3];a[3]=k?Hf(k,D,l[4]):D,a[4]=k?Zr(a[3],O):l[4]}return D=l[5],D&&(k=a[5],a[5]=k?Wh(k,D,l[6]):D,a[6]=k?Zr(a[5],O):l[6]),D=l[7],D&&(a[7]=D),m&be&&(a[8]=a[8]==null?l[8]:Gt(a[8],l[8])),a[9]==null&&(a[9]=l[9]),a[0]=l[0],a[1]=b,a}function ri(a){var l=[];if(a!=null)for(var f in dt(a))l.push(f);return l}function fm(a){return Ln.call(a)}function Zf(a,l,f){return l=jt(l===s?a.length-1:l,0),function(){for(var m=arguments,b=-1,E=jt(m.length-l,0),T=P(E);++b<E;)T[b]=m[l+b];b=-1;for(var D=P(l+1);++b<l;)D[b]=m[b];return D[l]=f(T),Yn(a,this,D)}}function kl(a,l){return l.length<2?a:Ma(a,oa(l,0,-1))}function ar(a,l){for(var f=a.length,m=Gt(l.length,f),b=un(a);m--;){var E=l[m];a[m]=qa(E,f)?b[E]:s}return a}function Yo(a,l){if(!(l==="constructor"&&typeof a[l]=="function")&&l!="__proto__")return a[l]}var Io=as(ku),Hl=df||function(a,l){return en.setTimeout(a,l)},ns=as(Hu);function Vo(a,l,f){var m=l+"";return ns(a,um(m,dm(If(m),f)))}function as(a){var l=0,f=0;return function(){var m=br(),b=qe-(m-f);if(f=m,b>0){if(++l>=De)return arguments[0]}else l=0;return a.apply(s,arguments)}}function rs(a,l){var f=-1,m=a.length,b=m-1;for(l=l===s?m:l;++f<l;){var E=Mo(f,b),T=a[E];a[E]=a[f],a[f]=T}return a.length=l,a}var rr=cm(function(a){var l=[];return a.charCodeAt(0)===46&&l.push(""),a.replace(Gr,function(f,m,b,E){l.push(b?E.replace(ul,"$1"):m||f)}),l});function yt(a){if(typeof a=="string"||kn(a))return a;var l=a+"";return l=="0"&&1/a==-X?"-0":l}function Or(a){if(a!=null){try{return _u.call(a)}catch{}try{return a+""}catch{}}return""}function dm(a,l){return ba(me,function(f){var m="_."+f[0];l&f[1]&&!Js(a,m)&&a.push(m)}),a.sort()}function sn(a){if(a instanceof $e)return a.clone();var l=new Qn(a.__wrapped__,a.__chain__);return l.__actions__=un(a.__actions__),l.__index__=a.__index__,l.__values__=a.__values__,l}function Nv(a,l,f){(f?jn(a,l,f):l===s)?l=1:l=jt(Ze(l),0);var m=a==null?0:a.length;if(!m||l<1)return[];for(var b=0,E=0,T=P(Ol(m/l));b<m;)T[E++]=oa(a,b,b+=l);return T}function hm(a){for(var l=-1,f=a==null?0:a.length,m=0,b=[];++l<f;){var E=a[l];E&&(b[m++]=E)}return b}function mm(){var a=arguments.length;if(!a)return[];for(var l=P(a-1),f=arguments[0],m=a;m--;)l[m-1]=arguments[m];return vr(Qe(f)?un(f):[f],lt(l,1))}var Yt=Pe(function(a,l){return Wt(a)?$r(a,lt(l,1,Wt,!0)):[]}),Jn=Pe(function(a,l){var f=Rn(l);return Wt(f)&&(f=s),Wt(a)?$r(a,lt(l,1,Wt,!0),ze(f,2)):[]}),Tr=Pe(function(a,l){var f=Rn(l);return Wt(f)&&(f=s),Wt(a)?$r(a,lt(l,1,Wt,!0),s,f):[]});function gm(a,l,f){var m=a==null?0:a.length;return m?(l=f||l===s?1:Ze(l),oa(a,l<0?0:l,m)):[]}function vm(a,l,f){var m=a==null?0:a.length;return m?(l=f||l===s?1:Ze(l),l=m-l,oa(a,0,l<0?0:l)):[]}function Dv(a,l){return a&&a.length?Yu(a,ze(l,3),!0,!0):[]}function Kf(a,l){return a&&a.length?Yu(a,ze(l,3),!0):[]}function fa(a,l,f,m){var b=a==null?0:a.length;return b?(f&&typeof f!="number"&&jn(a,l,f)&&(f=0,m=b),Je(a,l,f,m)):[]}function Oa(a,l,f){var m=a==null?0:a.length;if(!m)return-1;var b=f==null?0:Ze(f);return b<0&&(b=jt(m+b,0)),Ws(a,ze(l,3),b)}function Pf(a,l,f){var m=a==null?0:a.length;if(!m)return-1;var b=m-1;return f!==s&&(b=Ze(f),b=f<0?jt(m+b,0):Gt(b,m-1)),Ws(a,ze(l,3),b,!0)}function Wn(a){var l=a==null?0:a.length;return l?lt(a,1):[]}function pm(a){var l=a==null?0:a.length;return l?lt(a,X):[]}function ii(a,l){var f=a==null?0:a.length;return f?(l=l===s?1:Ze(l),lt(a,l)):[]}function Ki(a){for(var l=-1,f=a==null?0:a.length,m={};++l<f;){var b=a[l];m[b[0]]=b[1]}return m}function Cr(a){return a&&a.length?a[0]:s}function Jf(a,l,f){var m=a==null?0:a.length;if(!m)return-1;var b=f==null?0:Ze(f);return b<0&&(b=jt(m+b,0)),bl(a,l,b)}function Wf(a){var l=a==null?0:a.length;return l?oa(a,0,-1):[]}var ir=Pe(function(a){var l=Ht(a,Co);return l.length&&l[0]===a[0]?xf(l):[]}),bm=Pe(function(a){var l=Rn(a),f=Ht(a,Co);return l===Rn(f)?l=s:f.pop(),f.length&&f[0]===a[0]?xf(f,ze(l,2)):[]}),Gl=Pe(function(a){var l=Rn(a),f=Ht(a,Co);return l=typeof l=="function"?l:s,l&&f.pop(),f.length&&f[0]===a[0]?xf(f,s,l):[]});function is(a,l){return a==null?"":_a.call(a,l)}function Rn(a){var l=a==null?0:a.length;return l?a[l-1]:s}function ql(a,l,f){var m=a==null?0:a.length;if(!m)return-1;var b=m;return f!==s&&(b=Ze(f),b=b<0?jt(m+b,0):Gt(b,m-1)),l===l?la(a,l,b):Ws(a,yl,b,!0)}function ym(a,l){return a&&a.length?Cf(a,Ze(l)):s}var Am=Pe(Yl);function Yl(a,l){return a&&a.length&&l&&l.length?Eo(a,l):a}function _m(a,l,f){return a&&a.length&&l&&l.length?Eo(a,l,ze(f,2)):a}function Qo(a,l,f){return a&&a.length&&l&&l.length?Eo(a,l,s,f):a}var xm=kt(function(a,l){var f=a==null?0:a.length,m=Lu(a,l);return Nf(a,Ht(l,function(b){return qa(b,f)?+b:b}).sort(Qu)),m});function Lv(a,l){var f=[];if(!(a&&a.length))return f;var m=-1,b=[],E=a.length;for(l=ze(l,3);++m<E;){var T=a[m];l(T,m,a)&&(f.push(T),b.push(m))}return Nf(a,b),f}function Ff(a){return a==null?a:mf.call(a)}function St(a,l,f){var m=a==null?0:a.length;return m?(f&&typeof f!="number"&&jn(a,l,f)?(l=0,f=m):(l=l==null?0:Ze(l),f=f===s?m:Ze(f)),oa(a,l,f)):[]}function zt(a,l){return Gu(a,l)}function nt(a,l,f){return Oo(a,l,ze(f,2))}function ct(a,l){var f=a==null?0:a.length;if(f){var m=Gu(a,l);if(m<f&&$n(a[m],l))return m}return-1}function Et(a,l){return Gu(a,l,!0)}function da(a,l,f){return Oo(a,l,ze(f,2),!0)}function li(a,l){var f=a==null?0:a.length;if(f){var m=Gu(a,l,!0)-1;if($n(a[m],l))return m}return-1}function Il(a){return a&&a.length?Lf(a):[]}function $f(a,l){return a&&a.length?Lf(a,ze(l,2)):[]}function Rr(a){var l=a==null?0:a.length;return l?oa(a,1,l):[]}function Jt(a,l,f){return a&&a.length?(l=f||l===s?1:Ze(l),oa(a,0,l<0?0:l)):[]}function ui(a,l,f){var m=a==null?0:a.length;return m?(l=f||l===s?1:Ze(l),l=m-l,oa(a,l<0?0:l,m)):[]}function Pi(a,l){return a&&a.length?Yu(a,ze(l,3),!1,!0):[]}function ed(a,l){return a&&a.length?Yu(a,ze(l,3)):[]}var Ta=Pe(function(a){return xr(lt(a,1,Wt,!0))}),Vl=Pe(function(a){var l=Rn(a);return Wt(l)&&(l=s),xr(lt(a,1,Wt,!0),ze(l,2))}),ls=Pe(function(a){var l=Rn(a);return l=typeof l=="function"?l:s,xr(lt(a,1,Wt,!0),s,l)});function Fn(a){return a&&a.length?xr(a):[]}function td(a,l){return a&&a.length?xr(a,ze(l,2)):[]}function nd(a,l){return l=typeof l=="function"?l:s,a&&a.length?xr(a,s,l):[]}function Ql(a){if(!(a&&a.length))return[];var l=0;return a=Wa(a,function(f){if(Wt(f))return l=jt(f.length,l),!0}),Qr(l,function(f){return Ht(a,Fs(f))})}function us(a,l){if(!(a&&a.length))return[];var f=Ql(a);return l==null?f:Ht(f,function(m){return Yn(l,s,m)})}var si=Pe(function(a,l){return Wt(a)?$r(a,l):[]}),En=Pe(function(a){return Iu(Wa(a,Wt))}),oi=Pe(function(a){var l=Rn(a);return Wt(l)&&(l=s),Iu(Wa(a,Wt),ze(l,2))}),Xl=Pe(function(a){var l=Rn(a);return l=typeof l=="function"?l:s,Iu(Wa(a,Wt),s,l)}),Zl=Pe(Ql);function ad(a,l){return zf(a||[],l||[],ji)}function rd(a,l){return zf(a||[],l||[],zl)}var Sm=Pe(function(a){var l=a.length,f=l>1?a[l-1]:s;return f=typeof f=="function"?(a.pop(),f):s,us(a,f)});function Kl(a){var l=_(a);return l.__chain__=!0,l}function id(a,l){return l(a),a}function Nn(a,l){return l(a)}var Em=kt(function(a){var l=a.length,f=l?a[0]:0,m=this.__wrapped__,b=function(E){return Lu(E,a)};return l>1||this.__actions__.length||!(m instanceof $e)||!qa(f)?this.thru(b):(m=m.slice(f,+f+(l?1:0)),m.__actions__.push({func:Nn,args:[b],thisArg:s}),new Qn(m,this.__chain__).thru(function(E){return l&&!E.length&&E.push(s),E}))});function ha(){return Kl(this)}function Mm(){return new Qn(this.value(),this.__chain__)}function wm(){this.__values__===s&&(this.__values__=ma(this.value()));var a=this.__index__>=this.__values__.length,l=a?s:this.__values__[this.__index__++];return{done:a,value:l}}function Bv(){return this}function ci(a){for(var l,f=this;f instanceof Ea;){var m=sn(f);m.__index__=0,m.__values__=s,l?b.__wrapped__=m:l=m;var b=m;f=f.__wrapped__}return b.__wrapped__=a,l}function Xo(){var a=this.__wrapped__;if(a instanceof $e){var l=a;return this.__actions__.length&&(l=new $e(this)),l=l.reverse(),l.__actions__.push({func:Nn,args:[Ff],thisArg:s}),new Qn(l,this.__chain__)}return this.thru(Ff)}function ld(){return Xh(this.__wrapped__,this.__actions__)}var Pl=Ii(function(a,l,f){gt.call(a,f)?++a[f]:ka(a,f,1)});function Om(a,l,f){var m=Qe(a)?dh:Af;return f&&jn(a,l,f)&&(l=s),m(a,ze(l,3))}function Tm(a,l){var f=Qe(a)?Wa:xt;return f(a,ze(l,3))}var Cm=Er(Oa),ud=Er(Pf);function sd(a,l){return lt(ss(a,l),1)}function zv(a,l){return lt(ss(a,l),X)}function Uv(a,l,f){return f=f===s?1:Ze(f),lt(ss(a,l),f)}function Rm(a,l){var f=Qe(a)?ba:_r;return f(a,ze(l,3))}function od(a,l){var f=Qe(a)?mv:vo;return f(a,ze(l,3))}var Nm=Ii(function(a,l,f){gt.call(a,f)?a[f].push(l):ka(a,f,[l])});function Jl(a,l,f,m){a=on(a)?a:au(a),f=f&&!m?Ze(f):0;var b=a.length;return f<0&&(f=jt(b+f,0)),rc(a)?f<=b&&a.indexOf(l,f)>-1:!!b&&bl(a,l,f)>-1}var Zo=Pe(function(a,l,f){var m=-1,b=typeof l=="function",E=on(a)?P(a.length):[];return _r(a,function(T){E[++m]=b?Yn(l,T,f):Gi(T,l,f)}),E}),Dm=Ii(function(a,l,f){ka(a,f,l)});function ss(a,l){var f=Qe(a)?Ht:Of;return f(a,ze(l,3))}function Lm(a,l,f,m){return a==null?[]:(Qe(l)||(l=l==null?[]:[l]),f=m?s:f,Qe(f)||(f=f==null?[]:[f]),Rf(a,l,f))}var Bm=Ii(function(a,l,f){a[f?0:1].push(l)},function(){return[[],[]]});function zm(a,l,f){var m=Qe(a)?nf:lf,b=arguments.length<3;return m(a,ze(l,4),f,b,_r)}function Um(a,l,f){var m=Qe(a)?gv:lf,b=arguments.length<3;return m(a,ze(l,4),f,b,vo)}function Ko(a,l){var f=Qe(a)?Wa:xt;return f(a,hs(ze(l,3)))}function jm(a){var l=Qe(a)?Rl:Bl;return l(a)}function km(a,l,f){(f?jn(a,l,f):l===s)?l=1:l=Ze(l);var m=Qe(a)?Bh:wo;return m(a,l)}function Bt(a){var l=Qe(a)?zh:Vh;return l(a)}function cd(a){if(a==null)return 0;if(on(a))return rc(a)?Fa(a):a.length;var l=bn(a);return l==Ut||l==Ot?a.size:Ao(a).length}function jv(a,l,f){var m=Qe(a)?af:Qh;return f&&jn(a,l,f)&&(l=s),m(a,ze(l,3))}var Hm=Pe(function(a,l){if(a==null)return[];var f=l.length;return f>1&&jn(a,l[0],l[1])?l=[]:f>2&&jn(l[0],l[1],l[2])&&(l=[l[0]]),Rf(a,lt(l,1),[])}),Po=Di||function(){return en.Date.now()};function kv(a,l){if(typeof l!="function")throw new ua(v);return a=Ze(a),function(){if(--a<1)return l.apply(this,arguments)}}function Gm(a,l,f){return l=f?s:l,l=a&&l==null?a.length:l,nr(a,be,s,s,s,s,l)}function os(a,l){var f;if(typeof l!="function")throw new ua(v);return a=Ze(a),function(){return--a>0&&(f=l.apply(this,arguments)),a<=1&&(l=s),f}}var fi=Pe(function(a,l,f){var m=W;if(f.length){var b=Zr(f,Zi(fi));m|=te}return nr(a,m,l,f,b)}),Jo=Pe(function(a,l,f){var m=W|fe;if(f.length){var b=Zr(f,Zi(Jo));m|=te}return nr(l,m,a,f,b)});function cs(a,l,f){l=f?s:l;var m=nr(a,pe,s,s,s,s,s,l);return m.placeholder=cs.placeholder,m}function Wo(a,l,f){l=f?s:l;var m=nr(a,ye,s,s,s,s,s,l);return m.placeholder=Wo.placeholder,m}function di(a,l,f){var m,b,E,T,D,k,ie=0,se=!1,de=!1,Ee=!0;if(typeof a!="function")throw new ua(v);l=Ra(l)||0,It(f)&&(se=!!f.leading,de="maxWait"in f,E=de?jt(Ra(f.maxWait)||0,l):E,Ee="trailing"in f?!!f.trailing:Ee);function Le(dn){var Lr=m,Wi=b;return m=b=s,ie=dn,T=a.apply(Wi,Lr),T}function Ie(dn){return ie=dn,D=Hl(st,l),se?Le(dn):T}function tt(dn){var Lr=dn-k,Wi=dn-ie,D0=l-Lr;return de?Gt(D0,E-Wi):D0}function Ve(dn){var Lr=dn-k,Wi=dn-ie;return k===s||Lr>=l||Lr<0||de&&Wi>=E}function st(){var dn=Po();if(Ve(dn))return mt(dn);D=Hl(st,tt(dn))}function mt(dn){return D=s,Ee&&m?Le(dn):(m=b=s,T)}function Va(){D!==s&&Kh(D),ie=0,m=k=b=D=s}function ga(){return D===s?T:mt(Po())}function Qa(){var dn=Po(),Lr=Ve(dn);if(m=arguments,b=this,k=dn,Lr){if(D===s)return Ie(k);if(de)return Kh(D),D=Hl(st,l),Le(k)}return D===s&&(D=Hl(st,l)),T}return Qa.cancel=Va,Qa.flush=ga,Qa}var lr=Pe(function(a,l){return ki(a,1,l)}),fs=Pe(function(a,l,f){return ki(a,Ra(l)||0,f)});function Hv(a){return nr(a,Me)}function ds(a,l){if(typeof a!="function"||l!=null&&typeof l!="function")throw new ua(v);var f=function(){var m=arguments,b=l?l.apply(this,m):m[0],E=f.cache;if(E.has(b))return E.get(b);var T=a.apply(this,m);return f.cache=E.set(b,T)||E,T};return f.cache=new(ds.Cache||Xn),f}ds.Cache=Xn;function hs(a){if(typeof a!="function")throw new ua(v);return function(){var l=arguments;switch(l.length){case 0:return!a.call(this);case 1:return!a.call(this,l[0]);case 2:return!a.call(this,l[0],l[1]);case 3:return!a.call(this,l[0],l[1],l[2])}return!a.apply(this,l)}}function qm(a){return os(2,a)}var Ym=Zh(function(a,l){l=l.length==1&&Qe(l[0])?Ht(l[0],ia(ze())):Ht(lt(l,1),ia(ze()));var f=l.length;return Pe(function(m){for(var b=-1,E=Gt(m.length,f);++b<E;)m[b]=l[b].call(this,m[b]);return Yn(a,this,m)})}),fd=Pe(function(a,l){var f=Zr(l,Zi(fd));return nr(a,te,s,l,f)}),Fo=Pe(function(a,l){var f=Zr(l,Zi(Fo));return nr(a,ce,s,l,f)}),Im=kt(function(a,l){return nr(a,ee,s,s,s,l)});function Vm(a,l){if(typeof a!="function")throw new ua(v);return l=l===s?l:Ze(l),Pe(a,l)}function Gv(a,l){if(typeof a!="function")throw new ua(v);return l=l==null?0:jt(Ze(l),0),Pe(function(f){var m=f[l],b=ti(f,0,l);return m&&vr(b,m),Yn(a,this,b)})}function dd(a,l,f){var m=!0,b=!0;if(typeof a!="function")throw new ua(v);return It(f)&&(m="leading"in f?!!f.leading:m,b="trailing"in f?!!f.trailing:b),di(a,l,{leading:m,maxWait:l,trailing:b})}function hd(a){return Gm(a,1)}function qv(a,l){return fd(Vu(l),a)}function Yv(){if(!arguments.length)return[];var a=arguments[0];return Qe(a)?a:[a]}function ms(a){return Tn(a,Z)}function Iv(a,l){return l=typeof l=="function"?l:s,Tn(a,Z,l)}function Qm(a){return Tn(a,N|Z)}function at(a,l){return l=typeof l=="function"?l:s,Tn(a,N|Z,l)}function md(a,l){return l==null||yf(a,l,fn(l))}function $n(a,l){return a===l||a!==a&&l!==l}var gd=Xi(Bu),Xm=Xi(function(a,l){return a>=l}),Nr=po((function(){return arguments})())?po:function(a){return Zt(a)&&gt.call(a,"callee")&&!Ri.call(a,"callee")},Qe=P.isArray,$o=Ps?ia(Ps):Zn;function on(a){return a!=null&&Ji(a.length)&&!Ya(a)}function Wt(a){return Zt(a)&&on(a)}function Vv(a){return a===!0||a===!1||Zt(a)&&ut(a)==je}var hi=oo||mp,Zm=uh?ia(uh):nn;function Km(a){return Zt(a)&&a.nodeType===1&&!Ca(a)}function ec(a){if(a==null)return!0;if(on(a)&&(Qe(a)||typeof a=="string"||typeof a.splice=="function"||hi(a)||Wl(a)||Nr(a)))return!a.length;var l=bn(a);if(l==Ut||l==Ot)return!a.size;if(Lt(a))return!Ao(a).length;for(var f in a)if(gt.call(a,f))return!1;return!0}function Ct(a,l){return qi(a,l)}function vd(a,l,f){f=typeof f=="function"?f:s;var m=f?f(a,l):s;return m===s?qi(a,l,s,f):!!m}function cn(a){if(!Zt(a))return!1;var l=ut(a);return l==Mt||l==Fe||typeof a.message=="string"&&typeof a.name=="string"&&!Ca(a)}function Qv(a){return typeof a=="number"&&Mu(a)}function Ya(a){if(!It(a))return!1;var l=ut(a);return l==wt||l==hn||l==Ye||l==Qt}function tc(a){return typeof a=="number"&&a==Ze(a)}function Ji(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=B}function It(a){var l=typeof a;return a!=null&&(l=="object"||l=="function")}function Zt(a){return a!=null&&typeof a=="object"}var nc=sh?ia(sh):bo;function pd(a,l){return a===l||Uu(a,l,jo(l))}function Xv(a,l,f){return f=typeof f=="function"?f:s,Uu(a,l,jo(l),f)}function Pm(a){return Wm(a)&&a!=+a}function Zv(a){if(es(a))throw new Ge(g);return er(a)}function Jm(a){return a===null}function Kv(a){return a==null}function Wm(a){return typeof a=="number"||Zt(a)&&ut(a)==xn}function Ca(a){if(!Zt(a)||ut(a)!=bt)return!1;var l=xu(a);if(l===null)return!0;var f=gt.call(l,"constructor")&&l.constructor;return typeof f=="function"&&f instanceof f&&_u.call(f)==Aa}var ac=oh?ia(oh):yo;function bd(a){return tc(a)&&a>=-B&&a<=B}var Fm=ch?ia(ch):Ef;function rc(a){return typeof a=="string"||!Qe(a)&&Zt(a)&&ut(a)==wn}function kn(a){return typeof a=="symbol"||Zt(a)&&ut(a)==Da}var Wl=fh?ia(fh):Mf;function Ia(a){return a===s}function yd(a){return Zt(a)&&bn(a)==Nt}function $m(a){return Zt(a)&&ut(a)==hr}var eg=Xi(_o),gs=Xi(function(a,l){return a<=l});function ma(a){if(!a)return[];if(on(a))return rc(a)?ya(a):un(a);if(Ni&&a[Ni])return Ah(a[Ni]());var l=bn(a),f=l==Ut?ao:l==Ot?ro:au;return f(a)}function ur(a){if(!a)return a===0?a:0;if(a=Ra(a),a===X||a===-X){var l=a<0?-1:1;return l*he}return a===a?a:0}function Ze(a){var l=ur(a),f=l%1;return l===l?f?l-f:l:0}function sr(a){return a?Ha(Ze(a),0,Q):0}function Ra(a){if(typeof a=="number")return a;if(kn(a))return w;if(It(a)){var l=typeof a.valueOf=="function"?a.valueOf():a;a=It(l)?l+"":l}if(typeof a!="string")return a===0?a:+a;a=vh(a);var f=vn.test(a);return f||Fd.test(a)?dv(a.slice(2),f?2:8):cl.test(a)?w:+a}function tg(a){return Pn(a,yn(a))}function Fl(a){return a?Ha(Ze(a),-B,B):a===0?a:0}function vt(a){return a==null?"":Kn(a)}var Pv=Vi(function(a,l){if(Lt(l)||on(l)){Pn(l,fn(l),a);return}for(var f in l)gt.call(l,f)&&ji(a,f,l[f])}),ng=Vi(function(a,l){Pn(l,yn(l),a)}),ic=Vi(function(a,l,f,m){Pn(l,yn(l),a,m)}),Jv=Vi(function(a,l,f,m){Pn(l,fn(l),a,m)}),Wv=kt(Lu);function Fv(a,l){var f=sa(a);return l==null?f:Ar(f,l)}var $v=Pe(function(a,l){a=dt(a);var f=-1,m=l.length,b=m>2?l[2]:s;for(b&&jn(l[0],l[1],b)&&(m=1);++f<m;)for(var E=l[f],T=yn(E),D=-1,k=T.length;++D<k;){var ie=T[D],se=a[ie];(se===s||$n(se,El[ie])&&!gt.call(a,ie))&&(a[ie]=E[ie])}return a}),ag=Pe(function(a){return a.push(s,Yf),Yn(ys,s,a)});function $l(a,l){return hh(a,ze(l,3),Cn)}function vs(a,l){return hh(a,ze(l,3),Ll)}function rg(a,l){return a==null?a:Dl(a,ze(l,3),yn)}function ep(a,l){return a==null?a:Hi(a,ze(l,3),yn)}function eu(a,l){return a&&Cn(a,ze(l,3))}function ps(a,l){return a&&Ll(a,ze(l,3))}function ig(a){return a==null?[]:ei(a,fn(a))}function lc(a){return a==null?[]:ei(a,yn(a))}function bs(a,l,f){var m=a==null?s:Ma(a,l);return m===s?f:m}function Ad(a,l){return a!=null&&$u(a,l,_f)}function tu(a,l){return a!=null&&$u(a,l,kh)}var lg=Zu(function(a,l,f){l!=null&&typeof l.toString!="function"&&(l=Ln.call(l)),a[l]=f},I(V)),ug=Zu(function(a,l,f){l!=null&&typeof l.toString!="function"&&(l=Ln.call(l)),gt.call(a,l)?a[l].push(f):a[l]=[f]},ze),tp=Pe(Gi);function fn(a){return on(a)?bf(a):Ao(a)}function yn(a){return on(a)?bf(a,!0):Gh(a)}function np(a,l){var f={};return l=ze(l,3),Cn(a,function(m,b,E){ka(f,l(m,b,E),m)}),f}function ap(a,l){var f={};return l=ze(l,3),Cn(a,function(m,b,E){ka(f,b,l(m,b,E))}),f}var rp=Vi(function(a,l,f){ju(a,l,f)}),ys=Vi(function(a,l,f,m){ju(a,l,f,m)}),uc=kt(function(a,l){var f={};if(a==null)return f;var m=!1;l=Ht(l,function(E){return E=Sr(E,a),m||(m=E.length>1),E}),Pn(a,zo(a),f),m&&(f=Tn(f,N|q|Z,nm));for(var b=l.length;b--;)qu(f,l[b]);return f});function _d(a,l){return nu(a,hs(ze(l)))}var ip=kt(function(a,l){return a==null?{}:qh(a,l)});function nu(a,l){if(a==null)return{};var f=Ht(zo(a),function(m){return[m]});return l=ze(l),So(a,f,function(m,b){return l(m,b[0])})}function lp(a,l,f){l=Sr(l,a);var m=-1,b=l.length;for(b||(b=1,a=s);++m<b;){var E=a==null?s:a[yt(l[m])];E===s&&(m=b,E=f),a=Ya(E)?E.call(a):E}return a}function sg(a,l,f){return a==null?a:zl(a,l,f)}function og(a,l,f,m){return m=typeof m=="function"?m:s,a==null?a:zl(a,l,f,m)}var xd=Ju(fn),Sd=Ju(yn);function Ed(a,l,f){var m=Qe(a),b=m||hi(a)||Wl(a);if(l=ze(l,4),f==null){var E=a&&a.constructor;b?f=m?new E:[]:It(a)?f=Ya(E)?sa(xu(a)):{}:f={}}return(b?ba:Cn)(a,function(T,D,k){return l(f,T,D,k)}),f}function cg(a,l){return a==null?!0:qu(a,l)}function sc(a,l,f){return a==null?a:Bf(a,l,Vu(f))}function up(a,l,f,m){return m=typeof m=="function"?m:s,a==null?a:Bf(a,l,Vu(f),m)}function au(a){return a==null?[]:to(a,fn(a))}function Md(a){return a==null?[]:to(a,yn(a))}function wd(a,l,f){return f===s&&(f=l,l=s),f!==s&&(f=Ra(f),f=f===f?f:0),l!==s&&(l=Ra(l),l=l===l?l:0),Ha(Ra(a),l,f)}function oc(a,l,f){return l=ur(l),f===s?(f=l,l=0):f=ur(f),a=Ra(a),Hh(a,l,f)}function Od(a,l,f){if(f&&typeof f!="boolean"&&jn(a,l,f)&&(l=f=s),f===s&&(typeof l=="boolean"?(f=l,l=s):typeof a=="boolean"&&(f=a,a=s)),a===s&&l===s?(a=0,l=1):(a=ur(a),l===s?(l=a,a=0):l=ur(l)),a>l){var m=a;a=l,l=m}if(f||a%1||l%1){var b=hf();return Gt(a+b*(l-a+yu("1e-"+((b+"").length-1))),l)}return Mo(a,l)}var fg=Un(function(a,l,f){return l=l.toLowerCase(),a+(f?cc(l):l)});function cc(a){return u(vt(a).toLowerCase())}function Dr(a){return a=vt(a),a&&a.replace(fl,no).replace(gr,"")}function mi(a,l,f){a=vt(a),l=Kn(l);var m=a.length;f=f===s?m:Ha(Ze(f),0,m);var b=f;return f-=l.length,f>=0&&a.slice(f,b)==l}function gi(a){return a=vt(a),a&&Zd.test(a)?a.replace(ll,ph):a}function As(a){return a=vt(a),a&&Gn.test(a)?a.replace(gn,"\\$&"):a}var _s=Un(function(a,l,f){return a+(f?"-":"")+l.toLowerCase()}),vi=Un(function(a,l,f){return a+(f?" ":"")+l.toLowerCase()}),sp=ca("toLowerCase");function dg(a,l,f){a=vt(a),l=Ze(l);var m=l?Fa(a):0;if(!l||m>=l)return a;var b=(l-m)/2;return Pu(pr(b),f)+a+Pu(Ol(b),f)}function xs(a,l,f){a=vt(a),l=Ze(l);var m=l?Fa(a):0;return l&&m<l?a+Pu(l-m,f):a}function op(a,l,f){a=vt(a),l=Ze(l);var m=l?Fa(a):0;return l&&m<l?Pu(l-m,f)+a:a}function hg(a,l,f){return f||l==null?l=0:l&&(l=+l),Li(vt(a).replace(qr,""),l||0)}function fc(a,l,f){return(f?jn(a,l,f):l===s)?l=1:l=Ze(l),Df(vt(a),l)}function mg(){var a=arguments,l=vt(a[0]);return a.length<3?l:l.replace(a[1],a[2])}var cp=Un(function(a,l,f){return a+(f?"_":"")+l.toLowerCase()});function dc(a,l,f){return f&&typeof f!="number"&&jn(a,l,f)&&(l=f=s),f=f===s?Q:f>>>0,f?(a=vt(a),a&&(typeof l=="string"||l!=null&&!ac(l))&&(l=Kn(l),!l&&Xr(a))?ti(ya(a),0,f):a.split(l,f)):[]}var hc=Un(function(a,l,f){return a+(f?" ":"")+u(l)});function gg(a,l,f){return a=vt(a),f=f==null?0:Ha(Ze(f),0,a.length),l=Kn(l),a.slice(f,f+l.length)==l}function Ss(a,l,f){var m=_.templateSettings;f&&jn(a,l,f)&&(l=s),a=vt(a),l=ic({},l,m,Lo);var b=ic({},l.imports,m.imports,Lo),E=fn(b),T=to(b,E),D,k,ie=0,se=l.interpolate||ks,de="__p += '",Ee=io((l.escape||ks).source+"|"+se.source+"|"+(se===js?sl:ks).source+"|"+(l.evaluate||ks).source+"|$","g"),Le="//# sourceURL="+(gt.call(l,"sourceURL")?(l.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rh+"]")+`
`;a.replace(Ee,function(Ve,st,mt,Va,ga,Qa){return mt||(mt=Va),de+=a.slice(ie,Qa).replace($d,bh),st&&(D=!0,de+=`' +
__e(`+st+`) +
'`),ga&&(k=!0,de+=`';
`+ga+`;
__p += '`),mt&&(de+=`' +
((__t = (`+mt+`)) == null ? '' : __t) +
'`),ie=Qa+Ve.length,Ve}),de+=`';
`;var Ie=gt.call(l,"variable")&&l.variable;if(!Ie)de=`with (obj) {
`+de+`
}
`;else if(Uc.test(Ie))throw new Ge(y);de=(k?de.replace(Lc,""):de).replace(On,"$1").replace(zs,"$1;"),de="function("+(Ie||"obj")+`) {
`+(Ie?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(k?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+de+`return __p
}`;var tt=d(function(){return ft(E,Le+"return "+de).apply(s,T)});if(tt.source=de,cn(tt))throw tt;return tt}function Td(a){return vt(a).toLowerCase()}function mc(a){return vt(a).toUpperCase()}function vg(a,l,f){if(a=vt(a),a&&(f||l===s))return vh(a);if(!a||!(l=Kn(l)))return a;var m=ya(a),b=ya(l),E=_l(m,b),T=xl(m,b)+1;return ti(m,E,T).join("")}function fp(a,l,f){if(a=vt(a),a&&(f||l===s))return a.slice(0,sf(a)+1);if(!a||!(l=Kn(l)))return a;var m=ya(a),b=xl(m,ya(l))+1;return ti(m,0,b).join("")}function gc(a,l,f){if(a=vt(a),a&&(f||l===s))return a.replace(qr,"");if(!a||!(l=Kn(l)))return a;var m=ya(a),b=_l(m,ya(l));return ti(m,b).join("")}function e(a,l){var f=Ne,m=Ae;if(It(l)){var b="separator"in l?l.separator:b;f="length"in l?Ze(l.length):f,m="omission"in l?Kn(l.omission):m}a=vt(a);var E=a.length;if(Xr(a)){var T=ya(a);E=T.length}if(f>=E)return a;var D=f-Fa(m);if(D<1)return m;var k=T?ti(T,0,D).join(""):a.slice(0,D);if(b===s)return k+m;if(T&&(D+=k.length-D),ac(b)){if(a.slice(D).search(b)){var ie,se=k;for(b.global||(b=io(b.source,vt(ol.exec(b))+"g")),b.lastIndex=0;ie=b.exec(se);)var de=ie.index;k=k.slice(0,de===s?D:de)}}else if(a.indexOf(Kn(b),D)!=D){var Ee=k.lastIndexOf(b);Ee>-1&&(k=k.slice(0,Ee))}return k+m}function t(a){return a=vt(a),a&&lv.test(a)?a.replace(Us,xh):a}var n=Un(function(a,l,f){return a+(f?" ":"")+l.toUpperCase()}),u=ca("toUpperCase");function c(a,l,f){return a=vt(a),l=f?s:l,l===s?yh(a)?Sv(a):bv(a):a.match(l)||[]}var d=Pe(function(a,l){try{return Yn(a,s,l)}catch(f){return cn(f)?f:new Ge(f)}}),p=kt(function(a,l){return ba(l,function(f){f=yt(f),ka(a,f,fi(a[f],a))}),a});function x(a){var l=a==null?0:a.length,f=ze();return a=l?Ht(a,function(m){if(typeof m[1]!="function")throw new ua(v);return[f(m[0]),m[1]]}):[],Pe(function(m){for(var b=-1;++b<l;){var E=a[b];if(Yn(E[0],this,m))return Yn(E[1],this,m)}})}function C(a){return Uh(Tn(a,N))}function I(a){return function(){return a}}function ae(a,l){return a==null||a!==a?l:a}var ue=tr(),K=tr(!0);function V(a){return a}function ke(a){return wf(typeof a=="function"?a:Tn(a,N))}function Ue(a){return Tf(Tn(a,N))}function Rt(a,l){return xo(a,Tn(l,N))}var j=Pe(function(a,l){return function(f){return Gi(f,a,l)}}),L=Pe(function(a,l){return function(f){return Gi(a,f,l)}});function Y(a,l,f){var m=fn(l),b=ei(l,m);f==null&&!(It(l)&&(b.length||!m.length))&&(f=l,l=a,a=this,b=ei(l,fn(l)));var E=!(It(f)&&"chain"in f)||!!f.chain,T=Ya(a);return ba(b,function(D){var k=l[D];a[D]=k,T&&(a.prototype[D]=function(){var ie=this.__chain__;if(E||ie){var se=a(this.__wrapped__),de=se.__actions__=un(this.__actions__);return de.push({func:k,args:arguments,thisArg:a}),se.__chain__=ie,se}return k.apply(a,vr([this.value()],arguments))})}),a}function re(){return en._===this&&(en._=Ml),this}function Oe(){}function et(a){return a=Ze(a),Pe(function(l){return Cf(l,a)})}var Be=Ku(Ht),He=Ku(dh),An=Ku(af);function ht(a){return Ho(a)?Fs(yt(a)):Yh(a)}function pi(a){return function(l){return a==null?s:Ma(a,l)}}var dp=ni(),sy=ni(!0);function hp(){return[]}function mp(){return!1}function oy(){return{}}function cy(){return""}function fy(){return!0}function dy(a,l){if(a=Ze(a),a<1||a>B)return[];var f=Q,m=Gt(a,Q);l=ze(l),a-=Q;for(var b=Qr(m,l);++f<a;)l(f);return b}function hy(a){return Qe(a)?Ht(a,yt):kn(a)?[a]:un(rr(vt(a)))}function my(a){var l=++za;return vt(a)+l}var gy=Ul(function(a,l){return a+l},0),vy=Do("ceil"),py=Ul(function(a,l){return a/l},1),by=Do("floor");function yy(a){return a&&a.length?Ga(a,V,Bu):s}function Ay(a,l){return a&&a.length?Ga(a,ze(l,2),Bu):s}function _y(a){return mh(a,V)}function xy(a,l){return mh(a,ze(l,2))}function Sy(a){return a&&a.length?Ga(a,V,_o):s}function Ey(a,l){return a&&a.length?Ga(a,ze(l,2),_o):s}var My=Ul(function(a,l){return a*l},1),wy=Do("round"),Oy=Ul(function(a,l){return a-l},0);function Ty(a){return a&&a.length?eo(a,V):0}function Cy(a,l){return a&&a.length?eo(a,ze(l,2)):0}return _.after=kv,_.ary=Gm,_.assign=Pv,_.assignIn=ng,_.assignInWith=ic,_.assignWith=Jv,_.at=Wv,_.before=os,_.bind=fi,_.bindAll=p,_.bindKey=Jo,_.castArray=Yv,_.chain=Kl,_.chunk=Nv,_.compact=hm,_.concat=mm,_.cond=x,_.conforms=C,_.constant=I,_.countBy=Pl,_.create=Fv,_.curry=cs,_.curryRight=Wo,_.debounce=di,_.defaults=$v,_.defaultsDeep=ag,_.defer=lr,_.delay=fs,_.difference=Yt,_.differenceBy=Jn,_.differenceWith=Tr,_.drop=gm,_.dropRight=vm,_.dropRightWhile=Dv,_.dropWhile=Kf,_.fill=fa,_.filter=Tm,_.flatMap=sd,_.flatMapDeep=zv,_.flatMapDepth=Uv,_.flatten=Wn,_.flattenDeep=pm,_.flattenDepth=ii,_.flip=Hv,_.flow=ue,_.flowRight=K,_.fromPairs=Ki,_.functions=ig,_.functionsIn=lc,_.groupBy=Nm,_.initial=Wf,_.intersection=ir,_.intersectionBy=bm,_.intersectionWith=Gl,_.invert=lg,_.invertBy=ug,_.invokeMap=Zo,_.iteratee=ke,_.keyBy=Dm,_.keys=fn,_.keysIn=yn,_.map=ss,_.mapKeys=np,_.mapValues=ap,_.matches=Ue,_.matchesProperty=Rt,_.memoize=ds,_.merge=rp,_.mergeWith=ys,_.method=j,_.methodOf=L,_.mixin=Y,_.negate=hs,_.nthArg=et,_.omit=uc,_.omitBy=_d,_.once=qm,_.orderBy=Lm,_.over=Be,_.overArgs=Ym,_.overEvery=He,_.overSome=An,_.partial=fd,_.partialRight=Fo,_.partition=Bm,_.pick=ip,_.pickBy=nu,_.property=ht,_.propertyOf=pi,_.pull=Am,_.pullAll=Yl,_.pullAllBy=_m,_.pullAllWith=Qo,_.pullAt=xm,_.range=dp,_.rangeRight=sy,_.rearg=Im,_.reject=Ko,_.remove=Lv,_.rest=Vm,_.reverse=Ff,_.sampleSize=km,_.set=sg,_.setWith=og,_.shuffle=Bt,_.slice=St,_.sortBy=Hm,_.sortedUniq=Il,_.sortedUniqBy=$f,_.split=dc,_.spread=Gv,_.tail=Rr,_.take=Jt,_.takeRight=ui,_.takeRightWhile=Pi,_.takeWhile=ed,_.tap=id,_.throttle=dd,_.thru=Nn,_.toArray=ma,_.toPairs=xd,_.toPairsIn=Sd,_.toPath=hy,_.toPlainObject=tg,_.transform=Ed,_.unary=hd,_.union=Ta,_.unionBy=Vl,_.unionWith=ls,_.uniq=Fn,_.uniqBy=td,_.uniqWith=nd,_.unset=cg,_.unzip=Ql,_.unzipWith=us,_.update=sc,_.updateWith=up,_.values=au,_.valuesIn=Md,_.without=si,_.words=c,_.wrap=qv,_.xor=En,_.xorBy=oi,_.xorWith=Xl,_.zip=Zl,_.zipObject=ad,_.zipObjectDeep=rd,_.zipWith=Sm,_.entries=xd,_.entriesIn=Sd,_.extend=ng,_.extendWith=ic,Y(_,_),_.add=gy,_.attempt=d,_.camelCase=fg,_.capitalize=cc,_.ceil=vy,_.clamp=wd,_.clone=ms,_.cloneDeep=Qm,_.cloneDeepWith=at,_.cloneWith=Iv,_.conformsTo=md,_.deburr=Dr,_.defaultTo=ae,_.divide=py,_.endsWith=mi,_.eq=$n,_.escape=gi,_.escapeRegExp=As,_.every=Om,_.find=Cm,_.findIndex=Oa,_.findKey=$l,_.findLast=ud,_.findLastIndex=Pf,_.findLastKey=vs,_.floor=by,_.forEach=Rm,_.forEachRight=od,_.forIn=rg,_.forInRight=ep,_.forOwn=eu,_.forOwnRight=ps,_.get=bs,_.gt=gd,_.gte=Xm,_.has=Ad,_.hasIn=tu,_.head=Cr,_.identity=V,_.includes=Jl,_.indexOf=Jf,_.inRange=oc,_.invoke=tp,_.isArguments=Nr,_.isArray=Qe,_.isArrayBuffer=$o,_.isArrayLike=on,_.isArrayLikeObject=Wt,_.isBoolean=Vv,_.isBuffer=hi,_.isDate=Zm,_.isElement=Km,_.isEmpty=ec,_.isEqual=Ct,_.isEqualWith=vd,_.isError=cn,_.isFinite=Qv,_.isFunction=Ya,_.isInteger=tc,_.isLength=Ji,_.isMap=nc,_.isMatch=pd,_.isMatchWith=Xv,_.isNaN=Pm,_.isNative=Zv,_.isNil=Kv,_.isNull=Jm,_.isNumber=Wm,_.isObject=It,_.isObjectLike=Zt,_.isPlainObject=Ca,_.isRegExp=ac,_.isSafeInteger=bd,_.isSet=Fm,_.isString=rc,_.isSymbol=kn,_.isTypedArray=Wl,_.isUndefined=Ia,_.isWeakMap=yd,_.isWeakSet=$m,_.join=is,_.kebabCase=_s,_.last=Rn,_.lastIndexOf=ql,_.lowerCase=vi,_.lowerFirst=sp,_.lt=eg,_.lte=gs,_.max=yy,_.maxBy=Ay,_.mean=_y,_.meanBy=xy,_.min=Sy,_.minBy=Ey,_.stubArray=hp,_.stubFalse=mp,_.stubObject=oy,_.stubString=cy,_.stubTrue=fy,_.multiply=My,_.nth=ym,_.noConflict=re,_.noop=Oe,_.now=Po,_.pad=dg,_.padEnd=xs,_.padStart=op,_.parseInt=hg,_.random=Od,_.reduce=zm,_.reduceRight=Um,_.repeat=fc,_.replace=mg,_.result=lp,_.round=wy,_.runInContext=z,_.sample=jm,_.size=cd,_.snakeCase=cp,_.some=jv,_.sortedIndex=zt,_.sortedIndexBy=nt,_.sortedIndexOf=ct,_.sortedLastIndex=Et,_.sortedLastIndexBy=da,_.sortedLastIndexOf=li,_.startCase=hc,_.startsWith=gg,_.subtract=Oy,_.sum=Ty,_.sumBy=Cy,_.template=Ss,_.times=dy,_.toFinite=ur,_.toInteger=Ze,_.toLength=sr,_.toLower=Td,_.toNumber=Ra,_.toSafeInteger=Fl,_.toString=vt,_.toUpper=mc,_.trim=vg,_.trimEnd=fp,_.trimStart=gc,_.truncate=e,_.unescape=t,_.uniqueId=my,_.upperCase=n,_.upperFirst=u,_.each=Rm,_.eachRight=od,_.first=Cr,Y(_,(function(){var a={};return Cn(_,function(l,f){gt.call(_.prototype,f)||(a[f]=l)}),a})(),{chain:!1}),_.VERSION=o,ba(["bind","bindKey","curry","curryRight","partial","partialRight"],function(a){_[a].placeholder=_}),ba(["drop","take"],function(a,l){$e.prototype[a]=function(f){f=f===s?1:jt(Ze(f),0);var m=this.__filtered__&&!l?new $e(this):this.clone();return m.__filtered__?m.__takeCount__=Gt(f,m.__takeCount__):m.__views__.push({size:Gt(f,Q),type:a+(m.__dir__<0?"Right":"")}),m},$e.prototype[a+"Right"]=function(f){return this.reverse()[a](f).reverse()}}),ba(["filter","map","takeWhile"],function(a,l){var f=l+1,m=f==ge||f==R;$e.prototype[a]=function(b){var E=this.clone();return E.__iteratees__.push({iteratee:ze(b,3),type:f}),E.__filtered__=E.__filtered__||m,E}}),ba(["head","last"],function(a,l){var f="take"+(l?"Right":"");$e.prototype[a]=function(){return this[f](1).value()[0]}}),ba(["initial","tail"],function(a,l){var f="drop"+(l?"":"Right");$e.prototype[a]=function(){return this.__filtered__?new $e(this):this[f](1)}}),$e.prototype.compact=function(){return this.filter(V)},$e.prototype.find=function(a){return this.filter(a).head()},$e.prototype.findLast=function(a){return this.reverse().find(a)},$e.prototype.invokeMap=Pe(function(a,l){return typeof a=="function"?new $e(this):this.map(function(f){return Gi(f,a,l)})}),$e.prototype.reject=function(a){return this.filter(hs(ze(a)))},$e.prototype.slice=function(a,l){a=Ze(a);var f=this;return f.__filtered__&&(a>0||l<0)?new $e(f):(a<0?f=f.takeRight(-a):a&&(f=f.drop(a)),l!==s&&(l=Ze(l),f=l<0?f.dropRight(-l):f.take(l-a)),f)},$e.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},$e.prototype.toArray=function(){return this.take(Q)},Cn($e.prototype,function(a,l){var f=/^(?:filter|find|map|reject)|While$/.test(l),m=/^(?:head|last)$/.test(l),b=_[m?"take"+(l=="last"?"Right":""):l],E=m||/^find/.test(l);b&&(_.prototype[l]=function(){var T=this.__wrapped__,D=m?[1]:arguments,k=T instanceof $e,ie=D[0],se=k||Qe(T),de=function(st){var mt=b.apply(_,vr([st],D));return m&&Ee?mt[0]:mt};se&&f&&typeof ie=="function"&&ie.length!=1&&(k=se=!1);var Ee=this.__chain__,Le=!!this.__actions__.length,Ie=E&&!Ee,tt=k&&!Le;if(!E&&se){T=tt?T:new $e(this);var Ve=a.apply(T,D);return Ve.__actions__.push({func:Nn,args:[de],thisArg:s}),new Qn(Ve,Ee)}return Ie&&tt?a.apply(this,D):(Ve=this.thru(de),Ie?m?Ve.value()[0]:Ve.value():Ve)})}),ba(["pop","push","shift","sort","splice","unshift"],function(a){var l=lo[a],f=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",m=/^(?:pop|shift)$/.test(a);_.prototype[a]=function(){var b=arguments;if(m&&!this.__chain__){var E=this.value();return l.apply(Qe(E)?E:[],b)}return this[f](function(T){return l.apply(Qe(T)?T:[],b)})}}),Cn($e.prototype,function(a,l){var f=_[l];if(f){var m=f.name+"";gt.call(Sa,m)||(Sa[m]=[]),Sa[m].push({name:l,func:f})}}),Sa[Pt(s,fe).name]=[{name:"wrapper",func:s}],$e.prototype.clone=Cu,$e.prototype.reverse=co,$e.prototype.value=zi,_.prototype.at=Em,_.prototype.chain=ha,_.prototype.commit=Mm,_.prototype.next=wm,_.prototype.plant=ci,_.prototype.reverse=Xo,_.prototype.toJSON=_.prototype.valueOf=_.prototype.value=ld,_.prototype.first=_.prototype.head,Ni&&(_.prototype[Ni]=Bv),_}),Kr=Sl();Vr?((Vr.exports=Kr)._=Kr,pl._=Kr):en._=Kr}).call(Lx)})(Ld,Ld.exports)),Ld.exports}var p0=Bx();const S1=y0(p0),an={auth:r=>Ft.call("auth",r,[]),channelClose:r=>Ft.call("channelClose",r,[]),channelDeleteMessage:r=>Ft.call("channelDeleteMessage",r,[]),channelDocumentUpload:r=>Ft.callFormData("channelDocumentUpload",r),channelInfo:(r,i)=>Ft.call("channelInfo",r,i),channelList:(r,i)=>Ft.call("channelList",r,i),channelListLastMaxUpdated:()=>Ft.call("channelListLastMaxUpdated",{},[]),channelMessages:(r,i)=>Ft.call("channelMessages",r,i),channelMessagesLastMaxUpdated:r=>Ft.call("channelMessagesLastMaxUpdated",r,[]),channelReaction:r=>Ft.call("channelReaction",r,[]),channelSendMessage:(r,i)=>Ft.call("channelSendMessage",r,i),channelVoiceUpload:r=>Ft.callFormData("channelVoiceUpload",r),joinChannel:r=>Ft.call("joinChannel",r,[]),joinChannelLastMaxUpdated:()=>Ft.call("joinChannelLastMaxUpdated",{},[]),joinChannelList:(r,i)=>Ft.call("joinChannelList",r,i),mode:()=>Ft.call("mode",{},[]),pinnedMessage:r=>Ft.call("pinnedMessage",r,[]),profileID:()=>Ft.call("profileID",{},[])},E1=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const i=crypto.getRandomValues(new Uint8Array(1))[0]&15;return(r==="x"?i:i&3|8).toString(16)}),zx=(r,i)=>{const s=new TextEncoder().encode(r),o=new TextEncoder().encode(i),h=new Uint8Array(s.length);for(let g=0;g<s.length;g++)h[g]=s[g]^o[g%o.length];return btoa(String.fromCharCode(...Array.from(h)))},Sg=(r,i)=>{const s=atob(r),o=new Uint8Array(s.length);for(let v=0;v<s.length;v++)o[v]=s.charCodeAt(v);const h=new TextEncoder().encode(i),g=new Uint8Array(o.length);for(let v=0;v<o.length;v++)g[v]=o[v]^h[v%h.length];return new TextDecoder().decode(g)};class Ft{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(i){this.defaultExtensions=i}static abortControllerTimeout=3e4;static setAbortControllerTimeout(i){this.abortControllerTimeout=i}static setStorage(i){this.storage=i}static useEncrypt=!1;static setUseEncrypt(i){this.useEncrypt=i}static setNetworkErrorHandler(i){this.networkErrorHandler=i}static async init(){if(!this.initialized){if(this.storage)try{const i=await this.storage.get(this.ENDPOINT_INDEX_KEY);if(i!==null){const s=parseInt(i,10);!isNaN(s)&&s>=0&&s<this.endpoints.length&&(this.currentEndpointIndex=s)}}catch(i){console.log("⚠️ Ошибка при загрузке индекса endpoint:",i)}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(i){console.log("⚠️ Ошибка при сохранении индекса endpoint:",i)}}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(i=>setTimeout(i,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 i=this.getCurrentEndpoint().split("://")[0],o=this.getCurrentEndpoint().split("://")[1].split("/")[0];return`${i}://${o}`}static isNetworkError(i){return i.name==="AbortError"||i.name==="TimeoutError"||i.name==="TypeError"||i.message?.includes("Network request failed")||i.message?.includes("Failed to fetch")||i.message?.includes("NetworkError")}static setToken(i){this.tokenGetter=i}static setTokenAsync(i){this.tokenGetterAsync=i}static setUnauthorizedHandler(i){this.unauthorizedHandler=i}static setToast(i){this.toastHandler=i}static setEndpoints(i){this.endpoints=i,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(i){this.headers={...this.headers,...i}}static handleError(i){(i?.type==="UNAUTHORIZED"||i?.type==="UNAUTHENTICATED")&&this.unauthorizedHandler&&this.unauthorizedHandler(),i?.message&&this.toastHandler&&this.toastHandler(i.message)}static async callFormData(i,s){await this.waitForEndpoints();const o=this.getCurrentEndpoint();s.append("method",i);let h=await this.getTokenAsync();h&&s.append("token",h),s.append("timezone",Intl.DateTimeFormat().resolvedOptions().timeZone);const g=this.useEncrypt?E1():void 0;this.useEncrypt&&g&&s.append("context",g);const v={...this.headers};delete v["Content-Type"];const y=new AbortController,A=setTimeout(()=>{y.abort()},this.abortControllerTimeout);return fetch(o,{method:"POST",headers:v,body:s,signal:y.signal}).then(S=>S.json()).then(S=>{if(clearTimeout(A),this.useEncrypt&&g&&(S.result&&(S.result=JSON.parse(Sg(S.result,g))),S.extensions&&(S.extensions=JSON.parse(Sg(S.extensions,g)))),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(i,s,o){await this.waitForEndpoints();const h=this.getCurrentEndpoint(),g=this.useEncrypt?E1():void 0;let v=o??this.defaultExtensions;const y=await this.getTokenAsync(),A={method:i,extensions:v,context:g,token:y,params:s?g?zx(JSON.stringify(s??{}),g):s:void 0,id:Date.now().toString()};console.log("🚀🚀🚀 method: ",i," RPC Endpoint: ",h),console.log("🚀🚀🚀 method: ",i," 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(N=>N.json()).then(N=>{if(clearTimeout(O),this.useEncrypt&&g&&(N.result&&(N.result=JSON.parse(Sg(N.result,g))),N.extensions&&(N.extensions=JSON.parse(Sg(N.extensions,g)))),console.log("🍪🍪🍪 method: ",i," RPC Response: ",JSON.stringify(N)),N?.error)throw this.handleError(N.error),N.error;return this.saveEndpointIndex(),N?.extensions&&C0.addToStore(N.extensions),N}).catch(N=>{throw clearTimeout(O),this.isNetworkError(N)&&(this.networkErrorHandler&&this.networkErrorHandler(),this.switchToNextEndpoint()),console.log("🛑🛑🛑 RPC Error: ",JSON.stringify(A)),N})}}class C0{static storage=null;static setStorage(i){this.storage=i}static async loadFromStorage(){if(this.storage){const i=await this.storage.get("extensionsStore");if(i)try{let s=JSON.parse(i);p0.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=p0.debounce(()=>{this.storage&&this.storage.save("extensionsStore",JSON.stringify(this.store))},1e3);static store={shmChannelMessages:{},shmChannels:{}};static addToStore(i){if(i?.shmChannelMessages&&i?.shmChannelMessages.length>0)for(const s of i?.shmChannelMessages)s?._id&&(this.store.shmChannelMessages[s._id]=s);if(i?.shmChannels&&i?.shmChannels.length>0)for(const s of i?.shmChannels)s?._id&&(this.store.shmChannels[s._id]=s);this.saveToStorage()}static shmChannelMessagesByID(i){return i?this.store.shmChannelMessages?.[i]?this.store.shmChannelMessages[i]:(console.info("📕 Extension shmChannelMessages not found by ID: "+i),null):null}static shmChannelsByID(i){return i?this.store.shmChannels?.[i]?this.store.shmChannels[i]:(console.info("📕 Extension shmChannels not found by ID: "+i),null):null}static shmChannelMessagesByIDs(i){if(!i)return[];const s=[];for(const o of i)this.store.shmChannelMessages[o]&&s.push(this.store.shmChannelMessages[o]);return s.length===0&&console.info("📕 Extensions shmChannelMessages not found by IDs: "+i.join(", ")),s}static shmChannelsByIDs(i){if(!i)return[];const s=[];for(const o of i)this.store.shmChannels[o]&&s.push(this.store.shmChannels[o]);return s.length===0&&console.info("📕 Extensions shmChannels not found by IDs: "+i.join(", ")),s}}const $b=le.createRef(),Ux=r=>{$b.current?.show(r)},jx=le.forwardRef((r,i)=>{const[s,o]=le.useState(null);return le.useImperativeHandle(i,()=>({show:h=>{o(h)}})),le.useEffect(()=>{if(s){const h=setTimeout(()=>{o(null)},3e3);return()=>clearTimeout(h)}},[s]),U.jsx(eb,{opened:!!s,onClick:()=>{o(null)},title:s,button:!0})}),kx=window.location.hostname==="localhost"||window.location.port=="8888",Hx=()=>{if(kx)return"http://localhost:8888/chat/support";let r=window.location.href;return r=r.split("#")[0],r=r.split("?")[0],r};var ey={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},M1=J.createContext&&J.createContext(ey),Gx=["attr","size","title"];function qx(r,i){if(r==null)return{};var s=Yx(r,i),o,h;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(r);for(h=0;h<g.length;h++)o=g[h],!(i.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(r,o)&&(s[o]=r[o])}return s}function Yx(r,i){if(r==null)return{};var s={};for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){if(i.indexOf(o)>=0)continue;s[o]=r[o]}return s}function Ig(){return Ig=Object.assign?Object.assign.bind():function(r){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},Ig.apply(this,arguments)}function w1(r,i){var s=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);i&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(r,h).enumerable})),s.push.apply(s,o)}return s}function Vg(r){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?w1(Object(s),!0).forEach(function(o){Ix(r,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(s)):w1(Object(s)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(s,o))})}return r}function Ix(r,i,s){return i=Vx(i),i in r?Object.defineProperty(r,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):r[i]=s,r}function Vx(r){var i=Qx(r,"string");return typeof i=="symbol"?i:i+""}function Qx(r,i){if(typeof r!="object"||!r)return r;var s=r[Symbol.toPrimitive];if(s!==void 0){var o=s.call(r,i);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}function ty(r){return r&&r.map((i,s)=>J.createElement(i.tag,Vg({key:s},i.attr),ty(i.child)))}function _n(r){return i=>J.createElement(Xx,Ig({attr:Vg({},r.attr)},i),ty(r.child))}function Xx(r){var i=s=>{var{attr:o,size:h,title:g}=r,v=qx(r,Gx),y=h||s.size||"1em",A;return s.className&&(A=s.className),r.className&&(A=(A?A+" ":"")+r.className),J.createElement("svg",Ig({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},s.attr,o,v,{className:A,style:Vg(Vg({color:r.color||s.color},s.style),r.style),height:y,width:y,xmlns:"http://www.w3.org/2000/svg"}),g&&J.createElement("title",null,g),r.children)};return M1!==void 0?J.createElement(M1.Consumer,null,s=>i(s)):i(ey)}function Zx(r){return _n({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:[]}]})(r)}function Kx(r){return _n({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:[]}]})(r)}function R0(r){return _n({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:[]}]})(r)}const Px="/new-message.mp3";class Jx{constructor(){qb(this)}mode="widget";setMode(i){this.mode=i}isFixedChannel=!1;setIsFixedChannel(i){this.isFixedChannel=i}userID=null;loadUser(){an.profileID().then(({result:i})=>{this.userID=i??null})}isMobile=()=>window.innerWidth<768||this.cap;cap=!1;setCap(i){this.cap=i}channelTab="member";setChannelTab(i){this.channelTab=i}selectChannel=null;setSelectChannel(i){this.selectChannel=i}dialogsLoading=!1;channelList=[];channelListLastMaxUpdated=null;joinChannelListLastMaxUpdated=null;channelListPollingInterval=null;loadChannelList(){const i=this.channelList.length===0;i&&(this.dialogsLoading=!0);const s=!this.channelTab||this.channelTab==="member";(s?an.channelList({},["shmChannelMessages"]):an.joinChannelList({},["shmChannelMessages"])).then(({result:h})=>{iu(()=>{this.channelList=h?.data??[],s?this.channelListLastMaxUpdated=h?.lastMaxUpdated??null:this.joinChannelListLastMaxUpdated=h?.lastMaxUpdated??null})}).finally(()=>{iu(()=>{i&&(this.dialogsLoading=!1)})})}startChannelListPolling(){this.stopChannelListPolling();const i=5e3;this.channelListPollingInterval=setInterval(()=>{const s=!this.channelTab||this.channelTab==="member";(s?an.channelListLastMaxUpdated:an.joinChannelLastMaxUpdated)().then(({result:h})=>{const g=s?this.channelListLastMaxUpdated:this.joinChannelListLastMaxUpdated;h!=null&&h!==g&&this.loadChannelList()})},i)}stopChannelListPolling(){this.channelListPollingInterval&&(clearInterval(this.channelListPollingInterval),this.channelListPollingInterval=null)}}const Ke=new Jx,Wx=5e3,Fx=new Audio(Px);class $x{channelID=void 0;channel=null;joinInChannel=null;messagesList=[];messagesLastMaxUpdated=null;loadMessagesPollingInterval=null;replyMsg=null;sending=!1;messageText="";recording=!1;constructor(){qb(this)}get pinnedMessage(){const i=this.messagesList?.filter(s=>s.pinned?.enabled);return i?.[i.length-1]??null}openChannel(i){this.channelID=i,this.channel=null,this.joinInChannel=null,this.messagesList=[],this.replyMsg=null,this.loadMessagesPollingInterval&&(clearInterval(this.loadMessagesPollingInterval),this.loadMessagesPollingInterval=null),i&&this.refreshChannel()}refreshChannel(){this.channel=null,this.joinInChannel=null,this.channelID&&an.channelInfo({channel:this.channelID}).then(({result:i})=>{iu(()=>{if(i){this.channel=i;const s=i?.members?.find(o=>o.owner==Ke.userID);this.joinInChannel=!!s}})})}updateChannelInfo(){this.channelID&&an.channelInfo({channel:this.channelID}).then(({result:i})=>{iu(()=>{if(i){this.channel=i;const s=i?.members?.find(o=>o.owner==Ke.userID);this.joinInChannel=!!s}})})}loadMessages(){this.channel?._id&&an.channelMessages({channel:this.channel._id,limit:50,offset:0},["shmChannelMessages"]).then(({result:i})=>{iu(()=>{this.messagesList=i?.data??[],this.messagesLastMaxUpdated=i?.lastMaxUpdated??null})})}startMessagesPolling(i){this.channel?._id&&(this.stopMessagesPolling(),this.loadMessagesPollingInterval=setInterval(()=>{an.channelMessagesLastMaxUpdated({channel:this.channel._id}).then(({result:s})=>{s!=null&&s!==this.messagesLastMaxUpdated&&(this.updateChannelInfo(),an.channelMessages({channel:this.channel._id,limit:50,offset:0},["shmChannelMessages"]).then(({result:o})=>{iu(()=>{const h=this.messagesList[this.messagesList.length-1]?._id,g=o?.data??[],v=g[g.length-1],y=v?._id;h&&y&&h!==y&&(i?.(),v?.owner!=Ke.userID&&Fx.play()),this.messagesList=g,this.messagesLastMaxUpdated=o?.lastMaxUpdated??null})}))})},Wx))}stopMessagesPolling(){this.loadMessagesPollingInterval&&(clearInterval(this.loadMessagesPollingInterval),this.loadMessagesPollingInterval=null)}setJoinInChannel(i){this.joinInChannel=i}setReplyMsg(i){this.replyMsg=i}setMessageText(i){this.messageText=i}setRecording(i){this.recording=i}setSending(i){this.sending=i}async sendMessage(i){if(this.channel?._id){i.channel=this.channel._id,this.replyMsg?._id&&(i.reply=this.replyMsg._id),this.sending=!0;try{await an.channelSendMessage(i),this.loadMessages(),iu(()=>{this.replyMsg&&(this.replyMsg=null),i.text&&(this.messageText="")})}finally{iu(()=>{this.sending=!1})}}}resetCompose(){this.replyMsg=null,this.messageText=""}}const Te=new $x,ny="data:image/jpeg;base64, ";function e4(r){return _n({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M1 8a7 7 0 1 0 14 0A7 7 0 0 0 1 8m15 0A8 8 0 1 1 0 8a8 8 0 0 1 16 0m-4.5-.5a.5.5 0 0 1 0 1H5.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L5.707 7.5z"},child:[]}]})(r)}function ay(r){return _n({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:[]}]})(r)}function ry(r){return _n({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:[]}]})(r)}function t4(r){return _n({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:[]}]})(r)}const O1=new Map,n4=r=>{const i=[];let h=25;for(let g=0;g<r;g++){const v=(Math.random()-.5)*10,y=Math.max(10,Math.min(50,h+v));i.push(Math.round(y)),h=y}return i},a4=({src:r,barsCount:i=30,cacheKey:s})=>{const o=le.useRef(null),[h,g]=le.useState(!1),[v,y]=le.useState(0),[A,S]=le.useState(0),[O,N]=le.useState([]);le.useEffect(()=>{const G=s??r,W=O1.get(G);if(W&&W.length===i){N(W);return}const fe=n4(i);O1.set(G,fe),N(fe)},[i,s,r]),le.useEffect(()=>{const G=o.current;if(!G)return;const W=()=>{G.duration&&y(G.currentTime/G.duration*100)},fe=()=>{S(G.duration||0)};return G.addEventListener("timeupdate",W),G.addEventListener("loadedmetadata",fe),G.addEventListener("ended",()=>g(!1)),()=>{G.removeEventListener("timeupdate",W),G.removeEventListener("loadedmetadata",fe)}},[]);const q=()=>{const G=o.current;G&&(h?G.pause():G.play(),g(!h))},Z=G=>{const W=o.current;if(!W||!A)return;const fe=G/O.length*A;W.currentTime=fe},H=Math.floor(v/100*O.length);return U.jsxs("div",{className:"flex items-end  mt-4",onClick:G=>{G.preventDefault(),G.stopPropagation()},children:[U.jsx("audio",{ref:o,src:r,preload:"metadata"}),U.jsx("div",{children:U.jsx("div",{onClick:G=>{G.preventDefault(),G.stopPropagation(),q()},className:"mr-1",children:h?U.jsx(Zx,{size:28}):U.jsx(Kx,{size:28})})}),U.jsx("div",{className:"flex items-end space-x-1 flex-1  cursor-pointer overflow-hidden",children:O.map((G,W)=>U.jsx("div",{onClick:fe=>{fe.preventDefault(),fe.stopPropagation(),Z(W)},className:`w-[2px] rounded-sm transition-colors duration-200 bg-black dark:bg-white ${W<=H?"opacity-100":"opacity-50"}`,style:{height:`${G}px`}},W))})]})};function r4(r){return _n({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:[]}]})(r)}function i4(r){return _n({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:[]}]})(r)}function l4(r){return _n({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:[]}]})(r)}function T1(r){return _n({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:[]}]})(r)}function C1(r){return _n({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:[]}]})(r)}function u4(r){return _n({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:[]}]})(r)}const N0=({doc:r,size:i=40,className:s=""})=>{const o=r?.type;if(!o)return U.jsx(C1,{size:i,className:s});const h={image:i4,audio:r4,video:u4,"application/pdf":l4,"application/zip":T1,"application/x-zip-compressed":T1};if(h[o]){const v=h[o];return U.jsx(v,{size:i,className:s})}const g=o.split("/")[0];if(g=="image")return U.jsx("img",{src:r.url,alt:r.name,style:{width:i,height:i},className:` object-cover ${s} rounded-xl bg-white`});if(h[g]){const v=h[g];return U.jsx(v,{size:i,className:s})}return U.jsx(C1,{size:i,className:s})},iy=({msg:r,onClick:i})=>{const s=!!r.deleted;return U.jsx("div",{className:"mb-2 mt-2 border-l-2 border-gray-500 pl-2",children:U.jsx("div",{onClick:o=>{o.stopPropagation(),i()},id:`replay-msg-${r._id}`,children:s?U.jsx(U.Fragment,{children:U.jsxs("div",{className:"opacity-80 text-sm flex items-center gap-2",children:[U.jsx(ry,{className:"w-4 h-4"})," Сообщение удалено"]})}):U.jsxs(U.Fragment,{children:[U.jsx("div",{children:r.text}),r.voice?.url&&U.jsx("div",{className:"text-sm ",children:"Аудио сообщение"}),r.attachments?.map(o=>U.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[U.jsx(N0,{doc:o}),U.jsx("div",{children:o.name})]}))]})})})};rl.locale("ru");const b0=[{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"}],s4=r=>{const i=b0.find(s=>s.value===r);return i?i.name:""},o4=({onReplayClick:r,msg:i,onClick:s,onChange:o})=>{const h=S=>{an.channelReaction({message:i._id,channel:i.channel,reaction:S}).then(()=>{o()})},g=()=>{if(!i.reactions||i.reactions.length==0)return null;const S=S1.groupBy(i.reactions,O=>O.type);return U.jsx("div",{className:"flex items-center space-x-1 mt-2",children:S1.map(S,(O,N)=>U.jsx(Ud,{onClick:q=>{q.stopPropagation(),h(N)},media:U.jsx("div",{className:"ml-2",children:s4(N)}),className:"m-1 cursor-pointer",children:U.jsx("span",{className:"font-medium",children:O.length})},N))})},v=C0.shmChannelMessagesByID(i.reply),y=!!i.deleted;return i.type=="system"?U.jsx("div",{className:"text-sm  text-center p-6 opacity-70",children:i.text}):U.jsx(U.Fragment,{children:U.jsx(F1,{onClick:()=>{y||s()},type:i.owner!=Ke.userID?"received":"sent",name:i.owner??"",text:y?U.jsxs("div",{className:"opacity-80 text-sm flex items-center gap-2",children:[U.jsx(ry,{className:"w-4 h-4"})," Сообщение удалено"]}):U.jsxs("div",{id:`msg-${i._id}`,children:[!!v&&U.jsx(iy,{msg:v,onClick:()=>{v&&r(v)}}),U.jsx("div",{children:i.text}),i.voice?.url&&U.jsx(a4,{src:i.voice?.url,cacheKey:i._id}),i.attachments?.map(S=>U.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[U.jsx(N0,{doc:S}),U.jsx("div",{children:S.name}),U.jsx("div",{onClick:O=>{O.stopPropagation(),window.open(S.url,"_blank")},children:U.jsx(t4,{})})]})),U.jsx(g,{})]}),footer:U.jsx("div",{children:i.created_at&&rl.unix(i.created_at).format("DD.MM hh:mm")})},i._id)})},c4=({msg:r,onClick:i,onPin:s})=>U.jsxs("div",{className:"mb-2 mt-2 border-l-2 w-full border-gray-500 pl-2  flex justify-between items-center",children:[U.jsxs("div",{className:"active:opacity-50 cursor-pointer",onClick:o=>{o.stopPropagation(),i()},id:`pin-msg-${r._id}`,children:[U.jsx("div",{children:r.text}),r.voice?.url&&U.jsx("div",{className:"text-sm text-gray-500",children:"Аудио сообщение"}),r.attachments?.map(o=>U.jsxs("div",{className:"cursor-pointer active:opacity-50 flex items-center space-x-2",children:[U.jsx(N0,{doc:o}),U.jsx("div",{children:o.name})]}))]}),U.jsx("div",{className:"cursor-pointer active:opacity-50 p-2",onClick:o=>{o.stopPropagation(),s()},children:U.jsx(R0,{})})]}),f4=le.forwardRef((r,i)=>{const[s,o]=le.useState(null),h=le.useRef(null);le.useImperativeHandle(i,()=>({open:N=>{v(!0),o(N.msg),h.current=N}}));const[g,v]=le.useState(!1),y=()=>{v(!1)},A=N=>{y(),an.channelReaction({channel:s?.channel,message:s?._id,reaction:N}).then(()=>{h.current?.onChange?.()})},S=()=>{const N=s?.reactions?.find(q=>q.user==Ke.userID);return U.jsxs("div",{className:" p-2",children:[U.jsx("div",{className:"flex  justify-around items-center",children:b0.map((q,Z)=>{if(Z<5)return U.jsx(Ud,{outline:N?.type!=q.value,className:"m-1 cursor-pointer",onClick:()=>{A(q.value)},children:q.name},q.value)})}),U.jsx("div",{className:"flex  justify-around items-center",children:b0.map((q,Z)=>{if(Z>=5)return U.jsx(Ud,{outline:N?.type!=q.value,className:"m-1 cursor-pointer",onClick:()=>{A(q.value)},children:q.name},q.value)})})]})},O=s?.owner==Ke.userID;return!g||!s?._id?null:U.jsxs(tb,{opened:g&&!!s?._id,target:`#msg-${s?._id}`,onBackdropClick:y,className:"w-[300px]",children:[U.jsx(S,{}),U.jsxs(Kg,{nested:!0,children:[U.jsx(xc,{title:"Ответить",link:!0,onClick:()=>{s&&(h.current?.onReply?.(s),y())}}),U.jsx(xc,{title:s?.pinned?.enabled?"Убрать закрепление":"Закрепить",link:!0,onClick:()=>{s&&(h.current?.onPinned?.(),y())}}),O&&U.jsx(xc,{title:U.jsx("span",{className:"text-red-500",children:"Удалить"}),link:!0,onClick:()=>{s&&(h.current?.onDelete?.(),y())}})]})]})}),d4=il(()=>{const r=le.useRef(null),i=le.useRef(null),s=()=>{setTimeout(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},100)};le.useEffect(()=>(Te.channel?._id&&(Te.loadMessages(),Te.channel?.closed?Te.stopMessagesPolling():Te.startMessagesPolling(s)),()=>Te.stopMessagesPolling()),[Te.channel?._id,Te.channel?.closed]),le.useEffect(()=>{Te.messagesList?.length&&r.current&&s()},[Te.messagesList?.length]);const o=h=>{if(!h){console.warn("Не указан ID сообщения для скрола");return}let v=document.getElementById(`msg-${h}`)?.parentElement?.parentElement?.parentElement?.parentElement?.offsetTop;v&&r.current?setTimeout(()=>{v&&r.current&&r.current.scrollTo({top:v-100,behavior:"smooth"})},100):console.warn(`Не найден элемент с ID msg-${h}`)};return U.jsxs(U.Fragment,{children:[!!Te.pinnedMessage&&U.jsx($1,{top:!0,children:U.jsx(c4,{onPin:()=>{an.pinnedMessage({message:Te.pinnedMessage._id}).then(()=>{Te.loadMessages()})},onClick:()=>{o(Te.pinnedMessage._id)},msg:Te.pinnedMessage})}),U.jsxs("div",{ref:r,className:"overflow-y-scroll h-screen ",children:[U.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-cover bg-center opacity-20",style:{background:`url(${ny})`}}),U.jsxs("div",{className:"flex flex-col relative z-1 px-4 mb-48",children:[Te.messagesList?.map(h=>U.jsx(o4,{onReplayClick:g=>{o(g._id)},onClick:()=>{i.current?.open({msg:h,onChange:()=>{Te.loadMessages()},onPinned:()=>{an.pinnedMessage({message:h._id}).then(()=>{Te.loadMessages()})},onDelete:()=>{an.channelDeleteMessage({message:h._id,channel:Te.channel?._id}).then(()=>{Te.loadMessages()})},onReply:g=>{Te.setReplyMsg(g)}})},onChange:()=>{Te.loadMessages()},msg:h},h._id)),!Te.channel?.closed&&Te.channel?.type=="support"&&Te.channel?.members?.find(h=>h.owner==Ke.userID)&&U.jsx("div",{onClick:()=>{an.channelClose({channel:Te.channel?._id}).then(()=>{Te.loadMessages(),Te.refreshChannel()})},className:"flex justify-center items-center cursor-pointer active:opacity-50",children:U.jsx(Ud,{children:"Закрыть обращение"})})]}),U.jsx(f4,{ref:i})]})]})});function ly(r){return _n({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:[]}]})(r)}function h4(r){return _n({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:[]}]})(r)}const m4="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/",g4=({onCancel:r,onSend:i})=>{const[s,o]=le.useState(0),h=le.useRef(null),g=le.useRef(null),v=le.useRef(null),y=le.useRef(null),A=le.useRef([]),S=le.useRef(!1);le.useEffect(()=>S.current?void 0:(S.current=!0,(async()=>{try{const H=await navigator.mediaDevices.getUserMedia({audio:!0});v.current=H;const G=new MediaRecorder(H,{mimeType:"audio/webm"});G.ondataavailable=W=>A.current.push(W.data),G.onstop=()=>{const W=new Blob(A.current,{type:"audio/webm"});h.current=W,A.current=[]},G.start(),g.current=G,y.current=setInterval(()=>o(W=>W+1),1e3)}catch(H){console.error("🎙 Не удалось получить доступ к микрофону",H),r()}})(),()=>{y.current&&clearInterval(y.current)}),[]);const O=()=>{g?.current?.stop(),v.current?.getTracks().forEach(Z=>Z.stop()),y.current&&clearInterval(y.current),setTimeout(()=>{h.current&&i(h.current)},200)},N=()=>{g?.current?.stop(),v.current?.getTracks().forEach(Z=>Z.stop()),y.current&&clearInterval(y.current),r()},q=Z=>`${Math.floor(Z/60)}:${(Z%60).toString().padStart(2,"0")}`;return U.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-60 flex flex-col items-center justify-center z-50",children:U.jsxs("div",{className:"flex  items-start space-x-4 ",children:[U.jsx("div",{onClick:N,className:" bg-gray-600 text-white p-6 rounded-full",children:U.jsx(R0,{size:36})}),U.jsxs("div",{className:"flex flex-col items-center space-y-2",children:[U.jsx("div",{className:"animate-pulse bg-red-600 p-6 rounded-full",children:U.jsx(ly,{className:"text-white",size:36})}),U.jsx("div",{className:"text-white text-xl",children:q(s)})]}),U.jsx("div",{className:" bg-green-600 text-white  p-6 rounded-full",onClick:O,children:U.jsx(ay,{size:36})})]})})};async function v4(){return new Promise(r=>{const i=document.createElement("input");i.type="file",i.style.display="none",i.addEventListener("change",()=>{const s=i.files?.[0]??null;if(i.remove(),s&&s.size>5242880){alert("❌ Файл слишком большой. Максимальный размер — 5MB."),r(null);return}r(s)}),document.body.appendChild(i),i.click()})}const p4=new Audio(m4),b4=il(()=>{const r=Te.channel?._id??"",i=le.useRef(null),s=()=>{Te.sending||v4().then(v=>{v&&o(v)})},o=v=>{const y=new FormData;y.append("file",v),Te.setSending(!0),an.channelDocumentUpload(y).then(A=>{if(!A||!r){Te.setSending(!1);return}Te.sendMessage({attachments:[A],channel:r})}).catch(()=>Te.setSending(!1))},h=v=>{r&&Te.sendMessage({...v,channel:r}).then(()=>{p4.play(),v.text&&i.current&&(i.current.style.height="auto")})},g=()=>{Te.sending||(Te.messageText?h({text:Te.messageText}):Te.setRecording(!0))};return U.jsxs(U.Fragment,{children:[U.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:[Te.sending&&U.jsx("div",{className:"flex items-center justify-center w-full  mb-2",children:U.jsx(x0,{className:"w-4 h-4 text-gray-800 dark:text-white"})}),Te.replyMsg&&U.jsx(iy,{onClick:()=>{Te.sending||Te.setReplyMsg(null)},msg:Te.replyMsg}),U.jsxs("div",{className:"w-full  flex",children:[U.jsx("div",{className:"flex items-end",children:U.jsx("div",{className:"p-2 flex items-center justify-center min-h-11",children:U.jsx("div",{onClick:()=>{s()},children:U.jsx(h4,{className:"text-gray-500",size:20})})})}),U.jsx("textarea",{ref:i,value:Te.messageText,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:v=>{if(Te.sending)return;const y=v.currentTarget;y.style.height="auto",y.style.height=`${y.scrollHeight}px`;let A=v.target?.value;A.trim()===""&&(A=""),Te.setMessageText(A)},placeholder:"Введите сообщение..."}),U.jsx("div",{className:"flex items-end w-10 ",children:U.jsx("div",{onClick:()=>{g()},className:"p-2 flex items-center justify-center min-h-11 relative",children:Te.messageText?U.jsxs(U.Fragment,{children:[U.jsx("input",{onFocus:()=>{i.current?.focus()},className:"absolute opacity-0  right-0 left-0 top-0 bottom-0  cursor-pointer"}),U.jsx(ay,{size:28,className:"w-6"})]}):U.jsx(ly,{size:28,className:"w-6"})})})]})]}),Te.recording&&U.jsx(g4,{onCancel:()=>Te.setRecording(!1),onSend:v=>{const y=new FormData;y.append("file",v,"audio.webm"),Te.setSending(!0),an.channelVoiceUpload(y).then(A=>{A?._id&&r?h({voice:{_id:A._id}}):Te.setSending(!1)}).catch(()=>Te.setSending(!1)),Te.setRecording(!1)}})]})});rl.locale("ru");const y4=il(({noPage:r})=>{const i=({children:s})=>r?U.jsx("div",{className:"relative w-full h-full",children:s}):U.jsx(Ec,{className:"ios:bg-white ios:dark:bg-black overflow-hidden",children:s});return U.jsxs(i,{children:[!Ke.cap&&U.jsx(jd,{title:Te.channel?.name?Te.channel?.name:"Диалог",right:Ke.isMobile()&&U.jsx(U.Fragment,{children:U.jsx(Ng,{onClick:()=>{B4()},children:U.jsx(R0,{size:24})})})}),!Te.channel?.closed&&Te.joinInChannel!=null&&!!Te.channel?._id&&U.jsx(U.Fragment,{children:Te.joinInChannel?U.jsx(b4,{}):Ke.mode=="full"?U.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:[" ",U.jsx(Zg,{onClick:()=>{Te.channel?._id&&an.joinChannel({channel:Te.channel._id}).then(({result:s})=>{s&&Te.updateChannelInfo()})},children:"Присоединиться"})]}):null}),U.jsx(d4,{})]})}),A4=({noPage:r,channelID:i})=>(le.useEffect(()=>(Te.openChannel(i),()=>Te.stopMessagesPolling()),[i]),U.jsx(y4,{noPage:r})),uy=il(A4);rl.locale("ru");const _4=()=>{const r=async()=>{let i=await an.mode();if(i.result=="widget"){Ft.setToken(()=>new URLSearchParams(window.location.search).get("token")??null);const o=new URLSearchParams(window.location.search).get("channel");if(Ke.loadUser(),o){Ke.setIsFixedChannel(!0),Ms().ChannelPage.move({channelID:o});return}else Ms().MainPage.move({}),Ke.setIsFixedChannel(!1)}else Ft.setUnauthorizedHandler(()=>{localStorage.removeItem("token"),window.location.reload()}),Ft.setToken(()=>localStorage.getItem("token")??null),Ft.setUnauthorizedHandler(()=>{localStorage.removeItem("token"),window.location.reload()}),Ke.setMode(i.result??"full"),localStorage.getItem("token")?(Ke.loadUser(),Ms().MainPage.move({})):Ms().LoginPage.move({})};return le.useEffect(()=>{r()},[]),U.jsx(Ec,{className:"ios:bg-white ios:dark:bg-black overflow-hidden flex items-center justify-center",children:U.jsx(x0,{})})},x4=il(_4);function S4(r){return _n({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:[]}]})(r)}rl.locale("ru");const E4=()=>{const[r,i]=le.useState(""),[s,o]=le.useState(""),[h,g]=le.useState(!1),v=()=>{g(!0),an.auth({login:r,password:s}).then(({result:y})=>{y&&(localStorage.setItem("token",y),Ms().MainPage.move({}))}).catch(y=>{g(!1)})};return U.jsxs(Ec,{className:"ios:bg-white ios:dark:bg-black overflow-hidden",children:[U.jsx(jd,{title:"Вход",large:!0}),U.jsxs(Kg,{dividers:!0,outline:!0,children:[U.jsx(Xp,{label:"Логин",placeholder:"Введите логин",value:r,onChange:y=>i(y.target.value)}),U.jsx(Xp,{label:"Пароль",placeholder:"Введите пароль",value:s,onChange:y=>o(y.target.value)})]}),U.jsx(Z1,{children:U.jsx(Zg,{disabled:!r||!s||h,large:!0,outline:!0,onClick:()=>{v()},children:h?U.jsx(S4,{className:"animate-spin"}):"Вход"})})]})},M4=il(E4);function R1(r){return _n({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:[]}]})(r)}function w4(r){return _n({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:[]}]})(r)}function O4(r){return _n({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:[]}]})(r)}function T4(r){return _n({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:[]}]})(r)}const C4=({className:r})=>U.jsx("div",{className:`w-full  bg-gray-200 animate-pulse ${r}`});rl.locale("ru");const R4=({message:r})=>r?.deleted?"Удалено":r?r?.text?r?.text:r.attachments?.length?"Прикрепленные файлы":r?.voice?.url?"Аудио сообщение":"...":"...",N4=({channelTab:r,onSelectChannel:i})=>(le.useEffect(()=>(Ke.loadChannelList(),Ke.startChannelListPolling(),()=>Ke.stopChannelListPolling()),[r]),U.jsx(Kg,{strong:!0,outline:!0,children:Ke.dialogsLoading?U.jsx("div",{children:[1,2,3,4].map(()=>U.jsx(C4,{className:"h-20 mb-2"}))}):Ke.channelList.length?Ke.channelList.map(s=>{const o=C0.shmChannelMessagesByID(s.lastMessage),h=s.unreadCounts?.[Ke.userID]??0;return U.jsx(xc,{style:{opacity:s.closed?.5:1},after:h?U.jsx(X1,{children:h}):void 0,link:!0,onClick:()=>{s._id&&i(s)},chevron:!1,title:s.name?s.name:"Без имени",header:s.closed?"Диалог закрыт":void 0,text:U.jsx(R4,{message:o}),footer:s.created_at?rl(s.created_at).format("DD.MM.YYYY HH:mm"):"",media:U.jsx("div",{className:"w-10 h-10 flex items-center justify-center text-2xl text-gray-500 bg-gray-100 rounded-full",children:s.closed?U.jsx(T4,{}):U.jsx(O4,{})})})}):U.jsx("div",{className:"py-10 opacity-50",children:U.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[U.jsx(w4,{size:24}),U.jsx("div",{className:"text-sm mt-2",children:"Нет диалогов"})]})})})),N1=il(N4);rl.locale("ru");const D4=()=>Ke.isMobile()?U.jsxs(Ec,{className:"ios:bg-white ios:dark:bg-black overflow-hidden",children:[!Ke.cap&&U.jsx(jd,{title:"Диалоги",right:Ke.mode=="full"&&U.jsx(Ng,{onClick:()=>{localStorage.clear(),window.location.reload()},children:U.jsx(R1,{size:24})}),subnavbar:U.jsxs(n0,{outline:!0,children:[U.jsx(Dd,{onClick:()=>Ke.setChannelTab("member"),active:Ke.channelTab==="member",value:"member",children:"Активные"}),U.jsx(Dd,{active:Ke.channelTab==="join",onClick:()=>Ke.setChannelTab("join"),value:"join",children:"Новые"})]})}),U.jsx(N1,{selectChannelID:Ke.selectChannel?._id??null,channelTab:Ke.channelTab,onSelectChannel:r=>{Ke.setSelectChannel(r),r?._id&&Ms().ChannelPage.move({channelID:r._id})},selectChannel:Ke.selectChannel})]}):U.jsx(Ec,{className:"ios:bg-white ios:dark:bg-black overflow-hidden flex items-center justify-center",children:U.jsxs("div",{className:"flex h-screen w-full overflow-hidden",children:[U.jsxs("div",{className:"w-[400px]  flex-shrink-0 overflow-hidden",children:[U.jsx(jd,{title:"Диалоги",right:Ke.mode=="full"&&U.jsx(Ng,{onClick:()=>{localStorage.clear(),window.location.reload()},children:U.jsx(R1,{size:24})}),subnavbar:U.jsxs(n0,{outline:!0,children:[U.jsx(Dd,{onClick:()=>Ke.setChannelTab("member"),active:Ke.channelTab==="member",value:"all",children:"Активные"}),U.jsx(Dd,{onClick:()=>Ke.setChannelTab("join"),active:Ke.channelTab==="join",value:"unread",children:"Новые"})]})}),U.jsx(N1,{selectChannelID:Ke.selectChannel?._id??null,channelTab:Ke.channelTab,onSelectChannel:r=>Ke.setSelectChannel(r),selectChannel:Ke.selectChannel})]}),U.jsx("div",{className:"flex-1 ",children:Ke.selectChannel?._id?U.jsx(uy,{channelID:Ke.selectChannel?._id,noPage:!0}):U.jsxs("div",{className:"overflow-y-scroll h-screen  relative flex items-center justify-center",children:[U.jsx("div",{className:"absolute top-0 left-0 w-full h-full bg-cover bg-center opacity-20 ",style:{background:`url(${ny})`}}),U.jsxs("div",{className:"flex items-center gap-2 opacity-70",children:[U.jsx(e4,{size:24})," Выберите диалог"]})]})})]})}),L4=il(D4),B4=()=>{_c.current?.goBack()},Ms=()=>({LoadingPage:{component:x4,move:r=>{_c.current?.onChanceRoute("LoadingPage",r)}},LoginPage:{component:M4,move:r=>{_c.current?.onChanceRoute("LoginPage",r)}},MainPage:{component:L4,move:r=>{_c.current?.onChanceRoute("MainPage",r)}},ChannelPage:{component:uy,move:r=>{_c.current?.onChanceRoute("ChannelPage",r)}}}),_c=J.createRef(),z4=J.forwardRef((r,i)=>{const s=le.useRef(0);le.useImperativeHandle(i,()=>({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]=le.useState([]),[g,v]=le.useState(!1);return le.useEffect(()=>{h([{route:"LoadingPage",props:{},id:s.current++}]),v(!0)},[]),le.useEffect(()=>{if(g&&o.length==0){h([{route:"LoadingPage",props:{},id:s.current++}]);return}},[o,g]),U.jsx(U.Fragment,{children:o.map((y,A)=>{let S=Ms()[y.route];if(!S)return null;if(A==o.length-1)return U.jsx(S.component,{...y.props})})})}),U4=()=>/iPad|iPhone|iPod/.test(navigator.userAgent),j4=r=>{let i="k-color-brand-primary";switch(r){case"primary":i="k-color-brand-primary";break;case"red":i="k-color-brand-red";break;case"green":i="k-color-brand-green";break;case"blue":i="k-color-brand-blue";break;case"pink":i="k-color-brand-pink";break;case"yellow":i="k-color-brand-yellow";break;case"orange":i="k-color-brand-orange";break;case"purple":i="k-color-brand-purple";break;case"deeppurple":i="k-color-brand-deeppurple";break;case"lightblue":i="k-color-brand-lightblue";break;case"teal":i="k-color-brand-teal";break;case"lime":i="k-color-brand-lime";break;case"deeporange":i="k-color-brand-deeporange";break}const s=document.documentElement;s.classList.forEach(o=>{o.includes("k-color")&&s.classList.remove(o)}),i&&s.classList.add(i)};rl.locale("ru");Ft.setEndpoints([Hx()]);Ft.setToast(r=>{Ux(r)});const k4=()=>(le.useEffect(()=>{const r=new URLSearchParams(window.location.search);r.get("cap")?Ke.setCap(!0):Ke.setCap(!1),r.get("dark")?document.body.classList.add("dark"):document.body.classList.remove("dark");let o=r.get("theme");o&&j4(o)},[]),U.jsxs(Q1,{theme:U4()?"ios":"material",safeAreas:!0,children:[U.jsx(z4,{ref:_c}),U.jsx(jx,{ref:$b})]})),H4=il(k4);ky.createRoot(document.getElementById("root")).render(U.jsx(le.StrictMode,{children:U.jsx(H4,{})}));
