iosignal 3.2.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,65 @@
1
+ (function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const E of document.querySelectorAll('link[rel="modulepreload"]'))b(E);new MutationObserver(E=>{for(const U of E)if(U.type==="childList")for(const h of U.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&b(h)}).observe(document,{childList:!0,subtree:!0});function y(E){const U={};return E.integrity&&(U.integrity=E.integrity),E.referrerPolicy&&(U.referrerPolicy=E.referrerPolicy),E.crossOrigin==="use-credentials"?U.credentials="include":E.crossOrigin==="anonymous"?U.credentials="omit":U.credentials="same-origin",U}function b(E){if(E.ep)return;E.ep=!0;const U=y(E);fetch(E.href,U)}})();function G0(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var Zr={exports:{}},ti={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var h0;function yd(){if(h0)return ti;h0=1;var p=Symbol.for("react.transitional.element"),o=Symbol.for("react.fragment");function y(b,E,U){var h=null;if(U!==void 0&&(h=""+U),E.key!==void 0&&(h=""+E.key),"key"in E){U={};for(var Y in E)Y!=="key"&&(U[Y]=E[Y])}else U=E;return E=U.ref,{$$typeof:p,type:b,key:h,ref:E!==void 0?E:null,props:U}}return ti.Fragment=o,ti.jsx=y,ti.jsxs=y,ti}var y0;function dd(){return y0||(y0=1,Zr.exports=yd()),Zr.exports}var pe=dd(),Kr={exports:{}},bt={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var d0;function gd(){if(d0)return bt;d0=1;var p=Symbol.for("react.transitional.element"),o=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),h=Symbol.for("react.context"),Y=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),G=Symbol.iterator;function K(_){return _===null||typeof _!="object"?null:(_=G&&_[G]||_["@@iterator"],typeof _=="function"?_:null)}var X={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,I={};function ut(_,j,F){this.props=_,this.context=j,this.refs=I,this.updater=F||X}ut.prototype.isReactComponent={},ut.prototype.setState=function(_,j){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,j,"setState")},ut.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function ft(){}ft.prototype=ut.prototype;function Ht(_,j,F){this.props=_,this.context=j,this.refs=I,this.updater=F||X}var gt=Ht.prototype=new ft;gt.constructor=Ht,P(gt,ut.prototype),gt.isPureReactComponent=!0;var jt=Array.isArray,pt={H:null,A:null,T:null,S:null,V:null},Zt=Object.prototype.hasOwnProperty;function ee(_,j,F,$,it,ot){return F=ot.ref,{$$typeof:p,type:_,key:j,ref:F!==void 0?F:null,props:ot}}function Kt(_,j){return ee(_.type,j,void 0,void 0,void 0,_.props)}function ne(_){return typeof _=="object"&&_!==null&&_.$$typeof===p}function He(_){var j={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(F){return j[F]})}var Ee=/\/+/g;function Jt(_,j){return typeof _=="object"&&_!==null&&_.key!=null?He(""+_.key):j.toString(36)}function we(){}function tt(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(we,we):(_.status="pending",_.then(function(j){_.status==="pending"&&(_.status="fulfilled",_.value=j)},function(j){_.status==="pending"&&(_.status="rejected",_.reason=j)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function lt(_,j,F,$,it){var ot=typeof _;(ot==="undefined"||ot==="boolean")&&(_=null);var nt=!1;if(_===null)nt=!0;else switch(ot){case"bigint":case"string":case"number":nt=!0;break;case"object":switch(_.$$typeof){case p:case o:nt=!0;break;case w:return nt=_._init,lt(nt(_._payload),j,F,$,it)}}if(nt)return it=it(_),nt=$===""?"."+Jt(_,0):$,jt(it)?(F="",nt!=null&&(F=nt.replace(Ee,"$&/")+"/"),lt(it,j,F,"",function(he){return he})):it!=null&&(ne(it)&&(it=Kt(it,F+(it.key==null||_&&_.key===it.key?"":(""+it.key).replace(Ee,"$&/")+"/")+nt)),j.push(it)),1;nt=0;var le=$===""?".":$+":";if(jt(_))for(var Ut=0;Ut<_.length;Ut++)$=_[Ut],ot=le+Jt($,Ut),nt+=lt($,j,F,ot,it);else if(Ut=K(_),typeof Ut=="function")for(_=Ut.call(_),Ut=0;!($=_.next()).done;)$=$.value,ot=le+Jt($,Ut++),nt+=lt($,j,F,ot,it);else if(ot==="object"){if(typeof _.then=="function")return lt(tt(_),j,F,$,it);throw j=String(_),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return nt}function q(_,j,F){if(_==null)return _;var $=[],it=0;return lt(_,$,"","",function(ot){return j.call(F,ot,it++)}),$}function W(_){if(_._status===-1){var j=_._result;j=j(),j.then(function(F){(_._status===0||_._status===-1)&&(_._status=1,_._result=F)},function(F){(_._status===0||_._status===-1)&&(_._status=2,_._result=F)}),_._status===-1&&(_._status=0,_._result=j)}if(_._status===1)return _._result.default;throw _._result}var rt=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)};function Tt(){}return bt.Children={map:q,forEach:function(_,j,F){q(_,function(){j.apply(this,arguments)},F)},count:function(_){var j=0;return q(_,function(){j++}),j},toArray:function(_){return q(_,function(j){return j})||[]},only:function(_){if(!ne(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},bt.Component=ut,bt.Fragment=y,bt.Profiler=E,bt.PureComponent=Ht,bt.StrictMode=b,bt.Suspense=R,bt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=pt,bt.__COMPILER_RUNTIME={__proto__:null,c:function(_){return pt.H.useMemoCache(_)}},bt.cache=function(_){return function(){return _.apply(null,arguments)}},bt.cloneElement=function(_,j,F){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var $=P({},_.props),it=_.key,ot=void 0;if(j!=null)for(nt in j.ref!==void 0&&(ot=void 0),j.key!==void 0&&(it=""+j.key),j)!Zt.call(j,nt)||nt==="key"||nt==="__self"||nt==="__source"||nt==="ref"&&j.ref===void 0||($[nt]=j[nt]);var nt=arguments.length-2;if(nt===1)$.children=F;else if(1<nt){for(var le=Array(nt),Ut=0;Ut<nt;Ut++)le[Ut]=arguments[Ut+2];$.children=le}return ee(_.type,it,void 0,void 0,ot,$)},bt.createContext=function(_){return _={$$typeof:h,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:U,_context:_},_},bt.createElement=function(_,j,F){var $,it={},ot=null;if(j!=null)for($ in j.key!==void 0&&(ot=""+j.key),j)Zt.call(j,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(it[$]=j[$]);var nt=arguments.length-2;if(nt===1)it.children=F;else if(1<nt){for(var le=Array(nt),Ut=0;Ut<nt;Ut++)le[Ut]=arguments[Ut+2];it.children=le}if(_&&_.defaultProps)for($ in nt=_.defaultProps,nt)it[$]===void 0&&(it[$]=nt[$]);return ee(_,ot,void 0,void 0,null,it)},bt.createRef=function(){return{current:null}},bt.forwardRef=function(_){return{$$typeof:Y,render:_}},bt.isValidElement=ne,bt.lazy=function(_){return{$$typeof:w,_payload:{_status:-1,_result:_},_init:W}},bt.memo=function(_,j){return{$$typeof:A,type:_,compare:j===void 0?null:j}},bt.startTransition=function(_){var j=pt.T,F={};pt.T=F;try{var $=_(),it=pt.S;it!==null&&it(F,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(Tt,rt)}catch(ot){rt(ot)}finally{pt.T=j}},bt.unstable_useCacheRefresh=function(){return pt.H.useCacheRefresh()},bt.use=function(_){return pt.H.use(_)},bt.useActionState=function(_,j,F){return pt.H.useActionState(_,j,F)},bt.useCallback=function(_,j){return pt.H.useCallback(_,j)},bt.useContext=function(_){return pt.H.useContext(_)},bt.useDebugValue=function(){},bt.useDeferredValue=function(_,j){return pt.H.useDeferredValue(_,j)},bt.useEffect=function(_,j,F){var $=pt.H;if(typeof F=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return $.useEffect(_,j)},bt.useId=function(){return pt.H.useId()},bt.useImperativeHandle=function(_,j,F){return pt.H.useImperativeHandle(_,j,F)},bt.useInsertionEffect=function(_,j){return pt.H.useInsertionEffect(_,j)},bt.useLayoutEffect=function(_,j){return pt.H.useLayoutEffect(_,j)},bt.useMemo=function(_,j){return pt.H.useMemo(_,j)},bt.useOptimistic=function(_,j){return pt.H.useOptimistic(_,j)},bt.useReducer=function(_,j,F){return pt.H.useReducer(_,j,F)},bt.useRef=function(_){return pt.H.useRef(_)},bt.useState=function(_){return pt.H.useState(_)},bt.useSyncExternalStore=function(_,j,F){return pt.H.useSyncExternalStore(_,j,F)},bt.useTransition=function(){return pt.H.useTransition()},bt.version="19.1.1",bt}var g0;function sc(){return g0||(g0=1,Kr.exports=gd()),Kr.exports}var fn=sc();const pd=G0(fn);var Jr={exports:{}},ei={},kr={exports:{}},Ir={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var p0;function bd(){return p0||(p0=1,(function(p){function o(q,W){var rt=q.length;q.push(W);t:for(;0<rt;){var Tt=rt-1>>>1,_=q[Tt];if(0<E(_,W))q[Tt]=W,q[rt]=_,rt=Tt;else break t}}function y(q){return q.length===0?null:q[0]}function b(q){if(q.length===0)return null;var W=q[0],rt=q.pop();if(rt!==W){q[0]=rt;t:for(var Tt=0,_=q.length,j=_>>>1;Tt<j;){var F=2*(Tt+1)-1,$=q[F],it=F+1,ot=q[it];if(0>E($,rt))it<_&&0>E(ot,$)?(q[Tt]=ot,q[it]=rt,Tt=it):(q[Tt]=$,q[F]=rt,Tt=F);else if(it<_&&0>E(ot,rt))q[Tt]=ot,q[it]=rt,Tt=it;else break t}}return W}function E(q,W){var rt=q.sortIndex-W.sortIndex;return rt!==0?rt:q.id-W.id}if(p.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var U=performance;p.unstable_now=function(){return U.now()}}else{var h=Date,Y=h.now();p.unstable_now=function(){return h.now()-Y}}var R=[],A=[],w=1,G=null,K=3,X=!1,P=!1,I=!1,ut=!1,ft=typeof setTimeout=="function"?setTimeout:null,Ht=typeof clearTimeout=="function"?clearTimeout:null,gt=typeof setImmediate<"u"?setImmediate:null;function jt(q){for(var W=y(A);W!==null;){if(W.callback===null)b(A);else if(W.startTime<=q)b(A),W.sortIndex=W.expirationTime,o(R,W);else break;W=y(A)}}function pt(q){if(I=!1,jt(q),!P)if(y(R)!==null)P=!0,Zt||(Zt=!0,Jt());else{var W=y(A);W!==null&&lt(pt,W.startTime-q)}}var Zt=!1,ee=-1,Kt=5,ne=-1;function He(){return ut?!0:!(p.unstable_now()-ne<Kt)}function Ee(){if(ut=!1,Zt){var q=p.unstable_now();ne=q;var W=!0;try{t:{P=!1,I&&(I=!1,Ht(ee),ee=-1),X=!0;var rt=K;try{e:{for(jt(q),G=y(R);G!==null&&!(G.expirationTime>q&&He());){var Tt=G.callback;if(typeof Tt=="function"){G.callback=null,K=G.priorityLevel;var _=Tt(G.expirationTime<=q);if(q=p.unstable_now(),typeof _=="function"){G.callback=_,jt(q),W=!0;break e}G===y(R)&&b(R),jt(q)}else b(R);G=y(R)}if(G!==null)W=!0;else{var j=y(A);j!==null&&lt(pt,j.startTime-q),W=!1}}break t}finally{G=null,K=rt,X=!1}W=void 0}}finally{W?Jt():Zt=!1}}}var Jt;if(typeof gt=="function")Jt=function(){gt(Ee)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,tt=we.port2;we.port1.onmessage=Ee,Jt=function(){tt.postMessage(null)}}else Jt=function(){ft(Ee,0)};function lt(q,W){ee=ft(function(){q(p.unstable_now())},W)}p.unstable_IdlePriority=5,p.unstable_ImmediatePriority=1,p.unstable_LowPriority=4,p.unstable_NormalPriority=3,p.unstable_Profiling=null,p.unstable_UserBlockingPriority=2,p.unstable_cancelCallback=function(q){q.callback=null},p.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Kt=0<q?Math.floor(1e3/q):5},p.unstable_getCurrentPriorityLevel=function(){return K},p.unstable_next=function(q){switch(K){case 1:case 2:case 3:var W=3;break;default:W=K}var rt=K;K=W;try{return q()}finally{K=rt}},p.unstable_requestPaint=function(){ut=!0},p.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var rt=K;K=q;try{return W()}finally{K=rt}},p.unstable_scheduleCallback=function(q,W,rt){var Tt=p.unstable_now();switch(typeof rt=="object"&&rt!==null?(rt=rt.delay,rt=typeof rt=="number"&&0<rt?Tt+rt:Tt):rt=Tt,q){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=rt+_,q={id:w++,callback:W,priorityLevel:q,startTime:rt,expirationTime:_,sortIndex:-1},rt>Tt?(q.sortIndex=rt,o(A,q),y(R)===null&&q===y(A)&&(I?(Ht(ee),ee=-1):I=!0,lt(pt,rt-Tt))):(q.sortIndex=_,o(R,q),P||X||(P=!0,Zt||(Zt=!0,Jt()))),q},p.unstable_shouldYield=He,p.unstable_wrapCallback=function(q){var W=K;return function(){var rt=K;K=W;try{return q.apply(this,arguments)}finally{K=rt}}}})(Ir)),Ir}var b0;function md(){return b0||(b0=1,kr.exports=bd()),kr.exports}var $r={exports:{}},ve={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var m0;function vd(){if(m0)return ve;m0=1;var p=sc();function o(R){var A="https://react.dev/errors/"+R;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)A+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+R+"; visit "+A+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function y(){}var b={d:{f:y,r:function(){throw Error(o(522))},D:y,C:y,L:y,m:y,X:y,S:y,M:y},p:0,findDOMNode:null},E=Symbol.for("react.portal");function U(R,A,w){var G=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:G==null?null:""+G,children:R,containerInfo:A,implementation:w}}var h=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Y(R,A){if(R==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return ve.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,ve.createPortal=function(R,A){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(o(299));return U(R,A,null,w)},ve.flushSync=function(R){var A=h.T,w=b.p;try{if(h.T=null,b.p=2,R)return R()}finally{h.T=A,b.p=w,b.d.f()}},ve.preconnect=function(R,A){typeof R=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,b.d.C(R,A))},ve.prefetchDNS=function(R){typeof R=="string"&&b.d.D(R)},ve.preinit=function(R,A){if(typeof R=="string"&&A&&typeof A.as=="string"){var w=A.as,G=Y(w,A.crossOrigin),K=typeof A.integrity=="string"?A.integrity:void 0,X=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;w==="style"?b.d.S(R,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:G,integrity:K,fetchPriority:X}):w==="script"&&b.d.X(R,{crossOrigin:G,integrity:K,fetchPriority:X,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},ve.preinitModule=function(R,A){if(typeof R=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var w=Y(A.as,A.crossOrigin);b.d.M(R,{crossOrigin:w,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&b.d.M(R)},ve.preload=function(R,A){if(typeof R=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var w=A.as,G=Y(w,A.crossOrigin);b.d.L(R,w,{crossOrigin:G,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},ve.preloadModule=function(R,A){if(typeof R=="string")if(A){var w=Y(A.as,A.crossOrigin);b.d.m(R,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:w,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else b.d.m(R)},ve.requestFormReset=function(R){b.d.r(R)},ve.unstable_batchedUpdates=function(R,A){return R(A)},ve.useFormState=function(R,A,w){return h.H.useFormState(R,A,w)},ve.useFormStatus=function(){return h.H.useHostTransitionStatus()},ve.version="19.1.1",ve}var v0;function Ed(){if(v0)return $r.exports;v0=1;function p(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(p)}catch(o){console.error(o)}}return p(),$r.exports=vd(),$r.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var E0;function Sd(){if(E0)return ei;E0=1;var p=md(),o=sc(),y=Ed();function b(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function E(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function U(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Y(t){if(U(t)!==t)throw Error(b(188))}function R(t){var e=t.alternate;if(!e){if(e=U(t),e===null)throw Error(b(188));return e!==t?null:t}for(var n=t,u=e;;){var f=n.return;if(f===null)break;var r=f.alternate;if(r===null){if(u=f.return,u!==null){n=u;continue}break}if(f.child===r.child){for(r=f.child;r;){if(r===n)return Y(f),t;if(r===u)return Y(f),e;r=r.sibling}throw Error(b(188))}if(n.return!==u.return)n=f,u=r;else{for(var g=!1,m=f.child;m;){if(m===n){g=!0,n=f,u=r;break}if(m===u){g=!0,u=f,n=r;break}m=m.sibling}if(!g){for(m=r.child;m;){if(m===n){g=!0,n=r,u=f;break}if(m===u){g=!0,u=r,n=f;break}m=m.sibling}if(!g)throw Error(b(189))}}if(n.alternate!==u)throw Error(b(190))}if(n.tag!==3)throw Error(b(188));return n.stateNode.current===n?t:e}function A(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=A(t),e!==null)return e;t=t.sibling}return null}var w=Object.assign,G=Symbol.for("react.element"),K=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),ut=Symbol.for("react.profiler"),ft=Symbol.for("react.provider"),Ht=Symbol.for("react.consumer"),gt=Symbol.for("react.context"),jt=Symbol.for("react.forward_ref"),pt=Symbol.for("react.suspense"),Zt=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Kt=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),He=Symbol.for("react.memo_cache_sentinel"),Ee=Symbol.iterator;function Jt(t){return t===null||typeof t!="object"?null:(t=Ee&&t[Ee]||t["@@iterator"],typeof t=="function"?t:null)}var we=Symbol.for("react.client.reference");function tt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===we?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case P:return"Fragment";case ut:return"Profiler";case I:return"StrictMode";case pt:return"Suspense";case Zt:return"SuspenseList";case ne:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case X:return"Portal";case gt:return(t.displayName||"Context")+".Provider";case Ht:return(t._context.displayName||"Context")+".Consumer";case jt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ee:return e=t.displayName||null,e!==null?e:tt(t.type)||"Memo";case Kt:e=t._payload,t=t._init;try{return tt(t(e))}catch{}}return null}var lt=Array.isArray,q=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=y.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rt={pending:!1,data:null,method:null,action:null},Tt=[],_=-1;function j(t){return{current:t}}function F(t){0>_||(t.current=Tt[_],Tt[_]=null,_--)}function $(t,e){_++,Tt[_]=t.current,t.current=e}var it=j(null),ot=j(null),nt=j(null),le=j(null);function Ut(t,e){switch($(nt,e),$(ot,t),$(it,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Gh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Gh(e),t=jh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}F(it),$(it,t)}function he(){F(it),F(ot),F(nt)}function fe(t){t.memoizedState!==null&&$(le,t);var e=it.current,n=jh(e,t.type);e!==n&&($(ot,t),$(it,n))}function At(t){ot.current===t&&(F(it),F(ot)),le.current===t&&(F(le),Iu._currentValue=rt)}var Se=Object.prototype.hasOwnProperty,rn=p.unstable_scheduleCallback,Rt=p.unstable_cancelCallback,Fn=p.unstable_shouldYield,l=p.unstable_requestPaint,i=p.unstable_now,a=p.unstable_getCurrentPriorityLevel,c=p.unstable_ImmediatePriority,s=p.unstable_UserBlockingPriority,d=p.unstable_NormalPriority,v=p.unstable_LowPriority,B=p.unstable_IdlePriority,O=p.log,z=p.unstable_setDisableYieldValue,D=null,H=null;function st(t){if(typeof O=="function"&&z(t),H&&typeof H.setStrictMode=="function")try{H.setStrictMode(D,t)}catch{}}var k=Math.clz32?Math.clz32:oi,vt=Math.log,cn=Math.LN2;function oi(t){return t>>>=0,t===0?32:31-(vt(t)/cn|0)|0}var Pe=256,Me=4194304;function Pn(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function si(t,e,n){var u=t.pendingLanes;if(u===0)return 0;var f=0,r=t.suspendedLanes,g=t.pingedLanes;t=t.warmLanes;var m=u&134217727;return m!==0?(u=m&~r,u!==0?f=Pn(u):(g&=m,g!==0?f=Pn(g):n||(n=m&~t,n!==0&&(f=Pn(n))))):(m=u&~r,m!==0?f=Pn(m):g!==0?f=Pn(g):n||(n=u&~t,n!==0&&(f=Pn(n)))),f===0?0:e!==0&&e!==f&&(e&r)===0&&(r=f&-f,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:f}function uu(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function ty(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 Ac(){var t=Pe;return Pe<<=1,(Pe&4194048)===0&&(Pe=256),t}function Bc(){var t=Me;return Me<<=1,(Me&62914560)===0&&(Me=4194304),t}function La(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function iu(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ey(t,e,n,u,f,r){var g=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var m=t.entanglements,S=t.expirationTimes,L=t.hiddenUpdates;for(n=g&~n;0<n;){var Q=31-k(n),Z=1<<Q;m[Q]=0,S[Q]=-1;var C=L[Q];if(C!==null)for(L[Q]=null,Q=0;Q<C.length;Q++){var x=C[Q];x!==null&&(x.lane&=-536870913)}n&=~Z}u!==0&&_c(t,u,0),r!==0&&f===0&&t.tag!==0&&(t.suspendedLanes|=r&~(g&~e))}function _c(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var u=31-k(e);t.entangledLanes|=e,t.entanglements[u]=t.entanglements[u]|1073741824|n&4194090}function Tc(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var u=31-k(n),f=1<<u;f&e|t[u]&e&&(t[u]|=e),n&=~f}}function Da(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Ca(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Uc(){var t=W.p;return t!==0?t:(t=window.event,t===void 0?32:a0(t.type))}function ny(t,e){var n=W.p;try{return W.p=t,e()}finally{W.p=n}}var Mn=Math.random().toString(36).slice(2),be="__reactFiber$"+Mn,Be="__reactProps$"+Mn,ml="__reactContainer$"+Mn,xa="__reactEvents$"+Mn,ly="__reactListeners$"+Mn,uy="__reactHandles$"+Mn,Oc="__reactResources$"+Mn,au="__reactMarker$"+Mn;function Ha(t){delete t[be],delete t[Be],delete t[xa],delete t[ly],delete t[uy]}function vl(t){var e=t[be];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ml]||n[be]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Zh(t);t!==null;){if(n=t[be])return n;t=Zh(t)}return e}t=n,n=t.parentNode}return null}function El(t){if(t=t[be]||t[ml]){var e=t.tag;if(e===5||e===6||e===13||e===26||e===27||e===3)return t}return null}function fu(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(b(33))}function Sl(t){var e=t[Oc];return e||(e=t[Oc]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function re(t){t[au]=!0}var wc=new Set,Mc={};function tl(t,e){Al(t,e),Al(t+"Capture",e)}function Al(t,e){for(Mc[t]=e,t=0;t<e.length;t++)wc.add(e[t])}var iy=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]*$"),Rc={},Nc={};function ay(t){return Se.call(Nc,t)?!0:Se.call(Rc,t)?!1:iy.test(t)?Nc[t]=!0:(Rc[t]=!0,!1)}function hi(t,e,n){if(ay(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var u=e.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function yi(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function on(t,e,n,u){if(u===null)t.removeAttribute(n);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+u)}}var Ya,zc;function Bl(t){if(Ya===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ya=e&&e[1]||"",zc=-1<n.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ya+t+zc}var qa=!1;function Ga(t,e){if(!t||qa)return"";qa=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(e){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(x){var C=x}Reflect.construct(t,[],Z)}else{try{Z.call()}catch(x){C=x}t.call(Z.prototype)}}else{try{throw Error()}catch(x){C=x}(Z=t())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(x){if(x&&C&&typeof x.stack=="string")return[x.stack,C.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=u.DetermineComponentFrameRoot(),g=r[0],m=r[1];if(g&&m){var S=g.split(`
44
+ `),L=m.split(`
45
+ `);for(f=u=0;u<S.length&&!S[u].includes("DetermineComponentFrameRoot");)u++;for(;f<L.length&&!L[f].includes("DetermineComponentFrameRoot");)f++;if(u===S.length||f===L.length)for(u=S.length-1,f=L.length-1;1<=u&&0<=f&&S[u]!==L[f];)f--;for(;1<=u&&0<=f;u--,f--)if(S[u]!==L[f]){if(u!==1||f!==1)do if(u--,f--,0>f||S[u]!==L[f]){var Q=`
46
+ `+S[u].replace(" at new "," at ");return t.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",t.displayName)),Q}while(1<=u&&0<=f);break}}}finally{qa=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Bl(n):""}function fy(t){switch(t.tag){case 26:case 27:case 5:return Bl(t.type);case 16:return Bl("Lazy");case 13:return Bl("Suspense");case 19:return Bl("SuspenseList");case 0:case 15:return Ga(t.type,!1);case 11:return Ga(t.type.render,!1);case 1:return Ga(t.type,!0);case 31:return Bl("Activity");default:return""}}function Lc(t){try{var e="";do e+=fy(t),t=t.return;while(t);return e}catch(n){return`
47
+ Error generating stack: `+n.message+`
48
+ `+n.stack}}function Ye(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Dc(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ry(t){var e=Dc(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),u=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var f=n.get,r=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return f.call(this)},set:function(g){u=""+g,r.call(this,g)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return u},setValue:function(g){u=""+g},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function di(t){t._valueTracker||(t._valueTracker=ry(t))}function Cc(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),u="";return t&&(u=Dc(t)?t.checked?"true":"false":t.value),t=u,t!==n?(e.setValue(t),!0):!1}function gi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var cy=/[\n"\\]/g;function qe(t){return t.replace(cy,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ja(t,e,n,u,f,r,g,m){t.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?t.type=g:t.removeAttribute("type"),e!=null?g==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ye(e)):t.value!==""+Ye(e)&&(t.value=""+Ye(e)):g!=="submit"&&g!=="reset"||t.removeAttribute("value"),e!=null?Qa(t,g,Ye(e)):n!=null?Qa(t,g,Ye(n)):u!=null&&t.removeAttribute("value"),f==null&&r!=null&&(t.defaultChecked=!!r),f!=null&&(t.checked=f&&typeof f!="function"&&typeof f!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.name=""+Ye(m):t.removeAttribute("name")}function xc(t,e,n,u,f,r,g,m){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null))return;n=n!=null?""+Ye(n):"",e=e!=null?""+Ye(e):n,m||e===t.value||(t.value=e),t.defaultValue=e}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=m?t.checked:!!u,t.defaultChecked=!!u,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.name=g)}function Qa(t,e,n){e==="number"&&gi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function _l(t,e,n,u){if(t=t.options,e){e={};for(var f=0;f<n.length;f++)e["$"+n[f]]=!0;for(n=0;n<t.length;n++)f=e.hasOwnProperty("$"+t[n].value),t[n].selected!==f&&(t[n].selected=f),f&&u&&(t[n].defaultSelected=!0)}else{for(n=""+Ye(n),e=null,f=0;f<t.length;f++){if(t[f].value===n){t[f].selected=!0,u&&(t[f].defaultSelected=!0);return}e!==null||t[f].disabled||(e=t[f])}e!==null&&(e.selected=!0)}}function Hc(t,e,n){if(e!=null&&(e=""+Ye(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Ye(n):""}function Yc(t,e,n,u){if(e==null){if(u!=null){if(n!=null)throw Error(b(92));if(lt(u)){if(1<u.length)throw Error(b(93));u=u[0]}n=u}n==null&&(n=""),e=n}n=Ye(e),t.defaultValue=n,u=t.textContent,u===n&&u!==""&&u!==null&&(t.value=u)}function Tl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var oy=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 qc(t,e,n){var u=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?u?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":u?t.setProperty(e,n):typeof n!="number"||n===0||oy.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Gc(t,e,n){if(e!=null&&typeof e!="object")throw Error(b(62));if(t=t.style,n!=null){for(var u in n)!n.hasOwnProperty(u)||e!=null&&e.hasOwnProperty(u)||(u.indexOf("--")===0?t.setProperty(u,""):u==="float"?t.cssFloat="":t[u]="");for(var f in e)u=e[f],e.hasOwnProperty(f)&&n[f]!==u&&qc(t,f,u)}else for(var r in e)e.hasOwnProperty(r)&&qc(t,r,e[r])}function Xa(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sy=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"]]),hy=/^[\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 pi(t){return hy.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Va=null;function Za(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ul=null,Ol=null;function jc(t){var e=El(t);if(e&&(t=e.stateNode)){var n=t[Be]||null;t:switch(t=e.stateNode,e.type){case"input":if(ja(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+qe(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var u=n[e];if(u!==t&&u.form===t.form){var f=u[Be]||null;if(!f)throw Error(b(90));ja(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(e=0;e<n.length;e++)u=n[e],u.form===t.form&&Cc(u)}break t;case"textarea":Hc(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&_l(t,!!n.multiple,e,!1)}}}var Ka=!1;function Qc(t,e,n){if(Ka)return t(e,n);Ka=!0;try{var u=t(e);return u}finally{if(Ka=!1,(Ul!==null||Ol!==null)&&(ea(),Ul&&(e=Ul,t=Ol,Ol=Ul=null,jc(e),t)))for(e=0;e<t.length;e++)jc(t[e])}}function ru(t,e){var n=t.stateNode;if(n===null)return null;var u=n[Be]||null;if(u===null)return null;n=u[e];t:switch(e){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)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(b(231,e,typeof n));return n}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ja=!1;if(sn)try{var cu={};Object.defineProperty(cu,"passive",{get:function(){Ja=!0}}),window.addEventListener("test",cu,cu),window.removeEventListener("test",cu,cu)}catch{Ja=!1}var Rn=null,ka=null,bi=null;function Xc(){if(bi)return bi;var t,e=ka,n=e.length,u,f="value"in Rn?Rn.value:Rn.textContent,r=f.length;for(t=0;t<n&&e[t]===f[t];t++);var g=n-t;for(u=1;u<=g&&e[n-u]===f[r-u];u++);return bi=f.slice(t,1<u?1-u:void 0)}function mi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function vi(){return!0}function Vc(){return!1}function _e(t){function e(n,u,f,r,g){this._reactName=n,this._targetInst=f,this.type=u,this.nativeEvent=r,this.target=g,this.currentTarget=null;for(var m in t)t.hasOwnProperty(m)&&(n=t[m],this[m]=n?n(r):r[m]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?vi:Vc,this.isPropagationStopped=Vc,this}return w(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=vi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=vi)},persist:function(){},isPersistent:vi}),e}var el={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ei=_e(el),ou=w({},el,{view:0,detail:0}),yy=_e(ou),Ia,$a,su,Si=w({},ou,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fa,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==su&&(su&&t.type==="mousemove"?(Ia=t.screenX-su.screenX,$a=t.screenY-su.screenY):$a=Ia=0,su=t),Ia)},movementY:function(t){return"movementY"in t?t.movementY:$a}}),Zc=_e(Si),dy=w({},Si,{dataTransfer:0}),gy=_e(dy),py=w({},ou,{relatedTarget:0}),Wa=_e(py),by=w({},el,{animationName:0,elapsedTime:0,pseudoElement:0}),my=_e(by),vy=w({},el,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ey=_e(vy),Sy=w({},el,{data:0}),Kc=_e(Sy),Ay={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},By={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"},_y={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ty(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=_y[t])?!!e[t]:!1}function Fa(){return Ty}var Uy=w({},ou,{key:function(t){if(t.key){var e=Ay[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=mi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?By[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fa,charCode:function(t){return t.type==="keypress"?mi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?mi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Oy=_e(Uy),wy=w({},Si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jc=_e(wy),My=w({},ou,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fa}),Ry=_e(My),Ny=w({},el,{propertyName:0,elapsedTime:0,pseudoElement:0}),zy=_e(Ny),Ly=w({},Si,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Dy=_e(Ly),Cy=w({},el,{newState:0,oldState:0}),xy=_e(Cy),Hy=[9,13,27,32],Pa=sn&&"CompositionEvent"in window,hu=null;sn&&"documentMode"in document&&(hu=document.documentMode);var Yy=sn&&"TextEvent"in window&&!hu,kc=sn&&(!Pa||hu&&8<hu&&11>=hu),Ic=" ",$c=!1;function Wc(t,e){switch(t){case"keyup":return Hy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fc(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var wl=!1;function qy(t,e){switch(t){case"compositionend":return Fc(e);case"keypress":return e.which!==32?null:($c=!0,Ic);case"textInput":return t=e.data,t===Ic&&$c?null:t;default:return null}}function Gy(t,e){if(wl)return t==="compositionend"||!Pa&&Wc(t,e)?(t=Xc(),bi=ka=Rn=null,wl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return kc&&e.locale!=="ko"?null:e.data;default:return null}}var jy={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 Pc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!jy[t.type]:e==="textarea"}function to(t,e,n,u){Ul?Ol?Ol.push(u):Ol=[u]:Ul=u,e=fa(e,"onChange"),0<e.length&&(n=new Ei("onChange","change",null,n,u),t.push({event:n,listeners:e}))}var yu=null,du=null;function Qy(t){Ch(t,0)}function Ai(t){var e=fu(t);if(Cc(e))return t}function eo(t,e){if(t==="change")return e}var no=!1;if(sn){var tf;if(sn){var ef="oninput"in document;if(!ef){var lo=document.createElement("div");lo.setAttribute("oninput","return;"),ef=typeof lo.oninput=="function"}tf=ef}else tf=!1;no=tf&&(!document.documentMode||9<document.documentMode)}function uo(){yu&&(yu.detachEvent("onpropertychange",io),du=yu=null)}function io(t){if(t.propertyName==="value"&&Ai(du)){var e=[];to(e,du,t,Za(t)),Qc(Qy,e)}}function Xy(t,e,n){t==="focusin"?(uo(),yu=e,du=n,yu.attachEvent("onpropertychange",io)):t==="focusout"&&uo()}function Vy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ai(du)}function Zy(t,e){if(t==="click")return Ai(e)}function Ky(t,e){if(t==="input"||t==="change")return Ai(e)}function Jy(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Re=typeof Object.is=="function"?Object.is:Jy;function gu(t,e){if(Re(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),u=Object.keys(e);if(n.length!==u.length)return!1;for(u=0;u<n.length;u++){var f=n[u];if(!Se.call(e,f)||!Re(t[f],e[f]))return!1}return!0}function ao(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function fo(t,e){var n=ao(t);t=0;for(var u;n;){if(n.nodeType===3){if(u=t+n.textContent.length,t<=e&&u>=e)return{node:n,offset:e-t};t=u}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=ao(n)}}function ro(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ro(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function co(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=gi(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=gi(t.document)}return e}function nf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var ky=sn&&"documentMode"in document&&11>=document.documentMode,Ml=null,lf=null,pu=null,uf=!1;function oo(t,e,n){var u=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;uf||Ml==null||Ml!==gi(u)||(u=Ml,"selectionStart"in u&&nf(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}),pu&&gu(pu,u)||(pu=u,u=fa(lf,"onSelect"),0<u.length&&(e=new Ei("onSelect","select",null,e,n),t.push({event:e,listeners:u}),e.target=Ml)))}function nl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Rl={animationend:nl("Animation","AnimationEnd"),animationiteration:nl("Animation","AnimationIteration"),animationstart:nl("Animation","AnimationStart"),transitionrun:nl("Transition","TransitionRun"),transitionstart:nl("Transition","TransitionStart"),transitioncancel:nl("Transition","TransitionCancel"),transitionend:nl("Transition","TransitionEnd")},af={},so={};sn&&(so=document.createElement("div").style,"AnimationEvent"in window||(delete Rl.animationend.animation,delete Rl.animationiteration.animation,delete Rl.animationstart.animation),"TransitionEvent"in window||delete Rl.transitionend.transition);function ll(t){if(af[t])return af[t];if(!Rl[t])return t;var e=Rl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in so)return af[t]=e[n];return t}var ho=ll("animationend"),yo=ll("animationiteration"),go=ll("animationstart"),Iy=ll("transitionrun"),$y=ll("transitionstart"),Wy=ll("transitioncancel"),po=ll("transitionend"),bo=new Map,ff="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(" ");ff.push("scrollEnd");function ke(t,e){bo.set(t,e),tl(e,[t])}var mo=new WeakMap;function Ge(t,e){if(typeof t=="object"&&t!==null){var n=mo.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Lc(e)},mo.set(t,e),e)}return{value:t,source:e,stack:Lc(e)}}var je=[],Nl=0,rf=0;function Bi(){for(var t=Nl,e=rf=Nl=0;e<t;){var n=je[e];je[e++]=null;var u=je[e];je[e++]=null;var f=je[e];je[e++]=null;var r=je[e];if(je[e++]=null,u!==null&&f!==null){var g=u.pending;g===null?f.next=f:(f.next=g.next,g.next=f),u.pending=f}r!==0&&vo(n,f,r)}}function _i(t,e,n,u){je[Nl++]=t,je[Nl++]=e,je[Nl++]=n,je[Nl++]=u,rf|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function cf(t,e,n,u){return _i(t,e,n,u),Ti(t)}function zl(t,e){return _i(t,null,null,e),Ti(t)}function vo(t,e,n){t.lanes|=n;var u=t.alternate;u!==null&&(u.lanes|=n);for(var f=!1,r=t.return;r!==null;)r.childLanes|=n,u=r.alternate,u!==null&&(u.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(f=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,f&&e!==null&&(f=31-k(n),t=r.hiddenUpdates,u=t[f],u===null?t[f]=[e]:u.push(e),e.lane=n|536870912),r):null}function Ti(t){if(50<ju)throw ju=0,gr=null,Error(b(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ll={};function Fy(t,e,n,u){this.tag=t,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=e,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 Ne(t,e,n,u){return new Fy(t,e,n,u)}function of(t){return t=t.prototype,!(!t||!t.isReactComponent)}function hn(t,e){var n=t.alternate;return n===null?(n=Ne(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Eo(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ui(t,e,n,u,f,r){var g=0;if(u=t,typeof t=="function")of(t)&&(g=1);else if(typeof t=="string")g=td(t,n,it.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ne:return t=Ne(31,n,e,f),t.elementType=ne,t.lanes=r,t;case P:return ul(n.children,f,r,e);case I:g=8,f|=24;break;case ut:return t=Ne(12,n,e,f|2),t.elementType=ut,t.lanes=r,t;case pt:return t=Ne(13,n,e,f),t.elementType=pt,t.lanes=r,t;case Zt:return t=Ne(19,n,e,f),t.elementType=Zt,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case ft:case gt:g=10;break t;case Ht:g=9;break t;case jt:g=11;break t;case ee:g=14;break t;case Kt:g=16,u=null;break t}g=29,n=Error(b(130,t===null?"null":typeof t,"")),u=null}return e=Ne(g,n,e,f),e.elementType=t,e.type=u,e.lanes=r,e}function ul(t,e,n,u){return t=Ne(7,t,u,e),t.lanes=n,t}function sf(t,e,n){return t=Ne(6,t,null,e),t.lanes=n,t}function hf(t,e,n){return e=Ne(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Dl=[],Cl=0,Oi=null,wi=0,Qe=[],Xe=0,il=null,yn=1,dn="";function al(t,e){Dl[Cl++]=wi,Dl[Cl++]=Oi,Oi=t,wi=e}function So(t,e,n){Qe[Xe++]=yn,Qe[Xe++]=dn,Qe[Xe++]=il,il=t;var u=yn;t=dn;var f=32-k(u)-1;u&=~(1<<f),n+=1;var r=32-k(e)+f;if(30<r){var g=f-f%5;r=(u&(1<<g)-1).toString(32),u>>=g,f-=g,yn=1<<32-k(e)+f|n<<f|u,dn=r+t}else yn=1<<r|n<<f|u,dn=t}function yf(t){t.return!==null&&(al(t,1),So(t,1,0))}function df(t){for(;t===Oi;)Oi=Dl[--Cl],Dl[Cl]=null,wi=Dl[--Cl],Dl[Cl]=null;for(;t===il;)il=Qe[--Xe],Qe[Xe]=null,dn=Qe[--Xe],Qe[Xe]=null,yn=Qe[--Xe],Qe[Xe]=null}var Ae=null,kt=null,Mt=!1,fl=null,tn=!1,gf=Error(b(519));function rl(t){var e=Error(b(418,""));throw vu(Ge(e,t)),gf}function Ao(t){var e=t.stateNode,n=t.type,u=t.memoizedProps;switch(e[be]=t,e[Be]=u,n){case"dialog":_t("cancel",e),_t("close",e);break;case"iframe":case"object":case"embed":_t("load",e);break;case"video":case"audio":for(n=0;n<Xu.length;n++)_t(Xu[n],e);break;case"source":_t("error",e);break;case"img":case"image":case"link":_t("error",e),_t("load",e);break;case"details":_t("toggle",e);break;case"input":_t("invalid",e),xc(e,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),di(e);break;case"select":_t("invalid",e);break;case"textarea":_t("invalid",e),Yc(e,u.value,u.defaultValue,u.children),di(e)}n=u.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||u.suppressHydrationWarning===!0||qh(e.textContent,n)?(u.popover!=null&&(_t("beforetoggle",e),_t("toggle",e)),u.onScroll!=null&&_t("scroll",e),u.onScrollEnd!=null&&_t("scrollend",e),u.onClick!=null&&(e.onclick=ra),e=!0):e=!1,e||rl(t)}function Bo(t){for(Ae=t.return;Ae;)switch(Ae.tag){case 5:case 13:tn=!1;return;case 27:case 3:tn=!0;return;default:Ae=Ae.return}}function bu(t){if(t!==Ae)return!1;if(!Mt)return Bo(t),Mt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Nr(t.type,t.memoizedProps)),n=!n),n&&kt&&rl(t),Bo(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(b(317));t:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8)if(n=t.data,n==="/$"){if(e===0){kt=$e(t.nextSibling);break t}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++;t=t.nextSibling}kt=null}}else e===27?(e=kt,Kn(t.type)?(t=Cr,Cr=null,kt=t):kt=e):kt=Ae?$e(t.stateNode.nextSibling):null;return!0}function mu(){kt=Ae=null,Mt=!1}function _o(){var t=fl;return t!==null&&(Oe===null?Oe=t:Oe.push.apply(Oe,t),fl=null),t}function vu(t){fl===null?fl=[t]:fl.push(t)}var pf=j(null),cl=null,gn=null;function Nn(t,e,n){$(pf,e._currentValue),e._currentValue=n}function pn(t){t._currentValue=pf.current,F(pf)}function bf(t,e,n){for(;t!==null;){var u=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,u!==null&&(u.childLanes|=e)):u!==null&&(u.childLanes&e)!==e&&(u.childLanes|=e),t===n)break;t=t.return}}function mf(t,e,n,u){var f=t.child;for(f!==null&&(f.return=t);f!==null;){var r=f.dependencies;if(r!==null){var g=f.child;r=r.firstContext;t:for(;r!==null;){var m=r;r=f;for(var S=0;S<e.length;S++)if(m.context===e[S]){r.lanes|=n,m=r.alternate,m!==null&&(m.lanes|=n),bf(r.return,n,t),u||(g=null);break t}r=m.next}}else if(f.tag===18){if(g=f.return,g===null)throw Error(b(341));g.lanes|=n,r=g.alternate,r!==null&&(r.lanes|=n),bf(g,n,t),g=null}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===t){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}}function Eu(t,e,n,u){t=null;for(var f=e,r=!1;f!==null;){if(!r){if((f.flags&524288)!==0)r=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var g=f.alternate;if(g===null)throw Error(b(387));if(g=g.memoizedProps,g!==null){var m=f.type;Re(f.pendingProps.value,g.value)||(t!==null?t.push(m):t=[m])}}else if(f===le.current){if(g=f.alternate,g===null)throw Error(b(387));g.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(t!==null?t.push(Iu):t=[Iu])}f=f.return}t!==null&&mf(e,t,n,u),e.flags|=262144}function Mi(t){for(t=t.firstContext;t!==null;){if(!Re(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ol(t){cl=t,gn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function me(t){return To(cl,t)}function Ri(t,e){return cl===null&&ol(t),To(t,e)}function To(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},gn===null){if(t===null)throw Error(b(308));gn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else gn=gn.next=e;return n}var Py=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,u){t.push(u)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},t1=p.unstable_scheduleCallback,e1=p.unstable_NormalPriority,ue={$$typeof:gt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vf(){return{controller:new Py,data:new Map,refCount:0}}function Su(t){t.refCount--,t.refCount===0&&t1(e1,function(){t.controller.abort()})}var Au=null,Ef=0,xl=0,Hl=null;function n1(t,e){if(Au===null){var n=Au=[];Ef=0,xl=Ar(),Hl={status:"pending",value:void 0,then:function(u){n.push(u)}}}return Ef++,e.then(Uo,Uo),e}function Uo(){if(--Ef===0&&Au!==null){Hl!==null&&(Hl.status="fulfilled");var t=Au;Au=null,xl=0,Hl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function l1(t,e){var n=[],u={status:"pending",value:null,reason:null,then:function(f){n.push(f)}};return t.then(function(){u.status="fulfilled",u.value=e;for(var f=0;f<n.length;f++)(0,n[f])(e)},function(f){for(u.status="rejected",u.reason=f,f=0;f<n.length;f++)(0,n[f])(void 0)}),u}var Oo=q.S;q.S=function(t,e){typeof e=="object"&&e!==null&&typeof e.then=="function"&&n1(t,e),Oo!==null&&Oo(t,e)};var sl=j(null);function Sf(){var t=sl.current;return t!==null?t:qt.pooledCache}function Ni(t,e){e===null?$(sl,sl.current):$(sl,e.pool)}function wo(){var t=Sf();return t===null?null:{parent:ue._currentValue,pool:t}}var Bu=Error(b(460)),Mo=Error(b(474)),zi=Error(b(542)),Af={then:function(){}};function Ro(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Li(){}function No(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Li,Li),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Lo(t),t;default:if(typeof e.status=="string")e.then(Li,Li);else{if(t=qt,t!==null&&100<t.shellSuspendCounter)throw Error(b(482));t=e,t.status="pending",t.then(function(u){if(e.status==="pending"){var f=e;f.status="fulfilled",f.value=u}},function(u){if(e.status==="pending"){var f=e;f.status="rejected",f.reason=u}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Lo(t),t}throw _u=e,Bu}}var _u=null;function zo(){if(_u===null)throw Error(b(459));var t=_u;return _u=null,t}function Lo(t){if(t===Bu||t===zi)throw Error(b(483))}var zn=!1;function Bf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _f(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ln(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Dn(t,e,n){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(Nt&2)!==0){var f=u.pending;return f===null?e.next=e:(e.next=f.next,f.next=e),u.pending=e,e=Ti(t),vo(t,null,n),e}return _i(t,u,e,n),Ti(t)}function Tu(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var u=e.lanes;u&=t.pendingLanes,n|=u,e.lanes=n,Tc(t,n)}}function Tf(t,e){var n=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,n===u)){var f=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var g={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?f=r=g:r=r.next=g,n=n.next}while(n!==null);r===null?f=r=e:r=r.next=e}else f=r=e;n={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:r,shared:u.shared,callbacks:u.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Uf=!1;function Uu(){if(Uf){var t=Hl;if(t!==null)throw t}}function Ou(t,e,n,u){Uf=!1;var f=t.updateQueue;zn=!1;var r=f.firstBaseUpdate,g=f.lastBaseUpdate,m=f.shared.pending;if(m!==null){f.shared.pending=null;var S=m,L=S.next;S.next=null,g===null?r=L:g.next=L,g=S;var Q=t.alternate;Q!==null&&(Q=Q.updateQueue,m=Q.lastBaseUpdate,m!==g&&(m===null?Q.firstBaseUpdate=L:m.next=L,Q.lastBaseUpdate=S))}if(r!==null){var Z=f.baseState;g=0,Q=L=S=null,m=r;do{var C=m.lane&-536870913,x=C!==m.lane;if(x?(Ot&C)===C:(u&C)===C){C!==0&&C===xl&&(Uf=!0),Q!==null&&(Q=Q.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});t:{var dt=t,ht=m;C=e;var xt=n;switch(ht.tag){case 1:if(dt=ht.payload,typeof dt=="function"){Z=dt.call(xt,Z,C);break t}Z=dt;break t;case 3:dt.flags=dt.flags&-65537|128;case 0:if(dt=ht.payload,C=typeof dt=="function"?dt.call(xt,Z,C):dt,C==null)break t;Z=w({},Z,C);break t;case 2:zn=!0}}C=m.callback,C!==null&&(t.flags|=64,x&&(t.flags|=8192),x=f.callbacks,x===null?f.callbacks=[C]:x.push(C))}else x={lane:C,tag:m.tag,payload:m.payload,callback:m.callback,next:null},Q===null?(L=Q=x,S=Z):Q=Q.next=x,g|=C;if(m=m.next,m===null){if(m=f.shared.pending,m===null)break;x=m,m=x.next,x.next=null,f.lastBaseUpdate=x,f.shared.pending=null}}while(!0);Q===null&&(S=Z),f.baseState=S,f.firstBaseUpdate=L,f.lastBaseUpdate=Q,r===null&&(f.shared.lanes=0),Qn|=g,t.lanes=g,t.memoizedState=Z}}function Do(t,e){if(typeof t!="function")throw Error(b(191,t));t.call(e)}function Co(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Do(n[t],e)}var Yl=j(null),Di=j(0);function xo(t,e){t=Bn,$(Di,t),$(Yl,e),Bn=t|e.baseLanes}function Of(){$(Di,Bn),$(Yl,Yl.current)}function wf(){Bn=Di.current,F(Yl),F(Di)}var Cn=0,mt=null,Dt=null,Pt=null,Ci=!1,ql=!1,hl=!1,xi=0,wu=0,Gl=null,u1=0;function $t(){throw Error(b(321))}function Mf(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Re(t[n],e[n]))return!1;return!0}function Rf(t,e,n,u,f,r){return Cn=r,mt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,q.H=t===null||t.memoizedState===null?vs:Es,hl=!1,r=n(u,f),hl=!1,ql&&(r=Yo(e,n,u,f)),Ho(t),r}function Ho(t){q.H=Qi;var e=Dt!==null&&Dt.next!==null;if(Cn=0,Pt=Dt=mt=null,Ci=!1,wu=0,Gl=null,e)throw Error(b(300));t===null||ce||(t=t.dependencies,t!==null&&Mi(t)&&(ce=!0))}function Yo(t,e,n,u){mt=t;var f=0;do{if(ql&&(Gl=null),wu=0,ql=!1,25<=f)throw Error(b(301));if(f+=1,Pt=Dt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}q.H=s1,r=e(n,u)}while(ql);return r}function i1(){var t=q.H,e=t.useState()[0];return e=typeof e.then=="function"?Mu(e):e,t=t.useState()[0],(Dt!==null?Dt.memoizedState:null)!==t&&(mt.flags|=1024),e}function Nf(){var t=xi!==0;return xi=0,t}function zf(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Lf(t){if(Ci){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ci=!1}Cn=0,Pt=Dt=mt=null,ql=!1,wu=xi=0,Gl=null}function Te(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pt===null?mt.memoizedState=Pt=t:Pt=Pt.next=t,Pt}function te(){if(Dt===null){var t=mt.alternate;t=t!==null?t.memoizedState:null}else t=Dt.next;var e=Pt===null?mt.memoizedState:Pt.next;if(e!==null)Pt=e,Dt=t;else{if(t===null)throw mt.alternate===null?Error(b(467)):Error(b(310));Dt=t,t={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},Pt===null?mt.memoizedState=Pt=t:Pt=Pt.next=t}return Pt}function Df(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mu(t){var e=wu;return wu+=1,Gl===null&&(Gl=[]),t=No(Gl,t,e),e=mt,(Pt===null?e.memoizedState:Pt.next)===null&&(e=e.alternate,q.H=e===null||e.memoizedState===null?vs:Es),t}function Hi(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Mu(t);if(t.$$typeof===gt)return me(t)}throw Error(b(438,String(t)))}function Cf(t){var e=null,n=mt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var u=mt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(e={data:u.data.map(function(f){return f.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Df(),mt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),u=0;u<t;u++)n[u]=He;return e.index++,n}function bn(t,e){return typeof e=="function"?e(t):e}function Yi(t){var e=te();return xf(e,Dt,t)}function xf(t,e,n){var u=t.queue;if(u===null)throw Error(b(311));u.lastRenderedReducer=n;var f=t.baseQueue,r=u.pending;if(r!==null){if(f!==null){var g=f.next;f.next=r.next,r.next=g}e.baseQueue=f=r,u.pending=null}if(r=t.baseState,f===null)t.memoizedState=r;else{e=f.next;var m=g=null,S=null,L=e,Q=!1;do{var Z=L.lane&-536870913;if(Z!==L.lane?(Ot&Z)===Z:(Cn&Z)===Z){var C=L.revertLane;if(C===0)S!==null&&(S=S.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),Z===xl&&(Q=!0);else if((Cn&C)===C){L=L.next,C===xl&&(Q=!0);continue}else Z={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},S===null?(m=S=Z,g=r):S=S.next=Z,mt.lanes|=C,Qn|=C;Z=L.action,hl&&n(r,Z),r=L.hasEagerState?L.eagerState:n(r,Z)}else C={lane:Z,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},S===null?(m=S=C,g=r):S=S.next=C,mt.lanes|=Z,Qn|=Z;L=L.next}while(L!==null&&L!==e);if(S===null?g=r:S.next=m,!Re(r,t.memoizedState)&&(ce=!0,Q&&(n=Hl,n!==null)))throw n;t.memoizedState=r,t.baseState=g,t.baseQueue=S,u.lastRenderedState=r}return f===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Hf(t){var e=te(),n=e.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=t;var u=n.dispatch,f=n.pending,r=e.memoizedState;if(f!==null){n.pending=null;var g=f=f.next;do r=t(r,g.action),g=g.next;while(g!==f);Re(r,e.memoizedState)||(ce=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,u]}function qo(t,e,n){var u=mt,f=te(),r=Mt;if(r){if(n===void 0)throw Error(b(407));n=n()}else n=e();var g=!Re((Dt||f).memoizedState,n);g&&(f.memoizedState=n,ce=!0),f=f.queue;var m=Qo.bind(null,u,f,t);if(Ru(2048,8,m,[t]),f.getSnapshot!==e||g||Pt!==null&&Pt.memoizedState.tag&1){if(u.flags|=2048,jl(9,qi(),jo.bind(null,u,f,n,e),null),qt===null)throw Error(b(349));r||(Cn&124)!==0||Go(u,e,n)}return n}function Go(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=mt.updateQueue,e===null?(e=Df(),mt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function jo(t,e,n,u){e.value=n,e.getSnapshot=u,Xo(e)&&Vo(t)}function Qo(t,e,n){return n(function(){Xo(e)&&Vo(t)})}function Xo(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Re(t,n)}catch{return!0}}function Vo(t){var e=zl(t,2);e!==null&&xe(e,t,2)}function Yf(t){var e=Te();if(typeof t=="function"){var n=t;if(t=n(),hl){st(!0);try{n()}finally{st(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:t},e}function Zo(t,e,n,u){return t.baseState=n,xf(t,Dt,typeof u=="function"?u:bn)}function a1(t,e,n,u,f){if(ji(t))throw Error(b(485));if(t=e.action,t!==null){var r={payload:f,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){r.listeners.push(g)}};q.T!==null?n(!0):r.isTransition=!1,u(r),n=e.pending,n===null?(r.next=e.pending=r,Ko(e,r)):(r.next=n.next,e.pending=n.next=r)}}function Ko(t,e){var n=e.action,u=e.payload,f=t.state;if(e.isTransition){var r=q.T,g={};q.T=g;try{var m=n(f,u),S=q.S;S!==null&&S(g,m),Jo(t,e,m)}catch(L){qf(t,e,L)}finally{q.T=r}}else try{r=n(f,u),Jo(t,e,r)}catch(L){qf(t,e,L)}}function Jo(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(u){ko(t,e,u)},function(u){return qf(t,e,u)}):ko(t,e,n)}function ko(t,e,n){e.status="fulfilled",e.value=n,Io(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Ko(t,n)))}function qf(t,e,n){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do e.status="rejected",e.reason=n,Io(e),e=e.next;while(e!==u)}t.action=null}function Io(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function $o(t,e){return e}function Wo(t,e){if(Mt){var n=qt.formState;if(n!==null){t:{var u=mt;if(Mt){if(kt){e:{for(var f=kt,r=tn;f.nodeType!==8;){if(!r){f=null;break e}if(f=$e(f.nextSibling),f===null){f=null;break e}}r=f.data,f=r==="F!"||r==="F"?f:null}if(f){kt=$e(f.nextSibling),u=f.data==="F!";break t}}rl(u)}u=!1}u&&(e=n[0])}}return n=Te(),n.memoizedState=n.baseState=e,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:e},n.queue=u,n=ps.bind(null,mt,u),u.dispatch=n,u=Yf(!1),r=Vf.bind(null,mt,!1,u.queue),u=Te(),f={state:e,dispatch:null,action:t,pending:null},u.queue=f,n=a1.bind(null,mt,f,r,n),f.dispatch=n,u.memoizedState=t,[e,n,!1]}function Fo(t){var e=te();return Po(e,Dt,t)}function Po(t,e,n){if(e=xf(t,e,$o)[0],t=Yi(bn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var u=Mu(e)}catch(g){throw g===Bu?zi:g}else u=e;e=te();var f=e.queue,r=f.dispatch;return n!==e.memoizedState&&(mt.flags|=2048,jl(9,qi(),f1.bind(null,f,n),null)),[u,r,t]}function f1(t,e){t.action=e}function ts(t){var e=te(),n=Dt;if(n!==null)return Po(e,n,t);te(),e=e.memoizedState,n=te();var u=n.queue.dispatch;return n.memoizedState=t,[e,u,!1]}function jl(t,e,n,u){return t={tag:t,create:n,deps:u,inst:e,next:null},e=mt.updateQueue,e===null&&(e=Df(),mt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(u=n.next,n.next=t,t.next=u,e.lastEffect=t),t}function qi(){return{destroy:void 0,resource:void 0}}function es(){return te().memoizedState}function Gi(t,e,n,u){var f=Te();u=u===void 0?null:u,mt.flags|=t,f.memoizedState=jl(1|e,qi(),n,u)}function Ru(t,e,n,u){var f=te();u=u===void 0?null:u;var r=f.memoizedState.inst;Dt!==null&&u!==null&&Mf(u,Dt.memoizedState.deps)?f.memoizedState=jl(e,r,n,u):(mt.flags|=t,f.memoizedState=jl(1|e,r,n,u))}function ns(t,e){Gi(8390656,8,t,e)}function ls(t,e){Ru(2048,8,t,e)}function us(t,e){return Ru(4,2,t,e)}function is(t,e){return Ru(4,4,t,e)}function as(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function fs(t,e,n){n=n!=null?n.concat([t]):null,Ru(4,4,as.bind(null,e,t),n)}function Gf(){}function rs(t,e){var n=te();e=e===void 0?null:e;var u=n.memoizedState;return e!==null&&Mf(e,u[1])?u[0]:(n.memoizedState=[t,e],t)}function cs(t,e){var n=te();e=e===void 0?null:e;var u=n.memoizedState;if(e!==null&&Mf(e,u[1]))return u[0];if(u=t(),hl){st(!0);try{t()}finally{st(!1)}}return n.memoizedState=[u,e],u}function jf(t,e,n){return n===void 0||(Cn&1073741824)!==0?t.memoizedState=e:(t.memoizedState=n,t=hh(),mt.lanes|=t,Qn|=t,n)}function os(t,e,n,u){return Re(n,e)?n:Yl.current!==null?(t=jf(t,n,u),Re(t,e)||(ce=!0),t):(Cn&42)===0?(ce=!0,t.memoizedState=n):(t=hh(),mt.lanes|=t,Qn|=t,e)}function ss(t,e,n,u,f){var r=W.p;W.p=r!==0&&8>r?r:8;var g=q.T,m={};q.T=m,Vf(t,!1,e,n);try{var S=f(),L=q.S;if(L!==null&&L(m,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var Q=l1(S,u);Nu(t,e,Q,Ce(t))}else Nu(t,e,u,Ce(t))}catch(Z){Nu(t,e,{then:function(){},status:"rejected",reason:Z},Ce())}finally{W.p=r,q.T=g}}function r1(){}function Qf(t,e,n,u){if(t.tag!==5)throw Error(b(476));var f=hs(t).queue;ss(t,f,e,rt,n===null?r1:function(){return ys(t),n(u)})}function hs(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:rt,baseState:rt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:rt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:bn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function ys(t){var e=hs(t).next.queue;Nu(t,e,{},Ce())}function Xf(){return me(Iu)}function ds(){return te().memoizedState}function gs(){return te().memoizedState}function c1(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ce();t=Ln(n);var u=Dn(e,t,n);u!==null&&(xe(u,e,n),Tu(u,e,n)),e={cache:vf()},t.payload=e;return}e=e.return}}function o1(t,e,n){var u=Ce();n={lane:u,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ji(t)?bs(e,n):(n=cf(t,e,n,u),n!==null&&(xe(n,t,u),ms(n,e,u)))}function ps(t,e,n){var u=Ce();Nu(t,e,n,u)}function Nu(t,e,n,u){var f={lane:u,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ji(t))bs(e,f);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var g=e.lastRenderedState,m=r(g,n);if(f.hasEagerState=!0,f.eagerState=m,Re(m,g))return _i(t,e,f,0),qt===null&&Bi(),!1}catch{}finally{}if(n=cf(t,e,f,u),n!==null)return xe(n,t,u),ms(n,e,u),!0}return!1}function Vf(t,e,n,u){if(u={lane:2,revertLane:Ar(),action:u,hasEagerState:!1,eagerState:null,next:null},ji(t)){if(e)throw Error(b(479))}else e=cf(t,n,u,2),e!==null&&xe(e,t,2)}function ji(t){var e=t.alternate;return t===mt||e!==null&&e===mt}function bs(t,e){ql=Ci=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function ms(t,e,n){if((n&4194048)!==0){var u=e.lanes;u&=t.pendingLanes,n|=u,e.lanes=n,Tc(t,n)}}var Qi={readContext:me,use:Hi,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useLayoutEffect:$t,useInsertionEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useSyncExternalStore:$t,useId:$t,useHostTransitionStatus:$t,useFormState:$t,useActionState:$t,useOptimistic:$t,useMemoCache:$t,useCacheRefresh:$t},vs={readContext:me,use:Hi,useCallback:function(t,e){return Te().memoizedState=[t,e===void 0?null:e],t},useContext:me,useEffect:ns,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Gi(4194308,4,as.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Gi(4194308,4,t,e)},useInsertionEffect:function(t,e){Gi(4,2,t,e)},useMemo:function(t,e){var n=Te();e=e===void 0?null:e;var u=t();if(hl){st(!0);try{t()}finally{st(!1)}}return n.memoizedState=[u,e],u},useReducer:function(t,e,n){var u=Te();if(n!==void 0){var f=n(e);if(hl){st(!0);try{n(e)}finally{st(!1)}}}else f=e;return u.memoizedState=u.baseState=f,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:f},u.queue=t,t=t.dispatch=o1.bind(null,mt,t),[u.memoizedState,t]},useRef:function(t){var e=Te();return t={current:t},e.memoizedState=t},useState:function(t){t=Yf(t);var e=t.queue,n=ps.bind(null,mt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Gf,useDeferredValue:function(t,e){var n=Te();return jf(n,t,e)},useTransition:function(){var t=Yf(!1);return t=ss.bind(null,mt,t.queue,!0,!1),Te().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var u=mt,f=Te();if(Mt){if(n===void 0)throw Error(b(407));n=n()}else{if(n=e(),qt===null)throw Error(b(349));(Ot&124)!==0||Go(u,e,n)}f.memoizedState=n;var r={value:n,getSnapshot:e};return f.queue=r,ns(Qo.bind(null,u,r,t),[t]),u.flags|=2048,jl(9,qi(),jo.bind(null,u,r,n,e),null),n},useId:function(){var t=Te(),e=qt.identifierPrefix;if(Mt){var n=dn,u=yn;n=(u&~(1<<32-k(u)-1)).toString(32)+n,e="«"+e+"R"+n,n=xi++,0<n&&(e+="H"+n.toString(32)),e+="»"}else n=u1++,e="«"+e+"r"+n.toString(32)+"»";return t.memoizedState=e},useHostTransitionStatus:Xf,useFormState:Wo,useActionState:Wo,useOptimistic:function(t){var e=Te();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Vf.bind(null,mt,!0,n),n.dispatch=e,[t,e]},useMemoCache:Cf,useCacheRefresh:function(){return Te().memoizedState=c1.bind(null,mt)}},Es={readContext:me,use:Hi,useCallback:rs,useContext:me,useEffect:ls,useImperativeHandle:fs,useInsertionEffect:us,useLayoutEffect:is,useMemo:cs,useReducer:Yi,useRef:es,useState:function(){return Yi(bn)},useDebugValue:Gf,useDeferredValue:function(t,e){var n=te();return os(n,Dt.memoizedState,t,e)},useTransition:function(){var t=Yi(bn)[0],e=te().memoizedState;return[typeof t=="boolean"?t:Mu(t),e]},useSyncExternalStore:qo,useId:ds,useHostTransitionStatus:Xf,useFormState:Fo,useActionState:Fo,useOptimistic:function(t,e){var n=te();return Zo(n,Dt,t,e)},useMemoCache:Cf,useCacheRefresh:gs},s1={readContext:me,use:Hi,useCallback:rs,useContext:me,useEffect:ls,useImperativeHandle:fs,useInsertionEffect:us,useLayoutEffect:is,useMemo:cs,useReducer:Hf,useRef:es,useState:function(){return Hf(bn)},useDebugValue:Gf,useDeferredValue:function(t,e){var n=te();return Dt===null?jf(n,t,e):os(n,Dt.memoizedState,t,e)},useTransition:function(){var t=Hf(bn)[0],e=te().memoizedState;return[typeof t=="boolean"?t:Mu(t),e]},useSyncExternalStore:qo,useId:ds,useHostTransitionStatus:Xf,useFormState:ts,useActionState:ts,useOptimistic:function(t,e){var n=te();return Dt!==null?Zo(n,Dt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Cf,useCacheRefresh:gs},Ql=null,zu=0;function Xi(t){var e=zu;return zu+=1,Ql===null&&(Ql=[]),No(Ql,t,e)}function Lu(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Vi(t,e){throw e.$$typeof===G?Error(b(525)):(t=Object.prototype.toString.call(e),Error(b(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Ss(t){var e=t._init;return e(t._payload)}function As(t){function e(M,T){if(t){var N=M.deletions;N===null?(M.deletions=[T],M.flags|=16):N.push(T)}}function n(M,T){if(!t)return null;for(;T!==null;)e(M,T),T=T.sibling;return null}function u(M){for(var T=new Map;M!==null;)M.key!==null?T.set(M.key,M):T.set(M.index,M),M=M.sibling;return T}function f(M,T){return M=hn(M,T),M.index=0,M.sibling=null,M}function r(M,T,N){return M.index=N,t?(N=M.alternate,N!==null?(N=N.index,N<T?(M.flags|=67108866,T):N):(M.flags|=67108866,T)):(M.flags|=1048576,T)}function g(M){return t&&M.alternate===null&&(M.flags|=67108866),M}function m(M,T,N,V){return T===null||T.tag!==6?(T=sf(N,M.mode,V),T.return=M,T):(T=f(T,N),T.return=M,T)}function S(M,T,N,V){var et=N.type;return et===P?Q(M,T,N.props.children,V,N.key):T!==null&&(T.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===Kt&&Ss(et)===T.type)?(T=f(T,N.props),Lu(T,N),T.return=M,T):(T=Ui(N.type,N.key,N.props,null,M.mode,V),Lu(T,N),T.return=M,T)}function L(M,T,N,V){return T===null||T.tag!==4||T.stateNode.containerInfo!==N.containerInfo||T.stateNode.implementation!==N.implementation?(T=hf(N,M.mode,V),T.return=M,T):(T=f(T,N.children||[]),T.return=M,T)}function Q(M,T,N,V,et){return T===null||T.tag!==7?(T=ul(N,M.mode,V,et),T.return=M,T):(T=f(T,N),T.return=M,T)}function Z(M,T,N){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=sf(""+T,M.mode,N),T.return=M,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case K:return N=Ui(T.type,T.key,T.props,null,M.mode,N),Lu(N,T),N.return=M,N;case X:return T=hf(T,M.mode,N),T.return=M,T;case Kt:var V=T._init;return T=V(T._payload),Z(M,T,N)}if(lt(T)||Jt(T))return T=ul(T,M.mode,N,null),T.return=M,T;if(typeof T.then=="function")return Z(M,Xi(T),N);if(T.$$typeof===gt)return Z(M,Ri(M,T),N);Vi(M,T)}return null}function C(M,T,N,V){var et=T!==null?T.key:null;if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return et!==null?null:m(M,T,""+N,V);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case K:return N.key===et?S(M,T,N,V):null;case X:return N.key===et?L(M,T,N,V):null;case Kt:return et=N._init,N=et(N._payload),C(M,T,N,V)}if(lt(N)||Jt(N))return et!==null?null:Q(M,T,N,V,null);if(typeof N.then=="function")return C(M,T,Xi(N),V);if(N.$$typeof===gt)return C(M,T,Ri(M,N),V);Vi(M,N)}return null}function x(M,T,N,V,et){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return M=M.get(N)||null,m(T,M,""+V,et);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case K:return M=M.get(V.key===null?N:V.key)||null,S(T,M,V,et);case X:return M=M.get(V.key===null?N:V.key)||null,L(T,M,V,et);case Kt:var Et=V._init;return V=Et(V._payload),x(M,T,N,V,et)}if(lt(V)||Jt(V))return M=M.get(N)||null,Q(T,M,V,et,null);if(typeof V.then=="function")return x(M,T,N,Xi(V),et);if(V.$$typeof===gt)return x(M,T,N,Ri(T,V),et);Vi(T,V)}return null}function dt(M,T,N,V){for(var et=null,Et=null,ct=T,yt=T=0,se=null;ct!==null&&yt<N.length;yt++){ct.index>yt?(se=ct,ct=null):se=ct.sibling;var wt=C(M,ct,N[yt],V);if(wt===null){ct===null&&(ct=se);break}t&&ct&&wt.alternate===null&&e(M,ct),T=r(wt,T,yt),Et===null?et=wt:Et.sibling=wt,Et=wt,ct=se}if(yt===N.length)return n(M,ct),Mt&&al(M,yt),et;if(ct===null){for(;yt<N.length;yt++)ct=Z(M,N[yt],V),ct!==null&&(T=r(ct,T,yt),Et===null?et=ct:Et.sibling=ct,Et=ct);return Mt&&al(M,yt),et}for(ct=u(ct);yt<N.length;yt++)se=x(ct,M,yt,N[yt],V),se!==null&&(t&&se.alternate!==null&&ct.delete(se.key===null?yt:se.key),T=r(se,T,yt),Et===null?et=se:Et.sibling=se,Et=se);return t&&ct.forEach(function(Wn){return e(M,Wn)}),Mt&&al(M,yt),et}function ht(M,T,N,V){if(N==null)throw Error(b(151));for(var et=null,Et=null,ct=T,yt=T=0,se=null,wt=N.next();ct!==null&&!wt.done;yt++,wt=N.next()){ct.index>yt?(se=ct,ct=null):se=ct.sibling;var Wn=C(M,ct,wt.value,V);if(Wn===null){ct===null&&(ct=se);break}t&&ct&&Wn.alternate===null&&e(M,ct),T=r(Wn,T,yt),Et===null?et=Wn:Et.sibling=Wn,Et=Wn,ct=se}if(wt.done)return n(M,ct),Mt&&al(M,yt),et;if(ct===null){for(;!wt.done;yt++,wt=N.next())wt=Z(M,wt.value,V),wt!==null&&(T=r(wt,T,yt),Et===null?et=wt:Et.sibling=wt,Et=wt);return Mt&&al(M,yt),et}for(ct=u(ct);!wt.done;yt++,wt=N.next())wt=x(ct,M,yt,wt.value,V),wt!==null&&(t&&wt.alternate!==null&&ct.delete(wt.key===null?yt:wt.key),T=r(wt,T,yt),Et===null?et=wt:Et.sibling=wt,Et=wt);return t&&ct.forEach(function(hd){return e(M,hd)}),Mt&&al(M,yt),et}function xt(M,T,N,V){if(typeof N=="object"&&N!==null&&N.type===P&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case K:t:{for(var et=N.key;T!==null;){if(T.key===et){if(et=N.type,et===P){if(T.tag===7){n(M,T.sibling),V=f(T,N.props.children),V.return=M,M=V;break t}}else if(T.elementType===et||typeof et=="object"&&et!==null&&et.$$typeof===Kt&&Ss(et)===T.type){n(M,T.sibling),V=f(T,N.props),Lu(V,N),V.return=M,M=V;break t}n(M,T);break}else e(M,T);T=T.sibling}N.type===P?(V=ul(N.props.children,M.mode,V,N.key),V.return=M,M=V):(V=Ui(N.type,N.key,N.props,null,M.mode,V),Lu(V,N),V.return=M,M=V)}return g(M);case X:t:{for(et=N.key;T!==null;){if(T.key===et)if(T.tag===4&&T.stateNode.containerInfo===N.containerInfo&&T.stateNode.implementation===N.implementation){n(M,T.sibling),V=f(T,N.children||[]),V.return=M,M=V;break t}else{n(M,T);break}else e(M,T);T=T.sibling}V=hf(N,M.mode,V),V.return=M,M=V}return g(M);case Kt:return et=N._init,N=et(N._payload),xt(M,T,N,V)}if(lt(N))return dt(M,T,N,V);if(Jt(N)){if(et=Jt(N),typeof et!="function")throw Error(b(150));return N=et.call(N),ht(M,T,N,V)}if(typeof N.then=="function")return xt(M,T,Xi(N),V);if(N.$$typeof===gt)return xt(M,T,Ri(M,N),V);Vi(M,N)}return typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint"?(N=""+N,T!==null&&T.tag===6?(n(M,T.sibling),V=f(T,N),V.return=M,M=V):(n(M,T),V=sf(N,M.mode,V),V.return=M,M=V),g(M)):n(M,T)}return function(M,T,N,V){try{zu=0;var et=xt(M,T,N,V);return Ql=null,et}catch(ct){if(ct===Bu||ct===zi)throw ct;var Et=Ne(29,ct,null,M.mode);return Et.lanes=V,Et.return=M,Et}finally{}}}var Xl=As(!0),Bs=As(!1),Ve=j(null),en=null;function xn(t){var e=t.alternate;$(ie,ie.current&1),$(Ve,t),en===null&&(e===null||Yl.current!==null||e.memoizedState!==null)&&(en=t)}function _s(t){if(t.tag===22){if($(ie,ie.current),$(Ve,t),en===null){var e=t.alternate;e!==null&&e.memoizedState!==null&&(en=t)}}else Hn()}function Hn(){$(ie,ie.current),$(Ve,Ve.current)}function mn(t){F(Ve),en===t&&(en=null),F(ie)}var ie=j(0);function Zi(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Dr(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Zf(t,e,n,u){e=t.memoizedState,n=n(u,e),n=n==null?e:w({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Kf={enqueueSetState:function(t,e,n){t=t._reactInternals;var u=Ce(),f=Ln(u);f.payload=e,n!=null&&(f.callback=n),e=Dn(t,f,u),e!==null&&(xe(e,t,u),Tu(e,t,u))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var u=Ce(),f=Ln(u);f.tag=1,f.payload=e,n!=null&&(f.callback=n),e=Dn(t,f,u),e!==null&&(xe(e,t,u),Tu(e,t,u))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ce(),u=Ln(n);u.tag=2,e!=null&&(u.callback=e),e=Dn(t,u,n),e!==null&&(xe(e,t,n),Tu(e,t,n))}};function Ts(t,e,n,u,f,r,g){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,r,g):e.prototype&&e.prototype.isPureReactComponent?!gu(n,u)||!gu(f,r):!0}function Us(t,e,n,u){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,u),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,u),e.state!==t&&Kf.enqueueReplaceState(e,e.state,null)}function yl(t,e){var n=e;if("ref"in e){n={};for(var u in e)u!=="ref"&&(n[u]=e[u])}if(t=t.defaultProps){n===e&&(n=w({},n));for(var f in t)n[f]===void 0&&(n[f]=t[f])}return n}var Ki=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Os(t){Ki(t)}function ws(t){console.error(t)}function Ms(t){Ki(t)}function Ji(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(u){setTimeout(function(){throw u})}}function Rs(t,e,n){try{var u=t.onCaughtError;u(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Jf(t,e,n){return n=Ln(n),n.tag=3,n.payload={element:null},n.callback=function(){Ji(t,e)},n}function Ns(t){return t=Ln(t),t.tag=3,t}function zs(t,e,n,u){var f=n.type.getDerivedStateFromError;if(typeof f=="function"){var r=u.value;t.payload=function(){return f(r)},t.callback=function(){Rs(e,n,u)}}var g=n.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(t.callback=function(){Rs(e,n,u),typeof f!="function"&&(Xn===null?Xn=new Set([this]):Xn.add(this));var m=u.stack;this.componentDidCatch(u.value,{componentStack:m!==null?m:""})})}function h1(t,e,n,u,f){if(n.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(e=n.alternate,e!==null&&Eu(e,n,f,!0),n=Ve.current,n!==null){switch(n.tag){case 13:return en===null?br():n.alternate===null&&It===0&&(It=3),n.flags&=-257,n.flags|=65536,n.lanes=f,u===Af?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([u]):e.add(u),vr(t,u,f)),!1;case 22:return n.flags|=65536,u===Af?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([u])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([u]):n.add(u)),vr(t,u,f)),!1}throw Error(b(435,n.tag))}return vr(t,u,f),br(),!1}if(Mt)return e=Ve.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=f,u!==gf&&(t=Error(b(422),{cause:u}),vu(Ge(t,n)))):(u!==gf&&(e=Error(b(423),{cause:u}),vu(Ge(e,n))),t=t.current.alternate,t.flags|=65536,f&=-f,t.lanes|=f,u=Ge(u,n),f=Jf(t.stateNode,u,f),Tf(t,f),It!==4&&(It=2)),!1;var r=Error(b(520),{cause:u});if(r=Ge(r,n),Gu===null?Gu=[r]:Gu.push(r),It!==4&&(It=2),e===null)return!0;u=Ge(u,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=f&-f,n.lanes|=t,t=Jf(n.stateNode,u,t),Tf(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Xn===null||!Xn.has(r))))return n.flags|=65536,f&=-f,n.lanes|=f,f=Ns(f),zs(f,t,n,u),Tf(n,f),!1}n=n.return}while(n!==null);return!1}var Ls=Error(b(461)),ce=!1;function ye(t,e,n,u){e.child=t===null?Bs(e,null,n,u):Xl(e,t.child,n,u)}function Ds(t,e,n,u,f){n=n.render;var r=e.ref;if("ref"in u){var g={};for(var m in u)m!=="ref"&&(g[m]=u[m])}else g=u;return ol(e),u=Rf(t,e,n,g,r,f),m=Nf(),t!==null&&!ce?(zf(t,e,f),vn(t,e,f)):(Mt&&m&&yf(e),e.flags|=1,ye(t,e,u,f),e.child)}function Cs(t,e,n,u,f){if(t===null){var r=n.type;return typeof r=="function"&&!of(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,xs(t,e,r,u,f)):(t=Ui(n.type,null,u,e,e.mode,f),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!er(t,f)){var g=r.memoizedProps;if(n=n.compare,n=n!==null?n:gu,n(g,u)&&t.ref===e.ref)return vn(t,e,f)}return e.flags|=1,t=hn(r,u),t.ref=e.ref,t.return=e,e.child=t}function xs(t,e,n,u,f){if(t!==null){var r=t.memoizedProps;if(gu(r,u)&&t.ref===e.ref)if(ce=!1,e.pendingProps=u=r,er(t,f))(t.flags&131072)!==0&&(ce=!0);else return e.lanes=t.lanes,vn(t,e,f)}return kf(t,e,n,u,f)}function Hs(t,e,n){var u=e.pendingProps,f=u.children,r=t!==null?t.memoizedState:null;if(u.mode==="hidden"){if((e.flags&128)!==0){if(u=r!==null?r.baseLanes|n:n,t!==null){for(f=e.child=t.child,r=0;f!==null;)r=r|f.lanes|f.childLanes,f=f.sibling;e.childLanes=r&~u}else e.childLanes=0,e.child=null;return Ys(t,e,u,n)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ni(e,r!==null?r.cachePool:null),r!==null?xo(e,r):Of(),_s(e);else return e.lanes=e.childLanes=536870912,Ys(t,e,r!==null?r.baseLanes|n:n,n)}else r!==null?(Ni(e,r.cachePool),xo(e,r),Hn(),e.memoizedState=null):(t!==null&&Ni(e,null),Of(),Hn());return ye(t,e,f,n),e.child}function Ys(t,e,n,u){var f=Sf();return f=f===null?null:{parent:ue._currentValue,pool:f},e.memoizedState={baseLanes:n,cachePool:f},t!==null&&Ni(e,null),Of(),_s(e),t!==null&&Eu(t,e,u,!0),null}function ki(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(b(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function kf(t,e,n,u,f){return ol(e),n=Rf(t,e,n,u,void 0,f),u=Nf(),t!==null&&!ce?(zf(t,e,f),vn(t,e,f)):(Mt&&u&&yf(e),e.flags|=1,ye(t,e,n,f),e.child)}function qs(t,e,n,u,f,r){return ol(e),e.updateQueue=null,n=Yo(e,u,n,f),Ho(t),u=Nf(),t!==null&&!ce?(zf(t,e,r),vn(t,e,r)):(Mt&&u&&yf(e),e.flags|=1,ye(t,e,n,r),e.child)}function Gs(t,e,n,u,f){if(ol(e),e.stateNode===null){var r=Ll,g=n.contextType;typeof g=="object"&&g!==null&&(r=me(g)),r=new n(u,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Kf,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=u,r.state=e.memoizedState,r.refs={},Bf(e),g=n.contextType,r.context=typeof g=="object"&&g!==null?me(g):Ll,r.state=e.memoizedState,g=n.getDerivedStateFromProps,typeof g=="function"&&(Zf(e,n,g,u),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(g=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),g!==r.state&&Kf.enqueueReplaceState(r,r.state,null),Ou(e,u,r,f),Uu(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),u=!0}else if(t===null){r=e.stateNode;var m=e.memoizedProps,S=yl(n,m);r.props=S;var L=r.context,Q=n.contextType;g=Ll,typeof Q=="object"&&Q!==null&&(g=me(Q));var Z=n.getDerivedStateFromProps;Q=typeof Z=="function"||typeof r.getSnapshotBeforeUpdate=="function",m=e.pendingProps!==m,Q||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(m||L!==g)&&Us(e,r,u,g),zn=!1;var C=e.memoizedState;r.state=C,Ou(e,u,r,f),Uu(),L=e.memoizedState,m||C!==L||zn?(typeof Z=="function"&&(Zf(e,n,Z,u),L=e.memoizedState),(S=zn||Ts(e,n,S,u,C,L,g))?(Q||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=u,e.memoizedState=L),r.props=u,r.state=L,r.context=g,u=S):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),u=!1)}else{r=e.stateNode,_f(t,e),g=e.memoizedProps,Q=yl(n,g),r.props=Q,Z=e.pendingProps,C=r.context,L=n.contextType,S=Ll,typeof L=="object"&&L!==null&&(S=me(L)),m=n.getDerivedStateFromProps,(L=typeof m=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(g!==Z||C!==S)&&Us(e,r,u,S),zn=!1,C=e.memoizedState,r.state=C,Ou(e,u,r,f),Uu();var x=e.memoizedState;g!==Z||C!==x||zn||t!==null&&t.dependencies!==null&&Mi(t.dependencies)?(typeof m=="function"&&(Zf(e,n,m,u),x=e.memoizedState),(Q=zn||Ts(e,n,Q,u,C,x,S)||t!==null&&t.dependencies!==null&&Mi(t.dependencies))?(L||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(u,x,S),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(u,x,S)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||g===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=u,e.memoizedState=x),r.props=u,r.state=x,r.context=S,u=Q):(typeof r.componentDidUpdate!="function"||g===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||g===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),u=!1)}return r=u,ki(t,e),u=(e.flags&128)!==0,r||u?(r=e.stateNode,n=u&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&u?(e.child=Xl(e,t.child,null,f),e.child=Xl(e,null,n,f)):ye(t,e,n,f),e.memoizedState=r.state,t=e.child):t=vn(t,e,f),t}function js(t,e,n,u){return mu(),e.flags|=256,ye(t,e,n,u),e.child}var If={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $f(t){return{baseLanes:t,cachePool:wo()}}function Wf(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ze),t}function Qs(t,e,n){var u=e.pendingProps,f=!1,r=(e.flags&128)!==0,g;if((g=r)||(g=t!==null&&t.memoizedState===null?!1:(ie.current&2)!==0),g&&(f=!0,e.flags&=-129),g=(e.flags&32)!==0,e.flags&=-33,t===null){if(Mt){if(f?xn(e):Hn(),Mt){var m=kt,S;if(S=m){t:{for(S=m,m=tn;S.nodeType!==8;){if(!m){m=null;break t}if(S=$e(S.nextSibling),S===null){m=null;break t}}m=S}m!==null?(e.memoizedState={dehydrated:m,treeContext:il!==null?{id:yn,overflow:dn}:null,retryLane:536870912,hydrationErrors:null},S=Ne(18,null,null,0),S.stateNode=m,S.return=e,e.child=S,Ae=e,kt=null,S=!0):S=!1}S||rl(e)}if(m=e.memoizedState,m!==null&&(m=m.dehydrated,m!==null))return Dr(m)?e.lanes=32:e.lanes=536870912,null;mn(e)}return m=u.children,u=u.fallback,f?(Hn(),f=e.mode,m=Ii({mode:"hidden",children:m},f),u=ul(u,f,n,null),m.return=e,u.return=e,m.sibling=u,e.child=m,f=e.child,f.memoizedState=$f(n),f.childLanes=Wf(t,g,n),e.memoizedState=If,u):(xn(e),Ff(e,m))}if(S=t.memoizedState,S!==null&&(m=S.dehydrated,m!==null)){if(r)e.flags&256?(xn(e),e.flags&=-257,e=Pf(t,e,n)):e.memoizedState!==null?(Hn(),e.child=t.child,e.flags|=128,e=null):(Hn(),f=u.fallback,m=e.mode,u=Ii({mode:"visible",children:u.children},m),f=ul(f,m,n,null),f.flags|=2,u.return=e,f.return=e,u.sibling=f,e.child=u,Xl(e,t.child,null,n),u=e.child,u.memoizedState=$f(n),u.childLanes=Wf(t,g,n),e.memoizedState=If,e=f);else if(xn(e),Dr(m)){if(g=m.nextSibling&&m.nextSibling.dataset,g)var L=g.dgst;g=L,u=Error(b(419)),u.stack="",u.digest=g,vu({value:u,source:null,stack:null}),e=Pf(t,e,n)}else if(ce||Eu(t,e,n,!1),g=(n&t.childLanes)!==0,ce||g){if(g=qt,g!==null&&(u=n&-n,u=(u&42)!==0?1:Da(u),u=(u&(g.suspendedLanes|n))!==0?0:u,u!==0&&u!==S.retryLane))throw S.retryLane=u,zl(t,u),xe(g,t,u),Ls;m.data==="$?"||br(),e=Pf(t,e,n)}else m.data==="$?"?(e.flags|=192,e.child=t.child,e=null):(t=S.treeContext,kt=$e(m.nextSibling),Ae=e,Mt=!0,fl=null,tn=!1,t!==null&&(Qe[Xe++]=yn,Qe[Xe++]=dn,Qe[Xe++]=il,yn=t.id,dn=t.overflow,il=e),e=Ff(e,u.children),e.flags|=4096);return e}return f?(Hn(),f=u.fallback,m=e.mode,S=t.child,L=S.sibling,u=hn(S,{mode:"hidden",children:u.children}),u.subtreeFlags=S.subtreeFlags&65011712,L!==null?f=hn(L,f):(f=ul(f,m,n,null),f.flags|=2),f.return=e,u.return=e,u.sibling=f,e.child=u,u=f,f=e.child,m=t.child.memoizedState,m===null?m=$f(n):(S=m.cachePool,S!==null?(L=ue._currentValue,S=S.parent!==L?{parent:L,pool:L}:S):S=wo(),m={baseLanes:m.baseLanes|n,cachePool:S}),f.memoizedState=m,f.childLanes=Wf(t,g,n),e.memoizedState=If,u):(xn(e),n=t.child,t=n.sibling,n=hn(n,{mode:"visible",children:u.children}),n.return=e,n.sibling=null,t!==null&&(g=e.deletions,g===null?(e.deletions=[t],e.flags|=16):g.push(t)),e.child=n,e.memoizedState=null,n)}function Ff(t,e){return e=Ii({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ii(t,e){return t=Ne(22,t,null,e),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Pf(t,e,n){return Xl(e,t.child,null,n),t=Ff(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Xs(t,e,n){t.lanes|=e;var u=t.alternate;u!==null&&(u.lanes|=e),bf(t.return,e,n)}function tr(t,e,n,u,f){var r=t.memoizedState;r===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:u,tail:n,tailMode:f}:(r.isBackwards=e,r.rendering=null,r.renderingStartTime=0,r.last=u,r.tail=n,r.tailMode=f)}function Vs(t,e,n){var u=e.pendingProps,f=u.revealOrder,r=u.tail;if(ye(t,e,u.children,n),u=ie.current,(u&2)!==0)u=u&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Xs(t,n,e);else if(t.tag===19)Xs(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}u&=1}switch($(ie,u),f){case"forwards":for(n=e.child,f=null;n!==null;)t=n.alternate,t!==null&&Zi(t)===null&&(f=n),n=n.sibling;n=f,n===null?(f=e.child,e.child=null):(f=n.sibling,n.sibling=null),tr(e,!1,f,n,r);break;case"backwards":for(n=null,f=e.child,e.child=null;f!==null;){if(t=f.alternate,t!==null&&Zi(t)===null){e.child=f;break}t=f.sibling,f.sibling=n,n=f,f=t}tr(e,!0,n,null,r);break;case"together":tr(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function vn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Qn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Eu(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(b(153));if(e.child!==null){for(t=e.child,n=hn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=hn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function er(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Mi(t)))}function y1(t,e,n){switch(e.tag){case 3:Ut(e,e.stateNode.containerInfo),Nn(e,ue,t.memoizedState.cache),mu();break;case 27:case 5:fe(e);break;case 4:Ut(e,e.stateNode.containerInfo);break;case 10:Nn(e,e.type,e.memoizedProps.value);break;case 13:var u=e.memoizedState;if(u!==null)return u.dehydrated!==null?(xn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Qs(t,e,n):(xn(e),t=vn(t,e,n),t!==null?t.sibling:null);xn(e);break;case 19:var f=(t.flags&128)!==0;if(u=(n&e.childLanes)!==0,u||(Eu(t,e,n,!1),u=(n&e.childLanes)!==0),f){if(u)return Vs(t,e,n);e.flags|=128}if(f=e.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),$(ie,ie.current),u)break;return null;case 22:case 23:return e.lanes=0,Hs(t,e,n);case 24:Nn(e,ue,t.memoizedState.cache)}return vn(t,e,n)}function Zs(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)ce=!0;else{if(!er(t,n)&&(e.flags&128)===0)return ce=!1,y1(t,e,n);ce=(t.flags&131072)!==0}else ce=!1,Mt&&(e.flags&1048576)!==0&&So(e,wi,e.index);switch(e.lanes=0,e.tag){case 16:t:{t=e.pendingProps;var u=e.elementType,f=u._init;if(u=f(u._payload),e.type=u,typeof u=="function")of(u)?(t=yl(u,t),e.tag=1,e=Gs(null,e,u,t,n)):(e.tag=0,e=kf(null,e,u,t,n));else{if(u!=null){if(f=u.$$typeof,f===jt){e.tag=11,e=Ds(null,e,u,t,n);break t}else if(f===ee){e.tag=14,e=Cs(null,e,u,t,n);break t}}throw e=tt(u)||u,Error(b(306,e,""))}}return e;case 0:return kf(t,e,e.type,e.pendingProps,n);case 1:return u=e.type,f=yl(u,e.pendingProps),Gs(t,e,u,f,n);case 3:t:{if(Ut(e,e.stateNode.containerInfo),t===null)throw Error(b(387));u=e.pendingProps;var r=e.memoizedState;f=r.element,_f(t,e),Ou(e,u,null,n);var g=e.memoizedState;if(u=g.cache,Nn(e,ue,u),u!==r.cache&&mf(e,[ue],n,!0),Uu(),u=g.element,r.isDehydrated)if(r={element:u,isDehydrated:!1,cache:g.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=js(t,e,u,n);break t}else if(u!==f){f=Ge(Error(b(424)),e),vu(f),e=js(t,e,u,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(kt=$e(t.firstChild),Ae=e,Mt=!0,fl=null,tn=!0,n=Bs(e,null,u,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(mu(),u===f){e=vn(t,e,n);break t}ye(t,e,u,n)}e=e.child}return e;case 26:return ki(t,e),t===null?(n=Ih(e.type,null,e.pendingProps,null))?e.memoizedState=n:Mt||(n=e.type,t=e.pendingProps,u=ca(nt.current).createElement(n),u[be]=e,u[Be]=t,ge(u,n,t),re(u),e.stateNode=u):e.memoizedState=Ih(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return fe(e),t===null&&Mt&&(u=e.stateNode=Kh(e.type,e.pendingProps,nt.current),Ae=e,tn=!0,f=kt,Kn(e.type)?(Cr=f,kt=$e(u.firstChild)):kt=f),ye(t,e,e.pendingProps.children,n),ki(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Mt&&((f=u=kt)&&(u=j1(u,e.type,e.pendingProps,tn),u!==null?(e.stateNode=u,Ae=e,kt=$e(u.firstChild),tn=!1,f=!0):f=!1),f||rl(e)),fe(e),f=e.type,r=e.pendingProps,g=t!==null?t.memoizedProps:null,u=r.children,Nr(f,r)?u=null:g!==null&&Nr(f,g)&&(e.flags|=32),e.memoizedState!==null&&(f=Rf(t,e,i1,null,null,n),Iu._currentValue=f),ki(t,e),ye(t,e,u,n),e.child;case 6:return t===null&&Mt&&((t=n=kt)&&(n=Q1(n,e.pendingProps,tn),n!==null?(e.stateNode=n,Ae=e,kt=null,t=!0):t=!1),t||rl(e)),null;case 13:return Qs(t,e,n);case 4:return Ut(e,e.stateNode.containerInfo),u=e.pendingProps,t===null?e.child=Xl(e,null,u,n):ye(t,e,u,n),e.child;case 11:return Ds(t,e,e.type,e.pendingProps,n);case 7:return ye(t,e,e.pendingProps,n),e.child;case 8:return ye(t,e,e.pendingProps.children,n),e.child;case 12:return ye(t,e,e.pendingProps.children,n),e.child;case 10:return u=e.pendingProps,Nn(e,e.type,u.value),ye(t,e,u.children,n),e.child;case 9:return f=e.type._context,u=e.pendingProps.children,ol(e),f=me(f),u=u(f),e.flags|=1,ye(t,e,u,n),e.child;case 14:return Cs(t,e,e.type,e.pendingProps,n);case 15:return xs(t,e,e.type,e.pendingProps,n);case 19:return Vs(t,e,n);case 31:return u=e.pendingProps,n=e.mode,u={mode:u.mode,children:u.children},t===null?(n=Ii(u,n),n.ref=e.ref,e.child=n,n.return=e,e=n):(n=hn(t.child,u),n.ref=e.ref,e.child=n,n.return=e,e=n),e;case 22:return Hs(t,e,n);case 24:return ol(e),u=me(ue),t===null?(f=Sf(),f===null&&(f=qt,r=vf(),f.pooledCache=r,r.refCount++,r!==null&&(f.pooledCacheLanes|=n),f=r),e.memoizedState={parent:u,cache:f},Bf(e),Nn(e,ue,f)):((t.lanes&n)!==0&&(_f(t,e),Ou(e,null,null,n),Uu()),f=t.memoizedState,r=e.memoizedState,f.parent!==u?(f={parent:u,cache:u},e.memoizedState=f,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=f),Nn(e,ue,u)):(u=r.cache,Nn(e,ue,u),u!==f.cache&&mf(e,[ue],n,!0))),ye(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(b(156,e.tag))}function En(t){t.flags|=4}function Ks(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!t0(e)){if(e=Ve.current,e!==null&&((Ot&4194048)===Ot?en!==null:(Ot&62914560)!==Ot&&(Ot&536870912)===0||e!==en))throw _u=Af,Mo;t.flags|=8192}}function $i(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Bc():536870912,t.lanes|=e,Jl|=e)}function Du(t,e){if(!Mt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var u=null;n!==null;)n.alternate!==null&&(u=n),n=n.sibling;u===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function Qt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,u=0;if(e)for(var f=t.child;f!==null;)n|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=t,f=f.sibling;else for(f=t.child;f!==null;)n|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=u,t.childLanes=n,e}function d1(t,e,n){var u=e.pendingProps;switch(df(e),e.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(e),null;case 1:return Qt(e),null;case 3:return n=e.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),e.memoizedState.cache!==u&&(e.flags|=2048),pn(ue),he(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(bu(e)?En(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,_o())),Qt(e),null;case 26:return n=e.memoizedState,t===null?(En(e),n!==null?(Qt(e),Ks(e,n)):(Qt(e),e.flags&=-16777217)):n?n!==t.memoizedState?(En(e),Qt(e),Ks(e,n)):(Qt(e),e.flags&=-16777217):(t.memoizedProps!==u&&En(e),Qt(e),e.flags&=-16777217),null;case 27:At(e),n=nt.current;var f=e.type;if(t!==null&&e.stateNode!=null)t.memoizedProps!==u&&En(e);else{if(!u){if(e.stateNode===null)throw Error(b(166));return Qt(e),null}t=it.current,bu(e)?Ao(e):(t=Kh(f,u,n),e.stateNode=t,En(e))}return Qt(e),null;case 5:if(At(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==u&&En(e);else{if(!u){if(e.stateNode===null)throw Error(b(166));return Qt(e),null}if(t=it.current,bu(e))Ao(e);else{switch(f=ca(nt.current),t){case 1:t=f.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:t=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":t=f.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":t=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":t=f.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof u.is=="string"?f.createElement("select",{is:u.is}):f.createElement("select"),u.multiple?t.multiple=!0:u.size&&(t.size=u.size);break;default:t=typeof u.is=="string"?f.createElement(n,{is:u.is}):f.createElement(n)}}t[be]=e,t[Be]=u;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)t.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=t;t:switch(ge(t,n,u),n){case"button":case"input":case"select":case"textarea":t=!!u.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&En(e)}}return Qt(e),e.flags&=-16777217,null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==u&&En(e);else{if(typeof u!="string"&&e.stateNode===null)throw Error(b(166));if(t=nt.current,bu(e)){if(t=e.stateNode,n=e.memoizedProps,u=null,f=Ae,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}t[be]=e,t=!!(t.nodeValue===n||u!==null&&u.suppressHydrationWarning===!0||qh(t.nodeValue,n)),t||rl(e)}else t=ca(t).createTextNode(u),t[be]=e,e.stateNode=t}return Qt(e),null;case 13:if(u=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(f=bu(e),u!==null&&u.dehydrated!==null){if(t===null){if(!f)throw Error(b(318));if(f=e.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(b(317));f[be]=e}else mu(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),f=!1}else f=_o(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=f),f=!0;if(!f)return e.flags&256?(mn(e),e):(mn(e),null)}if(mn(e),(e.flags&128)!==0)return e.lanes=n,e;if(n=u!==null,t=t!==null&&t.memoizedState!==null,n){u=e.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool);var r=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(r=u.memoizedState.cachePool.pool),r!==f&&(u.flags|=2048)}return n!==t&&n&&(e.child.flags|=8192),$i(e,e.updateQueue),Qt(e),null;case 4:return he(),t===null&&Ur(e.stateNode.containerInfo),Qt(e),null;case 10:return pn(e.type),Qt(e),null;case 19:if(F(ie),f=e.memoizedState,f===null)return Qt(e),null;if(u=(e.flags&128)!==0,r=f.rendering,r===null)if(u)Du(f,!1);else{if(It!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Zi(t),r!==null){for(e.flags|=128,Du(f,!1),t=r.updateQueue,e.updateQueue=t,$i(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Eo(n,t),n=n.sibling;return $(ie,ie.current&1|2),e.child}t=t.sibling}f.tail!==null&&i()>Pi&&(e.flags|=128,u=!0,Du(f,!1),e.lanes=4194304)}else{if(!u)if(t=Zi(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,$i(e,t),Du(f,!0),f.tail===null&&f.tailMode==="hidden"&&!r.alternate&&!Mt)return Qt(e),null}else 2*i()-f.renderingStartTime>Pi&&n!==536870912&&(e.flags|=128,u=!0,Du(f,!1),e.lanes=4194304);f.isBackwards?(r.sibling=e.child,e.child=r):(t=f.last,t!==null?t.sibling=r:e.child=r,f.last=r)}return f.tail!==null?(e=f.tail,f.rendering=e,f.tail=e.sibling,f.renderingStartTime=i(),e.sibling=null,t=ie.current,$(ie,u?t&1|2:t&1),e):(Qt(e),null);case 22:case 23:return mn(e),wf(),u=e.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(e.flags|=8192):u&&(e.flags|=8192),u?(n&536870912)!==0&&(e.flags&128)===0&&(Qt(e),e.subtreeFlags&6&&(e.flags|=8192)):Qt(e),n=e.updateQueue,n!==null&&$i(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),u=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(u=e.memoizedState.cachePool.pool),u!==n&&(e.flags|=2048),t!==null&&F(sl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),pn(ue),Qt(e),null;case 25:return null;case 30:return null}throw Error(b(156,e.tag))}function g1(t,e){switch(df(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return pn(ue),he(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return At(e),null;case 13:if(mn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(b(340));mu()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return F(ie),null;case 4:return he(),null;case 10:return pn(e.type),null;case 22:case 23:return mn(e),wf(),t!==null&&F(sl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return pn(ue),null;case 25:return null;default:return null}}function Js(t,e){switch(df(e),e.tag){case 3:pn(ue),he();break;case 26:case 27:case 5:At(e);break;case 4:he();break;case 13:mn(e);break;case 19:F(ie);break;case 10:pn(e.type);break;case 22:case 23:mn(e),wf(),t!==null&&F(sl);break;case 24:pn(ue)}}function Cu(t,e){try{var n=e.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var f=u.next;n=f;do{if((n.tag&t)===t){u=void 0;var r=n.create,g=n.inst;u=r(),g.destroy=u}n=n.next}while(n!==f)}}catch(m){Yt(e,e.return,m)}}function Yn(t,e,n){try{var u=e.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var r=f.next;u=r;do{if((u.tag&t)===t){var g=u.inst,m=g.destroy;if(m!==void 0){g.destroy=void 0,f=e;var S=n,L=m;try{L()}catch(Q){Yt(f,S,Q)}}}u=u.next}while(u!==r)}}catch(Q){Yt(e,e.return,Q)}}function ks(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Co(e,n)}catch(u){Yt(t,t.return,u)}}}function Is(t,e,n){n.props=yl(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(u){Yt(t,e,u)}}function xu(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof n=="function"?t.refCleanup=n(u):n.current=u}}catch(f){Yt(t,e,f)}}function nn(t,e){var n=t.ref,u=t.refCleanup;if(n!==null)if(typeof u=="function")try{u()}catch(f){Yt(t,e,f)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(f){Yt(t,e,f)}else n.current=null}function $s(t){var e=t.type,n=t.memoizedProps,u=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&u.focus();break t;case"img":n.src?u.src=n.src:n.srcSet&&(u.srcset=n.srcSet)}}catch(f){Yt(t,t.return,f)}}function nr(t,e,n){try{var u=t.stateNode;x1(u,t.type,n,e),u[Be]=e}catch(f){Yt(t,t.return,f)}}function Ws(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Kn(t.type)||t.tag===4}function lr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ws(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Kn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ur(t,e,n){var u=t.tag;if(u===5||u===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ra));else if(u!==4&&(u===27&&Kn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(ur(t,e,n),t=t.sibling;t!==null;)ur(t,e,n),t=t.sibling}function Wi(t,e,n){var u=t.tag;if(u===5||u===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(u!==4&&(u===27&&Kn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Wi(t,e,n),t=t.sibling;t!==null;)Wi(t,e,n),t=t.sibling}function Fs(t){var e=t.stateNode,n=t.memoizedProps;try{for(var u=t.type,f=e.attributes;f.length;)e.removeAttributeNode(f[0]);ge(e,u,n),e[be]=t,e[Be]=n}catch(r){Yt(t,t.return,r)}}var Sn=!1,Wt=!1,ir=!1,Ps=typeof WeakSet=="function"?WeakSet:Set,oe=null;function p1(t,e){if(t=t.containerInfo,Mr=ga,t=co(t),nf(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var u=n.getSelection&&n.getSelection();if(u&&u.rangeCount!==0){n=u.anchorNode;var f=u.anchorOffset,r=u.focusNode;u=u.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var g=0,m=-1,S=-1,L=0,Q=0,Z=t,C=null;e:for(;;){for(var x;Z!==n||f!==0&&Z.nodeType!==3||(m=g+f),Z!==r||u!==0&&Z.nodeType!==3||(S=g+u),Z.nodeType===3&&(g+=Z.nodeValue.length),(x=Z.firstChild)!==null;)C=Z,Z=x;for(;;){if(Z===t)break e;if(C===n&&++L===f&&(m=g),C===r&&++Q===u&&(S=g),(x=Z.nextSibling)!==null)break;Z=C,C=Z.parentNode}Z=x}n=m===-1||S===-1?null:{start:m,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rr={focusedElem:t,selectionRange:n},ga=!1,oe=e;oe!==null;)if(e=oe,t=e.child,(e.subtreeFlags&1024)!==0&&t!==null)t.return=e,oe=t;else for(;oe!==null;){switch(e=oe,r=e.alternate,t=e.flags,e.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,f=r.memoizedProps,r=r.memoizedState,u=n.stateNode;try{var dt=yl(n.type,f,n.elementType===n.type);t=u.getSnapshotBeforeUpdate(dt,r),u.__reactInternalSnapshotBeforeUpdate=t}catch(ht){Yt(n,n.return,ht)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Lr(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Lr(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(b(163))}if(t=e.sibling,t!==null){t.return=e.return,oe=t;break}oe=e.return}}function th(t,e,n){var u=n.flags;switch(n.tag){case 0:case 11:case 15:qn(t,n),u&4&&Cu(5,n);break;case 1:if(qn(t,n),u&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(g){Yt(n,n.return,g)}else{var f=yl(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(f,e,t.__reactInternalSnapshotBeforeUpdate)}catch(g){Yt(n,n.return,g)}}u&64&&ks(n),u&512&&xu(n,n.return);break;case 3:if(qn(t,n),u&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Co(t,e)}catch(g){Yt(n,n.return,g)}}break;case 27:e===null&&u&4&&Fs(n);case 26:case 5:qn(t,n),e===null&&u&4&&$s(n),u&512&&xu(n,n.return);break;case 12:qn(t,n);break;case 13:qn(t,n),u&4&&lh(t,n),u&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=T1.bind(null,n),X1(t,n))));break;case 22:if(u=n.memoizedState!==null||Sn,!u){e=e!==null&&e.memoizedState!==null||Wt,f=Sn;var r=Wt;Sn=u,(Wt=e)&&!r?Gn(t,n,(n.subtreeFlags&8772)!==0):qn(t,n),Sn=f,Wt=r}break;case 30:break;default:qn(t,n)}}function eh(t){var e=t.alternate;e!==null&&(t.alternate=null,eh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ha(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Gt=null,Ue=!1;function An(t,e,n){for(n=n.child;n!==null;)nh(t,e,n),n=n.sibling}function nh(t,e,n){if(H&&typeof H.onCommitFiberUnmount=="function")try{H.onCommitFiberUnmount(D,n)}catch{}switch(n.tag){case 26:Wt||nn(n,e),An(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Wt||nn(n,e);var u=Gt,f=Ue;Kn(n.type)&&(Gt=n.stateNode,Ue=!1),An(t,e,n),Zu(n.stateNode),Gt=u,Ue=f;break;case 5:Wt||nn(n,e);case 6:if(u=Gt,f=Ue,Gt=null,An(t,e,n),Gt=u,Ue=f,Gt!==null)if(Ue)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(n.stateNode)}catch(r){Yt(n,e,r)}else try{Gt.removeChild(n.stateNode)}catch(r){Yt(n,e,r)}break;case 18:Gt!==null&&(Ue?(t=Gt,Vh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Pu(t)):Vh(Gt,n.stateNode));break;case 4:u=Gt,f=Ue,Gt=n.stateNode.containerInfo,Ue=!0,An(t,e,n),Gt=u,Ue=f;break;case 0:case 11:case 14:case 15:Wt||Yn(2,n,e),Wt||Yn(4,n,e),An(t,e,n);break;case 1:Wt||(nn(n,e),u=n.stateNode,typeof u.componentWillUnmount=="function"&&Is(n,e,u)),An(t,e,n);break;case 21:An(t,e,n);break;case 22:Wt=(u=Wt)||n.memoizedState!==null,An(t,e,n),Wt=u;break;default:An(t,e,n)}}function lh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Pu(t)}catch(n){Yt(e,e.return,n)}}function b1(t){switch(t.tag){case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Ps),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Ps),e;default:throw Error(b(435,t.tag))}}function ar(t,e){var n=b1(t);e.forEach(function(u){var f=U1.bind(null,t,u);n.has(u)||(n.add(u),u.then(f,f))})}function ze(t,e){var n=e.deletions;if(n!==null)for(var u=0;u<n.length;u++){var f=n[u],r=t,g=e,m=g;t:for(;m!==null;){switch(m.tag){case 27:if(Kn(m.type)){Gt=m.stateNode,Ue=!1;break t}break;case 5:Gt=m.stateNode,Ue=!1;break t;case 3:case 4:Gt=m.stateNode.containerInfo,Ue=!0;break t}m=m.return}if(Gt===null)throw Error(b(160));nh(r,g,f),Gt=null,Ue=!1,r=f.alternate,r!==null&&(r.return=null),f.return=null}if(e.subtreeFlags&13878)for(e=e.child;e!==null;)uh(e,t),e=e.sibling}var Ie=null;function uh(t,e){var n=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ze(e,t),Le(t),u&4&&(Yn(3,t,t.return),Cu(3,t),Yn(5,t,t.return));break;case 1:ze(e,t),Le(t),u&512&&(Wt||n===null||nn(n,n.return)),u&64&&Sn&&(t=t.updateQueue,t!==null&&(u=t.callbacks,u!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?u:n.concat(u))));break;case 26:var f=Ie;if(ze(e,t),Le(t),u&512&&(Wt||n===null||nn(n,n.return)),u&4){var r=n!==null?n.memoizedState:null;if(u=t.memoizedState,n===null)if(u===null)if(t.stateNode===null){t:{u=t.type,n=t.memoizedProps,f=f.ownerDocument||f;e:switch(u){case"title":r=f.getElementsByTagName("title")[0],(!r||r[au]||r[be]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=f.createElement(u),f.head.insertBefore(r,f.querySelector("head > title"))),ge(r,u,n),r[be]=t,re(r),u=r;break t;case"link":var g=Fh("link","href",f).get(u+(n.href||""));if(g){for(var m=0;m<g.length;m++)if(r=g[m],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){g.splice(m,1);break e}}r=f.createElement(u),ge(r,u,n),f.head.appendChild(r);break;case"meta":if(g=Fh("meta","content",f).get(u+(n.content||""))){for(m=0;m<g.length;m++)if(r=g[m],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){g.splice(m,1);break e}}r=f.createElement(u),ge(r,u,n),f.head.appendChild(r);break;default:throw Error(b(468,u))}r[be]=t,re(r),u=r}t.stateNode=u}else Ph(f,t.type,t.stateNode);else t.stateNode=Wh(f,u,t.memoizedProps);else r!==u?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,u===null?Ph(f,t.type,t.stateNode):Wh(f,u,t.memoizedProps)):u===null&&t.stateNode!==null&&nr(t,t.memoizedProps,n.memoizedProps)}break;case 27:ze(e,t),Le(t),u&512&&(Wt||n===null||nn(n,n.return)),n!==null&&u&4&&nr(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ze(e,t),Le(t),u&512&&(Wt||n===null||nn(n,n.return)),t.flags&32){f=t.stateNode;try{Tl(f,"")}catch(x){Yt(t,t.return,x)}}u&4&&t.stateNode!=null&&(f=t.memoizedProps,nr(t,f,n!==null?n.memoizedProps:f)),u&1024&&(ir=!0);break;case 6:if(ze(e,t),Le(t),u&4){if(t.stateNode===null)throw Error(b(162));u=t.memoizedProps,n=t.stateNode;try{n.nodeValue=u}catch(x){Yt(t,t.return,x)}}break;case 3:if(ha=null,f=Ie,Ie=oa(e.containerInfo),ze(e,t),Ie=f,Le(t),u&4&&n!==null&&n.memoizedState.isDehydrated)try{Pu(e.containerInfo)}catch(x){Yt(t,t.return,x)}ir&&(ir=!1,ih(t));break;case 4:u=Ie,Ie=oa(t.stateNode.containerInfo),ze(e,t),Le(t),Ie=u;break;case 12:ze(e,t),Le(t);break;case 13:ze(e,t),Le(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(hr=i()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,ar(t,u)));break;case 22:f=t.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,L=Sn,Q=Wt;if(Sn=L||f,Wt=Q||S,ze(e,t),Wt=Q,Sn=L,Le(t),u&8192)t:for(e=t.stateNode,e._visibility=f?e._visibility&-2:e._visibility|1,f&&(n===null||S||Sn||Wt||dl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){S=n=e;try{if(r=S.stateNode,f)g=r.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{m=S.stateNode;var Z=S.memoizedProps.style,C=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;m.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(x){Yt(S,S.return,x)}}}else if(e.tag===6){if(n===null){S=e;try{S.stateNode.nodeValue=f?"":S.memoizedProps}catch(x){Yt(S,S.return,x)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}u&4&&(u=t.updateQueue,u!==null&&(n=u.retryQueue,n!==null&&(u.retryQueue=null,ar(t,n))));break;case 19:ze(e,t),Le(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,ar(t,u)));break;case 30:break;case 21:break;default:ze(e,t),Le(t)}}function Le(t){var e=t.flags;if(e&2){try{for(var n,u=t.return;u!==null;){if(Ws(u)){n=u;break}u=u.return}if(n==null)throw Error(b(160));switch(n.tag){case 27:var f=n.stateNode,r=lr(t);Wi(t,r,f);break;case 5:var g=n.stateNode;n.flags&32&&(Tl(g,""),n.flags&=-33);var m=lr(t);Wi(t,m,g);break;case 3:case 4:var S=n.stateNode.containerInfo,L=lr(t);ur(t,L,S);break;default:throw Error(b(161))}}catch(Q){Yt(t,t.return,Q)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function ih(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;ih(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function qn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)th(t,e.alternate,e),e=e.sibling}function dl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Yn(4,e,e.return),dl(e);break;case 1:nn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Is(e,e.return,n),dl(e);break;case 27:Zu(e.stateNode);case 26:case 5:nn(e,e.return),dl(e);break;case 22:e.memoizedState===null&&dl(e);break;case 30:dl(e);break;default:dl(e)}t=t.sibling}}function Gn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var u=e.alternate,f=t,r=e,g=r.flags;switch(r.tag){case 0:case 11:case 15:Gn(f,r,n),Cu(4,r);break;case 1:if(Gn(f,r,n),u=r,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(L){Yt(u,u.return,L)}if(u=r,f=u.updateQueue,f!==null){var m=u.stateNode;try{var S=f.shared.hiddenCallbacks;if(S!==null)for(f.shared.hiddenCallbacks=null,f=0;f<S.length;f++)Do(S[f],m)}catch(L){Yt(u,u.return,L)}}n&&g&64&&ks(r),xu(r,r.return);break;case 27:Fs(r);case 26:case 5:Gn(f,r,n),n&&u===null&&g&4&&$s(r),xu(r,r.return);break;case 12:Gn(f,r,n);break;case 13:Gn(f,r,n),n&&g&4&&lh(f,r);break;case 22:r.memoizedState===null&&Gn(f,r,n),xu(r,r.return);break;case 30:break;default:Gn(f,r,n)}e=e.sibling}}function fr(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Su(n))}function rr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Su(t))}function ln(t,e,n,u){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ah(t,e,n,u),e=e.sibling}function ah(t,e,n,u){var f=e.flags;switch(e.tag){case 0:case 11:case 15:ln(t,e,n,u),f&2048&&Cu(9,e);break;case 1:ln(t,e,n,u);break;case 3:ln(t,e,n,u),f&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Su(t)));break;case 12:if(f&2048){ln(t,e,n,u),t=e.stateNode;try{var r=e.memoizedProps,g=r.id,m=r.onPostCommit;typeof m=="function"&&m(g,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(S){Yt(e,e.return,S)}}else ln(t,e,n,u);break;case 13:ln(t,e,n,u);break;case 23:break;case 22:r=e.stateNode,g=e.alternate,e.memoizedState!==null?r._visibility&2?ln(t,e,n,u):Hu(t,e):r._visibility&2?ln(t,e,n,u):(r._visibility|=2,Vl(t,e,n,u,(e.subtreeFlags&10256)!==0)),f&2048&&fr(g,e);break;case 24:ln(t,e,n,u),f&2048&&rr(e.alternate,e);break;default:ln(t,e,n,u)}}function Vl(t,e,n,u,f){for(f=f&&(e.subtreeFlags&10256)!==0,e=e.child;e!==null;){var r=t,g=e,m=n,S=u,L=g.flags;switch(g.tag){case 0:case 11:case 15:Vl(r,g,m,S,f),Cu(8,g);break;case 23:break;case 22:var Q=g.stateNode;g.memoizedState!==null?Q._visibility&2?Vl(r,g,m,S,f):Hu(r,g):(Q._visibility|=2,Vl(r,g,m,S,f)),f&&L&2048&&fr(g.alternate,g);break;case 24:Vl(r,g,m,S,f),f&&L&2048&&rr(g.alternate,g);break;default:Vl(r,g,m,S,f)}e=e.sibling}}function Hu(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,u=e,f=u.flags;switch(u.tag){case 22:Hu(n,u),f&2048&&fr(u.alternate,u);break;case 24:Hu(n,u),f&2048&&rr(u.alternate,u);break;default:Hu(n,u)}e=e.sibling}}var Yu=8192;function Zl(t){if(t.subtreeFlags&Yu)for(t=t.child;t!==null;)fh(t),t=t.sibling}function fh(t){switch(t.tag){case 26:Zl(t),t.flags&Yu&&t.memoizedState!==null&&nd(Ie,t.memoizedState,t.memoizedProps);break;case 5:Zl(t);break;case 3:case 4:var e=Ie;Ie=oa(t.stateNode.containerInfo),Zl(t),Ie=e;break;case 22:t.memoizedState===null&&(e=t.alternate,e!==null&&e.memoizedState!==null?(e=Yu,Yu=16777216,Zl(t),Yu=e):Zl(t));break;default:Zl(t)}}function rh(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function qu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var u=e[n];oe=u,oh(u,t)}rh(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ch(t),t=t.sibling}function ch(t){switch(t.tag){case 0:case 11:case 15:qu(t),t.flags&2048&&Yn(9,t,t.return);break;case 3:qu(t);break;case 12:qu(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Fi(t)):qu(t);break;default:qu(t)}}function Fi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var u=e[n];oe=u,oh(u,t)}rh(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Yn(8,e,e.return),Fi(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Fi(e));break;default:Fi(e)}t=t.sibling}}function oh(t,e){for(;oe!==null;){var n=oe;switch(n.tag){case 0:case 11:case 15:Yn(8,n,e);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:Su(n.memoizedState.cache)}if(u=n.child,u!==null)u.return=n,oe=u;else t:for(n=t;oe!==null;){u=oe;var f=u.sibling,r=u.return;if(eh(u),u===n){oe=null;break t}if(f!==null){f.return=r,oe=f;break t}oe=r}}}var m1={getCacheForType:function(t){var e=me(ue),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n}},v1=typeof WeakMap=="function"?WeakMap:Map,Nt=0,qt=null,Bt=null,Ot=0,zt=0,De=null,jn=!1,Kl=!1,cr=!1,Bn=0,It=0,Qn=0,gl=0,or=0,Ze=0,Jl=0,Gu=null,Oe=null,sr=!1,hr=0,Pi=1/0,ta=null,Xn=null,de=0,Vn=null,kl=null,Il=0,yr=0,dr=null,sh=null,ju=0,gr=null;function Ce(){if((Nt&2)!==0&&Ot!==0)return Ot&-Ot;if(q.T!==null){var t=xl;return t!==0?t:Ar()}return Uc()}function hh(){Ze===0&&(Ze=(Ot&536870912)===0||Mt?Ac():536870912);var t=Ve.current;return t!==null&&(t.flags|=32),Ze}function xe(t,e,n){(t===qt&&(zt===2||zt===9)||t.cancelPendingCommit!==null)&&($l(t,0),Zn(t,Ot,Ze,!1)),iu(t,n),((Nt&2)===0||t!==qt)&&(t===qt&&((Nt&2)===0&&(gl|=n),It===4&&Zn(t,Ot,Ze,!1)),un(t))}function yh(t,e,n){if((Nt&6)!==0)throw Error(b(327));var u=!n&&(e&124)===0&&(e&t.expiredLanes)===0||uu(t,e),f=u?A1(t,e):mr(t,e,!0),r=u;do{if(f===0){Kl&&!u&&Zn(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!E1(n)){f=mr(t,e,!1),r=!1;continue}if(f===2){if(r=e,t.errorRecoveryDisabledLanes&r)var g=0;else g=t.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){e=g;t:{var m=t;f=Gu;var S=m.current.memoizedState.isDehydrated;if(S&&($l(m,g).flags|=256),g=mr(m,g,!1),g!==2){if(cr&&!S){m.errorRecoveryDisabledLanes|=r,gl|=r,f=4;break t}r=Oe,Oe=f,r!==null&&(Oe===null?Oe=r:Oe.push.apply(Oe,r))}f=g}if(r=!1,f!==2)continue}}if(f===1){$l(t,0),Zn(t,e,0,!0);break}t:{switch(u=t,r=f,r){case 0:case 1:throw Error(b(345));case 4:if((e&4194048)!==e)break;case 6:Zn(u,e,Ze,!jn);break t;case 2:Oe=null;break;case 3:case 5:break;default:throw Error(b(329))}if((e&62914560)===e&&(f=hr+300-i(),10<f)){if(Zn(u,e,Ze,!jn),si(u,0,!0)!==0)break t;u.timeoutHandle=Qh(dh.bind(null,u,n,Oe,ta,sr,e,Ze,gl,Jl,jn,r,2,-0,0),f);break t}dh(u,n,Oe,ta,sr,e,Ze,gl,Jl,jn,r,0,-0,0)}}break}while(!0);un(t)}function dh(t,e,n,u,f,r,g,m,S,L,Q,Z,C,x){if(t.timeoutHandle=-1,Z=e.subtreeFlags,(Z&8192||(Z&16785408)===16785408)&&(ku={stylesheets:null,count:0,unsuspend:ed},fh(e),Z=ld(),Z!==null)){t.cancelPendingCommit=Z(Sh.bind(null,t,e,r,n,u,f,g,m,S,Q,1,C,x)),Zn(t,r,g,!L);return}Sh(t,e,r,n,u,f,g,m,S)}function E1(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var u=0;u<n.length;u++){var f=n[u],r=f.getSnapshot;f=f.value;try{if(!Re(r(),f))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Zn(t,e,n,u){e&=~or,e&=~gl,t.suspendedLanes|=e,t.pingedLanes&=~e,u&&(t.warmLanes|=e),u=t.expirationTimes;for(var f=e;0<f;){var r=31-k(f),g=1<<r;u[r]=-1,f&=~g}n!==0&&_c(t,n,e)}function ea(){return(Nt&6)===0?(Qu(0),!1):!0}function pr(){if(Bt!==null){if(zt===0)var t=Bt.return;else t=Bt,gn=cl=null,Lf(t),Ql=null,zu=0,t=Bt;for(;t!==null;)Js(t.alternate,t),t=t.return;Bt=null}}function $l(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Y1(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),pr(),qt=t,Bt=n=hn(t.current,null),Ot=e,zt=0,De=null,jn=!1,Kl=uu(t,e),cr=!1,Jl=Ze=or=gl=Qn=It=0,Oe=Gu=null,sr=!1,(e&8)!==0&&(e|=e&32);var u=t.entangledLanes;if(u!==0)for(t=t.entanglements,u&=e;0<u;){var f=31-k(u),r=1<<f;e|=t[f],u&=~r}return Bn=e,Bi(),n}function gh(t,e){mt=null,q.H=Qi,e===Bu||e===zi?(e=zo(),zt=3):e===Mo?(e=zo(),zt=4):zt=e===Ls?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,De=e,Bt===null&&(It=1,Ji(t,Ge(e,t.current)))}function ph(){var t=q.H;return q.H=Qi,t===null?Qi:t}function bh(){var t=q.A;return q.A=m1,t}function br(){It=4,jn||(Ot&4194048)!==Ot&&Ve.current!==null||(Kl=!0),(Qn&134217727)===0&&(gl&134217727)===0||qt===null||Zn(qt,Ot,Ze,!1)}function mr(t,e,n){var u=Nt;Nt|=2;var f=ph(),r=bh();(qt!==t||Ot!==e)&&(ta=null,$l(t,e)),e=!1;var g=It;t:do try{if(zt!==0&&Bt!==null){var m=Bt,S=De;switch(zt){case 8:pr(),g=6;break t;case 3:case 2:case 9:case 6:Ve.current===null&&(e=!0);var L=zt;if(zt=0,De=null,Wl(t,m,S,L),n&&Kl){g=0;break t}break;default:L=zt,zt=0,De=null,Wl(t,m,S,L)}}S1(),g=It;break}catch(Q){gh(t,Q)}while(!0);return e&&t.shellSuspendCounter++,gn=cl=null,Nt=u,q.H=f,q.A=r,Bt===null&&(qt=null,Ot=0,Bi()),g}function S1(){for(;Bt!==null;)mh(Bt)}function A1(t,e){var n=Nt;Nt|=2;var u=ph(),f=bh();qt!==t||Ot!==e?(ta=null,Pi=i()+500,$l(t,e)):Kl=uu(t,e);t:do try{if(zt!==0&&Bt!==null){e=Bt;var r=De;e:switch(zt){case 1:zt=0,De=null,Wl(t,e,r,1);break;case 2:case 9:if(Ro(r)){zt=0,De=null,vh(e);break}e=function(){zt!==2&&zt!==9||qt!==t||(zt=7),un(t)},r.then(e,e);break t;case 3:zt=7;break t;case 4:zt=5;break t;case 7:Ro(r)?(zt=0,De=null,vh(e)):(zt=0,De=null,Wl(t,e,r,7));break;case 5:var g=null;switch(Bt.tag){case 26:g=Bt.memoizedState;case 5:case 27:var m=Bt;if(!g||t0(g)){zt=0,De=null;var S=m.sibling;if(S!==null)Bt=S;else{var L=m.return;L!==null?(Bt=L,na(L)):Bt=null}break e}}zt=0,De=null,Wl(t,e,r,5);break;case 6:zt=0,De=null,Wl(t,e,r,6);break;case 8:pr(),It=6;break t;default:throw Error(b(462))}}B1();break}catch(Q){gh(t,Q)}while(!0);return gn=cl=null,q.H=u,q.A=f,Nt=n,Bt!==null?0:(qt=null,Ot=0,Bi(),It)}function B1(){for(;Bt!==null&&!Fn();)mh(Bt)}function mh(t){var e=Zs(t.alternate,t,Bn);t.memoizedProps=t.pendingProps,e===null?na(t):Bt=e}function vh(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=qs(n,e,e.pendingProps,e.type,void 0,Ot);break;case 11:e=qs(n,e,e.pendingProps,e.type.render,e.ref,Ot);break;case 5:Lf(e);default:Js(n,e),e=Bt=Eo(e,Bn),e=Zs(n,e,Bn)}t.memoizedProps=t.pendingProps,e===null?na(t):Bt=e}function Wl(t,e,n,u){gn=cl=null,Lf(e),Ql=null,zu=0;var f=e.return;try{if(h1(t,f,e,n,Ot)){It=1,Ji(t,Ge(n,t.current)),Bt=null;return}}catch(r){if(f!==null)throw Bt=f,r;It=1,Ji(t,Ge(n,t.current)),Bt=null;return}e.flags&32768?(Mt||u===1?t=!0:Kl||(Ot&536870912)!==0?t=!1:(jn=t=!0,(u===2||u===9||u===3||u===6)&&(u=Ve.current,u!==null&&u.tag===13&&(u.flags|=16384))),Eh(e,t)):na(e)}function na(t){var e=t;do{if((e.flags&32768)!==0){Eh(e,jn);return}t=e.return;var n=d1(e.alternate,e,Bn);if(n!==null){Bt=n;return}if(e=e.sibling,e!==null){Bt=e;return}Bt=e=t}while(e!==null);It===0&&(It=5)}function Eh(t,e){do{var n=g1(t.alternate,t);if(n!==null){n.flags&=32767,Bt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Bt=t;return}Bt=t=n}while(t!==null);It=6,Bt=null}function Sh(t,e,n,u,f,r,g,m,S){t.cancelPendingCommit=null;do la();while(de!==0);if((Nt&6)!==0)throw Error(b(327));if(e!==null){if(e===t.current)throw Error(b(177));if(r=e.lanes|e.childLanes,r|=rf,ey(t,n,r,g,m,S),t===qt&&(Bt=qt=null,Ot=0),kl=e,Vn=t,Il=n,yr=r,dr=f,sh=u,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,O1(d,function(){return Uh(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||u){u=q.T,q.T=null,f=W.p,W.p=2,g=Nt,Nt|=4;try{p1(t,e,n)}finally{Nt=g,W.p=f,q.T=u}}de=1,Ah(),Bh(),_h()}}function Ah(){if(de===1){de=0;var t=Vn,e=kl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=q.T,q.T=null;var u=W.p;W.p=2;var f=Nt;Nt|=4;try{uh(e,t);var r=Rr,g=co(t.containerInfo),m=r.focusedElem,S=r.selectionRange;if(g!==m&&m&&m.ownerDocument&&ro(m.ownerDocument.documentElement,m)){if(S!==null&&nf(m)){var L=S.start,Q=S.end;if(Q===void 0&&(Q=L),"selectionStart"in m)m.selectionStart=L,m.selectionEnd=Math.min(Q,m.value.length);else{var Z=m.ownerDocument||document,C=Z&&Z.defaultView||window;if(C.getSelection){var x=C.getSelection(),dt=m.textContent.length,ht=Math.min(S.start,dt),xt=S.end===void 0?ht:Math.min(S.end,dt);!x.extend&&ht>xt&&(g=xt,xt=ht,ht=g);var M=fo(m,ht),T=fo(m,xt);if(M&&T&&(x.rangeCount!==1||x.anchorNode!==M.node||x.anchorOffset!==M.offset||x.focusNode!==T.node||x.focusOffset!==T.offset)){var N=Z.createRange();N.setStart(M.node,M.offset),x.removeAllRanges(),ht>xt?(x.addRange(N),x.extend(T.node,T.offset)):(N.setEnd(T.node,T.offset),x.addRange(N))}}}}for(Z=[],x=m;x=x.parentNode;)x.nodeType===1&&Z.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<Z.length;m++){var V=Z[m];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}ga=!!Mr,Rr=Mr=null}finally{Nt=f,W.p=u,q.T=n}}t.current=e,de=2}}function Bh(){if(de===2){de=0;var t=Vn,e=kl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=q.T,q.T=null;var u=W.p;W.p=2;var f=Nt;Nt|=4;try{th(t,e.alternate,e)}finally{Nt=f,W.p=u,q.T=n}}de=3}}function _h(){if(de===4||de===3){de=0,l();var t=Vn,e=kl,n=Il,u=sh;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?de=5:(de=0,kl=Vn=null,Th(t,t.pendingLanes));var f=t.pendingLanes;if(f===0&&(Xn=null),Ca(n),e=e.stateNode,H&&typeof H.onCommitFiberRoot=="function")try{H.onCommitFiberRoot(D,e,void 0,(e.current.flags&128)===128)}catch{}if(u!==null){e=q.T,f=W.p,W.p=2,q.T=null;try{for(var r=t.onRecoverableError,g=0;g<u.length;g++){var m=u[g];r(m.value,{componentStack:m.stack})}}finally{q.T=e,W.p=f}}(Il&3)!==0&&la(),un(t),f=t.pendingLanes,(n&4194090)!==0&&(f&42)!==0?t===gr?ju++:(ju=0,gr=t):ju=0,Qu(0)}}function Th(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Su(e)))}function la(t){return Ah(),Bh(),_h(),Uh()}function Uh(){if(de!==5)return!1;var t=Vn,e=yr;yr=0;var n=Ca(Il),u=q.T,f=W.p;try{W.p=32>n?32:n,q.T=null,n=dr,dr=null;var r=Vn,g=Il;if(de=0,kl=Vn=null,Il=0,(Nt&6)!==0)throw Error(b(331));var m=Nt;if(Nt|=4,ch(r.current),ah(r,r.current,g,n),Nt=m,Qu(0,!1),H&&typeof H.onPostCommitFiberRoot=="function")try{H.onPostCommitFiberRoot(D,r)}catch{}return!0}finally{W.p=f,q.T=u,Th(t,e)}}function Oh(t,e,n){e=Ge(n,e),e=Jf(t.stateNode,e,2),t=Dn(t,e,2),t!==null&&(iu(t,2),un(t))}function Yt(t,e,n){if(t.tag===3)Oh(t,t,n);else for(;e!==null;){if(e.tag===3){Oh(e,t,n);break}else if(e.tag===1){var u=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Xn===null||!Xn.has(u))){t=Ge(n,t),n=Ns(2),u=Dn(e,n,2),u!==null&&(zs(n,u,e,t),iu(u,2),un(u));break}}e=e.return}}function vr(t,e,n){var u=t.pingCache;if(u===null){u=t.pingCache=new v1;var f=new Set;u.set(e,f)}else f=u.get(e),f===void 0&&(f=new Set,u.set(e,f));f.has(n)||(cr=!0,f.add(n),t=_1.bind(null,t,e,n),e.then(t,t))}function _1(t,e,n){var u=t.pingCache;u!==null&&u.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,qt===t&&(Ot&n)===n&&(It===4||It===3&&(Ot&62914560)===Ot&&300>i()-hr?(Nt&2)===0&&$l(t,0):or|=n,Jl===Ot&&(Jl=0)),un(t)}function wh(t,e){e===0&&(e=Bc()),t=zl(t,e),t!==null&&(iu(t,e),un(t))}function T1(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),wh(t,n)}function U1(t,e){var n=0;switch(t.tag){case 13:var u=t.stateNode,f=t.memoizedState;f!==null&&(n=f.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(b(314))}u!==null&&u.delete(e),wh(t,n)}function O1(t,e){return rn(t,e)}var ua=null,Fl=null,Er=!1,ia=!1,Sr=!1,pl=0;function un(t){t!==Fl&&t.next===null&&(Fl===null?ua=Fl=t:Fl=Fl.next=t),ia=!0,Er||(Er=!0,M1())}function Qu(t,e){if(!Sr&&ia){Sr=!0;do for(var n=!1,u=ua;u!==null;){if(t!==0){var f=u.pendingLanes;if(f===0)var r=0;else{var g=u.suspendedLanes,m=u.pingedLanes;r=(1<<31-k(42|t)+1)-1,r&=f&~(g&~m),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,zh(u,r))}else r=Ot,r=si(u,u===qt?r:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(r&3)===0||uu(u,r)||(n=!0,zh(u,r));u=u.next}while(n);Sr=!1}}function w1(){Mh()}function Mh(){ia=Er=!1;var t=0;pl!==0&&(H1()&&(t=pl),pl=0);for(var e=i(),n=null,u=ua;u!==null;){var f=u.next,r=Rh(u,e);r===0?(u.next=null,n===null?ua=f:n.next=f,f===null&&(Fl=n)):(n=u,(t!==0||(r&3)!==0)&&(ia=!0)),u=f}Qu(t)}function Rh(t,e){for(var n=t.suspendedLanes,u=t.pingedLanes,f=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var g=31-k(r),m=1<<g,S=f[g];S===-1?((m&n)===0||(m&u)!==0)&&(f[g]=ty(m,e)):S<=e&&(t.expiredLanes|=m),r&=~m}if(e=qt,n=Ot,n=si(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,n===0||t===e&&(zt===2||zt===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&Rt(u),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||uu(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(u!==null&&Rt(u),Ca(n)){case 2:case 8:n=s;break;case 32:n=d;break;case 268435456:n=B;break;default:n=d}return u=Nh.bind(null,t),n=rn(n,u),t.callbackPriority=e,t.callbackNode=n,e}return u!==null&&u!==null&&Rt(u),t.callbackPriority=2,t.callbackNode=null,2}function Nh(t,e){if(de!==0&&de!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(la()&&t.callbackNode!==n)return null;var u=Ot;return u=si(t,t===qt?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(yh(t,u,e),Rh(t,i()),t.callbackNode!=null&&t.callbackNode===n?Nh.bind(null,t):null)}function zh(t,e){if(la())return null;yh(t,e,!0)}function M1(){q1(function(){(Nt&6)!==0?rn(c,w1):Mh()})}function Ar(){return pl===0&&(pl=Ac()),pl}function Lh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:pi(""+t)}function Dh(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function R1(t,e,n,u,f){if(e==="submit"&&n&&n.stateNode===f){var r=Lh((f[Be]||null).action),g=u.submitter;g&&(e=(e=g[Be]||null)?Lh(e.formAction):g.getAttribute("formAction"),e!==null&&(r=e,g=null));var m=new Ei("action","action",null,u,f);t.push({event:m,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(pl!==0){var S=g?Dh(f,g):new FormData(f);Qf(n,{pending:!0,data:S,method:f.method,action:r},null,S)}}else typeof r=="function"&&(m.preventDefault(),S=g?Dh(f,g):new FormData(f),Qf(n,{pending:!0,data:S,method:f.method,action:r},r,S))},currentTarget:f}]})}}for(var Br=0;Br<ff.length;Br++){var _r=ff[Br],N1=_r.toLowerCase(),z1=_r[0].toUpperCase()+_r.slice(1);ke(N1,"on"+z1)}ke(ho,"onAnimationEnd"),ke(yo,"onAnimationIteration"),ke(go,"onAnimationStart"),ke("dblclick","onDoubleClick"),ke("focusin","onFocus"),ke("focusout","onBlur"),ke(Iy,"onTransitionRun"),ke($y,"onTransitionStart"),ke(Wy,"onTransitionCancel"),ke(po,"onTransitionEnd"),Al("onMouseEnter",["mouseout","mouseover"]),Al("onMouseLeave",["mouseout","mouseover"]),Al("onPointerEnter",["pointerout","pointerover"]),Al("onPointerLeave",["pointerout","pointerover"]),tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tl("onBeforeInput",["compositionend","keypress","textInput","paste"]),tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xu="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(" "),L1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xu));function Ch(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var u=t[n],f=u.event;u=u.listeners;t:{var r=void 0;if(e)for(var g=u.length-1;0<=g;g--){var m=u[g],S=m.instance,L=m.currentTarget;if(m=m.listener,S!==r&&f.isPropagationStopped())break t;r=m,f.currentTarget=L;try{r(f)}catch(Q){Ki(Q)}f.currentTarget=null,r=S}else for(g=0;g<u.length;g++){if(m=u[g],S=m.instance,L=m.currentTarget,m=m.listener,S!==r&&f.isPropagationStopped())break t;r=m,f.currentTarget=L;try{r(f)}catch(Q){Ki(Q)}f.currentTarget=null,r=S}}}}function _t(t,e){var n=e[xa];n===void 0&&(n=e[xa]=new Set);var u=t+"__bubble";n.has(u)||(xh(e,t,2,!1),n.add(u))}function Tr(t,e,n){var u=0;e&&(u|=4),xh(n,t,u,e)}var aa="_reactListening"+Math.random().toString(36).slice(2);function Ur(t){if(!t[aa]){t[aa]=!0,wc.forEach(function(n){n!=="selectionchange"&&(L1.has(n)||Tr(n,!1,t),Tr(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[aa]||(e[aa]=!0,Tr("selectionchange",!1,e))}}function xh(t,e,n,u){switch(a0(e)){case 2:var f=ad;break;case 8:f=fd;break;default:f=Gr}n=f.bind(null,e,n,t),f=void 0,!Ja||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(f=!0),u?f!==void 0?t.addEventListener(e,n,{capture:!0,passive:f}):t.addEventListener(e,n,!0):f!==void 0?t.addEventListener(e,n,{passive:f}):t.addEventListener(e,n,!1)}function Or(t,e,n,u,f){var r=u;if((e&1)===0&&(e&2)===0&&u!==null)t:for(;;){if(u===null)return;var g=u.tag;if(g===3||g===4){var m=u.stateNode.containerInfo;if(m===f)break;if(g===4)for(g=u.return;g!==null;){var S=g.tag;if((S===3||S===4)&&g.stateNode.containerInfo===f)return;g=g.return}for(;m!==null;){if(g=vl(m),g===null)return;if(S=g.tag,S===5||S===6||S===26||S===27){u=r=g;continue t}m=m.parentNode}}u=u.return}Qc(function(){var L=r,Q=Za(n),Z=[];t:{var C=bo.get(t);if(C!==void 0){var x=Ei,dt=t;switch(t){case"keypress":if(mi(n)===0)break t;case"keydown":case"keyup":x=Oy;break;case"focusin":dt="focus",x=Wa;break;case"focusout":dt="blur",x=Wa;break;case"beforeblur":case"afterblur":x=Wa;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":x=Zc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":x=gy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":x=Ry;break;case ho:case yo:case go:x=my;break;case po:x=zy;break;case"scroll":case"scrollend":x=yy;break;case"wheel":x=Dy;break;case"copy":case"cut":case"paste":x=Ey;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":x=Jc;break;case"toggle":case"beforetoggle":x=xy}var ht=(e&4)!==0,xt=!ht&&(t==="scroll"||t==="scrollend"),M=ht?C!==null?C+"Capture":null:C;ht=[];for(var T=L,N;T!==null;){var V=T;if(N=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||N===null||M===null||(V=ru(T,M),V!=null&&ht.push(Vu(T,V,N))),xt)break;T=T.return}0<ht.length&&(C=new x(C,dt,null,n,Q),Z.push({event:C,listeners:ht}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",x=t==="mouseout"||t==="pointerout",C&&n!==Va&&(dt=n.relatedTarget||n.fromElement)&&(vl(dt)||dt[ml]))break t;if((x||C)&&(C=Q.window===Q?Q:(C=Q.ownerDocument)?C.defaultView||C.parentWindow:window,x?(dt=n.relatedTarget||n.toElement,x=L,dt=dt?vl(dt):null,dt!==null&&(xt=U(dt),ht=dt.tag,dt!==xt||ht!==5&&ht!==27&&ht!==6)&&(dt=null)):(x=null,dt=L),x!==dt)){if(ht=Zc,V="onMouseLeave",M="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(ht=Jc,V="onPointerLeave",M="onPointerEnter",T="pointer"),xt=x==null?C:fu(x),N=dt==null?C:fu(dt),C=new ht(V,T+"leave",x,n,Q),C.target=xt,C.relatedTarget=N,V=null,vl(Q)===L&&(ht=new ht(M,T+"enter",dt,n,Q),ht.target=N,ht.relatedTarget=xt,V=ht),xt=V,x&&dt)e:{for(ht=x,M=dt,T=0,N=ht;N;N=Pl(N))T++;for(N=0,V=M;V;V=Pl(V))N++;for(;0<T-N;)ht=Pl(ht),T--;for(;0<N-T;)M=Pl(M),N--;for(;T--;){if(ht===M||M!==null&&ht===M.alternate)break e;ht=Pl(ht),M=Pl(M)}ht=null}else ht=null;x!==null&&Hh(Z,C,x,ht,!1),dt!==null&&xt!==null&&Hh(Z,xt,dt,ht,!0)}}t:{if(C=L?fu(L):window,x=C.nodeName&&C.nodeName.toLowerCase(),x==="select"||x==="input"&&C.type==="file")var et=eo;else if(Pc(C))if(no)et=Ky;else{et=Vy;var Et=Xy}else x=C.nodeName,!x||x.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?L&&Xa(L.elementType)&&(et=eo):et=Zy;if(et&&(et=et(t,L))){to(Z,et,n,Q);break t}Et&&Et(t,C,L),t==="focusout"&&L&&C.type==="number"&&L.memoizedProps.value!=null&&Qa(C,"number",C.value)}switch(Et=L?fu(L):window,t){case"focusin":(Pc(Et)||Et.contentEditable==="true")&&(Ml=Et,lf=L,pu=null);break;case"focusout":pu=lf=Ml=null;break;case"mousedown":uf=!0;break;case"contextmenu":case"mouseup":case"dragend":uf=!1,oo(Z,n,Q);break;case"selectionchange":if(ky)break;case"keydown":case"keyup":oo(Z,n,Q)}var ct;if(Pa)t:{switch(t){case"compositionstart":var yt="onCompositionStart";break t;case"compositionend":yt="onCompositionEnd";break t;case"compositionupdate":yt="onCompositionUpdate";break t}yt=void 0}else wl?Wc(t,n)&&(yt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(yt="onCompositionStart");yt&&(kc&&n.locale!=="ko"&&(wl||yt!=="onCompositionStart"?yt==="onCompositionEnd"&&wl&&(ct=Xc()):(Rn=Q,ka="value"in Rn?Rn.value:Rn.textContent,wl=!0)),Et=fa(L,yt),0<Et.length&&(yt=new Kc(yt,t,null,n,Q),Z.push({event:yt,listeners:Et}),ct?yt.data=ct:(ct=Fc(n),ct!==null&&(yt.data=ct)))),(ct=Yy?qy(t,n):Gy(t,n))&&(yt=fa(L,"onBeforeInput"),0<yt.length&&(Et=new Kc("onBeforeInput","beforeinput",null,n,Q),Z.push({event:Et,listeners:yt}),Et.data=ct)),R1(Z,t,L,n,Q)}Ch(Z,e)})}function Vu(t,e,n){return{instance:t,listener:e,currentTarget:n}}function fa(t,e){for(var n=e+"Capture",u=[];t!==null;){var f=t,r=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||r===null||(f=ru(t,n),f!=null&&u.unshift(Vu(t,f,r)),f=ru(t,e),f!=null&&u.push(Vu(t,f,r))),t.tag===3)return u;t=t.return}return[]}function Pl(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Hh(t,e,n,u,f){for(var r=e._reactName,g=[];n!==null&&n!==u;){var m=n,S=m.alternate,L=m.stateNode;if(m=m.tag,S!==null&&S===u)break;m!==5&&m!==26&&m!==27||L===null||(S=L,f?(L=ru(n,r),L!=null&&g.unshift(Vu(n,L,S))):f||(L=ru(n,r),L!=null&&g.push(Vu(n,L,S)))),n=n.return}g.length!==0&&t.push({event:e,listeners:g})}var D1=/\r\n?/g,C1=/\u0000|\uFFFD/g;function Yh(t){return(typeof t=="string"?t:""+t).replace(D1,`
49
+ `).replace(C1,"")}function qh(t,e){return e=Yh(e),Yh(t)===e}function ra(){}function Ct(t,e,n,u,f,r){switch(n){case"children":typeof u=="string"?e==="body"||e==="textarea"&&u===""||Tl(t,u):(typeof u=="number"||typeof u=="bigint")&&e!=="body"&&Tl(t,""+u);break;case"className":yi(t,"class",u);break;case"tabIndex":yi(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":yi(t,n,u);break;case"style":Gc(t,u,r);break;case"data":if(e!=="object"){yi(t,"data",u);break}case"src":case"href":if(u===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(n);break}u=pi(""+u),t.setAttribute(n,u);break;case"action":case"formAction":if(typeof u=="function"){t.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 r=="function"&&(n==="formAction"?(e!=="input"&&Ct(t,e,"name",f.name,f,null),Ct(t,e,"formEncType",f.formEncType,f,null),Ct(t,e,"formMethod",f.formMethod,f,null),Ct(t,e,"formTarget",f.formTarget,f,null)):(Ct(t,e,"encType",f.encType,f,null),Ct(t,e,"method",f.method,f,null),Ct(t,e,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(n);break}u=pi(""+u),t.setAttribute(n,u);break;case"onClick":u!=null&&(t.onclick=ra);break;case"onScroll":u!=null&&_t("scroll",t);break;case"onScrollEnd":u!=null&&_t("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(b(61));if(n=u.__html,n!=null){if(f.children!=null)throw Error(b(60));t.innerHTML=n}}break;case"multiple":t.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":t.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"){t.removeAttribute("xlink:href");break}n=pi(""+u),t.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"?t.setAttribute(n,""+u):t.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"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":u===!0?t.setAttribute(n,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(n,u):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?t.setAttribute(n,u):t.removeAttribute(n);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(n):t.setAttribute(n,u);break;case"popover":_t("beforetoggle",t),_t("toggle",t),hi(t,"popover",u);break;case"xlinkActuate":on(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":on(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":on(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":on(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":on(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":on(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":on(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":on(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":on(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":hi(t,"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=sy.get(n)||n,hi(t,n,u))}}function wr(t,e,n,u,f,r){switch(n){case"style":Gc(t,u,r);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(b(61));if(n=u.__html,n!=null){if(f.children!=null)throw Error(b(60));t.innerHTML=n}}break;case"children":typeof u=="string"?Tl(t,u):(typeof u=="number"||typeof u=="bigint")&&Tl(t,""+u);break;case"onScroll":u!=null&&_t("scroll",t);break;case"onScrollEnd":u!=null&&_t("scrollend",t);break;case"onClick":u!=null&&(t.onclick=ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Mc.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(f=n.endsWith("Capture"),e=n.slice(2,f?n.length-7:void 0),r=t[Be]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,f),typeof u=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,u,f);break t}n in t?t[n]=u:u===!0?t.setAttribute(n,""):hi(t,n,u)}}}function ge(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_t("error",t),_t("load",t);var u=!1,f=!1,r;for(r in n)if(n.hasOwnProperty(r)){var g=n[r];if(g!=null)switch(r){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(b(137,e));default:Ct(t,e,r,g,n,null)}}f&&Ct(t,e,"srcSet",n.srcSet,n,null),u&&Ct(t,e,"src",n.src,n,null);return;case"input":_t("invalid",t);var m=r=g=f=null,S=null,L=null;for(u in n)if(n.hasOwnProperty(u)){var Q=n[u];if(Q!=null)switch(u){case"name":f=Q;break;case"type":g=Q;break;case"checked":S=Q;break;case"defaultChecked":L=Q;break;case"value":r=Q;break;case"defaultValue":m=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(b(137,e));break;default:Ct(t,e,u,Q,n,null)}}xc(t,r,m,S,L,g,f,!1),di(t);return;case"select":_t("invalid",t),u=g=r=null;for(f in n)if(n.hasOwnProperty(f)&&(m=n[f],m!=null))switch(f){case"value":r=m;break;case"defaultValue":g=m;break;case"multiple":u=m;default:Ct(t,e,f,m,n,null)}e=r,n=g,t.multiple=!!u,e!=null?_l(t,!!u,e,!1):n!=null&&_l(t,!!u,n,!0);return;case"textarea":_t("invalid",t),r=f=u=null;for(g in n)if(n.hasOwnProperty(g)&&(m=n[g],m!=null))switch(g){case"value":u=m;break;case"defaultValue":f=m;break;case"children":r=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(b(91));break;default:Ct(t,e,g,m,n,null)}Yc(t,u,f,r),di(t);return;case"option":for(S in n)if(n.hasOwnProperty(S)&&(u=n[S],u!=null))switch(S){case"selected":t.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Ct(t,e,S,u,n,null)}return;case"dialog":_t("beforetoggle",t),_t("toggle",t),_t("cancel",t),_t("close",t);break;case"iframe":case"object":_t("load",t);break;case"video":case"audio":for(u=0;u<Xu.length;u++)_t(Xu[u],t);break;case"image":_t("error",t),_t("load",t);break;case"details":_t("toggle",t);break;case"embed":case"source":case"link":_t("error",t),_t("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in n)if(n.hasOwnProperty(L)&&(u=n[L],u!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(b(137,e));default:Ct(t,e,L,u,n,null)}return;default:if(Xa(e)){for(Q in n)n.hasOwnProperty(Q)&&(u=n[Q],u!==void 0&&wr(t,e,Q,u,n,void 0));return}}for(m in n)n.hasOwnProperty(m)&&(u=n[m],u!=null&&Ct(t,e,m,u,n,null))}function x1(t,e,n,u){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,r=null,g=null,m=null,S=null,L=null,Q=null;for(x in n){var Z=n[x];if(n.hasOwnProperty(x)&&Z!=null)switch(x){case"checked":break;case"value":break;case"defaultValue":S=Z;default:u.hasOwnProperty(x)||Ct(t,e,x,null,u,Z)}}for(var C in u){var x=u[C];if(Z=n[C],u.hasOwnProperty(C)&&(x!=null||Z!=null))switch(C){case"type":r=x;break;case"name":f=x;break;case"checked":L=x;break;case"defaultChecked":Q=x;break;case"value":g=x;break;case"defaultValue":m=x;break;case"children":case"dangerouslySetInnerHTML":if(x!=null)throw Error(b(137,e));break;default:x!==Z&&Ct(t,e,C,x,u,Z)}}ja(t,g,m,S,L,Q,r,f);return;case"select":x=g=m=C=null;for(r in n)if(S=n[r],n.hasOwnProperty(r)&&S!=null)switch(r){case"value":break;case"multiple":x=S;default:u.hasOwnProperty(r)||Ct(t,e,r,null,u,S)}for(f in u)if(r=u[f],S=n[f],u.hasOwnProperty(f)&&(r!=null||S!=null))switch(f){case"value":C=r;break;case"defaultValue":m=r;break;case"multiple":g=r;default:r!==S&&Ct(t,e,f,r,u,S)}e=m,n=g,u=x,C!=null?_l(t,!!n,C,!1):!!u!=!!n&&(e!=null?_l(t,!!n,e,!0):_l(t,!!n,n?[]:"",!1));return;case"textarea":x=C=null;for(m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!u.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ct(t,e,m,null,u,f)}for(g in u)if(f=u[g],r=n[g],u.hasOwnProperty(g)&&(f!=null||r!=null))switch(g){case"value":C=f;break;case"defaultValue":x=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(b(91));break;default:f!==r&&Ct(t,e,g,f,u,r)}Hc(t,C,x);return;case"option":for(var dt in n)if(C=n[dt],n.hasOwnProperty(dt)&&C!=null&&!u.hasOwnProperty(dt))switch(dt){case"selected":t.selected=!1;break;default:Ct(t,e,dt,null,u,C)}for(S in u)if(C=u[S],x=n[S],u.hasOwnProperty(S)&&C!==x&&(C!=null||x!=null))switch(S){case"selected":t.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:Ct(t,e,S,C,u,x)}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 ht in n)C=n[ht],n.hasOwnProperty(ht)&&C!=null&&!u.hasOwnProperty(ht)&&Ct(t,e,ht,null,u,C);for(L in u)if(C=u[L],x=n[L],u.hasOwnProperty(L)&&C!==x&&(C!=null||x!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(b(137,e));break;default:Ct(t,e,L,C,u,x)}return;default:if(Xa(e)){for(var xt in n)C=n[xt],n.hasOwnProperty(xt)&&C!==void 0&&!u.hasOwnProperty(xt)&&wr(t,e,xt,void 0,u,C);for(Q in u)C=u[Q],x=n[Q],!u.hasOwnProperty(Q)||C===x||C===void 0&&x===void 0||wr(t,e,Q,C,u,x);return}}for(var M in n)C=n[M],n.hasOwnProperty(M)&&C!=null&&!u.hasOwnProperty(M)&&Ct(t,e,M,null,u,C);for(Z in u)C=u[Z],x=n[Z],!u.hasOwnProperty(Z)||C===x||C==null&&x==null||Ct(t,e,Z,C,u,x)}var Mr=null,Rr=null;function ca(t){return t.nodeType===9?t:t.ownerDocument}function Gh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function jh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Nr(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var zr=null;function H1(){var t=window.event;return t&&t.type==="popstate"?t===zr?!1:(zr=t,!0):(zr=null,!1)}var Qh=typeof setTimeout=="function"?setTimeout:void 0,Y1=typeof clearTimeout=="function"?clearTimeout:void 0,Xh=typeof Promise=="function"?Promise:void 0,q1=typeof queueMicrotask=="function"?queueMicrotask:typeof Xh<"u"?function(t){return Xh.resolve(null).then(t).catch(G1)}:Qh;function G1(t){setTimeout(function(){throw t})}function Kn(t){return t==="head"}function Vh(t,e){var n=e,u=0,f=0;do{var r=n.nextSibling;if(t.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(0<u&&8>u){n=u;var g=t.ownerDocument;if(n&1&&Zu(g.documentElement),n&2&&Zu(g.body),n&4)for(n=g.head,Zu(n),g=n.firstChild;g;){var m=g.nextSibling,S=g.nodeName;g[au]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&g.rel.toLowerCase()==="stylesheet"||n.removeChild(g),g=m}}if(f===0){t.removeChild(r),Pu(e);return}f--}else n==="$"||n==="$?"||n==="$!"?f++:u=n.charCodeAt(0)-48;else u=0;n=r}while(n);Pu(e)}function Lr(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Lr(n),Ha(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function j1(t,e,n,u){for(;t.nodeType===1;){var f=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[au])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==f.rel||t.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||t.getAttribute("title")!==(f.title==null?null:f.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(f.src==null?null:f.src)||t.getAttribute("type")!==(f.type==null?null:f.type)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=f.name==null?null:""+f.name;if(f.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=$e(t.nextSibling),t===null)break}return null}function Q1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=$e(t.nextSibling),t===null))return null;return t}function Dr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function X1(t,e){var n=t.ownerDocument;if(t.data!=="$?"||n.readyState==="complete")e();else{var u=function(){e(),n.removeEventListener("DOMContentLoaded",u)};n.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function $e(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="F!"||e==="F")break;if(e==="/$")return null}}return t}var Cr=null;function Zh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}function Kh(t,e,n){switch(e=ca(n),t){case"html":if(t=e.documentElement,!t)throw Error(b(452));return t;case"head":if(t=e.head,!t)throw Error(b(453));return t;case"body":if(t=e.body,!t)throw Error(b(454));return t;default:throw Error(b(451))}}function Zu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ha(t)}var Ke=new Map,Jh=new Set;function oa(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var _n=W.d;W.d={f:V1,r:Z1,D:K1,C:J1,L:k1,m:I1,X:W1,S:$1,M:F1};function V1(){var t=_n.f(),e=ea();return t||e}function Z1(t){var e=El(t);e!==null&&e.tag===5&&e.type==="form"?ys(e):_n.r(t)}var tu=typeof document>"u"?null:document;function kh(t,e,n){var u=tu;if(u&&typeof e=="string"&&e){var f=qe(e);f='link[rel="'+t+'"][href="'+f+'"]',typeof n=="string"&&(f+='[crossorigin="'+n+'"]'),Jh.has(f)||(Jh.add(f),t={rel:t,crossOrigin:n,href:e},u.querySelector(f)===null&&(e=u.createElement("link"),ge(e,"link",t),re(e),u.head.appendChild(e)))}}function K1(t){_n.D(t),kh("dns-prefetch",t,null)}function J1(t,e){_n.C(t,e),kh("preconnect",t,e)}function k1(t,e,n){_n.L(t,e,n);var u=tu;if(u&&t&&e){var f='link[rel="preload"][as="'+qe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(f+='[imagesrcset="'+qe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(f+='[imagesizes="'+qe(n.imageSizes)+'"]')):f+='[href="'+qe(t)+'"]';var r=f;switch(e){case"style":r=eu(t);break;case"script":r=nu(t)}Ke.has(r)||(t=w({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ke.set(r,t),u.querySelector(f)!==null||e==="style"&&u.querySelector(Ku(r))||e==="script"&&u.querySelector(Ju(r))||(e=u.createElement("link"),ge(e,"link",t),re(e),u.head.appendChild(e)))}}function I1(t,e){_n.m(t,e);var n=tu;if(n&&t){var u=e&&typeof e.as=="string"?e.as:"script",f='link[rel="modulepreload"][as="'+qe(u)+'"][href="'+qe(t)+'"]',r=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=nu(t)}if(!Ke.has(r)&&(t=w({rel:"modulepreload",href:t},e),Ke.set(r,t),n.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ju(r)))return}u=n.createElement("link"),ge(u,"link",t),re(u),n.head.appendChild(u)}}}function $1(t,e,n){_n.S(t,e,n);var u=tu;if(u&&t){var f=Sl(u).hoistableStyles,r=eu(t);e=e||"default";var g=f.get(r);if(!g){var m={loading:0,preload:null};if(g=u.querySelector(Ku(r)))m.loading=5;else{t=w({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ke.get(r))&&xr(t,n);var S=g=u.createElement("link");re(S),ge(S,"link",t),S._p=new Promise(function(L,Q){S.onload=L,S.onerror=Q}),S.addEventListener("load",function(){m.loading|=1}),S.addEventListener("error",function(){m.loading|=2}),m.loading|=4,sa(g,e,u)}g={type:"stylesheet",instance:g,count:1,state:m},f.set(r,g)}}}function W1(t,e){_n.X(t,e);var n=tu;if(n&&t){var u=Sl(n).hoistableScripts,f=nu(t),r=u.get(f);r||(r=n.querySelector(Ju(f)),r||(t=w({src:t,async:!0},e),(e=Ke.get(f))&&Hr(t,e),r=n.createElement("script"),re(r),ge(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},u.set(f,r))}}function F1(t,e){_n.M(t,e);var n=tu;if(n&&t){var u=Sl(n).hoistableScripts,f=nu(t),r=u.get(f);r||(r=n.querySelector(Ju(f)),r||(t=w({src:t,async:!0,type:"module"},e),(e=Ke.get(f))&&Hr(t,e),r=n.createElement("script"),re(r),ge(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},u.set(f,r))}}function Ih(t,e,n,u){var f=(f=nt.current)?oa(f):null;if(!f)throw Error(b(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=eu(n.href),n=Sl(f).hoistableStyles,u=n.get(e),u||(u={type:"style",instance:null,count:0,state:null},n.set(e,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=eu(n.href);var r=Sl(f).hoistableStyles,g=r.get(t);if(g||(f=f.ownerDocument||f,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,g),(r=f.querySelector(Ku(t)))&&!r._p&&(g.instance=r,g.state.loading=5),Ke.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ke.set(t,n),r||P1(f,t,n,g.state))),e&&u===null)throw Error(b(528,""));return g}if(e&&u!==null)throw Error(b(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=nu(n),n=Sl(f).hoistableScripts,u=n.get(e),u||(u={type:"script",instance:null,count:0,state:null},n.set(e,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(b(444,t))}}function eu(t){return'href="'+qe(t)+'"'}function Ku(t){return'link[rel="stylesheet"]['+t+"]"}function $h(t){return w({},t,{"data-precedence":t.precedence,precedence:null})}function P1(t,e,n,u){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?u.loading=1:(e=t.createElement("link"),u.preload=e,e.addEventListener("load",function(){return u.loading|=1}),e.addEventListener("error",function(){return u.loading|=2}),ge(e,"link",n),re(e),t.head.appendChild(e))}function nu(t){return'[src="'+qe(t)+'"]'}function Ju(t){return"script[async]"+t}function Wh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var u=t.querySelector('style[data-href~="'+qe(n.href)+'"]');if(u)return e.instance=u,re(u),u;var f=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),re(u),ge(u,"style",f),sa(u,n.precedence,t),e.instance=u;case"stylesheet":f=eu(n.href);var r=t.querySelector(Ku(f));if(r)return e.state.loading|=4,e.instance=r,re(r),r;u=$h(n),(f=Ke.get(f))&&xr(u,f),r=(t.ownerDocument||t).createElement("link"),re(r);var g=r;return g._p=new Promise(function(m,S){g.onload=m,g.onerror=S}),ge(r,"link",u),e.state.loading|=4,sa(r,n.precedence,t),e.instance=r;case"script":return r=nu(n.src),(f=t.querySelector(Ju(r)))?(e.instance=f,re(f),f):(u=n,(f=Ke.get(r))&&(u=w({},n),Hr(u,f)),t=t.ownerDocument||t,f=t.createElement("script"),re(f),ge(f,"link",u),t.head.appendChild(f),e.instance=f);case"void":return null;default:throw Error(b(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(u=e.instance,e.state.loading|=4,sa(u,n.precedence,t));return e.instance}function sa(t,e,n){for(var u=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,r=f,g=0;g<u.length;g++){var m=u[g];if(m.dataset.precedence===e)r=m;else if(r!==f)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function xr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Hr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ha=null;function Fh(t,e,n){if(ha===null){var u=new Map,f=ha=new Map;f.set(n,u)}else f=ha,u=f.get(n),u||(u=new Map,f.set(n,u));if(u.has(t))return u;for(u.set(t,null),n=n.getElementsByTagName(t),f=0;f<n.length;f++){var r=n[f];if(!(r[au]||r[be]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var g=r.getAttribute(e)||"";g=t+g;var m=u.get(g);m?m.push(r):u.set(g,[r])}}return u}function Ph(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function td(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function t0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var ku=null;function ed(){}function nd(t,e,n){if(ku===null)throw Error(b(475));var u=ku;if(e.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var f=eu(n.href),r=t.querySelector(Ku(f));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(u.count++,u=ya.bind(u),t.then(u,u)),e.state.loading|=4,e.instance=r,re(r);return}r=t.ownerDocument||t,n=$h(n),(f=Ke.get(f))&&xr(n,f),r=r.createElement("link"),re(r);var g=r;g._p=new Promise(function(m,S){g.onload=m,g.onerror=S}),ge(r,"link",n),e.instance=r}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(u.count++,e=ya.bind(u),t.addEventListener("load",e),t.addEventListener("error",e))}}function ld(){if(ku===null)throw Error(b(475));var t=ku;return t.stylesheets&&t.count===0&&Yr(t,t.stylesheets),0<t.count?function(e){var n=setTimeout(function(){if(t.stylesheets&&Yr(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4);return t.unsuspend=e,function(){t.unsuspend=null,clearTimeout(n)}}:null}function ya(){if(this.count--,this.count===0){if(this.stylesheets)Yr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var da=null;function Yr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,da=new Map,e.forEach(ud,t),da=null,ya.call(t))}function ud(t,e){if(!(e.state.loading&4)){var n=da.get(t);if(n)var u=n.get(null);else{n=new Map,da.set(t,n);for(var f=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<f.length;r++){var g=f[r];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(n.set(g.dataset.precedence,g),u=g)}u&&n.set(null,u)}f=e.instance,g=f.getAttribute("data-precedence"),r=n.get(g)||u,r===u&&n.set(null,f),n.set(g,f),this.count++,u=ya.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),r?r.parentNode.insertBefore(f,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(f,t.firstChild)),e.state.loading|=4}}var Iu={$$typeof:gt,Provider:null,Consumer:null,_currentValue:rt,_currentValue2:rt,_threadCount:0};function id(t,e,n,u,f,r,g,m){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=La(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=La(0),this.hiddenUpdates=La(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=r,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map}function e0(t,e,n,u,f,r,g,m,S,L,Q,Z){return t=new id(t,e,n,g,m,S,L,Z),e=1,r===!0&&(e|=24),r=Ne(3,null,null,e),t.current=r,r.stateNode=t,e=vf(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:u,isDehydrated:n,cache:e},Bf(r),t}function n0(t){return t?(t=Ll,t):Ll}function l0(t,e,n,u,f,r){f=n0(f),u.context===null?u.context=f:u.pendingContext=f,u=Ln(e),u.payload={element:n},r=r===void 0?null:r,r!==null&&(u.callback=r),n=Dn(t,u,e),n!==null&&(xe(n,t,e),Tu(n,t,e))}function u0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function qr(t,e){u0(t,e),(t=t.alternate)&&u0(t,e)}function i0(t){if(t.tag===13){var e=zl(t,67108864);e!==null&&xe(e,t,67108864),qr(t,67108864)}}var ga=!0;function ad(t,e,n,u){var f=q.T;q.T=null;var r=W.p;try{W.p=2,Gr(t,e,n,u)}finally{W.p=r,q.T=f}}function fd(t,e,n,u){var f=q.T;q.T=null;var r=W.p;try{W.p=8,Gr(t,e,n,u)}finally{W.p=r,q.T=f}}function Gr(t,e,n,u){if(ga){var f=jr(u);if(f===null)Or(t,e,u,pa,n),f0(t,u);else if(cd(f,t,e,n,u))u.stopPropagation();else if(f0(t,u),e&4&&-1<rd.indexOf(t)){for(;f!==null;){var r=El(f);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var g=Pn(r.pendingLanes);if(g!==0){var m=r;for(m.pendingLanes|=2,m.entangledLanes|=2;g;){var S=1<<31-k(g);m.entanglements[1]|=S,g&=~S}un(r),(Nt&6)===0&&(Pi=i()+500,Qu(0))}}break;case 13:m=zl(r,2),m!==null&&xe(m,r,2),ea(),qr(r,2)}if(r=jr(u),r===null&&Or(t,e,u,pa,n),r===f)break;f=r}f!==null&&u.stopPropagation()}else Or(t,e,u,null,n)}}function jr(t){return t=Za(t),Qr(t)}var pa=null;function Qr(t){if(pa=null,t=vl(t),t!==null){var e=U(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=h(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return pa=t,null}function a0(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(a()){case c:return 2;case s:return 8;case d:case v:return 32;case B:return 268435456;default:return 32}default:return 32}}var Xr=!1,Jn=null,kn=null,In=null,$u=new Map,Wu=new Map,$n=[],rd="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 f0(t,e){switch(t){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":kn=null;break;case"mouseover":case"mouseout":In=null;break;case"pointerover":case"pointerout":$u.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wu.delete(e.pointerId)}}function Fu(t,e,n,u,f,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:u,nativeEvent:r,targetContainers:[f]},e!==null&&(e=El(e),e!==null&&i0(e)),t):(t.eventSystemFlags|=u,e=t.targetContainers,f!==null&&e.indexOf(f)===-1&&e.push(f),t)}function cd(t,e,n,u,f){switch(e){case"focusin":return Jn=Fu(Jn,t,e,n,u,f),!0;case"dragenter":return kn=Fu(kn,t,e,n,u,f),!0;case"mouseover":return In=Fu(In,t,e,n,u,f),!0;case"pointerover":var r=f.pointerId;return $u.set(r,Fu($u.get(r)||null,t,e,n,u,f)),!0;case"gotpointercapture":return r=f.pointerId,Wu.set(r,Fu(Wu.get(r)||null,t,e,n,u,f)),!0}return!1}function r0(t){var e=vl(t.target);if(e!==null){var n=U(e);if(n!==null){if(e=n.tag,e===13){if(e=h(n),e!==null){t.blockedOn=e,ny(t.priority,function(){if(n.tag===13){var u=Ce();u=Da(u);var f=zl(n,u);f!==null&&xe(f,n,u),qr(n,u)}});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ba(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=jr(t.nativeEvent);if(n===null){n=t.nativeEvent;var u=new n.constructor(n.type,n);Va=u,n.target.dispatchEvent(u),Va=null}else return e=El(n),e!==null&&i0(e),t.blockedOn=n,!1;e.shift()}return!0}function c0(t,e,n){ba(t)&&n.delete(e)}function od(){Xr=!1,Jn!==null&&ba(Jn)&&(Jn=null),kn!==null&&ba(kn)&&(kn=null),In!==null&&ba(In)&&(In=null),$u.forEach(c0),Wu.forEach(c0)}function ma(t,e){t.blockedOn===e&&(t.blockedOn=null,Xr||(Xr=!0,p.unstable_scheduleCallback(p.unstable_NormalPriority,od)))}var va=null;function o0(t){va!==t&&(va=t,p.unstable_scheduleCallback(p.unstable_NormalPriority,function(){va===t&&(va=null);for(var e=0;e<t.length;e+=3){var n=t[e],u=t[e+1],f=t[e+2];if(typeof u!="function"){if(Qr(u||n)===null)continue;break}var r=El(n);r!==null&&(t.splice(e,3),e-=3,Qf(r,{pending:!0,data:f,method:n.method,action:u},u,f))}}))}function Pu(t){function e(S){return ma(S,t)}Jn!==null&&ma(Jn,t),kn!==null&&ma(kn,t),In!==null&&ma(In,t),$u.forEach(e),Wu.forEach(e);for(var n=0;n<$n.length;n++){var u=$n[n];u.blockedOn===t&&(u.blockedOn=null)}for(;0<$n.length&&(n=$n[0],n.blockedOn===null);)r0(n),n.blockedOn===null&&$n.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(u=0;u<n.length;u+=3){var f=n[u],r=n[u+1],g=f[Be]||null;if(typeof r=="function")g||o0(n);else if(g){var m=null;if(r&&r.hasAttribute("formAction")){if(f=r,g=r[Be]||null)m=g.formAction;else if(Qr(f)!==null)continue}else m=g.action;typeof m=="function"?n[u+1]=m:(n.splice(u,3),u-=3),o0(n)}}}function Vr(t){this._internalRoot=t}Ea.prototype.render=Vr.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(b(409));var n=e.current,u=Ce();l0(n,u,t,e,null,null)},Ea.prototype.unmount=Vr.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;l0(t.current,2,null,t,null,null),ea(),e[ml]=null}};function Ea(t){this._internalRoot=t}Ea.prototype.unstable_scheduleHydration=function(t){if(t){var e=Uc();t={blockedOn:null,target:t,priority:e};for(var n=0;n<$n.length&&e!==0&&e<$n[n].priority;n++);$n.splice(n,0,t),n===0&&r0(t)}};var s0=o.version;if(s0!=="19.1.1")throw Error(b(527,s0,"19.1.1"));W.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(b(188)):(t=Object.keys(t).join(","),Error(b(268,t)));return t=R(e),t=t!==null?A(t):null,t=t===null?null:t.stateNode,t};var sd={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sa=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sa.isDisabled&&Sa.supportsFiber)try{D=Sa.inject(sd),H=Sa}catch{}}return ei.createRoot=function(t,e){if(!E(t))throw Error(b(299));var n=!1,u="",f=Os,r=ws,g=Ms,m=null;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(u=e.identifierPrefix),e.onUncaughtError!==void 0&&(f=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(g=e.onRecoverableError),e.unstable_transitionCallbacks!==void 0&&(m=e.unstable_transitionCallbacks)),e=e0(t,1,!1,null,null,n,u,f,r,g,m,null),t[ml]=e.current,Ur(t),new Vr(e)},ei.hydrateRoot=function(t,e,n){if(!E(t))throw Error(b(299));var u=!1,f="",r=Os,g=ws,m=Ms,S=null,L=null;return n!=null&&(n.unstable_strictMode===!0&&(u=!0),n.identifierPrefix!==void 0&&(f=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(g=n.onCaughtError),n.onRecoverableError!==void 0&&(m=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(S=n.unstable_transitionCallbacks),n.formState!==void 0&&(L=n.formState)),e=e0(t,1,!0,e,n??null,u,f,r,g,m,S,L),e.context=n0(null),n=e.current,u=Ce(),u=Da(u),f=Ln(u),f.callback=null,Dn(n,f,u),n=u,e.current.lanes=n,iu(e,n),un(e),t[ml]=e.current,Ur(t),new Ea(e)},ei.version="19.1.1",ei}var S0;function Ad(){if(S0)return Jr.exports;S0=1;function p(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(p)}catch(o){console.error(o)}}return p(),Jr.exports=Sd(),Jr.exports}var Bd=Ad();const _d=G0(Bd);var A0,B0,_0,T0={},ni={},Wr={};/*!
50
+ * The buffer module from node.js, for the browser.
51
+ *
52
+ * @author Feross Aboukhadijeh <https://feross.org>
53
+ * @license MIT
54
+ */var Xt=(_0||(_0=1,(function(p){const o=(function(){if(A0)return ni;A0=1,ni.byteLength=function(B){var O=d(B),z=O[0],D=O[1];return 3*(z+D)/4-D},ni.toByteArray=function(B){var O,z,D=d(B),H=D[0],st=D[1],k=new a((function(oi,Pe,Me){return 3*(Pe+Me)/4-Me})(0,H,st)),vt=0,cn=st>0?H-4:H;for(z=0;z<cn;z+=4)O=i[B.charCodeAt(z)]<<18|i[B.charCodeAt(z+1)]<<12|i[B.charCodeAt(z+2)]<<6|i[B.charCodeAt(z+3)],k[vt++]=O>>16&255,k[vt++]=O>>8&255,k[vt++]=255&O;return st===2&&(O=i[B.charCodeAt(z)]<<2|i[B.charCodeAt(z+1)]>>4,k[vt++]=255&O),st===1&&(O=i[B.charCodeAt(z)]<<10|i[B.charCodeAt(z+1)]<<4|i[B.charCodeAt(z+2)]>>2,k[vt++]=O>>8&255,k[vt++]=255&O),k},ni.fromByteArray=function(B){for(var O,z=B.length,D=z%3,H=[],st=16383,k=0,vt=z-D;k<vt;k+=st)H.push(v(B,k,k+st>vt?vt:k+st));return D===1?(O=B[z-1],H.push(l[O>>2]+l[O<<4&63]+"==")):D===2&&(O=(B[z-2]<<8)+B[z-1],H.push(l[O>>10]+l[O>>4&63]+l[O<<2&63]+"=")),H.join("")};for(var l=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)l[s]=c[s],i[c.charCodeAt(s)]=s;function d(B){var O=B.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var z=B.indexOf("=");return z===-1&&(z=O),[z,z===O?0:4-z%4]}function v(B,O,z){for(var D,H,st=[],k=O;k<z;k+=3)D=(B[k]<<16&16711680)+(B[k+1]<<8&65280)+(255&B[k+2]),st.push(l[(H=D)>>18&63]+l[H>>12&63]+l[H>>6&63]+l[63&H]);return st.join("")}return i[45]=62,i[95]=63,ni})(),y=(B0||(B0=1,Wr.read=function(l,i,a,c,s){var d,v,B=8*s-c-1,O=(1<<B)-1,z=O>>1,D=-7,H=a?s-1:0,st=a?-1:1,k=l[i+H];for(H+=st,d=k&(1<<-D)-1,k>>=-D,D+=B;D>0;d=256*d+l[i+H],H+=st,D-=8);for(v=d&(1<<-D)-1,d>>=-D,D+=c;D>0;v=256*v+l[i+H],H+=st,D-=8);if(d===0)d=1-z;else{if(d===O)return v?NaN:1/0*(k?-1:1);v+=Math.pow(2,c),d-=z}return(k?-1:1)*v*Math.pow(2,d-c)},Wr.write=function(l,i,a,c,s,d){var v,B,O,z=8*d-s-1,D=(1<<z)-1,H=D>>1,st=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=c?0:d-1,vt=c?1:-1,cn=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(B=isNaN(i)?1:0,v=D):(v=Math.floor(Math.log(i)/Math.LN2),i*(O=Math.pow(2,-v))<1&&(v--,O*=2),(i+=v+H>=1?st/O:st*Math.pow(2,1-H))*O>=2&&(v++,O/=2),v+H>=D?(B=0,v=D):v+H>=1?(B=(i*O-1)*Math.pow(2,s),v+=H):(B=i*Math.pow(2,H-1)*Math.pow(2,s),v=0));s>=8;l[a+k]=255&B,k+=vt,B/=256,s-=8);for(v=v<<s|B,z+=s;z>0;l[a+k]=255&v,k+=vt,v/=256,z-=8);l[a+k-vt]|=128*cn}),Wr),b=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.Buffer=h,p.SlowBuffer=function(l){return+l!=l&&(l=0),h.alloc(+l)},p.INSPECT_MAX_BYTES=50;const E=2147483647;function U(l){if(l>E)throw new RangeError('The value "'+l+'" is invalid for option "size"');const i=new Uint8Array(l);return Object.setPrototypeOf(i,h.prototype),i}function h(l,i,a){if(typeof l=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A(l)}return Y(l,i,a)}function Y(l,i,a){if(typeof l=="string")return(function(d,v){if(typeof v=="string"&&v!==""||(v="utf8"),!h.isEncoding(v))throw new TypeError("Unknown encoding: "+v);const B=0|X(d,v);let O=U(B);const z=O.write(d,v);return z!==B&&(O=O.slice(0,z)),O})(l,i);if(ArrayBuffer.isView(l))return(function(d){if(At(d,Uint8Array)){const v=new Uint8Array(d);return G(v.buffer,v.byteOffset,v.byteLength)}return w(d)})(l);if(l==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);if(At(l,ArrayBuffer)||l&&At(l.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(At(l,SharedArrayBuffer)||l&&At(l.buffer,SharedArrayBuffer)))return G(l,i,a);if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const c=l.valueOf&&l.valueOf();if(c!=null&&c!==l)return h.from(c,i,a);const s=(function(d){if(h.isBuffer(d)){const v=0|K(d.length),B=U(v);return B.length===0||d.copy(B,0,0,v),B}return d.length!==void 0?typeof d.length!="number"||Se(d.length)?U(0):w(d):d.type==="Buffer"&&Array.isArray(d.data)?w(d.data):void 0})(l);if(s)return s;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof l[Symbol.toPrimitive]=="function")return h.from(l[Symbol.toPrimitive]("string"),i,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l)}function R(l){if(typeof l!="number")throw new TypeError('"size" argument must be of type number');if(l<0)throw new RangeError('The value "'+l+'" is invalid for option "size"')}function A(l){return R(l),U(l<0?0:0|K(l))}function w(l){const i=l.length<0?0:0|K(l.length),a=U(i);for(let c=0;c<i;c+=1)a[c]=255&l[c];return a}function G(l,i,a){if(i<0||l.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(l.byteLength<i+(a||0))throw new RangeError('"length" is outside of buffer bounds');let c;return c=i===void 0&&a===void 0?new Uint8Array(l):a===void 0?new Uint8Array(l,i):new Uint8Array(l,i,a),Object.setPrototypeOf(c,h.prototype),c}function K(l){if(l>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return 0|l}function X(l,i){if(h.isBuffer(l))return l.length;if(ArrayBuffer.isView(l)||At(l,ArrayBuffer))return l.byteLength;if(typeof l!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof l);const a=l.length,c=arguments.length>2&&arguments[2]===!0;if(!c&&a===0)return 0;let s=!1;for(;;)switch(i){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return Ut(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return he(l).length;default:if(s)return c?-1:Ut(l).length;i=(""+i).toLowerCase(),s=!0}}function P(l,i,a){let c=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0)<=(i>>>=0))return"";for(l||(l="utf8");;)switch(l){case"hex":return Jt(this,i,a);case"utf8":case"utf-8":return Kt(this,i,a);case"ascii":return He(this,i,a);case"latin1":case"binary":return Ee(this,i,a);case"base64":return ee(this,i,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return we(this,i,a);default:if(c)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),c=!0}}function I(l,i,a){const c=l[i];l[i]=l[a],l[a]=c}function ut(l,i,a,c,s){if(l.length===0)return-1;if(typeof a=="string"?(c=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),Se(a=+a)&&(a=s?0:l.length-1),a<0&&(a=l.length+a),a>=l.length){if(s)return-1;a=l.length-1}else if(a<0){if(!s)return-1;a=0}if(typeof i=="string"&&(i=h.from(i,c)),h.isBuffer(i))return i.length===0?-1:ft(l,i,a,c,s);if(typeof i=="number")return i&=255,typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(l,i,a):Uint8Array.prototype.lastIndexOf.call(l,i,a):ft(l,[i],a,c,s);throw new TypeError("val must be string, number or Buffer")}function ft(l,i,a,c,s){let d,v=1,B=l.length,O=i.length;if(c!==void 0&&((c=String(c).toLowerCase())==="ucs2"||c==="ucs-2"||c==="utf16le"||c==="utf-16le")){if(l.length<2||i.length<2)return-1;v=2,B/=2,O/=2,a/=2}function z(D,H){return v===1?D[H]:D.readUInt16BE(H*v)}if(s){let D=-1;for(d=a;d<B;d++)if(z(l,d)===z(i,D===-1?0:d-D)){if(D===-1&&(D=d),d-D+1===O)return D*v}else D!==-1&&(d-=d-D),D=-1}else for(a+O>B&&(a=B-O),d=a;d>=0;d--){let D=!0;for(let H=0;H<O;H++)if(z(l,d+H)!==z(i,H)){D=!1;break}if(D)return d}return-1}function Ht(l,i,a,c){a=Number(a)||0;const s=l.length-a;c?(c=Number(c))>s&&(c=s):c=s;const d=i.length;let v;for(c>d/2&&(c=d/2),v=0;v<c;++v){const B=parseInt(i.substr(2*v,2),16);if(Se(B))return v;l[a+v]=B}return v}function gt(l,i,a,c){return fe(Ut(i,l.length-a),l,a,c)}function jt(l,i,a,c){return fe((function(s){const d=[];for(let v=0;v<s.length;++v)d.push(255&s.charCodeAt(v));return d})(i),l,a,c)}function pt(l,i,a,c){return fe(he(i),l,a,c)}function Zt(l,i,a,c){return fe((function(s,d){let v,B,O;const z=[];for(let D=0;D<s.length&&!((d-=2)<0);++D)v=s.charCodeAt(D),B=v>>8,O=v%256,z.push(O),z.push(B);return z})(i,l.length-a),l,a,c)}function ee(l,i,a){return i===0&&a===l.length?o.fromByteArray(l):o.fromByteArray(l.slice(i,a))}function Kt(l,i,a){a=Math.min(l.length,a);const c=[];let s=i;for(;s<a;){const d=l[s];let v=null,B=d>239?4:d>223?3:d>191?2:1;if(s+B<=a){let O,z,D,H;switch(B){case 1:d<128&&(v=d);break;case 2:O=l[s+1],(192&O)==128&&(H=(31&d)<<6|63&O,H>127&&(v=H));break;case 3:O=l[s+1],z=l[s+2],(192&O)==128&&(192&z)==128&&(H=(15&d)<<12|(63&O)<<6|63&z,H>2047&&(H<55296||H>57343)&&(v=H));break;case 4:O=l[s+1],z=l[s+2],D=l[s+3],(192&O)==128&&(192&z)==128&&(192&D)==128&&(H=(15&d)<<18|(63&O)<<12|(63&z)<<6|63&D,H>65535&&H<1114112&&(v=H))}}v===null?(v=65533,B=1):v>65535&&(v-=65536,c.push(v>>>10&1023|55296),v=56320|1023&v),c.push(v),s+=B}return(function(d){const v=d.length;if(v<=ne)return String.fromCharCode.apply(String,d);let B="",O=0;for(;O<v;)B+=String.fromCharCode.apply(String,d.slice(O,O+=ne));return B})(c)}p.kMaxLength=E,h.TYPED_ARRAY_SUPPORT=(function(){try{const l=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(l,i),l.foo()===42}catch{return!1}})(),h.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(l,i,a){return Y(l,i,a)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(l,i,a){return(function(c,s,d){return R(c),c<=0?U(c):s!==void 0?typeof d=="string"?U(c).fill(s,d):U(c).fill(s):U(c)})(l,i,a)},h.allocUnsafe=function(l){return A(l)},h.allocUnsafeSlow=function(l){return A(l)},h.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==h.prototype},h.compare=function(l,i){if(At(l,Uint8Array)&&(l=h.from(l,l.offset,l.byteLength)),At(i,Uint8Array)&&(i=h.from(i,i.offset,i.byteLength)),!h.isBuffer(l)||!h.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===i)return 0;let a=l.length,c=i.length;for(let s=0,d=Math.min(a,c);s<d;++s)if(l[s]!==i[s]){a=l[s],c=i[s];break}return a<c?-1:c<a?1:0},h.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(l,i){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return h.alloc(0);let a;if(i===void 0)for(i=0,a=0;a<l.length;++a)i+=l[a].length;const c=h.allocUnsafe(i);let s=0;for(a=0;a<l.length;++a){let d=l[a];if(At(d,Uint8Array))s+d.length>c.length?(h.isBuffer(d)||(d=h.from(d)),d.copy(c,s)):Uint8Array.prototype.set.call(c,d,s);else{if(!h.isBuffer(d))throw new TypeError('"list" argument must be an Array of Buffers');d.copy(c,s)}s+=d.length}return c},h.byteLength=X,h.prototype._isBuffer=!0,h.prototype.swap16=function(){const l=this.length;if(l%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;i<l;i+=2)I(this,i,i+1);return this},h.prototype.swap32=function(){const l=this.length;if(l%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let i=0;i<l;i+=4)I(this,i,i+3),I(this,i+1,i+2);return this},h.prototype.swap64=function(){const l=this.length;if(l%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let i=0;i<l;i+=8)I(this,i,i+7),I(this,i+1,i+6),I(this,i+2,i+5),I(this,i+3,i+4);return this},h.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?Kt(this,0,l):P.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(l){if(!h.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l||h.compare(this,l)===0},h.prototype.inspect=function(){let l="";const i=p.INSPECT_MAX_BYTES;return l=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(l+=" ... "),"<Buffer "+l+">"},b&&(h.prototype[b]=h.prototype.inspect),h.prototype.compare=function(l,i,a,c,s){if(At(l,Uint8Array)&&(l=h.from(l,l.offset,l.byteLength)),!h.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(i===void 0&&(i=0),a===void 0&&(a=l?l.length:0),c===void 0&&(c=0),s===void 0&&(s=this.length),i<0||a>l.length||c<0||s>this.length)throw new RangeError("out of range index");if(c>=s&&i>=a)return 0;if(c>=s)return-1;if(i>=a)return 1;if(this===l)return 0;let d=(s>>>=0)-(c>>>=0),v=(a>>>=0)-(i>>>=0);const B=Math.min(d,v),O=this.slice(c,s),z=l.slice(i,a);for(let D=0;D<B;++D)if(O[D]!==z[D]){d=O[D],v=z[D];break}return d<v?-1:v<d?1:0},h.prototype.includes=function(l,i,a){return this.indexOf(l,i,a)!==-1},h.prototype.indexOf=function(l,i,a){return ut(this,l,i,a,!0)},h.prototype.lastIndexOf=function(l,i,a){return ut(this,l,i,a,!1)},h.prototype.write=function(l,i,a,c){if(i===void 0)c="utf8",a=this.length,i=0;else if(a===void 0&&typeof i=="string")c=i,a=this.length,i=0;else{if(!isFinite(i))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");i>>>=0,isFinite(a)?(a>>>=0,c===void 0&&(c="utf8")):(c=a,a=void 0)}const s=this.length-i;if((a===void 0||a>s)&&(a=s),l.length>0&&(a<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");let d=!1;for(;;)switch(c){case"hex":return Ht(this,l,i,a);case"utf8":case"utf-8":return gt(this,l,i,a);case"ascii":case"latin1":case"binary":return jt(this,l,i,a);case"base64":return pt(this,l,i,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt(this,l,i,a);default:if(d)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),d=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const ne=4096;function He(l,i,a){let c="";a=Math.min(l.length,a);for(let s=i;s<a;++s)c+=String.fromCharCode(127&l[s]);return c}function Ee(l,i,a){let c="";a=Math.min(l.length,a);for(let s=i;s<a;++s)c+=String.fromCharCode(l[s]);return c}function Jt(l,i,a){const c=l.length;(!i||i<0)&&(i=0),(!a||a<0||a>c)&&(a=c);let s="";for(let d=i;d<a;++d)s+=rn[l[d]];return s}function we(l,i,a){const c=l.slice(i,a);let s="";for(let d=0;d<c.length-1;d+=2)s+=String.fromCharCode(c[d]+256*c[d+1]);return s}function tt(l,i,a){if(l%1!=0||l<0)throw new RangeError("offset is not uint");if(l+i>a)throw new RangeError("Trying to access beyond buffer length")}function lt(l,i,a,c,s,d){if(!h.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>s||i<d)throw new RangeError('"value" argument is out of bounds');if(a+c>l.length)throw new RangeError("Index out of range")}function q(l,i,a,c,s){it(i,c,s,l,a,7);let d=Number(i&BigInt(4294967295));l[a++]=d,d>>=8,l[a++]=d,d>>=8,l[a++]=d,d>>=8,l[a++]=d;let v=Number(i>>BigInt(32)&BigInt(4294967295));return l[a++]=v,v>>=8,l[a++]=v,v>>=8,l[a++]=v,v>>=8,l[a++]=v,a}function W(l,i,a,c,s){it(i,c,s,l,a,7);let d=Number(i&BigInt(4294967295));l[a+7]=d,d>>=8,l[a+6]=d,d>>=8,l[a+5]=d,d>>=8,l[a+4]=d;let v=Number(i>>BigInt(32)&BigInt(4294967295));return l[a+3]=v,v>>=8,l[a+2]=v,v>>=8,l[a+1]=v,v>>=8,l[a]=v,a+8}function rt(l,i,a,c,s,d){if(a+c>l.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function Tt(l,i,a,c,s){return i=+i,a>>>=0,s||rt(l,0,a,4),y.write(l,i,a,c,23,4),a+4}function _(l,i,a,c,s){return i=+i,a>>>=0,s||rt(l,0,a,8),y.write(l,i,a,c,52,8),a+8}h.prototype.slice=function(l,i){const a=this.length;(l=~~l)<0?(l+=a)<0&&(l=0):l>a&&(l=a),(i=i===void 0?a:~~i)<0?(i+=a)<0&&(i=0):i>a&&(i=a),i<l&&(i=l);const c=this.subarray(l,i);return Object.setPrototypeOf(c,h.prototype),c},h.prototype.readUintLE=h.prototype.readUIntLE=function(l,i,a){l>>>=0,i>>>=0,a||tt(l,i,this.length);let c=this[l],s=1,d=0;for(;++d<i&&(s*=256);)c+=this[l+d]*s;return c},h.prototype.readUintBE=h.prototype.readUIntBE=function(l,i,a){l>>>=0,i>>>=0,a||tt(l,i,this.length);let c=this[l+--i],s=1;for(;i>0&&(s*=256);)c+=this[l+--i]*s;return c},h.prototype.readUint8=h.prototype.readUInt8=function(l,i){return l>>>=0,i||tt(l,1,this.length),this[l]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(l,i){return l>>>=0,i||tt(l,2,this.length),this[l]|this[l+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(l,i){return l>>>=0,i||tt(l,2,this.length),this[l]<<8|this[l+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(l,i){return l>>>=0,i||tt(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+16777216*this[l+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(l,i){return l>>>=0,i||tt(l,4,this.length),16777216*this[l]+(this[l+1]<<16|this[l+2]<<8|this[l+3])},h.prototype.readBigUInt64LE=Rt((function(l){ot(l>>>=0,"offset");const i=this[l],a=this[l+7];i!==void 0&&a!==void 0||nt(l,this.length-8);const c=i+256*this[++l]+65536*this[++l]+this[++l]*2**24,s=this[++l]+256*this[++l]+65536*this[++l]+a*2**24;return BigInt(c)+(BigInt(s)<<BigInt(32))})),h.prototype.readBigUInt64BE=Rt((function(l){ot(l>>>=0,"offset");const i=this[l],a=this[l+7];i!==void 0&&a!==void 0||nt(l,this.length-8);const c=i*2**24+65536*this[++l]+256*this[++l]+this[++l],s=this[++l]*2**24+65536*this[++l]+256*this[++l]+a;return(BigInt(c)<<BigInt(32))+BigInt(s)})),h.prototype.readIntLE=function(l,i,a){l>>>=0,i>>>=0,a||tt(l,i,this.length);let c=this[l],s=1,d=0;for(;++d<i&&(s*=256);)c+=this[l+d]*s;return s*=128,c>=s&&(c-=Math.pow(2,8*i)),c},h.prototype.readIntBE=function(l,i,a){l>>>=0,i>>>=0,a||tt(l,i,this.length);let c=i,s=1,d=this[l+--c];for(;c>0&&(s*=256);)d+=this[l+--c]*s;return s*=128,d>=s&&(d-=Math.pow(2,8*i)),d},h.prototype.readInt8=function(l,i){return l>>>=0,i||tt(l,1,this.length),128&this[l]?-1*(255-this[l]+1):this[l]},h.prototype.readInt16LE=function(l,i){l>>>=0,i||tt(l,2,this.length);const a=this[l]|this[l+1]<<8;return 32768&a?4294901760|a:a},h.prototype.readInt16BE=function(l,i){l>>>=0,i||tt(l,2,this.length);const a=this[l+1]|this[l]<<8;return 32768&a?4294901760|a:a},h.prototype.readInt32LE=function(l,i){return l>>>=0,i||tt(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},h.prototype.readInt32BE=function(l,i){return l>>>=0,i||tt(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},h.prototype.readBigInt64LE=Rt((function(l){ot(l>>>=0,"offset");const i=this[l],a=this[l+7];i!==void 0&&a!==void 0||nt(l,this.length-8);const c=this[l+4]+256*this[l+5]+65536*this[l+6]+(a<<24);return(BigInt(c)<<BigInt(32))+BigInt(i+256*this[++l]+65536*this[++l]+this[++l]*2**24)})),h.prototype.readBigInt64BE=Rt((function(l){ot(l>>>=0,"offset");const i=this[l],a=this[l+7];i!==void 0&&a!==void 0||nt(l,this.length-8);const c=(i<<24)+65536*this[++l]+256*this[++l]+this[++l];return(BigInt(c)<<BigInt(32))+BigInt(this[++l]*2**24+65536*this[++l]+256*this[++l]+a)})),h.prototype.readFloatLE=function(l,i){return l>>>=0,i||tt(l,4,this.length),y.read(this,l,!0,23,4)},h.prototype.readFloatBE=function(l,i){return l>>>=0,i||tt(l,4,this.length),y.read(this,l,!1,23,4)},h.prototype.readDoubleLE=function(l,i){return l>>>=0,i||tt(l,8,this.length),y.read(this,l,!0,52,8)},h.prototype.readDoubleBE=function(l,i){return l>>>=0,i||tt(l,8,this.length),y.read(this,l,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(l,i,a,c){l=+l,i>>>=0,a>>>=0,c||lt(this,l,i,a,Math.pow(2,8*a)-1,0);let s=1,d=0;for(this[i]=255&l;++d<a&&(s*=256);)this[i+d]=l/s&255;return i+a},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(l,i,a,c){l=+l,i>>>=0,a>>>=0,c||lt(this,l,i,a,Math.pow(2,8*a)-1,0);let s=a-1,d=1;for(this[i+s]=255&l;--s>=0&&(d*=256);)this[i+s]=l/d&255;return i+a},h.prototype.writeUint8=h.prototype.writeUInt8=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,1,255,0),this[i]=255&l,i+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,2,65535,0),this[i]=255&l,this[i+1]=l>>>8,i+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,2,65535,0),this[i]=l>>>8,this[i+1]=255&l,i+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,4,4294967295,0),this[i+3]=l>>>24,this[i+2]=l>>>16,this[i+1]=l>>>8,this[i]=255&l,i+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,4,4294967295,0),this[i]=l>>>24,this[i+1]=l>>>16,this[i+2]=l>>>8,this[i+3]=255&l,i+4},h.prototype.writeBigUInt64LE=Rt((function(l,i=0){return q(this,l,i,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=Rt((function(l,i=0){return W(this,l,i,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(l,i,a,c){if(l=+l,i>>>=0,!c){const B=Math.pow(2,8*a-1);lt(this,l,i,a,B-1,-B)}let s=0,d=1,v=0;for(this[i]=255&l;++s<a&&(d*=256);)l<0&&v===0&&this[i+s-1]!==0&&(v=1),this[i+s]=(l/d|0)-v&255;return i+a},h.prototype.writeIntBE=function(l,i,a,c){if(l=+l,i>>>=0,!c){const B=Math.pow(2,8*a-1);lt(this,l,i,a,B-1,-B)}let s=a-1,d=1,v=0;for(this[i+s]=255&l;--s>=0&&(d*=256);)l<0&&v===0&&this[i+s+1]!==0&&(v=1),this[i+s]=(l/d|0)-v&255;return i+a},h.prototype.writeInt8=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,1,127,-128),l<0&&(l=255+l+1),this[i]=255&l,i+1},h.prototype.writeInt16LE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,2,32767,-32768),this[i]=255&l,this[i+1]=l>>>8,i+2},h.prototype.writeInt16BE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,2,32767,-32768),this[i]=l>>>8,this[i+1]=255&l,i+2},h.prototype.writeInt32LE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,4,2147483647,-2147483648),this[i]=255&l,this[i+1]=l>>>8,this[i+2]=l>>>16,this[i+3]=l>>>24,i+4},h.prototype.writeInt32BE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[i]=l>>>24,this[i+1]=l>>>16,this[i+2]=l>>>8,this[i+3]=255&l,i+4},h.prototype.writeBigInt64LE=Rt((function(l,i=0){return q(this,l,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=Rt((function(l,i=0){return W(this,l,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(l,i,a){return Tt(this,l,i,!0,a)},h.prototype.writeFloatBE=function(l,i,a){return Tt(this,l,i,!1,a)},h.prototype.writeDoubleLE=function(l,i,a){return _(this,l,i,!0,a)},h.prototype.writeDoubleBE=function(l,i,a){return _(this,l,i,!1,a)},h.prototype.copy=function(l,i,a,c){if(!h.isBuffer(l))throw new TypeError("argument should be a Buffer");if(a||(a=0),c||c===0||(c=this.length),i>=l.length&&(i=l.length),i||(i=0),c>0&&c<a&&(c=a),c===a||l.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),l.length-i<c-a&&(c=l.length-i+a);const s=c-a;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,a,c):Uint8Array.prototype.set.call(l,this.subarray(a,c),i),s},h.prototype.fill=function(l,i,a,c){if(typeof l=="string"){if(typeof i=="string"?(c=i,i=0,a=this.length):typeof a=="string"&&(c=a,a=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!h.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(l.length===1){const d=l.charCodeAt(0);(c==="utf8"&&d<128||c==="latin1")&&(l=d)}}else typeof l=="number"?l&=255:typeof l=="boolean"&&(l=Number(l));if(i<0||this.length<i||this.length<a)throw new RangeError("Out of range index");if(a<=i)return this;let s;if(i>>>=0,a=a===void 0?this.length:a>>>0,l||(l=0),typeof l=="number")for(s=i;s<a;++s)this[s]=l;else{const d=h.isBuffer(l)?l:h.from(l,c),v=d.length;if(v===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(s=0;s<a-i;++s)this[s+i]=d[s%v]}return this};const j={};function F(l,i,a){j[l]=class extends a{constructor(){super(),Object.defineProperty(this,"message",{value:i.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${l}]`,this.stack,delete this.name}get code(){return l}set code(c){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:c,writable:!0})}toString(){return`${this.name} [${l}]: ${this.message}`}}}function $(l){let i="",a=l.length;const c=l[0]==="-"?1:0;for(;a>=c+4;a-=3)i=`_${l.slice(a-3,a)}${i}`;return`${l.slice(0,a)}${i}`}function it(l,i,a,c,s,d){if(l>a||l<i){const v=typeof i=="bigint"?"n":"";let B;throw B=i===0||i===BigInt(0)?`>= 0${v} and < 2${v} ** ${8*(d+1)}${v}`:`>= -(2${v} ** ${8*(d+1)-1}${v}) and < 2 ** ${8*(d+1)-1}${v}`,new j.ERR_OUT_OF_RANGE("value",B,l)}(function(v,B,O){ot(B,"offset"),v[B]!==void 0&&v[B+O]!==void 0||nt(B,v.length-(O+1))})(c,s,d)}function ot(l,i){if(typeof l!="number")throw new j.ERR_INVALID_ARG_TYPE(i,"number",l)}function nt(l,i,a){throw Math.floor(l)!==l?(ot(l,a),new j.ERR_OUT_OF_RANGE("offset","an integer",l)):i<0?new j.ERR_BUFFER_OUT_OF_BOUNDS:new j.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${i}`,l)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(l){return l?`${l} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(l,i){return`The "${l}" argument must be of type number. Received type ${typeof i}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(l,i,a){let c=`The value of "${l}" is out of range.`,s=a;return Number.isInteger(a)&&Math.abs(a)>2**32?s=$(String(a)):typeof a=="bigint"&&(s=String(a),(a>BigInt(2)**BigInt(32)||a<-(BigInt(2)**BigInt(32)))&&(s=$(s)),s+="n"),c+=` It must be ${i}. Received ${s}`,c}),RangeError);const le=/[^+/0-9A-Za-z-_]/g;function Ut(l,i){let a;i=i||1/0;const c=l.length;let s=null;const d=[];for(let v=0;v<c;++v){if(a=l.charCodeAt(v),a>55295&&a<57344){if(!s){if(a>56319){(i-=3)>-1&&d.push(239,191,189);continue}if(v+1===c){(i-=3)>-1&&d.push(239,191,189);continue}s=a;continue}if(a<56320){(i-=3)>-1&&d.push(239,191,189),s=a;continue}a=65536+(s-55296<<10|a-56320)}else s&&(i-=3)>-1&&d.push(239,191,189);if(s=null,a<128){if((i-=1)<0)break;d.push(a)}else if(a<2048){if((i-=2)<0)break;d.push(a>>6|192,63&a|128)}else if(a<65536){if((i-=3)<0)break;d.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;d.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return d}function he(l){return o.toByteArray((function(i){if((i=(i=i.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i})(l))}function fe(l,i,a,c){let s;for(s=0;s<c&&!(s+a>=i.length||s>=l.length);++s)i[s+a]=l[s];return s}function At(l,i){return l instanceof i||l!=null&&l.constructor!=null&&l.constructor.name!=null&&l.constructor.name===i.name}function Se(l){return l!=l}const rn=(function(){const l="0123456789abcdef",i=new Array(256);for(let a=0;a<16;++a){const c=16*a;for(let s=0;s<16;++s)i[c+s]=l[a]+l[s]}return i})();function Rt(l){return typeof BigInt>"u"?Fn:l}function Fn(){throw new Error("BigInt not supported")}})(T0)),T0);const ic=new TextEncoder,Ua=new TextDecoder,j0=hc;function hc(p,o=0){let y;if(p===void 0||typeof p!="string"||typeof o!="number")throw TypeError("invlaid init variablie type name. ");return(p=p.toUpperCase()).includes("8")?(y=Xt.Buffer.alloc(1),p.includes("I")?y.writeInt8(o):y.writeUint8(o)):p.includes("16")?(y=Xt.Buffer.alloc(2),p.includes("I")?p.includes("L")?y.writeInt16LE(o):y.writeInt16BE(o):p.includes("L")?y.writeUint16LE(o):y.writeUint16BE(o)):p.includes("32")?(y=Xt.Buffer.alloc(4),p.includes("I")?p.includes("L")?y.writeInt32LE(o):y.writeInt32BE(o):p.includes("L")?y.writeUint32LE(o):y.writeUint32BE(o)):p.includes("F")?(y=Xt.Buffer.alloc(4),p.includes("L")?y.writeFloatLE(o):y.writeFloatBE(o)):p.includes("N")?y=Xt.Buffer.from(String(o)):console.log(`invalid type: ${p} or initvalue: ${o}`),y}const ac=Q0;function Q0(p,o,y){let b,E="B";if(typeof o=="number")typeof y=="number"?(b=Xt.Buffer.alloc(o),y!==0&&b.fill(y),E="B"):(b=Xt.Buffer.from(String(o)),E="N");else if(typeof o=="string"&&typeof y=="number")E=o.toUpperCase(),b=hc(o,y);else if(typeof o=="string"&&y===void 0)b=Xt.Buffer.from(o),E="S";else if(o instanceof Uint8Array&&y===void 0)b=o instanceof Xt.Buffer?o:Xt.Buffer.from(o);else if(o instanceof ArrayBuffer&&y===void 0)b=Xt.Buffer.from(o);else if(ArrayBuffer.isView(o))b=Xt.Buffer.from(o.buffer,o.byteOffset,o.byteLength);else if(typeof o=="object"&&y===void 0)b=Xt.Buffer.from(JSON.stringify(o)),E="O";else{if(typeof o!="boolean"||y!==void 0)throw TypeError("invalid meta buffer type");{const U=o?1:0;b=Xt.Buffer.from([U]),E="!"}}return typeof p=="string"&&p.includes("#")&&(p=""),[p,E,b]}const Td=X0;function X0(...p){let o=0;return p.map((y=>{const b=o++;return typeof y=="number"?ac(b,"N",y):ac(b,y)}))}function yc(p){if((p=p.toUpperCase()).includes("8"))return p.includes("I")?"int8":"uint8";if(p.includes("16"))return p.includes("I")?p.includes("L")?"int16_le":"int16_be":p.includes("L")?"uint16_le":"uint16_be";if(p.includes("32"))return p.includes("I")?p.includes("L")?"int32_le":"int32_be":p.includes("L")?"uint32_le":"uint32_be";if(p.includes("F"))return p.includes("L")?"float_le":"float_be";if(p==="B")return"buffer";if(p==="S")return"string";if(p==="N")return"number";if(p==="O")return"object";if(p==="!")return"boolean";throw TypeError("invalid data type")}function Fr(p,o,y,b){try{const E=yc(p);if(E=="int8")return o.readInt8(y);if(E==="uint8")return o.readUint8(y);if(E==="int16_le")return o.readInt16LE(y);if(E==="int16_be")return o.readInt16BE(y);if(E==="uint16_le")return o.readUint16LE(y);if(E==="uint16_be")return o.readUint16BE(y);if(E==="int32_le")return o.readInt32LE(y);if(E==="int32_be")return o.readInt32BE(y);if(E==="uint32_le")return o.readUint32LE(y);if(E==="uint32_be")return o.readUint32BE(y);if(E==="float_le")return o.readFloatLE(y);if(E==="float_be")return o.readFloatBE(y);if(E==="buffer")return o.subarray(y,y+b);if(E==="string"){const U=o.subarray(y,y+b);return Ua.decode(U)}if(E==="number"){const U=o.subarray(y,y+b);return Number(Ua.decode(U))}if(E==="object"){const U=o.subarray(y,y+b);return JSON.parse(Ua.decode(U))}return E==="boolean"?o.readInt8(y)===1:void 0}catch{}}function Aa(...p){const o=(function(R){let A=[];return R.filter((w=>{if(!Array.isArray(w[0]))return w;A=A.concat(w)})).concat(A)})(p);let y=0;const b=[];let E,U,h=0;if(o.forEach((R=>{const[A,w,G]=R;y+=G.byteLength,(typeof A=="number"||A.length>0)&&b.push([A,w,h,G.byteLength]),h=y})),b.length>0){let R=JSON.stringify(b);E=ic.encode(R),U=E.byteLength,y=y+U+2}const Y=Xt.Buffer.alloc(y);if(h=0,o.forEach((R=>{const A=R[2];Y.set(A,h),h+=A.byteLength})),b.length>0){Y.set(E,h);const R=j0("16",U);return Y.set(R,h+U),Y}return Y}const Ud=Na;function Na(p,o=!1){if(p===void 0)throw TypeError("Invalid data type: Undefined");if(typeof p=="string")return ic.encode(p);if(typeof p=="number")return Uint8Array.from([p]);if(p instanceof ArrayBuffer){if(o)return new Uint8Array(p);{const y=new Uint8Array(p),b=new Uint8Array(p.byteLength);return b.set(y),b}}if(ArrayBuffer.isView(p)){if(o)return new Uint8Array(p.buffer,p.byteOffset,p.byteLength);{const y=new Uint8Array(p.buffer,p.byteOffset,p.byteLength),b=new Uint8Array(p.byteLength);return b.set(y),b}}return ic.encode(JSON.stringify(p))}const Od=dc;function dc(p,o=!1){const y=Na(p,o);return o?Xt.Buffer.from(y.buffer,y.byteOffset,y.byteLength):Xt.Buffer.from(y)}const wd=V0;function V0(...p){const o=p.map((y=>dc(y)));return Xt.Buffer.concat(o)}const Md=Z0;function Z0(...p){try{let o=0,y=0;const b=p.map((U=>Na(U)));b.forEach((U=>{o+=U.byteLength}));const E=new Uint8Array(o);return b.forEach((U=>{E.set(U,y),y+=U.byteLength})),E}catch(o){console.log(o)}}function K0(p){return fc(p)===0?p.byteLength:p.byteLength-fc(p)-ri}function gc(p,o){try{const y=new Uint8Array(p.buffer,p.byteOffset,p.byteLength),b=y.byteLength-o-2,E=y.subarray(b,y.byteLength-2),U=Ua.decode(E),h=JSON.parse(U);if(!Array.isArray(h)||!Array.isArray(h[0]))return;let Y=h[0];if(!Y||Y.length<3)return;const[R,A,w]=Y;return typeof A!="string"||typeof w!="number"?void 0:h}catch{}}const ri=2;function pc(p){return p instanceof ArrayBuffer&&(p=Xt.Buffer.from(p)),p instanceof Uint8Array?p.byteLength<=ri?0:new DataView(p.buffer,p.byteOffset,p.byteLength).getUint16(p.byteLength-ri):0}function fc(p){if(p instanceof ArrayBuffer&&(p=Xt.Buffer.from(p)),p instanceof Uint8Array){const o=p.byteLength;if(o<=ri)return 0;const y=pc(p);return y===0||y>o?0:gc(p,y)?y:0}return 0}function U0(p){const o=K0(p);return p.subarray(0,o)}function li(p,o=!1){p instanceof ArrayBuffer&&(p=Xt.Buffer.from(p));const y=pc(p);if(y===0)return;let b=gc(p,y);return b?(o&&b.forEach((E=>{E[3]==null&&(E[1].includes("8")?E[3]=1:E[1].includes("16")?E[3]=2:E[1].includes("32")||E[1].includes("F")?E[3]=4:E[1].includes("!")&&(E[3]=1)),E[4]=yc(E[1])})),b):void 0}var at=Object.freeze({__proto__:null,B8:Od,B8pack:wd,Buffer:Xt.Buffer,MB:ac,MBA:Td,NB:j0,TAIL_LEN:ri,U8:Ud,U8pack:Md,equal:function(p,o){if(p.byteLength!==o.byteLength)return!1;for(let y=0;y<p.byteLength;y++)if(p[y]!==o[y])return!1;return!0},getBuffer:U0,getBufferSize:K0,getMeta:li,getMetaDetail:function(p){return li(p,!0)},getMetaSize:fc,hex:function(p){return Array.prototype.map.call(new Uint8Array(p),(o=>("00"+o.toString(16)).slice(-2))).join("")},meta:function(...p){return li(Aa(...p))},metaBuffer:Q0,metaBufferArguments:X0,metaDetail:function(...p){return li(Aa(...p),!0)},numberBuffer:hc,pack:Aa,parseBuffer:dc,parseBufferThenConcat:V0,parseMetaInfo:gc,parseTypeName:yc,parseUint8Array:Na,parseUint8ThenConcat:Z0,rawPack:function(...p){return U0(Aa(...p))},readTail:pc,readTypedBuffer:Fr,unpack:function(p,o){const y=o||li(p);if(!y)return;const b=Xt.Buffer.from(p),E={};let U=0;if(y.forEach((R=>{const[A,w,G,K]=R;let X=Fr(w,b,G,K);X!=null&&(E[A]=X,K&&(U+=K))})),o&&b.byteLength!==U){let R=b.byteLength-U,A=Fr("b",b,U,R);if(A==null)return;E.$OTHERS=A}let h=0,Y=[];for(;E[h];)Y.push(E[h++]);return Y.length>0&&(E.args=Y,E.$=E.args),E}});function Rd(p){return p&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p}var O0,w0={exports:{}},Nd=(O0||(O0=1,(function(p){var o=Object.prototype.hasOwnProperty,y="~";function b(){}function E(R,A,w){this.fn=R,this.context=A,this.once=w||!1}function U(R,A,w,G,K){if(typeof w!="function")throw new TypeError("The listener must be a function");var X=new E(w,G||R,K),P=y?y+A:A;return R._events[P]?R._events[P].fn?R._events[P]=[R._events[P],X]:R._events[P].push(X):(R._events[P]=X,R._eventsCount++),R}function h(R,A){--R._eventsCount==0?R._events=new b:delete R._events[A]}function Y(){this._events=new b,this._eventsCount=0}Object.create&&(b.prototype=Object.create(null),new b().__proto__||(y=!1)),Y.prototype.eventNames=function(){var R,A,w=[];if(this._eventsCount===0)return w;for(A in R=this._events)o.call(R,A)&&w.push(y?A.slice(1):A);return Object.getOwnPropertySymbols?w.concat(Object.getOwnPropertySymbols(R)):w},Y.prototype.listeners=function(R){var A=y?y+R:R,w=this._events[A];if(!w)return[];if(w.fn)return[w.fn];for(var G=0,K=w.length,X=new Array(K);G<K;G++)X[G]=w[G].fn;return X},Y.prototype.listenerCount=function(R){var A=y?y+R:R,w=this._events[A];return w?w.fn?1:w.length:0},Y.prototype.emit=function(R,A,w,G,K,X){var P=y?y+R:R;if(!this._events[P])return!1;var I,ut,ft=this._events[P],Ht=arguments.length;if(ft.fn){switch(ft.once&&this.removeListener(R,ft.fn,void 0,!0),Ht){case 1:return ft.fn.call(ft.context),!0;case 2:return ft.fn.call(ft.context,A),!0;case 3:return ft.fn.call(ft.context,A,w),!0;case 4:return ft.fn.call(ft.context,A,w,G),!0;case 5:return ft.fn.call(ft.context,A,w,G,K),!0;case 6:return ft.fn.call(ft.context,A,w,G,K,X),!0}for(ut=1,I=new Array(Ht-1);ut<Ht;ut++)I[ut-1]=arguments[ut];ft.fn.apply(ft.context,I)}else{var gt,jt=ft.length;for(ut=0;ut<jt;ut++)switch(ft[ut].once&&this.removeListener(R,ft[ut].fn,void 0,!0),Ht){case 1:ft[ut].fn.call(ft[ut].context);break;case 2:ft[ut].fn.call(ft[ut].context,A);break;case 3:ft[ut].fn.call(ft[ut].context,A,w);break;case 4:ft[ut].fn.call(ft[ut].context,A,w,G);break;default:if(!I)for(gt=1,I=new Array(Ht-1);gt<Ht;gt++)I[gt-1]=arguments[gt];ft[ut].fn.apply(ft[ut].context,I)}}return!0},Y.prototype.on=function(R,A,w){return U(this,R,A,w,!1)},Y.prototype.once=function(R,A,w){return U(this,R,A,w,!0)},Y.prototype.removeListener=function(R,A,w,G){var K=y?y+R:R;if(!this._events[K])return this;if(!A)return h(this,K),this;var X=this._events[K];if(X.fn)X.fn!==A||G&&!X.once||w&&X.context!==w||h(this,K);else{for(var P=0,I=[],ut=X.length;P<ut;P++)(X[P].fn!==A||G&&!X[P].once||w&&X[P].context!==w)&&I.push(X[P]);I.length?this._events[K]=I.length===1?I[0]:I:h(this,K)}return this},Y.prototype.removeAllListeners=function(R){var A;return R?(A=y?y+R:R,this._events[A]&&h(this,A)):(this._events=new b,this._eventsCount=0),this},Y.prototype.off=Y.prototype.removeListener,Y.prototype.addListener=Y.prototype.on,Y.prefixed=y,Y.EventEmitter=Y,p.exports=Y})(w0)),w0.exports),zd=Rd(Nd);const wn={OPENING:0,OPEN:1,CLOSING:2,CLOSED:3,SERVER_READY:4,AUTH_FAIL:5,AUTH_READY:6,READY:7,REDIRECTING:8};for(let p in wn)wn[wn[p]]=p;const Oa={INIT:0,SENT_SERVER_READY:1,RECV_AUTH_REQ:2,SENT_SERVER_NONCE:3,RECV_AUTH_HMAC:4,AUTH_FAIL:5,AUTH_READY:6,CID_READY:7};for(let p in Oa)Oa[Oa[p]]=p;let bl={NO:0,YES:1,AUTO:2};for(let p in bl)bl[bl[p]]=p;const Un={TAG_LEN1:255,TAG_LEN2:65535,CONNECTION_CHECKER_PERIOD:3e3,PROMISE_TIMEOUT:5e3,DID:8,CID:12};let ae={EMPTY:0,TEXT:1,BINARY:2,OBJECT:3,MJSON:4,MBA:5};for(let p in ae)ae[ae[p]]=p;let St={SERVER_READY:192,CID_REQ:193,CID_RES:194,QUOTA_LEVEL:195,SERVER_CLEAR_AUTH:196,SERVER_REDIRECT:197,LOOP:203,ECHO:204,PING:205,PONG:206,CLOSE:207,SIGNAL:208,SIGNAL_REQ:209,SIGNAL_E2E:210,SUBSCRIBE:211,SUBSCRIBE_REQ:212,UNSUBSCRIBE:213,SERVER_SIGNAL:214,IAM:217,IAM_RES:218,SET:219,RESPONSE_CODE:220,RESPONSE_MBP:221,REQUEST:222,RESPONSE:223,FLOW_MODE:240,WAIT:241,RESUME:242,TIME_OUT:253,OVER_SIZE:254,OVER_FLOW:255};for(let p in St)St[St[p]]=p;var Ld=Object.freeze({__proto__:null,API_TYPE:{REQUEST_RESPONSE:"requet_response",ONE_WAY:"one_way"},CLIENT_STATE:Oa,ENC_MODE:bl,IOMsg:St,PAYLOAD_TYPE:ae,SIZE_LIMIT:Un,STATES:wn,STATUS:{OK:0,ERROR:255}});let M0={0:{signalSize:1500,publishCounter:10,trafficRate:1e4},1:{signalSize:255,publishCounter:10,trafficRate:1e5},2:{signalSize:65535,publishCounter:10,trafficRate:1048576},3:{signalSize:1048576,publishCounter:10,trafficRate:20971520},10:{signalSize:1500,publishCounter:5,trafficRate:20971520},11:{signalSize:65535,publishCounter:10,trafficRate:20971520},12:{signalSize:1048576,publishCounter:100,trafficRate:20971520},200:{signalSize:20971520,publishCounter:1e4,trafficRate:104857600},255:{signalSize:20971520,publishCounter:1e4,trafficRate:104857600}};const Ba=new TextEncoder;function Dd(p,...o){if(typeof p!="string")throw TypeError("tag should be string.");let y,b=Ba.encode(p),E=(function(U){let h,Y;if(U.length==0)h=ae.EMPTY,Y=null;else if(U.length==1)if(typeof U[0]=="string"||typeof U[0]=="number")h=ae.TEXT,Y=Ba.encode(U[0]+"."),Y[Y.byteLength-1]=0;else if(ArrayBuffer.isView(U[0])||U[0]instanceof ArrayBuffer)h=ae.BINARY,Y=at.B8(U[0]);else{if(typeof U[0]!="object")throw new Error("unknown payload arguments");h=ae.OBJECT,Y=Ba.encode(JSON.stringify(U[0]))}else{let R=!1;U.forEach((A=>{(ArrayBuffer.isView(A)||A instanceof ArrayBuffer)&&(R=!0)})),R?h=ae.MBA:(h=ae.MJSON,Y=Ba.encode(JSON.stringify(U)))}return{type:h,buffer:Y}})(o);if(E.type==ae.EMPTY)y=at.pack(at.MB("#MsgType","8",St.SIGNAL),at.MB("#tagLen","8",b.byteLength),at.MB("#tag",b),at.MB("#payloadType","8",E.type));else if(E.type==ae.MBA){let U=at.pack(at.MBA(...o));y=at.pack(at.MB("#MsgType","8",St.SIGNAL),at.MB("#tagLen","8",b.byteLength),at.MB("#tag",b),at.MB("#payloadType","8",E.type),at.MB("#mbaBuffer",U))}else y=at.pack(at.MB("#MsgType","8",St.SIGNAL),at.MB("#tagLen","8",b.byteLength),at.MB("#tag",b),at.MB("#payloadType","8",E.type),at.MB("#payload",E.buffer));return y}const Cd=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function Pr(p,o,y,b,E){let U,h,Y,R,A,w,G,K,X,P,I,ut,ft;for(;E>=64;){for(U=o[0],h=o[1],Y=o[2],R=o[3],A=o[4],w=o[5],G=o[6],K=o[7],P=0;P<16;P++)I=b+4*P,p[P]=(255&y[I])<<24|(255&y[I+1])<<16|(255&y[I+2])<<8|255&y[I+3];for(P=16;P<64;P++)X=p[P-2],ut=(X>>>17|X<<15)^(X>>>19|X<<13)^X>>>10,X=p[P-15],ft=(X>>>7|X<<25)^(X>>>18|X<<14)^X>>>3,p[P]=(ut+p[P-7]|0)+(ft+p[P-16]|0);for(P=0;P<64;P++)ut=(((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&w^~A&G)|0)+(K+(Cd[P]+p[P]|0)|0)|0,ft=((U>>>2|U<<30)^(U>>>13|U<<19)^(U>>>22|U<<10))+(U&h^U&Y^h&Y)|0,K=G,G=w,w=A,A=R+ut|0,R=Y,Y=h,h=U,U=ut+ft|0;o[0]+=U,o[1]+=h,o[2]+=Y,o[3]+=R,o[4]+=A,o[5]+=w,o[6]+=G,o[7]+=K,b+=64,E-=64}return b}const wa=(function(){function p(){this.digestLength=32,this.blockSize=64,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return p.prototype.reset=function(){return this.state[0]=1779033703,this.state[1]=3144134277,this.state[2]=1013904242,this.state[3]=2773480762,this.state[4]=1359893119,this.state[5]=2600822924,this.state[6]=528734635,this.state[7]=1541459225,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},p.prototype.clean=function(){for(var o=0;o<this.buffer.length;o++)this.buffer[o]=0;for(o=0;o<this.temp.length;o++)this.temp[o]=0;this.reset()},p.prototype.update=function(o,y){if(y===void 0&&(y=o.length),this.finished)throw new Error("SHA256: can't update because hash was finished.");let b=0;if(this.bytesHashed+=y,this.bufferLength>0){for(;this.bufferLength<64&&y>0;)this.buffer[this.bufferLength++]=o[b++],y--;this.bufferLength===64&&(Pr(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(y>=64&&(b=Pr(this.temp,this.state,o,b,y),y%=64);y>0;)this.buffer[this.bufferLength++]=o[b++],y--;return this},p.prototype.finish=function(o){if(!this.finished){const b=this.bytesHashed,E=this.bufferLength,U=b/536870912|0,h=b<<3,Y=b%64<56?64:128;this.buffer[E]=128;for(var y=E+1;y<Y-8;y++)this.buffer[y]=0;this.buffer[Y-8]=U>>>24&255,this.buffer[Y-7]=U>>>16&255,this.buffer[Y-6]=U>>>8&255,this.buffer[Y-5]=U>>>0&255,this.buffer[Y-4]=h>>>24&255,this.buffer[Y-3]=h>>>16&255,this.buffer[Y-2]=h>>>8&255,this.buffer[Y-1]=h>>>0&255,Pr(this.temp,this.state,this.buffer,0,Y),this.finished=!0}for(y=0;y<8;y++)o[4*y+0]=this.state[y]>>>24&255,o[4*y+1]=this.state[y]>>>16&255,o[4*y+2]=this.state[y]>>>8&255,o[4*y+3]=this.state[y]>>>0&255;return this},p.prototype.digest=function(){const o=new Uint8Array(this.digestLength);return this.finish(o),o},p.prototype._saveState=function(o){for(let y=0;y<this.state.length;y++)o[y]=this.state[y]},p.prototype._restoreState=function(o,y){for(let b=0;b<this.state.length;b++)this.state[b]=o[b];this.bytesHashed=y,this.finished=!1,this.bufferLength=0},p})(),xd=(function(){function p(o){this.inner=new wa,this.outer=new wa,this.blockSize=this.inner.blockSize,this.digestLength=this.inner.digestLength;const y=new Uint8Array(this.blockSize);if(o.length>this.blockSize)new wa().update(o).finish(y).clean();else for(var b=0;b<o.length;b++)y[b]=o[b];for(b=0;b<y.length;b++)y[b]^=54;for(this.inner.update(y),b=0;b<y.length;b++)y[b]^=106;for(this.outer.update(y),this.istate=new Uint32Array(8),this.ostate=new Uint32Array(8),this.inner._saveState(this.istate),this.outer._saveState(this.ostate),b=0;b<y.length;b++)y[b]=0}return p.prototype.reset=function(){return this.inner._restoreState(this.istate,this.inner.blockSize),this.outer._restoreState(this.ostate,this.outer.blockSize),this},p.prototype.clean=function(){for(let o=0;o<this.istate.length;o++)this.ostate[o]=this.istate[o]=0;this.inner.clean(),this.outer.clean()},p.prototype.update=function(o){return this.inner.update(o),this},p.prototype.finish=function(o){return this.outer.finished?this.outer.finish(o):(this.inner.finish(o),this.outer.update(o,this.digestLength).finish(o)),this},p.prototype.digest=function(){const o=new Uint8Array(this.digestLength);return this.finish(o),o},p})();function tc(p){const o=new wa().update(p),y=o.digest();return o.clean(),y}var R0,N0,z0,L0={},ui={},ec={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function Hd(){return N0||(N0=1,ec.read=function(p,o,y,b,E){var U,h,Y=8*E-b-1,R=(1<<Y)-1,A=R>>1,w=-7,G=y?E-1:0,K=y?-1:1,X=p[o+G];for(G+=K,U=X&(1<<-w)-1,X>>=-w,w+=Y;w>0;U=256*U+p[o+G],G+=K,w-=8);for(h=U&(1<<-w)-1,U>>=-w,w+=b;w>0;h=256*h+p[o+G],G+=K,w-=8);if(U===0)U=1-A;else{if(U===R)return h?NaN:1/0*(X?-1:1);h+=Math.pow(2,b),U-=A}return(X?-1:1)*h*Math.pow(2,U-b)},ec.write=function(p,o,y,b,E,U){var h,Y,R,A=8*U-E-1,w=(1<<A)-1,G=w>>1,K=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,X=b?0:U-1,P=b?1:-1,I=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(Y=isNaN(o)?1:0,h=w):(h=Math.floor(Math.log(o)/Math.LN2),o*(R=Math.pow(2,-h))<1&&(h--,R*=2),(o+=h+G>=1?K/R:K*Math.pow(2,1-G))*R>=2&&(h++,R/=2),h+G>=w?(Y=0,h=w):h+G>=1?(Y=(o*R-1)*Math.pow(2,E),h+=G):(Y=o*Math.pow(2,G-1)*Math.pow(2,E),h=0));E>=8;p[y+X]=255&Y,X+=P,Y/=256,E-=8);for(h=h<<E|Y,A+=E;A>0;p[y+X]=255&h,X+=P,h/=256,A-=8);p[y+X-P]|=128*I}),ec}/*!
55
+ * The buffer module from node.js, for the browser.
56
+ *
57
+ * @author Feross Aboukhadijeh <https://feross.org>
58
+ * @license MIT
59
+ */var Vt=(z0||(z0=1,(function(p){const o=(function(){if(R0)return ui;R0=1,ui.byteLength=function(B){var O=d(B),z=O[0],D=O[1];return 3*(z+D)/4-D},ui.toByteArray=function(B){var O,z,D=d(B),H=D[0],st=D[1],k=new a((function(oi,Pe,Me){return 3*(Pe+Me)/4-Me})(0,H,st)),vt=0,cn=st>0?H-4:H;for(z=0;z<cn;z+=4)O=i[B.charCodeAt(z)]<<18|i[B.charCodeAt(z+1)]<<12|i[B.charCodeAt(z+2)]<<6|i[B.charCodeAt(z+3)],k[vt++]=O>>16&255,k[vt++]=O>>8&255,k[vt++]=255&O;return st===2&&(O=i[B.charCodeAt(z)]<<2|i[B.charCodeAt(z+1)]>>4,k[vt++]=255&O),st===1&&(O=i[B.charCodeAt(z)]<<10|i[B.charCodeAt(z+1)]<<4|i[B.charCodeAt(z+2)]>>2,k[vt++]=O>>8&255,k[vt++]=255&O),k},ui.fromByteArray=function(B){for(var O,z=B.length,D=z%3,H=[],st=16383,k=0,vt=z-D;k<vt;k+=st)H.push(v(B,k,k+st>vt?vt:k+st));return D===1?(O=B[z-1],H.push(l[O>>2]+l[O<<4&63]+"==")):D===2&&(O=(B[z-2]<<8)+B[z-1],H.push(l[O>>10]+l[O>>4&63]+l[O<<2&63]+"=")),H.join("")};for(var l=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)l[s]=c[s],i[c.charCodeAt(s)]=s;function d(B){var O=B.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var z=B.indexOf("=");return z===-1&&(z=O),[z,z===O?0:4-z%4]}function v(B,O,z){for(var D,H,st=[],k=O;k<z;k+=3)D=(B[k]<<16&16711680)+(B[k+1]<<8&65280)+(255&B[k+2]),st.push(l[(H=D)>>18&63]+l[H>>12&63]+l[H>>6&63]+l[63&H]);return st.join("")}return i[45]=62,i[95]=63,ui})(),y=Hd(),b=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.Buffer=h,p.SlowBuffer=function(l){return+l!=l&&(l=0),h.alloc(+l)},p.INSPECT_MAX_BYTES=50;const E=2147483647;function U(l){if(l>E)throw new RangeError('The value "'+l+'" is invalid for option "size"');const i=new Uint8Array(l);return Object.setPrototypeOf(i,h.prototype),i}function h(l,i,a){if(typeof l=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A(l)}return Y(l,i,a)}function Y(l,i,a){if(typeof l=="string")return(function(d,v){if(typeof v=="string"&&v!==""||(v="utf8"),!h.isEncoding(v))throw new TypeError("Unknown encoding: "+v);const B=0|X(d,v);let O=U(B);const z=O.write(d,v);return z!==B&&(O=O.slice(0,z)),O})(l,i);if(ArrayBuffer.isView(l))return(function(d){if(At(d,Uint8Array)){const v=new Uint8Array(d);return G(v.buffer,v.byteOffset,v.byteLength)}return w(d)})(l);if(l==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);if(At(l,ArrayBuffer)||l&&At(l.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(At(l,SharedArrayBuffer)||l&&At(l.buffer,SharedArrayBuffer)))return G(l,i,a);if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const c=l.valueOf&&l.valueOf();if(c!=null&&c!==l)return h.from(c,i,a);const s=(function(d){if(h.isBuffer(d)){const v=0|K(d.length),B=U(v);return B.length===0||d.copy(B,0,0,v),B}return d.length!==void 0?typeof d.length!="number"||Se(d.length)?U(0):w(d):d.type==="Buffer"&&Array.isArray(d.data)?w(d.data):void 0})(l);if(s)return s;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof l[Symbol.toPrimitive]=="function")return h.from(l[Symbol.toPrimitive]("string"),i,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l)}function R(l){if(typeof l!="number")throw new TypeError('"size" argument must be of type number');if(l<0)throw new RangeError('The value "'+l+'" is invalid for option "size"')}function A(l){return R(l),U(l<0?0:0|K(l))}function w(l){const i=l.length<0?0:0|K(l.length),a=U(i);for(let c=0;c<i;c+=1)a[c]=255&l[c];return a}function G(l,i,a){if(i<0||l.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(l.byteLength<i+(a||0))throw new RangeError('"length" is outside of buffer bounds');let c;return c=i===void 0&&a===void 0?new Uint8Array(l):a===void 0?new Uint8Array(l,i):new Uint8Array(l,i,a),Object.setPrototypeOf(c,h.prototype),c}function K(l){if(l>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return 0|l}function X(l,i){if(h.isBuffer(l))return l.length;if(ArrayBuffer.isView(l)||At(l,ArrayBuffer))return l.byteLength;if(typeof l!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof l);const a=l.length,c=arguments.length>2&&arguments[2]===!0;if(!c&&a===0)return 0;let s=!1;for(;;)switch(i){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return Ut(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return he(l).length;default:if(s)return c?-1:Ut(l).length;i=(""+i).toLowerCase(),s=!0}}function P(l,i,a){let c=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0)<=(i>>>=0))return"";for(l||(l="utf8");;)switch(l){case"hex":return Jt(this,i,a);case"utf8":case"utf-8":return Kt(this,i,a);case"ascii":return He(this,i,a);case"latin1":case"binary":return Ee(this,i,a);case"base64":return ee(this,i,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return we(this,i,a);default:if(c)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),c=!0}}function I(l,i,a){const c=l[i];l[i]=l[a],l[a]=c}function ut(l,i,a,c,s){if(l.length===0)return-1;if(typeof a=="string"?(c=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),Se(a=+a)&&(a=s?0:l.length-1),a<0&&(a=l.length+a),a>=l.length){if(s)return-1;a=l.length-1}else if(a<0){if(!s)return-1;a=0}if(typeof i=="string"&&(i=h.from(i,c)),h.isBuffer(i))return i.length===0?-1:ft(l,i,a,c,s);if(typeof i=="number")return i&=255,typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(l,i,a):Uint8Array.prototype.lastIndexOf.call(l,i,a):ft(l,[i],a,c,s);throw new TypeError("val must be string, number or Buffer")}function ft(l,i,a,c,s){let d,v=1,B=l.length,O=i.length;if(c!==void 0&&((c=String(c).toLowerCase())==="ucs2"||c==="ucs-2"||c==="utf16le"||c==="utf-16le")){if(l.length<2||i.length<2)return-1;v=2,B/=2,O/=2,a/=2}function z(D,H){return v===1?D[H]:D.readUInt16BE(H*v)}if(s){let D=-1;for(d=a;d<B;d++)if(z(l,d)===z(i,D===-1?0:d-D)){if(D===-1&&(D=d),d-D+1===O)return D*v}else D!==-1&&(d-=d-D),D=-1}else for(a+O>B&&(a=B-O),d=a;d>=0;d--){let D=!0;for(let H=0;H<O;H++)if(z(l,d+H)!==z(i,H)){D=!1;break}if(D)return d}return-1}function Ht(l,i,a,c){a=Number(a)||0;const s=l.length-a;c?(c=Number(c))>s&&(c=s):c=s;const d=i.length;let v;for(c>d/2&&(c=d/2),v=0;v<c;++v){const B=parseInt(i.substr(2*v,2),16);if(Se(B))return v;l[a+v]=B}return v}function gt(l,i,a,c){return fe(Ut(i,l.length-a),l,a,c)}function jt(l,i,a,c){return fe((function(s){const d=[];for(let v=0;v<s.length;++v)d.push(255&s.charCodeAt(v));return d})(i),l,a,c)}function pt(l,i,a,c){return fe(he(i),l,a,c)}function Zt(l,i,a,c){return fe((function(s,d){let v,B,O;const z=[];for(let D=0;D<s.length&&!((d-=2)<0);++D)v=s.charCodeAt(D),B=v>>8,O=v%256,z.push(O),z.push(B);return z})(i,l.length-a),l,a,c)}function ee(l,i,a){return i===0&&a===l.length?o.fromByteArray(l):o.fromByteArray(l.slice(i,a))}function Kt(l,i,a){a=Math.min(l.length,a);const c=[];let s=i;for(;s<a;){const d=l[s];let v=null,B=d>239?4:d>223?3:d>191?2:1;if(s+B<=a){let O,z,D,H;switch(B){case 1:d<128&&(v=d);break;case 2:O=l[s+1],(192&O)==128&&(H=(31&d)<<6|63&O,H>127&&(v=H));break;case 3:O=l[s+1],z=l[s+2],(192&O)==128&&(192&z)==128&&(H=(15&d)<<12|(63&O)<<6|63&z,H>2047&&(H<55296||H>57343)&&(v=H));break;case 4:O=l[s+1],z=l[s+2],D=l[s+3],(192&O)==128&&(192&z)==128&&(192&D)==128&&(H=(15&d)<<18|(63&O)<<12|(63&z)<<6|63&D,H>65535&&H<1114112&&(v=H))}}v===null?(v=65533,B=1):v>65535&&(v-=65536,c.push(v>>>10&1023|55296),v=56320|1023&v),c.push(v),s+=B}return(function(d){const v=d.length;if(v<=ne)return String.fromCharCode.apply(String,d);let B="",O=0;for(;O<v;)B+=String.fromCharCode.apply(String,d.slice(O,O+=ne));return B})(c)}p.kMaxLength=E,h.TYPED_ARRAY_SUPPORT=(function(){try{const l=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(l,i),l.foo()===42}catch{return!1}})(),h.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(l,i,a){return Y(l,i,a)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(l,i,a){return(function(c,s,d){return R(c),c<=0?U(c):s!==void 0?typeof d=="string"?U(c).fill(s,d):U(c).fill(s):U(c)})(l,i,a)},h.allocUnsafe=function(l){return A(l)},h.allocUnsafeSlow=function(l){return A(l)},h.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==h.prototype},h.compare=function(l,i){if(At(l,Uint8Array)&&(l=h.from(l,l.offset,l.byteLength)),At(i,Uint8Array)&&(i=h.from(i,i.offset,i.byteLength)),!h.isBuffer(l)||!h.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===i)return 0;let a=l.length,c=i.length;for(let s=0,d=Math.min(a,c);s<d;++s)if(l[s]!==i[s]){a=l[s],c=i[s];break}return a<c?-1:c<a?1:0},h.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(l,i){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return h.alloc(0);let a;if(i===void 0)for(i=0,a=0;a<l.length;++a)i+=l[a].length;const c=h.allocUnsafe(i);let s=0;for(a=0;a<l.length;++a){let d=l[a];if(At(d,Uint8Array))s+d.length>c.length?(h.isBuffer(d)||(d=h.from(d)),d.copy(c,s)):Uint8Array.prototype.set.call(c,d,s);else{if(!h.isBuffer(d))throw new TypeError('"list" argument must be an Array of Buffers');d.copy(c,s)}s+=d.length}return c},h.byteLength=X,h.prototype._isBuffer=!0,h.prototype.swap16=function(){const l=this.length;if(l%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;i<l;i+=2)I(this,i,i+1);return this},h.prototype.swap32=function(){const l=this.length;if(l%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let i=0;i<l;i+=4)I(this,i,i+3),I(this,i+1,i+2);return this},h.prototype.swap64=function(){const l=this.length;if(l%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let i=0;i<l;i+=8)I(this,i,i+7),I(this,i+1,i+6),I(this,i+2,i+5),I(this,i+3,i+4);return this},h.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?Kt(this,0,l):P.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(l){if(!h.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l||h.compare(this,l)===0},h.prototype.inspect=function(){let l="";const i=p.INSPECT_MAX_BYTES;return l=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(l+=" ... "),"<Buffer "+l+">"},b&&(h.prototype[b]=h.prototype.inspect),h.prototype.compare=function(l,i,a,c,s){if(At(l,Uint8Array)&&(l=h.from(l,l.offset,l.byteLength)),!h.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(i===void 0&&(i=0),a===void 0&&(a=l?l.length:0),c===void 0&&(c=0),s===void 0&&(s=this.length),i<0||a>l.length||c<0||s>this.length)throw new RangeError("out of range index");if(c>=s&&i>=a)return 0;if(c>=s)return-1;if(i>=a)return 1;if(this===l)return 0;let d=(s>>>=0)-(c>>>=0),v=(a>>>=0)-(i>>>=0);const B=Math.min(d,v),O=this.slice(c,s),z=l.slice(i,a);for(let D=0;D<B;++D)if(O[D]!==z[D]){d=O[D],v=z[D];break}return d<v?-1:v<d?1:0},h.prototype.includes=function(l,i,a){return this.indexOf(l,i,a)!==-1},h.prototype.indexOf=function(l,i,a){return ut(this,l,i,a,!0)},h.prototype.lastIndexOf=function(l,i,a){return ut(this,l,i,a,!1)},h.prototype.write=function(l,i,a,c){if(i===void 0)c="utf8",a=this.length,i=0;else if(a===void 0&&typeof i=="string")c=i,a=this.length,i=0;else{if(!isFinite(i))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");i>>>=0,isFinite(a)?(a>>>=0,c===void 0&&(c="utf8")):(c=a,a=void 0)}const s=this.length-i;if((a===void 0||a>s)&&(a=s),l.length>0&&(a<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");let d=!1;for(;;)switch(c){case"hex":return Ht(this,l,i,a);case"utf8":case"utf-8":return gt(this,l,i,a);case"ascii":case"latin1":case"binary":return jt(this,l,i,a);case"base64":return pt(this,l,i,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt(this,l,i,a);default:if(d)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),d=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const ne=4096;function He(l,i,a){let c="";a=Math.min(l.length,a);for(let s=i;s<a;++s)c+=String.fromCharCode(127&l[s]);return c}function Ee(l,i,a){let c="";a=Math.min(l.length,a);for(let s=i;s<a;++s)c+=String.fromCharCode(l[s]);return c}function Jt(l,i,a){const c=l.length;(!i||i<0)&&(i=0),(!a||a<0||a>c)&&(a=c);let s="";for(let d=i;d<a;++d)s+=rn[l[d]];return s}function we(l,i,a){const c=l.slice(i,a);let s="";for(let d=0;d<c.length-1;d+=2)s+=String.fromCharCode(c[d]+256*c[d+1]);return s}function tt(l,i,a){if(l%1!=0||l<0)throw new RangeError("offset is not uint");if(l+i>a)throw new RangeError("Trying to access beyond buffer length")}function lt(l,i,a,c,s,d){if(!h.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>s||i<d)throw new RangeError('"value" argument is out of bounds');if(a+c>l.length)throw new RangeError("Index out of range")}function q(l,i,a,c,s){it(i,c,s,l,a,7);let d=Number(i&BigInt(4294967295));l[a++]=d,d>>=8,l[a++]=d,d>>=8,l[a++]=d,d>>=8,l[a++]=d;let v=Number(i>>BigInt(32)&BigInt(4294967295));return l[a++]=v,v>>=8,l[a++]=v,v>>=8,l[a++]=v,v>>=8,l[a++]=v,a}function W(l,i,a,c,s){it(i,c,s,l,a,7);let d=Number(i&BigInt(4294967295));l[a+7]=d,d>>=8,l[a+6]=d,d>>=8,l[a+5]=d,d>>=8,l[a+4]=d;let v=Number(i>>BigInt(32)&BigInt(4294967295));return l[a+3]=v,v>>=8,l[a+2]=v,v>>=8,l[a+1]=v,v>>=8,l[a]=v,a+8}function rt(l,i,a,c,s,d){if(a+c>l.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function Tt(l,i,a,c,s){return i=+i,a>>>=0,s||rt(l,0,a,4),y.write(l,i,a,c,23,4),a+4}function _(l,i,a,c,s){return i=+i,a>>>=0,s||rt(l,0,a,8),y.write(l,i,a,c,52,8),a+8}h.prototype.slice=function(l,i){const a=this.length;(l=~~l)<0?(l+=a)<0&&(l=0):l>a&&(l=a),(i=i===void 0?a:~~i)<0?(i+=a)<0&&(i=0):i>a&&(i=a),i<l&&(i=l);const c=this.subarray(l,i);return Object.setPrototypeOf(c,h.prototype),c},h.prototype.readUintLE=h.prototype.readUIntLE=function(l,i,a){l>>>=0,i>>>=0,a||tt(l,i,this.length);let c=this[l],s=1,d=0;for(;++d<i&&(s*=256);)c+=this[l+d]*s;return c},h.prototype.readUintBE=h.prototype.readUIntBE=function(l,i,a){l>>>=0,i>>>=0,a||tt(l,i,this.length);let c=this[l+--i],s=1;for(;i>0&&(s*=256);)c+=this[l+--i]*s;return c},h.prototype.readUint8=h.prototype.readUInt8=function(l,i){return l>>>=0,i||tt(l,1,this.length),this[l]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(l,i){return l>>>=0,i||tt(l,2,this.length),this[l]|this[l+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(l,i){return l>>>=0,i||tt(l,2,this.length),this[l]<<8|this[l+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(l,i){return l>>>=0,i||tt(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+16777216*this[l+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(l,i){return l>>>=0,i||tt(l,4,this.length),16777216*this[l]+(this[l+1]<<16|this[l+2]<<8|this[l+3])},h.prototype.readBigUInt64LE=Rt((function(l){ot(l>>>=0,"offset");const i=this[l],a=this[l+7];i!==void 0&&a!==void 0||nt(l,this.length-8);const c=i+256*this[++l]+65536*this[++l]+this[++l]*2**24,s=this[++l]+256*this[++l]+65536*this[++l]+a*2**24;return BigInt(c)+(BigInt(s)<<BigInt(32))})),h.prototype.readBigUInt64BE=Rt((function(l){ot(l>>>=0,"offset");const i=this[l],a=this[l+7];i!==void 0&&a!==void 0||nt(l,this.length-8);const c=i*2**24+65536*this[++l]+256*this[++l]+this[++l],s=this[++l]*2**24+65536*this[++l]+256*this[++l]+a;return(BigInt(c)<<BigInt(32))+BigInt(s)})),h.prototype.readIntLE=function(l,i,a){l>>>=0,i>>>=0,a||tt(l,i,this.length);let c=this[l],s=1,d=0;for(;++d<i&&(s*=256);)c+=this[l+d]*s;return s*=128,c>=s&&(c-=Math.pow(2,8*i)),c},h.prototype.readIntBE=function(l,i,a){l>>>=0,i>>>=0,a||tt(l,i,this.length);let c=i,s=1,d=this[l+--c];for(;c>0&&(s*=256);)d+=this[l+--c]*s;return s*=128,d>=s&&(d-=Math.pow(2,8*i)),d},h.prototype.readInt8=function(l,i){return l>>>=0,i||tt(l,1,this.length),128&this[l]?-1*(255-this[l]+1):this[l]},h.prototype.readInt16LE=function(l,i){l>>>=0,i||tt(l,2,this.length);const a=this[l]|this[l+1]<<8;return 32768&a?4294901760|a:a},h.prototype.readInt16BE=function(l,i){l>>>=0,i||tt(l,2,this.length);const a=this[l+1]|this[l]<<8;return 32768&a?4294901760|a:a},h.prototype.readInt32LE=function(l,i){return l>>>=0,i||tt(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},h.prototype.readInt32BE=function(l,i){return l>>>=0,i||tt(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},h.prototype.readBigInt64LE=Rt((function(l){ot(l>>>=0,"offset");const i=this[l],a=this[l+7];i!==void 0&&a!==void 0||nt(l,this.length-8);const c=this[l+4]+256*this[l+5]+65536*this[l+6]+(a<<24);return(BigInt(c)<<BigInt(32))+BigInt(i+256*this[++l]+65536*this[++l]+this[++l]*2**24)})),h.prototype.readBigInt64BE=Rt((function(l){ot(l>>>=0,"offset");const i=this[l],a=this[l+7];i!==void 0&&a!==void 0||nt(l,this.length-8);const c=(i<<24)+65536*this[++l]+256*this[++l]+this[++l];return(BigInt(c)<<BigInt(32))+BigInt(this[++l]*2**24+65536*this[++l]+256*this[++l]+a)})),h.prototype.readFloatLE=function(l,i){return l>>>=0,i||tt(l,4,this.length),y.read(this,l,!0,23,4)},h.prototype.readFloatBE=function(l,i){return l>>>=0,i||tt(l,4,this.length),y.read(this,l,!1,23,4)},h.prototype.readDoubleLE=function(l,i){return l>>>=0,i||tt(l,8,this.length),y.read(this,l,!0,52,8)},h.prototype.readDoubleBE=function(l,i){return l>>>=0,i||tt(l,8,this.length),y.read(this,l,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(l,i,a,c){l=+l,i>>>=0,a>>>=0,c||lt(this,l,i,a,Math.pow(2,8*a)-1,0);let s=1,d=0;for(this[i]=255&l;++d<a&&(s*=256);)this[i+d]=l/s&255;return i+a},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(l,i,a,c){l=+l,i>>>=0,a>>>=0,c||lt(this,l,i,a,Math.pow(2,8*a)-1,0);let s=a-1,d=1;for(this[i+s]=255&l;--s>=0&&(d*=256);)this[i+s]=l/d&255;return i+a},h.prototype.writeUint8=h.prototype.writeUInt8=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,1,255,0),this[i]=255&l,i+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,2,65535,0),this[i]=255&l,this[i+1]=l>>>8,i+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,2,65535,0),this[i]=l>>>8,this[i+1]=255&l,i+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,4,4294967295,0),this[i+3]=l>>>24,this[i+2]=l>>>16,this[i+1]=l>>>8,this[i]=255&l,i+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,4,4294967295,0),this[i]=l>>>24,this[i+1]=l>>>16,this[i+2]=l>>>8,this[i+3]=255&l,i+4},h.prototype.writeBigUInt64LE=Rt((function(l,i=0){return q(this,l,i,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=Rt((function(l,i=0){return W(this,l,i,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(l,i,a,c){if(l=+l,i>>>=0,!c){const B=Math.pow(2,8*a-1);lt(this,l,i,a,B-1,-B)}let s=0,d=1,v=0;for(this[i]=255&l;++s<a&&(d*=256);)l<0&&v===0&&this[i+s-1]!==0&&(v=1),this[i+s]=(l/d|0)-v&255;return i+a},h.prototype.writeIntBE=function(l,i,a,c){if(l=+l,i>>>=0,!c){const B=Math.pow(2,8*a-1);lt(this,l,i,a,B-1,-B)}let s=a-1,d=1,v=0;for(this[i+s]=255&l;--s>=0&&(d*=256);)l<0&&v===0&&this[i+s+1]!==0&&(v=1),this[i+s]=(l/d|0)-v&255;return i+a},h.prototype.writeInt8=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,1,127,-128),l<0&&(l=255+l+1),this[i]=255&l,i+1},h.prototype.writeInt16LE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,2,32767,-32768),this[i]=255&l,this[i+1]=l>>>8,i+2},h.prototype.writeInt16BE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,2,32767,-32768),this[i]=l>>>8,this[i+1]=255&l,i+2},h.prototype.writeInt32LE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,4,2147483647,-2147483648),this[i]=255&l,this[i+1]=l>>>8,this[i+2]=l>>>16,this[i+3]=l>>>24,i+4},h.prototype.writeInt32BE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[i]=l>>>24,this[i+1]=l>>>16,this[i+2]=l>>>8,this[i+3]=255&l,i+4},h.prototype.writeBigInt64LE=Rt((function(l,i=0){return q(this,l,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=Rt((function(l,i=0){return W(this,l,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(l,i,a){return Tt(this,l,i,!0,a)},h.prototype.writeFloatBE=function(l,i,a){return Tt(this,l,i,!1,a)},h.prototype.writeDoubleLE=function(l,i,a){return _(this,l,i,!0,a)},h.prototype.writeDoubleBE=function(l,i,a){return _(this,l,i,!1,a)},h.prototype.copy=function(l,i,a,c){if(!h.isBuffer(l))throw new TypeError("argument should be a Buffer");if(a||(a=0),c||c===0||(c=this.length),i>=l.length&&(i=l.length),i||(i=0),c>0&&c<a&&(c=a),c===a||l.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),l.length-i<c-a&&(c=l.length-i+a);const s=c-a;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,a,c):Uint8Array.prototype.set.call(l,this.subarray(a,c),i),s},h.prototype.fill=function(l,i,a,c){if(typeof l=="string"){if(typeof i=="string"?(c=i,i=0,a=this.length):typeof a=="string"&&(c=a,a=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!h.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(l.length===1){const d=l.charCodeAt(0);(c==="utf8"&&d<128||c==="latin1")&&(l=d)}}else typeof l=="number"?l&=255:typeof l=="boolean"&&(l=Number(l));if(i<0||this.length<i||this.length<a)throw new RangeError("Out of range index");if(a<=i)return this;let s;if(i>>>=0,a=a===void 0?this.length:a>>>0,l||(l=0),typeof l=="number")for(s=i;s<a;++s)this[s]=l;else{const d=h.isBuffer(l)?l:h.from(l,c),v=d.length;if(v===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(s=0;s<a-i;++s)this[s+i]=d[s%v]}return this};const j={};function F(l,i,a){j[l]=class extends a{constructor(){super(),Object.defineProperty(this,"message",{value:i.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${l}]`,this.stack,delete this.name}get code(){return l}set code(c){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:c,writable:!0})}toString(){return`${this.name} [${l}]: ${this.message}`}}}function $(l){let i="",a=l.length;const c=l[0]==="-"?1:0;for(;a>=c+4;a-=3)i=`_${l.slice(a-3,a)}${i}`;return`${l.slice(0,a)}${i}`}function it(l,i,a,c,s,d){if(l>a||l<i){const v=typeof i=="bigint"?"n":"";let B;throw B=i===0||i===BigInt(0)?`>= 0${v} and < 2${v} ** ${8*(d+1)}${v}`:`>= -(2${v} ** ${8*(d+1)-1}${v}) and < 2 ** ${8*(d+1)-1}${v}`,new j.ERR_OUT_OF_RANGE("value",B,l)}(function(v,B,O){ot(B,"offset"),v[B]!==void 0&&v[B+O]!==void 0||nt(B,v.length-(O+1))})(c,s,d)}function ot(l,i){if(typeof l!="number")throw new j.ERR_INVALID_ARG_TYPE(i,"number",l)}function nt(l,i,a){throw Math.floor(l)!==l?(ot(l,a),new j.ERR_OUT_OF_RANGE("offset","an integer",l)):i<0?new j.ERR_BUFFER_OUT_OF_BOUNDS:new j.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${i}`,l)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(l){return l?`${l} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(l,i){return`The "${l}" argument must be of type number. Received type ${typeof i}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(l,i,a){let c=`The value of "${l}" is out of range.`,s=a;return Number.isInteger(a)&&Math.abs(a)>2**32?s=$(String(a)):typeof a=="bigint"&&(s=String(a),(a>BigInt(2)**BigInt(32)||a<-(BigInt(2)**BigInt(32)))&&(s=$(s)),s+="n"),c+=` It must be ${i}. Received ${s}`,c}),RangeError);const le=/[^+/0-9A-Za-z-_]/g;function Ut(l,i){let a;i=i||1/0;const c=l.length;let s=null;const d=[];for(let v=0;v<c;++v){if(a=l.charCodeAt(v),a>55295&&a<57344){if(!s){if(a>56319){(i-=3)>-1&&d.push(239,191,189);continue}if(v+1===c){(i-=3)>-1&&d.push(239,191,189);continue}s=a;continue}if(a<56320){(i-=3)>-1&&d.push(239,191,189),s=a;continue}a=65536+(s-55296<<10|a-56320)}else s&&(i-=3)>-1&&d.push(239,191,189);if(s=null,a<128){if((i-=1)<0)break;d.push(a)}else if(a<2048){if((i-=2)<0)break;d.push(a>>6|192,63&a|128)}else if(a<65536){if((i-=3)<0)break;d.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;d.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return d}function he(l){return o.toByteArray((function(i){if((i=(i=i.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i})(l))}function fe(l,i,a,c){let s;for(s=0;s<c&&!(s+a>=i.length||s>=l.length);++s)i[s+a]=l[s];return s}function At(l,i){return l instanceof i||l!=null&&l.constructor!=null&&l.constructor.name!=null&&l.constructor.name===i.name}function Se(l){return l!=l}const rn=(function(){const l="0123456789abcdef",i=new Array(256);for(let a=0;a<16;++a){const c=16*a;for(let s=0;s<16;++s)i[c+s]=l[a]+l[s]}return i})();function Rt(l){return typeof BigInt>"u"?Fn:l}function Fn(){throw new Error("BigInt not supported")}})(L0)),L0);const rc=new TextEncoder,Ma=new TextDecoder,J0=bc;function bc(p,o=0){let y;if(p===void 0||typeof p!="string"||typeof o!="number")throw TypeError("invlaid init variablie type name. ");return(p=p.toUpperCase()).includes("8")?(y=Vt.Buffer.alloc(1),p.includes("I")?y.writeInt8(o):y.writeUint8(o)):p.includes("16")?(y=Vt.Buffer.alloc(2),p.includes("I")?p.includes("L")?y.writeInt16LE(o):y.writeInt16BE(o):p.includes("L")?y.writeUint16LE(o):y.writeUint16BE(o)):p.includes("32")?(y=Vt.Buffer.alloc(4),p.includes("I")?p.includes("L")?y.writeInt32LE(o):y.writeInt32BE(o):p.includes("L")?y.writeUint32LE(o):y.writeUint32BE(o)):p.includes("F")?(y=Vt.Buffer.alloc(4),p.includes("L")?y.writeFloatLE(o):y.writeFloatBE(o)):p.includes("N")?y=Vt.Buffer.from(String(o)):console.log(`invalid type: ${p} or initvalue: ${o}`),y}const cc=k0;function k0(p,o,y){let b,E="B";if(typeof o=="number")typeof y=="number"?(b=Vt.Buffer.alloc(o),y!==0&&b.fill(y),E="B"):(b=Vt.Buffer.from(String(o)),E="N");else if(typeof o=="string"&&typeof y=="number")E=o.toUpperCase(),b=bc(o,y);else if(typeof o=="string"&&y===void 0)b=Vt.Buffer.from(o),E="S";else if(o instanceof Uint8Array&&y===void 0)b=o instanceof Vt.Buffer?o:Vt.Buffer.from(o);else if(o instanceof ArrayBuffer&&y===void 0)b=Vt.Buffer.from(o);else if(ArrayBuffer.isView(o))b=Vt.Buffer.from(o.buffer,o.byteOffset,o.byteLength);else if(typeof o=="object"&&y===void 0)b=Vt.Buffer.from(JSON.stringify(o)),E="O";else{if(typeof o!="boolean"||y!==void 0)throw TypeError("invalid meta buffer type");{const U=o?1:0;b=Vt.Buffer.from([U]),E="!"}}return typeof p=="string"&&p.includes("#")&&(p=""),[p,E,b]}const Yd=I0;function I0(...p){let o=0;return p.map((y=>{const b=o++;return typeof y=="number"?cc(b,"N",y):cc(b,y)}))}function mc(p){if((p=p.toUpperCase()).includes("8"))return p.includes("I")?"int8":"uint8";if(p.includes("16"))return p.includes("I")?p.includes("L")?"int16_le":"int16_be":p.includes("L")?"uint16_le":"uint16_be";if(p.includes("32"))return p.includes("I")?p.includes("L")?"int32_le":"int32_be":p.includes("L")?"uint32_le":"uint32_be";if(p.includes("F"))return p.includes("L")?"float_le":"float_be";if(p==="B")return"buffer";if(p==="S")return"string";if(p==="N")return"number";if(p==="O")return"object";if(p==="!")return"boolean";throw TypeError("invalid data type")}function nc(p,o,y,b){try{const E=mc(p);if(E=="int8")return o.readInt8(y);if(E==="uint8")return o.readUint8(y);if(E==="int16_le")return o.readInt16LE(y);if(E==="int16_be")return o.readInt16BE(y);if(E==="uint16_le")return o.readUint16LE(y);if(E==="uint16_be")return o.readUint16BE(y);if(E==="int32_le")return o.readInt32LE(y);if(E==="int32_be")return o.readInt32BE(y);if(E==="uint32_le")return o.readUint32LE(y);if(E==="uint32_be")return o.readUint32BE(y);if(E==="float_le")return o.readFloatLE(y);if(E==="float_be")return o.readFloatBE(y);if(E==="buffer")return o.subarray(y,y+b);if(E==="string"){const U=o.subarray(y,y+b);return Ma.decode(U)}if(E==="number"){const U=o.subarray(y,y+b);return Number(Ma.decode(U))}if(E==="object"){const U=o.subarray(y,y+b);return JSON.parse(Ma.decode(U))}return E==="boolean"?o.readInt8(y)===1:void 0}catch{}}function _a(...p){const o=(function(R){let A=[];return R.filter((w=>{if(!Array.isArray(w[0]))return w;A=A.concat(w)})).concat(A)})(p);let y=0;const b=[];let E,U,h=0;if(o.forEach((R=>{const[A,w,G]=R;y+=G.byteLength,(typeof A=="number"||A.length>0)&&b.push([A,w,h,G.byteLength]),h=y})),b.length>0){let R=JSON.stringify(b);E=rc.encode(R),U=E.byteLength,y=y+U+2}const Y=Vt.Buffer.alloc(y);if(h=0,o.forEach((R=>{const A=R[2];Y.set(A,h),h+=A.byteLength})),b.length>0){Y.set(E,h);const R=J0("16",U);return Y.set(R,h+U),Y}return Y}const qd=za;function za(p,o=!1){if(p===void 0)throw TypeError("Invalid data type: Undefined");if(typeof p=="string")return rc.encode(p);if(typeof p=="number")return Uint8Array.from([p]);if(p instanceof ArrayBuffer){if(o)return new Uint8Array(p);{const y=new Uint8Array(p),b=new Uint8Array(p.byteLength);return b.set(y),b}}if(ArrayBuffer.isView(p)){if(o)return new Uint8Array(p.buffer,p.byteOffset,p.byteLength);{const y=new Uint8Array(p.buffer,p.byteOffset,p.byteLength),b=new Uint8Array(p.byteLength);return b.set(y),b}}return rc.encode(JSON.stringify(p))}const Gd=vc;function vc(p,o=!1){const y=za(p,o);return o?Vt.Buffer.from(y.buffer,y.byteOffset,y.byteLength):Vt.Buffer.from(y)}const jd=$0;function $0(...p){const o=p.map((y=>vc(y)));return Vt.Buffer.concat(o)}const Qd=W0;function W0(...p){try{let o=0,y=0;const b=p.map((U=>za(U)));b.forEach((U=>{o+=U.byteLength}));const E=new Uint8Array(o);return b.forEach((U=>{E.set(U,y),y+=U.byteLength})),E}catch(o){console.log(o)}}function F0(p){return oc(p)===0?p.byteLength:p.byteLength-oc(p)-ci}function Ec(p,o){try{const y=new Uint8Array(p.buffer,p.byteOffset,p.byteLength),b=y.byteLength-o-2,E=y.subarray(b,y.byteLength-2),U=Ma.decode(E),h=JSON.parse(U);if(!Array.isArray(h)||!Array.isArray(h[0]))return;let Y=h[0];if(!Y||Y.length<3)return;const[R,A,w]=Y;return typeof A!="string"||typeof w!="number"?void 0:h}catch{}}const ci=2;function Sc(p){return p instanceof ArrayBuffer&&(p=Vt.Buffer.from(p)),p instanceof Uint8Array?p.byteLength<=ci?0:new DataView(p.buffer,p.byteOffset,p.byteLength).getUint16(p.byteLength-ci):0}function oc(p){if(p instanceof ArrayBuffer&&(p=Vt.Buffer.from(p)),p instanceof Uint8Array){const o=p.byteLength;if(o<=ci)return 0;const y=Sc(p);return y===0||y>o?0:Ec(p,y)?y:0}return 0}function D0(p){const o=F0(p);return p.subarray(0,o)}function ii(p,o=!1){p instanceof ArrayBuffer&&(p=Vt.Buffer.from(p));const y=Sc(p);if(y===0)return;let b=Ec(p,y);return b?(o&&b.forEach((E=>{E[3]==null&&(E[1].includes("8")?E[3]=1:E[1].includes("16")?E[3]=2:E[1].includes("32")||E[1].includes("F")?E[3]=4:E[1].includes("!")&&(E[3]=1)),E[4]=mc(E[1])})),b):void 0}var J=Object.freeze({__proto__:null,B8:Gd,B8pack:jd,Buffer:Vt.Buffer,MB:cc,MBA:Yd,NB:J0,TAIL_LEN:ci,U8:qd,U8pack:Qd,equal:function(p,o){if(p.byteLength!==o.byteLength)return!1;for(let y=0;y<p.byteLength;y++)if(p[y]!==o[y])return!1;return!0},getBuffer:D0,getBufferSize:F0,getMeta:ii,getMetaDetail:function(p){return ii(p,!0)},getMetaSize:oc,hex:function(p){return Array.prototype.map.call(new Uint8Array(p),(o=>("00"+o.toString(16)).slice(-2))).join("")},meta:function(...p){return ii(_a(...p))},metaBuffer:k0,metaBufferArguments:I0,metaDetail:function(...p){return ii(_a(...p),!0)},numberBuffer:bc,pack:_a,parseBuffer:vc,parseBufferThenConcat:$0,parseMetaInfo:Ec,parseTypeName:mc,parseUint8Array:za,parseUint8ThenConcat:W0,rawPack:function(...p){return D0(_a(...p))},readTail:Sc,readTypedBuffer:nc,unpack:function(p,o){const y=o||ii(p);if(!y)return;const b=Vt.Buffer.from(p),E={};let U=0;if(y.forEach((R=>{const[A,w,G,K]=R;let X=nc(w,b,G,K);X!=null&&(E[A]=X,K&&(U+=K))})),o&&b.byteLength!==U){let R=b.byteLength-U,A=nc("b",b,U,R);if(A==null)return;E.$OTHERS=A}let h=0,Y=[];for(;E[h];)Y.push(E[h++]);return Y.length>0&&(E.args=Y,E.$=E.args),E}});const On={hash:function(p){return tc(J.U8(p))},hex:function(p){return J.B8(tc(J.U8(p))).toString("hex")},base64:function(p){return J.B8(tc(J.U8(p))).toString("base64")},hmac:function(p,o){return(function(y,b){const E=new xd(y).update(b),U=E.digest();return E.clean(),U})(J.U8(p),J.U8(o))}};var C0,x0,H0,Y0={},ai={},lc={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function Xd(){return x0||(x0=1,lc.read=function(p,o,y,b,E){var U,h,Y=8*E-b-1,R=(1<<Y)-1,A=R>>1,w=-7,G=y?E-1:0,K=y?-1:1,X=p[o+G];for(G+=K,U=X&(1<<-w)-1,X>>=-w,w+=Y;w>0;U=256*U+p[o+G],G+=K,w-=8);for(h=U&(1<<-w)-1,U>>=-w,w+=b;w>0;h=256*h+p[o+G],G+=K,w-=8);if(U===0)U=1-A;else{if(U===R)return h?NaN:1/0*(X?-1:1);h+=Math.pow(2,b),U-=A}return(X?-1:1)*h*Math.pow(2,U-b)},lc.write=function(p,o,y,b,E,U){var h,Y,R,A=8*U-E-1,w=(1<<A)-1,G=w>>1,K=E===23?Math.pow(2,-24)-Math.pow(2,-77):0,X=b?0:U-1,P=b?1:-1,I=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(Y=isNaN(o)?1:0,h=w):(h=Math.floor(Math.log(o)/Math.LN2),o*(R=Math.pow(2,-h))<1&&(h--,R*=2),(o+=h+G>=1?K/R:K*Math.pow(2,1-G))*R>=2&&(h++,R/=2),h+G>=w?(Y=0,h=w):h+G>=1?(Y=(o*R-1)*Math.pow(2,E),h+=G):(Y=o*Math.pow(2,G-1)*Math.pow(2,E),h=0));E>=8;p[y+X]=255&Y,X+=P,Y/=256,E-=8);for(h=h<<E|Y,A+=E;A>0;p[y+X]=255&h,X+=P,h/=256,A-=8);p[y+X-P]|=128*I}),lc}/*!
60
+ * The buffer module from node.js, for the browser.
61
+ *
62
+ * @author Feross Aboukhadijeh <https://feross.org>
63
+ * @license MIT
64
+ */var Lt=(H0||(H0=1,(function(p){const o=(function(){if(C0)return ai;C0=1,ai.byteLength=function(B){var O=d(B),z=O[0],D=O[1];return 3*(z+D)/4-D},ai.toByteArray=function(B){var O,z,D=d(B),H=D[0],st=D[1],k=new a((function(oi,Pe,Me){return 3*(Pe+Me)/4-Me})(0,H,st)),vt=0,cn=st>0?H-4:H;for(z=0;z<cn;z+=4)O=i[B.charCodeAt(z)]<<18|i[B.charCodeAt(z+1)]<<12|i[B.charCodeAt(z+2)]<<6|i[B.charCodeAt(z+3)],k[vt++]=O>>16&255,k[vt++]=O>>8&255,k[vt++]=255&O;return st===2&&(O=i[B.charCodeAt(z)]<<2|i[B.charCodeAt(z+1)]>>4,k[vt++]=255&O),st===1&&(O=i[B.charCodeAt(z)]<<10|i[B.charCodeAt(z+1)]<<4|i[B.charCodeAt(z+2)]>>2,k[vt++]=O>>8&255,k[vt++]=255&O),k},ai.fromByteArray=function(B){for(var O,z=B.length,D=z%3,H=[],st=16383,k=0,vt=z-D;k<vt;k+=st)H.push(v(B,k,k+st>vt?vt:k+st));return D===1?(O=B[z-1],H.push(l[O>>2]+l[O<<4&63]+"==")):D===2&&(O=(B[z-2]<<8)+B[z-1],H.push(l[O>>10]+l[O>>4&63]+l[O<<2&63]+"=")),H.join("")};for(var l=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)l[s]=c[s],i[c.charCodeAt(s)]=s;function d(B){var O=B.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var z=B.indexOf("=");return z===-1&&(z=O),[z,z===O?0:4-z%4]}function v(B,O,z){for(var D,H,st=[],k=O;k<z;k+=3)D=(B[k]<<16&16711680)+(B[k+1]<<8&65280)+(255&B[k+2]),st.push(l[(H=D)>>18&63]+l[H>>12&63]+l[H>>6&63]+l[63&H]);return st.join("")}return i[45]=62,i[95]=63,ai})(),y=Xd(),b=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;p.Buffer=h,p.SlowBuffer=function(l){return+l!=l&&(l=0),h.alloc(+l)},p.INSPECT_MAX_BYTES=50;const E=2147483647;function U(l){if(l>E)throw new RangeError('The value "'+l+'" is invalid for option "size"');const i=new Uint8Array(l);return Object.setPrototypeOf(i,h.prototype),i}function h(l,i,a){if(typeof l=="number"){if(typeof i=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A(l)}return Y(l,i,a)}function Y(l,i,a){if(typeof l=="string")return(function(d,v){if(typeof v=="string"&&v!==""||(v="utf8"),!h.isEncoding(v))throw new TypeError("Unknown encoding: "+v);const B=0|X(d,v);let O=U(B);const z=O.write(d,v);return z!==B&&(O=O.slice(0,z)),O})(l,i);if(ArrayBuffer.isView(l))return(function(d){if(At(d,Uint8Array)){const v=new Uint8Array(d);return G(v.buffer,v.byteOffset,v.byteLength)}return w(d)})(l);if(l==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l);if(At(l,ArrayBuffer)||l&&At(l.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(At(l,SharedArrayBuffer)||l&&At(l.buffer,SharedArrayBuffer)))return G(l,i,a);if(typeof l=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const c=l.valueOf&&l.valueOf();if(c!=null&&c!==l)return h.from(c,i,a);const s=(function(d){if(h.isBuffer(d)){const v=0|K(d.length),B=U(v);return B.length===0||d.copy(B,0,0,v),B}return d.length!==void 0?typeof d.length!="number"||Se(d.length)?U(0):w(d):d.type==="Buffer"&&Array.isArray(d.data)?w(d.data):void 0})(l);if(s)return s;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof l[Symbol.toPrimitive]=="function")return h.from(l[Symbol.toPrimitive]("string"),i,a);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof l)}function R(l){if(typeof l!="number")throw new TypeError('"size" argument must be of type number');if(l<0)throw new RangeError('The value "'+l+'" is invalid for option "size"')}function A(l){return R(l),U(l<0?0:0|K(l))}function w(l){const i=l.length<0?0:0|K(l.length),a=U(i);for(let c=0;c<i;c+=1)a[c]=255&l[c];return a}function G(l,i,a){if(i<0||l.byteLength<i)throw new RangeError('"offset" is outside of buffer bounds');if(l.byteLength<i+(a||0))throw new RangeError('"length" is outside of buffer bounds');let c;return c=i===void 0&&a===void 0?new Uint8Array(l):a===void 0?new Uint8Array(l,i):new Uint8Array(l,i,a),Object.setPrototypeOf(c,h.prototype),c}function K(l){if(l>=E)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+E.toString(16)+" bytes");return 0|l}function X(l,i){if(h.isBuffer(l))return l.length;if(ArrayBuffer.isView(l)||At(l,ArrayBuffer))return l.byteLength;if(typeof l!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof l);const a=l.length,c=arguments.length>2&&arguments[2]===!0;if(!c&&a===0)return 0;let s=!1;for(;;)switch(i){case"ascii":case"latin1":case"binary":return a;case"utf8":case"utf-8":return Ut(l).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*a;case"hex":return a>>>1;case"base64":return he(l).length;default:if(s)return c?-1:Ut(l).length;i=(""+i).toLowerCase(),s=!0}}function P(l,i,a){let c=!1;if((i===void 0||i<0)&&(i=0),i>this.length||((a===void 0||a>this.length)&&(a=this.length),a<=0)||(a>>>=0)<=(i>>>=0))return"";for(l||(l="utf8");;)switch(l){case"hex":return Jt(this,i,a);case"utf8":case"utf-8":return Kt(this,i,a);case"ascii":return He(this,i,a);case"latin1":case"binary":return Ee(this,i,a);case"base64":return ee(this,i,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return we(this,i,a);default:if(c)throw new TypeError("Unknown encoding: "+l);l=(l+"").toLowerCase(),c=!0}}function I(l,i,a){const c=l[i];l[i]=l[a],l[a]=c}function ut(l,i,a,c,s){if(l.length===0)return-1;if(typeof a=="string"?(c=a,a=0):a>2147483647?a=2147483647:a<-2147483648&&(a=-2147483648),Se(a=+a)&&(a=s?0:l.length-1),a<0&&(a=l.length+a),a>=l.length){if(s)return-1;a=l.length-1}else if(a<0){if(!s)return-1;a=0}if(typeof i=="string"&&(i=h.from(i,c)),h.isBuffer(i))return i.length===0?-1:ft(l,i,a,c,s);if(typeof i=="number")return i&=255,typeof Uint8Array.prototype.indexOf=="function"?s?Uint8Array.prototype.indexOf.call(l,i,a):Uint8Array.prototype.lastIndexOf.call(l,i,a):ft(l,[i],a,c,s);throw new TypeError("val must be string, number or Buffer")}function ft(l,i,a,c,s){let d,v=1,B=l.length,O=i.length;if(c!==void 0&&((c=String(c).toLowerCase())==="ucs2"||c==="ucs-2"||c==="utf16le"||c==="utf-16le")){if(l.length<2||i.length<2)return-1;v=2,B/=2,O/=2,a/=2}function z(D,H){return v===1?D[H]:D.readUInt16BE(H*v)}if(s){let D=-1;for(d=a;d<B;d++)if(z(l,d)===z(i,D===-1?0:d-D)){if(D===-1&&(D=d),d-D+1===O)return D*v}else D!==-1&&(d-=d-D),D=-1}else for(a+O>B&&(a=B-O),d=a;d>=0;d--){let D=!0;for(let H=0;H<O;H++)if(z(l,d+H)!==z(i,H)){D=!1;break}if(D)return d}return-1}function Ht(l,i,a,c){a=Number(a)||0;const s=l.length-a;c?(c=Number(c))>s&&(c=s):c=s;const d=i.length;let v;for(c>d/2&&(c=d/2),v=0;v<c;++v){const B=parseInt(i.substr(2*v,2),16);if(Se(B))return v;l[a+v]=B}return v}function gt(l,i,a,c){return fe(Ut(i,l.length-a),l,a,c)}function jt(l,i,a,c){return fe((function(s){const d=[];for(let v=0;v<s.length;++v)d.push(255&s.charCodeAt(v));return d})(i),l,a,c)}function pt(l,i,a,c){return fe(he(i),l,a,c)}function Zt(l,i,a,c){return fe((function(s,d){let v,B,O;const z=[];for(let D=0;D<s.length&&!((d-=2)<0);++D)v=s.charCodeAt(D),B=v>>8,O=v%256,z.push(O),z.push(B);return z})(i,l.length-a),l,a,c)}function ee(l,i,a){return i===0&&a===l.length?o.fromByteArray(l):o.fromByteArray(l.slice(i,a))}function Kt(l,i,a){a=Math.min(l.length,a);const c=[];let s=i;for(;s<a;){const d=l[s];let v=null,B=d>239?4:d>223?3:d>191?2:1;if(s+B<=a){let O,z,D,H;switch(B){case 1:d<128&&(v=d);break;case 2:O=l[s+1],(192&O)==128&&(H=(31&d)<<6|63&O,H>127&&(v=H));break;case 3:O=l[s+1],z=l[s+2],(192&O)==128&&(192&z)==128&&(H=(15&d)<<12|(63&O)<<6|63&z,H>2047&&(H<55296||H>57343)&&(v=H));break;case 4:O=l[s+1],z=l[s+2],D=l[s+3],(192&O)==128&&(192&z)==128&&(192&D)==128&&(H=(15&d)<<18|(63&O)<<12|(63&z)<<6|63&D,H>65535&&H<1114112&&(v=H))}}v===null?(v=65533,B=1):v>65535&&(v-=65536,c.push(v>>>10&1023|55296),v=56320|1023&v),c.push(v),s+=B}return(function(d){const v=d.length;if(v<=ne)return String.fromCharCode.apply(String,d);let B="",O=0;for(;O<v;)B+=String.fromCharCode.apply(String,d.slice(O,O+=ne));return B})(c)}p.kMaxLength=E,h.TYPED_ARRAY_SUPPORT=(function(){try{const l=new Uint8Array(1),i={foo:function(){return 42}};return Object.setPrototypeOf(i,Uint8Array.prototype),Object.setPrototypeOf(l,i),l.foo()===42}catch{return!1}})(),h.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}),h.poolSize=8192,h.from=function(l,i,a){return Y(l,i,a)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(l,i,a){return(function(c,s,d){return R(c),c<=0?U(c):s!==void 0?typeof d=="string"?U(c).fill(s,d):U(c).fill(s):U(c)})(l,i,a)},h.allocUnsafe=function(l){return A(l)},h.allocUnsafeSlow=function(l){return A(l)},h.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==h.prototype},h.compare=function(l,i){if(At(l,Uint8Array)&&(l=h.from(l,l.offset,l.byteLength)),At(i,Uint8Array)&&(i=h.from(i,i.offset,i.byteLength)),!h.isBuffer(l)||!h.isBuffer(i))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===i)return 0;let a=l.length,c=i.length;for(let s=0,d=Math.min(a,c);s<d;++s)if(l[s]!==i[s]){a=l[s],c=i[s];break}return a<c?-1:c<a?1:0},h.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(l,i){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return h.alloc(0);let a;if(i===void 0)for(i=0,a=0;a<l.length;++a)i+=l[a].length;const c=h.allocUnsafe(i);let s=0;for(a=0;a<l.length;++a){let d=l[a];if(At(d,Uint8Array))s+d.length>c.length?(h.isBuffer(d)||(d=h.from(d)),d.copy(c,s)):Uint8Array.prototype.set.call(c,d,s);else{if(!h.isBuffer(d))throw new TypeError('"list" argument must be an Array of Buffers');d.copy(c,s)}s+=d.length}return c},h.byteLength=X,h.prototype._isBuffer=!0,h.prototype.swap16=function(){const l=this.length;if(l%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let i=0;i<l;i+=2)I(this,i,i+1);return this},h.prototype.swap32=function(){const l=this.length;if(l%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let i=0;i<l;i+=4)I(this,i,i+3),I(this,i+1,i+2);return this},h.prototype.swap64=function(){const l=this.length;if(l%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let i=0;i<l;i+=8)I(this,i,i+7),I(this,i+1,i+6),I(this,i+2,i+5),I(this,i+3,i+4);return this},h.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?Kt(this,0,l):P.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(l){if(!h.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l||h.compare(this,l)===0},h.prototype.inspect=function(){let l="";const i=p.INSPECT_MAX_BYTES;return l=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(l+=" ... "),"<Buffer "+l+">"},b&&(h.prototype[b]=h.prototype.inspect),h.prototype.compare=function(l,i,a,c,s){if(At(l,Uint8Array)&&(l=h.from(l,l.offset,l.byteLength)),!h.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(i===void 0&&(i=0),a===void 0&&(a=l?l.length:0),c===void 0&&(c=0),s===void 0&&(s=this.length),i<0||a>l.length||c<0||s>this.length)throw new RangeError("out of range index");if(c>=s&&i>=a)return 0;if(c>=s)return-1;if(i>=a)return 1;if(this===l)return 0;let d=(s>>>=0)-(c>>>=0),v=(a>>>=0)-(i>>>=0);const B=Math.min(d,v),O=this.slice(c,s),z=l.slice(i,a);for(let D=0;D<B;++D)if(O[D]!==z[D]){d=O[D],v=z[D];break}return d<v?-1:v<d?1:0},h.prototype.includes=function(l,i,a){return this.indexOf(l,i,a)!==-1},h.prototype.indexOf=function(l,i,a){return ut(this,l,i,a,!0)},h.prototype.lastIndexOf=function(l,i,a){return ut(this,l,i,a,!1)},h.prototype.write=function(l,i,a,c){if(i===void 0)c="utf8",a=this.length,i=0;else if(a===void 0&&typeof i=="string")c=i,a=this.length,i=0;else{if(!isFinite(i))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");i>>>=0,isFinite(a)?(a>>>=0,c===void 0&&(c="utf8")):(c=a,a=void 0)}const s=this.length-i;if((a===void 0||a>s)&&(a=s),l.length>0&&(a<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");c||(c="utf8");let d=!1;for(;;)switch(c){case"hex":return Ht(this,l,i,a);case"utf8":case"utf-8":return gt(this,l,i,a);case"ascii":case"latin1":case"binary":return jt(this,l,i,a);case"base64":return pt(this,l,i,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt(this,l,i,a);default:if(d)throw new TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),d=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const ne=4096;function He(l,i,a){let c="";a=Math.min(l.length,a);for(let s=i;s<a;++s)c+=String.fromCharCode(127&l[s]);return c}function Ee(l,i,a){let c="";a=Math.min(l.length,a);for(let s=i;s<a;++s)c+=String.fromCharCode(l[s]);return c}function Jt(l,i,a){const c=l.length;(!i||i<0)&&(i=0),(!a||a<0||a>c)&&(a=c);let s="";for(let d=i;d<a;++d)s+=rn[l[d]];return s}function we(l,i,a){const c=l.slice(i,a);let s="";for(let d=0;d<c.length-1;d+=2)s+=String.fromCharCode(c[d]+256*c[d+1]);return s}function tt(l,i,a){if(l%1!=0||l<0)throw new RangeError("offset is not uint");if(l+i>a)throw new RangeError("Trying to access beyond buffer length")}function lt(l,i,a,c,s,d){if(!h.isBuffer(l))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>s||i<d)throw new RangeError('"value" argument is out of bounds');if(a+c>l.length)throw new RangeError("Index out of range")}function q(l,i,a,c,s){it(i,c,s,l,a,7);let d=Number(i&BigInt(4294967295));l[a++]=d,d>>=8,l[a++]=d,d>>=8,l[a++]=d,d>>=8,l[a++]=d;let v=Number(i>>BigInt(32)&BigInt(4294967295));return l[a++]=v,v>>=8,l[a++]=v,v>>=8,l[a++]=v,v>>=8,l[a++]=v,a}function W(l,i,a,c,s){it(i,c,s,l,a,7);let d=Number(i&BigInt(4294967295));l[a+7]=d,d>>=8,l[a+6]=d,d>>=8,l[a+5]=d,d>>=8,l[a+4]=d;let v=Number(i>>BigInt(32)&BigInt(4294967295));return l[a+3]=v,v>>=8,l[a+2]=v,v>>=8,l[a+1]=v,v>>=8,l[a]=v,a+8}function rt(l,i,a,c,s,d){if(a+c>l.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("Index out of range")}function Tt(l,i,a,c,s){return i=+i,a>>>=0,s||rt(l,0,a,4),y.write(l,i,a,c,23,4),a+4}function _(l,i,a,c,s){return i=+i,a>>>=0,s||rt(l,0,a,8),y.write(l,i,a,c,52,8),a+8}h.prototype.slice=function(l,i){const a=this.length;(l=~~l)<0?(l+=a)<0&&(l=0):l>a&&(l=a),(i=i===void 0?a:~~i)<0?(i+=a)<0&&(i=0):i>a&&(i=a),i<l&&(i=l);const c=this.subarray(l,i);return Object.setPrototypeOf(c,h.prototype),c},h.prototype.readUintLE=h.prototype.readUIntLE=function(l,i,a){l>>>=0,i>>>=0,a||tt(l,i,this.length);let c=this[l],s=1,d=0;for(;++d<i&&(s*=256);)c+=this[l+d]*s;return c},h.prototype.readUintBE=h.prototype.readUIntBE=function(l,i,a){l>>>=0,i>>>=0,a||tt(l,i,this.length);let c=this[l+--i],s=1;for(;i>0&&(s*=256);)c+=this[l+--i]*s;return c},h.prototype.readUint8=h.prototype.readUInt8=function(l,i){return l>>>=0,i||tt(l,1,this.length),this[l]},h.prototype.readUint16LE=h.prototype.readUInt16LE=function(l,i){return l>>>=0,i||tt(l,2,this.length),this[l]|this[l+1]<<8},h.prototype.readUint16BE=h.prototype.readUInt16BE=function(l,i){return l>>>=0,i||tt(l,2,this.length),this[l]<<8|this[l+1]},h.prototype.readUint32LE=h.prototype.readUInt32LE=function(l,i){return l>>>=0,i||tt(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+16777216*this[l+3]},h.prototype.readUint32BE=h.prototype.readUInt32BE=function(l,i){return l>>>=0,i||tt(l,4,this.length),16777216*this[l]+(this[l+1]<<16|this[l+2]<<8|this[l+3])},h.prototype.readBigUInt64LE=Rt((function(l){ot(l>>>=0,"offset");const i=this[l],a=this[l+7];i!==void 0&&a!==void 0||nt(l,this.length-8);const c=i+256*this[++l]+65536*this[++l]+this[++l]*2**24,s=this[++l]+256*this[++l]+65536*this[++l]+a*2**24;return BigInt(c)+(BigInt(s)<<BigInt(32))})),h.prototype.readBigUInt64BE=Rt((function(l){ot(l>>>=0,"offset");const i=this[l],a=this[l+7];i!==void 0&&a!==void 0||nt(l,this.length-8);const c=i*2**24+65536*this[++l]+256*this[++l]+this[++l],s=this[++l]*2**24+65536*this[++l]+256*this[++l]+a;return(BigInt(c)<<BigInt(32))+BigInt(s)})),h.prototype.readIntLE=function(l,i,a){l>>>=0,i>>>=0,a||tt(l,i,this.length);let c=this[l],s=1,d=0;for(;++d<i&&(s*=256);)c+=this[l+d]*s;return s*=128,c>=s&&(c-=Math.pow(2,8*i)),c},h.prototype.readIntBE=function(l,i,a){l>>>=0,i>>>=0,a||tt(l,i,this.length);let c=i,s=1,d=this[l+--c];for(;c>0&&(s*=256);)d+=this[l+--c]*s;return s*=128,d>=s&&(d-=Math.pow(2,8*i)),d},h.prototype.readInt8=function(l,i){return l>>>=0,i||tt(l,1,this.length),128&this[l]?-1*(255-this[l]+1):this[l]},h.prototype.readInt16LE=function(l,i){l>>>=0,i||tt(l,2,this.length);const a=this[l]|this[l+1]<<8;return 32768&a?4294901760|a:a},h.prototype.readInt16BE=function(l,i){l>>>=0,i||tt(l,2,this.length);const a=this[l+1]|this[l]<<8;return 32768&a?4294901760|a:a},h.prototype.readInt32LE=function(l,i){return l>>>=0,i||tt(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},h.prototype.readInt32BE=function(l,i){return l>>>=0,i||tt(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},h.prototype.readBigInt64LE=Rt((function(l){ot(l>>>=0,"offset");const i=this[l],a=this[l+7];i!==void 0&&a!==void 0||nt(l,this.length-8);const c=this[l+4]+256*this[l+5]+65536*this[l+6]+(a<<24);return(BigInt(c)<<BigInt(32))+BigInt(i+256*this[++l]+65536*this[++l]+this[++l]*2**24)})),h.prototype.readBigInt64BE=Rt((function(l){ot(l>>>=0,"offset");const i=this[l],a=this[l+7];i!==void 0&&a!==void 0||nt(l,this.length-8);const c=(i<<24)+65536*this[++l]+256*this[++l]+this[++l];return(BigInt(c)<<BigInt(32))+BigInt(this[++l]*2**24+65536*this[++l]+256*this[++l]+a)})),h.prototype.readFloatLE=function(l,i){return l>>>=0,i||tt(l,4,this.length),y.read(this,l,!0,23,4)},h.prototype.readFloatBE=function(l,i){return l>>>=0,i||tt(l,4,this.length),y.read(this,l,!1,23,4)},h.prototype.readDoubleLE=function(l,i){return l>>>=0,i||tt(l,8,this.length),y.read(this,l,!0,52,8)},h.prototype.readDoubleBE=function(l,i){return l>>>=0,i||tt(l,8,this.length),y.read(this,l,!1,52,8)},h.prototype.writeUintLE=h.prototype.writeUIntLE=function(l,i,a,c){l=+l,i>>>=0,a>>>=0,c||lt(this,l,i,a,Math.pow(2,8*a)-1,0);let s=1,d=0;for(this[i]=255&l;++d<a&&(s*=256);)this[i+d]=l/s&255;return i+a},h.prototype.writeUintBE=h.prototype.writeUIntBE=function(l,i,a,c){l=+l,i>>>=0,a>>>=0,c||lt(this,l,i,a,Math.pow(2,8*a)-1,0);let s=a-1,d=1;for(this[i+s]=255&l;--s>=0&&(d*=256);)this[i+s]=l/d&255;return i+a},h.prototype.writeUint8=h.prototype.writeUInt8=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,1,255,0),this[i]=255&l,i+1},h.prototype.writeUint16LE=h.prototype.writeUInt16LE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,2,65535,0),this[i]=255&l,this[i+1]=l>>>8,i+2},h.prototype.writeUint16BE=h.prototype.writeUInt16BE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,2,65535,0),this[i]=l>>>8,this[i+1]=255&l,i+2},h.prototype.writeUint32LE=h.prototype.writeUInt32LE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,4,4294967295,0),this[i+3]=l>>>24,this[i+2]=l>>>16,this[i+1]=l>>>8,this[i]=255&l,i+4},h.prototype.writeUint32BE=h.prototype.writeUInt32BE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,4,4294967295,0),this[i]=l>>>24,this[i+1]=l>>>16,this[i+2]=l>>>8,this[i+3]=255&l,i+4},h.prototype.writeBigUInt64LE=Rt((function(l,i=0){return q(this,l,i,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeBigUInt64BE=Rt((function(l,i=0){return W(this,l,i,BigInt(0),BigInt("0xffffffffffffffff"))})),h.prototype.writeIntLE=function(l,i,a,c){if(l=+l,i>>>=0,!c){const B=Math.pow(2,8*a-1);lt(this,l,i,a,B-1,-B)}let s=0,d=1,v=0;for(this[i]=255&l;++s<a&&(d*=256);)l<0&&v===0&&this[i+s-1]!==0&&(v=1),this[i+s]=(l/d|0)-v&255;return i+a},h.prototype.writeIntBE=function(l,i,a,c){if(l=+l,i>>>=0,!c){const B=Math.pow(2,8*a-1);lt(this,l,i,a,B-1,-B)}let s=a-1,d=1,v=0;for(this[i+s]=255&l;--s>=0&&(d*=256);)l<0&&v===0&&this[i+s+1]!==0&&(v=1),this[i+s]=(l/d|0)-v&255;return i+a},h.prototype.writeInt8=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,1,127,-128),l<0&&(l=255+l+1),this[i]=255&l,i+1},h.prototype.writeInt16LE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,2,32767,-32768),this[i]=255&l,this[i+1]=l>>>8,i+2},h.prototype.writeInt16BE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,2,32767,-32768),this[i]=l>>>8,this[i+1]=255&l,i+2},h.prototype.writeInt32LE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,4,2147483647,-2147483648),this[i]=255&l,this[i+1]=l>>>8,this[i+2]=l>>>16,this[i+3]=l>>>24,i+4},h.prototype.writeInt32BE=function(l,i,a){return l=+l,i>>>=0,a||lt(this,l,i,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[i]=l>>>24,this[i+1]=l>>>16,this[i+2]=l>>>8,this[i+3]=255&l,i+4},h.prototype.writeBigInt64LE=Rt((function(l,i=0){return q(this,l,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeBigInt64BE=Rt((function(l,i=0){return W(this,l,i,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),h.prototype.writeFloatLE=function(l,i,a){return Tt(this,l,i,!0,a)},h.prototype.writeFloatBE=function(l,i,a){return Tt(this,l,i,!1,a)},h.prototype.writeDoubleLE=function(l,i,a){return _(this,l,i,!0,a)},h.prototype.writeDoubleBE=function(l,i,a){return _(this,l,i,!1,a)},h.prototype.copy=function(l,i,a,c){if(!h.isBuffer(l))throw new TypeError("argument should be a Buffer");if(a||(a=0),c||c===0||(c=this.length),i>=l.length&&(i=l.length),i||(i=0),c>0&&c<a&&(c=a),c===a||l.length===0||this.length===0)return 0;if(i<0)throw new RangeError("targetStart out of bounds");if(a<0||a>=this.length)throw new RangeError("Index out of range");if(c<0)throw new RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),l.length-i<c-a&&(c=l.length-i+a);const s=c-a;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(i,a,c):Uint8Array.prototype.set.call(l,this.subarray(a,c),i),s},h.prototype.fill=function(l,i,a,c){if(typeof l=="string"){if(typeof i=="string"?(c=i,i=0,a=this.length):typeof a=="string"&&(c=a,a=this.length),c!==void 0&&typeof c!="string")throw new TypeError("encoding must be a string");if(typeof c=="string"&&!h.isEncoding(c))throw new TypeError("Unknown encoding: "+c);if(l.length===1){const d=l.charCodeAt(0);(c==="utf8"&&d<128||c==="latin1")&&(l=d)}}else typeof l=="number"?l&=255:typeof l=="boolean"&&(l=Number(l));if(i<0||this.length<i||this.length<a)throw new RangeError("Out of range index");if(a<=i)return this;let s;if(i>>>=0,a=a===void 0?this.length:a>>>0,l||(l=0),typeof l=="number")for(s=i;s<a;++s)this[s]=l;else{const d=h.isBuffer(l)?l:h.from(l,c),v=d.length;if(v===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(s=0;s<a-i;++s)this[s+i]=d[s%v]}return this};const j={};function F(l,i,a){j[l]=class extends a{constructor(){super(),Object.defineProperty(this,"message",{value:i.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${l}]`,this.stack,delete this.name}get code(){return l}set code(c){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:c,writable:!0})}toString(){return`${this.name} [${l}]: ${this.message}`}}}function $(l){let i="",a=l.length;const c=l[0]==="-"?1:0;for(;a>=c+4;a-=3)i=`_${l.slice(a-3,a)}${i}`;return`${l.slice(0,a)}${i}`}function it(l,i,a,c,s,d){if(l>a||l<i){const v=typeof i=="bigint"?"n":"";let B;throw B=i===0||i===BigInt(0)?`>= 0${v} and < 2${v} ** ${8*(d+1)}${v}`:`>= -(2${v} ** ${8*(d+1)-1}${v}) and < 2 ** ${8*(d+1)-1}${v}`,new j.ERR_OUT_OF_RANGE("value",B,l)}(function(v,B,O){ot(B,"offset"),v[B]!==void 0&&v[B+O]!==void 0||nt(B,v.length-(O+1))})(c,s,d)}function ot(l,i){if(typeof l!="number")throw new j.ERR_INVALID_ARG_TYPE(i,"number",l)}function nt(l,i,a){throw Math.floor(l)!==l?(ot(l,a),new j.ERR_OUT_OF_RANGE("offset","an integer",l)):i<0?new j.ERR_BUFFER_OUT_OF_BOUNDS:new j.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${i}`,l)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(l){return l?`${l} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(l,i){return`The "${l}" argument must be of type number. Received type ${typeof i}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(l,i,a){let c=`The value of "${l}" is out of range.`,s=a;return Number.isInteger(a)&&Math.abs(a)>2**32?s=$(String(a)):typeof a=="bigint"&&(s=String(a),(a>BigInt(2)**BigInt(32)||a<-(BigInt(2)**BigInt(32)))&&(s=$(s)),s+="n"),c+=` It must be ${i}. Received ${s}`,c}),RangeError);const le=/[^+/0-9A-Za-z-_]/g;function Ut(l,i){let a;i=i||1/0;const c=l.length;let s=null;const d=[];for(let v=0;v<c;++v){if(a=l.charCodeAt(v),a>55295&&a<57344){if(!s){if(a>56319){(i-=3)>-1&&d.push(239,191,189);continue}if(v+1===c){(i-=3)>-1&&d.push(239,191,189);continue}s=a;continue}if(a<56320){(i-=3)>-1&&d.push(239,191,189),s=a;continue}a=65536+(s-55296<<10|a-56320)}else s&&(i-=3)>-1&&d.push(239,191,189);if(s=null,a<128){if((i-=1)<0)break;d.push(a)}else if(a<2048){if((i-=2)<0)break;d.push(a>>6|192,63&a|128)}else if(a<65536){if((i-=3)<0)break;d.push(a>>12|224,a>>6&63|128,63&a|128)}else{if(!(a<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;d.push(a>>18|240,a>>12&63|128,a>>6&63|128,63&a|128)}}return d}function he(l){return o.toByteArray((function(i){if((i=(i=i.split("=")[0]).trim().replace(le,"")).length<2)return"";for(;i.length%4!=0;)i+="=";return i})(l))}function fe(l,i,a,c){let s;for(s=0;s<c&&!(s+a>=i.length||s>=l.length);++s)i[s+a]=l[s];return s}function At(l,i){return l instanceof i||l!=null&&l.constructor!=null&&l.constructor.name!=null&&l.constructor.name===i.name}function Se(l){return l!=l}const rn=(function(){const l="0123456789abcdef",i=new Array(256);for(let a=0;a<16;++a){const c=16*a;for(let s=0;s<16;++s)i[c+s]=l[a]+l[s]}return i})();function Rt(l){return typeof BigInt>"u"?Fn:l}function Fn(){throw new Error("BigInt not supported")}})(Y0)),Y0);let We={AUTH_REQ:176,AUTH_NONCE:177,AUTH_HMAC:178,AUTH_ACK:179,AUTH_FAIL:180,AUTH_EXT:181,ENC_PACK:182,ENC_E2E:183,ENC_488:184};for(let p in We)We[We[p]]=p;const Je={AUTH_REQ:J.meta(J.MB("header","8",0),J.MB("reserved","8",0)),AUTH_NONCE:J.meta(J.MB("header","8",0),J.MB("unixTime","32L",0),J.MB("milTime","32L",0),J.MB("nonce",Lt.Buffer.alloc(4))),AUTH_HMAC:J.meta(J.MB("header","8",0),J.MB("id8",Lt.Buffer.alloc(8)),J.MB("nonce",Lt.Buffer.alloc(4)),J.MB("hmac32",Lt.Buffer.alloc(32))),AUTH_ACK:J.meta(J.MB("header","8",0),J.MB("hmac32",Lt.Buffer.alloc(32))),ENC_PACK:J.meta(J.MB("type","8",0),J.MB("len","32L",0),J.MB("salt12",Lt.Buffer.alloc(12)),J.MB("hmac",8,0)),ENC_488:J.meta(J.MB("type","8",0),J.MB("len","32L",0),J.MB("otpSrc8",Lt.Buffer.alloc(8)),J.MB("hmac8",Lt.Buffer.alloc(8)))};function lu(p){let o=p[p.length-1];return o[2]+o[3]}const P0={AUTH_REQ:lu(Je.AUTH_REQ),AUTH_NONCE:lu(Je.AUTH_NONCE),AUTH_HMAC:lu(Je.AUTH_HMAC),AUTH_ACK:lu(Je.AUTH_ACK),ENC_PACK:lu(Je.ENC_PACK),ENC_488:lu(Je.ENC_488)};function Ra(p){return globalThis.crypto.getRandomValues(Lt.Buffer.alloc(p))}class Ft{constructor(){this._id8=Lt.Buffer.alloc(8),this._otpSrc44=Lt.Buffer.alloc(44),this._otp36=Lt.Buffer.alloc(36),this._hmac=Lt.Buffer.alloc(32),this.auth_salt12=Lt.Buffer.alloc(12),this.localNonce=Lt.Buffer.alloc(4),this.remoteNonce=Lt.Buffer.alloc(4),this.isAuthorized=!1}clearAuth(){this._id8.fill(0),this._otpSrc44.fill(0),this._otp36.fill(0),this._hmac.fill(0),this.auth_salt12.fill(0),this.localNonce.fill(0),this.remoteNonce.fill(0),this.isAuthorized=!1}set_hash_id8(o){J.B8(On.hash(o)).copy(this._id8,0,0,8)}set_id8(o){let y=J.B8(o);this._id8.fill(0),y.copy(this._id8,0,0,8)}set_key(o){J.B8(On.hash(o)).copy(this._otpSrc44,0,0,32)}set_id_key(o){let y=o.indexOf(".");if(y==-1)return;let b=o.substring(0,y),E=o.substring(y+1);this.set_id8(b),this.set_key(E)}copy_id8(o){o.copy(this._id8,0,0,8)}copy_key(o){o.copy(this._otpSrc44,0,0,32)}sha256_n(o,y){let b=On.hash(o);for(let E=0;E<y;E++)b=On.hash(b);return b}set_clock_rand(){let o=Date.now(),y=parseInt(o/1e3);o%=4294967295,Lt.Buffer.concat([J.NB("32L",y),J.NB("32L",o),Ra(4)]).copy(this._otpSrc44,32)}set_clock_nonce(o){let y=Date.now(),b=parseInt(y/1e3);y%=4294967295,Lt.Buffer.concat([J.NB("32L",b),J.NB("32L",y),o]).copy(this._otpSrc44,32)}set_salt12(o){o.copy(this._otpSrc44,32)}resetOTP(){J.B8(On.hash(this._otpSrc44)).copy(this._otp36,0,0,32)}getIndexOTP(o){return this._otp36.writeUInt32LE(o,32),On.hash(this._otp36)}generateHMAC(o){let y=Lt.Buffer.concat([this._otpSrc44,o]);this._hmac=J.B8(On.hash(y))}getHMAC8(o){let y=Lt.Buffer.concat([this._otpSrc44,o]);return this._hmac=J.B8(On.hash(y)),this._hmac.subarray(0,8)}xotp(o,y=0,b=!1){let E=(o=J.B8(o,b)).byteLength,U=y,h=0,Y=0;for(;E>0;){Y=E<32?E:32;let R=this.getIndexOTP(++U);for(let A=0;A<Y;A++)o[h++]^=R[A];E-=32}return o}auth_req(){return J.pack(J.MB("#type","8",We.AUTH_REQ),J.MB("#reserved","8",0))}auth_nonce(){let o=Date.now(),y=Math.floor(o/1e3),b=o%1e3;return this.localNonce=Ra(4),this.auth_salt12=Lt.Buffer.concat([J.NB("32L",y),J.NB("32L",b),this.localNonce]),Lt.Buffer.concat([J.NB("8",We.AUTH_NONCE),this.auth_salt12])}auth_hmac(o){let y=J.unpack(o,Je.AUTH_NONCE);if(y){let b=Lt.Buffer.concat([J.NB("32L",y.unixTime),J.NB("32L",y.milTime),y.nonce]);return this.set_salt12(b),this.localNonce=Ra(4),this.generateHMAC(this.localNonce),this.remoteNonce=y.nonce,J.pack(J.MB("#header","8",We.AUTH_HMAC),J.MB("#id8",this._id8),J.MB("#nonce",this.localNonce),J.MB("#hmac32",this._hmac))}return!1}check_auth_hmac(o){let y;if(o instanceof Uint8Array){if(y=J.unpack(o,Je.AUTH_HMAC),!y)return}else y=o;this.set_salt12(this.auth_salt12),this.generateHMAC(y.nonce);let b=this._hmac;if(J.equal(y.hmac32,b)){this.remoteNonce=y.nonce;let E=Lt.Buffer.concat([this.localNonce,this.remoteNonce,this.localNonce]);this.set_salt12(E),this.generateHMAC(y.nonce);let U=this._hmac,h=J.rawPack(J.MB("header","8",We.AUTH_ACK),J.MB("hmac32",U));return this.isAuthorized=!0,h}return!1}check_auth_ack_hmac(o){let y=J.unpack(o,Je.AUTH_ACK);if(y){let b=Lt.Buffer.concat([this.remoteNonce,this.localNonce,this.remoteNonce]);this.set_salt12(b),this.generateHMAC(this.localNonce);let E=this._hmac;if(J.equal(E,y.hmac32))return this.isAuthorized=!0,!0}}encrypt_488(o){if(!this.isAuthorized)return;o=J.B8(o),this.set_clock_nonce(this.remoteNonce),this.resetOTP();let y=this.getHMAC8(o),b=this.xotp(o);return J.pack(J.MB("#type","8",We.ENC_488),J.MB("#len","32L",o.byteLength),J.MB("#otpSrc8",this._otpSrc44.subarray(32,40)),J.MB("#hmac8",y),J.MB("#xdata",b))}decrypt_488(o){o=J.B8(o);let y=J.unpack(o,Je.ENC_488);if(y){let b=Lt.Buffer.concat([y.otpSrc8,this.localNonce]);this.set_salt12(b),this.resetOTP();let E=y.$OTHERS.subarray(0,y.len),U=this.xotp(E),h=this.getHMAC8(U);if(J.equal(h,y.hmac8))return U}}encryptPack(o){o=J.B8(o),this.set_clock_rand(),this.resetOTP();let y=this.getHMAC8(o),b=this.xotp(o);return J.pack(J.MB("#type","8",We.ENC_PACK),J.MB("#len","32L",o.byteLength),J.MB("#salt12",this._otpSrc44.subarray(32)),J.MB("#hmac8",y),J.MB("#xdata",b))}decryptPack(o){if(o[0]===We.ENC_PACK&&o.readUint32LE(1)==o.byteLength-P0.ENC_PACK)try{let y=J.unpack(o,Je.ENC_PACK);if(!y)return;this.set_salt12(y.salt12),this.resetOTP();let b=y.$OTHERS,E=this.xotp(b),U=this.getHMAC8(E);if(J.equal(y.hmac,U))return y.data=E,y}catch{}}encrypt_e2e(o,y){let b=Lt.Buffer.alloc(32);b.set(this._otpSrc44.subarray(0,32)),this.set_key(y);let E=this.encryptPack(o);return this._otpSrc44.set(b),E}decrypt_e2e(o,y){let b=Lt.Buffer.alloc(32);b.set(this._otpSrc44.subarray(0,32)),this.set_key(y);let E=this.decryptPack(o);return this._otpSrc44.set(b),E}}Ft.RAND=Ra,Ft.BohoMsg=We,Ft.Meta=Je,Ft.MetaSize=P0,Ft.sha256=On,Ft.MBP=J,Ft.Buffer=Lt.Buffer;const Tn=at.Buffer,Ta=new TextEncoder,an=new TextDecoder;class Vd extends zd{constructor(o){super(),this.cid="",this.ip="",this.socket=null,this.url=o,this.state=wn.CLOSED,this.stateName=this.getStateName(),this.txCounter=0,this.rxCounter=0,this.txBytes=0,this.rxBytes=0,this.lastTxRxTime=Date.now(),this.connectionCheckerPeriod=Un.CONNECTION_CHECKER_PERIOD,this.connectionCheckerIntervalID=null,this.boho=new Ft,this.TLS=!1,this.encMode=bl.AUTO,this.useAuth=!1,this.nick="",this.channels=new Set,this.promiseMap=new Map,this.promiseTimeOut=Un.PROMISE_TIMEOUT,this.mid=0,this.level=3,this.quota=M0[this.level],this.serverSet={},this.linkMap=new Map,this.autoReconnect=!0,this._closed=!1,this.on("open",this.onOpen.bind(this)),this.on("close",this.onClose.bind(this)),this.on("socket_data",this.onData.bind(this))}close(){if(!this._closed){if(this._closed=!0,this.autoReconnect===!1&&(clearInterval(this.connectionCheckerIntervalID),this.connectionCheckerIntervalID=null),this.socket){if(this.socket.readyState===0){const o=this.socket;o.onopen=()=>{o&&o.close()},o.onmessage=null,o.onerror=null,o.onclose=null}else try{this.socket.close?.()}catch{}this.socket=null}this.promiseMap.clear(),this.emit("closed"),this.stateChange("closed")}}stop(){this.autoReconnect=!1,this.close()}destroy(){this.stop(),this.removeAllListeners(),this.channels.clear(),this.linkMap.clear(),this.boho=null}keepAlive(){this.autoReconnect}redirect(o){this.close(),this.stateChange("redirecting"),this.createConnection(o)}open(o){this.socket&&this.close(),o&&(this.url=o),this.url?(this.createConnection(this.url),this.connectionCheckerIntervalID||(this.connectionCheckerIntervalID=setInterval(this.keepAlive.bind(this),this.connectionCheckerPeriod))):this.emit("error",new Error("URL is not set."))}onOpen(){this._closed=!1,this.url.includes("wss://")?this.TLS=!0:this.TLS=!1,this.stateChange("open")}onClose(){this.boho.isAuthorized=!1,this.cid="",this.stateChange("closed")}login(o,y){if(!this.auth(o,y))return!1;this.useAuth=!0;let b=this.boho.auth_req();return this.send(b),!0}auth(o,y){if(!o&&!y)return this.emit("error",new Error("auth failed. no id and key.")),!1;if(!y&&o.includes("."))this.boho.set_id_key(o);else{if(!o||!y)return this.emit("error",new Error("auth failed. no id or key.")),!1;this.boho.set_id8(o),this.boho.set_key(y)}return this.useAuth=!0,!0}onData(o){let y,b=o[0];if(b===Ft.BohoMsg.ENC_488)y=this.boho.decrypt_488(o),y&&(b=y[0],o=y);else if(b===Ft.BohoMsg.ENC_E2E)try{if(y=this.boho.decrypt_488(o),!y)return;b=y[0],o.set(y,Ft.MetaSize.ENC_488),o=o.subarray(Ft.MetaSize.ENC_488)}catch{return}let E=St[b];switch(E||(E=Ft.BohoMsg[b]),b){case St.OVER_SIZE:console.log("## server sent: over_size event."),this.emit("over_size","over_size");break;case St.PING:this.pong();break;case St.PONG:break;case St.ECHO:try{let G=an.decode(o.subarray(1));this.emit("log","recv ECHO "+G)}catch{this.emit("error",new Error("ECHO data error"))}break;case St.IAM_RES:try{let G=an.decode(o.subarray(1)),K=JSON.parse(G);K.ip&&(this.ip=K.ip),K.nick&&(this.nick=K.nick),this.emit("log",G)}catch{this.emit("error",new Error("IAM_RES data error"))}break;case St.CID_RES:let U=an.decode(o.subarray(1));this.cid=U,this.stateChange("ready","cid_ready"),this.subscribe_memory_channels();break;case St.QUOTA_LEVEL:let h=o[1];this.level=h,this.quota=M0[h],console.log("## QUOTA:",h,JSON.stringify(this.quota));break;case St.SERVER_CLEAR_AUTH:this.useAuth=!1,this.boho.clearAuth(),this.stop();break;case St.SERVER_REDIRECT:let Y,R,A;o.byteLength==7?(Y=(function(G){if(G.byteLength==6)return G[0].toString()+"."+G[1].toString()+"."+G[2].toString()+"."+G[3].toString()+":"+((G[4]<<8)+G[5]).toString()})(o.subarray(1)),A="cong://"):(Y=an.decode(o.subarray(1)),A=""),R=A+Y,this.redirect(R);break;case St.SERVER_READY:this.stateChange("server_ready","server_ready"),this.useAuth?this.send(this.boho.auth_req()):this.send(Tn.from([St.CID_REQ]));break;case St.SERVER_SIGNAL:try{let G=an.decode(o.subarray(1)),K=JSON.parse(G);K.event&&K.data&&(this.serverSet=K.data,this.emit(K.event,K.data))}catch{this.emit("error",new Error("SERVER_SIGNAL parsing error"))}break;case St.SET:try{let G=at.unpack(o);G&&this.emit(G.topic,...G.args)}catch{this.emit("error",new Error("SET parsing error"))}break;case St.SIGNAL_E2E:case St.SIGNAL:try{let G=o.readUint8(1),K=o.subarray(2,2+G),X=an.decode(K),P=o.readUint8(2+G),I=o.subarray(3+G);switch(P){case ae.EMPTY:X.indexOf("@")===0?this.emit("@",null,X):this.emit(X,null,X);break;case ae.TEXT:let ut=I;I[I.byteLength-1]===0&&(ut=I.subarray(0,I.byteLength-1));let ft=an.decode(ut);X.indexOf("@")===0&&this.emit("@",ft,X),X!=="@"&&this.emit(X,ft,X);break;case ae.BINARY:X.indexOf("@")===0&&this.emit("@",I,X),X!=="@"&&this.emit(X,I,X);break;case ae.OBJECT:let Ht=an.decode(I),gt=JSON.parse(Ht);X.indexOf("@")===0&&this.emit("@",gt,X),X!=="@"&&this.emit(X,gt,X);break;case ae.MJSON:let jt=an.decode(I),pt=JSON.parse(jt);X.indexOf("@")===0&&this.emit("@",...pt,X),X!=="@"&&this.emit(X,...pt,X);break;case ae.MBA:let Zt=at.unpack(I);X.indexOf("@")===0&&this.emit("@",...Zt.args,X),X!=="@"&&this.emit(X,...Zt.args,X)}}catch{this.emit("error",new Error("signal parse err"))}break;case St.RESPONSE_MBP:this.testPromise(o);break;case Ft.BohoMsg.AUTH_NONCE:let w=this.boho.auth_hmac(o);w?this.send(w):this.stateChange("auth_fail","Invalid local auth_hmac.");break;case Ft.BohoMsg.AUTH_FAIL:this.stateChange("auth_fail","server reject auth.");break;case Ft.BohoMsg.AUTH_ACK:this.boho.check_auth_ack_hmac(o)?(this.stateChange("auth_ready","server sent auth_ack"),this.send(Tn.from([St.CID_REQ]))):this.stateChange("auth_fail","invalid server_hmac");break;default:try{y=an.decode(o),this.emit("text_message",y)}catch{}}}iam(o){o?this.send_enc_mode(at.pack(at.MB("#MsgType","8",St.IAM),at.MB("#",o))):this.send_enc_mode(at.pack(at.MB("#MsgType","8",St.IAM)))}ping(){this.send(Tn.from([St.PING]))}pong(){this.send(Tn.from([St.PONG]))}echo(o){o?(console.log("echo args:",o),this.send_enc_mode(at.pack(at.MB("#MsgType","8",St.ECHO),at.MB("#msg",o)))):this.send(Tn.from([St.ECHO]))}bin(...o){this.send(at.U8pack(...o))}send(o){if(o.byteLength>this.quota.signalSize)return this.emit("over_size"),console.log(`## QUOTA LIMIT OVER!!
65
+ signal message.byteLength: `,o.byteLength),void console.log("## your maximum signalSize(bytes) is:",this.quota.signalSize);this.socket_send(o)}getEncryptionMode(){return!(this.encMode!==bl.YES&&(this.encMode!==bl.AUTO||this.TLS||!this.boho.isAuthorized))}send_enc_mode(o,y){if(y===void 0&&(y=this.getEncryptionMode()),o[0]==St.SIGNAL_E2E&&y){let b=o[1],E=this.boho.encrypt_488(o.subarray(0,3+b));E[0]=Ft.BohoMsg.ENC_E2E,this.send(Tn.concat([E,o.subarray(3+b)]))}else if(y){let b=this.boho.encrypt_488(o);this.send(b)}else this.send(o)}setMsgPromise(o){return new Promise(((y,b)=>{this.promiseMap.set(o,[y,b]),setTimeout((E=>{this.promiseMap.has(o)&&(b("timeout"),this.promiseMap.delete(o))}),this.promiseTimeOut)}))}testPromise(o){let y=at.unpack(o);if(y)if(this.promiseMap.has(y.mid)){let[b,E]=this.promiseMap.get(y.mid);this.promiseMap.delete(y.mid),y.status<128?(y.ok=!0,b(y)):(y.ok=!1,E(y))}else console.log("no promise id")}publish(...o){this.signal(...o)}signal(o,...y){if(typeof o!="string")throw TypeError("tag should be string.");let b=Dd(o,...y);this.send_enc_mode(b)}decrypt_e2e(o,y){return this.boho.decrypt_e2e(o,y)}signal_e2e(o,y,b){if(typeof o!="string")throw TypeError("tag should be string.");let E=Ta.encode(o),U=at.B8(y),h=this.boho.encrypt_e2e(U,b),Y=at.pack(at.MB("#MsgType","8",St.SIGNAL_E2E),at.MB("#tagLen","8",E.byteLength),at.MB("#tag",E),at.MB("#payloadType","8",ae.BINARY),at.MB("#payload",h));this.send_enc_mode(Y)}set(o,...y){return o&&y.length!=0?this.req("store","set",o,...y):Promise.reject(new Error("set need storeName and value)"))}async get(o){if(!o)return Promise.reject(new Error("store get need storeName)"));let y=await this.req("store","get",o),{$:b}=at.unpack(y.body);return b}req(o,y,...b){if(!o||!y)return Promise.reject(new Error("request need target and topic)"));let E;return E=b.length>0?at.pack(at.MB("#MsgType","8",St.REQUEST),at.MB("mid","16",++this.mid),at.MB("target",o),at.MB("topic",y),at.MBA(...b)):at.pack(at.MB("#MsgType","8",St.REQUEST),at.MB("mid","16",++this.mid),at.MB("target",o),at.MB("topic",y)),this.send_enc_mode(E),this.setMsgPromise(this.mid)}subscribe(o){if(typeof o!="string")throw TypeError("tag should be string.");if(this.state!==wn.READY)return;o.split(",").forEach((b=>{this.channels.add(b)}));let y=Ta.encode(o);if(y.byteLength>Un.TAG_LEN1)throw TypeError("please use tag string bytelength below:"+Un.TAG_LEN1);this.send_enc_mode(Tn.concat([at.NB("8",St.SUBSCRIBE),at.NB("8",y.byteLength),y]))}subscribe_promise(o){if(typeof o!="string")throw TypeError("tag should be string.");if(this.state!==wn.READY)return Promise.reject("subscribe_promise:: connection is not ready");let y=Ta.encode(o);if(y.byteLength>Un.TAG_LEN2)throw TypeError("please use tag string bytelength: "+Un.TAG_LEN2);return this.send_enc_mode(Tn.concat([at.NB("8",St.SUBSCRIBE_REQ),at.NB("16",++this.mid),at.NB("16",y.byteLength),y])),this.setMsgPromise(this.mid)}subscribe_memory_channels(){if(this.channels.size==0)return;let o=Array.from(this.channels).join(",");this.subscribe_promise(o).then((y=>{})).catch((y=>{console.log(">> SUBSCRIBE FAIL:",y)}))}unsubscribe(o=""){if(typeof o!="string")throw TypeError("tag should be string.");o==""?this.channels.clear():o.split(",").forEach((b=>{this.channels.delete(b)}));let y=Ta.encode(o);if(y.byteLength>Un.TAG_LEN1)throw TypeError("please use tag string bytelength below:"+Un.TAG_LEN1);this.send_enc_mode(Tn.concat([at.NB("8",St.UNSUBSCRIBE),at.NB("8",y.byteLength),y]))}listen(o,y){if(typeof o!="string")throw TypeError("tag should be string.");if(o.length>255||o.length==0)throw TypeError("tag string length range: 1~255");if(typeof y!="function")throw TypeError("handler is not a function.");o.indexOf("@")!==0&&this.channels.add(o),this.on(o,y)}link(o,y,b){if(typeof o!="string")throw TypeError("to(local link target) is not a string.");if(typeof y!="string")throw TypeError("tag is not a string.");if(y.length>255||y.length==0)throw TypeError("tag string length range: 1~255");if(typeof b!="function")throw TypeError("handler is not a function.");let E;y.indexOf("@")!==0&&this.channels.add(y),E=this.linkMap.has(o)?this.linkMap.get(o):new Set,E.add(y),this.linkMap.set(o,E),this.on(y,b),this.subscribe(y)}unlink(o,y){if(typeof o!="string")throw TypeError("to(local link target) is not a string.");if(typeof y!="string")throw TypeError("tag is not a string.");if(y.length>255||y.length==0)throw TypeError("tag string length range: 1~255");const b=this.linkMap.get(o);b&&b.has(y)&&(this.unsubscribe(y),this.removeAllListeners(y),b.delete(y),b.size===0&&this.linkMap.delete(o))}unlinkAll(o){if(typeof o!="string")throw TypeError("to(local link target) is not a string.");const y=this.linkMap.get(o);if(y){for(const b of y)this.unsubscribe(b),this.removeAllListeners(b);this.linkMap.delete(o)}}getMetric(){return{tx:this.txCounter,rx:this.rxCounter,txb:this.txBytes,rxb:this.rxBytes,last:(Date.now()-this.lastTxRxTime)/1e3}}getState(){return this.state}getStateName(){return wn[this.state].toLowerCase()}getSecurity(){return{useAuth:this.useAuth,isTLS:this.TLS,isAuthorized:this.boho.isAuthorized,encMode:this.encMode,usingEncryption:this.getEncryptionMode()}}stateChange(o,y){let b=o.toLowerCase();this.state=wn[o.toUpperCase()],y&&this.emit(b,y),this.stateName!==b&&(this.stateName=b,this.emit("change",b))}}const uc=Ft.Buffer;class Fe extends Vd{static version="3.2.0-private";static binaryType="arraybuffer";static Boho=Ft;static MBP=Ft.MBP;static Buffer=Ft.Buffer;static constants=Ld;static instanceCount=0;static webSocketCount=0;constructor(o){super(o),Fe.instanceCount++,this.boundBrowserVisiblePing=this.browserVisiblePing.bind(this),document.addEventListener("visibilitychange",this.boundBrowserVisiblePing),o&&this.open()}browserVisiblePing(){document.visibilityState==="visible"&&this.ping()}stop(){super.stop()}destroy(){document.removeEventListener("visibilitychange",this.boundBrowserVisiblePing),super.destroy()}keepAlive(){this.autoReconnect&&(this.socket&&this.socket.readyState!==WebSocket.CLOSED||this.state!==Fe.constants.STATES.CLOSED||this.open())}createConnection(o){Fe.webSocketCount++,this.socket=new WebSocket(o),this.socket.binaryType=Fe.binaryType,this.stateChange("opening"),this.socket.onopen=()=>{this.socket&&(this.socket.binaryType=="arraybuffer"?this.socket.onmessage=this.onWebSocketMessage.bind(this):this.socket.onmessage=this.onWebSocketMessageBlob.bind(this),this.emit("open"))},this.socket.onerror=y=>{this.emit("error",y)},this.socket.onclose=()=>{this.emit("close")}}onWebSocketMessage(o){this.rxCounter++,this.lastTxRxTime=Date.now();let y=uc.from(o.data);this.rxBytes+=y.byteLength,this.emit("socket_data",y)}async onWebSocketMessageBlob(o){let y;if(this.rxCounter++,this.lastTxRxTime=Date.now(),o.data instanceof Blob){let b=await o.data.arrayBuffer();y=uc.from(b)}else y=uc.from(o.data);this.rxBytes+=y.byteLength,this.emit("socket_data",y)}socket_send(o){this.socket?.readyState===1?(this.socket.send(o),this.txCounter++,this.txBytes+=o.byteLength,this.lastTxRxTime=Date.now()):console.log(".")}}const q0="ws://localhost:7777",fi="channel#topic";function Zd(){const[p,o]=fn.useState([]),[y,b]=fn.useState("Hello, World!"),[E,U]=fn.useState(null),[h,Y]=fn.useState(null),[R,A]=fn.useState({instances:0,websockets:0}),w=fn.useRef(null),G=fn.useRef(null),K=()=>{G.current?.scrollIntoView({behavior:"smooth"})};fn.useEffect(()=>{K()},[p]),fn.useEffect(()=>{if(console.log(Fe.version),w.current=new Fe(q0),A({instances:Fe.instanceCount,websockets:Fe.webSocketCount}),!w.current){console.error("IO instance is not initialized.");return}const I=()=>{console.log("ready cid:",w.current.cid),Y(w.current.cid),w.current.subscribe(fi)},ut=gt=>{U(gt),A({instances:Fe.instanceCount,websockets:Fe.webSocketCount})},ft=(gt,jt)=>{console.log("Received message in App:",gt,jt),typeof gt=="string"&&(gt={text:gt,cid:"cli unknown"}),o(pt=>[...pt,`${gt.cid} : ${gt.text}`])},Ht=gt=>{console.error("IO Error in App:",gt),U(`Error: ${gt.message}`)};return w.current.on("ready",I),w.current.on("change",ut),w.current.on(fi,ft),w.current.on("error",Ht),()=>{w.current.off("ready",I),w.current.off("change",ut),w.current.off(fi,ft),w.current.off("error",Ht),w.current.destroy(),console.log("IO instance destroyed."),w.current=null}},[]);const X=()=>{if(y.trim()){console.log("Sending message:",y);const I={text:y,cid:w.current.cid};console.log("Sending message object:",I),w.current.signal(fi,I),b("date"+Date.now())}},P={color:E==="ready"?"green":"red",fontWeight:"bold"};return pe.jsxs("div",{className:"App",children:[pe.jsx("h1",{children:"React Chat Example"}),pe.jsxs("div",{children:["URL: ",q0]}),pe.jsxs("div",{children:["Channel: ",fi]}),pe.jsxs("div",{children:["IO State: ",pe.jsx("span",{style:P,children:E})]}),pe.jsxs("div",{children:["Client ID: ",h]}),pe.jsxs("div",{children:["IO Instances: ",R.instances]}),pe.jsxs("div",{children:["WebSockets Created: ",R.websockets]}),pe.jsxs("div",{className:"messages",children:[p.map((I,ut)=>pe.jsx("div",{children:I},ut)),pe.jsx("div",{ref:G})]}),pe.jsxs("div",{className:"input-area",children:[pe.jsx("input",{type:"text",value:y,onChange:I=>b(I.target.value),onKeyUp:I=>I.key==="Enter"&&X(),disabled:E!=="ready"}),pe.jsx("button",{onClick:X,disabled:E!=="ready",children:"Send"})]})]})}_d.createRoot(document.getElementById("root")).render(pe.jsx(pd.StrictMode,{children:pe.jsx(Zd,{})}));