voxnix 1.0.8 → 1.0.9
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.
- package/dist/voxnix.iife.js +52 -52
- package/dist/voxnix.js +481 -488
- package/dist/voxnix.umd.cjs +21 -21
- package/package.json +1 -1
package/dist/voxnix.iife.js
CHANGED
|
@@ -7,7 +7,7 @@ var OmnixWidget=function(zy){"use strict";var Lt=typeof globalThis<"u"?globalThi
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var $2;function $T(){if($2)return jt;$2=1;var o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),v=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),
|
|
10
|
+
*/var $2;function $T(){if($2)return jt;$2=1;var o=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),v=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),T=Symbol.iterator;function A($){return $===null||typeof $!="object"?null:($=T&&$[T]||$["@@iterator"],typeof $=="function"?$:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},P=Object.assign,j={};function z($,G,de){this.props=$,this.context=G,this.refs=j,this.updater=de||H}z.prototype.isReactComponent={},z.prototype.setState=function($,G){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,G,"setState")},z.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function B(){}B.prototype=z.prototype;function M($,G,de){this.props=$,this.context=G,this.refs=j,this.updater=de||H}var U=M.prototype=new B;U.constructor=M,P(U,z.prototype),U.isPureReactComponent=!0;var q=Array.isArray,K=Object.prototype.hasOwnProperty,X={current:null},ee={key:!0,ref:!0,__self:!0,__source:!0};function R($,G,de){var oe,Je={},Ge=null,ut=null;if(G!=null)for(oe in G.ref!==void 0&&(ut=G.ref),G.key!==void 0&&(Ge=""+G.key),G)K.call(G,oe)&&!ee.hasOwnProperty(oe)&&(Je[oe]=G[oe]);var Se=arguments.length-2;if(Se===1)Je.children=de;else if(1<Se){for(var Re=Array(Se),yt=0;yt<Se;yt++)Re[yt]=arguments[yt+2];Je.children=Re}if($&&$.defaultProps)for(oe in Se=$.defaultProps,Se)Je[oe]===void 0&&(Je[oe]=Se[oe]);return{$$typeof:o,type:$,key:Ge,ref:ut,props:Je,_owner:X.current}}function Ee($,G){return{$$typeof:o,type:$.type,key:G,ref:$.ref,props:$.props,_owner:$._owner}}function Z($){return typeof $=="object"&&$!==null&&$.$$typeof===o}function F($){var G={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(de){return G[de]})}var L=/\/+/g;function N($,G){return typeof $=="object"&&$!==null&&$.key!=null?F(""+$.key):G.toString(36)}function De($,G,de,oe,Je){var Ge=typeof $;(Ge==="undefined"||Ge==="boolean")&&($=null);var ut=!1;if($===null)ut=!0;else switch(Ge){case"string":case"number":ut=!0;break;case"object":switch($.$$typeof){case o:case r:ut=!0}}if(ut)return ut=$,Je=Je(ut),$=oe===""?"."+N(ut,0):oe,q(Je)?(de="",$!=null&&(de=$.replace(L,"$&/")+"/"),De(Je,G,de,"",function(yt){return yt})):Je!=null&&(Z(Je)&&(Je=Ee(Je,de+(!Je.key||ut&&ut.key===Je.key?"":(""+Je.key).replace(L,"$&/")+"/")+$)),G.push(Je)),1;if(ut=0,oe=oe===""?".":oe+":",q($))for(var Se=0;Se<$.length;Se++){Ge=$[Se];var Re=oe+N(Ge,Se);ut+=De(Ge,G,de,Re,Je)}else if(Re=A($),typeof Re=="function")for($=Re.call($),Se=0;!(Ge=$.next()).done;)Ge=Ge.value,Re=oe+N(Ge,Se++),ut+=De(Ge,G,de,Re,Je);else if(Ge==="object")throw G=String($),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.");return ut}function be($,G,de){if($==null)return $;var oe=[],Je=0;return De($,oe,"","",function(Ge){return G.call(de,Ge,Je++)}),oe}function $e($){if($._status===-1){var G=$._result;G=G(),G.then(function(de){($._status===0||$._status===-1)&&($._status=1,$._result=de)},function(de){($._status===0||$._status===-1)&&($._status=2,$._result=de)}),$._status===-1&&($._status=0,$._result=G)}if($._status===1)return $._result.default;throw $._result}var ge={current:null},Ce={transition:null},He={ReactCurrentDispatcher:ge,ReactCurrentBatchConfig:Ce,ReactCurrentOwner:X};function _e(){throw Error("act(...) is not supported in production builds of React.")}return jt.Children={map:be,forEach:function($,G,de){be($,function(){G.apply(this,arguments)},de)},count:function($){var G=0;return be($,function(){G++}),G},toArray:function($){return be($,function(G){return G})||[]},only:function($){if(!Z($))throw Error("React.Children.only expected to receive a single React element child.");return $}},jt.Component=z,jt.Fragment=i,jt.Profiler=f,jt.PureComponent=M,jt.StrictMode=l,jt.Suspense=b,jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=He,jt.act=_e,jt.cloneElement=function($,G,de){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var oe=P({},$.props),Je=$.key,Ge=$.ref,ut=$._owner;if(G!=null){if(G.ref!==void 0&&(Ge=G.ref,ut=X.current),G.key!==void 0&&(Je=""+G.key),$.type&&$.type.defaultProps)var Se=$.type.defaultProps;for(Re in G)K.call(G,Re)&&!ee.hasOwnProperty(Re)&&(oe[Re]=G[Re]===void 0&&Se!==void 0?Se[Re]:G[Re])}var Re=arguments.length-2;if(Re===1)oe.children=de;else if(1<Re){Se=Array(Re);for(var yt=0;yt<Re;yt++)Se[yt]=arguments[yt+2];oe.children=Se}return{$$typeof:o,type:$.type,key:Je,ref:Ge,props:oe,_owner:ut}},jt.createContext=function($){return $={$$typeof:v,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:p,_context:$},$.Consumer=$},jt.createElement=R,jt.createFactory=function($){var G=R.bind(null,$);return G.type=$,G},jt.createRef=function(){return{current:null}},jt.forwardRef=function($){return{$$typeof:S,render:$}},jt.isValidElement=Z,jt.lazy=function($){return{$$typeof:w,_payload:{_status:-1,_result:$},_init:$e}},jt.memo=function($,G){return{$$typeof:C,type:$,compare:G===void 0?null:G}},jt.startTransition=function($){var G=Ce.transition;Ce.transition={};try{$()}finally{Ce.transition=G}},jt.unstable_act=_e,jt.useCallback=function($,G){return ge.current.useCallback($,G)},jt.useContext=function($){return ge.current.useContext($)},jt.useDebugValue=function(){},jt.useDeferredValue=function($){return ge.current.useDeferredValue($)},jt.useEffect=function($,G){return ge.current.useEffect($,G)},jt.useId=function(){return ge.current.useId()},jt.useImperativeHandle=function($,G,de){return ge.current.useImperativeHandle($,G,de)},jt.useInsertionEffect=function($,G){return ge.current.useInsertionEffect($,G)},jt.useLayoutEffect=function($,G){return ge.current.useLayoutEffect($,G)},jt.useMemo=function($,G){return ge.current.useMemo($,G)},jt.useReducer=function($,G,de){return ge.current.useReducer($,G,de)},jt.useRef=function($){return ge.current.useRef($)},jt.useState=function($){return ge.current.useState($)},jt.useSyncExternalStore=function($,G,de){return ge.current.useSyncExternalStore($,G,de)},jt.useTransition=function(){return ge.current.useTransition()},jt.version="18.3.1",jt}var Vh={exports:{}};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react.development.js
|
|
13
13
|
*
|
|
@@ -15,7 +15,7 @@ var OmnixWidget=function(zy){"use strict";var Lt=typeof globalThis<"u"?globalThi
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/Vh.exports;var P2;function PT(){return P2||(P2=1,function(o,r){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var i="18.3.1",l=Symbol.for("react.element"),f=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),C=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),z=Symbol.iterator,B="@@iterator";function M(D){if(D===null||typeof D!="object")return null;var V=z&&D[z]||D[B];return typeof V=="function"?V:null}var U={current:null},q={transition:null},K={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},X={current:null},ee={},A=null;function Ee(D){A=D}ee.setExtraStackFrame=function(D){A=D},ee.getCurrentStack=null,ee.getStackAddendum=function(){var D="";A&&(D+=A);var V=ee.getCurrentStack;return V&&(D+=V()||""),D};var Z=!1,F=!1,L=!1,N=!1,De=!1,be={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:q,ReactCurrentOwner:X};be.ReactDebugCurrentFrame=ee,be.ReactCurrentActQueue=K;function $e(D){{for(var V=arguments.length,ue=new Array(V>1?V-1:0),ve=1;ve<V;ve++)ue[ve-1]=arguments[ve];Ce("warn",D,ue)}}function ge(D){{for(var V=arguments.length,ue=new Array(V>1?V-1:0),ve=1;ve<V;ve++)ue[ve-1]=arguments[ve];Ce("error",D,ue)}}function Ce(D,V,ue){{var ve=be.ReactDebugCurrentFrame,Ie=ve.getStackAddendum();Ie!==""&&(V+="%s",ue=ue.concat([Ie]));var pt=ue.map(function(Ue){return String(Ue)});pt.unshift("Warning: "+V),Function.prototype.apply.call(console[D],console,pt)}}var He={};function _e(D,V){{var ue=D.constructor,ve=ue&&(ue.displayName||ue.name)||"ReactClass",Ie=ve+"."+V;if(He[Ie])return;ge("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",V,ve),He[Ie]=!0}}var $={isMounted:function(D){return!1},enqueueForceUpdate:function(D,V,ue){_e(D,"forceUpdate")},enqueueReplaceState:function(D,V,ue,ve){_e(D,"replaceState")},enqueueSetState:function(D,V,ue,ve){_e(D,"setState")}},G=Object.assign,de={};Object.freeze(de);function oe(D,V,ue){this.props=D,this.context=V,this.refs=de,this.updater=ue||$}oe.prototype.isReactComponent={},oe.prototype.setState=function(D,V){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,V,"setState")},oe.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var Je={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ge=function(D,V){Object.defineProperty(oe.prototype,D,{get:function(){$e("%s(...) is deprecated in plain JavaScript React classes. %s",V[0],V[1])}})};for(var ut in Je)Je.hasOwnProperty(ut)&&Ge(ut,Je[ut])}function Se(){}Se.prototype=oe.prototype;function Re(D,V,ue){this.props=D,this.context=V,this.refs=de,this.updater=ue||$}var yt=Re.prototype=new Se;yt.constructor=Re,G(yt,oe.prototype),yt.isPureReactComponent=!0;function dr(){var D={current:null};return Object.seal(D),D}var zr=Array.isArray;function qt(D){return zr(D)}function Qt(D){{var V=typeof Symbol=="function"&&Symbol.toStringTag,ue=V&&D[Symbol.toStringTag]||D.constructor.name||"Object";return ue}}function Fr(D){try{return br(D),!1}catch{return!0}}function br(D){return""+D}function nn(D){if(Fr(D))return ge("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qt(D)),br(D)}function Tn(D,V,ue){var ve=D.displayName;if(ve)return ve;var Ie=V.displayName||V.name||"";return Ie!==""?ue+"("+Ie+")":ue}function vn(D){return D.displayName||"Context"}function qr(D){if(D==null)return null;if(typeof D.tag=="number"&&ge("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case p:return"Fragment";case f:return"Portal";case S:return"Profiler";case v:return"StrictMode";case R:return"Suspense";case T:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case C:var V=D;return vn(V)+".Consumer";case w:var ue=D;return vn(ue._context)+".Provider";case b:return Tn(D,D.render,"ForwardRef");case H:var ve=D.displayName||null;return ve!==null?ve:qr(D.type)||"Memo";case P:{var Ie=D,pt=Ie._payload,Ue=Ie._init;try{return qr(Ue(pt))}catch{return null}}}return null}var tr=Object.prototype.hasOwnProperty,ar={key:!0,ref:!0,__self:!0,__source:!0},Pr,ui,Kr;Kr={};function Qr(D){if(tr.call(D,"ref")){var V=Object.getOwnPropertyDescriptor(D,"ref").get;if(V&&V.isReactWarning)return!1}return D.ref!==void 0}function Rn(D){if(tr.call(D,"key")){var V=Object.getOwnPropertyDescriptor(D,"key").get;if(V&&V.isReactWarning)return!1}return D.key!==void 0}function ta(D,V){var ue=function(){Pr||(Pr=!0,ge("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};ue.isReactWarning=!0,Object.defineProperty(D,"key",{get:ue,configurable:!0})}function ra(D,V){var ue=function(){ui||(ui=!0,ge("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};ue.isReactWarning=!0,Object.defineProperty(D,"ref",{get:ue,configurable:!0})}function Pe(D){if(typeof D.ref=="string"&&X.current&&D.__self&&X.current.stateNode!==D.__self){var V=qr(X.current.type);Kr[V]||(ge('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',V,D.ref),Kr[V]=!0)}}var rt=function(D,V,ue,ve,Ie,pt,Ue){var xt={$$typeof:l,type:D,key:V,ref:ue,props:Ue,_owner:pt};return xt._store={},Object.defineProperty(xt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(xt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(xt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ie}),Object.freeze&&(Object.freeze(xt.props),Object.freeze(xt)),xt};function bt(D,V,ue){var ve,Ie={},pt=null,Ue=null,xt=null,Pt=null;if(V!=null){Qr(V)&&(Ue=V.ref,Pe(V)),Rn(V)&&(nn(V.key),pt=""+V.key),xt=V.__self===void 0?null:V.__self,Pt=V.__source===void 0?null:V.__source;for(ve in V)tr.call(V,ve)&&!ar.hasOwnProperty(ve)&&(Ie[ve]=V[ve])}var Xt=arguments.length-2;if(Xt===1)Ie.children=ue;else if(Xt>1){for(var Ir=Array(Xt),Dr=0;Dr<Xt;Dr++)Ir[Dr]=arguments[Dr+2];Object.freeze&&Object.freeze(Ir),Ie.children=Ir}if(D&&D.defaultProps){var Mt=D.defaultProps;for(ve in Mt)Ie[ve]===void 0&&(Ie[ve]=Mt[ve])}if(pt||Ue){var Tr=typeof D=="function"?D.displayName||D.name||"Unknown":D;pt&&ta(Ie,Tr),Ue&&ra(Ie,Tr)}return rt(D,pt,Ue,xt,Pt,X.current,Ie)}function rr(D,V){var ue=rt(D.type,V,D.ref,D._self,D._source,D._owner,D.props);return ue}function Sr(D,V,ue){if(D==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ve,Ie=G({},D.props),pt=D.key,Ue=D.ref,xt=D._self,Pt=D._source,Xt=D._owner;if(V!=null){Qr(V)&&(Ue=V.ref,Xt=X.current),Rn(V)&&(nn(V.key),pt=""+V.key);var Ir;D.type&&D.type.defaultProps&&(Ir=D.type.defaultProps);for(ve in V)tr.call(V,ve)&&!ar.hasOwnProperty(ve)&&(V[ve]===void 0&&Ir!==void 0?Ie[ve]=Ir[ve]:Ie[ve]=V[ve])}var Dr=arguments.length-2;if(Dr===1)Ie.children=ue;else if(Dr>1){for(var Mt=Array(Dr),Tr=0;Tr<Dr;Tr++)Mt[Tr]=arguments[Tr+2];Ie.children=Mt}return rt(D.type,pt,Ue,xt,Pt,Xt,Ie)}function Nr(D){return typeof D=="object"&&D!==null&&D.$$typeof===l}var Or=".",gn=":";function wr(D){var V=/[=:]/g,ue={"=":"=0",":":"=2"},ve=D.replace(V,function(Ie){return ue[Ie]});return"$"+ve}var yr=!1,hr=/\/+/g;function vi(D){return D.replace(hr,"$&/")}function An(D,V){return typeof D=="object"&&D!==null&&D.key!=null?(nn(D.key),wr(""+D.key)):V.toString(36)}function Ni(D,V,ue,ve,Ie){var pt=typeof D;(pt==="undefined"||pt==="boolean")&&(D=null);var Ue=!1;if(D===null)Ue=!0;else switch(pt){case"string":case"number":Ue=!0;break;case"object":switch(D.$$typeof){case l:case f:Ue=!0}}if(Ue){var xt=D,Pt=Ie(xt),Xt=ve===""?Or+An(xt,0):ve;if(qt(Pt)){var Ir="";Xt!=null&&(Ir=vi(Xt)+"/"),Ni(Pt,V,Ir,"",function(g0){return g0})}else Pt!=null&&(Nr(Pt)&&(Pt.key&&(!xt||xt.key!==Pt.key)&&nn(Pt.key),Pt=rr(Pt,ue+(Pt.key&&(!xt||xt.key!==Pt.key)?vi(""+Pt.key)+"/":"")+Xt)),V.push(Pt));return 1}var Dr,Mt,Tr=0,Zr=ve===""?Or:ve+gn;if(qt(D))for(var No=0;No<D.length;No++)Dr=D[No],Mt=Zr+An(Dr,No),Tr+=Ni(Dr,V,ue,Mt,Ie);else{var Hc=M(D);if(typeof Hc=="function"){var Ws=D;Hc===Ws.entries&&(yr||$e("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),yr=!0);for(var Ic=Hc.call(Ws),Al,v0=0;!(Al=Ic.next()).done;)Dr=Al.value,Mt=Zr+An(Dr,v0++),Tr+=Ni(Dr,V,ue,Mt,Ie)}else if(pt==="object"){var ud=String(D);throw new Error("Objects are not valid as a React child (found: "+(ud==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":ud)+"). If you meant to render a collection of children, use an array instead.")}}return Tr}function ja(D,V,ue){if(D==null)return D;var ve=[],Ie=0;return Ni(D,ve,"","",function(pt){return V.call(ue,pt,Ie++)}),ve}function qs(D){var V=0;return ja(D,function(){V++}),V}function cs(D,V,ue){ja(D,function(){V.apply(this,arguments)},ue)}function fs(D){return ja(D,function(V){return V})||[]}function ds(D){if(!Nr(D))throw new Error("React.Children.only expected to receive a single React element child.");return D}function hs(D){var V={$$typeof:C,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};V.Provider={$$typeof:w,_context:V};var ue=!1,ve=!1,Ie=!1;{var pt={$$typeof:C,_context:V};Object.defineProperties(pt,{Provider:{get:function(){return ve||(ve=!0,ge("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),V.Provider},set:function(Ue){V.Provider=Ue}},_currentValue:{get:function(){return V._currentValue},set:function(Ue){V._currentValue=Ue}},_currentValue2:{get:function(){return V._currentValue2},set:function(Ue){V._currentValue2=Ue}},_threadCount:{get:function(){return V._threadCount},set:function(Ue){V._threadCount=Ue}},Consumer:{get:function(){return ue||(ue=!0,ge("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),V.Consumer}},displayName:{get:function(){return V.displayName},set:function(Ue){Ie||($e("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Ue),Ie=!0)}}}),V.Consumer=pt}return V._currentRenderer=null,V._currentRenderer2=null,V}var Yn=-1,In=0,pr=1,kn=2;function Hi(D){if(D._status===Yn){var V=D._result,ue=V();if(ue.then(function(pt){if(D._status===In||D._status===Yn){var Ue=D;Ue._status=pr,Ue._result=pt}},function(pt){if(D._status===In||D._status===Yn){var Ue=D;Ue._status=kn,Ue._result=pt}}),D._status===Yn){var ve=D;ve._status=In,ve._result=ue}}if(D._status===pr){var Ie=D._result;return Ie===void 0&&ge(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
18
|
+
*/Vh.exports;var P2;function PT(){return P2||(P2=1,function(o,r){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var i="18.3.1",l=Symbol.for("react.element"),f=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),C=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),z=Symbol.iterator,B="@@iterator";function M(D){if(D===null||typeof D!="object")return null;var V=z&&D[z]||D[B];return typeof V=="function"?V:null}var U={current:null},q={transition:null},K={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},X={current:null},ee={},R=null;function Ee(D){R=D}ee.setExtraStackFrame=function(D){R=D},ee.getCurrentStack=null,ee.getStackAddendum=function(){var D="";R&&(D+=R);var V=ee.getCurrentStack;return V&&(D+=V()||""),D};var Z=!1,F=!1,L=!1,N=!1,De=!1,be={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:q,ReactCurrentOwner:X};be.ReactDebugCurrentFrame=ee,be.ReactCurrentActQueue=K;function $e(D){{for(var V=arguments.length,ue=new Array(V>1?V-1:0),ve=1;ve<V;ve++)ue[ve-1]=arguments[ve];Ce("warn",D,ue)}}function ge(D){{for(var V=arguments.length,ue=new Array(V>1?V-1:0),ve=1;ve<V;ve++)ue[ve-1]=arguments[ve];Ce("error",D,ue)}}function Ce(D,V,ue){{var ve=be.ReactDebugCurrentFrame,Ie=ve.getStackAddendum();Ie!==""&&(V+="%s",ue=ue.concat([Ie]));var pt=ue.map(function(Ue){return String(Ue)});pt.unshift("Warning: "+V),Function.prototype.apply.call(console[D],console,pt)}}var He={};function _e(D,V){{var ue=D.constructor,ve=ue&&(ue.displayName||ue.name)||"ReactClass",Ie=ve+"."+V;if(He[Ie])return;ge("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",V,ve),He[Ie]=!0}}var $={isMounted:function(D){return!1},enqueueForceUpdate:function(D,V,ue){_e(D,"forceUpdate")},enqueueReplaceState:function(D,V,ue,ve){_e(D,"replaceState")},enqueueSetState:function(D,V,ue,ve){_e(D,"setState")}},G=Object.assign,de={};Object.freeze(de);function oe(D,V,ue){this.props=D,this.context=V,this.refs=de,this.updater=ue||$}oe.prototype.isReactComponent={},oe.prototype.setState=function(D,V){if(typeof D!="object"&&typeof D!="function"&&D!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,D,V,"setState")},oe.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};{var Je={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ge=function(D,V){Object.defineProperty(oe.prototype,D,{get:function(){$e("%s(...) is deprecated in plain JavaScript React classes. %s",V[0],V[1])}})};for(var ut in Je)Je.hasOwnProperty(ut)&&Ge(ut,Je[ut])}function Se(){}Se.prototype=oe.prototype;function Re(D,V,ue){this.props=D,this.context=V,this.refs=de,this.updater=ue||$}var yt=Re.prototype=new Se;yt.constructor=Re,G(yt,oe.prototype),yt.isPureReactComponent=!0;function dr(){var D={current:null};return Object.seal(D),D}var zr=Array.isArray;function qt(D){return zr(D)}function Qt(D){{var V=typeof Symbol=="function"&&Symbol.toStringTag,ue=V&&D[Symbol.toStringTag]||D.constructor.name||"Object";return ue}}function Fr(D){try{return br(D),!1}catch{return!0}}function br(D){return""+D}function nn(D){if(Fr(D))return ge("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qt(D)),br(D)}function Tn(D,V,ue){var ve=D.displayName;if(ve)return ve;var Ie=V.displayName||V.name||"";return Ie!==""?ue+"("+Ie+")":ue}function vn(D){return D.displayName||"Context"}function qr(D){if(D==null)return null;if(typeof D.tag=="number"&&ge("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof D=="function")return D.displayName||D.name||null;if(typeof D=="string")return D;switch(D){case p:return"Fragment";case f:return"Portal";case S:return"Profiler";case v:return"StrictMode";case T:return"Suspense";case A:return"SuspenseList"}if(typeof D=="object")switch(D.$$typeof){case C:var V=D;return vn(V)+".Consumer";case b:var ue=D;return vn(ue._context)+".Provider";case w:return Tn(D,D.render,"ForwardRef");case H:var ve=D.displayName||null;return ve!==null?ve:qr(D.type)||"Memo";case P:{var Ie=D,pt=Ie._payload,Ue=Ie._init;try{return qr(Ue(pt))}catch{return null}}}return null}var tr=Object.prototype.hasOwnProperty,ar={key:!0,ref:!0,__self:!0,__source:!0},Pr,ui,Kr;Kr={};function Qr(D){if(tr.call(D,"ref")){var V=Object.getOwnPropertyDescriptor(D,"ref").get;if(V&&V.isReactWarning)return!1}return D.ref!==void 0}function Rn(D){if(tr.call(D,"key")){var V=Object.getOwnPropertyDescriptor(D,"key").get;if(V&&V.isReactWarning)return!1}return D.key!==void 0}function ta(D,V){var ue=function(){Pr||(Pr=!0,ge("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};ue.isReactWarning=!0,Object.defineProperty(D,"key",{get:ue,configurable:!0})}function ra(D,V){var ue=function(){ui||(ui=!0,ge("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",V))};ue.isReactWarning=!0,Object.defineProperty(D,"ref",{get:ue,configurable:!0})}function Pe(D){if(typeof D.ref=="string"&&X.current&&D.__self&&X.current.stateNode!==D.__self){var V=qr(X.current.type);Kr[V]||(ge('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',V,D.ref),Kr[V]=!0)}}var rt=function(D,V,ue,ve,Ie,pt,Ue){var xt={$$typeof:l,type:D,key:V,ref:ue,props:Ue,_owner:pt};return xt._store={},Object.defineProperty(xt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(xt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(xt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ie}),Object.freeze&&(Object.freeze(xt.props),Object.freeze(xt)),xt};function bt(D,V,ue){var ve,Ie={},pt=null,Ue=null,xt=null,Pt=null;if(V!=null){Qr(V)&&(Ue=V.ref,Pe(V)),Rn(V)&&(nn(V.key),pt=""+V.key),xt=V.__self===void 0?null:V.__self,Pt=V.__source===void 0?null:V.__source;for(ve in V)tr.call(V,ve)&&!ar.hasOwnProperty(ve)&&(Ie[ve]=V[ve])}var Xt=arguments.length-2;if(Xt===1)Ie.children=ue;else if(Xt>1){for(var Ir=Array(Xt),Dr=0;Dr<Xt;Dr++)Ir[Dr]=arguments[Dr+2];Object.freeze&&Object.freeze(Ir),Ie.children=Ir}if(D&&D.defaultProps){var Mt=D.defaultProps;for(ve in Mt)Ie[ve]===void 0&&(Ie[ve]=Mt[ve])}if(pt||Ue){var Tr=typeof D=="function"?D.displayName||D.name||"Unknown":D;pt&&ta(Ie,Tr),Ue&&ra(Ie,Tr)}return rt(D,pt,Ue,xt,Pt,X.current,Ie)}function rr(D,V){var ue=rt(D.type,V,D.ref,D._self,D._source,D._owner,D.props);return ue}function Sr(D,V,ue){if(D==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+D+".");var ve,Ie=G({},D.props),pt=D.key,Ue=D.ref,xt=D._self,Pt=D._source,Xt=D._owner;if(V!=null){Qr(V)&&(Ue=V.ref,Xt=X.current),Rn(V)&&(nn(V.key),pt=""+V.key);var Ir;D.type&&D.type.defaultProps&&(Ir=D.type.defaultProps);for(ve in V)tr.call(V,ve)&&!ar.hasOwnProperty(ve)&&(V[ve]===void 0&&Ir!==void 0?Ie[ve]=Ir[ve]:Ie[ve]=V[ve])}var Dr=arguments.length-2;if(Dr===1)Ie.children=ue;else if(Dr>1){for(var Mt=Array(Dr),Tr=0;Tr<Dr;Tr++)Mt[Tr]=arguments[Tr+2];Ie.children=Mt}return rt(D.type,pt,Ue,xt,Pt,Xt,Ie)}function Nr(D){return typeof D=="object"&&D!==null&&D.$$typeof===l}var Or=".",gn=":";function wr(D){var V=/[=:]/g,ue={"=":"=0",":":"=2"},ve=D.replace(V,function(Ie){return ue[Ie]});return"$"+ve}var yr=!1,hr=/\/+/g;function vi(D){return D.replace(hr,"$&/")}function An(D,V){return typeof D=="object"&&D!==null&&D.key!=null?(nn(D.key),wr(""+D.key)):V.toString(36)}function Ni(D,V,ue,ve,Ie){var pt=typeof D;(pt==="undefined"||pt==="boolean")&&(D=null);var Ue=!1;if(D===null)Ue=!0;else switch(pt){case"string":case"number":Ue=!0;break;case"object":switch(D.$$typeof){case l:case f:Ue=!0}}if(Ue){var xt=D,Pt=Ie(xt),Xt=ve===""?Or+An(xt,0):ve;if(qt(Pt)){var Ir="";Xt!=null&&(Ir=vi(Xt)+"/"),Ni(Pt,V,Ir,"",function(g0){return g0})}else Pt!=null&&(Nr(Pt)&&(Pt.key&&(!xt||xt.key!==Pt.key)&&nn(Pt.key),Pt=rr(Pt,ue+(Pt.key&&(!xt||xt.key!==Pt.key)?vi(""+Pt.key)+"/":"")+Xt)),V.push(Pt));return 1}var Dr,Mt,Tr=0,Zr=ve===""?Or:ve+gn;if(qt(D))for(var No=0;No<D.length;No++)Dr=D[No],Mt=Zr+An(Dr,No),Tr+=Ni(Dr,V,ue,Mt,Ie);else{var Hc=M(D);if(typeof Hc=="function"){var Ws=D;Hc===Ws.entries&&(yr||$e("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),yr=!0);for(var Ic=Hc.call(Ws),Al,v0=0;!(Al=Ic.next()).done;)Dr=Al.value,Mt=Zr+An(Dr,v0++),Tr+=Ni(Dr,V,ue,Mt,Ie)}else if(pt==="object"){var ud=String(D);throw new Error("Objects are not valid as a React child (found: "+(ud==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":ud)+"). If you meant to render a collection of children, use an array instead.")}}return Tr}function ja(D,V,ue){if(D==null)return D;var ve=[],Ie=0;return Ni(D,ve,"","",function(pt){return V.call(ue,pt,Ie++)}),ve}function qs(D){var V=0;return ja(D,function(){V++}),V}function cs(D,V,ue){ja(D,function(){V.apply(this,arguments)},ue)}function fs(D){return ja(D,function(V){return V})||[]}function ds(D){if(!Nr(D))throw new Error("React.Children.only expected to receive a single React element child.");return D}function hs(D){var V={$$typeof:C,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};V.Provider={$$typeof:b,_context:V};var ue=!1,ve=!1,Ie=!1;{var pt={$$typeof:C,_context:V};Object.defineProperties(pt,{Provider:{get:function(){return ve||(ve=!0,ge("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),V.Provider},set:function(Ue){V.Provider=Ue}},_currentValue:{get:function(){return V._currentValue},set:function(Ue){V._currentValue=Ue}},_currentValue2:{get:function(){return V._currentValue2},set:function(Ue){V._currentValue2=Ue}},_threadCount:{get:function(){return V._threadCount},set:function(Ue){V._threadCount=Ue}},Consumer:{get:function(){return ue||(ue=!0,ge("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),V.Consumer}},displayName:{get:function(){return V.displayName},set:function(Ue){Ie||($e("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Ue),Ie=!0)}}}),V.Consumer=pt}return V._currentRenderer=null,V._currentRenderer2=null,V}var Yn=-1,In=0,pr=1,kn=2;function Hi(D){if(D._status===Yn){var V=D._result,ue=V();if(ue.then(function(pt){if(D._status===In||D._status===Yn){var Ue=D;Ue._status=pr,Ue._result=pt}},function(pt){if(D._status===In||D._status===Yn){var Ue=D;Ue._status=kn,Ue._result=pt}}),D._status===Yn){var ve=D;ve._status=In,ve._result=ue}}if(D._status===pr){var Ie=D._result;return Ie===void 0&&ge(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
19
19
|
|
|
20
20
|
Your code should look like:
|
|
21
21
|
const MyComponent = lazy(() => import('./MyComponent'))
|
|
@@ -23,7 +23,7 @@ Your code should look like:
|
|
|
23
23
|
Did you accidentally put curly braces around the import?`,Ie),"default"in Ie||ge(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
24
24
|
|
|
25
25
|
Your code should look like:
|
|
26
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,Ie),Ie.default}else throw D._result}function Ea(D){var V={_status:Yn,_result:D},ue={$$typeof:P,_payload:V,_init:Hi};{var ve,Ie;Object.defineProperties(ue,{defaultProps:{configurable:!0,get:function(){return ve},set:function(pt){ge("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ve=pt,Object.defineProperty(ue,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Ie},set:function(pt){ge("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Ie=pt,Object.defineProperty(ue,"propTypes",{enumerable:!0})}}})}return ue}function ps(D){D!=null&&D.$$typeof===H?ge("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof D!="function"?ge("forwardRef requires a render function but was given %s.",D===null?"null":typeof D):D.length!==0&&D.length!==2&&ge("forwardRef render functions accept exactly two parameters: props and ref. %s",D.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),D!=null&&(D.defaultProps!=null||D.propTypes!=null)&&ge("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var V={$$typeof:
|
|
26
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,Ie),Ie.default}else throw D._result}function Ea(D){var V={_status:Yn,_result:D},ue={$$typeof:P,_payload:V,_init:Hi};{var ve,Ie;Object.defineProperties(ue,{defaultProps:{configurable:!0,get:function(){return ve},set:function(pt){ge("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),ve=pt,Object.defineProperty(ue,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Ie},set:function(pt){ge("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Ie=pt,Object.defineProperty(ue,"propTypes",{enumerable:!0})}}})}return ue}function ps(D){D!=null&&D.$$typeof===H?ge("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof D!="function"?ge("forwardRef requires a render function but was given %s.",D===null?"null":typeof D):D.length!==0&&D.length!==2&&ge("forwardRef render functions accept exactly two parameters: props and ref. %s",D.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),D!=null&&(D.defaultProps!=null||D.propTypes!=null)&&ge("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var V={$$typeof:w,render:D};{var ue;Object.defineProperty(V,"displayName",{enumerable:!1,configurable:!0,get:function(){return ue},set:function(ve){ue=ve,!D.name&&!D.displayName&&(D.displayName=ve)}})}return V}var W;W=Symbol.for("react.module.reference");function Te(D){return!!(typeof D=="string"||typeof D=="function"||D===p||D===S||De||D===v||D===T||D===A||N||D===j||Z||F||L||typeof D=="object"&&D!==null&&(D.$$typeof===P||D.$$typeof===H||D.$$typeof===b||D.$$typeof===C||D.$$typeof===w||D.$$typeof===W||D.getModuleId!==void 0))}function je(D,V){Te(D)||ge("memo: The first argument must be a component. Instead received: %s",D===null?"null":typeof D);var ue={$$typeof:H,type:D,compare:V===void 0?null:V};{var ve;Object.defineProperty(ue,"displayName",{enumerable:!1,configurable:!0,get:function(){return ve},set:function(Ie){ve=Ie,!D.name&&!D.displayName&&(D.displayName=Ie)}})}return ue}function et(){var D=U.current;return D===null&&ge(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
27
27
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
28
28
|
2. You might be breaking the Rules of Hooks
|
|
29
29
|
3. You might have more than one copy of React in the same app
|
|
@@ -31,13 +31,13 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f
|
|
|
31
31
|
`+Wa+D}}var _l=!1,Fo;{var Tu=typeof WeakMap=="function"?WeakMap:Map;Fo=new Tu}function Ru(D,V){if(!D||_l)return"";{var ue=Fo.get(D);if(ue!==void 0)return ue}var ve;_l=!0;var Ie=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var pt;pt=Va.current,Va.current=null,ko();try{if(V){var Ue=function(){throw Error()};if(Object.defineProperty(Ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ue,[])}catch(Zr){ve=Zr}Reflect.construct(D,[],Ue)}else{try{Ue.call()}catch(Zr){ve=Zr}D.call(Ue.prototype)}}else{try{throw Error()}catch(Zr){ve=Zr}D()}}catch(Zr){if(Zr&&ve&&typeof Zr.stack=="string"){for(var xt=Zr.stack.split(`
|
|
32
32
|
`),Pt=ve.stack.split(`
|
|
33
33
|
`),Xt=xt.length-1,Ir=Pt.length-1;Xt>=1&&Ir>=0&&xt[Xt]!==Pt[Ir];)Ir--;for(;Xt>=1&&Ir>=0;Xt--,Ir--)if(xt[Xt]!==Pt[Ir]){if(Xt!==1||Ir!==1)do if(Xt--,Ir--,Ir<0||xt[Xt]!==Pt[Ir]){var Dr=`
|
|
34
|
-
`+xt[Xt].replace(" at new "," at ");return D.displayName&&Dr.includes("<anonymous>")&&(Dr=Dr.replace("<anonymous>",D.displayName)),typeof D=="function"&&Fo.set(D,Dr),Dr}while(Xt>=1&&Ir>=0);break}}}finally{_l=!1,Va.current=pt,na(),Error.prepareStackTrace=Ie}var Mt=D?D.displayName||D.name:"",Tr=Mt?Du(Mt):"";return typeof D=="function"&&Fo.set(D,Tr),Tr}function Ys(D,V,ue){return Ru(D,!1)}function h0(D){var V=D.prototype;return!!(V&&V.isReactComponent)}function Vs(D,V,ue){if(D==null)return"";if(typeof D=="function")return Ru(D,h0(D));if(typeof D=="string")return Du(D);switch(D){case
|
|
34
|
+
`+xt[Xt].replace(" at new "," at ");return D.displayName&&Dr.includes("<anonymous>")&&(Dr=Dr.replace("<anonymous>",D.displayName)),typeof D=="function"&&Fo.set(D,Dr),Dr}while(Xt>=1&&Ir>=0);break}}}finally{_l=!1,Va.current=pt,na(),Error.prepareStackTrace=Ie}var Mt=D?D.displayName||D.name:"",Tr=Mt?Du(Mt):"";return typeof D=="function"&&Fo.set(D,Tr),Tr}function Ys(D,V,ue){return Ru(D,!1)}function h0(D){var V=D.prototype;return!!(V&&V.isReactComponent)}function Vs(D,V,ue){if(D==null)return"";if(typeof D=="function")return Ru(D,h0(D));if(typeof D=="string")return Du(D);switch(D){case T:return Du("Suspense");case A:return Du("SuspenseList")}if(typeof D=="object")switch(D.$$typeof){case w:return Ys(D.render);case H:return Vs(D.type,V,ue);case P:{var ve=D,Ie=ve._payload,pt=ve._init;try{return Vs(pt(Ie),V,ue)}catch{}}}return""}var sr={},Au=be.ReactDebugCurrentFrame;function Zt(D){if(D){var V=D._owner,ue=Vs(D.type,D._source,V?V.type:null);Au.setExtraStackFrame(ue)}else Au.setExtraStackFrame(null)}function Bc(D,V,ue,ve,Ie){{var pt=Function.call.bind(tr);for(var Ue in D)if(pt(D,Ue)){var xt=void 0;try{if(typeof D[Ue]!="function"){var Pt=Error((ve||"React class")+": "+ue+" type `"+Ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof D[Ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Pt.name="Invariant Violation",Pt}xt=D[Ue](V,Ue,ve,ue,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Xt){xt=Xt}xt&&!(xt instanceof Error)&&(Zt(Ie),ge("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",ue,Ue,typeof xt),Zt(null)),xt instanceof Error&&!(xt.message in sr)&&(sr[xt.message]=!0,Zt(Ie),ge("Failed %s type: %s",ue,xt.message),Zt(null))}}}function vs(D){if(D){var V=D._owner,ue=Vs(D.type,D._source,V?V.type:null);Ee(ue)}else Ee(null)}var _t;_t=!1;function ku(){if(X.current){var D=qr(X.current.type);if(D)return`
|
|
35
35
|
|
|
36
36
|
Check the render method of \``+D+"`."}return""}function Wn(D){if(D!==void 0){var V=D.fileName.replace(/^.*[\\\/]/,""),ue=D.lineNumber;return`
|
|
37
37
|
|
|
38
38
|
Check your code at `+V+":"+ue+"."}return""}function gs(D){return D!=null?Wn(D.__source):""}var mi={};function ms(D){var V=ku();if(!V){var ue=typeof D=="string"?D:D.displayName||D.name;ue&&(V=`
|
|
39
39
|
|
|
40
|
-
Check the top-level render call using <`+ue+">.")}return V}function Ur(D,V){if(!(!D._store||D._store.validated||D.key!=null)){D._store.validated=!0;var ue=ms(V);if(!mi[ue]){mi[ue]=!0;var ve="";D&&D._owner&&D._owner!==X.current&&(ve=" It was passed a child from "+qr(D._owner.type)+"."),vs(D),ge('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ue,ve),vs(null)}}}function _r(D,V){if(typeof D=="object"){if(qt(D))for(var ue=0;ue<D.length;ue++){var ve=D[ue];Nr(ve)&&Ur(ve,V)}else if(Nr(D))D._store&&(D._store.validated=!0);else if(D){var Ie=M(D);if(typeof Ie=="function"&&Ie!==D.entries)for(var pt=Ie.call(D),Ue;!(Ue=pt.next()).done;)Nr(Ue.value)&&Ur(Ue.value,V)}}}function Oo(D){{var V=D.type;if(V==null||typeof V=="string")return;var ue;if(typeof V=="function")ue=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===
|
|
40
|
+
Check the top-level render call using <`+ue+">.")}return V}function Ur(D,V){if(!(!D._store||D._store.validated||D.key!=null)){D._store.validated=!0;var ue=ms(V);if(!mi[ue]){mi[ue]=!0;var ve="";D&&D._owner&&D._owner!==X.current&&(ve=" It was passed a child from "+qr(D._owner.type)+"."),vs(D),ge('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ue,ve),vs(null)}}}function _r(D,V){if(typeof D=="object"){if(qt(D))for(var ue=0;ue<D.length;ue++){var ve=D[ue];Nr(ve)&&Ur(ve,V)}else if(Nr(D))D._store&&(D._store.validated=!0);else if(D){var Ie=M(D);if(typeof Ie=="function"&&Ie!==D.entries)for(var pt=Ie.call(D),Ue;!(Ue=pt.next()).done;)Nr(Ue.value)&&Ur(Ue.value,V)}}}function Oo(D){{var V=D.type;if(V==null||typeof V=="string")return;var ue;if(typeof V=="function")ue=V.propTypes;else if(typeof V=="object"&&(V.$$typeof===w||V.$$typeof===H))ue=V.propTypes;else return;if(ue){var ve=qr(V);Bc(ue,D.props,"prop",ve,D)}else if(V.PropTypes!==void 0&&!_t){_t=!0;var Ie=qr(V);ge("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ie||"Unknown")}typeof V.getDefaultProps=="function"&&!V.getDefaultProps.isReactClassApproved&&ge("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Fn(D){{for(var V=Object.keys(D.props),ue=0;ue<V.length;ue++){var ve=V[ue];if(ve!=="children"&&ve!=="key"){vs(D),ge("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),vs(null);break}}D.ref!==null&&(vs(D),ge("Invalid attribute `ref` supplied to `React.Fragment`."),vs(null))}}function yi(D,V,ue){var ve=Te(D);if(!ve){var Ie="";(D===void 0||typeof D=="object"&&D!==null&&Object.keys(D).length===0)&&(Ie+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var pt=gs(V);pt?Ie+=pt:Ie+=ku();var Ue;D===null?Ue="null":qt(D)?Ue="array":D!==void 0&&D.$$typeof===l?(Ue="<"+(qr(D.type)||"Unknown")+" />",Ie=" Did you accidentally export a JSX literal instead of a component?"):Ue=typeof D,ge("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ue,Ie)}var xt=bt.apply(this,arguments);if(xt==null)return xt;if(ve)for(var Pt=2;Pt<arguments.length;Pt++)_r(arguments[Pt],D);return D===p?Fn(xt):Oo(xt),xt}var Ca=!1;function Dl(D){var V=yi.bind(null,D);return V.type=D,Ca||(Ca=!0,$e("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(V,"type",{enumerable:!1,get:function(){return $e("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:D}),D}}),V}function Mc(D,V,ue){for(var ve=Sr.apply(this,arguments),Ie=2;Ie<arguments.length;Ie++)_r(arguments[Ie],ve.type);return Oo(ve),ve}function Nc(D,V){var ue=q.transition;q.transition={};var ve=q.transition;q.transition._updatedFibers=new Set;try{D()}finally{if(q.transition=ue,ue===null&&ve._updatedFibers){var Ie=ve._updatedFibers.size;Ie>10&&$e("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),ve._updatedFibers.clear()}}}var Bo=!1,Tl=null;function p0(D){if(Tl===null)try{var V=("require"+Math.random()).slice(0,7),ue=o&&o[V];Tl=ue.call(o,"timers").setImmediate}catch{Tl=function(Ie){Bo===!1&&(Bo=!0,typeof MessageChannel>"u"&&ge("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var pt=new MessageChannel;pt.port1.onmessage=Ie,pt.port2.postMessage(void 0)}}return Tl(D)}var Sa=0,Ga=!1;function ys(D){{var V=Sa;Sa++,K.current===null&&(K.current=[]);var ue=K.isBatchingLegacy,ve;try{if(K.isBatchingLegacy=!0,ve=D(),!ue&&K.didScheduleLegacyUpdate){var Ie=K.current;Ie!==null&&(K.didScheduleLegacyUpdate=!1,Mo(Ie))}}catch(Mt){throw wa(V),Mt}finally{K.isBatchingLegacy=ue}if(ve!==null&&typeof ve=="object"&&typeof ve.then=="function"){var pt=ve,Ue=!1,xt={then:function(Mt,Tr){Ue=!0,pt.then(function(Zr){wa(V),Sa===0?Fu(Zr,Mt,Tr):Mt(Zr)},function(Zr){wa(V),Tr(Zr)})}};return!Ga&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Ue||(Ga=!0,ge("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),xt}else{var Pt=ve;if(wa(V),Sa===0){var Xt=K.current;Xt!==null&&(Mo(Xt),K.current=null);var Ir={then:function(Mt,Tr){K.current===null?(K.current=[],Fu(Pt,Mt,Tr)):Mt(Pt)}};return Ir}else{var Dr={then:function(Mt,Tr){Mt(Pt)}};return Dr}}}}function wa(D){D!==Sa-1&&ge("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Sa=D}function Fu(D,V,ue){{var ve=K.current;if(ve!==null)try{Mo(ve),p0(function(){ve.length===0?(K.current=null,V(D)):Fu(D,V,ue)})}catch(Ie){ue(Ie)}else V(D)}}var Ou=!1;function Mo(D){if(!Ou){Ou=!0;var V=0;try{for(;V<D.length;V++){var ue=D[V];do ue=ue(!0);while(ue!==null)}D.length=0}catch(ve){throw D=D.slice(V+1),ve}finally{Ou=!1}}}var Rl=yi,Bu=Mc,Mu=Dl,Ka={map:ja,forEach:cs,count:qs,toArray:fs,only:ds};r.Children=Ka,r.Component=oe,r.Fragment=p,r.Profiler=S,r.PureComponent=Re,r.StrictMode=v,r.Suspense=T,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=be,r.act=ys,r.cloneElement=Bu,r.createContext=hs,r.createElement=Rl,r.createFactory=Mu,r.createRef=dr,r.forwardRef=ps,r.isValidElement=Nr,r.lazy=Ea,r.memo=je,r.startTransition=Nc,r.unstable_act=ys,r.useCallback=Vn,r.useContext=kt,r.useDebugValue=Ft,r.useDeferredValue=Ya,r.useEffect=ln,r.useId=wl,r.useImperativeHandle=qa,r.useInsertionEffect=Hr,r.useLayoutEffect=Lr,r.useMemo=za,r.useReducer=$t,r.useRef=Nt,r.useState=Dt,r.useSyncExternalStore=bl,r.useTransition=Bt,r.version=i,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Vh,Vh.exports)),Vh.exports}process.env.NODE_ENV==="production"?qy.exports=$T():qy.exports=PT();var zt=qy.exports;const LT=I2(zt);var Yy={exports:{}},va={},yv={exports:{}},Vy={};/**
|
|
41
41
|
* @license React
|
|
42
42
|
* scheduler.production.min.js
|
|
43
43
|
*
|
|
@@ -45,7 +45,7 @@ Check the top-level render call using <`+ue+">.")}return V}function Ur(D,V){if(!
|
|
|
45
45
|
*
|
|
46
46
|
* This source code is licensed under the MIT license found in the
|
|
47
47
|
* LICENSE file in the root directory of this source tree.
|
|
48
|
-
*/var L2;function UT(){return L2||(L2=1,function(o){function r(Ce,He){var _e=Ce.length;Ce.push(He);e:for(;0<_e;){var $=_e-1>>>1,G=Ce[$];if(0<f(G,He))Ce[$]=He,Ce[_e]=G,_e=$;else break e}}function i(Ce){return Ce.length===0?null:Ce[0]}function l(Ce){if(Ce.length===0)return null;var He=Ce[0],_e=Ce.pop();if(_e!==He){Ce[0]=_e;e:for(var $=0,G=Ce.length,de=G>>>1;$<de;){var oe=2*($+1)-1,Je=Ce[oe],Ge=oe+1,ut=Ce[Ge];if(0>f(Je,_e))Ge<G&&0>f(ut,Je)?(Ce[$]=ut,Ce[Ge]=_e,$=Ge):(Ce[$]=Je,Ce[oe]=_e,$=oe);else if(Ge<G&&0>f(ut,_e))Ce[$]=ut,Ce[Ge]=_e,$=Ge;else break e}}return He}function f(Ce,He){var _e=Ce.sortIndex-He.sortIndex;return _e!==0?_e:Ce.id-He.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;o.unstable_now=function(){return p.now()}}else{var v=Date,S=v.now();o.unstable_now=function(){return v.now()-S}}var
|
|
48
|
+
*/var L2;function UT(){return L2||(L2=1,function(o){function r(Ce,He){var _e=Ce.length;Ce.push(He);e:for(;0<_e;){var $=_e-1>>>1,G=Ce[$];if(0<f(G,He))Ce[$]=He,Ce[_e]=G,_e=$;else break e}}function i(Ce){return Ce.length===0?null:Ce[0]}function l(Ce){if(Ce.length===0)return null;var He=Ce[0],_e=Ce.pop();if(_e!==He){Ce[0]=_e;e:for(var $=0,G=Ce.length,de=G>>>1;$<de;){var oe=2*($+1)-1,Je=Ce[oe],Ge=oe+1,ut=Ce[Ge];if(0>f(Je,_e))Ge<G&&0>f(ut,Je)?(Ce[$]=ut,Ce[Ge]=_e,$=Ge):(Ce[$]=Je,Ce[oe]=_e,$=oe);else if(Ge<G&&0>f(ut,_e))Ce[$]=ut,Ce[Ge]=_e,$=Ge;else break e}}return He}function f(Ce,He){var _e=Ce.sortIndex-He.sortIndex;return _e!==0?_e:Ce.id-He.id}if(typeof performance=="object"&&typeof performance.now=="function"){var p=performance;o.unstable_now=function(){return p.now()}}else{var v=Date,S=v.now();o.unstable_now=function(){return v.now()-S}}var b=[],C=[],w=1,T=null,A=3,H=!1,P=!1,j=!1,z=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function U(Ce){for(var He=i(C);He!==null;){if(He.callback===null)l(C);else if(He.startTime<=Ce)l(C),He.sortIndex=He.expirationTime,r(b,He);else break;He=i(C)}}function q(Ce){if(j=!1,U(Ce),!P)if(i(b)!==null)P=!0,$e(K);else{var He=i(C);He!==null&&ge(q,He.startTime-Ce)}}function K(Ce,He){P=!1,j&&(j=!1,B(R),R=-1),H=!0;var _e=A;try{for(U(He),T=i(b);T!==null&&(!(T.expirationTime>He)||Ce&&!F());){var $=T.callback;if(typeof $=="function"){T.callback=null,A=T.priorityLevel;var G=$(T.expirationTime<=He);He=o.unstable_now(),typeof G=="function"?T.callback=G:T===i(b)&&l(b),U(He)}else l(b);T=i(b)}if(T!==null)var de=!0;else{var oe=i(C);oe!==null&&ge(q,oe.startTime-He),de=!1}return de}finally{T=null,A=_e,H=!1}}var X=!1,ee=null,R=-1,Ee=5,Z=-1;function F(){return!(o.unstable_now()-Z<Ee)}function L(){if(ee!==null){var Ce=o.unstable_now();Z=Ce;var He=!0;try{He=ee(!0,Ce)}finally{He?N():(X=!1,ee=null)}}else X=!1}var N;if(typeof M=="function")N=function(){M(L)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,be=De.port2;De.port1.onmessage=L,N=function(){be.postMessage(null)}}else N=function(){z(L,0)};function $e(Ce){ee=Ce,X||(X=!0,N())}function ge(Ce,He){R=z(function(){Ce(o.unstable_now())},He)}o.unstable_IdlePriority=5,o.unstable_ImmediatePriority=1,o.unstable_LowPriority=4,o.unstable_NormalPriority=3,o.unstable_Profiling=null,o.unstable_UserBlockingPriority=2,o.unstable_cancelCallback=function(Ce){Ce.callback=null},o.unstable_continueExecution=function(){P||H||(P=!0,$e(K))},o.unstable_forceFrameRate=function(Ce){0>Ce||125<Ce?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ee=0<Ce?Math.floor(1e3/Ce):5},o.unstable_getCurrentPriorityLevel=function(){return A},o.unstable_getFirstCallbackNode=function(){return i(b)},o.unstable_next=function(Ce){switch(A){case 1:case 2:case 3:var He=3;break;default:He=A}var _e=A;A=He;try{return Ce()}finally{A=_e}},o.unstable_pauseExecution=function(){},o.unstable_requestPaint=function(){},o.unstable_runWithPriority=function(Ce,He){switch(Ce){case 1:case 2:case 3:case 4:case 5:break;default:Ce=3}var _e=A;A=Ce;try{return He()}finally{A=_e}},o.unstable_scheduleCallback=function(Ce,He,_e){var $=o.unstable_now();switch(typeof _e=="object"&&_e!==null?(_e=_e.delay,_e=typeof _e=="number"&&0<_e?$+_e:$):_e=$,Ce){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=_e+G,Ce={id:w++,callback:He,priorityLevel:Ce,startTime:_e,expirationTime:G,sortIndex:-1},_e>$?(Ce.sortIndex=_e,r(C,Ce),i(b)===null&&Ce===i(C)&&(j?(B(R),R=-1):j=!0,ge(q,_e-$))):(Ce.sortIndex=G,r(b,Ce),P||H||(P=!0,$e(K))),Ce},o.unstable_shouldYield=F,o.unstable_wrapCallback=function(Ce){var He=A;return function(){var _e=A;A=He;try{return Ce.apply(this,arguments)}finally{A=_e}}}}(Vy)),Vy}var Wy={};/**
|
|
49
49
|
* @license React
|
|
50
50
|
* scheduler.development.js
|
|
51
51
|
*
|
|
@@ -53,7 +53,7 @@ Check the top-level render call using <`+ue+">.")}return V}function Ur(D,V){if(!
|
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the MIT license found in the
|
|
55
55
|
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var U2;function jT(){return U2||(U2=1,function(o){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=!1,i=5;function l(Pe,rt){var bt=Pe.length;Pe.push(rt),v(Pe,rt,bt)}function f(Pe){return Pe.length===0?null:Pe[0]}function p(Pe){if(Pe.length===0)return null;var rt=Pe[0],bt=Pe.pop();return bt!==rt&&(Pe[0]=bt,S(Pe,bt,0)),rt}function v(Pe,rt,bt){for(var rr=bt;rr>0;){var Sr=rr-1>>>1,Nr=Pe[Sr];if(
|
|
56
|
+
*/var U2;function jT(){return U2||(U2=1,function(o){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var r=!1,i=5;function l(Pe,rt){var bt=Pe.length;Pe.push(rt),v(Pe,rt,bt)}function f(Pe){return Pe.length===0?null:Pe[0]}function p(Pe){if(Pe.length===0)return null;var rt=Pe[0],bt=Pe.pop();return bt!==rt&&(Pe[0]=bt,S(Pe,bt,0)),rt}function v(Pe,rt,bt){for(var rr=bt;rr>0;){var Sr=rr-1>>>1,Nr=Pe[Sr];if(b(Nr,rt)>0)Pe[Sr]=rt,Pe[rr]=Nr,rr=Sr;else return}}function S(Pe,rt,bt){for(var rr=bt,Sr=Pe.length,Nr=Sr>>>1;rr<Nr;){var Or=(rr+1)*2-1,gn=Pe[Or],wr=Or+1,yr=Pe[wr];if(b(gn,rt)<0)wr<Sr&&b(yr,gn)<0?(Pe[rr]=yr,Pe[wr]=rt,rr=wr):(Pe[rr]=gn,Pe[Or]=rt,rr=Or);else if(wr<Sr&&b(yr,rt)<0)Pe[rr]=yr,Pe[wr]=rt,rr=wr;else return}}function b(Pe,rt){var bt=Pe.sortIndex-rt.sortIndex;return bt!==0?bt:Pe.id-rt.id}var C=1,w=2,T=3,A=4,H=5;function P(Pe,rt){}var j=typeof performance=="object"&&typeof performance.now=="function";if(j){var z=performance;o.unstable_now=function(){return z.now()}}else{var B=Date,M=B.now();o.unstable_now=function(){return B.now()-M}}var U=1073741823,q=-1,K=250,X=5e3,ee=1e4,R=U,Ee=[],Z=[],F=1,L=null,N=T,De=!1,be=!1,$e=!1,ge=typeof setTimeout=="function"?setTimeout:null,Ce=typeof clearTimeout=="function"?clearTimeout:null,He=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _e(Pe){for(var rt=f(Z);rt!==null;){if(rt.callback===null)p(Z);else if(rt.startTime<=Pe)p(Z),rt.sortIndex=rt.expirationTime,l(Ee,rt);else return;rt=f(Z)}}function $(Pe){if($e=!1,_e(Pe),!be)if(f(Ee)!==null)be=!0,Kr(G);else{var rt=f(Z);rt!==null&&Qr($,rt.startTime-Pe)}}function G(Pe,rt){be=!1,$e&&($e=!1,Rn()),De=!0;var bt=N;try{var rr;if(!r)return de(Pe,rt)}finally{L=null,N=bt,De=!1}}function de(Pe,rt){var bt=rt;for(_e(bt),L=f(Ee);L!==null&&!(L.expirationTime>bt&&(!Pe||Tn()));){var rr=L.callback;if(typeof rr=="function"){L.callback=null,N=L.priorityLevel;var Sr=L.expirationTime<=bt,Nr=rr(Sr);bt=o.unstable_now(),typeof Nr=="function"?L.callback=Nr:L===f(Ee)&&p(Ee),_e(bt)}else p(Ee);L=f(Ee)}if(L!==null)return!0;var Or=f(Z);return Or!==null&&Qr($,Or.startTime-bt),!1}function oe(Pe,rt){switch(Pe){case C:case w:case T:case A:case H:break;default:Pe=T}var bt=N;N=Pe;try{return rt()}finally{N=bt}}function Je(Pe){var rt;switch(N){case C:case w:case T:rt=T;break;default:rt=N;break}var bt=N;N=rt;try{return Pe()}finally{N=bt}}function Ge(Pe){var rt=N;return function(){var bt=N;N=rt;try{return Pe.apply(this,arguments)}finally{N=bt}}}function ut(Pe,rt,bt){var rr=o.unstable_now(),Sr;if(typeof bt=="object"&&bt!==null){var Nr=bt.delay;typeof Nr=="number"&&Nr>0?Sr=rr+Nr:Sr=rr}else Sr=rr;var Or;switch(Pe){case C:Or=q;break;case w:Or=K;break;case H:Or=R;break;case A:Or=ee;break;case T:default:Or=X;break}var gn=Sr+Or,wr={id:F++,callback:rt,priorityLevel:Pe,startTime:Sr,expirationTime:gn,sortIndex:-1};return Sr>rr?(wr.sortIndex=Sr,l(Z,wr),f(Ee)===null&&wr===f(Z)&&($e?Rn():$e=!0,Qr($,Sr-rr))):(wr.sortIndex=gn,l(Ee,wr),!be&&!De&&(be=!0,Kr(G))),wr}function Se(){}function Re(){!be&&!De&&(be=!0,Kr(G))}function yt(){return f(Ee)}function dr(Pe){Pe.callback=null}function zr(){return N}var qt=!1,Qt=null,Fr=-1,br=i,nn=-1;function Tn(){var Pe=o.unstable_now()-nn;return!(Pe<br)}function vn(){}function qr(Pe){if(Pe<0||Pe>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Pe>0?br=Math.floor(1e3/Pe):br=i}var tr=function(){if(Qt!==null){var Pe=o.unstable_now();nn=Pe;var rt=!0,bt=!0;try{bt=Qt(rt,Pe)}finally{bt?ar():(qt=!1,Qt=null)}}else qt=!1},ar;if(typeof He=="function")ar=function(){He(tr)};else if(typeof MessageChannel<"u"){var Pr=new MessageChannel,ui=Pr.port2;Pr.port1.onmessage=tr,ar=function(){ui.postMessage(null)}}else ar=function(){ge(tr,0)};function Kr(Pe){Qt=Pe,qt||(qt=!0,ar())}function Qr(Pe,rt){Fr=ge(function(){Pe(o.unstable_now())},rt)}function Rn(){Ce(Fr),Fr=-1}var ta=vn,ra=null;o.unstable_IdlePriority=H,o.unstable_ImmediatePriority=C,o.unstable_LowPriority=A,o.unstable_NormalPriority=T,o.unstable_Profiling=ra,o.unstable_UserBlockingPriority=w,o.unstable_cancelCallback=dr,o.unstable_continueExecution=Re,o.unstable_forceFrameRate=qr,o.unstable_getCurrentPriorityLevel=zr,o.unstable_getFirstCallbackNode=yt,o.unstable_next=Je,o.unstable_pauseExecution=Se,o.unstable_requestPaint=ta,o.unstable_runWithPriority=oe,o.unstable_scheduleCallback=ut,o.unstable_shouldYield=Tn,o.unstable_wrapCallback=Ge,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Wy)),Wy}var j2;function z2(){return j2||(j2=1,process.env.NODE_ENV==="production"?yv.exports=UT():yv.exports=jT()),yv.exports}/**
|
|
57
57
|
* @license React
|
|
58
58
|
* react-dom.production.min.js
|
|
59
59
|
*
|
|
@@ -61,14 +61,14 @@ Check the top-level render call using <`+ue+">.")}return V}function Ur(D,V){if(!
|
|
|
61
61
|
*
|
|
62
62
|
* This source code is licensed under the MIT license found in the
|
|
63
63
|
* LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/var q2;function zT(){if(q2)return va;q2=1;var o=zt,r=z2();function i(n){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+n,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,f={};function p(n,a){v(n,a),v(n+"Capture",a)}function v(n,a){for(f[n]=a,n=0;n<a.length;n++)l.add(a[n])}var S=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),
|
|
64
|
+
*/var q2;function zT(){if(q2)return va;q2=1;var o=zt,r=z2();function i(n){for(var a="https://reactjs.org/docs/error-decoder.html?invariant="+n,c=1;c<arguments.length;c++)a+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,f={};function p(n,a){v(n,a),v(n+"Capture",a)}function v(n,a){for(f[n]=a,n=0;n<a.length;n++)l.add(a[n])}var S=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),b=Object.prototype.hasOwnProperty,C=/^[: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]*$/,w={},T={};function A(n){return b.call(T,n)?!0:b.call(w,n)?!1:C.test(n)?T[n]=!0:(w[n]=!0,!1)}function H(n,a,c,h){if(c!==null&&c.type===0)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":return h?!1:c!==null?!c.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function P(n,a,c,h){if(a===null||typeof a>"u"||H(n,a,c,h))return!0;if(h)return!1;if(c!==null)switch(c.type){case 3:return!a;case 4:return a===!1;case 5:return isNaN(a);case 6:return isNaN(a)||1>a}return!1}function j(n,a,c,h,m,x,k){this.acceptsBooleans=a===2||a===3||a===4,this.attributeName=h,this.attributeNamespace=m,this.mustUseProperty=c,this.propertyName=n,this.type=a,this.sanitizeURL=x,this.removeEmptyString=k}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){z[n]=new j(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var a=n[0];z[a]=new j(a,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){z[n]=new j(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){z[n]=new j(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){z[n]=new j(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){z[n]=new j(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){z[n]=new j(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){z[n]=new j(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){z[n]=new j(n,5,!1,n.toLowerCase(),null,!1,!1)});var B=/[\-:]([a-z])/g;function M(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var a=n.replace(B,M);z[a]=new j(a,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var a=n.replace(B,M);z[a]=new j(a,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var a=n.replace(B,M);z[a]=new j(a,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){z[n]=new j(n,1,!1,n.toLowerCase(),null,!1,!1)}),z.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){z[n]=new j(n,1,!1,n.toLowerCase(),null,!0,!0)});function U(n,a,c,h){var m=z.hasOwnProperty(a)?z[a]:null;(m!==null?m.type!==0:h||!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(P(a,c,m,h)&&(c=null),h||m===null?A(a)&&(c===null?n.removeAttribute(a):n.setAttribute(a,""+c)):m.mustUseProperty?n[m.propertyName]=c===null?m.type===3?!1:"":c:(a=m.attributeName,h=m.attributeNamespace,c===null?n.removeAttribute(a):(m=m.type,c=m===3||m===4&&c===!0?"":""+c,h?n.setAttributeNS(h,a,c):n.setAttribute(a,c))))}var q=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,K=Symbol.for("react.element"),X=Symbol.for("react.portal"),ee=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),Ee=Symbol.for("react.profiler"),Z=Symbol.for("react.provider"),F=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),$e=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),Ce=Symbol.iterator;function He(n){return n===null||typeof n!="object"?null:(n=Ce&&n[Ce]||n["@@iterator"],typeof n=="function"?n:null)}var _e=Object.assign,$;function G(n){if($===void 0)try{throw Error()}catch(c){var a=c.stack.trim().match(/\n( *(at )?)/);$=a&&a[1]||""}return`
|
|
65
65
|
`+$+n}var de=!1;function oe(n,a){if(!n||de)return"";de=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(a)if(a=function(){throw Error()},Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(a,[])}catch(ce){var h=ce}Reflect.construct(n,[],a)}else{try{a.call()}catch(ce){h=ce}n.call(a.prototype)}else{try{throw Error()}catch(ce){h=ce}n()}}catch(ce){if(ce&&h&&typeof ce.stack=="string"){for(var m=ce.stack.split(`
|
|
66
66
|
`),x=h.stack.split(`
|
|
67
67
|
`),k=m.length-1,Y=x.length-1;1<=k&&0<=Y&&m[k]!==x[Y];)Y--;for(;1<=k&&0<=Y;k--,Y--)if(m[k]!==x[Y]){if(k!==1||Y!==1)do if(k--,Y--,0>Y||m[k]!==x[Y]){var Q=`
|
|
68
|
-
`+m[k].replace(" at new "," at ");return n.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",n.displayName)),Q}while(1<=k&&0<=Y);break}}}finally{de=!1,Error.prepareStackTrace=c}return(n=n?n.displayName||n.name:"")?G(n):""}function Je(n){switch(n.tag){case 5:return G(n.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return n=oe(n.type,!1),n;case 11:return n=oe(n.type.render,!1),n;case 1:return n=oe(n.type,!0),n;default:return""}}function Ge(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case ee:return"Fragment";case X:return"Portal";case Ee:return"Profiler";case A:return"StrictMode";case N:return"Suspense";case De:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case F:return(n.displayName||"Context")+".Consumer";case Z:return(n._context.displayName||"Context")+".Provider";case L:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case be:return a=n.displayName||null,a!==null?a:Ge(n.type)||"Memo";case $e:a=n._payload,n=n._init;try{return Ge(n(a))}catch{}}return null}function ut(n){var a=n.type;switch(n.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=a.render,n=n.displayName||n.name||"",a.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ge(a);case 8:return a===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Se(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Re(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function yt(n){var a=Re(n)?"checked":"value",c=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),h=""+n[a];if(!n.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,x=c.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return m.call(this)},set:function(k){h=""+k,x.call(this,k)}}),Object.defineProperty(n,a,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(k){h=""+k},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function dr(n){n._valueTracker||(n._valueTracker=yt(n))}function zr(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var c=a.getValue(),h="";return n&&(h=Re(n)?n.checked?"true":"false":n.value),n=h,n!==c?(a.setValue(n),!0):!1}function qt(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Qt(n,a){var c=a.checked;return _e({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??n._wrapperState.initialChecked})}function Fr(n,a){var c=a.defaultValue==null?"":a.defaultValue,h=a.checked!=null?a.checked:a.defaultChecked;c=Se(a.value!=null?a.value:c),n._wrapperState={initialChecked:h,initialValue:c,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function br(n,a){a=a.checked,a!=null&&U(n,"checked",a,!1)}function nn(n,a){br(n,a);var c=Se(a.value),h=a.type;if(c!=null)h==="number"?(c===0&&n.value===""||n.value!=c)&&(n.value=""+c):n.value!==""+c&&(n.value=""+c);else if(h==="submit"||h==="reset"){n.removeAttribute("value");return}a.hasOwnProperty("value")?vn(n,a.type,c):a.hasOwnProperty("defaultValue")&&vn(n,a.type,Se(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(n.defaultChecked=!!a.defaultChecked)}function Tn(n,a,c){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var h=a.type;if(!(h!=="submit"&&h!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+n._wrapperState.initialValue,c||a===n.value||(n.value=a),n.defaultValue=a}c=n.name,c!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,c!==""&&(n.name=c)}function vn(n,a,c){(a!=="number"||qt(n.ownerDocument)!==n)&&(c==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+c&&(n.defaultValue=""+c))}var qr=Array.isArray;function tr(n,a,c,h){if(n=n.options,a){a={};for(var m=0;m<c.length;m++)a["$"+c[m]]=!0;for(c=0;c<n.length;c++)m=a.hasOwnProperty("$"+n[c].value),n[c].selected!==m&&(n[c].selected=m),m&&h&&(n[c].defaultSelected=!0)}else{for(c=""+Se(c),a=null,m=0;m<n.length;m++){if(n[m].value===c){n[m].selected=!0,h&&(n[m].defaultSelected=!0);return}a!==null||n[m].disabled||(a=n[m])}a!==null&&(a.selected=!0)}}function ar(n,a){if(a.dangerouslySetInnerHTML!=null)throw Error(i(91));return _e({},a,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function Pr(n,a){var c=a.value;if(c==null){if(c=a.children,a=a.defaultValue,c!=null){if(a!=null)throw Error(i(92));if(qr(c)){if(1<c.length)throw Error(i(93));c=c[0]}a=c}a==null&&(a=""),c=a}n._wrapperState={initialValue:Se(c)}}function ui(n,a){var c=Se(a.value),h=Se(a.defaultValue);c!=null&&(c=""+c,c!==n.value&&(n.value=c),a.defaultValue==null&&n.defaultValue!==c&&(n.defaultValue=c)),h!=null&&(n.defaultValue=""+h)}function Kr(n){var a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function Qr(n){switch(n){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Rn(n,a){return n==null||n==="http://www.w3.org/1999/xhtml"?Qr(a):n==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var ta,ra=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,c,h,m){MSApp.execUnsafeLocalFunction(function(){return n(a,c,h,m)})}:n}(function(n,a){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=a;else{for(ta=ta||document.createElement("div"),ta.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=ta.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;a.firstChild;)n.appendChild(a.firstChild)}});function Pe(n,a){if(a){var c=n.firstChild;if(c&&c===n.lastChild&&c.nodeType===3){c.nodeValue=a;return}}n.textContent=a}var rt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bt=["Webkit","ms","Moz","O"];Object.keys(rt).forEach(function(n){bt.forEach(function(a){a=a+n.charAt(0).toUpperCase()+n.substring(1),rt[a]=rt[n]})});function rr(n,a,c){return a==null||typeof a=="boolean"||a===""?"":c||typeof a!="number"||a===0||rt.hasOwnProperty(n)&&rt[n]?(""+a).trim():a+"px"}function Sr(n,a){n=n.style;for(var c in a)if(a.hasOwnProperty(c)){var h=c.indexOf("--")===0,m=rr(c,a[c],h);c==="float"&&(c="cssFloat"),h?n.setProperty(c,m):n[c]=m}}var Nr=_e({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Or(n,a){if(a){if(Nr[n]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(i(137,n));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(i(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(i(61))}if(a.style!=null&&typeof a.style!="object")throw Error(i(62))}}function gn(n,a){if(n.indexOf("-")===-1)return typeof a.is=="string";switch(n){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 wr=null;function yr(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var hr=null,vi=null,An=null;function Ni(n){if(n=dt(n)){if(typeof hr!="function")throw Error(i(280));var a=n.stateNode;a&&(a=Xr(a),hr(n.stateNode,n.type,a))}}function ja(n){vi?An?An.push(n):An=[n]:vi=n}function qs(){if(vi){var n=vi,a=An;if(An=vi=null,Ni(n),a)for(n=0;n<a.length;n++)Ni(a[n])}}function cs(n,a){return n(a)}function fs(){}var ds=!1;function hs(n,a,c){if(ds)return n(a,c);ds=!0;try{return cs(n,a,c)}finally{ds=!1,(vi!==null||An!==null)&&(fs(),qs())}}function Yn(n,a){var c=n.stateNode;if(c===null)return null;var h=Xr(c);if(h===null)return null;c=h[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(n=n.type,h=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!h;break e;default:n=!1}if(n)return null;if(c&&typeof c!="function")throw Error(i(231,a,typeof c));return c}var In=!1;if(S)try{var pr={};Object.defineProperty(pr,"passive",{get:function(){In=!0}}),window.addEventListener("test",pr,pr),window.removeEventListener("test",pr,pr)}catch{In=!1}function kn(n,a,c,h,m,x,k,Y,Q){var ce=Array.prototype.slice.call(arguments,3);try{a.apply(c,ce)}catch(Fe){this.onError(Fe)}}var Hi=!1,Ea=null,ps=!1,W=null,Te={onError:function(n){Hi=!0,Ea=n}};function je(n,a,c,h,m,x,k,Y,Q){Hi=!1,Ea=null,kn.apply(Te,arguments)}function et(n,a,c,h,m,x,k,Y,Q){if(je.apply(this,arguments),Hi){if(Hi){var ce=Ea;Hi=!1,Ea=null}else throw Error(i(198));ps||(ps=!0,W=ce)}}function kt(n){var a=n,c=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,a.flags&4098&&(c=a.return),n=a.return;while(n)}return a.tag===3?c:null}function Dt(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function $t(n){if(kt(n)!==n)throw Error(i(188))}function Nt(n){var a=n.alternate;if(!a){if(a=kt(n),a===null)throw Error(i(188));return a!==n?null:n}for(var c=n,h=a;;){var m=c.return;if(m===null)break;var x=m.alternate;if(x===null){if(h=m.return,h!==null){c=h;continue}break}if(m.child===x.child){for(x=m.child;x;){if(x===c)return $t(m),n;if(x===h)return $t(m),a;x=x.sibling}throw Error(i(188))}if(c.return!==h.return)c=m,h=x;else{for(var k=!1,Y=m.child;Y;){if(Y===c){k=!0,c=m,h=x;break}if(Y===h){k=!0,h=m,c=x;break}Y=Y.sibling}if(!k){for(Y=x.child;Y;){if(Y===c){k=!0,c=x,h=m;break}if(Y===h){k=!0,h=x,c=m;break}Y=Y.sibling}if(!k)throw Error(i(189))}}if(c.alternate!==h)throw Error(i(190))}if(c.tag!==3)throw Error(i(188));return c.stateNode.current===c?n:a}function ln(n){return n=Nt(n),n!==null?Hr(n):null}function Hr(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var a=Hr(n);if(a!==null)return a;n=n.sibling}return null}var Lr=r.unstable_scheduleCallback,Vn=r.unstable_cancelCallback,za=r.unstable_shouldYield,qa=r.unstable_requestPaint,Ft=r.unstable_now,Bt=r.unstable_getCurrentPriorityLevel,Ya=r.unstable_ImmediatePriority,wl=r.unstable_UserBlockingPriority,bl=r.unstable_NormalPriority,Ro=r.unstable_LowPriority,bu=r.unstable_IdlePriority,Ao=null,Ii=null;function Oc(n){if(Ii&&typeof Ii.onCommitFiberRoot=="function")try{Ii.onCommitFiberRoot(Ao,n,void 0,(n.current.flags&128)===128)}catch{}}var gi=Math.clz32?Math.clz32:_u,od=Math.log,ld=Math.LN2;function _u(n){return n>>>=0,n===0?32:31-(od(n)/ld|0)|0}var ko=64,na=4194304;function Va(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Wa(n,a){var c=n.pendingLanes;if(c===0)return 0;var h=0,m=n.suspendedLanes,x=n.pingedLanes,k=c&268435455;if(k!==0){var Y=k&~m;Y!==0?h=Va(Y):(x&=k,x!==0&&(h=Va(x)))}else k=c&~m,k!==0?h=Va(k):x!==0&&(h=Va(x));if(h===0)return 0;if(a!==0&&a!==h&&!(a&m)&&(m=h&-h,x=a&-a,m>=x||m===16&&(x&4194240)!==0))return a;if(h&4&&(h|=c&16),a=n.entangledLanes,a!==0)for(n=n.entanglements,a&=h;0<a;)c=31-gi(a),m=1<<c,h|=n[c],a&=~m;return h}function Du(n,a){switch(n){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _l(n,a){for(var c=n.suspendedLanes,h=n.pingedLanes,m=n.expirationTimes,x=n.pendingLanes;0<x;){var k=31-gi(x),Y=1<<k,Q=m[k];Q===-1?(!(Y&c)||Y&h)&&(m[k]=Du(Y,a)):Q<=a&&(n.expiredLanes|=Y),x&=~Y}}function Fo(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function Tu(){var n=ko;return ko<<=1,!(ko&4194240)&&(ko=64),n}function Ru(n){for(var a=[],c=0;31>c;c++)a.push(n);return a}function Ys(n,a,c){n.pendingLanes|=a,a!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,a=31-gi(a),n[a]=c}function h0(n,a){var c=n.pendingLanes&~a;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=a,n.mutableReadLanes&=a,n.entangledLanes&=a,a=n.entanglements;var h=n.eventTimes;for(n=n.expirationTimes;0<c;){var m=31-gi(c),x=1<<m;a[m]=0,h[m]=-1,n[m]=-1,c&=~x}}function Vs(n,a){var c=n.entangledLanes|=a;for(n=n.entanglements;c;){var h=31-gi(c),m=1<<h;m&a|n[h]&a&&(n[h]|=a),c&=~m}}var sr=0;function Au(n){return n&=-n,1<n?4<n?n&268435455?16:536870912:4:1}var Zt,Bc,vs,_t,ku,Wn=!1,gs=[],mi=null,ms=null,Ur=null,_r=new Map,Oo=new Map,Fn=[],yi="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ca(n,a){switch(n){case"focusin":case"focusout":mi=null;break;case"dragenter":case"dragleave":ms=null;break;case"mouseover":case"mouseout":Ur=null;break;case"pointerover":case"pointerout":_r.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(a.pointerId)}}function Dl(n,a,c,h,m,x){return n===null||n.nativeEvent!==x?(n={blockedOn:a,domEventName:c,eventSystemFlags:h,nativeEvent:x,targetContainers:[m]},a!==null&&(a=dt(a),a!==null&&Bc(a)),n):(n.eventSystemFlags|=h,a=n.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),n)}function Mc(n,a,c,h,m){switch(a){case"focusin":return mi=Dl(mi,n,a,c,h,m),!0;case"dragenter":return ms=Dl(ms,n,a,c,h,m),!0;case"mouseover":return Ur=Dl(Ur,n,a,c,h,m),!0;case"pointerover":var x=m.pointerId;return _r.set(x,Dl(_r.get(x)||null,n,a,c,h,m)),!0;case"gotpointercapture":return x=m.pointerId,Oo.set(x,Dl(Oo.get(x)||null,n,a,c,h,m)),!0}return!1}function Nc(n){var a=Nl(n.target);if(a!==null){var c=kt(a);if(c!==null){if(a=c.tag,a===13){if(a=Dt(c),a!==null){n.blockedOn=a,ku(n.priority,function(){vs(c)});return}}else if(a===3&&c.stateNode.current.memoizedState.isDehydrated){n.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Bo(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var c=Bu(n.domEventName,n.eventSystemFlags,a[0],n.nativeEvent);if(c===null){c=n.nativeEvent;var h=new c.constructor(c.type,c);wr=h,c.target.dispatchEvent(h),wr=null}else return a=dt(c),a!==null&&Bc(a),n.blockedOn=c,!1;a.shift()}return!0}function Tl(n,a,c){Bo(n)&&c.delete(a)}function p0(){Wn=!1,mi!==null&&Bo(mi)&&(mi=null),ms!==null&&Bo(ms)&&(ms=null),Ur!==null&&Bo(Ur)&&(Ur=null),_r.forEach(Tl),Oo.forEach(Tl)}function Sa(n,a){n.blockedOn===a&&(n.blockedOn=null,Wn||(Wn=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,p0)))}function Ga(n){function a(m){return Sa(m,n)}if(0<gs.length){Sa(gs[0],n);for(var c=1;c<gs.length;c++){var h=gs[c];h.blockedOn===n&&(h.blockedOn=null)}}for(mi!==null&&Sa(mi,n),ms!==null&&Sa(ms,n),Ur!==null&&Sa(Ur,n),_r.forEach(a),Oo.forEach(a),c=0;c<Fn.length;c++)h=Fn[c],h.blockedOn===n&&(h.blockedOn=null);for(;0<Fn.length&&(c=Fn[0],c.blockedOn===null);)Nc(c),c.blockedOn===null&&Fn.shift()}var ys=q.ReactCurrentBatchConfig,wa=!0;function Fu(n,a,c,h){var m=sr,x=ys.transition;ys.transition=null;try{sr=1,Mo(n,a,c,h)}finally{sr=m,ys.transition=x}}function Ou(n,a,c,h){var m=sr,x=ys.transition;ys.transition=null;try{sr=4,Mo(n,a,c,h)}finally{sr=m,ys.transition=x}}function Mo(n,a,c,h){if(wa){var m=Bu(n,a,c,h);if(m===null)Ed(n,a,h,Rl,c),Ca(n,h);else if(Mc(m,n,a,c,h))h.stopPropagation();else if(Ca(n,h),a&4&&-1<yi.indexOf(n)){for(;m!==null;){var x=dt(m);if(x!==null&&Zt(x),x=Bu(n,a,c,h),x===null&&Ed(n,a,h,Rl,c),x===m)break;m=x}m!==null&&h.stopPropagation()}else Ed(n,a,h,null,c)}}var Rl=null;function Bu(n,a,c,h){if(Rl=null,n=yr(h),n=Nl(n),n!==null)if(a=kt(n),a===null)n=null;else if(c=a.tag,c===13){if(n=Dt(a),n!==null)return n;n=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null);return Rl=n,null}function Mu(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Bt()){case Ya:return 1;case wl:return 4;case bl:case Ro:return 16;case bu:return 536870912;default:return 16}default:return 16}}var Ka=null,D=null,V=null;function ue(){if(V)return V;var n,a=D,c=a.length,h,m="value"in Ka?Ka.value:Ka.textContent,x=m.length;for(n=0;n<c&&a[n]===m[n];n++);var k=c-n;for(h=1;h<=k&&a[c-h]===m[x-h];h++);return V=m.slice(n,1<h?1-h:void 0)}function ve(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Ie(){return!0}function pt(){return!1}function Ue(n){function a(c,h,m,x,k){this._reactName=c,this._targetInst=m,this.type=h,this.nativeEvent=x,this.target=k,this.currentTarget=null;for(var Y in n)n.hasOwnProperty(Y)&&(c=n[Y],this[Y]=c?c(x):x[Y]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Ie:pt,this.isPropagationStopped=pt,this}return _e(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Ie)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Ie)},persist:function(){},isPersistent:Ie}),a}var xt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pt=Ue(xt),Xt=_e({},xt,{view:0,detail:0}),Ir=Ue(Xt),Dr,Mt,Tr,Zr=_e({},Xt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:x0,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Tr&&(Tr&&n.type==="mousemove"?(Dr=n.screenX-Tr.screenX,Mt=n.screenY-Tr.screenY):Mt=Dr=0,Tr=n),Dr)},movementY:function(n){return"movementY"in n?n.movementY:Mt}}),No=Ue(Zr),Hc=_e({},Zr,{dataTransfer:0}),Ws=Ue(Hc),Ic=_e({},Xt,{relatedTarget:0}),Al=Ue(Ic),v0=_e({},xt,{animationName:0,elapsedTime:0,pseudoElement:0}),ud=Ue(v0),g0=_e({},xt,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Xv=Ue(g0),m0=_e({},xt,{data:0}),y0=Ue(m0),Jv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eg={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"},C1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gs(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=C1[n])?!!a[n]:!1}function x0(){return Gs}var E0=_e({},Xt,{key:function(n){if(n.key){var a=Jv[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=ve(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?eg[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:x0,charCode:function(n){return n.type==="keypress"?ve(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ve(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),C0=Ue(E0),S0=_e({},Zr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tg=Ue(S0),cd=_e({},Xt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:x0}),rg=Ue(cd),$i=_e({},xt,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ks=Ue($i),mn=_e({},Zr,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Qs=Ue(mn),w0=[9,13,27,32],Nu=S&&"CompositionEvent"in window,$c=null;S&&"documentMode"in document&&($c=document.documentMode);var Pc=S&&"TextEvent"in window&&!$c,ng=S&&(!Nu||$c&&8<$c&&11>=$c),ig=" ",fd=!1;function ag(n,a){switch(n){case"keyup":return w0.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Hu=!1;function og(n,a){switch(n){case"compositionend":return sg(a);case"keypress":return a.which!==32?null:(fd=!0,ig);case"textInput":return n=a.data,n===ig&&fd?null:n;default:return null}}function S1(n,a){if(Hu)return n==="compositionend"||!Nu&&ag(n,a)?(n=ue(),V=D=Ka=null,Hu=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return ng&&a.locale!=="ko"?null:a.data;default:return null}}var w1={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 lg(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!w1[n.type]:a==="textarea"}function b0(n,a,c,h){ja(h),a=Yc(a,"onChange"),0<a.length&&(c=new Pt("onChange","change",null,c,h),n.push({event:c,listeners:a}))}var xs=null,kl=null;function ug(n){Bl(n,0)}function Lc(n){var a=Za(n);if(zr(a))return n}function b1(n,a){if(n==="change")return a}var cg=!1;if(S){var _0;if(S){var D0="oninput"in document;if(!D0){var fg=document.createElement("div");fg.setAttribute("oninput","return;"),D0=typeof fg.oninput=="function"}_0=D0}else _0=!1;cg=_0&&(!document.documentMode||9<document.documentMode)}function dg(){xs&&(xs.detachEvent("onpropertychange",hg),kl=xs=null)}function hg(n){if(n.propertyName==="value"&&Lc(kl)){var a=[];b0(a,kl,n,yr(n)),hs(ug,a)}}function _1(n,a,c){n==="focusin"?(dg(),xs=a,kl=c,xs.attachEvent("onpropertychange",hg)):n==="focusout"&&dg()}function pg(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Lc(kl)}function D1(n,a){if(n==="click")return Lc(a)}function vg(n,a){if(n==="input"||n==="change")return Lc(a)}function T1(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Qa=typeof Object.is=="function"?Object.is:T1;function Uc(n,a){if(Qa(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var c=Object.keys(n),h=Object.keys(a);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var m=c[h];if(!w.call(a,m)||!Qa(n[m],a[m]))return!1}return!0}function gg(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function dd(n,a){var c=gg(n);n=0;for(var h;c;){if(c.nodeType===3){if(h=n+c.textContent.length,n<=a&&h>=a)return{node:c,offset:a-n};n=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=gg(c)}}function Ho(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Ho(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function jc(){for(var n=window,a=qt();a instanceof n.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}if(c)n=a.contentWindow;else break;a=qt(n.document)}return a}function hd(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function Iu(n){var a=jc(),c=n.focusedElem,h=n.selectionRange;if(a!==c&&c&&c.ownerDocument&&Ho(c.ownerDocument.documentElement,c)){if(h!==null&&hd(c)){if(a=h.start,n=h.end,n===void 0&&(n=a),"selectionStart"in c)c.selectionStart=a,c.selectionEnd=Math.min(n,c.value.length);else if(n=(a=c.ownerDocument||document)&&a.defaultView||window,n.getSelection){n=n.getSelection();var m=c.textContent.length,x=Math.min(h.start,m);h=h.end===void 0?x:Math.min(h.end,m),!n.extend&&x>h&&(m=h,h=x,x=m),m=dd(c,x);var k=dd(c,h);m&&k&&(n.rangeCount!==1||n.anchorNode!==m.node||n.anchorOffset!==m.offset||n.focusNode!==k.node||n.focusOffset!==k.offset)&&(a=a.createRange(),a.setStart(m.node,m.offset),n.removeAllRanges(),x>h?(n.addRange(a),n.extend(k.node,k.offset)):(a.setEnd(k.node,k.offset),n.addRange(a)))}}for(a=[],n=c;n=n.parentNode;)n.nodeType===1&&a.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<a.length;c++)n=a[c],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var R1=S&&"documentMode"in document&&11>=document.documentMode,$u=null,T0=null,zc=null,R0=!1;function A0(n,a,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;R0||$u==null||$u!==qt(h)||(h=$u,"selectionStart"in h&&hd(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),zc&&Uc(zc,h)||(zc=h,h=Yc(T0,"onSelect"),0<h.length&&(a=new Pt("onSelect","select",null,a,c),n.push({event:a,listeners:h}),a.target=$u)))}function pd(n,a){var c={};return c[n.toLowerCase()]=a.toLowerCase(),c["Webkit"+n]="webkit"+a,c["Moz"+n]="moz"+a,c}var Fl={animationend:pd("Animation","AnimationEnd"),animationiteration:pd("Animation","AnimationIteration"),animationstart:pd("Animation","AnimationStart"),transitionend:pd("Transition","TransitionEnd")},Gn={},k0={};S&&(k0=document.createElement("div").style,"AnimationEvent"in window||(delete Fl.animationend.animation,delete Fl.animationiteration.animation,delete Fl.animationstart.animation),"TransitionEvent"in window||delete Fl.transitionend.transition);function vd(n){if(Gn[n])return Gn[n];if(!Fl[n])return n;var a=Fl[n],c;for(c in a)if(a.hasOwnProperty(c)&&c in k0)return Gn[n]=a[c];return n}var mg=vd("animationend"),yg=vd("animationiteration"),xg=vd("animationstart"),Eg=vd("transitionend"),F0=new Map,gd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ba(n,a){F0.set(n,a),p(a,[n])}for(var O0=0;O0<gd.length;O0++){var Ol=gd[O0],A1=Ol.toLowerCase(),k1=Ol[0].toUpperCase()+Ol.slice(1);ba(A1,"on"+k1)}ba(mg,"onAnimationEnd"),ba(yg,"onAnimationIteration"),ba(xg,"onAnimationStart"),ba("dblclick","onDoubleClick"),ba("focusin","onFocus"),ba("focusout","onBlur"),ba(Eg,"onTransitionEnd"),v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qc="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(" "),B0=new Set("cancel close invalid load scroll toggle".split(" ").concat(qc));function md(n,a,c){var h=n.type||"unknown-event";n.currentTarget=c,et(h,a,void 0,n),n.currentTarget=null}function Bl(n,a){a=(a&4)!==0;for(var c=0;c<n.length;c++){var h=n[c],m=h.event;h=h.listeners;e:{var x=void 0;if(a)for(var k=h.length-1;0<=k;k--){var Y=h[k],Q=Y.instance,ce=Y.currentTarget;if(Y=Y.listener,Q!==x&&m.isPropagationStopped())break e;md(m,Y,ce),x=Q}else for(k=0;k<h.length;k++){if(Y=h[k],Q=Y.instance,ce=Y.currentTarget,Y=Y.listener,Q!==x&&m.isPropagationStopped())break e;md(m,Y,ce),x=Q}}}if(ps)throw n=W,ps=!1,W=null,n}function xr(n,a){var c=a[Gc];c===void 0&&(c=a[Gc]=new Set);var h=n+"__bubble";c.has(h)||(Cg(a,n,2,!1),c.add(h))}function yd(n,a,c){var h=0;a&&(h|=4),Cg(c,n,h,a)}var xd="_reactListening"+Math.random().toString(36).slice(2);function Pu(n){if(!n[xd]){n[xd]=!0,l.forEach(function(c){c!=="selectionchange"&&(B0.has(c)||yd(c,!1,n),yd(c,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[xd]||(a[xd]=!0,yd("selectionchange",!1,a))}}function Cg(n,a,c,h){switch(Mu(a)){case 1:var m=Fu;break;case 4:m=Ou;break;default:m=Mo}c=m.bind(null,a,c,n),m=void 0,!In||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),h?m!==void 0?n.addEventListener(a,c,{capture:!0,passive:m}):n.addEventListener(a,c,!0):m!==void 0?n.addEventListener(a,c,{passive:m}):n.addEventListener(a,c,!1)}function Ed(n,a,c,h,m){var x=h;if(!(a&1)&&!(a&2)&&h!==null)e:for(;;){if(h===null)return;var k=h.tag;if(k===3||k===4){var Y=h.stateNode.containerInfo;if(Y===m||Y.nodeType===8&&Y.parentNode===m)break;if(k===4)for(k=h.return;k!==null;){var Q=k.tag;if((Q===3||Q===4)&&(Q=k.stateNode.containerInfo,Q===m||Q.nodeType===8&&Q.parentNode===m))return;k=k.return}for(;Y!==null;){if(k=Nl(Y),k===null)return;if(Q=k.tag,Q===5||Q===6){h=x=k;continue e}Y=Y.parentNode}}h=h.return}hs(function(){var ce=x,Fe=yr(c),Be=[];e:{var ke=F0.get(n);if(ke!==void 0){var Ke=Pt,at=n;switch(n){case"keypress":if(ve(c)===0)break e;case"keydown":case"keyup":Ke=C0;break;case"focusin":at="focus",Ke=Al;break;case"focusout":at="blur",Ke=Al;break;case"beforeblur":case"afterblur":Ke=Al;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ke=No;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ke=Ws;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ke=rg;break;case mg:case yg:case xg:Ke=ud;break;case Eg:Ke=Ks;break;case"scroll":Ke=Ir;break;case"wheel":Ke=Qs;break;case"copy":case"cut":case"paste":Ke=Xv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ke=tg}var lt=(a&4)!==0,hn=!lt&&n==="scroll",ne=lt?ke!==null?ke+"Capture":null:ke;lt=[];for(var te=ce,se;te!==null;){se=te;var Oe=se.stateNode;if(se.tag===5&&Oe!==null&&(se=Oe,ne!==null&&(Oe=Yn(te,ne),Oe!=null&<.push(Lu(te,Oe,se)))),hn)break;te=te.return}0<lt.length&&(ke=new Ke(ke,at,null,c,Fe),Be.push({event:ke,listeners:lt}))}}if(!(a&7)){e:{if(ke=n==="mouseover"||n==="pointerover",Ke=n==="mouseout"||n==="pointerout",ke&&c!==wr&&(at=c.relatedTarget||c.fromElement)&&(Nl(at)||at[Zs]))break e;if((Ke||ke)&&(ke=Fe.window===Fe?Fe:(ke=Fe.ownerDocument)?ke.defaultView||ke.parentWindow:window,Ke?(at=c.relatedTarget||c.toElement,Ke=ce,at=at?Nl(at):null,at!==null&&(hn=kt(at),at!==hn||at.tag!==5&&at.tag!==6)&&(at=null)):(Ke=null,at=ce),Ke!==at)){if(lt=No,Oe="onMouseLeave",ne="onMouseEnter",te="mouse",(n==="pointerout"||n==="pointerover")&&(lt=tg,Oe="onPointerLeave",ne="onPointerEnter",te="pointer"),hn=Ke==null?ke:Za(Ke),se=at==null?ke:Za(at),ke=new lt(Oe,te+"leave",Ke,c,Fe),ke.target=hn,ke.relatedTarget=se,Oe=null,Nl(Fe)===ce&&(lt=new lt(ne,te+"enter",at,c,Fe),lt.target=se,lt.relatedTarget=hn,Oe=lt),hn=Oe,Ke&&at)t:{for(lt=Ke,ne=at,te=0,se=lt;se;se=Io(se))te++;for(se=0,Oe=ne;Oe;Oe=Io(Oe))se++;for(;0<te-se;)lt=Io(lt),te--;for(;0<se-te;)ne=Io(ne),se--;for(;te--;){if(lt===ne||ne!==null&<===ne.alternate)break t;lt=Io(lt),ne=Io(ne)}lt=null}else lt=null;Ke!==null&&Sg(Be,ke,Ke,lt,!1),at!==null&&hn!==null&&Sg(Be,hn,at,lt,!0)}}e:{if(ke=ce?Za(ce):window,Ke=ke.nodeName&&ke.nodeName.toLowerCase(),Ke==="select"||Ke==="input"&&ke.type==="file")var st=b1;else if(lg(ke))if(cg)st=vg;else{st=pg;var mt=_1}else(Ke=ke.nodeName)&&Ke.toLowerCase()==="input"&&(ke.type==="checkbox"||ke.type==="radio")&&(st=D1);if(st&&(st=st(n,ce))){b0(Be,st,c,Fe);break e}mt&&mt(n,ke,ce),n==="focusout"&&(mt=ke._wrapperState)&&mt.controlled&&ke.type==="number"&&vn(ke,"number",ke.value)}switch(mt=ce?Za(ce):window,n){case"focusin":(lg(mt)||mt.contentEditable==="true")&&($u=mt,T0=ce,zc=null);break;case"focusout":zc=T0=$u=null;break;case"mousedown":R0=!0;break;case"contextmenu":case"mouseup":case"dragend":R0=!1,A0(Be,c,Fe);break;case"selectionchange":if(R1)break;case"keydown":case"keyup":A0(Be,c,Fe)}var Et;if(Nu)e:{switch(n){case"compositionstart":var wt="onCompositionStart";break e;case"compositionend":wt="onCompositionEnd";break e;case"compositionupdate":wt="onCompositionUpdate";break e}wt=void 0}else Hu?ag(n,c)&&(wt="onCompositionEnd"):n==="keydown"&&c.keyCode===229&&(wt="onCompositionStart");wt&&(ng&&c.locale!=="ko"&&(Hu||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&Hu&&(Et=ue()):(Ka=Fe,D="value"in Ka?Ka.value:Ka.textContent,Hu=!0)),mt=Yc(ce,wt),0<mt.length&&(wt=new y0(wt,n,null,c,Fe),Be.push({event:wt,listeners:mt}),Et?wt.data=Et:(Et=sg(c),Et!==null&&(wt.data=Et)))),(Et=Pc?og(n,c):S1(n,c))&&(ce=Yc(ce,"onBeforeInput"),0<ce.length&&(Fe=new y0("onBeforeInput","beforeinput",null,c,Fe),Be.push({event:Fe,listeners:ce}),Fe.data=Et))}Bl(Be,a)})}function Lu(n,a,c){return{instance:n,listener:a,currentTarget:c}}function Yc(n,a){for(var c=a+"Capture",h=[];n!==null;){var m=n,x=m.stateNode;m.tag===5&&x!==null&&(m=x,x=Yn(n,c),x!=null&&h.unshift(Lu(n,x,m)),x=Yn(n,a),x!=null&&h.push(Lu(n,x,m))),n=n.return}return h}function Io(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function Sg(n,a,c,h,m){for(var x=a._reactName,k=[];c!==null&&c!==h;){var Y=c,Q=Y.alternate,ce=Y.stateNode;if(Q!==null&&Q===h)break;Y.tag===5&&ce!==null&&(Y=ce,m?(Q=Yn(c,x),Q!=null&&k.unshift(Lu(c,Q,Y))):m||(Q=Yn(c,x),Q!=null&&k.push(Lu(c,Q,Y)))),c=c.return}k.length!==0&&n.push({event:a,listeners:k})}var wg=/\r\n?/g,F1=/\u0000|\uFFFD/g;function bg(n){return(typeof n=="string"?n:""+n).replace(wg,`
|
|
68
|
+
`+m[k].replace(" at new "," at ");return n.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",n.displayName)),Q}while(1<=k&&0<=Y);break}}}finally{de=!1,Error.prepareStackTrace=c}return(n=n?n.displayName||n.name:"")?G(n):""}function Je(n){switch(n.tag){case 5:return G(n.type);case 16:return G("Lazy");case 13:return G("Suspense");case 19:return G("SuspenseList");case 0:case 2:case 15:return n=oe(n.type,!1),n;case 11:return n=oe(n.type.render,!1),n;case 1:return n=oe(n.type,!0),n;default:return""}}function Ge(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case ee:return"Fragment";case X:return"Portal";case Ee:return"Profiler";case R:return"StrictMode";case N:return"Suspense";case De:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case F:return(n.displayName||"Context")+".Consumer";case Z:return(n._context.displayName||"Context")+".Provider";case L:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case be:return a=n.displayName||null,a!==null?a:Ge(n.type)||"Memo";case $e:a=n._payload,n=n._init;try{return Ge(n(a))}catch{}}return null}function ut(n){var a=n.type;switch(n.tag){case 24:return"Cache";case 9:return(a.displayName||"Context")+".Consumer";case 10:return(a._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=a.render,n=n.displayName||n.name||"",a.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ge(a);case 8:return a===R?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a}return null}function Se(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Re(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function yt(n){var a=Re(n)?"checked":"value",c=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),h=""+n[a];if(!n.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,x=c.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return m.call(this)},set:function(k){h=""+k,x.call(this,k)}}),Object.defineProperty(n,a,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(k){h=""+k},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function dr(n){n._valueTracker||(n._valueTracker=yt(n))}function zr(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var c=a.getValue(),h="";return n&&(h=Re(n)?n.checked?"true":"false":n.value),n=h,n!==c?(a.setValue(n),!0):!1}function qt(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Qt(n,a){var c=a.checked;return _e({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:c??n._wrapperState.initialChecked})}function Fr(n,a){var c=a.defaultValue==null?"":a.defaultValue,h=a.checked!=null?a.checked:a.defaultChecked;c=Se(a.value!=null?a.value:c),n._wrapperState={initialChecked:h,initialValue:c,controlled:a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null}}function br(n,a){a=a.checked,a!=null&&U(n,"checked",a,!1)}function nn(n,a){br(n,a);var c=Se(a.value),h=a.type;if(c!=null)h==="number"?(c===0&&n.value===""||n.value!=c)&&(n.value=""+c):n.value!==""+c&&(n.value=""+c);else if(h==="submit"||h==="reset"){n.removeAttribute("value");return}a.hasOwnProperty("value")?vn(n,a.type,c):a.hasOwnProperty("defaultValue")&&vn(n,a.type,Se(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(n.defaultChecked=!!a.defaultChecked)}function Tn(n,a,c){if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var h=a.type;if(!(h!=="submit"&&h!=="reset"||a.value!==void 0&&a.value!==null))return;a=""+n._wrapperState.initialValue,c||a===n.value||(n.value=a),n.defaultValue=a}c=n.name,c!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,c!==""&&(n.name=c)}function vn(n,a,c){(a!=="number"||qt(n.ownerDocument)!==n)&&(c==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+c&&(n.defaultValue=""+c))}var qr=Array.isArray;function tr(n,a,c,h){if(n=n.options,a){a={};for(var m=0;m<c.length;m++)a["$"+c[m]]=!0;for(c=0;c<n.length;c++)m=a.hasOwnProperty("$"+n[c].value),n[c].selected!==m&&(n[c].selected=m),m&&h&&(n[c].defaultSelected=!0)}else{for(c=""+Se(c),a=null,m=0;m<n.length;m++){if(n[m].value===c){n[m].selected=!0,h&&(n[m].defaultSelected=!0);return}a!==null||n[m].disabled||(a=n[m])}a!==null&&(a.selected=!0)}}function ar(n,a){if(a.dangerouslySetInnerHTML!=null)throw Error(i(91));return _e({},a,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function Pr(n,a){var c=a.value;if(c==null){if(c=a.children,a=a.defaultValue,c!=null){if(a!=null)throw Error(i(92));if(qr(c)){if(1<c.length)throw Error(i(93));c=c[0]}a=c}a==null&&(a=""),c=a}n._wrapperState={initialValue:Se(c)}}function ui(n,a){var c=Se(a.value),h=Se(a.defaultValue);c!=null&&(c=""+c,c!==n.value&&(n.value=c),a.defaultValue==null&&n.defaultValue!==c&&(n.defaultValue=c)),h!=null&&(n.defaultValue=""+h)}function Kr(n){var a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function Qr(n){switch(n){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Rn(n,a){return n==null||n==="http://www.w3.org/1999/xhtml"?Qr(a):n==="http://www.w3.org/2000/svg"&&a==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var ta,ra=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,c,h,m){MSApp.execUnsafeLocalFunction(function(){return n(a,c,h,m)})}:n}(function(n,a){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=a;else{for(ta=ta||document.createElement("div"),ta.innerHTML="<svg>"+a.valueOf().toString()+"</svg>",a=ta.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;a.firstChild;)n.appendChild(a.firstChild)}});function Pe(n,a){if(a){var c=n.firstChild;if(c&&c===n.lastChild&&c.nodeType===3){c.nodeValue=a;return}}n.textContent=a}var rt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},bt=["Webkit","ms","Moz","O"];Object.keys(rt).forEach(function(n){bt.forEach(function(a){a=a+n.charAt(0).toUpperCase()+n.substring(1),rt[a]=rt[n]})});function rr(n,a,c){return a==null||typeof a=="boolean"||a===""?"":c||typeof a!="number"||a===0||rt.hasOwnProperty(n)&&rt[n]?(""+a).trim():a+"px"}function Sr(n,a){n=n.style;for(var c in a)if(a.hasOwnProperty(c)){var h=c.indexOf("--")===0,m=rr(c,a[c],h);c==="float"&&(c="cssFloat"),h?n.setProperty(c,m):n[c]=m}}var Nr=_e({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Or(n,a){if(a){if(Nr[n]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw Error(i(137,n));if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw Error(i(60));if(typeof a.dangerouslySetInnerHTML!="object"||!("__html"in a.dangerouslySetInnerHTML))throw Error(i(61))}if(a.style!=null&&typeof a.style!="object")throw Error(i(62))}}function gn(n,a){if(n.indexOf("-")===-1)return typeof a.is=="string";switch(n){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 wr=null;function yr(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var hr=null,vi=null,An=null;function Ni(n){if(n=dt(n)){if(typeof hr!="function")throw Error(i(280));var a=n.stateNode;a&&(a=Xr(a),hr(n.stateNode,n.type,a))}}function ja(n){vi?An?An.push(n):An=[n]:vi=n}function qs(){if(vi){var n=vi,a=An;if(An=vi=null,Ni(n),a)for(n=0;n<a.length;n++)Ni(a[n])}}function cs(n,a){return n(a)}function fs(){}var ds=!1;function hs(n,a,c){if(ds)return n(a,c);ds=!0;try{return cs(n,a,c)}finally{ds=!1,(vi!==null||An!==null)&&(fs(),qs())}}function Yn(n,a){var c=n.stateNode;if(c===null)return null;var h=Xr(c);if(h===null)return null;c=h[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(n=n.type,h=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!h;break e;default:n=!1}if(n)return null;if(c&&typeof c!="function")throw Error(i(231,a,typeof c));return c}var In=!1;if(S)try{var pr={};Object.defineProperty(pr,"passive",{get:function(){In=!0}}),window.addEventListener("test",pr,pr),window.removeEventListener("test",pr,pr)}catch{In=!1}function kn(n,a,c,h,m,x,k,Y,Q){var ce=Array.prototype.slice.call(arguments,3);try{a.apply(c,ce)}catch(Fe){this.onError(Fe)}}var Hi=!1,Ea=null,ps=!1,W=null,Te={onError:function(n){Hi=!0,Ea=n}};function je(n,a,c,h,m,x,k,Y,Q){Hi=!1,Ea=null,kn.apply(Te,arguments)}function et(n,a,c,h,m,x,k,Y,Q){if(je.apply(this,arguments),Hi){if(Hi){var ce=Ea;Hi=!1,Ea=null}else throw Error(i(198));ps||(ps=!0,W=ce)}}function kt(n){var a=n,c=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,a.flags&4098&&(c=a.return),n=a.return;while(n)}return a.tag===3?c:null}function Dt(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function $t(n){if(kt(n)!==n)throw Error(i(188))}function Nt(n){var a=n.alternate;if(!a){if(a=kt(n),a===null)throw Error(i(188));return a!==n?null:n}for(var c=n,h=a;;){var m=c.return;if(m===null)break;var x=m.alternate;if(x===null){if(h=m.return,h!==null){c=h;continue}break}if(m.child===x.child){for(x=m.child;x;){if(x===c)return $t(m),n;if(x===h)return $t(m),a;x=x.sibling}throw Error(i(188))}if(c.return!==h.return)c=m,h=x;else{for(var k=!1,Y=m.child;Y;){if(Y===c){k=!0,c=m,h=x;break}if(Y===h){k=!0,h=m,c=x;break}Y=Y.sibling}if(!k){for(Y=x.child;Y;){if(Y===c){k=!0,c=x,h=m;break}if(Y===h){k=!0,h=x,c=m;break}Y=Y.sibling}if(!k)throw Error(i(189))}}if(c.alternate!==h)throw Error(i(190))}if(c.tag!==3)throw Error(i(188));return c.stateNode.current===c?n:a}function ln(n){return n=Nt(n),n!==null?Hr(n):null}function Hr(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var a=Hr(n);if(a!==null)return a;n=n.sibling}return null}var Lr=r.unstable_scheduleCallback,Vn=r.unstable_cancelCallback,za=r.unstable_shouldYield,qa=r.unstable_requestPaint,Ft=r.unstable_now,Bt=r.unstable_getCurrentPriorityLevel,Ya=r.unstable_ImmediatePriority,wl=r.unstable_UserBlockingPriority,bl=r.unstable_NormalPriority,Ro=r.unstable_LowPriority,bu=r.unstable_IdlePriority,Ao=null,Ii=null;function Oc(n){if(Ii&&typeof Ii.onCommitFiberRoot=="function")try{Ii.onCommitFiberRoot(Ao,n,void 0,(n.current.flags&128)===128)}catch{}}var gi=Math.clz32?Math.clz32:_u,od=Math.log,ld=Math.LN2;function _u(n){return n>>>=0,n===0?32:31-(od(n)/ld|0)|0}var ko=64,na=4194304;function Va(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Wa(n,a){var c=n.pendingLanes;if(c===0)return 0;var h=0,m=n.suspendedLanes,x=n.pingedLanes,k=c&268435455;if(k!==0){var Y=k&~m;Y!==0?h=Va(Y):(x&=k,x!==0&&(h=Va(x)))}else k=c&~m,k!==0?h=Va(k):x!==0&&(h=Va(x));if(h===0)return 0;if(a!==0&&a!==h&&!(a&m)&&(m=h&-h,x=a&-a,m>=x||m===16&&(x&4194240)!==0))return a;if(h&4&&(h|=c&16),a=n.entangledLanes,a!==0)for(n=n.entanglements,a&=h;0<a;)c=31-gi(a),m=1<<c,h|=n[c],a&=~m;return h}function Du(n,a){switch(n){case 1:case 2:case 4:return a+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _l(n,a){for(var c=n.suspendedLanes,h=n.pingedLanes,m=n.expirationTimes,x=n.pendingLanes;0<x;){var k=31-gi(x),Y=1<<k,Q=m[k];Q===-1?(!(Y&c)||Y&h)&&(m[k]=Du(Y,a)):Q<=a&&(n.expiredLanes|=Y),x&=~Y}}function Fo(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function Tu(){var n=ko;return ko<<=1,!(ko&4194240)&&(ko=64),n}function Ru(n){for(var a=[],c=0;31>c;c++)a.push(n);return a}function Ys(n,a,c){n.pendingLanes|=a,a!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,a=31-gi(a),n[a]=c}function h0(n,a){var c=n.pendingLanes&~a;n.pendingLanes=a,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=a,n.mutableReadLanes&=a,n.entangledLanes&=a,a=n.entanglements;var h=n.eventTimes;for(n=n.expirationTimes;0<c;){var m=31-gi(c),x=1<<m;a[m]=0,h[m]=-1,n[m]=-1,c&=~x}}function Vs(n,a){var c=n.entangledLanes|=a;for(n=n.entanglements;c;){var h=31-gi(c),m=1<<h;m&a|n[h]&a&&(n[h]|=a),c&=~m}}var sr=0;function Au(n){return n&=-n,1<n?4<n?n&268435455?16:536870912:4:1}var Zt,Bc,vs,_t,ku,Wn=!1,gs=[],mi=null,ms=null,Ur=null,_r=new Map,Oo=new Map,Fn=[],yi="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ca(n,a){switch(n){case"focusin":case"focusout":mi=null;break;case"dragenter":case"dragleave":ms=null;break;case"mouseover":case"mouseout":Ur=null;break;case"pointerover":case"pointerout":_r.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(a.pointerId)}}function Dl(n,a,c,h,m,x){return n===null||n.nativeEvent!==x?(n={blockedOn:a,domEventName:c,eventSystemFlags:h,nativeEvent:x,targetContainers:[m]},a!==null&&(a=dt(a),a!==null&&Bc(a)),n):(n.eventSystemFlags|=h,a=n.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),n)}function Mc(n,a,c,h,m){switch(a){case"focusin":return mi=Dl(mi,n,a,c,h,m),!0;case"dragenter":return ms=Dl(ms,n,a,c,h,m),!0;case"mouseover":return Ur=Dl(Ur,n,a,c,h,m),!0;case"pointerover":var x=m.pointerId;return _r.set(x,Dl(_r.get(x)||null,n,a,c,h,m)),!0;case"gotpointercapture":return x=m.pointerId,Oo.set(x,Dl(Oo.get(x)||null,n,a,c,h,m)),!0}return!1}function Nc(n){var a=Nl(n.target);if(a!==null){var c=kt(a);if(c!==null){if(a=c.tag,a===13){if(a=Dt(c),a!==null){n.blockedOn=a,ku(n.priority,function(){vs(c)});return}}else if(a===3&&c.stateNode.current.memoizedState.isDehydrated){n.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Bo(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var c=Bu(n.domEventName,n.eventSystemFlags,a[0],n.nativeEvent);if(c===null){c=n.nativeEvent;var h=new c.constructor(c.type,c);wr=h,c.target.dispatchEvent(h),wr=null}else return a=dt(c),a!==null&&Bc(a),n.blockedOn=c,!1;a.shift()}return!0}function Tl(n,a,c){Bo(n)&&c.delete(a)}function p0(){Wn=!1,mi!==null&&Bo(mi)&&(mi=null),ms!==null&&Bo(ms)&&(ms=null),Ur!==null&&Bo(Ur)&&(Ur=null),_r.forEach(Tl),Oo.forEach(Tl)}function Sa(n,a){n.blockedOn===a&&(n.blockedOn=null,Wn||(Wn=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,p0)))}function Ga(n){function a(m){return Sa(m,n)}if(0<gs.length){Sa(gs[0],n);for(var c=1;c<gs.length;c++){var h=gs[c];h.blockedOn===n&&(h.blockedOn=null)}}for(mi!==null&&Sa(mi,n),ms!==null&&Sa(ms,n),Ur!==null&&Sa(Ur,n),_r.forEach(a),Oo.forEach(a),c=0;c<Fn.length;c++)h=Fn[c],h.blockedOn===n&&(h.blockedOn=null);for(;0<Fn.length&&(c=Fn[0],c.blockedOn===null);)Nc(c),c.blockedOn===null&&Fn.shift()}var ys=q.ReactCurrentBatchConfig,wa=!0;function Fu(n,a,c,h){var m=sr,x=ys.transition;ys.transition=null;try{sr=1,Mo(n,a,c,h)}finally{sr=m,ys.transition=x}}function Ou(n,a,c,h){var m=sr,x=ys.transition;ys.transition=null;try{sr=4,Mo(n,a,c,h)}finally{sr=m,ys.transition=x}}function Mo(n,a,c,h){if(wa){var m=Bu(n,a,c,h);if(m===null)Ed(n,a,h,Rl,c),Ca(n,h);else if(Mc(m,n,a,c,h))h.stopPropagation();else if(Ca(n,h),a&4&&-1<yi.indexOf(n)){for(;m!==null;){var x=dt(m);if(x!==null&&Zt(x),x=Bu(n,a,c,h),x===null&&Ed(n,a,h,Rl,c),x===m)break;m=x}m!==null&&h.stopPropagation()}else Ed(n,a,h,null,c)}}var Rl=null;function Bu(n,a,c,h){if(Rl=null,n=yr(h),n=Nl(n),n!==null)if(a=kt(n),a===null)n=null;else if(c=a.tag,c===13){if(n=Dt(a),n!==null)return n;n=null}else if(c===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null);return Rl=n,null}function Mu(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Bt()){case Ya:return 1;case wl:return 4;case bl:case Ro:return 16;case bu:return 536870912;default:return 16}default:return 16}}var Ka=null,D=null,V=null;function ue(){if(V)return V;var n,a=D,c=a.length,h,m="value"in Ka?Ka.value:Ka.textContent,x=m.length;for(n=0;n<c&&a[n]===m[n];n++);var k=c-n;for(h=1;h<=k&&a[c-h]===m[x-h];h++);return V=m.slice(n,1<h?1-h:void 0)}function ve(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Ie(){return!0}function pt(){return!1}function Ue(n){function a(c,h,m,x,k){this._reactName=c,this._targetInst=m,this.type=h,this.nativeEvent=x,this.target=k,this.currentTarget=null;for(var Y in n)n.hasOwnProperty(Y)&&(c=n[Y],this[Y]=c?c(x):x[Y]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Ie:pt,this.isPropagationStopped=pt,this}return _e(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Ie)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Ie)},persist:function(){},isPersistent:Ie}),a}var xt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Pt=Ue(xt),Xt=_e({},xt,{view:0,detail:0}),Ir=Ue(Xt),Dr,Mt,Tr,Zr=_e({},Xt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:x0,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Tr&&(Tr&&n.type==="mousemove"?(Dr=n.screenX-Tr.screenX,Mt=n.screenY-Tr.screenY):Mt=Dr=0,Tr=n),Dr)},movementY:function(n){return"movementY"in n?n.movementY:Mt}}),No=Ue(Zr),Hc=_e({},Zr,{dataTransfer:0}),Ws=Ue(Hc),Ic=_e({},Xt,{relatedTarget:0}),Al=Ue(Ic),v0=_e({},xt,{animationName:0,elapsedTime:0,pseudoElement:0}),ud=Ue(v0),g0=_e({},xt,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Xv=Ue(g0),m0=_e({},xt,{data:0}),y0=Ue(m0),Jv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eg={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"},C1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Gs(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=C1[n])?!!a[n]:!1}function x0(){return Gs}var E0=_e({},Xt,{key:function(n){if(n.key){var a=Jv[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=ve(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?eg[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:x0,charCode:function(n){return n.type==="keypress"?ve(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?ve(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),C0=Ue(E0),S0=_e({},Zr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tg=Ue(S0),cd=_e({},Xt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:x0}),rg=Ue(cd),$i=_e({},xt,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ks=Ue($i),mn=_e({},Zr,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Qs=Ue(mn),w0=[9,13,27,32],Nu=S&&"CompositionEvent"in window,$c=null;S&&"documentMode"in document&&($c=document.documentMode);var Pc=S&&"TextEvent"in window&&!$c,ng=S&&(!Nu||$c&&8<$c&&11>=$c),ig=" ",fd=!1;function ag(n,a){switch(n){case"keyup":return w0.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Hu=!1;function og(n,a){switch(n){case"compositionend":return sg(a);case"keypress":return a.which!==32?null:(fd=!0,ig);case"textInput":return n=a.data,n===ig&&fd?null:n;default:return null}}function S1(n,a){if(Hu)return n==="compositionend"||!Nu&&ag(n,a)?(n=ue(),V=D=Ka=null,Hu=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return ng&&a.locale!=="ko"?null:a.data;default:return null}}var w1={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 lg(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!w1[n.type]:a==="textarea"}function b0(n,a,c,h){ja(h),a=Yc(a,"onChange"),0<a.length&&(c=new Pt("onChange","change",null,c,h),n.push({event:c,listeners:a}))}var xs=null,kl=null;function ug(n){Bl(n,0)}function Lc(n){var a=Za(n);if(zr(a))return n}function b1(n,a){if(n==="change")return a}var cg=!1;if(S){var _0;if(S){var D0="oninput"in document;if(!D0){var fg=document.createElement("div");fg.setAttribute("oninput","return;"),D0=typeof fg.oninput=="function"}_0=D0}else _0=!1;cg=_0&&(!document.documentMode||9<document.documentMode)}function dg(){xs&&(xs.detachEvent("onpropertychange",hg),kl=xs=null)}function hg(n){if(n.propertyName==="value"&&Lc(kl)){var a=[];b0(a,kl,n,yr(n)),hs(ug,a)}}function _1(n,a,c){n==="focusin"?(dg(),xs=a,kl=c,xs.attachEvent("onpropertychange",hg)):n==="focusout"&&dg()}function pg(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Lc(kl)}function D1(n,a){if(n==="click")return Lc(a)}function vg(n,a){if(n==="input"||n==="change")return Lc(a)}function T1(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Qa=typeof Object.is=="function"?Object.is:T1;function Uc(n,a){if(Qa(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var c=Object.keys(n),h=Object.keys(a);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var m=c[h];if(!b.call(a,m)||!Qa(n[m],a[m]))return!1}return!0}function gg(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function dd(n,a){var c=gg(n);n=0;for(var h;c;){if(c.nodeType===3){if(h=n+c.textContent.length,n<=a&&h>=a)return{node:c,offset:a-n};n=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=gg(c)}}function Ho(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Ho(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function jc(){for(var n=window,a=qt();a instanceof n.HTMLIFrameElement;){try{var c=typeof a.contentWindow.location.href=="string"}catch{c=!1}if(c)n=a.contentWindow;else break;a=qt(n.document)}return a}function hd(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}function Iu(n){var a=jc(),c=n.focusedElem,h=n.selectionRange;if(a!==c&&c&&c.ownerDocument&&Ho(c.ownerDocument.documentElement,c)){if(h!==null&&hd(c)){if(a=h.start,n=h.end,n===void 0&&(n=a),"selectionStart"in c)c.selectionStart=a,c.selectionEnd=Math.min(n,c.value.length);else if(n=(a=c.ownerDocument||document)&&a.defaultView||window,n.getSelection){n=n.getSelection();var m=c.textContent.length,x=Math.min(h.start,m);h=h.end===void 0?x:Math.min(h.end,m),!n.extend&&x>h&&(m=h,h=x,x=m),m=dd(c,x);var k=dd(c,h);m&&k&&(n.rangeCount!==1||n.anchorNode!==m.node||n.anchorOffset!==m.offset||n.focusNode!==k.node||n.focusOffset!==k.offset)&&(a=a.createRange(),a.setStart(m.node,m.offset),n.removeAllRanges(),x>h?(n.addRange(a),n.extend(k.node,k.offset)):(a.setEnd(k.node,k.offset),n.addRange(a)))}}for(a=[],n=c;n=n.parentNode;)n.nodeType===1&&a.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;c<a.length;c++)n=a[c],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var R1=S&&"documentMode"in document&&11>=document.documentMode,$u=null,T0=null,zc=null,R0=!1;function A0(n,a,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;R0||$u==null||$u!==qt(h)||(h=$u,"selectionStart"in h&&hd(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),zc&&Uc(zc,h)||(zc=h,h=Yc(T0,"onSelect"),0<h.length&&(a=new Pt("onSelect","select",null,a,c),n.push({event:a,listeners:h}),a.target=$u)))}function pd(n,a){var c={};return c[n.toLowerCase()]=a.toLowerCase(),c["Webkit"+n]="webkit"+a,c["Moz"+n]="moz"+a,c}var Fl={animationend:pd("Animation","AnimationEnd"),animationiteration:pd("Animation","AnimationIteration"),animationstart:pd("Animation","AnimationStart"),transitionend:pd("Transition","TransitionEnd")},Gn={},k0={};S&&(k0=document.createElement("div").style,"AnimationEvent"in window||(delete Fl.animationend.animation,delete Fl.animationiteration.animation,delete Fl.animationstart.animation),"TransitionEvent"in window||delete Fl.transitionend.transition);function vd(n){if(Gn[n])return Gn[n];if(!Fl[n])return n;var a=Fl[n],c;for(c in a)if(a.hasOwnProperty(c)&&c in k0)return Gn[n]=a[c];return n}var mg=vd("animationend"),yg=vd("animationiteration"),xg=vd("animationstart"),Eg=vd("transitionend"),F0=new Map,gd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ba(n,a){F0.set(n,a),p(a,[n])}for(var O0=0;O0<gd.length;O0++){var Ol=gd[O0],A1=Ol.toLowerCase(),k1=Ol[0].toUpperCase()+Ol.slice(1);ba(A1,"on"+k1)}ba(mg,"onAnimationEnd"),ba(yg,"onAnimationIteration"),ba(xg,"onAnimationStart"),ba("dblclick","onDoubleClick"),ba("focusin","onFocus"),ba("focusout","onBlur"),ba(Eg,"onTransitionEnd"),v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),p("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),p("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),p("onBeforeInput",["compositionend","keypress","textInput","paste"]),p("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),p("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qc="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(" "),B0=new Set("cancel close invalid load scroll toggle".split(" ").concat(qc));function md(n,a,c){var h=n.type||"unknown-event";n.currentTarget=c,et(h,a,void 0,n),n.currentTarget=null}function Bl(n,a){a=(a&4)!==0;for(var c=0;c<n.length;c++){var h=n[c],m=h.event;h=h.listeners;e:{var x=void 0;if(a)for(var k=h.length-1;0<=k;k--){var Y=h[k],Q=Y.instance,ce=Y.currentTarget;if(Y=Y.listener,Q!==x&&m.isPropagationStopped())break e;md(m,Y,ce),x=Q}else for(k=0;k<h.length;k++){if(Y=h[k],Q=Y.instance,ce=Y.currentTarget,Y=Y.listener,Q!==x&&m.isPropagationStopped())break e;md(m,Y,ce),x=Q}}}if(ps)throw n=W,ps=!1,W=null,n}function xr(n,a){var c=a[Gc];c===void 0&&(c=a[Gc]=new Set);var h=n+"__bubble";c.has(h)||(Cg(a,n,2,!1),c.add(h))}function yd(n,a,c){var h=0;a&&(h|=4),Cg(c,n,h,a)}var xd="_reactListening"+Math.random().toString(36).slice(2);function Pu(n){if(!n[xd]){n[xd]=!0,l.forEach(function(c){c!=="selectionchange"&&(B0.has(c)||yd(c,!1,n),yd(c,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[xd]||(a[xd]=!0,yd("selectionchange",!1,a))}}function Cg(n,a,c,h){switch(Mu(a)){case 1:var m=Fu;break;case 4:m=Ou;break;default:m=Mo}c=m.bind(null,a,c,n),m=void 0,!In||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),h?m!==void 0?n.addEventListener(a,c,{capture:!0,passive:m}):n.addEventListener(a,c,!0):m!==void 0?n.addEventListener(a,c,{passive:m}):n.addEventListener(a,c,!1)}function Ed(n,a,c,h,m){var x=h;if(!(a&1)&&!(a&2)&&h!==null)e:for(;;){if(h===null)return;var k=h.tag;if(k===3||k===4){var Y=h.stateNode.containerInfo;if(Y===m||Y.nodeType===8&&Y.parentNode===m)break;if(k===4)for(k=h.return;k!==null;){var Q=k.tag;if((Q===3||Q===4)&&(Q=k.stateNode.containerInfo,Q===m||Q.nodeType===8&&Q.parentNode===m))return;k=k.return}for(;Y!==null;){if(k=Nl(Y),k===null)return;if(Q=k.tag,Q===5||Q===6){h=x=k;continue e}Y=Y.parentNode}}h=h.return}hs(function(){var ce=x,Fe=yr(c),Be=[];e:{var ke=F0.get(n);if(ke!==void 0){var Ke=Pt,at=n;switch(n){case"keypress":if(ve(c)===0)break e;case"keydown":case"keyup":Ke=C0;break;case"focusin":at="focus",Ke=Al;break;case"focusout":at="blur",Ke=Al;break;case"beforeblur":case"afterblur":Ke=Al;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ke=No;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ke=Ws;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ke=rg;break;case mg:case yg:case xg:Ke=ud;break;case Eg:Ke=Ks;break;case"scroll":Ke=Ir;break;case"wheel":Ke=Qs;break;case"copy":case"cut":case"paste":Ke=Xv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ke=tg}var lt=(a&4)!==0,hn=!lt&&n==="scroll",ne=lt?ke!==null?ke+"Capture":null:ke;lt=[];for(var te=ce,se;te!==null;){se=te;var Oe=se.stateNode;if(se.tag===5&&Oe!==null&&(se=Oe,ne!==null&&(Oe=Yn(te,ne),Oe!=null&<.push(Lu(te,Oe,se)))),hn)break;te=te.return}0<lt.length&&(ke=new Ke(ke,at,null,c,Fe),Be.push({event:ke,listeners:lt}))}}if(!(a&7)){e:{if(ke=n==="mouseover"||n==="pointerover",Ke=n==="mouseout"||n==="pointerout",ke&&c!==wr&&(at=c.relatedTarget||c.fromElement)&&(Nl(at)||at[Zs]))break e;if((Ke||ke)&&(ke=Fe.window===Fe?Fe:(ke=Fe.ownerDocument)?ke.defaultView||ke.parentWindow:window,Ke?(at=c.relatedTarget||c.toElement,Ke=ce,at=at?Nl(at):null,at!==null&&(hn=kt(at),at!==hn||at.tag!==5&&at.tag!==6)&&(at=null)):(Ke=null,at=ce),Ke!==at)){if(lt=No,Oe="onMouseLeave",ne="onMouseEnter",te="mouse",(n==="pointerout"||n==="pointerover")&&(lt=tg,Oe="onPointerLeave",ne="onPointerEnter",te="pointer"),hn=Ke==null?ke:Za(Ke),se=at==null?ke:Za(at),ke=new lt(Oe,te+"leave",Ke,c,Fe),ke.target=hn,ke.relatedTarget=se,Oe=null,Nl(Fe)===ce&&(lt=new lt(ne,te+"enter",at,c,Fe),lt.target=se,lt.relatedTarget=hn,Oe=lt),hn=Oe,Ke&&at)t:{for(lt=Ke,ne=at,te=0,se=lt;se;se=Io(se))te++;for(se=0,Oe=ne;Oe;Oe=Io(Oe))se++;for(;0<te-se;)lt=Io(lt),te--;for(;0<se-te;)ne=Io(ne),se--;for(;te--;){if(lt===ne||ne!==null&<===ne.alternate)break t;lt=Io(lt),ne=Io(ne)}lt=null}else lt=null;Ke!==null&&Sg(Be,ke,Ke,lt,!1),at!==null&&hn!==null&&Sg(Be,hn,at,lt,!0)}}e:{if(ke=ce?Za(ce):window,Ke=ke.nodeName&&ke.nodeName.toLowerCase(),Ke==="select"||Ke==="input"&&ke.type==="file")var st=b1;else if(lg(ke))if(cg)st=vg;else{st=pg;var mt=_1}else(Ke=ke.nodeName)&&Ke.toLowerCase()==="input"&&(ke.type==="checkbox"||ke.type==="radio")&&(st=D1);if(st&&(st=st(n,ce))){b0(Be,st,c,Fe);break e}mt&&mt(n,ke,ce),n==="focusout"&&(mt=ke._wrapperState)&&mt.controlled&&ke.type==="number"&&vn(ke,"number",ke.value)}switch(mt=ce?Za(ce):window,n){case"focusin":(lg(mt)||mt.contentEditable==="true")&&($u=mt,T0=ce,zc=null);break;case"focusout":zc=T0=$u=null;break;case"mousedown":R0=!0;break;case"contextmenu":case"mouseup":case"dragend":R0=!1,A0(Be,c,Fe);break;case"selectionchange":if(R1)break;case"keydown":case"keyup":A0(Be,c,Fe)}var Et;if(Nu)e:{switch(n){case"compositionstart":var wt="onCompositionStart";break e;case"compositionend":wt="onCompositionEnd";break e;case"compositionupdate":wt="onCompositionUpdate";break e}wt=void 0}else Hu?ag(n,c)&&(wt="onCompositionEnd"):n==="keydown"&&c.keyCode===229&&(wt="onCompositionStart");wt&&(ng&&c.locale!=="ko"&&(Hu||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&Hu&&(Et=ue()):(Ka=Fe,D="value"in Ka?Ka.value:Ka.textContent,Hu=!0)),mt=Yc(ce,wt),0<mt.length&&(wt=new y0(wt,n,null,c,Fe),Be.push({event:wt,listeners:mt}),Et?wt.data=Et:(Et=sg(c),Et!==null&&(wt.data=Et)))),(Et=Pc?og(n,c):S1(n,c))&&(ce=Yc(ce,"onBeforeInput"),0<ce.length&&(Fe=new y0("onBeforeInput","beforeinput",null,c,Fe),Be.push({event:Fe,listeners:ce}),Fe.data=Et))}Bl(Be,a)})}function Lu(n,a,c){return{instance:n,listener:a,currentTarget:c}}function Yc(n,a){for(var c=a+"Capture",h=[];n!==null;){var m=n,x=m.stateNode;m.tag===5&&x!==null&&(m=x,x=Yn(n,c),x!=null&&h.unshift(Lu(n,x,m)),x=Yn(n,a),x!=null&&h.push(Lu(n,x,m))),n=n.return}return h}function Io(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function Sg(n,a,c,h,m){for(var x=a._reactName,k=[];c!==null&&c!==h;){var Y=c,Q=Y.alternate,ce=Y.stateNode;if(Q!==null&&Q===h)break;Y.tag===5&&ce!==null&&(Y=ce,m?(Q=Yn(c,x),Q!=null&&k.unshift(Lu(c,Q,Y))):m||(Q=Yn(c,x),Q!=null&&k.push(Lu(c,Q,Y)))),c=c.return}k.length!==0&&n.push({event:a,listeners:k})}var wg=/\r\n?/g,F1=/\u0000|\uFFFD/g;function bg(n){return(typeof n=="string"?n:""+n).replace(wg,`
|
|
69
69
|
`).replace(F1,"")}function Cd(n,a,c){if(a=bg(a),bg(n)!==a&&c)throw Error(i(425))}function $o(){}var Vc=null,Ml=null;function Sd(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var wd=typeof setTimeout=="function"?setTimeout:void 0,M0=typeof clearTimeout=="function"?clearTimeout:void 0,_g=typeof Promise=="function"?Promise:void 0,Uu=typeof queueMicrotask=="function"?queueMicrotask:typeof _g<"u"?function(n){return _g.resolve(null).then(n).catch(bd)}:wd;function bd(n){setTimeout(function(){throw n})}function ju(n,a){var c=a,h=0;do{var m=c.nextSibling;if(n.removeChild(c),m&&m.nodeType===8)if(c=m.data,c==="/$"){if(h===0){n.removeChild(m),Ga(a);return}h--}else c!=="$"&&c!=="$?"&&c!=="$!"||h++;c=m}while(c);Ga(a)}function Es(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?")break;if(a==="/$")return null}}return n}function Dg(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var c=n.data;if(c==="$"||c==="$!"||c==="$?"){if(a===0)return n;a--}else c==="/$"&&a++}n=n.previousSibling}return null}var Po=Math.random().toString(36).slice(2),Cs="__reactFiber$"+Po,Wc="__reactProps$"+Po,Zs="__reactContainer$"+Po,Gc="__reactEvents$"+Po,zu="__reactListeners$"+Po,O1="__reactHandles$"+Po;function Nl(n){var a=n[Cs];if(a)return a;for(var c=n.parentNode;c;){if(a=c[Zs]||c[Cs]){if(c=a.alternate,a.child!==null||c!==null&&c.child!==null)for(n=Dg(n);n!==null;){if(c=n[Cs])return c;n=Dg(n)}return a}n=c,c=n.parentNode}return null}function dt(n){return n=n[Cs]||n[Zs],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function Za(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(i(33))}function Xr(n){return n[Wc]||null}var Yt=[],_a=-1;function Da(n){return{current:n}}function $r(n){0>_a||(n.current=Yt[_a],Yt[_a]=null,_a--)}function ft(n,a){_a++,Yt[_a]=n.current,n.current=a}var ci={},an=Da(ci),On=Da(!1),Pi=ci;function Li(n,a){var c=n.type.contextTypes;if(!c)return ci;var h=n.stateNode;if(h&&h.__reactInternalMemoizedUnmaskedChildContext===a)return h.__reactInternalMemoizedMaskedChildContext;var m={},x;for(x in c)m[x]=a[x];return h&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=a,n.__reactInternalMemoizedMaskedChildContext=m),m}function yn(n){return n=n.childContextTypes,n!=null}function qu(){$r(On),$r(an)}function Tg(n,a,c){if(an.current!==ci)throw Error(i(168));ft(an,a),ft(On,c)}function Kc(n,a,c){var h=n.stateNode;if(a=a.childContextTypes,typeof h.getChildContext!="function")return c;h=h.getChildContext();for(var m in h)if(!(m in a))throw Error(i(108,ut(n)||"Unknown",m));return _e({},c,h)}function $n(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||ci,Pi=an.current,ft(an,n),ft(On,On.current),!0}function _d(n,a,c){var h=n.stateNode;if(!h)throw Error(i(169));c?(n=Kc(n,a,Pi),h.__reactInternalMemoizedMergedChildContext=n,$r(On),$r(an),ft(an,n)):$r(On),ft(On,c)}var Ss=null,Yu=!1,Xs=!1;function Dd(n){Ss===null?Ss=[n]:Ss.push(n)}function Lo(n){Yu=!0,Dd(n)}function ws(){if(!Xs&&Ss!==null){Xs=!0;var n=0,a=sr;try{var c=Ss;for(sr=1;n<c.length;n++){var h=c[n];do h=h(!0);while(h!==null)}Ss=null,Yu=!1}catch(m){throw Ss!==null&&(Ss=Ss.slice(n+1)),Lr(Ya,ws),m}finally{sr=a,Xs=!1}}return null}var Uo=[],jo=0,zo=null,Js=0,xn=[],Ta=0,ia=null,bs=1,_s="";function Hl(n,a){Uo[jo++]=Js,Uo[jo++]=zo,zo=n,Js=a}function Rg(n,a,c){xn[Ta++]=bs,xn[Ta++]=_s,xn[Ta++]=ia,ia=n;var h=bs;n=_s;var m=32-gi(h)-1;h&=~(1<<m),c+=1;var x=32-gi(a)+m;if(30<x){var k=m-m%5;x=(h&(1<<k)-1).toString(32),h>>=k,m-=k,bs=1<<32-gi(a)+m|c<<m|h,_s=x+n}else bs=1<<x|c<<m|h,_s=n}function Td(n){n.return!==null&&(Hl(n,1),Rg(n,1,0))}function Rd(n){for(;n===zo;)zo=Uo[--jo],Uo[jo]=null,Js=Uo[--jo],Uo[jo]=null;for(;n===ia;)ia=xn[--Ta],xn[Ta]=null,_s=xn[--Ta],xn[Ta]=null,bs=xn[--Ta],xn[Ta]=null}var Ui=null,ji=null,Yr=!1,Ra=null;function N0(n,a){var c=Ba(5,null,null,0);c.elementType="DELETED",c.stateNode=a,c.return=n,a=n.deletions,a===null?(n.deletions=[c],n.flags|=16):a.push(c)}function Ag(n,a){switch(n.tag){case 5:var c=n.type;return a=a.nodeType!==1||c.toLowerCase()!==a.nodeName.toLowerCase()?null:a,a!==null?(n.stateNode=a,Ui=n,ji=Es(a.firstChild),!0):!1;case 6:return a=n.pendingProps===""||a.nodeType!==3?null:a,a!==null?(n.stateNode=a,Ui=n,ji=null,!0):!1;case 13:return a=a.nodeType!==8?null:a,a!==null?(c=ia!==null?{id:bs,overflow:_s}:null,n.memoizedState={dehydrated:a,treeContext:c,retryLane:1073741824},c=Ba(18,null,null,0),c.stateNode=a,c.return=n,n.child=c,Ui=n,ji=null,!0):!1;default:return!1}}function H0(n){return(n.mode&1)!==0&&(n.flags&128)===0}function I0(n){if(Yr){var a=ji;if(a){var c=a;if(!Ag(n,a)){if(H0(n))throw Error(i(418));a=Es(c.nextSibling);var h=Ui;a&&Ag(n,a)?N0(h,c):(n.flags=n.flags&-4097|2,Yr=!1,Ui=n)}}else{if(H0(n))throw Error(i(418));n.flags=n.flags&-4097|2,Yr=!1,Ui=n}}}function Bn(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Ui=n}function Ad(n){if(n!==Ui)return!1;if(!Yr)return Bn(n),Yr=!0,!1;var a;if((a=n.tag!==3)&&!(a=n.tag!==5)&&(a=n.type,a=a!=="head"&&a!=="body"&&!Sd(n.type,n.memoizedProps)),a&&(a=ji)){if(H0(n))throw Qc(),Error(i(418));for(;a;)N0(n,a),a=Es(a.nextSibling)}if(Bn(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));e:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8){var c=n.data;if(c==="/$"){if(a===0){ji=Es(n.nextSibling);break e}a--}else c!=="$"&&c!=="$!"&&c!=="$?"||a++}n=n.nextSibling}ji=null}}else ji=Ui?Es(n.stateNode.nextSibling):null;return!0}function Qc(){for(var n=ji;n;)n=Es(n.nextSibling)}function qo(){ji=Ui=null,Yr=!1}function eo(n){Ra===null?Ra=[n]:Ra.push(n)}var B1=q.ReactCurrentBatchConfig;function Il(n,a,c){if(n=c.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(c._owner){if(c=c._owner,c){if(c.tag!==1)throw Error(i(309));var h=c.stateNode}if(!h)throw Error(i(147,n));var m=h,x=""+n;return a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===x?a.ref:(a=function(k){var Y=m.refs;k===null?delete Y[x]:Y[x]=k},a._stringRef=x,a)}if(typeof n!="string")throw Error(i(284));if(!c._owner)throw Error(i(290,n))}return n}function kd(n,a){throw n=Object.prototype.toString.call(a),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n))}function kg(n){var a=n._init;return a(n._payload)}function $l(n){function a(ne,te){if(n){var se=ne.deletions;se===null?(ne.deletions=[te],ne.flags|=16):se.push(te)}}function c(ne,te){if(!n)return null;for(;te!==null;)a(ne,te),te=te.sibling;return null}function h(ne,te){for(ne=new Map;te!==null;)te.key!==null?ne.set(te.key,te):ne.set(te.index,te),te=te.sibling;return ne}function m(ne,te){return ne=Xo(ne,te),ne.index=0,ne.sibling=null,ne}function x(ne,te,se){return ne.index=se,n?(se=ne.alternate,se!==null?(se=se.index,se<te?(ne.flags|=2,te):se):(ne.flags|=2,te)):(ne.flags|=1048576,te)}function k(ne){return n&&ne.alternate===null&&(ne.flags|=2),ne}function Y(ne,te,se,Oe){return te===null||te.tag!==6?(te=pp(se,ne.mode,Oe),te.return=ne,te):(te=m(te,se),te.return=ne,te)}function Q(ne,te,se,Oe){var st=se.type;return st===ee?Fe(ne,te,se.props.children,Oe,se.key):te!==null&&(te.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===$e&&kg(st)===te.type)?(Oe=m(te,se.props),Oe.ref=Il(ne,te,se),Oe.return=ne,Oe):(Oe=Tf(se.type,se.key,se.props,null,ne.mode,Oe),Oe.ref=Il(ne,te,se),Oe.return=ne,Oe)}function ce(ne,te,se,Oe){return te===null||te.tag!==4||te.stateNode.containerInfo!==se.containerInfo||te.stateNode.implementation!==se.implementation?(te=uh(se,ne.mode,Oe),te.return=ne,te):(te=m(te,se.children||[]),te.return=ne,te)}function Fe(ne,te,se,Oe,st){return te===null||te.tag!==7?(te=so(se,ne.mode,Oe,st),te.return=ne,te):(te=m(te,se),te.return=ne,te)}function Be(ne,te,se){if(typeof te=="string"&&te!==""||typeof te=="number")return te=pp(""+te,ne.mode,se),te.return=ne,te;if(typeof te=="object"&&te!==null){switch(te.$$typeof){case K:return se=Tf(te.type,te.key,te.props,null,ne.mode,se),se.ref=Il(ne,null,te),se.return=ne,se;case X:return te=uh(te,ne.mode,se),te.return=ne,te;case $e:var Oe=te._init;return Be(ne,Oe(te._payload),se)}if(qr(te)||He(te))return te=so(te,ne.mode,se,null),te.return=ne,te;kd(ne,te)}return null}function ke(ne,te,se,Oe){var st=te!==null?te.key:null;if(typeof se=="string"&&se!==""||typeof se=="number")return st!==null?null:Y(ne,te,""+se,Oe);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case K:return se.key===st?Q(ne,te,se,Oe):null;case X:return se.key===st?ce(ne,te,se,Oe):null;case $e:return st=se._init,ke(ne,te,st(se._payload),Oe)}if(qr(se)||He(se))return st!==null?null:Fe(ne,te,se,Oe,null);kd(ne,se)}return null}function Ke(ne,te,se,Oe,st){if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number")return ne=ne.get(se)||null,Y(te,ne,""+Oe,st);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case K:return ne=ne.get(Oe.key===null?se:Oe.key)||null,Q(te,ne,Oe,st);case X:return ne=ne.get(Oe.key===null?se:Oe.key)||null,ce(te,ne,Oe,st);case $e:var mt=Oe._init;return Ke(ne,te,se,mt(Oe._payload),st)}if(qr(Oe)||He(Oe))return ne=ne.get(se)||null,Fe(te,ne,Oe,st,null);kd(te,Oe)}return null}function at(ne,te,se,Oe){for(var st=null,mt=null,Et=te,wt=te=0,Un=null;Et!==null&&wt<se.length;wt++){Et.index>wt?(Un=Et,Et=null):Un=Et.sibling;var ur=ke(ne,Et,se[wt],Oe);if(ur===null){Et===null&&(Et=Un);break}n&&Et&&ur.alternate===null&&a(ne,Et),te=x(ur,te,wt),mt===null?st=ur:mt.sibling=ur,mt=ur,Et=Un}if(wt===se.length)return c(ne,Et),Yr&&Hl(ne,wt),st;if(Et===null){for(;wt<se.length;wt++)Et=Be(ne,se[wt],Oe),Et!==null&&(te=x(Et,te,wt),mt===null?st=Et:mt.sibling=Et,mt=Et);return Yr&&Hl(ne,wt),st}for(Et=h(ne,Et);wt<se.length;wt++)Un=Ke(Et,ne,wt,se[wt],Oe),Un!==null&&(n&&Un.alternate!==null&&Et.delete(Un.key===null?wt:Un.key),te=x(Un,te,wt),mt===null?st=Un:mt.sibling=Un,mt=Un);return n&&Et.forEach(function(tl){return a(ne,tl)}),Yr&&Hl(ne,wt),st}function lt(ne,te,se,Oe){var st=He(se);if(typeof st!="function")throw Error(i(150));if(se=st.call(se),se==null)throw Error(i(151));for(var mt=st=null,Et=te,wt=te=0,Un=null,ur=se.next();Et!==null&&!ur.done;wt++,ur=se.next()){Et.index>wt?(Un=Et,Et=null):Un=Et.sibling;var tl=ke(ne,Et,ur.value,Oe);if(tl===null){Et===null&&(Et=Un);break}n&&Et&&tl.alternate===null&&a(ne,Et),te=x(tl,te,wt),mt===null?st=tl:mt.sibling=tl,mt=tl,Et=Un}if(ur.done)return c(ne,Et),Yr&&Hl(ne,wt),st;if(Et===null){for(;!ur.done;wt++,ur=se.next())ur=Be(ne,ur.value,Oe),ur!==null&&(te=x(ur,te,wt),mt===null?st=ur:mt.sibling=ur,mt=ur);return Yr&&Hl(ne,wt),st}for(Et=h(ne,Et);!ur.done;wt++,ur=se.next())ur=Ke(Et,ne,wt,ur.value,Oe),ur!==null&&(n&&ur.alternate!==null&&Et.delete(ur.key===null?wt:ur.key),te=x(ur,te,wt),mt===null?st=ur:mt.sibling=ur,mt=ur);return n&&Et.forEach(function(dm){return a(ne,dm)}),Yr&&Hl(ne,wt),st}function hn(ne,te,se,Oe){if(typeof se=="object"&&se!==null&&se.type===ee&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case K:e:{for(var st=se.key,mt=te;mt!==null;){if(mt.key===st){if(st=se.type,st===ee){if(mt.tag===7){c(ne,mt.sibling),te=m(mt,se.props.children),te.return=ne,ne=te;break e}}else if(mt.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===$e&&kg(st)===mt.type){c(ne,mt.sibling),te=m(mt,se.props),te.ref=Il(ne,mt,se),te.return=ne,ne=te;break e}c(ne,mt);break}else a(ne,mt);mt=mt.sibling}se.type===ee?(te=so(se.props.children,ne.mode,Oe,se.key),te.return=ne,ne=te):(Oe=Tf(se.type,se.key,se.props,null,ne.mode,Oe),Oe.ref=Il(ne,te,se),Oe.return=ne,ne=Oe)}return k(ne);case X:e:{for(mt=se.key;te!==null;){if(te.key===mt)if(te.tag===4&&te.stateNode.containerInfo===se.containerInfo&&te.stateNode.implementation===se.implementation){c(ne,te.sibling),te=m(te,se.children||[]),te.return=ne,ne=te;break e}else{c(ne,te);break}else a(ne,te);te=te.sibling}te=uh(se,ne.mode,Oe),te.return=ne,ne=te}return k(ne);case $e:return mt=se._init,hn(ne,te,mt(se._payload),Oe)}if(qr(se))return at(ne,te,se,Oe);if(He(se))return lt(ne,te,se,Oe);kd(ne,se)}return typeof se=="string"&&se!==""||typeof se=="number"?(se=""+se,te!==null&&te.tag===6?(c(ne,te.sibling),te=m(te,se),te.return=ne,ne=te):(c(ne,te),te=pp(se,ne.mode,Oe),te.return=ne,ne=te),k(ne)):c(ne,te)}return hn}var un=$l(!0),ze=$l(!1),aa=Da(null),zi=null,Vu=null,$0=null;function P0(){$0=Vu=zi=null}function L0(n){var a=aa.current;$r(aa),n._currentValue=a}function U0(n,a,c){for(;n!==null;){var h=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,h!==null&&(h.childLanes|=a)):h!==null&&(h.childLanes&a)!==a&&(h.childLanes|=a),n===c)break;n=n.return}}function Jr(n,a){zi=n,$0=Vu=null,n=n.dependencies,n!==null&&n.firstContext!==null&&(n.lanes&a&&(Cn=!0),n.firstContext=null)}function Aa(n){var a=n._currentValue;if($0!==n)if(n={context:n,memoizedValue:a,next:null},Vu===null){if(zi===null)throw Error(i(308));Vu=n,zi.dependencies={lanes:0,firstContext:n}}else Vu=Vu.next=n;return a}var Pl=null;function j0(n){Pl===null?Pl=[n]:Pl.push(n)}function z0(n,a,c,h){var m=a.interleaved;return m===null?(c.next=c,j0(a)):(c.next=m.next,m.next=c),a.interleaved=c,sa(n,h)}function sa(n,a){n.lanes|=a;var c=n.alternate;for(c!==null&&(c.lanes|=a),c=n,n=n.return;n!==null;)n.childLanes|=a,c=n.alternate,c!==null&&(c.childLanes|=a),c=n,n=n.return;return c.tag===3?c.stateNode:null}var oa=!1;function q0(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fg(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function to(n,a){return{eventTime:n,lane:a,tag:0,payload:null,callback:null,next:null}}function Yo(n,a,c){var h=n.updateQueue;if(h===null)return null;if(h=h.shared,Vt&2){var m=h.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),h.pending=a,sa(n,c)}return m=h.interleaved,m===null?(a.next=a,j0(h)):(a.next=m.next,m.next=a),h.interleaved=a,sa(n,c)}function Fd(n,a,c){if(a=a.updateQueue,a!==null&&(a=a.shared,(c&4194240)!==0)){var h=a.lanes;h&=n.pendingLanes,c|=h,a.lanes=c,Vs(n,c)}}function Og(n,a){var c=n.updateQueue,h=n.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var m=null,x=null;if(c=c.firstBaseUpdate,c!==null){do{var k={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};x===null?m=x=k:x=x.next=k,c=c.next}while(c!==null);x===null?m=x=a:x=x.next=a}else m=x=a;c={baseState:h.baseState,firstBaseUpdate:m,lastBaseUpdate:x,shared:h.shared,effects:h.effects},n.updateQueue=c;return}n=c.lastBaseUpdate,n===null?c.firstBaseUpdate=a:n.next=a,c.lastBaseUpdate=a}function Zc(n,a,c,h){var m=n.updateQueue;oa=!1;var x=m.firstBaseUpdate,k=m.lastBaseUpdate,Y=m.shared.pending;if(Y!==null){m.shared.pending=null;var Q=Y,ce=Q.next;Q.next=null,k===null?x=ce:k.next=ce,k=Q;var Fe=n.alternate;Fe!==null&&(Fe=Fe.updateQueue,Y=Fe.lastBaseUpdate,Y!==k&&(Y===null?Fe.firstBaseUpdate=ce:Y.next=ce,Fe.lastBaseUpdate=Q))}if(x!==null){var Be=m.baseState;k=0,Fe=ce=Q=null,Y=x;do{var ke=Y.lane,Ke=Y.eventTime;if((h&ke)===ke){Fe!==null&&(Fe=Fe.next={eventTime:Ke,lane:0,tag:Y.tag,payload:Y.payload,callback:Y.callback,next:null});e:{var at=n,lt=Y;switch(ke=a,Ke=c,lt.tag){case 1:if(at=lt.payload,typeof at=="function"){Be=at.call(Ke,Be,ke);break e}Be=at;break e;case 3:at.flags=at.flags&-65537|128;case 0:if(at=lt.payload,ke=typeof at=="function"?at.call(Ke,Be,ke):at,ke==null)break e;Be=_e({},Be,ke);break e;case 2:oa=!0}}Y.callback!==null&&Y.lane!==0&&(n.flags|=64,ke=m.effects,ke===null?m.effects=[Y]:ke.push(Y))}else Ke={eventTime:Ke,lane:ke,tag:Y.tag,payload:Y.payload,callback:Y.callback,next:null},Fe===null?(ce=Fe=Ke,Q=Be):Fe=Fe.next=Ke,k|=ke;if(Y=Y.next,Y===null){if(Y=m.shared.pending,Y===null)break;ke=Y,Y=ke.next,ke.next=null,m.lastBaseUpdate=ke,m.shared.pending=null}}while(!0);if(Fe===null&&(Q=Be),m.baseState=Q,m.firstBaseUpdate=ce,m.lastBaseUpdate=Fe,a=m.shared.interleaved,a!==null){m=a;do k|=m.lane,m=m.next;while(m!==a)}else x===null&&(m.shared.lanes=0);ks|=k,n.lanes=k,n.memoizedState=Be}}function Y0(n,a,c){if(n=a.effects,a.effects=null,n!==null)for(a=0;a<n.length;a++){var h=n[a],m=h.callback;if(m!==null){if(h.callback=null,h=c,typeof m!="function")throw Error(i(191,m));m.call(h)}}}var Xc={},Ds=Da(Xc),Jc=Da(Xc),ef=Da(Xc);function Ll(n){if(n===Xc)throw Error(i(174));return n}function V0(n,a){switch(ft(ef,a),ft(Jc,n),ft(Ds,Xc),n=a.nodeType,n){case 9:case 11:a=(a=a.documentElement)?a.namespaceURI:Rn(null,"");break;default:n=n===8?a.parentNode:a,a=n.namespaceURI||null,n=n.tagName,a=Rn(a,n)}$r(Ds),ft(Ds,a)}function Ul(){$r(Ds),$r(Jc),$r(ef)}function Bg(n){Ll(ef.current);var a=Ll(Ds.current),c=Rn(a,n.type);a!==c&&(ft(Jc,n),ft(Ds,c))}function Od(n){Jc.current===n&&($r(Ds),$r(Jc))}var en=Da(0);function Bd(n){for(var a=n;a!==null;){if(a.tag===13){var c=a.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if(a.flags&128)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var tf=[];function ht(){for(var n=0;n<tf.length;n++)tf[n]._workInProgressVersionPrimary=null;tf.length=0}var Ht=q.ReactCurrentDispatcher,or=q.ReactCurrentBatchConfig,Rr=0,lr=null,En=null,Pn=null,Md=!1,rf=!1,jl=0,Ae=0;function nr(){throw Error(i(321))}function Ct(n,a){if(a===null)return!1;for(var c=0;c<a.length&&c<n.length;c++)if(!Qa(n[c],a[c]))return!1;return!0}function Vo(n,a,c,h,m,x){if(Rr=x,lr=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Ht.current=n===null||n.memoizedState===null?Kd:uf,n=c(h,m),rf){x=0;do{if(rf=!1,jl=0,25<=x)throw Error(i(301));x+=1,Pn=En=null,a.updateQueue=null,Ht.current=Qd,n=c(h,m)}while(rf)}if(Ht.current=Wl,a=En!==null&&En.next!==null,Rr=0,Pn=En=lr=null,Md=!1,a)throw Error(i(300));return n}function Xa(){var n=jl!==0;return jl=0,n}function fi(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Pn===null?lr.memoizedState=Pn=n:Pn=Pn.next=n,Pn}function cn(){if(En===null){var n=lr.alternate;n=n!==null?n.memoizedState:null}else n=En.next;var a=Pn===null?lr.memoizedState:Pn.next;if(a!==null)Pn=a,En=n;else{if(n===null)throw Error(i(310));En=n,n={memoizedState:En.memoizedState,baseState:En.baseState,baseQueue:En.baseQueue,queue:En.queue,next:null},Pn===null?lr.memoizedState=Pn=n:Pn=Pn.next=n}return Pn}function ro(n,a){return typeof a=="function"?a(n):a}function Wo(n){var a=cn(),c=a.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=n;var h=En,m=h.baseQueue,x=c.pending;if(x!==null){if(m!==null){var k=m.next;m.next=x.next,x.next=k}h.baseQueue=m=x,c.pending=null}if(m!==null){x=m.next,h=h.baseState;var Y=k=null,Q=null,ce=x;do{var Fe=ce.lane;if((Rr&Fe)===Fe)Q!==null&&(Q=Q.next={lane:0,action:ce.action,hasEagerState:ce.hasEagerState,eagerState:ce.eagerState,next:null}),h=ce.hasEagerState?ce.eagerState:n(h,ce.action);else{var Be={lane:Fe,action:ce.action,hasEagerState:ce.hasEagerState,eagerState:ce.eagerState,next:null};Q===null?(Y=Q=Be,k=h):Q=Q.next=Be,lr.lanes|=Fe,ks|=Fe}ce=ce.next}while(ce!==null&&ce!==x);Q===null?k=h:Q.next=Y,Qa(h,a.memoizedState)||(Cn=!0),a.memoizedState=h,a.baseState=k,a.baseQueue=Q,c.lastRenderedState=h}if(n=c.interleaved,n!==null){m=n;do x=m.lane,lr.lanes|=x,ks|=x,m=m.next;while(m!==n)}else m===null&&(c.lanes=0);return[a.memoizedState,c.dispatch]}function zl(n){var a=cn(),c=a.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=n;var h=c.dispatch,m=c.pending,x=a.memoizedState;if(m!==null){c.pending=null;var k=m=m.next;do x=n(x,k.action),k=k.next;while(k!==m);Qa(x,a.memoizedState)||(Cn=!0),a.memoizedState=x,a.baseQueue===null&&(a.baseState=x),c.lastRenderedState=x}return[x,h]}function Nd(){}function Hd(n,a){var c=lr,h=cn(),m=a(),x=!Qa(h.memoizedState,m);if(x&&(h.memoizedState=m,Cn=!0),h=h.queue,nf(Pd.bind(null,c,h,n),[n]),h.getSnapshot!==a||x||Pn!==null&&Pn.memoizedState.tag&1){if(c.flags|=2048,ql(9,$d.bind(null,c,h,m,a),void 0,null),Mn===null)throw Error(i(349));Rr&30||Id(c,a,m)}return m}function Id(n,a,c){n.flags|=16384,n={getSnapshot:a,value:c},a=lr.updateQueue,a===null?(a={lastEffect:null,stores:null},lr.updateQueue=a,a.stores=[n]):(c=a.stores,c===null?a.stores=[n]:c.push(n))}function $d(n,a,c,h){a.value=c,a.getSnapshot=h,Ld(a)&&Ud(n)}function Pd(n,a,c){return c(function(){Ld(a)&&Ud(n)})}function Ld(n){var a=n.getSnapshot;n=n.value;try{var c=a();return!Qa(n,c)}catch{return!0}}function Ud(n){var a=sa(n,1);a!==null&&Si(a,n,1,-1)}function jd(n){var a=fi();return typeof n=="function"&&(n=n()),a.memoizedState=a.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ro,lastRenderedState:n},a.queue=n,n=n.dispatch=Vl.bind(null,lr,n),[a.memoizedState,n]}function ql(n,a,c,h){return n={tag:n,create:a,destroy:c,deps:h,next:null},a=lr.updateQueue,a===null?(a={lastEffect:null,stores:null},lr.updateQueue=a,a.lastEffect=n.next=n):(c=a.lastEffect,c===null?a.lastEffect=n.next=n:(h=c.next,c.next=n,n.next=h,a.lastEffect=n)),n}function zd(){return cn().memoizedState}function Wu(n,a,c,h){var m=fi();lr.flags|=n,m.memoizedState=ql(1|a,c,void 0,h===void 0?null:h)}function Gu(n,a,c,h){var m=cn();h=h===void 0?null:h;var x=void 0;if(En!==null){var k=En.memoizedState;if(x=k.destroy,h!==null&&Ct(h,k.deps)){m.memoizedState=ql(a,c,x,h);return}}lr.flags|=n,m.memoizedState=ql(1|a,c,x,h)}function qd(n,a){return Wu(8390656,8,n,a)}function nf(n,a){return Gu(2048,8,n,a)}function Yd(n,a){return Gu(4,2,n,a)}function af(n,a){return Gu(4,4,n,a)}function Yl(n,a){if(typeof a=="function")return n=n(),a(n),function(){a(null)};if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function Vd(n,a,c){return c=c!=null?c.concat([n]):null,Gu(4,4,Yl.bind(null,a,n),c)}function sf(){}function Wd(n,a){var c=cn();a=a===void 0?null:a;var h=c.memoizedState;return h!==null&&a!==null&&Ct(a,h[1])?h[0]:(c.memoizedState=[n,a],n)}function Gd(n,a){var c=cn();a=a===void 0?null:a;var h=c.memoizedState;return h!==null&&a!==null&&Ct(a,h[1])?h[0]:(n=n(),c.memoizedState=[n,a],n)}function W0(n,a,c){return Rr&21?(Qa(c,a)||(c=Tu(),lr.lanes|=c,ks|=c,n.baseState=!0),a):(n.baseState&&(n.baseState=!1,Cn=!0),n.memoizedState=c)}function of(n,a){var c=sr;sr=c!==0&&4>c?c:4,n(!0);var h=or.transition;or.transition={};try{n(!1),a()}finally{sr=c,or.transition=h}}function G0(){return cn().memoizedState}function lf(n,a,c){var h=Fs(n);if(c={lane:h,action:c,hasEagerState:!1,eagerState:null,next:null},qi(n))Mg(a,c);else if(c=z0(n,a,c,h),c!==null){var m=bn();Si(c,n,h,m),Br(c,a,h)}}function Vl(n,a,c){var h=Fs(n),m={lane:h,action:c,hasEagerState:!1,eagerState:null,next:null};if(qi(n))Mg(a,m);else{var x=n.alternate;if(n.lanes===0&&(x===null||x.lanes===0)&&(x=a.lastRenderedReducer,x!==null))try{var k=a.lastRenderedState,Y=x(k,c);if(m.hasEagerState=!0,m.eagerState=Y,Qa(Y,k)){var Q=a.interleaved;Q===null?(m.next=m,j0(a)):(m.next=Q.next,Q.next=m),a.interleaved=m;return}}catch{}finally{}c=z0(n,a,m,h),c!==null&&(m=bn(),Si(c,n,h,m),Br(c,a,h))}}function qi(n){var a=n.alternate;return n===lr||a!==null&&a===lr}function Mg(n,a){rf=Md=!0;var c=n.pending;c===null?a.next=a:(a.next=c.next,c.next=a),n.pending=a}function Br(n,a,c){if(c&4194240){var h=a.lanes;h&=n.pendingLanes,c|=h,a.lanes=c,Vs(n,c)}}var Wl={readContext:Aa,useCallback:nr,useContext:nr,useEffect:nr,useImperativeHandle:nr,useInsertionEffect:nr,useLayoutEffect:nr,useMemo:nr,useReducer:nr,useRef:nr,useState:nr,useDebugValue:nr,useDeferredValue:nr,useTransition:nr,useMutableSource:nr,useSyncExternalStore:nr,useId:nr,unstable_isNewReconciler:!1},Kd={readContext:Aa,useCallback:function(n,a){return fi().memoizedState=[n,a===void 0?null:a],n},useContext:Aa,useEffect:qd,useImperativeHandle:function(n,a,c){return c=c!=null?c.concat([n]):null,Wu(4194308,4,Yl.bind(null,a,n),c)},useLayoutEffect:function(n,a){return Wu(4194308,4,n,a)},useInsertionEffect:function(n,a){return Wu(4,2,n,a)},useMemo:function(n,a){var c=fi();return a=a===void 0?null:a,n=n(),c.memoizedState=[n,a],n},useReducer:function(n,a,c){var h=fi();return a=c!==void 0?c(a):a,h.memoizedState=h.baseState=a,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:a},h.queue=n,n=n.dispatch=lf.bind(null,lr,n),[h.memoizedState,n]},useRef:function(n){var a=fi();return n={current:n},a.memoizedState=n},useState:jd,useDebugValue:sf,useDeferredValue:function(n){return fi().memoizedState=n},useTransition:function(){var n=jd(!1),a=n[0];return n=of.bind(null,n[1]),fi().memoizedState=n,[a,n]},useMutableSource:function(){},useSyncExternalStore:function(n,a,c){var h=lr,m=fi();if(Yr){if(c===void 0)throw Error(i(407));c=c()}else{if(c=a(),Mn===null)throw Error(i(349));Rr&30||Id(h,a,c)}m.memoizedState=c;var x={value:c,getSnapshot:a};return m.queue=x,qd(Pd.bind(null,h,x,n),[n]),h.flags|=2048,ql(9,$d.bind(null,h,x,c,a),void 0,null),c},useId:function(){var n=fi(),a=Mn.identifierPrefix;if(Yr){var c=_s,h=bs;c=(h&~(1<<32-gi(h)-1)).toString(32)+c,a=":"+a+"R"+c,c=jl++,0<c&&(a+="H"+c.toString(32)),a+=":"}else c=Ae++,a=":"+a+"r"+c.toString(32)+":";return n.memoizedState=a},unstable_isNewReconciler:!1},uf={readContext:Aa,useCallback:Wd,useContext:Aa,useEffect:nf,useImperativeHandle:Vd,useInsertionEffect:Yd,useLayoutEffect:af,useMemo:Gd,useReducer:Wo,useRef:zd,useState:function(){return Wo(ro)},useDebugValue:sf,useDeferredValue:function(n){var a=cn();return W0(a,En.memoizedState,n)},useTransition:function(){var n=Wo(ro)[0],a=cn().memoizedState;return[n,a]},useMutableSource:Nd,useSyncExternalStore:Hd,useId:G0,unstable_isNewReconciler:!1},Qd={readContext:Aa,useCallback:Wd,useContext:Aa,useEffect:nf,useImperativeHandle:Vd,useInsertionEffect:Yd,useLayoutEffect:af,useMemo:Gd,useReducer:zl,useRef:zd,useState:function(){return zl(ro)},useDebugValue:sf,useDeferredValue:function(n){var a=cn();return En===null?a.memoizedState=n:W0(a,En.memoizedState,n)},useTransition:function(){var n=zl(ro)[0],a=cn().memoizedState;return[n,a]},useMutableSource:Nd,useSyncExternalStore:Hd,useId:G0,unstable_isNewReconciler:!1};function Ja(n,a){if(n&&n.defaultProps){a=_e({},a),n=n.defaultProps;for(var c in n)a[c]===void 0&&(a[c]=n[c]);return a}return a}function K0(n,a,c,h){a=n.memoizedState,c=c(h,a),c=c==null?a:_e({},a,c),n.memoizedState=c,n.lanes===0&&(n.updateQueue.baseState=c)}var Zd={isMounted:function(n){return(n=n._reactInternals)?kt(n)===n:!1},enqueueSetState:function(n,a,c){n=n._reactInternals;var h=bn(),m=Fs(n),x=to(h,m);x.payload=a,c!=null&&(x.callback=c),a=Yo(n,x,m),a!==null&&(Si(a,n,m,h),Fd(a,n,m))},enqueueReplaceState:function(n,a,c){n=n._reactInternals;var h=bn(),m=Fs(n),x=to(h,m);x.tag=1,x.payload=a,c!=null&&(x.callback=c),a=Yo(n,x,m),a!==null&&(Si(a,n,m,h),Fd(a,n,m))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var c=bn(),h=Fs(n),m=to(c,h);m.tag=2,a!=null&&(m.callback=a),a=Yo(n,m,h),a!==null&&(Si(a,n,h,c),Fd(a,n,h))}};function Ng(n,a,c,h,m,x,k){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(h,x,k):a.prototype&&a.prototype.isPureReactComponent?!Uc(c,h)||!Uc(m,x):!0}function Xd(n,a,c){var h=!1,m=ci,x=a.contextType;return typeof x=="object"&&x!==null?x=Aa(x):(m=yn(a)?Pi:an.current,h=a.contextTypes,x=(h=h!=null)?Li(n,m):ci),a=new a(c,x),n.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Zd,n.stateNode=a,a._reactInternals=n,h&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=m,n.__reactInternalMemoizedMaskedChildContext=x),a}function Hg(n,a,c,h){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(c,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(c,h),a.state!==n&&Zd.enqueueReplaceState(a,a.state,null)}function cf(n,a,c,h){var m=n.stateNode;m.props=c,m.state=n.memoizedState,m.refs={},q0(n);var x=a.contextType;typeof x=="object"&&x!==null?m.context=Aa(x):(x=yn(a)?Pi:an.current,m.context=Li(n,x)),m.state=n.memoizedState,x=a.getDerivedStateFromProps,typeof x=="function"&&(K0(n,a,x,c),m.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(a=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),a!==m.state&&Zd.enqueueReplaceState(m,m.state,null),Zc(n,c,m,h),m.state=n.memoizedState),typeof m.componentDidMount=="function"&&(n.flags|=4194308)}function Gl(n,a){try{var c="",h=a;do c+=Je(h),h=h.return;while(h);var m=c}catch(x){m=`
|
|
70
70
|
Error generating stack: `+x.message+`
|
|
71
|
-
`+x.stack}return{value:n,source:a,stack:m,digest:null}}function Q0(n,a,c){return{value:n,source:null,stack:c??null,digest:a??null}}function Z0(n,a){try{console.error(a.value)}catch(c){setTimeout(function(){throw c})}}var Jd=typeof WeakMap=="function"?WeakMap:Map;function Ig(n,a,c){c=to(-1,c),c.tag=3,c.payload={element:null};var h=a.value;return c.callback=function(){ec||(ec=!0,Zl=h),Z0(n,a)},c}function X0(n,a,c){c=to(-1,c),c.tag=3;var h=n.type.getDerivedStateFromError;if(typeof h=="function"){var m=a.value;c.payload=function(){return h(m)},c.callback=function(){Z0(n,a)}}var x=n.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(c.callback=function(){Z0(n,a),typeof h!="function"&&(Qo===null?Qo=new Set([this]):Qo.add(this));var k=a.stack;this.componentDidCatch(a.value,{componentStack:k!==null?k:""})}),c}function J0(n,a,c){var h=n.pingCache;if(h===null){h=n.pingCache=new Jd;var m=new Set;h.set(a,m)}else m=h.get(a),m===void 0&&(m=new Set,h.set(a,m));m.has(c)||(m.add(c),n=L1.bind(null,n,a,c),a.then(n,n))}function $g(n){do{var a;if((a=n.tag===13)&&(a=n.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return n;n=n.return}while(n!==null);return null}function Go(n,a,c,h,m){return n.mode&1?(n.flags|=65536,n.lanes=m,n):(n===a?n.flags|=65536:(n.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(a=to(-1,1),a.tag=2,Yo(c,a,1))),c.lanes|=1),n)}var ff=q.ReactCurrentOwner,Cn=!1;function Kn(n,a,c,h){a.child=n===null?ze(a,null,c,h):un(a,n.child,c,h)}function Yi(n,a,c,h,m){c=c.render;var x=a.ref;return Jr(a,m),h=Vo(n,a,c,h,x,m),c=Xa(),n!==null&&!Cn?(a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~m,Fa(n,a,m)):(Yr&&c&&Td(a),a.flags|=1,Kn(n,a,h,m),a.child)}function Kl(n,a,c,h,m){if(n===null){var x=c.type;return typeof x=="function"&&!hp(x)&&x.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(a.tag=15,a.type=x,Ot(n,a,x,h,m)):(n=Tf(c.type,null,h,a,a.mode,m),n.ref=a.ref,n.return=a,a.child=n)}if(x=n.child,!(n.lanes&m)){var k=x.memoizedProps;if(c=c.compare,c=c!==null?c:Uc,c(k,h)&&n.ref===a.ref)return Fa(n,a,m)}return a.flags|=1,n=Xo(x,h),n.ref=a.ref,n.return=a,a.child=n}function Ot(n,a,c,h,m){if(n!==null){var x=n.memoizedProps;if(Uc(x,h)&&n.ref===a.ref)if(Cn=!1,a.pendingProps=h=x,(n.lanes&m)!==0)n.flags&131072&&(Cn=!0);else return a.lanes=n.lanes,Fa(n,a,m)}return Pg(n,a,c,h,m)}function df(n,a,c){var h=a.pendingProps,m=h.children,x=n!==null?n.memoizedState:null;if(h.mode==="hidden")if(!(a.mode&1))a.memoizedState={baseLanes:0,cachePool:null,transitions:null},ft(Zu,la),la|=c;else{if(!(c&1073741824))return n=x!==null?x.baseLanes|c:c,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:n,cachePool:null,transitions:null},a.updateQueue=null,ft(Zu,la),la|=n,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=x!==null?x.baseLanes:c,ft(Zu,la),la|=h}else x!==null?(h=x.baseLanes|c,a.memoizedState=null):h=c,ft(Zu,la),la|=h;return Kn(n,a,m,c),a.child}function ep(n,a){var c=a.ref;(n===null&&c!==null||n!==null&&n.ref!==c)&&(a.flags|=512,a.flags|=2097152)}function Pg(n,a,c,h,m){var x=yn(c)?Pi:an.current;return x=Li(a,x),Jr(a,m),c=Vo(n,a,c,h,x,m),h=Xa(),n!==null&&!Cn?(a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~m,Fa(n,a,m)):(Yr&&h&&Td(a),a.flags|=1,Kn(n,a,c,m),a.child)}function Lg(n,a,c,h,m){if(yn(c)){var x=!0;$n(a)}else x=!1;if(Jr(a,m),a.stateNode===null)ka(n,a),Xd(a,c,h),cf(a,c,h,m),h=!0;else if(n===null){var k=a.stateNode,Y=a.memoizedProps;k.props=Y;var Q=k.context,ce=c.contextType;typeof ce=="object"&&ce!==null?ce=Aa(ce):(ce=yn(c)?Pi:an.current,ce=Li(a,ce));var Fe=c.getDerivedStateFromProps,Be=typeof Fe=="function"||typeof k.getSnapshotBeforeUpdate=="function";Be||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(Y!==h||Q!==ce)&&Hg(a,k,h,ce),oa=!1;var ke=a.memoizedState;k.state=ke,Zc(a,h,k,m),Q=a.memoizedState,Y!==h||ke!==Q||On.current||oa?(typeof Fe=="function"&&(K0(a,c,Fe,h),Q=a.memoizedState),(Y=oa||Ng(a,c,Y,h,ke,Q,ce))?(Be||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(a.flags|=4194308)):(typeof k.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=h,a.memoizedState=Q),k.props=h,k.state=Q,k.context=ce,h=Y):(typeof k.componentDidMount=="function"&&(a.flags|=4194308),h=!1)}else{k=a.stateNode,Fg(n,a),Y=a.memoizedProps,ce=a.type===a.elementType?Y:Ja(a.type,Y),k.props=ce,Be=a.pendingProps,ke=k.context,Q=c.contextType,typeof Q=="object"&&Q!==null?Q=Aa(Q):(Q=yn(c)?Pi:an.current,Q=Li(a,Q));var Ke=c.getDerivedStateFromProps;(Fe=typeof Ke=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(Y!==Be||ke!==Q)&&Hg(a,k,h,Q),oa=!1,ke=a.memoizedState,k.state=ke,Zc(a,h,k,m);var at=a.memoizedState;Y!==Be||ke!==at||On.current||oa?(typeof Ke=="function"&&(K0(a,c,Ke,h),at=a.memoizedState),(ce=oa||Ng(a,c,ce,h,ke,at,Q)||!1)?(Fe||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(h,at,Q),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(h,at,Q)),typeof k.componentDidUpdate=="function"&&(a.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof k.componentDidUpdate!="function"||Y===n.memoizedProps&&ke===n.memoizedState||(a.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||Y===n.memoizedProps&&ke===n.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=at),k.props=h,k.state=at,k.context=Q,h=ce):(typeof k.componentDidUpdate!="function"||Y===n.memoizedProps&&ke===n.memoizedState||(a.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||Y===n.memoizedProps&&ke===n.memoizedState||(a.flags|=1024),h=!1)}return hf(n,a,c,h,x,m)}function hf(n,a,c,h,m,x){ep(n,a);var k=(a.flags&128)!==0;if(!h&&!k)return m&&_d(a,c,!1),Fa(n,a,x);h=a.stateNode,ff.current=a;var Y=k&&typeof c.getDerivedStateFromError!="function"?null:h.render();return a.flags|=1,n!==null&&k?(a.child=un(a,n.child,null,x),a.child=un(a,null,Y,x)):Kn(n,a,Y,x),a.memoizedState=h.state,m&&_d(a,c,!0),a.child}function Ku(n){var a=n.stateNode;a.pendingContext?Tg(n,a.pendingContext,a.pendingContext!==a.context):a.context&&Tg(n,a.context,!1),V0(n,a.containerInfo)}function Ug(n,a,c,h,m){return qo(),eo(m),a.flags|=256,Kn(n,a,c,h),a.child}var eh={dehydrated:null,treeContext:null,retryLane:0};function tp(n){return{baseLanes:n,cachePool:null,transitions:null}}function th(n,a,c){var h=a.pendingProps,m=en.current,x=!1,k=(a.flags&128)!==0,Y;if((Y=k)||(Y=n!==null&&n.memoizedState===null?!1:(m&2)!==0),Y?(x=!0,a.flags&=-129):(n===null||n.memoizedState!==null)&&(m|=1),ft(en,m&1),n===null)return I0(a),n=a.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?(a.mode&1?n.data==="$!"?a.lanes=8:a.lanes=1073741824:a.lanes=1,null):(k=h.children,n=h.fallback,x?(h=a.mode,x=a.child,k={mode:"hidden",children:k},!(h&1)&&x!==null?(x.childLanes=0,x.pendingProps=k):x=Jo(k,h,0,null),n=so(n,h,c,null),x.return=a,n.return=a,x.sibling=n,a.child=x,a.child.memoizedState=tp(c),a.memoizedState=eh,n):rp(a,k));if(m=n.memoizedState,m!==null&&(Y=m.dehydrated,Y!==null))return jg(n,a,k,h,Y,m,c);if(x){x=h.fallback,k=a.mode,m=n.child,Y=m.sibling;var Q={mode:"hidden",children:h.children};return!(k&1)&&a.child!==m?(h=a.child,h.childLanes=0,h.pendingProps=Q,a.deletions=null):(h=Xo(m,Q),h.subtreeFlags=m.subtreeFlags&14680064),Y!==null?x=Xo(Y,x):(x=so(x,k,c,null),x.flags|=2),x.return=a,h.return=a,h.sibling=x,a.child=h,h=x,x=a.child,k=n.child.memoizedState,k=k===null?tp(c):{baseLanes:k.baseLanes|c,cachePool:null,transitions:k.transitions},x.memoizedState=k,x.childLanes=n.childLanes&~c,a.memoizedState=eh,h}return x=n.child,n=x.sibling,h=Xo(x,{mode:"visible",children:h.children}),!(a.mode&1)&&(h.lanes=c),h.return=a,h.sibling=null,n!==null&&(c=a.deletions,c===null?(a.deletions=[n],a.flags|=16):c.push(n)),a.child=h,a.memoizedState=null,h}function rp(n,a){return a=Jo({mode:"visible",children:a},n.mode,0,null),a.return=n,n.child=a}function pf(n,a,c,h){return h!==null&&eo(h),un(a,n.child,null,c),n=rp(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function jg(n,a,c,h,m,x,k){if(c)return a.flags&256?(a.flags&=-257,h=Q0(Error(i(422))),pf(n,a,k,h)):a.memoizedState!==null?(a.child=n.child,a.flags|=128,null):(x=h.fallback,m=a.mode,h=Jo({mode:"visible",children:h.children},m,0,null),x=so(x,m,k,null),x.flags|=2,h.return=a,x.return=a,h.sibling=x,a.child=h,a.mode&1&&un(a,n.child,null,k),a.child.memoizedState=tp(k),a.memoizedState=eh,x);if(!(a.mode&1))return pf(n,a,k,null);if(m.data==="$!"){if(h=m.nextSibling&&m.nextSibling.dataset,h)var Y=h.dgst;return h=Y,x=Error(i(419)),h=Q0(x,h,void 0),pf(n,a,k,h)}if(Y=(k&n.childLanes)!==0,Cn||Y){if(h=Mn,h!==null){switch(k&-k){case 4:m=2;break;case 16:m=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:m=32;break;case 536870912:m=268435456;break;default:m=0}m=m&(h.suspendedLanes|k)?0:m,m!==0&&m!==x.retryLane&&(x.retryLane=m,sa(n,m),Si(h,n,m,-1))}return dp(),h=Q0(Error(i(421))),pf(n,a,k,h)}return m.data==="$?"?(a.flags|=128,a.child=n.child,a=U1.bind(null,n),m._reactRetry=a,null):(n=x.treeContext,ji=Es(m.nextSibling),Ui=a,Yr=!0,Ra=null,n!==null&&(xn[Ta++]=bs,xn[Ta++]=_s,xn[Ta++]=ia,bs=n.id,_s=n.overflow,ia=a),a=rp(a,h.children),a.flags|=4096,a)}function np(n,a,c){n.lanes|=a;var h=n.alternate;h!==null&&(h.lanes|=a),U0(n.return,a,c)}function xi(n,a,c,h,m){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:m}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=h,x.tail=c,x.tailMode=m)}function Ts(n,a,c){var h=a.pendingProps,m=h.revealOrder,x=h.tail;if(Kn(n,a,h.children,c),h=en.current,h&2)h=h&1|2,a.flags|=128;else{if(n!==null&&n.flags&128)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&np(n,c,a);else if(n.tag===19)np(n,c,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}h&=1}if(ft(en,h),!(a.mode&1))a.memoizedState=null;else switch(m){case"forwards":for(c=a.child,m=null;c!==null;)n=c.alternate,n!==null&&Bd(n)===null&&(m=c),c=c.sibling;c=m,c===null?(m=a.child,a.child=null):(m=c.sibling,c.sibling=null),xi(a,!1,m,c,x);break;case"backwards":for(c=null,m=a.child,a.child=null;m!==null;){if(n=m.alternate,n!==null&&Bd(n)===null){a.child=m;break}n=m.sibling,m.sibling=c,c=m,m=n}xi(a,!0,c,null,x);break;case"together":xi(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ka(n,a){!(a.mode&1)&&n!==null&&(n.alternate=null,a.alternate=null,a.flags|=2)}function Fa(n,a,c){if(n!==null&&(a.dependencies=n.dependencies),ks|=a.lanes,!(c&a.childLanes))return null;if(n!==null&&a.child!==n.child)throw Error(i(153));if(a.child!==null){for(n=a.child,c=Xo(n,n.pendingProps),a.child=c,c.return=a;n.sibling!==null;)n=n.sibling,c=c.sibling=Xo(n,n.pendingProps),c.return=a;c.sibling=null}return a.child}function vf(n,a,c){switch(a.tag){case 3:Ku(a),qo();break;case 5:Bg(a);break;case 1:yn(a.type)&&$n(a);break;case 4:V0(a,a.stateNode.containerInfo);break;case 10:var h=a.type._context,m=a.memoizedProps.value;ft(aa,h._currentValue),h._currentValue=m;break;case 13:if(h=a.memoizedState,h!==null)return h.dehydrated!==null?(ft(en,en.current&1),a.flags|=128,null):c&a.child.childLanes?th(n,a,c):(ft(en,en.current&1),n=Fa(n,a,c),n!==null?n.sibling:null);ft(en,en.current&1);break;case 19:if(h=(c&a.childLanes)!==0,n.flags&128){if(h)return Ts(n,a,c);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),ft(en,en.current),h)break;return null;case 22:case 23:return a.lanes=0,df(n,a,c)}return Fa(n,a,c)}var Oa,Sn,zg,qg;Oa=function(n,a){for(var c=a.child;c!==null;){if(c.tag===5||c.tag===6)n.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},Sn=function(){},zg=function(n,a,c,h){var m=n.memoizedProps;if(m!==h){n=a.stateNode,Ll(Ds.current);var x=null;switch(c){case"input":m=Qt(n,m),h=Qt(n,h),x=[];break;case"select":m=_e({},m,{value:void 0}),h=_e({},h,{value:void 0}),x=[];break;case"textarea":m=ar(n,m),h=ar(n,h),x=[];break;default:typeof m.onClick!="function"&&typeof h.onClick=="function"&&(n.onclick=$o)}Or(c,h);var k;c=null;for(ce in m)if(!h.hasOwnProperty(ce)&&m.hasOwnProperty(ce)&&m[ce]!=null)if(ce==="style"){var Y=m[ce];for(k in Y)Y.hasOwnProperty(k)&&(c||(c={}),c[k]="")}else ce!=="dangerouslySetInnerHTML"&&ce!=="children"&&ce!=="suppressContentEditableWarning"&&ce!=="suppressHydrationWarning"&&ce!=="autoFocus"&&(f.hasOwnProperty(ce)?x||(x=[]):(x=x||[]).push(ce,null));for(ce in h){var Q=h[ce];if(Y=m!=null?m[ce]:void 0,h.hasOwnProperty(ce)&&Q!==Y&&(Q!=null||Y!=null))if(ce==="style")if(Y){for(k in Y)!Y.hasOwnProperty(k)||Q&&Q.hasOwnProperty(k)||(c||(c={}),c[k]="");for(k in Q)Q.hasOwnProperty(k)&&Y[k]!==Q[k]&&(c||(c={}),c[k]=Q[k])}else c||(x||(x=[]),x.push(ce,c)),c=Q;else ce==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Y=Y?Y.__html:void 0,Q!=null&&Y!==Q&&(x=x||[]).push(ce,Q)):ce==="children"?typeof Q!="string"&&typeof Q!="number"||(x=x||[]).push(ce,""+Q):ce!=="suppressContentEditableWarning"&&ce!=="suppressHydrationWarning"&&(f.hasOwnProperty(ce)?(Q!=null&&ce==="onScroll"&&xr("scroll",n),x||Y===Q||(x=[])):(x=x||[]).push(ce,Q))}c&&(x=x||[]).push("style",c);var ce=x;(a.updateQueue=ce)&&(a.flags|=4)}},qg=function(n,a,c,h){c!==h&&(a.flags|=4)};function gf(n,a){if(!Yr)switch(n.tailMode){case"hidden":a=n.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?n.tail=null:c.sibling=null;break;case"collapsed":c=n.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:h.sibling=null}}function Ln(n){var a=n.alternate!==null&&n.alternate.child===n.child,c=0,h=0;if(a)for(var m=n.child;m!==null;)c|=m.lanes|m.childLanes,h|=m.subtreeFlags&14680064,h|=m.flags&14680064,m.return=n,m=m.sibling;else for(m=n.child;m!==null;)c|=m.lanes|m.childLanes,h|=m.subtreeFlags,h|=m.flags,m.return=n,m=m.sibling;return n.subtreeFlags|=h,n.childLanes=c,a}function Yg(n,a,c){var h=a.pendingProps;switch(Rd(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ln(a),null;case 1:return yn(a.type)&&qu(),Ln(a),null;case 3:return h=a.stateNode,Ul(),$r(On),$r(an),ht(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(n===null||n.child===null)&&(Ad(a)?a.flags|=4:n===null||n.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,Ra!==null&&(Xl(Ra),Ra=null))),Sn(n,a),Ln(a),null;case 5:Od(a);var m=Ll(ef.current);if(c=a.type,n!==null&&a.stateNode!=null)zg(n,a,c,h,m),n.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!h){if(a.stateNode===null)throw Error(i(166));return Ln(a),null}if(n=Ll(Ds.current),Ad(a)){h=a.stateNode,c=a.type;var x=a.memoizedProps;switch(h[Cs]=a,h[Wc]=x,n=(a.mode&1)!==0,c){case"dialog":xr("cancel",h),xr("close",h);break;case"iframe":case"object":case"embed":xr("load",h);break;case"video":case"audio":for(m=0;m<qc.length;m++)xr(qc[m],h);break;case"source":xr("error",h);break;case"img":case"image":case"link":xr("error",h),xr("load",h);break;case"details":xr("toggle",h);break;case"input":Fr(h,x),xr("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!x.multiple},xr("invalid",h);break;case"textarea":Pr(h,x),xr("invalid",h)}Or(c,x),m=null;for(var k in x)if(x.hasOwnProperty(k)){var Y=x[k];k==="children"?typeof Y=="string"?h.textContent!==Y&&(x.suppressHydrationWarning!==!0&&Cd(h.textContent,Y,n),m=["children",Y]):typeof Y=="number"&&h.textContent!==""+Y&&(x.suppressHydrationWarning!==!0&&Cd(h.textContent,Y,n),m=["children",""+Y]):f.hasOwnProperty(k)&&Y!=null&&k==="onScroll"&&xr("scroll",h)}switch(c){case"input":dr(h),Tn(h,x,!0);break;case"textarea":dr(h),Kr(h);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(h.onclick=$o)}h=m,a.updateQueue=h,h!==null&&(a.flags|=4)}else{k=m.nodeType===9?m:m.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=Qr(c)),n==="http://www.w3.org/1999/xhtml"?c==="script"?(n=k.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof h.is=="string"?n=k.createElement(c,{is:h.is}):(n=k.createElement(c),c==="select"&&(k=n,h.multiple?k.multiple=!0:h.size&&(k.size=h.size))):n=k.createElementNS(n,c),n[Cs]=a,n[Wc]=h,Oa(n,a,!1,!1),a.stateNode=n;e:{switch(k=gn(c,h),c){case"dialog":xr("cancel",n),xr("close",n),m=h;break;case"iframe":case"object":case"embed":xr("load",n),m=h;break;case"video":case"audio":for(m=0;m<qc.length;m++)xr(qc[m],n);m=h;break;case"source":xr("error",n),m=h;break;case"img":case"image":case"link":xr("error",n),xr("load",n),m=h;break;case"details":xr("toggle",n),m=h;break;case"input":Fr(n,h),m=Qt(n,h),xr("invalid",n);break;case"option":m=h;break;case"select":n._wrapperState={wasMultiple:!!h.multiple},m=_e({},h,{value:void 0}),xr("invalid",n);break;case"textarea":Pr(n,h),m=ar(n,h),xr("invalid",n);break;default:m=h}Or(c,m),Y=m;for(x in Y)if(Y.hasOwnProperty(x)){var Q=Y[x];x==="style"?Sr(n,Q):x==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&ra(n,Q)):x==="children"?typeof Q=="string"?(c!=="textarea"||Q!=="")&&Pe(n,Q):typeof Q=="number"&&Pe(n,""+Q):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(f.hasOwnProperty(x)?Q!=null&&x==="onScroll"&&xr("scroll",n):Q!=null&&U(n,x,Q,k))}switch(c){case"input":dr(n),Tn(n,h,!1);break;case"textarea":dr(n),Kr(n);break;case"option":h.value!=null&&n.setAttribute("value",""+Se(h.value));break;case"select":n.multiple=!!h.multiple,x=h.value,x!=null?tr(n,!!h.multiple,x,!1):h.defaultValue!=null&&tr(n,!!h.multiple,h.defaultValue,!0);break;default:typeof m.onClick=="function"&&(n.onclick=$o)}switch(c){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return Ln(a),null;case 6:if(n&&a.stateNode!=null)qg(n,a,n.memoizedProps,h);else{if(typeof h!="string"&&a.stateNode===null)throw Error(i(166));if(c=Ll(ef.current),Ll(Ds.current),Ad(a)){if(h=a.stateNode,c=a.memoizedProps,h[Cs]=a,(x=h.nodeValue!==c)&&(n=Ui,n!==null))switch(n.tag){case 3:Cd(h.nodeValue,c,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Cd(h.nodeValue,c,(n.mode&1)!==0)}x&&(a.flags|=4)}else h=(c.nodeType===9?c:c.ownerDocument).createTextNode(h),h[Cs]=a,a.stateNode=h}return Ln(a),null;case 13:if($r(en),h=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Yr&&ji!==null&&a.mode&1&&!(a.flags&128))Qc(),qo(),a.flags|=98560,x=!1;else if(x=Ad(a),h!==null&&h.dehydrated!==null){if(n===null){if(!x)throw Error(i(318));if(x=a.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(i(317));x[Cs]=a}else qo(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Ln(a),x=!1}else Ra!==null&&(Xl(Ra),Ra=null),x=!0;if(!x)return a.flags&65536?a:null}return a.flags&128?(a.lanes=c,a):(h=h!==null,h!==(n!==null&&n.memoizedState!==null)&&h&&(a.child.flags|=8192,a.mode&1&&(n===null||en.current&1?dn===0&&(dn=3):dp())),a.updateQueue!==null&&(a.flags|=4),Ln(a),null);case 4:return Ul(),Sn(n,a),n===null&&Pu(a.stateNode.containerInfo),Ln(a),null;case 10:return L0(a.type._context),Ln(a),null;case 17:return yn(a.type)&&qu(),Ln(a),null;case 19:if($r(en),x=a.memoizedState,x===null)return Ln(a),null;if(h=(a.flags&128)!==0,k=x.rendering,k===null)if(h)gf(x,!1);else{if(dn!==0||n!==null&&n.flags&128)for(n=a.child;n!==null;){if(k=Bd(n),k!==null){for(a.flags|=128,gf(x,!1),h=k.updateQueue,h!==null&&(a.updateQueue=h,a.flags|=4),a.subtreeFlags=0,h=c,c=a.child;c!==null;)x=c,n=h,x.flags&=14680066,k=x.alternate,k===null?(x.childLanes=0,x.lanes=n,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=k.childLanes,x.lanes=k.lanes,x.child=k.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=k.memoizedProps,x.memoizedState=k.memoizedState,x.updateQueue=k.updateQueue,x.type=k.type,n=k.dependencies,x.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),c=c.sibling;return ft(en,en.current&1|2),a.child}n=n.sibling}x.tail!==null&&Ft()>Ju&&(a.flags|=128,h=!0,gf(x,!1),a.lanes=4194304)}else{if(!h)if(n=Bd(k),n!==null){if(a.flags|=128,h=!0,c=n.updateQueue,c!==null&&(a.updateQueue=c,a.flags|=4),gf(x,!0),x.tail===null&&x.tailMode==="hidden"&&!k.alternate&&!Yr)return Ln(a),null}else 2*Ft()-x.renderingStartTime>Ju&&c!==1073741824&&(a.flags|=128,h=!0,gf(x,!1),a.lanes=4194304);x.isBackwards?(k.sibling=a.child,a.child=k):(c=x.last,c!==null?c.sibling=k:a.child=k,x.last=k)}return x.tail!==null?(a=x.tail,x.rendering=a,x.tail=a.sibling,x.renderingStartTime=Ft(),a.sibling=null,c=en.current,ft(en,h?c&1|2:c&1),a):(Ln(a),null);case 22:case 23:return fp(),h=a.memoizedState!==null,n!==null&&n.memoizedState!==null!==h&&(a.flags|=8192),h&&a.mode&1?la&1073741824&&(Ln(a),a.subtreeFlags&6&&(a.flags|=8192)):Ln(a),null;case 24:return null;case 25:return null}throw Error(i(156,a.tag))}function rh(n,a){switch(Rd(a),a.tag){case 1:return yn(a.type)&&qu(),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Ul(),$r(On),$r(an),ht(),n=a.flags,n&65536&&!(n&128)?(a.flags=n&-65537|128,a):null;case 5:return Od(a),null;case 13:if($r(en),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));qo()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return $r(en),null;case 4:return Ul(),null;case 10:return L0(a.type._context),null;case 22:case 23:return fp(),null;case 24:return null;default:return null}}var mf=!1,di=!1,M1=typeof WeakSet=="function"?WeakSet:Set,Xe=null;function Qu(n,a){var c=n.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(h){Vr(n,a,h)}else c.current=null}function nh(n,a,c){try{c()}catch(h){Vr(n,a,h)}}var Vg=!1;function Wg(n,a){if(Vc=wa,n=jc(),hd(n)){if("selectionStart"in n)var c={start:n.selectionStart,end:n.selectionEnd};else e:{c=(c=n.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var m=h.anchorOffset,x=h.focusNode;h=h.focusOffset;try{c.nodeType,x.nodeType}catch{c=null;break e}var k=0,Y=-1,Q=-1,ce=0,Fe=0,Be=n,ke=null;t:for(;;){for(var Ke;Be!==c||m!==0&&Be.nodeType!==3||(Y=k+m),Be!==x||h!==0&&Be.nodeType!==3||(Q=k+h),Be.nodeType===3&&(k+=Be.nodeValue.length),(Ke=Be.firstChild)!==null;)ke=Be,Be=Ke;for(;;){if(Be===n)break t;if(ke===c&&++ce===m&&(Y=k),ke===x&&++Fe===h&&(Q=k),(Ke=Be.nextSibling)!==null)break;Be=ke,ke=Be.parentNode}Be=Ke}c=Y===-1||Q===-1?null:{start:Y,end:Q}}else c=null}c=c||{start:0,end:0}}else c=null;for(Ml={focusedElem:n,selectionRange:c},wa=!1,Xe=a;Xe!==null;)if(a=Xe,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,Xe=n;else for(;Xe!==null;){a=Xe;try{var at=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(at!==null){var lt=at.memoizedProps,hn=at.memoizedState,ne=a.stateNode,te=ne.getSnapshotBeforeUpdate(a.elementType===a.type?lt:Ja(a.type,lt),hn);ne.__reactInternalSnapshotBeforeUpdate=te}break;case 3:var se=a.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Oe){Vr(a,a.return,Oe)}if(n=a.sibling,n!==null){n.return=a.return,Xe=n;break}Xe=a.return}return at=Vg,Vg=!1,at}function yf(n,a,c){var h=a.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var m=h=h.next;do{if((m.tag&n)===n){var x=m.destroy;m.destroy=void 0,x!==void 0&&nh(a,c,x)}m=m.next}while(m!==h)}}function xf(n,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&n)===n){var h=c.create;c.destroy=h()}c=c.next}while(c!==a)}}function ip(n){var a=n.ref;if(a!==null){var c=n.stateNode;switch(n.tag){case 5:n=c;break;default:n=c}typeof a=="function"?a(n):a.current=n}}function ih(n){var a=n.alternate;a!==null&&(n.alternate=null,ih(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&(delete a[Cs],delete a[Wc],delete a[Gc],delete a[zu],delete a[O1])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Ef(n){return n.tag===5||n.tag===3||n.tag===4}function no(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Ef(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Rs(n,a,c){var h=n.tag;if(h===5||h===6)n=n.stateNode,a?c.nodeType===8?c.parentNode.insertBefore(n,a):c.insertBefore(n,a):(c.nodeType===8?(a=c.parentNode,a.insertBefore(n,c)):(a=c,a.appendChild(n)),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=$o));else if(h!==4&&(n=n.child,n!==null))for(Rs(n,a,c),n=n.sibling;n!==null;)Rs(n,a,c),n=n.sibling}function As(n,a,c){var h=n.tag;if(h===5||h===6)n=n.stateNode,a?c.insertBefore(n,a):c.appendChild(n);else if(h!==4&&(n=n.child,n!==null))for(As(n,a,c),n=n.sibling;n!==null;)As(n,a,c),n=n.sibling}var fn=null,Ei=!1;function Ci(n,a,c){for(c=c.child;c!==null;)Gg(n,a,c),c=c.sibling}function Gg(n,a,c){if(Ii&&typeof Ii.onCommitFiberUnmount=="function")try{Ii.onCommitFiberUnmount(Ao,c)}catch{}switch(c.tag){case 5:di||Qu(c,a);case 6:var h=fn,m=Ei;fn=null,Ci(n,a,c),fn=h,Ei=m,fn!==null&&(Ei?(n=fn,c=c.stateNode,n.nodeType===8?n.parentNode.removeChild(c):n.removeChild(c)):fn.removeChild(c.stateNode));break;case 18:fn!==null&&(Ei?(n=fn,c=c.stateNode,n.nodeType===8?ju(n.parentNode,c):n.nodeType===1&&ju(n,c),Ga(n)):ju(fn,c.stateNode));break;case 4:h=fn,m=Ei,fn=c.stateNode.containerInfo,Ei=!0,Ci(n,a,c),fn=h,Ei=m;break;case 0:case 11:case 14:case 15:if(!di&&(h=c.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){m=h=h.next;do{var x=m,k=x.destroy;x=x.tag,k!==void 0&&(x&2||x&4)&&nh(c,a,k),m=m.next}while(m!==h)}Ci(n,a,c);break;case 1:if(!di&&(Qu(c,a),h=c.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=c.memoizedProps,h.state=c.memoizedState,h.componentWillUnmount()}catch(Y){Vr(c,a,Y)}Ci(n,a,c);break;case 21:Ci(n,a,c);break;case 22:c.mode&1?(di=(h=di)||c.memoizedState!==null,Ci(n,a,c),di=h):Ci(n,a,c);break;default:Ci(n,a,c)}}function Kg(n){var a=n.updateQueue;if(a!==null){n.updateQueue=null;var c=n.stateNode;c===null&&(c=n.stateNode=new M1),a.forEach(function(h){var m=im.bind(null,n,h);c.has(h)||(c.add(h),h.then(m,m))})}}function es(n,a){var c=a.deletions;if(c!==null)for(var h=0;h<c.length;h++){var m=c[h];try{var x=n,k=a,Y=k;e:for(;Y!==null;){switch(Y.tag){case 5:fn=Y.stateNode,Ei=!1;break e;case 3:fn=Y.stateNode.containerInfo,Ei=!0;break e;case 4:fn=Y.stateNode.containerInfo,Ei=!0;break e}Y=Y.return}if(fn===null)throw Error(i(160));Gg(x,k,m),fn=null,Ei=!1;var Q=m.alternate;Q!==null&&(Q.return=null),m.return=null}catch(ce){Vr(m,a,ce)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)ap(a,n),a=a.sibling}function ap(n,a){var c=n.alternate,h=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(es(a,n),Vi(n),h&4){try{yf(3,n,n.return),xf(3,n)}catch(lt){Vr(n,n.return,lt)}try{yf(5,n,n.return)}catch(lt){Vr(n,n.return,lt)}}break;case 1:es(a,n),Vi(n),h&512&&c!==null&&Qu(c,c.return);break;case 5:if(es(a,n),Vi(n),h&512&&c!==null&&Qu(c,c.return),n.flags&32){var m=n.stateNode;try{Pe(m,"")}catch(lt){Vr(n,n.return,lt)}}if(h&4&&(m=n.stateNode,m!=null)){var x=n.memoizedProps,k=c!==null?c.memoizedProps:x,Y=n.type,Q=n.updateQueue;if(n.updateQueue=null,Q!==null)try{Y==="input"&&x.type==="radio"&&x.name!=null&&br(m,x),gn(Y,k);var ce=gn(Y,x);for(k=0;k<Q.length;k+=2){var Fe=Q[k],Be=Q[k+1];Fe==="style"?Sr(m,Be):Fe==="dangerouslySetInnerHTML"?ra(m,Be):Fe==="children"?Pe(m,Be):U(m,Fe,Be,ce)}switch(Y){case"input":nn(m,x);break;case"textarea":ui(m,x);break;case"select":var ke=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!x.multiple;var Ke=x.value;Ke!=null?tr(m,!!x.multiple,Ke,!1):ke!==!!x.multiple&&(x.defaultValue!=null?tr(m,!!x.multiple,x.defaultValue,!0):tr(m,!!x.multiple,x.multiple?[]:"",!1))}m[Wc]=x}catch(lt){Vr(n,n.return,lt)}}break;case 6:if(es(a,n),Vi(n),h&4){if(n.stateNode===null)throw Error(i(162));m=n.stateNode,x=n.memoizedProps;try{m.nodeValue=x}catch(lt){Vr(n,n.return,lt)}}break;case 3:if(es(a,n),Vi(n),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Ga(a.containerInfo)}catch(lt){Vr(n,n.return,lt)}break;case 4:es(a,n),Vi(n);break;case 13:es(a,n),Vi(n),m=n.child,m.flags&8192&&(x=m.memoizedState!==null,m.stateNode.isHidden=x,!x||m.alternate!==null&&m.alternate.memoizedState!==null||(lp=Ft())),h&4&&Kg(n);break;case 22:if(Fe=c!==null&&c.memoizedState!==null,n.mode&1?(di=(ce=di)||Fe,es(a,n),di=ce):es(a,n),Vi(n),h&8192){if(ce=n.memoizedState!==null,(n.stateNode.isHidden=ce)&&!Fe&&n.mode&1)for(Xe=n,Fe=n.child;Fe!==null;){for(Be=Xe=Fe;Xe!==null;){switch(ke=Xe,Ke=ke.child,ke.tag){case 0:case 11:case 14:case 15:yf(4,ke,ke.return);break;case 1:Qu(ke,ke.return);var at=ke.stateNode;if(typeof at.componentWillUnmount=="function"){h=ke,c=ke.return;try{a=h,at.props=a.memoizedProps,at.state=a.memoizedState,at.componentWillUnmount()}catch(lt){Vr(h,c,lt)}}break;case 5:Qu(ke,ke.return);break;case 22:if(ke.memoizedState!==null){Cf(Be);continue}}Ke!==null?(Ke.return=ke,Xe=Ke):Cf(Be)}Fe=Fe.sibling}e:for(Fe=null,Be=n;;){if(Be.tag===5){if(Fe===null){Fe=Be;try{m=Be.stateNode,ce?(x=m.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(Y=Be.stateNode,Q=Be.memoizedProps.style,k=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,Y.style.display=rr("display",k))}catch(lt){Vr(n,n.return,lt)}}}else if(Be.tag===6){if(Fe===null)try{Be.stateNode.nodeValue=ce?"":Be.memoizedProps}catch(lt){Vr(n,n.return,lt)}}else if((Be.tag!==22&&Be.tag!==23||Be.memoizedState===null||Be===n)&&Be.child!==null){Be.child.return=Be,Be=Be.child;continue}if(Be===n)break e;for(;Be.sibling===null;){if(Be.return===null||Be.return===n)break e;Fe===Be&&(Fe=null),Be=Be.return}Fe===Be&&(Fe=null),Be.sibling.return=Be.return,Be=Be.sibling}}break;case 19:es(a,n),Vi(n),h&4&&Kg(n);break;case 21:break;default:es(a,n),Vi(n)}}function Vi(n){var a=n.flags;if(a&2){try{e:{for(var c=n.return;c!==null;){if(Ef(c)){var h=c;break e}c=c.return}throw Error(i(160))}switch(h.tag){case 5:var m=h.stateNode;h.flags&32&&(Pe(m,""),h.flags&=-33);var x=no(n);As(n,x,m);break;case 3:case 4:var k=h.stateNode.containerInfo,Y=no(n);Rs(n,Y,k);break;default:throw Error(i(161))}}catch(Q){Vr(n,n.return,Q)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function N1(n,a,c){Xe=n,sp(n)}function sp(n,a,c){for(var h=(n.mode&1)!==0;Xe!==null;){var m=Xe,x=m.child;if(m.tag===22&&h){var k=m.memoizedState!==null||mf;if(!k){var Y=m.alternate,Q=Y!==null&&Y.memoizedState!==null||di;Y=mf;var ce=di;if(mf=k,(di=Q)&&!ce)for(Xe=m;Xe!==null;)k=Xe,Q=k.child,k.tag===22&&k.memoizedState!==null?op(m):Q!==null?(Q.return=k,Xe=Q):op(m);for(;x!==null;)Xe=x,sp(x),x=x.sibling;Xe=m,mf=Y,di=ce}Qg(n)}else m.subtreeFlags&8772&&x!==null?(x.return=m,Xe=x):Qg(n)}}function Qg(n){for(;Xe!==null;){var a=Xe;if(a.flags&8772){var c=a.alternate;try{if(a.flags&8772)switch(a.tag){case 0:case 11:case 15:di||xf(5,a);break;case 1:var h=a.stateNode;if(a.flags&4&&!di)if(c===null)h.componentDidMount();else{var m=a.elementType===a.type?c.memoizedProps:Ja(a.type,c.memoizedProps);h.componentDidUpdate(m,c.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var x=a.updateQueue;x!==null&&Y0(a,x,h);break;case 3:var k=a.updateQueue;if(k!==null){if(c=null,a.child!==null)switch(a.child.tag){case 5:c=a.child.stateNode;break;case 1:c=a.child.stateNode}Y0(a,k,c)}break;case 5:var Y=a.stateNode;if(c===null&&a.flags&4){c=Y;var Q=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&c.focus();break;case"img":Q.src&&(c.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var ce=a.alternate;if(ce!==null){var Fe=ce.memoizedState;if(Fe!==null){var Be=Fe.dehydrated;Be!==null&&Ga(Be)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}di||a.flags&512&&ip(a)}catch(ke){Vr(a,a.return,ke)}}if(a===n){Xe=null;break}if(c=a.sibling,c!==null){c.return=a.return,Xe=c;break}Xe=a.return}}function Cf(n){for(;Xe!==null;){var a=Xe;if(a===n){Xe=null;break}var c=a.sibling;if(c!==null){c.return=a.return,Xe=c;break}Xe=a.return}}function op(n){for(;Xe!==null;){var a=Xe;try{switch(a.tag){case 0:case 11:case 15:var c=a.return;try{xf(4,a)}catch(Q){Vr(a,c,Q)}break;case 1:var h=a.stateNode;if(typeof h.componentDidMount=="function"){var m=a.return;try{h.componentDidMount()}catch(Q){Vr(a,m,Q)}}var x=a.return;try{ip(a)}catch(Q){Vr(a,x,Q)}break;case 5:var k=a.return;try{ip(a)}catch(Q){Vr(a,k,Q)}}}catch(Q){Vr(a,a.return,Q)}if(a===n){Xe=null;break}var Y=a.sibling;if(Y!==null){Y.return=a.return,Xe=Y;break}Xe=a.return}}var H1=Math.ceil,Ko=q.ReactCurrentDispatcher,Ql=q.ReactCurrentOwner,Qn=q.ReactCurrentBatchConfig,Vt=0,Mn=null,wn=null,Zn=0,la=0,Zu=Da(0),dn=0,Sf=null,ks=0,Xu=0,ah=0,wf=null,Wi=null,lp=0,Ju=1/0,ua=null,ec=!1,Zl=null,Qo=null,sh=!1,io=null,bf=0,Zo=0,tc=null,_f=-1,hi=0;function bn(){return Vt&6?Ft():_f!==-1?_f:_f=Ft()}function Fs(n){return n.mode&1?Vt&2&&Zn!==0?Zn&-Zn:B1.transition!==null?(hi===0&&(hi=Tu()),hi):(n=sr,n!==0||(n=window.event,n=n===void 0?16:Mu(n.type)),n):1}function Si(n,a,c,h){if(50<Zo)throw Zo=0,tc=null,Error(i(185));Ys(n,c,h),(!(Vt&2)||n!==Mn)&&(n===Mn&&(!(Vt&2)&&(Xu|=c),dn===4&&ts(n,Zn)),Gi(n,h),c===1&&Vt===0&&!(a.mode&1)&&(Ju=Ft()+500,Yu&&ws()))}function Gi(n,a){var c=n.callbackNode;_l(n,a);var h=Wa(n,n===Mn?Zn:0);if(h===0)c!==null&&Vn(c),n.callbackNode=null,n.callbackPriority=0;else if(a=h&-h,n.callbackPriority!==a){if(c!=null&&Vn(c),a===1)n.tag===0?Lo(up.bind(null,n)):Dd(up.bind(null,n)),Uu(function(){!(Vt&6)&&ws()}),c=null;else{switch(Au(h)){case 1:c=Ya;break;case 4:c=wl;break;case 16:c=bl;break;case 536870912:c=bu;break;default:c=bl}c=sm(c,oh.bind(null,n))}n.callbackPriority=a,n.callbackNode=c}}function oh(n,a){if(_f=-1,hi=0,Vt&6)throw Error(i(327));var c=n.callbackNode;if(rc()&&n.callbackNode!==c)return null;var h=Wa(n,n===Mn?Zn:0);if(h===0)return null;if(h&30||h&n.expiredLanes||a)a=lh(n,h);else{a=h;var m=Vt;Vt|=2;var x=Xg();(Mn!==n||Zn!==a)&&(ua=null,Ju=Ft()+500,ao(n,a));do try{Jg();break}catch(Y){Zg(n,Y)}while(!0);P0(),Ko.current=x,Vt=m,wn!==null?a=0:(Mn=null,Zn=0,a=dn)}if(a!==0){if(a===2&&(m=Fo(n),m!==0&&(h=m,a=Df(n,m))),a===1)throw c=Sf,ao(n,0),ts(n,h),Gi(n,Ft()),c;if(a===6)ts(n,h);else{if(m=n.current.alternate,!(h&30)&&!I1(m)&&(a=lh(n,h),a===2&&(x=Fo(n),x!==0&&(h=x,a=Df(n,x))),a===1))throw c=Sf,ao(n,0),ts(n,h),Gi(n,Ft()),c;switch(n.finishedWork=m,n.finishedLanes=h,a){case 0:case 1:throw Error(i(345));case 2:eu(n,Wi,ua);break;case 3:if(ts(n,h),(h&130023424)===h&&(a=lp+500-Ft(),10<a)){if(Wa(n,0)!==0)break;if(m=n.suspendedLanes,(m&h)!==h){bn(),n.pingedLanes|=n.suspendedLanes&m;break}n.timeoutHandle=wd(eu.bind(null,n,Wi,ua),a);break}eu(n,Wi,ua);break;case 4:if(ts(n,h),(h&4194240)===h)break;for(a=n.eventTimes,m=-1;0<h;){var k=31-gi(h);x=1<<k,k=a[k],k>m&&(m=k),h&=~x}if(h=m,h=Ft()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*H1(h/1960))-h,10<h){n.timeoutHandle=wd(eu.bind(null,n,Wi,ua),h);break}eu(n,Wi,ua);break;case 5:eu(n,Wi,ua);break;default:throw Error(i(329))}}}return Gi(n,Ft()),n.callbackNode===c?oh.bind(null,n):null}function Df(n,a){var c=wf;return n.current.memoizedState.isDehydrated&&(ao(n,a).flags|=256),n=lh(n,a),n!==2&&(a=Wi,Wi=c,a!==null&&Xl(a)),n}function Xl(n){Wi===null?Wi=n:Wi.push.apply(Wi,n)}function I1(n){for(var a=n;;){if(a.flags&16384){var c=a.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var h=0;h<c.length;h++){var m=c[h],x=m.getSnapshot;m=m.value;try{if(!Qa(x(),m))return!1}catch{return!1}}}if(c=a.child,a.subtreeFlags&16384&&c!==null)c.return=a,a=c;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ts(n,a){for(a&=~ah,a&=~Xu,n.suspendedLanes|=a,n.pingedLanes&=~a,n=n.expirationTimes;0<a;){var c=31-gi(a),h=1<<c;n[c]=-1,a&=~h}}function up(n){if(Vt&6)throw Error(i(327));rc();var a=Wa(n,0);if(!(a&1))return Gi(n,Ft()),null;var c=lh(n,a);if(n.tag!==0&&c===2){var h=Fo(n);h!==0&&(a=h,c=Df(n,h))}if(c===1)throw c=Sf,ao(n,0),ts(n,a),Gi(n,Ft()),c;if(c===6)throw Error(i(345));return n.finishedWork=n.current.alternate,n.finishedLanes=a,eu(n,Wi,ua),Gi(n,Ft()),null}function cp(n,a){var c=Vt;Vt|=1;try{return n(a)}finally{Vt=c,Vt===0&&(Ju=Ft()+500,Yu&&ws())}}function Jl(n){io!==null&&io.tag===0&&!(Vt&6)&&rc();var a=Vt;Vt|=1;var c=Qn.transition,h=sr;try{if(Qn.transition=null,sr=1,n)return n()}finally{sr=h,Qn.transition=c,Vt=a,!(Vt&6)&&ws()}}function fp(){la=Zu.current,$r(Zu)}function ao(n,a){n.finishedWork=null,n.finishedLanes=0;var c=n.timeoutHandle;if(c!==-1&&(n.timeoutHandle=-1,M0(c)),wn!==null)for(c=wn.return;c!==null;){var h=c;switch(Rd(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&qu();break;case 3:Ul(),$r(On),$r(an),ht();break;case 5:Od(h);break;case 4:Ul();break;case 13:$r(en);break;case 19:$r(en);break;case 10:L0(h.type._context);break;case 22:case 23:fp()}c=c.return}if(Mn=n,wn=n=Xo(n.current,null),Zn=la=a,dn=0,Sf=null,ah=Xu=ks=0,Wi=wf=null,Pl!==null){for(a=0;a<Pl.length;a++)if(c=Pl[a],h=c.interleaved,h!==null){c.interleaved=null;var m=h.next,x=c.pending;if(x!==null){var k=x.next;x.next=m,h.next=k}c.pending=h}Pl=null}return n}function Zg(n,a){do{var c=wn;try{if(P0(),Ht.current=Wl,Md){for(var h=lr.memoizedState;h!==null;){var m=h.queue;m!==null&&(m.pending=null),h=h.next}Md=!1}if(Rr=0,Pn=En=lr=null,rf=!1,jl=0,Ql.current=null,c===null||c.return===null){dn=1,Sf=a,wn=null;break}e:{var x=n,k=c.return,Y=c,Q=a;if(a=Zn,Y.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var ce=Q,Fe=Y,Be=Fe.tag;if(!(Fe.mode&1)&&(Be===0||Be===11||Be===15)){var ke=Fe.alternate;ke?(Fe.updateQueue=ke.updateQueue,Fe.memoizedState=ke.memoizedState,Fe.lanes=ke.lanes):(Fe.updateQueue=null,Fe.memoizedState=null)}var Ke=$g(k);if(Ke!==null){Ke.flags&=-257,Go(Ke,k,Y,x,a),Ke.mode&1&&J0(x,ce,a),a=Ke,Q=ce;var at=a.updateQueue;if(at===null){var lt=new Set;lt.add(Q),a.updateQueue=lt}else at.add(Q);break e}else{if(!(a&1)){J0(x,ce,a),dp();break e}Q=Error(i(426))}}else if(Yr&&Y.mode&1){var hn=$g(k);if(hn!==null){!(hn.flags&65536)&&(hn.flags|=256),Go(hn,k,Y,x,a),eo(Gl(Q,Y));break e}}x=Q=Gl(Q,Y),dn!==4&&(dn=2),wf===null?wf=[x]:wf.push(x),x=k;do{switch(x.tag){case 3:x.flags|=65536,a&=-a,x.lanes|=a;var ne=Ig(x,Q,a);Og(x,ne);break e;case 1:Y=Q;var te=x.type,se=x.stateNode;if(!(x.flags&128)&&(typeof te.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(Qo===null||!Qo.has(se)))){x.flags|=65536,a&=-a,x.lanes|=a;var Oe=X0(x,Y,a);Og(x,Oe);break e}}x=x.return}while(x!==null)}tm(c)}catch(st){a=st,wn===c&&c!==null&&(wn=c=c.return);continue}break}while(!0)}function Xg(){var n=Ko.current;return Ko.current=Wl,n===null?Wl:n}function dp(){(dn===0||dn===3||dn===2)&&(dn=4),Mn===null||!(ks&268435455)&&!(Xu&268435455)||ts(Mn,Zn)}function lh(n,a){var c=Vt;Vt|=2;var h=Xg();(Mn!==n||Zn!==a)&&(ua=null,ao(n,a));do try{$1();break}catch(m){Zg(n,m)}while(!0);if(P0(),Vt=c,Ko.current=h,wn!==null)throw Error(i(261));return Mn=null,Zn=0,dn}function $1(){for(;wn!==null;)em(wn)}function Jg(){for(;wn!==null&&!za();)em(wn)}function em(n){var a=am(n.alternate,n,la);n.memoizedProps=n.pendingProps,a===null?tm(n):wn=a,Ql.current=null}function tm(n){var a=n;do{var c=a.alternate;if(n=a.return,a.flags&32768){if(c=rh(c,a),c!==null){c.flags&=32767,wn=c;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{dn=6,wn=null;return}}else if(c=Yg(c,a,la),c!==null){wn=c;return}if(a=a.sibling,a!==null){wn=a;return}wn=a=n}while(a!==null);dn===0&&(dn=5)}function eu(n,a,c){var h=sr,m=Qn.transition;try{Qn.transition=null,sr=1,P1(n,a,c,h)}finally{Qn.transition=m,sr=h}return null}function P1(n,a,c,h){do rc();while(io!==null);if(Vt&6)throw Error(i(327));c=n.finishedWork;var m=n.finishedLanes;if(c===null)return null;if(n.finishedWork=null,n.finishedLanes=0,c===n.current)throw Error(i(177));n.callbackNode=null,n.callbackPriority=0;var x=c.lanes|c.childLanes;if(h0(n,x),n===Mn&&(wn=Mn=null,Zn=0),!(c.subtreeFlags&2064)&&!(c.flags&2064)||sh||(sh=!0,sm(bl,function(){return rc(),null})),x=(c.flags&15990)!==0,c.subtreeFlags&15990||x){x=Qn.transition,Qn.transition=null;var k=sr;sr=1;var Y=Vt;Vt|=4,Ql.current=null,Wg(n,c),ap(c,n),Iu(Ml),wa=!!Vc,Ml=Vc=null,n.current=c,N1(c),qa(),Vt=Y,sr=k,Qn.transition=x}else n.current=c;if(sh&&(sh=!1,io=n,bf=m),x=n.pendingLanes,x===0&&(Qo=null),Oc(c.stateNode),Gi(n,Ft()),a!==null)for(h=n.onRecoverableError,c=0;c<a.length;c++)m=a[c],h(m.value,{componentStack:m.stack,digest:m.digest});if(ec)throw ec=!1,n=Zl,Zl=null,n;return bf&1&&n.tag!==0&&rc(),x=n.pendingLanes,x&1?n===tc?Zo++:(Zo=0,tc=n):Zo=0,ws(),null}function rc(){if(io!==null){var n=Au(bf),a=Qn.transition,c=sr;try{if(Qn.transition=null,sr=16>n?16:n,io===null)var h=!1;else{if(n=io,io=null,bf=0,Vt&6)throw Error(i(331));var m=Vt;for(Vt|=4,Xe=n.current;Xe!==null;){var x=Xe,k=x.child;if(Xe.flags&16){var Y=x.deletions;if(Y!==null){for(var Q=0;Q<Y.length;Q++){var ce=Y[Q];for(Xe=ce;Xe!==null;){var Fe=Xe;switch(Fe.tag){case 0:case 11:case 15:yf(8,Fe,x)}var Be=Fe.child;if(Be!==null)Be.return=Fe,Xe=Be;else for(;Xe!==null;){Fe=Xe;var ke=Fe.sibling,Ke=Fe.return;if(ih(Fe),Fe===ce){Xe=null;break}if(ke!==null){ke.return=Ke,Xe=ke;break}Xe=Ke}}}var at=x.alternate;if(at!==null){var lt=at.child;if(lt!==null){at.child=null;do{var hn=lt.sibling;lt.sibling=null,lt=hn}while(lt!==null)}}Xe=x}}if(x.subtreeFlags&2064&&k!==null)k.return=x,Xe=k;else e:for(;Xe!==null;){if(x=Xe,x.flags&2048)switch(x.tag){case 0:case 11:case 15:yf(9,x,x.return)}var ne=x.sibling;if(ne!==null){ne.return=x.return,Xe=ne;break e}Xe=x.return}}var te=n.current;for(Xe=te;Xe!==null;){k=Xe;var se=k.child;if(k.subtreeFlags&2064&&se!==null)se.return=k,Xe=se;else e:for(k=te;Xe!==null;){if(Y=Xe,Y.flags&2048)try{switch(Y.tag){case 0:case 11:case 15:xf(9,Y)}}catch(st){Vr(Y,Y.return,st)}if(Y===k){Xe=null;break e}var Oe=Y.sibling;if(Oe!==null){Oe.return=Y.return,Xe=Oe;break e}Xe=Y.return}}if(Vt=m,ws(),Ii&&typeof Ii.onPostCommitFiberRoot=="function")try{Ii.onPostCommitFiberRoot(Ao,n)}catch{}h=!0}return h}finally{sr=c,Qn.transition=a}}return!1}function rm(n,a,c){a=Gl(c,a),a=Ig(n,a,1),n=Yo(n,a,1),a=bn(),n!==null&&(Ys(n,1,a),Gi(n,a))}function Vr(n,a,c){if(n.tag===3)rm(n,n,c);else for(;a!==null;){if(a.tag===3){rm(a,n,c);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Qo===null||!Qo.has(h))){n=Gl(c,n),n=X0(a,n,1),a=Yo(a,n,1),n=bn(),a!==null&&(Ys(a,1,n),Gi(a,n));break}}a=a.return}}function L1(n,a,c){var h=n.pingCache;h!==null&&h.delete(a),a=bn(),n.pingedLanes|=n.suspendedLanes&c,Mn===n&&(Zn&c)===c&&(dn===4||dn===3&&(Zn&130023424)===Zn&&500>Ft()-lp?ao(n,0):ah|=c),Gi(n,a)}function nm(n,a){a===0&&(n.mode&1?(a=na,na<<=1,!(na&130023424)&&(na=4194304)):a=1);var c=bn();n=sa(n,a),n!==null&&(Ys(n,a,c),Gi(n,c))}function U1(n){var a=n.memoizedState,c=0;a!==null&&(c=a.retryLane),nm(n,c)}function im(n,a){var c=0;switch(n.tag){case 13:var h=n.stateNode,m=n.memoizedState;m!==null&&(c=m.retryLane);break;case 19:h=n.stateNode;break;default:throw Error(i(314))}h!==null&&h.delete(a),nm(n,c)}var am;am=function(n,a,c){if(n!==null)if(n.memoizedProps!==a.pendingProps||On.current)Cn=!0;else{if(!(n.lanes&c)&&!(a.flags&128))return Cn=!1,vf(n,a,c);Cn=!!(n.flags&131072)}else Cn=!1,Yr&&a.flags&1048576&&Rg(a,Js,a.index);switch(a.lanes=0,a.tag){case 2:var h=a.type;ka(n,a),n=a.pendingProps;var m=Li(a,an.current);Jr(a,c),m=Vo(null,a,h,n,m,c);var x=Xa();return a.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,yn(h)?(x=!0,$n(a)):x=!1,a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,q0(a),m.updater=Zd,a.stateNode=m,m._reactInternals=a,cf(a,h,n,c),a=hf(null,a,h,!0,x,c)):(a.tag=0,Yr&&x&&Td(a),Kn(null,a,m,c),a=a.child),a;case 16:h=a.elementType;e:{switch(ka(n,a),n=a.pendingProps,m=h._init,h=m(h._payload),a.type=h,m=a.tag=z1(h),n=Ja(h,n),m){case 0:a=Pg(null,a,h,n,c);break e;case 1:a=Lg(null,a,h,n,c);break e;case 11:a=Yi(null,a,h,n,c);break e;case 14:a=Kl(null,a,h,Ja(h.type,n),c);break e}throw Error(i(306,h,""))}return a;case 0:return h=a.type,m=a.pendingProps,m=a.elementType===h?m:Ja(h,m),Pg(n,a,h,m,c);case 1:return h=a.type,m=a.pendingProps,m=a.elementType===h?m:Ja(h,m),Lg(n,a,h,m,c);case 3:e:{if(Ku(a),n===null)throw Error(i(387));h=a.pendingProps,x=a.memoizedState,m=x.element,Fg(n,a),Zc(a,h,null,c);var k=a.memoizedState;if(h=k.element,x.isDehydrated)if(x={element:h,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},a.updateQueue.baseState=x,a.memoizedState=x,a.flags&256){m=Gl(Error(i(423)),a),a=Ug(n,a,h,c,m);break e}else if(h!==m){m=Gl(Error(i(424)),a),a=Ug(n,a,h,c,m);break e}else for(ji=Es(a.stateNode.containerInfo.firstChild),Ui=a,Yr=!0,Ra=null,c=ze(a,null,h,c),a.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(qo(),h===m){a=Fa(n,a,c);break e}Kn(n,a,h,c)}a=a.child}return a;case 5:return Bg(a),n===null&&I0(a),h=a.type,m=a.pendingProps,x=n!==null?n.memoizedProps:null,k=m.children,Sd(h,m)?k=null:x!==null&&Sd(h,x)&&(a.flags|=32),ep(n,a),Kn(n,a,k,c),a.child;case 6:return n===null&&I0(a),null;case 13:return th(n,a,c);case 4:return V0(a,a.stateNode.containerInfo),h=a.pendingProps,n===null?a.child=un(a,null,h,c):Kn(n,a,h,c),a.child;case 11:return h=a.type,m=a.pendingProps,m=a.elementType===h?m:Ja(h,m),Yi(n,a,h,m,c);case 7:return Kn(n,a,a.pendingProps,c),a.child;case 8:return Kn(n,a,a.pendingProps.children,c),a.child;case 12:return Kn(n,a,a.pendingProps.children,c),a.child;case 10:e:{if(h=a.type._context,m=a.pendingProps,x=a.memoizedProps,k=m.value,ft(aa,h._currentValue),h._currentValue=k,x!==null)if(Qa(x.value,k)){if(x.children===m.children&&!On.current){a=Fa(n,a,c);break e}}else for(x=a.child,x!==null&&(x.return=a);x!==null;){var Y=x.dependencies;if(Y!==null){k=x.child;for(var Q=Y.firstContext;Q!==null;){if(Q.context===h){if(x.tag===1){Q=to(-1,c&-c),Q.tag=2;var ce=x.updateQueue;if(ce!==null){ce=ce.shared;var Fe=ce.pending;Fe===null?Q.next=Q:(Q.next=Fe.next,Fe.next=Q),ce.pending=Q}}x.lanes|=c,Q=x.alternate,Q!==null&&(Q.lanes|=c),U0(x.return,c,a),Y.lanes|=c;break}Q=Q.next}}else if(x.tag===10)k=x.type===a.type?null:x.child;else if(x.tag===18){if(k=x.return,k===null)throw Error(i(341));k.lanes|=c,Y=k.alternate,Y!==null&&(Y.lanes|=c),U0(k,c,a),k=x.sibling}else k=x.child;if(k!==null)k.return=x;else for(k=x;k!==null;){if(k===a){k=null;break}if(x=k.sibling,x!==null){x.return=k.return,k=x;break}k=k.return}x=k}Kn(n,a,m.children,c),a=a.child}return a;case 9:return m=a.type,h=a.pendingProps.children,Jr(a,c),m=Aa(m),h=h(m),a.flags|=1,Kn(n,a,h,c),a.child;case 14:return h=a.type,m=Ja(h,a.pendingProps),m=Ja(h.type,m),Kl(n,a,h,m,c);case 15:return Ot(n,a,a.type,a.pendingProps,c);case 17:return h=a.type,m=a.pendingProps,m=a.elementType===h?m:Ja(h,m),ka(n,a),a.tag=1,yn(h)?(n=!0,$n(a)):n=!1,Jr(a,c),Xd(a,h,m),cf(a,h,m,c),hf(null,a,h,!0,n,c);case 19:return Ts(n,a,c);case 22:return df(n,a,c)}throw Error(i(156,a.tag))};function sm(n,a){return Lr(n,a)}function j1(n,a,c,h){this.tag=n,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ba(n,a,c,h){return new j1(n,a,c,h)}function hp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function z1(n){if(typeof n=="function")return hp(n)?1:0;if(n!=null){if(n=n.$$typeof,n===L)return 11;if(n===be)return 14}return 2}function Xo(n,a){var c=n.alternate;return c===null?(c=Ba(n.tag,a,n.key,n.mode),c.elementType=n.elementType,c.type=n.type,c.stateNode=n.stateNode,c.alternate=n,n.alternate=c):(c.pendingProps=a,c.type=n.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=n.flags&14680064,c.childLanes=n.childLanes,c.lanes=n.lanes,c.child=n.child,c.memoizedProps=n.memoizedProps,c.memoizedState=n.memoizedState,c.updateQueue=n.updateQueue,a=n.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},c.sibling=n.sibling,c.index=n.index,c.ref=n.ref,c}function Tf(n,a,c,h,m,x){var k=2;if(h=n,typeof n=="function")hp(n)&&(k=1);else if(typeof n=="string")k=5;else e:switch(n){case ee:return so(c.children,m,x,a);case A:k=8,m|=8;break;case Ee:return n=Ba(12,c,a,m|2),n.elementType=Ee,n.lanes=x,n;case N:return n=Ba(13,c,a,m),n.elementType=N,n.lanes=x,n;case De:return n=Ba(19,c,a,m),n.elementType=De,n.lanes=x,n;case ge:return Jo(c,m,x,a);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Z:k=10;break e;case F:k=9;break e;case L:k=11;break e;case be:k=14;break e;case $e:k=16,h=null;break e}throw Error(i(130,n==null?n:typeof n,""))}return a=Ba(k,c,a,m),a.elementType=n,a.type=h,a.lanes=x,a}function so(n,a,c,h){return n=Ba(7,n,h,a),n.lanes=c,n}function Jo(n,a,c,h){return n=Ba(22,n,h,a),n.elementType=ge,n.lanes=c,n.stateNode={isHidden:!1},n}function pp(n,a,c){return n=Ba(6,n,null,a),n.lanes=c,n}function uh(n,a,c){return a=Ba(4,n.children!==null?n.children:[],n.key,a),a.lanes=c,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}function om(n,a,c,h,m){this.tag=a,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ru(0),this.expirationTimes=Ru(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ru(0),this.identifierPrefix=h,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function ch(n,a,c,h,m,x,k,Y,Q){return n=new om(n,a,c,Y,Q),a===1?(a=1,x===!0&&(a|=8)):a=0,x=Ba(3,null,null,a),n.current=x,x.stateNode=n,x.memoizedState={element:h,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},q0(x),n}function q1(n,a,c){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:X,key:h==null?null:""+h,children:n,containerInfo:a,implementation:c}}function vp(n){if(!n)return ci;n=n._reactInternals;e:{if(kt(n)!==n||n.tag!==1)throw Error(i(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(yn(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(i(171))}if(n.tag===1){var c=n.type;if(yn(c))return Kc(n,c,a)}return a}function lm(n,a,c,h,m,x,k,Y,Q){return n=ch(c,h,!0,n,m,x,k,Y,Q),n.context=vp(null),c=n.current,h=bn(),m=Fs(c),x=to(h,m),x.callback=a??null,Yo(c,x,m),n.current.lanes=m,Ys(n,m,h),Gi(n,h),n}function fh(n,a,c,h){var m=a.current,x=bn(),k=Fs(m);return c=vp(c),a.context===null?a.context=c:a.pendingContext=c,a=to(x,k),a.payload={element:n},h=h===void 0?null:h,h!==null&&(a.callback=h),n=Yo(m,a,k),n!==null&&(Si(n,m,k,x),Fd(n,m,k)),k}function dh(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function gp(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var c=n.retryLane;n.retryLane=c!==0&&c<a?c:a}}function hh(n,a){gp(n,a),(n=n.alternate)&&gp(n,a)}function um(){return null}var tu=typeof reportError=="function"?reportError:function(n){console.error(n)};function mp(n){this._internalRoot=n}ph.prototype.render=mp.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));fh(n,a,null,null)},ph.prototype.unmount=mp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;Jl(function(){fh(null,n,null,null)}),a[Zs]=null}};function ph(n){this._internalRoot=n}ph.prototype.unstable_scheduleHydration=function(n){if(n){var a=_t();n={blockedOn:null,target:n,priority:a};for(var c=0;c<Fn.length&&a!==0&&a<Fn[c].priority;c++);Fn.splice(c,0,n),c===0&&Nc(n)}};function yp(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function vh(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function cm(){}function Y1(n,a,c,h,m){if(m){if(typeof h=="function"){var x=h;h=function(){var ce=dh(k);x.call(ce)}}var k=lm(a,h,n,0,null,!1,!1,"",cm);return n._reactRootContainer=k,n[Zs]=k.current,Pu(n.nodeType===8?n.parentNode:n),Jl(),k}for(;m=n.lastChild;)n.removeChild(m);if(typeof h=="function"){var Y=h;h=function(){var ce=dh(Q);Y.call(ce)}}var Q=ch(n,0,!1,null,null,!1,!1,"",cm);return n._reactRootContainer=Q,n[Zs]=Q.current,Pu(n.nodeType===8?n.parentNode:n),Jl(function(){fh(a,Q,c,h)}),Q}function Rf(n,a,c,h,m){var x=c._reactRootContainer;if(x){var k=x;if(typeof m=="function"){var Y=m;m=function(){var Q=dh(k);Y.call(Q)}}fh(a,k,n,m)}else k=Y1(c,a,n,m,h);return dh(k)}Zt=function(n){switch(n.tag){case 3:var a=n.stateNode;if(a.current.memoizedState.isDehydrated){var c=Va(a.pendingLanes);c!==0&&(Vs(a,c|1),Gi(a,Ft()),!(Vt&6)&&(Ju=Ft()+500,ws()))}break;case 13:Jl(function(){var h=sa(n,1);if(h!==null){var m=bn();Si(h,n,1,m)}}),hh(n,1)}},Bc=function(n){if(n.tag===13){var a=sa(n,134217728);if(a!==null){var c=bn();Si(a,n,134217728,c)}hh(n,134217728)}},vs=function(n){if(n.tag===13){var a=Fs(n),c=sa(n,a);if(c!==null){var h=bn();Si(c,n,a,h)}hh(n,a)}},_t=function(){return sr},ku=function(n,a){var c=sr;try{return sr=n,a()}finally{sr=c}},hr=function(n,a,c){switch(a){case"input":if(nn(n,c),a=c.name,c.type==="radio"&&a!=null){for(c=n;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<c.length;a++){var h=c[a];if(h!==n&&h.form===n.form){var m=Xr(h);if(!m)throw Error(i(90));zr(h),nn(h,m)}}}break;case"textarea":ui(n,c);break;case"select":a=c.value,a!=null&&tr(n,!!c.multiple,a,!1)}},cs=cp,fs=Jl;var V1={usingClientEntryPoint:!1,Events:[dt,Za,Xr,ja,qs,cp]},Af={findFiberByHostInstance:Nl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},fm={bundleType:Af.bundleType,version:Af.version,rendererPackageName:Af.rendererPackageName,rendererConfig:Af.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:q.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=ln(n),n===null?null:n.stateNode},findFiberByHostInstance:Af.findFiberByHostInstance||um,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var el=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!el.isDisabled&&el.supportsFiber)try{Ao=el.inject(fm),Ii=el}catch{}}return va.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V1,va.createPortal=function(n,a){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yp(a))throw Error(i(200));return q1(n,a,null,c)},va.createRoot=function(n,a){if(!yp(n))throw Error(i(299));var c=!1,h="",m=tu;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onRecoverableError!==void 0&&(m=a.onRecoverableError)),a=ch(n,1,!1,null,null,c,!1,h,m),n[Zs]=a.current,Pu(n.nodeType===8?n.parentNode:n),new mp(a)},va.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=ln(a),n=n===null?null:n.stateNode,n},va.flushSync=function(n){return Jl(n)},va.hydrate=function(n,a,c){if(!vh(a))throw Error(i(200));return Rf(null,n,a,!0,c)},va.hydrateRoot=function(n,a,c){if(!yp(n))throw Error(i(405));var h=c!=null&&c.hydratedSources||null,m=!1,x="",k=tu;if(c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(x=c.identifierPrefix),c.onRecoverableError!==void 0&&(k=c.onRecoverableError)),a=lm(a,null,n,1,c??null,m,!1,x,k),n[Zs]=a.current,Pu(n),h)for(n=0;n<h.length;n++)c=h[n],m=c._getVersion,m=m(c._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[c,m]:a.mutableSourceEagerHydrationData.push(c,m);return new ph(a)},va.render=function(n,a,c){if(!vh(a))throw Error(i(200));return Rf(null,n,a,!1,c)},va.unmountComponentAtNode=function(n){if(!vh(n))throw Error(i(40));return n._reactRootContainer?(Jl(function(){Rf(null,null,n,!1,function(){n._reactRootContainer=null,n[Zs]=null})}),!0):!1},va.unstable_batchedUpdates=cp,va.unstable_renderSubtreeIntoContainer=function(n,a,c,h){if(!vh(c))throw Error(i(200));if(n==null||n._reactInternals===void 0)throw Error(i(38));return Rf(n,a,c,!1,h)},va.version="18.3.1-next-f1338f8080-20240426",va}var ga={};/**
|
|
71
|
+
`+x.stack}return{value:n,source:a,stack:m,digest:null}}function Q0(n,a,c){return{value:n,source:null,stack:c??null,digest:a??null}}function Z0(n,a){try{console.error(a.value)}catch(c){setTimeout(function(){throw c})}}var Jd=typeof WeakMap=="function"?WeakMap:Map;function Ig(n,a,c){c=to(-1,c),c.tag=3,c.payload={element:null};var h=a.value;return c.callback=function(){ec||(ec=!0,Zl=h),Z0(n,a)},c}function X0(n,a,c){c=to(-1,c),c.tag=3;var h=n.type.getDerivedStateFromError;if(typeof h=="function"){var m=a.value;c.payload=function(){return h(m)},c.callback=function(){Z0(n,a)}}var x=n.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(c.callback=function(){Z0(n,a),typeof h!="function"&&(Qo===null?Qo=new Set([this]):Qo.add(this));var k=a.stack;this.componentDidCatch(a.value,{componentStack:k!==null?k:""})}),c}function J0(n,a,c){var h=n.pingCache;if(h===null){h=n.pingCache=new Jd;var m=new Set;h.set(a,m)}else m=h.get(a),m===void 0&&(m=new Set,h.set(a,m));m.has(c)||(m.add(c),n=L1.bind(null,n,a,c),a.then(n,n))}function $g(n){do{var a;if((a=n.tag===13)&&(a=n.memoizedState,a=a!==null?a.dehydrated!==null:!0),a)return n;n=n.return}while(n!==null);return null}function Go(n,a,c,h,m){return n.mode&1?(n.flags|=65536,n.lanes=m,n):(n===a?n.flags|=65536:(n.flags|=128,c.flags|=131072,c.flags&=-52805,c.tag===1&&(c.alternate===null?c.tag=17:(a=to(-1,1),a.tag=2,Yo(c,a,1))),c.lanes|=1),n)}var ff=q.ReactCurrentOwner,Cn=!1;function Kn(n,a,c,h){a.child=n===null?ze(a,null,c,h):un(a,n.child,c,h)}function Yi(n,a,c,h,m){c=c.render;var x=a.ref;return Jr(a,m),h=Vo(n,a,c,h,x,m),c=Xa(),n!==null&&!Cn?(a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~m,Fa(n,a,m)):(Yr&&c&&Td(a),a.flags|=1,Kn(n,a,h,m),a.child)}function Kl(n,a,c,h,m){if(n===null){var x=c.type;return typeof x=="function"&&!hp(x)&&x.defaultProps===void 0&&c.compare===null&&c.defaultProps===void 0?(a.tag=15,a.type=x,Ot(n,a,x,h,m)):(n=Tf(c.type,null,h,a,a.mode,m),n.ref=a.ref,n.return=a,a.child=n)}if(x=n.child,!(n.lanes&m)){var k=x.memoizedProps;if(c=c.compare,c=c!==null?c:Uc,c(k,h)&&n.ref===a.ref)return Fa(n,a,m)}return a.flags|=1,n=Xo(x,h),n.ref=a.ref,n.return=a,a.child=n}function Ot(n,a,c,h,m){if(n!==null){var x=n.memoizedProps;if(Uc(x,h)&&n.ref===a.ref)if(Cn=!1,a.pendingProps=h=x,(n.lanes&m)!==0)n.flags&131072&&(Cn=!0);else return a.lanes=n.lanes,Fa(n,a,m)}return Pg(n,a,c,h,m)}function df(n,a,c){var h=a.pendingProps,m=h.children,x=n!==null?n.memoizedState:null;if(h.mode==="hidden")if(!(a.mode&1))a.memoizedState={baseLanes:0,cachePool:null,transitions:null},ft(Zu,la),la|=c;else{if(!(c&1073741824))return n=x!==null?x.baseLanes|c:c,a.lanes=a.childLanes=1073741824,a.memoizedState={baseLanes:n,cachePool:null,transitions:null},a.updateQueue=null,ft(Zu,la),la|=n,null;a.memoizedState={baseLanes:0,cachePool:null,transitions:null},h=x!==null?x.baseLanes:c,ft(Zu,la),la|=h}else x!==null?(h=x.baseLanes|c,a.memoizedState=null):h=c,ft(Zu,la),la|=h;return Kn(n,a,m,c),a.child}function ep(n,a){var c=a.ref;(n===null&&c!==null||n!==null&&n.ref!==c)&&(a.flags|=512,a.flags|=2097152)}function Pg(n,a,c,h,m){var x=yn(c)?Pi:an.current;return x=Li(a,x),Jr(a,m),c=Vo(n,a,c,h,x,m),h=Xa(),n!==null&&!Cn?(a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~m,Fa(n,a,m)):(Yr&&h&&Td(a),a.flags|=1,Kn(n,a,c,m),a.child)}function Lg(n,a,c,h,m){if(yn(c)){var x=!0;$n(a)}else x=!1;if(Jr(a,m),a.stateNode===null)ka(n,a),Xd(a,c,h),cf(a,c,h,m),h=!0;else if(n===null){var k=a.stateNode,Y=a.memoizedProps;k.props=Y;var Q=k.context,ce=c.contextType;typeof ce=="object"&&ce!==null?ce=Aa(ce):(ce=yn(c)?Pi:an.current,ce=Li(a,ce));var Fe=c.getDerivedStateFromProps,Be=typeof Fe=="function"||typeof k.getSnapshotBeforeUpdate=="function";Be||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(Y!==h||Q!==ce)&&Hg(a,k,h,ce),oa=!1;var ke=a.memoizedState;k.state=ke,Zc(a,h,k,m),Q=a.memoizedState,Y!==h||ke!==Q||On.current||oa?(typeof Fe=="function"&&(K0(a,c,Fe,h),Q=a.memoizedState),(Y=oa||Ng(a,c,Y,h,ke,Q,ce))?(Be||typeof k.UNSAFE_componentWillMount!="function"&&typeof k.componentWillMount!="function"||(typeof k.componentWillMount=="function"&&k.componentWillMount(),typeof k.UNSAFE_componentWillMount=="function"&&k.UNSAFE_componentWillMount()),typeof k.componentDidMount=="function"&&(a.flags|=4194308)):(typeof k.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=h,a.memoizedState=Q),k.props=h,k.state=Q,k.context=ce,h=Y):(typeof k.componentDidMount=="function"&&(a.flags|=4194308),h=!1)}else{k=a.stateNode,Fg(n,a),Y=a.memoizedProps,ce=a.type===a.elementType?Y:Ja(a.type,Y),k.props=ce,Be=a.pendingProps,ke=k.context,Q=c.contextType,typeof Q=="object"&&Q!==null?Q=Aa(Q):(Q=yn(c)?Pi:an.current,Q=Li(a,Q));var Ke=c.getDerivedStateFromProps;(Fe=typeof Ke=="function"||typeof k.getSnapshotBeforeUpdate=="function")||typeof k.UNSAFE_componentWillReceiveProps!="function"&&typeof k.componentWillReceiveProps!="function"||(Y!==Be||ke!==Q)&&Hg(a,k,h,Q),oa=!1,ke=a.memoizedState,k.state=ke,Zc(a,h,k,m);var at=a.memoizedState;Y!==Be||ke!==at||On.current||oa?(typeof Ke=="function"&&(K0(a,c,Ke,h),at=a.memoizedState),(ce=oa||Ng(a,c,ce,h,ke,at,Q)||!1)?(Fe||typeof k.UNSAFE_componentWillUpdate!="function"&&typeof k.componentWillUpdate!="function"||(typeof k.componentWillUpdate=="function"&&k.componentWillUpdate(h,at,Q),typeof k.UNSAFE_componentWillUpdate=="function"&&k.UNSAFE_componentWillUpdate(h,at,Q)),typeof k.componentDidUpdate=="function"&&(a.flags|=4),typeof k.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof k.componentDidUpdate!="function"||Y===n.memoizedProps&&ke===n.memoizedState||(a.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||Y===n.memoizedProps&&ke===n.memoizedState||(a.flags|=1024),a.memoizedProps=h,a.memoizedState=at),k.props=h,k.state=at,k.context=Q,h=ce):(typeof k.componentDidUpdate!="function"||Y===n.memoizedProps&&ke===n.memoizedState||(a.flags|=4),typeof k.getSnapshotBeforeUpdate!="function"||Y===n.memoizedProps&&ke===n.memoizedState||(a.flags|=1024),h=!1)}return hf(n,a,c,h,x,m)}function hf(n,a,c,h,m,x){ep(n,a);var k=(a.flags&128)!==0;if(!h&&!k)return m&&_d(a,c,!1),Fa(n,a,x);h=a.stateNode,ff.current=a;var Y=k&&typeof c.getDerivedStateFromError!="function"?null:h.render();return a.flags|=1,n!==null&&k?(a.child=un(a,n.child,null,x),a.child=un(a,null,Y,x)):Kn(n,a,Y,x),a.memoizedState=h.state,m&&_d(a,c,!0),a.child}function Ku(n){var a=n.stateNode;a.pendingContext?Tg(n,a.pendingContext,a.pendingContext!==a.context):a.context&&Tg(n,a.context,!1),V0(n,a.containerInfo)}function Ug(n,a,c,h,m){return qo(),eo(m),a.flags|=256,Kn(n,a,c,h),a.child}var eh={dehydrated:null,treeContext:null,retryLane:0};function tp(n){return{baseLanes:n,cachePool:null,transitions:null}}function th(n,a,c){var h=a.pendingProps,m=en.current,x=!1,k=(a.flags&128)!==0,Y;if((Y=k)||(Y=n!==null&&n.memoizedState===null?!1:(m&2)!==0),Y?(x=!0,a.flags&=-129):(n===null||n.memoizedState!==null)&&(m|=1),ft(en,m&1),n===null)return I0(a),n=a.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?(a.mode&1?n.data==="$!"?a.lanes=8:a.lanes=1073741824:a.lanes=1,null):(k=h.children,n=h.fallback,x?(h=a.mode,x=a.child,k={mode:"hidden",children:k},!(h&1)&&x!==null?(x.childLanes=0,x.pendingProps=k):x=Jo(k,h,0,null),n=so(n,h,c,null),x.return=a,n.return=a,x.sibling=n,a.child=x,a.child.memoizedState=tp(c),a.memoizedState=eh,n):rp(a,k));if(m=n.memoizedState,m!==null&&(Y=m.dehydrated,Y!==null))return jg(n,a,k,h,Y,m,c);if(x){x=h.fallback,k=a.mode,m=n.child,Y=m.sibling;var Q={mode:"hidden",children:h.children};return!(k&1)&&a.child!==m?(h=a.child,h.childLanes=0,h.pendingProps=Q,a.deletions=null):(h=Xo(m,Q),h.subtreeFlags=m.subtreeFlags&14680064),Y!==null?x=Xo(Y,x):(x=so(x,k,c,null),x.flags|=2),x.return=a,h.return=a,h.sibling=x,a.child=h,h=x,x=a.child,k=n.child.memoizedState,k=k===null?tp(c):{baseLanes:k.baseLanes|c,cachePool:null,transitions:k.transitions},x.memoizedState=k,x.childLanes=n.childLanes&~c,a.memoizedState=eh,h}return x=n.child,n=x.sibling,h=Xo(x,{mode:"visible",children:h.children}),!(a.mode&1)&&(h.lanes=c),h.return=a,h.sibling=null,n!==null&&(c=a.deletions,c===null?(a.deletions=[n],a.flags|=16):c.push(n)),a.child=h,a.memoizedState=null,h}function rp(n,a){return a=Jo({mode:"visible",children:a},n.mode,0,null),a.return=n,n.child=a}function pf(n,a,c,h){return h!==null&&eo(h),un(a,n.child,null,c),n=rp(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function jg(n,a,c,h,m,x,k){if(c)return a.flags&256?(a.flags&=-257,h=Q0(Error(i(422))),pf(n,a,k,h)):a.memoizedState!==null?(a.child=n.child,a.flags|=128,null):(x=h.fallback,m=a.mode,h=Jo({mode:"visible",children:h.children},m,0,null),x=so(x,m,k,null),x.flags|=2,h.return=a,x.return=a,h.sibling=x,a.child=h,a.mode&1&&un(a,n.child,null,k),a.child.memoizedState=tp(k),a.memoizedState=eh,x);if(!(a.mode&1))return pf(n,a,k,null);if(m.data==="$!"){if(h=m.nextSibling&&m.nextSibling.dataset,h)var Y=h.dgst;return h=Y,x=Error(i(419)),h=Q0(x,h,void 0),pf(n,a,k,h)}if(Y=(k&n.childLanes)!==0,Cn||Y){if(h=Mn,h!==null){switch(k&-k){case 4:m=2;break;case 16:m=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:m=32;break;case 536870912:m=268435456;break;default:m=0}m=m&(h.suspendedLanes|k)?0:m,m!==0&&m!==x.retryLane&&(x.retryLane=m,sa(n,m),Si(h,n,m,-1))}return dp(),h=Q0(Error(i(421))),pf(n,a,k,h)}return m.data==="$?"?(a.flags|=128,a.child=n.child,a=U1.bind(null,n),m._reactRetry=a,null):(n=x.treeContext,ji=Es(m.nextSibling),Ui=a,Yr=!0,Ra=null,n!==null&&(xn[Ta++]=bs,xn[Ta++]=_s,xn[Ta++]=ia,bs=n.id,_s=n.overflow,ia=a),a=rp(a,h.children),a.flags|=4096,a)}function np(n,a,c){n.lanes|=a;var h=n.alternate;h!==null&&(h.lanes|=a),U0(n.return,a,c)}function xi(n,a,c,h,m){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:m}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=h,x.tail=c,x.tailMode=m)}function Ts(n,a,c){var h=a.pendingProps,m=h.revealOrder,x=h.tail;if(Kn(n,a,h.children,c),h=en.current,h&2)h=h&1|2,a.flags|=128;else{if(n!==null&&n.flags&128)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&np(n,c,a);else if(n.tag===19)np(n,c,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}h&=1}if(ft(en,h),!(a.mode&1))a.memoizedState=null;else switch(m){case"forwards":for(c=a.child,m=null;c!==null;)n=c.alternate,n!==null&&Bd(n)===null&&(m=c),c=c.sibling;c=m,c===null?(m=a.child,a.child=null):(m=c.sibling,c.sibling=null),xi(a,!1,m,c,x);break;case"backwards":for(c=null,m=a.child,a.child=null;m!==null;){if(n=m.alternate,n!==null&&Bd(n)===null){a.child=m;break}n=m.sibling,m.sibling=c,c=m,m=n}xi(a,!0,c,null,x);break;case"together":xi(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function ka(n,a){!(a.mode&1)&&n!==null&&(n.alternate=null,a.alternate=null,a.flags|=2)}function Fa(n,a,c){if(n!==null&&(a.dependencies=n.dependencies),ks|=a.lanes,!(c&a.childLanes))return null;if(n!==null&&a.child!==n.child)throw Error(i(153));if(a.child!==null){for(n=a.child,c=Xo(n,n.pendingProps),a.child=c,c.return=a;n.sibling!==null;)n=n.sibling,c=c.sibling=Xo(n,n.pendingProps),c.return=a;c.sibling=null}return a.child}function vf(n,a,c){switch(a.tag){case 3:Ku(a),qo();break;case 5:Bg(a);break;case 1:yn(a.type)&&$n(a);break;case 4:V0(a,a.stateNode.containerInfo);break;case 10:var h=a.type._context,m=a.memoizedProps.value;ft(aa,h._currentValue),h._currentValue=m;break;case 13:if(h=a.memoizedState,h!==null)return h.dehydrated!==null?(ft(en,en.current&1),a.flags|=128,null):c&a.child.childLanes?th(n,a,c):(ft(en,en.current&1),n=Fa(n,a,c),n!==null?n.sibling:null);ft(en,en.current&1);break;case 19:if(h=(c&a.childLanes)!==0,n.flags&128){if(h)return Ts(n,a,c);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),ft(en,en.current),h)break;return null;case 22:case 23:return a.lanes=0,df(n,a,c)}return Fa(n,a,c)}var Oa,Sn,zg,qg;Oa=function(n,a){for(var c=a.child;c!==null;){if(c.tag===5||c.tag===6)n.appendChild(c.stateNode);else if(c.tag!==4&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===a)break;for(;c.sibling===null;){if(c.return===null||c.return===a)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},Sn=function(){},zg=function(n,a,c,h){var m=n.memoizedProps;if(m!==h){n=a.stateNode,Ll(Ds.current);var x=null;switch(c){case"input":m=Qt(n,m),h=Qt(n,h),x=[];break;case"select":m=_e({},m,{value:void 0}),h=_e({},h,{value:void 0}),x=[];break;case"textarea":m=ar(n,m),h=ar(n,h),x=[];break;default:typeof m.onClick!="function"&&typeof h.onClick=="function"&&(n.onclick=$o)}Or(c,h);var k;c=null;for(ce in m)if(!h.hasOwnProperty(ce)&&m.hasOwnProperty(ce)&&m[ce]!=null)if(ce==="style"){var Y=m[ce];for(k in Y)Y.hasOwnProperty(k)&&(c||(c={}),c[k]="")}else ce!=="dangerouslySetInnerHTML"&&ce!=="children"&&ce!=="suppressContentEditableWarning"&&ce!=="suppressHydrationWarning"&&ce!=="autoFocus"&&(f.hasOwnProperty(ce)?x||(x=[]):(x=x||[]).push(ce,null));for(ce in h){var Q=h[ce];if(Y=m!=null?m[ce]:void 0,h.hasOwnProperty(ce)&&Q!==Y&&(Q!=null||Y!=null))if(ce==="style")if(Y){for(k in Y)!Y.hasOwnProperty(k)||Q&&Q.hasOwnProperty(k)||(c||(c={}),c[k]="");for(k in Q)Q.hasOwnProperty(k)&&Y[k]!==Q[k]&&(c||(c={}),c[k]=Q[k])}else c||(x||(x=[]),x.push(ce,c)),c=Q;else ce==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Y=Y?Y.__html:void 0,Q!=null&&Y!==Q&&(x=x||[]).push(ce,Q)):ce==="children"?typeof Q!="string"&&typeof Q!="number"||(x=x||[]).push(ce,""+Q):ce!=="suppressContentEditableWarning"&&ce!=="suppressHydrationWarning"&&(f.hasOwnProperty(ce)?(Q!=null&&ce==="onScroll"&&xr("scroll",n),x||Y===Q||(x=[])):(x=x||[]).push(ce,Q))}c&&(x=x||[]).push("style",c);var ce=x;(a.updateQueue=ce)&&(a.flags|=4)}},qg=function(n,a,c,h){c!==h&&(a.flags|=4)};function gf(n,a){if(!Yr)switch(n.tailMode){case"hidden":a=n.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?n.tail=null:c.sibling=null;break;case"collapsed":c=n.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:h.sibling=null}}function Ln(n){var a=n.alternate!==null&&n.alternate.child===n.child,c=0,h=0;if(a)for(var m=n.child;m!==null;)c|=m.lanes|m.childLanes,h|=m.subtreeFlags&14680064,h|=m.flags&14680064,m.return=n,m=m.sibling;else for(m=n.child;m!==null;)c|=m.lanes|m.childLanes,h|=m.subtreeFlags,h|=m.flags,m.return=n,m=m.sibling;return n.subtreeFlags|=h,n.childLanes=c,a}function Yg(n,a,c){var h=a.pendingProps;switch(Rd(a),a.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ln(a),null;case 1:return yn(a.type)&&qu(),Ln(a),null;case 3:return h=a.stateNode,Ul(),$r(On),$r(an),ht(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(n===null||n.child===null)&&(Ad(a)?a.flags|=4:n===null||n.memoizedState.isDehydrated&&!(a.flags&256)||(a.flags|=1024,Ra!==null&&(Xl(Ra),Ra=null))),Sn(n,a),Ln(a),null;case 5:Od(a);var m=Ll(ef.current);if(c=a.type,n!==null&&a.stateNode!=null)zg(n,a,c,h,m),n.ref!==a.ref&&(a.flags|=512,a.flags|=2097152);else{if(!h){if(a.stateNode===null)throw Error(i(166));return Ln(a),null}if(n=Ll(Ds.current),Ad(a)){h=a.stateNode,c=a.type;var x=a.memoizedProps;switch(h[Cs]=a,h[Wc]=x,n=(a.mode&1)!==0,c){case"dialog":xr("cancel",h),xr("close",h);break;case"iframe":case"object":case"embed":xr("load",h);break;case"video":case"audio":for(m=0;m<qc.length;m++)xr(qc[m],h);break;case"source":xr("error",h);break;case"img":case"image":case"link":xr("error",h),xr("load",h);break;case"details":xr("toggle",h);break;case"input":Fr(h,x),xr("invalid",h);break;case"select":h._wrapperState={wasMultiple:!!x.multiple},xr("invalid",h);break;case"textarea":Pr(h,x),xr("invalid",h)}Or(c,x),m=null;for(var k in x)if(x.hasOwnProperty(k)){var Y=x[k];k==="children"?typeof Y=="string"?h.textContent!==Y&&(x.suppressHydrationWarning!==!0&&Cd(h.textContent,Y,n),m=["children",Y]):typeof Y=="number"&&h.textContent!==""+Y&&(x.suppressHydrationWarning!==!0&&Cd(h.textContent,Y,n),m=["children",""+Y]):f.hasOwnProperty(k)&&Y!=null&&k==="onScroll"&&xr("scroll",h)}switch(c){case"input":dr(h),Tn(h,x,!0);break;case"textarea":dr(h),Kr(h);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(h.onclick=$o)}h=m,a.updateQueue=h,h!==null&&(a.flags|=4)}else{k=m.nodeType===9?m:m.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=Qr(c)),n==="http://www.w3.org/1999/xhtml"?c==="script"?(n=k.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof h.is=="string"?n=k.createElement(c,{is:h.is}):(n=k.createElement(c),c==="select"&&(k=n,h.multiple?k.multiple=!0:h.size&&(k.size=h.size))):n=k.createElementNS(n,c),n[Cs]=a,n[Wc]=h,Oa(n,a,!1,!1),a.stateNode=n;e:{switch(k=gn(c,h),c){case"dialog":xr("cancel",n),xr("close",n),m=h;break;case"iframe":case"object":case"embed":xr("load",n),m=h;break;case"video":case"audio":for(m=0;m<qc.length;m++)xr(qc[m],n);m=h;break;case"source":xr("error",n),m=h;break;case"img":case"image":case"link":xr("error",n),xr("load",n),m=h;break;case"details":xr("toggle",n),m=h;break;case"input":Fr(n,h),m=Qt(n,h),xr("invalid",n);break;case"option":m=h;break;case"select":n._wrapperState={wasMultiple:!!h.multiple},m=_e({},h,{value:void 0}),xr("invalid",n);break;case"textarea":Pr(n,h),m=ar(n,h),xr("invalid",n);break;default:m=h}Or(c,m),Y=m;for(x in Y)if(Y.hasOwnProperty(x)){var Q=Y[x];x==="style"?Sr(n,Q):x==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&ra(n,Q)):x==="children"?typeof Q=="string"?(c!=="textarea"||Q!=="")&&Pe(n,Q):typeof Q=="number"&&Pe(n,""+Q):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(f.hasOwnProperty(x)?Q!=null&&x==="onScroll"&&xr("scroll",n):Q!=null&&U(n,x,Q,k))}switch(c){case"input":dr(n),Tn(n,h,!1);break;case"textarea":dr(n),Kr(n);break;case"option":h.value!=null&&n.setAttribute("value",""+Se(h.value));break;case"select":n.multiple=!!h.multiple,x=h.value,x!=null?tr(n,!!h.multiple,x,!1):h.defaultValue!=null&&tr(n,!!h.multiple,h.defaultValue,!0);break;default:typeof m.onClick=="function"&&(n.onclick=$o)}switch(c){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}}h&&(a.flags|=4)}a.ref!==null&&(a.flags|=512,a.flags|=2097152)}return Ln(a),null;case 6:if(n&&a.stateNode!=null)qg(n,a,n.memoizedProps,h);else{if(typeof h!="string"&&a.stateNode===null)throw Error(i(166));if(c=Ll(ef.current),Ll(Ds.current),Ad(a)){if(h=a.stateNode,c=a.memoizedProps,h[Cs]=a,(x=h.nodeValue!==c)&&(n=Ui,n!==null))switch(n.tag){case 3:Cd(h.nodeValue,c,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Cd(h.nodeValue,c,(n.mode&1)!==0)}x&&(a.flags|=4)}else h=(c.nodeType===9?c:c.ownerDocument).createTextNode(h),h[Cs]=a,a.stateNode=h}return Ln(a),null;case 13:if($r(en),h=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Yr&&ji!==null&&a.mode&1&&!(a.flags&128))Qc(),qo(),a.flags|=98560,x=!1;else if(x=Ad(a),h!==null&&h.dehydrated!==null){if(n===null){if(!x)throw Error(i(318));if(x=a.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(i(317));x[Cs]=a}else qo(),!(a.flags&128)&&(a.memoizedState=null),a.flags|=4;Ln(a),x=!1}else Ra!==null&&(Xl(Ra),Ra=null),x=!0;if(!x)return a.flags&65536?a:null}return a.flags&128?(a.lanes=c,a):(h=h!==null,h!==(n!==null&&n.memoizedState!==null)&&h&&(a.child.flags|=8192,a.mode&1&&(n===null||en.current&1?dn===0&&(dn=3):dp())),a.updateQueue!==null&&(a.flags|=4),Ln(a),null);case 4:return Ul(),Sn(n,a),n===null&&Pu(a.stateNode.containerInfo),Ln(a),null;case 10:return L0(a.type._context),Ln(a),null;case 17:return yn(a.type)&&qu(),Ln(a),null;case 19:if($r(en),x=a.memoizedState,x===null)return Ln(a),null;if(h=(a.flags&128)!==0,k=x.rendering,k===null)if(h)gf(x,!1);else{if(dn!==0||n!==null&&n.flags&128)for(n=a.child;n!==null;){if(k=Bd(n),k!==null){for(a.flags|=128,gf(x,!1),h=k.updateQueue,h!==null&&(a.updateQueue=h,a.flags|=4),a.subtreeFlags=0,h=c,c=a.child;c!==null;)x=c,n=h,x.flags&=14680066,k=x.alternate,k===null?(x.childLanes=0,x.lanes=n,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=k.childLanes,x.lanes=k.lanes,x.child=k.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=k.memoizedProps,x.memoizedState=k.memoizedState,x.updateQueue=k.updateQueue,x.type=k.type,n=k.dependencies,x.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),c=c.sibling;return ft(en,en.current&1|2),a.child}n=n.sibling}x.tail!==null&&Ft()>Ju&&(a.flags|=128,h=!0,gf(x,!1),a.lanes=4194304)}else{if(!h)if(n=Bd(k),n!==null){if(a.flags|=128,h=!0,c=n.updateQueue,c!==null&&(a.updateQueue=c,a.flags|=4),gf(x,!0),x.tail===null&&x.tailMode==="hidden"&&!k.alternate&&!Yr)return Ln(a),null}else 2*Ft()-x.renderingStartTime>Ju&&c!==1073741824&&(a.flags|=128,h=!0,gf(x,!1),a.lanes=4194304);x.isBackwards?(k.sibling=a.child,a.child=k):(c=x.last,c!==null?c.sibling=k:a.child=k,x.last=k)}return x.tail!==null?(a=x.tail,x.rendering=a,x.tail=a.sibling,x.renderingStartTime=Ft(),a.sibling=null,c=en.current,ft(en,h?c&1|2:c&1),a):(Ln(a),null);case 22:case 23:return fp(),h=a.memoizedState!==null,n!==null&&n.memoizedState!==null!==h&&(a.flags|=8192),h&&a.mode&1?la&1073741824&&(Ln(a),a.subtreeFlags&6&&(a.flags|=8192)):Ln(a),null;case 24:return null;case 25:return null}throw Error(i(156,a.tag))}function rh(n,a){switch(Rd(a),a.tag){case 1:return yn(a.type)&&qu(),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Ul(),$r(On),$r(an),ht(),n=a.flags,n&65536&&!(n&128)?(a.flags=n&-65537|128,a):null;case 5:return Od(a),null;case 13:if($r(en),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));qo()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return $r(en),null;case 4:return Ul(),null;case 10:return L0(a.type._context),null;case 22:case 23:return fp(),null;case 24:return null;default:return null}}var mf=!1,di=!1,M1=typeof WeakSet=="function"?WeakSet:Set,Xe=null;function Qu(n,a){var c=n.ref;if(c!==null)if(typeof c=="function")try{c(null)}catch(h){Vr(n,a,h)}else c.current=null}function nh(n,a,c){try{c()}catch(h){Vr(n,a,h)}}var Vg=!1;function Wg(n,a){if(Vc=wa,n=jc(),hd(n)){if("selectionStart"in n)var c={start:n.selectionStart,end:n.selectionEnd};else e:{c=(c=n.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var m=h.anchorOffset,x=h.focusNode;h=h.focusOffset;try{c.nodeType,x.nodeType}catch{c=null;break e}var k=0,Y=-1,Q=-1,ce=0,Fe=0,Be=n,ke=null;t:for(;;){for(var Ke;Be!==c||m!==0&&Be.nodeType!==3||(Y=k+m),Be!==x||h!==0&&Be.nodeType!==3||(Q=k+h),Be.nodeType===3&&(k+=Be.nodeValue.length),(Ke=Be.firstChild)!==null;)ke=Be,Be=Ke;for(;;){if(Be===n)break t;if(ke===c&&++ce===m&&(Y=k),ke===x&&++Fe===h&&(Q=k),(Ke=Be.nextSibling)!==null)break;Be=ke,ke=Be.parentNode}Be=Ke}c=Y===-1||Q===-1?null:{start:Y,end:Q}}else c=null}c=c||{start:0,end:0}}else c=null;for(Ml={focusedElem:n,selectionRange:c},wa=!1,Xe=a;Xe!==null;)if(a=Xe,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,Xe=n;else for(;Xe!==null;){a=Xe;try{var at=a.alternate;if(a.flags&1024)switch(a.tag){case 0:case 11:case 15:break;case 1:if(at!==null){var lt=at.memoizedProps,hn=at.memoizedState,ne=a.stateNode,te=ne.getSnapshotBeforeUpdate(a.elementType===a.type?lt:Ja(a.type,lt),hn);ne.__reactInternalSnapshotBeforeUpdate=te}break;case 3:var se=a.stateNode.containerInfo;se.nodeType===1?se.textContent="":se.nodeType===9&&se.documentElement&&se.removeChild(se.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(Oe){Vr(a,a.return,Oe)}if(n=a.sibling,n!==null){n.return=a.return,Xe=n;break}Xe=a.return}return at=Vg,Vg=!1,at}function yf(n,a,c){var h=a.updateQueue;if(h=h!==null?h.lastEffect:null,h!==null){var m=h=h.next;do{if((m.tag&n)===n){var x=m.destroy;m.destroy=void 0,x!==void 0&&nh(a,c,x)}m=m.next}while(m!==h)}}function xf(n,a){if(a=a.updateQueue,a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&n)===n){var h=c.create;c.destroy=h()}c=c.next}while(c!==a)}}function ip(n){var a=n.ref;if(a!==null){var c=n.stateNode;switch(n.tag){case 5:n=c;break;default:n=c}typeof a=="function"?a(n):a.current=n}}function ih(n){var a=n.alternate;a!==null&&(n.alternate=null,ih(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&(delete a[Cs],delete a[Wc],delete a[Gc],delete a[zu],delete a[O1])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Ef(n){return n.tag===5||n.tag===3||n.tag===4}function no(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Ef(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Rs(n,a,c){var h=n.tag;if(h===5||h===6)n=n.stateNode,a?c.nodeType===8?c.parentNode.insertBefore(n,a):c.insertBefore(n,a):(c.nodeType===8?(a=c.parentNode,a.insertBefore(n,c)):(a=c,a.appendChild(n)),c=c._reactRootContainer,c!=null||a.onclick!==null||(a.onclick=$o));else if(h!==4&&(n=n.child,n!==null))for(Rs(n,a,c),n=n.sibling;n!==null;)Rs(n,a,c),n=n.sibling}function As(n,a,c){var h=n.tag;if(h===5||h===6)n=n.stateNode,a?c.insertBefore(n,a):c.appendChild(n);else if(h!==4&&(n=n.child,n!==null))for(As(n,a,c),n=n.sibling;n!==null;)As(n,a,c),n=n.sibling}var fn=null,Ei=!1;function Ci(n,a,c){for(c=c.child;c!==null;)Gg(n,a,c),c=c.sibling}function Gg(n,a,c){if(Ii&&typeof Ii.onCommitFiberUnmount=="function")try{Ii.onCommitFiberUnmount(Ao,c)}catch{}switch(c.tag){case 5:di||Qu(c,a);case 6:var h=fn,m=Ei;fn=null,Ci(n,a,c),fn=h,Ei=m,fn!==null&&(Ei?(n=fn,c=c.stateNode,n.nodeType===8?n.parentNode.removeChild(c):n.removeChild(c)):fn.removeChild(c.stateNode));break;case 18:fn!==null&&(Ei?(n=fn,c=c.stateNode,n.nodeType===8?ju(n.parentNode,c):n.nodeType===1&&ju(n,c),Ga(n)):ju(fn,c.stateNode));break;case 4:h=fn,m=Ei,fn=c.stateNode.containerInfo,Ei=!0,Ci(n,a,c),fn=h,Ei=m;break;case 0:case 11:case 14:case 15:if(!di&&(h=c.updateQueue,h!==null&&(h=h.lastEffect,h!==null))){m=h=h.next;do{var x=m,k=x.destroy;x=x.tag,k!==void 0&&(x&2||x&4)&&nh(c,a,k),m=m.next}while(m!==h)}Ci(n,a,c);break;case 1:if(!di&&(Qu(c,a),h=c.stateNode,typeof h.componentWillUnmount=="function"))try{h.props=c.memoizedProps,h.state=c.memoizedState,h.componentWillUnmount()}catch(Y){Vr(c,a,Y)}Ci(n,a,c);break;case 21:Ci(n,a,c);break;case 22:c.mode&1?(di=(h=di)||c.memoizedState!==null,Ci(n,a,c),di=h):Ci(n,a,c);break;default:Ci(n,a,c)}}function Kg(n){var a=n.updateQueue;if(a!==null){n.updateQueue=null;var c=n.stateNode;c===null&&(c=n.stateNode=new M1),a.forEach(function(h){var m=im.bind(null,n,h);c.has(h)||(c.add(h),h.then(m,m))})}}function es(n,a){var c=a.deletions;if(c!==null)for(var h=0;h<c.length;h++){var m=c[h];try{var x=n,k=a,Y=k;e:for(;Y!==null;){switch(Y.tag){case 5:fn=Y.stateNode,Ei=!1;break e;case 3:fn=Y.stateNode.containerInfo,Ei=!0;break e;case 4:fn=Y.stateNode.containerInfo,Ei=!0;break e}Y=Y.return}if(fn===null)throw Error(i(160));Gg(x,k,m),fn=null,Ei=!1;var Q=m.alternate;Q!==null&&(Q.return=null),m.return=null}catch(ce){Vr(m,a,ce)}}if(a.subtreeFlags&12854)for(a=a.child;a!==null;)ap(a,n),a=a.sibling}function ap(n,a){var c=n.alternate,h=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(es(a,n),Vi(n),h&4){try{yf(3,n,n.return),xf(3,n)}catch(lt){Vr(n,n.return,lt)}try{yf(5,n,n.return)}catch(lt){Vr(n,n.return,lt)}}break;case 1:es(a,n),Vi(n),h&512&&c!==null&&Qu(c,c.return);break;case 5:if(es(a,n),Vi(n),h&512&&c!==null&&Qu(c,c.return),n.flags&32){var m=n.stateNode;try{Pe(m,"")}catch(lt){Vr(n,n.return,lt)}}if(h&4&&(m=n.stateNode,m!=null)){var x=n.memoizedProps,k=c!==null?c.memoizedProps:x,Y=n.type,Q=n.updateQueue;if(n.updateQueue=null,Q!==null)try{Y==="input"&&x.type==="radio"&&x.name!=null&&br(m,x),gn(Y,k);var ce=gn(Y,x);for(k=0;k<Q.length;k+=2){var Fe=Q[k],Be=Q[k+1];Fe==="style"?Sr(m,Be):Fe==="dangerouslySetInnerHTML"?ra(m,Be):Fe==="children"?Pe(m,Be):U(m,Fe,Be,ce)}switch(Y){case"input":nn(m,x);break;case"textarea":ui(m,x);break;case"select":var ke=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!x.multiple;var Ke=x.value;Ke!=null?tr(m,!!x.multiple,Ke,!1):ke!==!!x.multiple&&(x.defaultValue!=null?tr(m,!!x.multiple,x.defaultValue,!0):tr(m,!!x.multiple,x.multiple?[]:"",!1))}m[Wc]=x}catch(lt){Vr(n,n.return,lt)}}break;case 6:if(es(a,n),Vi(n),h&4){if(n.stateNode===null)throw Error(i(162));m=n.stateNode,x=n.memoizedProps;try{m.nodeValue=x}catch(lt){Vr(n,n.return,lt)}}break;case 3:if(es(a,n),Vi(n),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Ga(a.containerInfo)}catch(lt){Vr(n,n.return,lt)}break;case 4:es(a,n),Vi(n);break;case 13:es(a,n),Vi(n),m=n.child,m.flags&8192&&(x=m.memoizedState!==null,m.stateNode.isHidden=x,!x||m.alternate!==null&&m.alternate.memoizedState!==null||(lp=Ft())),h&4&&Kg(n);break;case 22:if(Fe=c!==null&&c.memoizedState!==null,n.mode&1?(di=(ce=di)||Fe,es(a,n),di=ce):es(a,n),Vi(n),h&8192){if(ce=n.memoizedState!==null,(n.stateNode.isHidden=ce)&&!Fe&&n.mode&1)for(Xe=n,Fe=n.child;Fe!==null;){for(Be=Xe=Fe;Xe!==null;){switch(ke=Xe,Ke=ke.child,ke.tag){case 0:case 11:case 14:case 15:yf(4,ke,ke.return);break;case 1:Qu(ke,ke.return);var at=ke.stateNode;if(typeof at.componentWillUnmount=="function"){h=ke,c=ke.return;try{a=h,at.props=a.memoizedProps,at.state=a.memoizedState,at.componentWillUnmount()}catch(lt){Vr(h,c,lt)}}break;case 5:Qu(ke,ke.return);break;case 22:if(ke.memoizedState!==null){Cf(Be);continue}}Ke!==null?(Ke.return=ke,Xe=Ke):Cf(Be)}Fe=Fe.sibling}e:for(Fe=null,Be=n;;){if(Be.tag===5){if(Fe===null){Fe=Be;try{m=Be.stateNode,ce?(x=m.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(Y=Be.stateNode,Q=Be.memoizedProps.style,k=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,Y.style.display=rr("display",k))}catch(lt){Vr(n,n.return,lt)}}}else if(Be.tag===6){if(Fe===null)try{Be.stateNode.nodeValue=ce?"":Be.memoizedProps}catch(lt){Vr(n,n.return,lt)}}else if((Be.tag!==22&&Be.tag!==23||Be.memoizedState===null||Be===n)&&Be.child!==null){Be.child.return=Be,Be=Be.child;continue}if(Be===n)break e;for(;Be.sibling===null;){if(Be.return===null||Be.return===n)break e;Fe===Be&&(Fe=null),Be=Be.return}Fe===Be&&(Fe=null),Be.sibling.return=Be.return,Be=Be.sibling}}break;case 19:es(a,n),Vi(n),h&4&&Kg(n);break;case 21:break;default:es(a,n),Vi(n)}}function Vi(n){var a=n.flags;if(a&2){try{e:{for(var c=n.return;c!==null;){if(Ef(c)){var h=c;break e}c=c.return}throw Error(i(160))}switch(h.tag){case 5:var m=h.stateNode;h.flags&32&&(Pe(m,""),h.flags&=-33);var x=no(n);As(n,x,m);break;case 3:case 4:var k=h.stateNode.containerInfo,Y=no(n);Rs(n,Y,k);break;default:throw Error(i(161))}}catch(Q){Vr(n,n.return,Q)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function N1(n,a,c){Xe=n,sp(n)}function sp(n,a,c){for(var h=(n.mode&1)!==0;Xe!==null;){var m=Xe,x=m.child;if(m.tag===22&&h){var k=m.memoizedState!==null||mf;if(!k){var Y=m.alternate,Q=Y!==null&&Y.memoizedState!==null||di;Y=mf;var ce=di;if(mf=k,(di=Q)&&!ce)for(Xe=m;Xe!==null;)k=Xe,Q=k.child,k.tag===22&&k.memoizedState!==null?op(m):Q!==null?(Q.return=k,Xe=Q):op(m);for(;x!==null;)Xe=x,sp(x),x=x.sibling;Xe=m,mf=Y,di=ce}Qg(n)}else m.subtreeFlags&8772&&x!==null?(x.return=m,Xe=x):Qg(n)}}function Qg(n){for(;Xe!==null;){var a=Xe;if(a.flags&8772){var c=a.alternate;try{if(a.flags&8772)switch(a.tag){case 0:case 11:case 15:di||xf(5,a);break;case 1:var h=a.stateNode;if(a.flags&4&&!di)if(c===null)h.componentDidMount();else{var m=a.elementType===a.type?c.memoizedProps:Ja(a.type,c.memoizedProps);h.componentDidUpdate(m,c.memoizedState,h.__reactInternalSnapshotBeforeUpdate)}var x=a.updateQueue;x!==null&&Y0(a,x,h);break;case 3:var k=a.updateQueue;if(k!==null){if(c=null,a.child!==null)switch(a.child.tag){case 5:c=a.child.stateNode;break;case 1:c=a.child.stateNode}Y0(a,k,c)}break;case 5:var Y=a.stateNode;if(c===null&&a.flags&4){c=Y;var Q=a.memoizedProps;switch(a.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&c.focus();break;case"img":Q.src&&(c.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(a.memoizedState===null){var ce=a.alternate;if(ce!==null){var Fe=ce.memoizedState;if(Fe!==null){var Be=Fe.dehydrated;Be!==null&&Ga(Be)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}di||a.flags&512&&ip(a)}catch(ke){Vr(a,a.return,ke)}}if(a===n){Xe=null;break}if(c=a.sibling,c!==null){c.return=a.return,Xe=c;break}Xe=a.return}}function Cf(n){for(;Xe!==null;){var a=Xe;if(a===n){Xe=null;break}var c=a.sibling;if(c!==null){c.return=a.return,Xe=c;break}Xe=a.return}}function op(n){for(;Xe!==null;){var a=Xe;try{switch(a.tag){case 0:case 11:case 15:var c=a.return;try{xf(4,a)}catch(Q){Vr(a,c,Q)}break;case 1:var h=a.stateNode;if(typeof h.componentDidMount=="function"){var m=a.return;try{h.componentDidMount()}catch(Q){Vr(a,m,Q)}}var x=a.return;try{ip(a)}catch(Q){Vr(a,x,Q)}break;case 5:var k=a.return;try{ip(a)}catch(Q){Vr(a,k,Q)}}}catch(Q){Vr(a,a.return,Q)}if(a===n){Xe=null;break}var Y=a.sibling;if(Y!==null){Y.return=a.return,Xe=Y;break}Xe=a.return}}var H1=Math.ceil,Ko=q.ReactCurrentDispatcher,Ql=q.ReactCurrentOwner,Qn=q.ReactCurrentBatchConfig,Vt=0,Mn=null,wn=null,Zn=0,la=0,Zu=Da(0),dn=0,Sf=null,ks=0,Xu=0,ah=0,wf=null,Wi=null,lp=0,Ju=1/0,ua=null,ec=!1,Zl=null,Qo=null,sh=!1,io=null,bf=0,Zo=0,tc=null,_f=-1,hi=0;function bn(){return Vt&6?Ft():_f!==-1?_f:_f=Ft()}function Fs(n){return n.mode&1?Vt&2&&Zn!==0?Zn&-Zn:B1.transition!==null?(hi===0&&(hi=Tu()),hi):(n=sr,n!==0||(n=window.event,n=n===void 0?16:Mu(n.type)),n):1}function Si(n,a,c,h){if(50<Zo)throw Zo=0,tc=null,Error(i(185));Ys(n,c,h),(!(Vt&2)||n!==Mn)&&(n===Mn&&(!(Vt&2)&&(Xu|=c),dn===4&&ts(n,Zn)),Gi(n,h),c===1&&Vt===0&&!(a.mode&1)&&(Ju=Ft()+500,Yu&&ws()))}function Gi(n,a){var c=n.callbackNode;_l(n,a);var h=Wa(n,n===Mn?Zn:0);if(h===0)c!==null&&Vn(c),n.callbackNode=null,n.callbackPriority=0;else if(a=h&-h,n.callbackPriority!==a){if(c!=null&&Vn(c),a===1)n.tag===0?Lo(up.bind(null,n)):Dd(up.bind(null,n)),Uu(function(){!(Vt&6)&&ws()}),c=null;else{switch(Au(h)){case 1:c=Ya;break;case 4:c=wl;break;case 16:c=bl;break;case 536870912:c=bu;break;default:c=bl}c=sm(c,oh.bind(null,n))}n.callbackPriority=a,n.callbackNode=c}}function oh(n,a){if(_f=-1,hi=0,Vt&6)throw Error(i(327));var c=n.callbackNode;if(rc()&&n.callbackNode!==c)return null;var h=Wa(n,n===Mn?Zn:0);if(h===0)return null;if(h&30||h&n.expiredLanes||a)a=lh(n,h);else{a=h;var m=Vt;Vt|=2;var x=Xg();(Mn!==n||Zn!==a)&&(ua=null,Ju=Ft()+500,ao(n,a));do try{Jg();break}catch(Y){Zg(n,Y)}while(!0);P0(),Ko.current=x,Vt=m,wn!==null?a=0:(Mn=null,Zn=0,a=dn)}if(a!==0){if(a===2&&(m=Fo(n),m!==0&&(h=m,a=Df(n,m))),a===1)throw c=Sf,ao(n,0),ts(n,h),Gi(n,Ft()),c;if(a===6)ts(n,h);else{if(m=n.current.alternate,!(h&30)&&!I1(m)&&(a=lh(n,h),a===2&&(x=Fo(n),x!==0&&(h=x,a=Df(n,x))),a===1))throw c=Sf,ao(n,0),ts(n,h),Gi(n,Ft()),c;switch(n.finishedWork=m,n.finishedLanes=h,a){case 0:case 1:throw Error(i(345));case 2:eu(n,Wi,ua);break;case 3:if(ts(n,h),(h&130023424)===h&&(a=lp+500-Ft(),10<a)){if(Wa(n,0)!==0)break;if(m=n.suspendedLanes,(m&h)!==h){bn(),n.pingedLanes|=n.suspendedLanes&m;break}n.timeoutHandle=wd(eu.bind(null,n,Wi,ua),a);break}eu(n,Wi,ua);break;case 4:if(ts(n,h),(h&4194240)===h)break;for(a=n.eventTimes,m=-1;0<h;){var k=31-gi(h);x=1<<k,k=a[k],k>m&&(m=k),h&=~x}if(h=m,h=Ft()-h,h=(120>h?120:480>h?480:1080>h?1080:1920>h?1920:3e3>h?3e3:4320>h?4320:1960*H1(h/1960))-h,10<h){n.timeoutHandle=wd(eu.bind(null,n,Wi,ua),h);break}eu(n,Wi,ua);break;case 5:eu(n,Wi,ua);break;default:throw Error(i(329))}}}return Gi(n,Ft()),n.callbackNode===c?oh.bind(null,n):null}function Df(n,a){var c=wf;return n.current.memoizedState.isDehydrated&&(ao(n,a).flags|=256),n=lh(n,a),n!==2&&(a=Wi,Wi=c,a!==null&&Xl(a)),n}function Xl(n){Wi===null?Wi=n:Wi.push.apply(Wi,n)}function I1(n){for(var a=n;;){if(a.flags&16384){var c=a.updateQueue;if(c!==null&&(c=c.stores,c!==null))for(var h=0;h<c.length;h++){var m=c[h],x=m.getSnapshot;m=m.value;try{if(!Qa(x(),m))return!1}catch{return!1}}}if(c=a.child,a.subtreeFlags&16384&&c!==null)c.return=a,a=c;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ts(n,a){for(a&=~ah,a&=~Xu,n.suspendedLanes|=a,n.pingedLanes&=~a,n=n.expirationTimes;0<a;){var c=31-gi(a),h=1<<c;n[c]=-1,a&=~h}}function up(n){if(Vt&6)throw Error(i(327));rc();var a=Wa(n,0);if(!(a&1))return Gi(n,Ft()),null;var c=lh(n,a);if(n.tag!==0&&c===2){var h=Fo(n);h!==0&&(a=h,c=Df(n,h))}if(c===1)throw c=Sf,ao(n,0),ts(n,a),Gi(n,Ft()),c;if(c===6)throw Error(i(345));return n.finishedWork=n.current.alternate,n.finishedLanes=a,eu(n,Wi,ua),Gi(n,Ft()),null}function cp(n,a){var c=Vt;Vt|=1;try{return n(a)}finally{Vt=c,Vt===0&&(Ju=Ft()+500,Yu&&ws())}}function Jl(n){io!==null&&io.tag===0&&!(Vt&6)&&rc();var a=Vt;Vt|=1;var c=Qn.transition,h=sr;try{if(Qn.transition=null,sr=1,n)return n()}finally{sr=h,Qn.transition=c,Vt=a,!(Vt&6)&&ws()}}function fp(){la=Zu.current,$r(Zu)}function ao(n,a){n.finishedWork=null,n.finishedLanes=0;var c=n.timeoutHandle;if(c!==-1&&(n.timeoutHandle=-1,M0(c)),wn!==null)for(c=wn.return;c!==null;){var h=c;switch(Rd(h),h.tag){case 1:h=h.type.childContextTypes,h!=null&&qu();break;case 3:Ul(),$r(On),$r(an),ht();break;case 5:Od(h);break;case 4:Ul();break;case 13:$r(en);break;case 19:$r(en);break;case 10:L0(h.type._context);break;case 22:case 23:fp()}c=c.return}if(Mn=n,wn=n=Xo(n.current,null),Zn=la=a,dn=0,Sf=null,ah=Xu=ks=0,Wi=wf=null,Pl!==null){for(a=0;a<Pl.length;a++)if(c=Pl[a],h=c.interleaved,h!==null){c.interleaved=null;var m=h.next,x=c.pending;if(x!==null){var k=x.next;x.next=m,h.next=k}c.pending=h}Pl=null}return n}function Zg(n,a){do{var c=wn;try{if(P0(),Ht.current=Wl,Md){for(var h=lr.memoizedState;h!==null;){var m=h.queue;m!==null&&(m.pending=null),h=h.next}Md=!1}if(Rr=0,Pn=En=lr=null,rf=!1,jl=0,Ql.current=null,c===null||c.return===null){dn=1,Sf=a,wn=null;break}e:{var x=n,k=c.return,Y=c,Q=a;if(a=Zn,Y.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var ce=Q,Fe=Y,Be=Fe.tag;if(!(Fe.mode&1)&&(Be===0||Be===11||Be===15)){var ke=Fe.alternate;ke?(Fe.updateQueue=ke.updateQueue,Fe.memoizedState=ke.memoizedState,Fe.lanes=ke.lanes):(Fe.updateQueue=null,Fe.memoizedState=null)}var Ke=$g(k);if(Ke!==null){Ke.flags&=-257,Go(Ke,k,Y,x,a),Ke.mode&1&&J0(x,ce,a),a=Ke,Q=ce;var at=a.updateQueue;if(at===null){var lt=new Set;lt.add(Q),a.updateQueue=lt}else at.add(Q);break e}else{if(!(a&1)){J0(x,ce,a),dp();break e}Q=Error(i(426))}}else if(Yr&&Y.mode&1){var hn=$g(k);if(hn!==null){!(hn.flags&65536)&&(hn.flags|=256),Go(hn,k,Y,x,a),eo(Gl(Q,Y));break e}}x=Q=Gl(Q,Y),dn!==4&&(dn=2),wf===null?wf=[x]:wf.push(x),x=k;do{switch(x.tag){case 3:x.flags|=65536,a&=-a,x.lanes|=a;var ne=Ig(x,Q,a);Og(x,ne);break e;case 1:Y=Q;var te=x.type,se=x.stateNode;if(!(x.flags&128)&&(typeof te.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(Qo===null||!Qo.has(se)))){x.flags|=65536,a&=-a,x.lanes|=a;var Oe=X0(x,Y,a);Og(x,Oe);break e}}x=x.return}while(x!==null)}tm(c)}catch(st){a=st,wn===c&&c!==null&&(wn=c=c.return);continue}break}while(!0)}function Xg(){var n=Ko.current;return Ko.current=Wl,n===null?Wl:n}function dp(){(dn===0||dn===3||dn===2)&&(dn=4),Mn===null||!(ks&268435455)&&!(Xu&268435455)||ts(Mn,Zn)}function lh(n,a){var c=Vt;Vt|=2;var h=Xg();(Mn!==n||Zn!==a)&&(ua=null,ao(n,a));do try{$1();break}catch(m){Zg(n,m)}while(!0);if(P0(),Vt=c,Ko.current=h,wn!==null)throw Error(i(261));return Mn=null,Zn=0,dn}function $1(){for(;wn!==null;)em(wn)}function Jg(){for(;wn!==null&&!za();)em(wn)}function em(n){var a=am(n.alternate,n,la);n.memoizedProps=n.pendingProps,a===null?tm(n):wn=a,Ql.current=null}function tm(n){var a=n;do{var c=a.alternate;if(n=a.return,a.flags&32768){if(c=rh(c,a),c!==null){c.flags&=32767,wn=c;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{dn=6,wn=null;return}}else if(c=Yg(c,a,la),c!==null){wn=c;return}if(a=a.sibling,a!==null){wn=a;return}wn=a=n}while(a!==null);dn===0&&(dn=5)}function eu(n,a,c){var h=sr,m=Qn.transition;try{Qn.transition=null,sr=1,P1(n,a,c,h)}finally{Qn.transition=m,sr=h}return null}function P1(n,a,c,h){do rc();while(io!==null);if(Vt&6)throw Error(i(327));c=n.finishedWork;var m=n.finishedLanes;if(c===null)return null;if(n.finishedWork=null,n.finishedLanes=0,c===n.current)throw Error(i(177));n.callbackNode=null,n.callbackPriority=0;var x=c.lanes|c.childLanes;if(h0(n,x),n===Mn&&(wn=Mn=null,Zn=0),!(c.subtreeFlags&2064)&&!(c.flags&2064)||sh||(sh=!0,sm(bl,function(){return rc(),null})),x=(c.flags&15990)!==0,c.subtreeFlags&15990||x){x=Qn.transition,Qn.transition=null;var k=sr;sr=1;var Y=Vt;Vt|=4,Ql.current=null,Wg(n,c),ap(c,n),Iu(Ml),wa=!!Vc,Ml=Vc=null,n.current=c,N1(c),qa(),Vt=Y,sr=k,Qn.transition=x}else n.current=c;if(sh&&(sh=!1,io=n,bf=m),x=n.pendingLanes,x===0&&(Qo=null),Oc(c.stateNode),Gi(n,Ft()),a!==null)for(h=n.onRecoverableError,c=0;c<a.length;c++)m=a[c],h(m.value,{componentStack:m.stack,digest:m.digest});if(ec)throw ec=!1,n=Zl,Zl=null,n;return bf&1&&n.tag!==0&&rc(),x=n.pendingLanes,x&1?n===tc?Zo++:(Zo=0,tc=n):Zo=0,ws(),null}function rc(){if(io!==null){var n=Au(bf),a=Qn.transition,c=sr;try{if(Qn.transition=null,sr=16>n?16:n,io===null)var h=!1;else{if(n=io,io=null,bf=0,Vt&6)throw Error(i(331));var m=Vt;for(Vt|=4,Xe=n.current;Xe!==null;){var x=Xe,k=x.child;if(Xe.flags&16){var Y=x.deletions;if(Y!==null){for(var Q=0;Q<Y.length;Q++){var ce=Y[Q];for(Xe=ce;Xe!==null;){var Fe=Xe;switch(Fe.tag){case 0:case 11:case 15:yf(8,Fe,x)}var Be=Fe.child;if(Be!==null)Be.return=Fe,Xe=Be;else for(;Xe!==null;){Fe=Xe;var ke=Fe.sibling,Ke=Fe.return;if(ih(Fe),Fe===ce){Xe=null;break}if(ke!==null){ke.return=Ke,Xe=ke;break}Xe=Ke}}}var at=x.alternate;if(at!==null){var lt=at.child;if(lt!==null){at.child=null;do{var hn=lt.sibling;lt.sibling=null,lt=hn}while(lt!==null)}}Xe=x}}if(x.subtreeFlags&2064&&k!==null)k.return=x,Xe=k;else e:for(;Xe!==null;){if(x=Xe,x.flags&2048)switch(x.tag){case 0:case 11:case 15:yf(9,x,x.return)}var ne=x.sibling;if(ne!==null){ne.return=x.return,Xe=ne;break e}Xe=x.return}}var te=n.current;for(Xe=te;Xe!==null;){k=Xe;var se=k.child;if(k.subtreeFlags&2064&&se!==null)se.return=k,Xe=se;else e:for(k=te;Xe!==null;){if(Y=Xe,Y.flags&2048)try{switch(Y.tag){case 0:case 11:case 15:xf(9,Y)}}catch(st){Vr(Y,Y.return,st)}if(Y===k){Xe=null;break e}var Oe=Y.sibling;if(Oe!==null){Oe.return=Y.return,Xe=Oe;break e}Xe=Y.return}}if(Vt=m,ws(),Ii&&typeof Ii.onPostCommitFiberRoot=="function")try{Ii.onPostCommitFiberRoot(Ao,n)}catch{}h=!0}return h}finally{sr=c,Qn.transition=a}}return!1}function rm(n,a,c){a=Gl(c,a),a=Ig(n,a,1),n=Yo(n,a,1),a=bn(),n!==null&&(Ys(n,1,a),Gi(n,a))}function Vr(n,a,c){if(n.tag===3)rm(n,n,c);else for(;a!==null;){if(a.tag===3){rm(a,n,c);break}else if(a.tag===1){var h=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Qo===null||!Qo.has(h))){n=Gl(c,n),n=X0(a,n,1),a=Yo(a,n,1),n=bn(),a!==null&&(Ys(a,1,n),Gi(a,n));break}}a=a.return}}function L1(n,a,c){var h=n.pingCache;h!==null&&h.delete(a),a=bn(),n.pingedLanes|=n.suspendedLanes&c,Mn===n&&(Zn&c)===c&&(dn===4||dn===3&&(Zn&130023424)===Zn&&500>Ft()-lp?ao(n,0):ah|=c),Gi(n,a)}function nm(n,a){a===0&&(n.mode&1?(a=na,na<<=1,!(na&130023424)&&(na=4194304)):a=1);var c=bn();n=sa(n,a),n!==null&&(Ys(n,a,c),Gi(n,c))}function U1(n){var a=n.memoizedState,c=0;a!==null&&(c=a.retryLane),nm(n,c)}function im(n,a){var c=0;switch(n.tag){case 13:var h=n.stateNode,m=n.memoizedState;m!==null&&(c=m.retryLane);break;case 19:h=n.stateNode;break;default:throw Error(i(314))}h!==null&&h.delete(a),nm(n,c)}var am;am=function(n,a,c){if(n!==null)if(n.memoizedProps!==a.pendingProps||On.current)Cn=!0;else{if(!(n.lanes&c)&&!(a.flags&128))return Cn=!1,vf(n,a,c);Cn=!!(n.flags&131072)}else Cn=!1,Yr&&a.flags&1048576&&Rg(a,Js,a.index);switch(a.lanes=0,a.tag){case 2:var h=a.type;ka(n,a),n=a.pendingProps;var m=Li(a,an.current);Jr(a,c),m=Vo(null,a,h,n,m,c);var x=Xa();return a.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(a.tag=1,a.memoizedState=null,a.updateQueue=null,yn(h)?(x=!0,$n(a)):x=!1,a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,q0(a),m.updater=Zd,a.stateNode=m,m._reactInternals=a,cf(a,h,n,c),a=hf(null,a,h,!0,x,c)):(a.tag=0,Yr&&x&&Td(a),Kn(null,a,m,c),a=a.child),a;case 16:h=a.elementType;e:{switch(ka(n,a),n=a.pendingProps,m=h._init,h=m(h._payload),a.type=h,m=a.tag=z1(h),n=Ja(h,n),m){case 0:a=Pg(null,a,h,n,c);break e;case 1:a=Lg(null,a,h,n,c);break e;case 11:a=Yi(null,a,h,n,c);break e;case 14:a=Kl(null,a,h,Ja(h.type,n),c);break e}throw Error(i(306,h,""))}return a;case 0:return h=a.type,m=a.pendingProps,m=a.elementType===h?m:Ja(h,m),Pg(n,a,h,m,c);case 1:return h=a.type,m=a.pendingProps,m=a.elementType===h?m:Ja(h,m),Lg(n,a,h,m,c);case 3:e:{if(Ku(a),n===null)throw Error(i(387));h=a.pendingProps,x=a.memoizedState,m=x.element,Fg(n,a),Zc(a,h,null,c);var k=a.memoizedState;if(h=k.element,x.isDehydrated)if(x={element:h,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},a.updateQueue.baseState=x,a.memoizedState=x,a.flags&256){m=Gl(Error(i(423)),a),a=Ug(n,a,h,c,m);break e}else if(h!==m){m=Gl(Error(i(424)),a),a=Ug(n,a,h,c,m);break e}else for(ji=Es(a.stateNode.containerInfo.firstChild),Ui=a,Yr=!0,Ra=null,c=ze(a,null,h,c),a.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(qo(),h===m){a=Fa(n,a,c);break e}Kn(n,a,h,c)}a=a.child}return a;case 5:return Bg(a),n===null&&I0(a),h=a.type,m=a.pendingProps,x=n!==null?n.memoizedProps:null,k=m.children,Sd(h,m)?k=null:x!==null&&Sd(h,x)&&(a.flags|=32),ep(n,a),Kn(n,a,k,c),a.child;case 6:return n===null&&I0(a),null;case 13:return th(n,a,c);case 4:return V0(a,a.stateNode.containerInfo),h=a.pendingProps,n===null?a.child=un(a,null,h,c):Kn(n,a,h,c),a.child;case 11:return h=a.type,m=a.pendingProps,m=a.elementType===h?m:Ja(h,m),Yi(n,a,h,m,c);case 7:return Kn(n,a,a.pendingProps,c),a.child;case 8:return Kn(n,a,a.pendingProps.children,c),a.child;case 12:return Kn(n,a,a.pendingProps.children,c),a.child;case 10:e:{if(h=a.type._context,m=a.pendingProps,x=a.memoizedProps,k=m.value,ft(aa,h._currentValue),h._currentValue=k,x!==null)if(Qa(x.value,k)){if(x.children===m.children&&!On.current){a=Fa(n,a,c);break e}}else for(x=a.child,x!==null&&(x.return=a);x!==null;){var Y=x.dependencies;if(Y!==null){k=x.child;for(var Q=Y.firstContext;Q!==null;){if(Q.context===h){if(x.tag===1){Q=to(-1,c&-c),Q.tag=2;var ce=x.updateQueue;if(ce!==null){ce=ce.shared;var Fe=ce.pending;Fe===null?Q.next=Q:(Q.next=Fe.next,Fe.next=Q),ce.pending=Q}}x.lanes|=c,Q=x.alternate,Q!==null&&(Q.lanes|=c),U0(x.return,c,a),Y.lanes|=c;break}Q=Q.next}}else if(x.tag===10)k=x.type===a.type?null:x.child;else if(x.tag===18){if(k=x.return,k===null)throw Error(i(341));k.lanes|=c,Y=k.alternate,Y!==null&&(Y.lanes|=c),U0(k,c,a),k=x.sibling}else k=x.child;if(k!==null)k.return=x;else for(k=x;k!==null;){if(k===a){k=null;break}if(x=k.sibling,x!==null){x.return=k.return,k=x;break}k=k.return}x=k}Kn(n,a,m.children,c),a=a.child}return a;case 9:return m=a.type,h=a.pendingProps.children,Jr(a,c),m=Aa(m),h=h(m),a.flags|=1,Kn(n,a,h,c),a.child;case 14:return h=a.type,m=Ja(h,a.pendingProps),m=Ja(h.type,m),Kl(n,a,h,m,c);case 15:return Ot(n,a,a.type,a.pendingProps,c);case 17:return h=a.type,m=a.pendingProps,m=a.elementType===h?m:Ja(h,m),ka(n,a),a.tag=1,yn(h)?(n=!0,$n(a)):n=!1,Jr(a,c),Xd(a,h,m),cf(a,h,m,c),hf(null,a,h,!0,n,c);case 19:return Ts(n,a,c);case 22:return df(n,a,c)}throw Error(i(156,a.tag))};function sm(n,a){return Lr(n,a)}function j1(n,a,c,h){this.tag=n,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ba(n,a,c,h){return new j1(n,a,c,h)}function hp(n){return n=n.prototype,!(!n||!n.isReactComponent)}function z1(n){if(typeof n=="function")return hp(n)?1:0;if(n!=null){if(n=n.$$typeof,n===L)return 11;if(n===be)return 14}return 2}function Xo(n,a){var c=n.alternate;return c===null?(c=Ba(n.tag,a,n.key,n.mode),c.elementType=n.elementType,c.type=n.type,c.stateNode=n.stateNode,c.alternate=n,n.alternate=c):(c.pendingProps=a,c.type=n.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=n.flags&14680064,c.childLanes=n.childLanes,c.lanes=n.lanes,c.child=n.child,c.memoizedProps=n.memoizedProps,c.memoizedState=n.memoizedState,c.updateQueue=n.updateQueue,a=n.dependencies,c.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},c.sibling=n.sibling,c.index=n.index,c.ref=n.ref,c}function Tf(n,a,c,h,m,x){var k=2;if(h=n,typeof n=="function")hp(n)&&(k=1);else if(typeof n=="string")k=5;else e:switch(n){case ee:return so(c.children,m,x,a);case R:k=8,m|=8;break;case Ee:return n=Ba(12,c,a,m|2),n.elementType=Ee,n.lanes=x,n;case N:return n=Ba(13,c,a,m),n.elementType=N,n.lanes=x,n;case De:return n=Ba(19,c,a,m),n.elementType=De,n.lanes=x,n;case ge:return Jo(c,m,x,a);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Z:k=10;break e;case F:k=9;break e;case L:k=11;break e;case be:k=14;break e;case $e:k=16,h=null;break e}throw Error(i(130,n==null?n:typeof n,""))}return a=Ba(k,c,a,m),a.elementType=n,a.type=h,a.lanes=x,a}function so(n,a,c,h){return n=Ba(7,n,h,a),n.lanes=c,n}function Jo(n,a,c,h){return n=Ba(22,n,h,a),n.elementType=ge,n.lanes=c,n.stateNode={isHidden:!1},n}function pp(n,a,c){return n=Ba(6,n,null,a),n.lanes=c,n}function uh(n,a,c){return a=Ba(4,n.children!==null?n.children:[],n.key,a),a.lanes=c,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}function om(n,a,c,h,m){this.tag=a,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ru(0),this.expirationTimes=Ru(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ru(0),this.identifierPrefix=h,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function ch(n,a,c,h,m,x,k,Y,Q){return n=new om(n,a,c,Y,Q),a===1?(a=1,x===!0&&(a|=8)):a=0,x=Ba(3,null,null,a),n.current=x,x.stateNode=n,x.memoizedState={element:h,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},q0(x),n}function q1(n,a,c){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:X,key:h==null?null:""+h,children:n,containerInfo:a,implementation:c}}function vp(n){if(!n)return ci;n=n._reactInternals;e:{if(kt(n)!==n||n.tag!==1)throw Error(i(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(yn(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(a!==null);throw Error(i(171))}if(n.tag===1){var c=n.type;if(yn(c))return Kc(n,c,a)}return a}function lm(n,a,c,h,m,x,k,Y,Q){return n=ch(c,h,!0,n,m,x,k,Y,Q),n.context=vp(null),c=n.current,h=bn(),m=Fs(c),x=to(h,m),x.callback=a??null,Yo(c,x,m),n.current.lanes=m,Ys(n,m,h),Gi(n,h),n}function fh(n,a,c,h){var m=a.current,x=bn(),k=Fs(m);return c=vp(c),a.context===null?a.context=c:a.pendingContext=c,a=to(x,k),a.payload={element:n},h=h===void 0?null:h,h!==null&&(a.callback=h),n=Yo(m,a,k),n!==null&&(Si(n,m,k,x),Fd(n,m,k)),k}function dh(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function gp(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var c=n.retryLane;n.retryLane=c!==0&&c<a?c:a}}function hh(n,a){gp(n,a),(n=n.alternate)&&gp(n,a)}function um(){return null}var tu=typeof reportError=="function"?reportError:function(n){console.error(n)};function mp(n){this._internalRoot=n}ph.prototype.render=mp.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));fh(n,a,null,null)},ph.prototype.unmount=mp.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;Jl(function(){fh(null,n,null,null)}),a[Zs]=null}};function ph(n){this._internalRoot=n}ph.prototype.unstable_scheduleHydration=function(n){if(n){var a=_t();n={blockedOn:null,target:n,priority:a};for(var c=0;c<Fn.length&&a!==0&&a<Fn[c].priority;c++);Fn.splice(c,0,n),c===0&&Nc(n)}};function yp(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function vh(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function cm(){}function Y1(n,a,c,h,m){if(m){if(typeof h=="function"){var x=h;h=function(){var ce=dh(k);x.call(ce)}}var k=lm(a,h,n,0,null,!1,!1,"",cm);return n._reactRootContainer=k,n[Zs]=k.current,Pu(n.nodeType===8?n.parentNode:n),Jl(),k}for(;m=n.lastChild;)n.removeChild(m);if(typeof h=="function"){var Y=h;h=function(){var ce=dh(Q);Y.call(ce)}}var Q=ch(n,0,!1,null,null,!1,!1,"",cm);return n._reactRootContainer=Q,n[Zs]=Q.current,Pu(n.nodeType===8?n.parentNode:n),Jl(function(){fh(a,Q,c,h)}),Q}function Rf(n,a,c,h,m){var x=c._reactRootContainer;if(x){var k=x;if(typeof m=="function"){var Y=m;m=function(){var Q=dh(k);Y.call(Q)}}fh(a,k,n,m)}else k=Y1(c,a,n,m,h);return dh(k)}Zt=function(n){switch(n.tag){case 3:var a=n.stateNode;if(a.current.memoizedState.isDehydrated){var c=Va(a.pendingLanes);c!==0&&(Vs(a,c|1),Gi(a,Ft()),!(Vt&6)&&(Ju=Ft()+500,ws()))}break;case 13:Jl(function(){var h=sa(n,1);if(h!==null){var m=bn();Si(h,n,1,m)}}),hh(n,1)}},Bc=function(n){if(n.tag===13){var a=sa(n,134217728);if(a!==null){var c=bn();Si(a,n,134217728,c)}hh(n,134217728)}},vs=function(n){if(n.tag===13){var a=Fs(n),c=sa(n,a);if(c!==null){var h=bn();Si(c,n,a,h)}hh(n,a)}},_t=function(){return sr},ku=function(n,a){var c=sr;try{return sr=n,a()}finally{sr=c}},hr=function(n,a,c){switch(a){case"input":if(nn(n,c),a=c.name,c.type==="radio"&&a!=null){for(c=n;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+a)+'][type="radio"]'),a=0;a<c.length;a++){var h=c[a];if(h!==n&&h.form===n.form){var m=Xr(h);if(!m)throw Error(i(90));zr(h),nn(h,m)}}}break;case"textarea":ui(n,c);break;case"select":a=c.value,a!=null&&tr(n,!!c.multiple,a,!1)}},cs=cp,fs=Jl;var V1={usingClientEntryPoint:!1,Events:[dt,Za,Xr,ja,qs,cp]},Af={findFiberByHostInstance:Nl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},fm={bundleType:Af.bundleType,version:Af.version,rendererPackageName:Af.rendererPackageName,rendererConfig:Af.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:q.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=ln(n),n===null?null:n.stateNode},findFiberByHostInstance:Af.findFiberByHostInstance||um,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var el=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!el.isDisabled&&el.supportsFiber)try{Ao=el.inject(fm),Ii=el}catch{}}return va.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V1,va.createPortal=function(n,a){var c=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yp(a))throw Error(i(200));return q1(n,a,null,c)},va.createRoot=function(n,a){if(!yp(n))throw Error(i(299));var c=!1,h="",m=tu;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(h=a.identifierPrefix),a.onRecoverableError!==void 0&&(m=a.onRecoverableError)),a=ch(n,1,!1,null,null,c,!1,h,m),n[Zs]=a.current,Pu(n.nodeType===8?n.parentNode:n),new mp(a)},va.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=ln(a),n=n===null?null:n.stateNode,n},va.flushSync=function(n){return Jl(n)},va.hydrate=function(n,a,c){if(!vh(a))throw Error(i(200));return Rf(null,n,a,!0,c)},va.hydrateRoot=function(n,a,c){if(!yp(n))throw Error(i(405));var h=c!=null&&c.hydratedSources||null,m=!1,x="",k=tu;if(c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(x=c.identifierPrefix),c.onRecoverableError!==void 0&&(k=c.onRecoverableError)),a=lm(a,null,n,1,c??null,m,!1,x,k),n[Zs]=a.current,Pu(n),h)for(n=0;n<h.length;n++)c=h[n],m=c._getVersion,m=m(c._source),a.mutableSourceEagerHydrationData==null?a.mutableSourceEagerHydrationData=[c,m]:a.mutableSourceEagerHydrationData.push(c,m);return new ph(a)},va.render=function(n,a,c){if(!vh(a))throw Error(i(200));return Rf(null,n,a,!1,c)},va.unmountComponentAtNode=function(n){if(!vh(n))throw Error(i(40));return n._reactRootContainer?(Jl(function(){Rf(null,null,n,!1,function(){n._reactRootContainer=null,n[Zs]=null})}),!0):!1},va.unstable_batchedUpdates=cp,va.unstable_renderSubtreeIntoContainer=function(n,a,c,h){if(!vh(c))throw Error(i(200));if(n==null||n._reactInternals===void 0)throw Error(i(38));return Rf(n,a,c,!1,h)},va.version="18.3.1-next-f1338f8080-20240426",va}var ga={};/**
|
|
72
72
|
* @license React
|
|
73
73
|
* react-dom.development.js
|
|
74
74
|
*
|
|
@@ -76,15 +76,15 @@ Error generating stack: `+x.message+`
|
|
|
76
76
|
*
|
|
77
77
|
* This source code is licensed under the MIT license found in the
|
|
78
78
|
* LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/var Y2;function qT(){return Y2||(Y2=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var o=zt,r=z2(),i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=!1;function f(e){l=e}function p(e){if(!l){for(var t=arguments.length,s=new Array(t>1?t-1:0),u=1;u<t;u++)s[u-1]=arguments[u];S("warn",e,s)}}function v(e){if(!l){for(var t=arguments.length,s=new Array(t>1?t-1:0),u=1;u<t;u++)s[u-1]=arguments[u];S("error",e,s)}}function S(e,t,s){{var u=i.ReactDebugCurrentFrame,d=u.getStackAddendum();d!==""&&(t+="%s",s=s.concat([d]));var g=s.map(function(y){return String(y)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var w=0,C=1,b=2,R=3,T=4,H=5,P=6,j=7,z=8,B=9,M=10,U=11,q=12,K=13,X=14,ee=15,A=16,Ee=17,Z=18,F=19,L=21,N=22,De=23,be=24,$e=25,ge=!0,Ce=!1,He=!1,_e=!1,$=!1,G=!0,de=!0,oe=!0,Je=!0,Ge=new Set,ut={},Se={};function Re(e,t){yt(e,t),yt(e+"Capture",t)}function yt(e,t){ut[e]&&v("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ut[e]=t;{var s=e.toLowerCase();Se[s]=e,e==="onDoubleClick"&&(Se.ondblclick=e)}for(var u=0;u<t.length;u++)Ge.add(t[u])}var dr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zr=Object.prototype.hasOwnProperty;function qt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,s=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Qt(e){try{return Fr(e),!1}catch{return!0}}function Fr(e){return""+e}function br(e,t){if(Qt(e))return v("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,qt(e)),Fr(e)}function nn(e){if(Qt(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qt(e)),Fr(e)}function Tn(e,t){if(Qt(e))return v("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,qt(e)),Fr(e)}function vn(e,t){if(Qt(e))return v("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,qt(e)),Fr(e)}function qr(e){if(Qt(e))return v("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",qt(e)),Fr(e)}function tr(e){if(Qt(e))return v("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",qt(e)),Fr(e)}var ar=0,Pr=1,ui=2,Kr=3,Qr=4,Rn=5,ta=6,ra=":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",Pe=ra+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",rt=new RegExp("^["+ra+"]["+Pe+"]*$"),bt={},rr={};function Sr(e){return zr.call(rr,e)?!0:zr.call(bt,e)?!1:rt.test(e)?(rr[e]=!0,!0):(bt[e]=!0,v("Invalid attribute name: `%s`",e),!1)}function Nr(e,t,s){return t!==null?t.type===ar:s?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Or(e,t,s,u){if(s!==null&&s.type===ar)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(u)return!1;if(s!==null)return!s.acceptsBooleans;var d=e.toLowerCase().slice(0,5);return d!=="data-"&&d!=="aria-"}default:return!1}}function gn(e,t,s,u){if(t===null||typeof t>"u"||Or(e,t,s,u))return!0;if(u)return!1;if(s!==null)switch(s.type){case Kr:return!t;case Qr:return t===!1;case Rn:return isNaN(t);case ta:return isNaN(t)||t<1}return!1}function wr(e){return hr.hasOwnProperty(e)?hr[e]:null}function yr(e,t,s,u,d,g,y){this.acceptsBooleans=t===ui||t===Kr||t===Qr,this.attributeName=u,this.attributeNamespace=d,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=g,this.removeEmptyString=y}var hr={},vi=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];vi.forEach(function(e){hr[e]=new yr(e,ar,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],s=e[1];hr[t]=new yr(t,Pr,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){hr[e]=new yr(e,ui,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){hr[e]=new yr(e,ui,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){hr[e]=new yr(e,Kr,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){hr[e]=new yr(e,Kr,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){hr[e]=new yr(e,Qr,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){hr[e]=new yr(e,ta,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){hr[e]=new yr(e,Rn,!1,e.toLowerCase(),null,!1,!1)});var An=/[\-\:]([a-z])/g,Ni=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(An,Ni);hr[t]=new yr(t,Pr,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(An,Ni);hr[t]=new yr(t,Pr,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(An,Ni);hr[t]=new yr(t,Pr,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){hr[e]=new yr(e,Pr,!1,e.toLowerCase(),null,!1,!1)});var ja="xlinkHref";hr[ja]=new yr("xlinkHref",Pr,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){hr[e]=new yr(e,Pr,!1,e.toLowerCase(),null,!0,!0)});var qs=/^[\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,cs=!1;function fs(e){!cs&&qs.test(e)&&(cs=!0,v("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function ds(e,t,s,u){if(u.mustUseProperty){var d=u.propertyName;return e[d]}else{br(s,t),u.sanitizeURL&&fs(""+s);var g=u.attributeName,y=null;if(u.type===Qr){if(e.hasAttribute(g)){var E=e.getAttribute(g);return E===""?!0:gn(t,s,u,!1)?E:E===""+s?s:E}}else if(e.hasAttribute(g)){if(gn(t,s,u,!1))return e.getAttribute(g);if(u.type===Kr)return s;y=e.getAttribute(g)}return gn(t,s,u,!1)?y===null?s:y:y===""+s?s:y}}function hs(e,t,s,u){{if(!Sr(t))return;if(!e.hasAttribute(t))return s===void 0?void 0:null;var d=e.getAttribute(t);return br(s,t),d===""+s?s:d}}function Yn(e,t,s,u){var d=wr(t);if(!Nr(t,d,u)){if(gn(t,s,d,u)&&(s=null),u||d===null){if(Sr(t)){var g=t;s===null?e.removeAttribute(g):(br(s,t),e.setAttribute(g,""+s))}return}var y=d.mustUseProperty;if(y){var E=d.propertyName;if(s===null){var _=d.type;e[E]=_===Kr?!1:""}else e[E]=s;return}var O=d.attributeName,I=d.attributeNamespace;if(s===null)e.removeAttribute(O);else{var re=d.type,J;re===Kr||re===Qr&&s===!0?J="":(br(s,O),J=""+s,d.sanitizeURL&&fs(J.toString())),I?e.setAttributeNS(I,O,J):e.setAttribute(O,J)}}}var In=Symbol.for("react.element"),pr=Symbol.for("react.portal"),kn=Symbol.for("react.fragment"),Hi=Symbol.for("react.strict_mode"),Ea=Symbol.for("react.profiler"),ps=Symbol.for("react.provider"),W=Symbol.for("react.context"),Te=Symbol.for("react.forward_ref"),je=Symbol.for("react.suspense"),et=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),Dt=Symbol.for("react.lazy"),$t=Symbol.for("react.scope"),Nt=Symbol.for("react.debug_trace_mode"),ln=Symbol.for("react.offscreen"),Hr=Symbol.for("react.legacy_hidden"),Lr=Symbol.for("react.cache"),Vn=Symbol.for("react.tracing_marker"),za=Symbol.iterator,qa="@@iterator";function Ft(e){if(e===null||typeof e!="object")return null;var t=za&&e[za]||e[qa];return typeof t=="function"?t:null}var Bt=Object.assign,Ya=0,wl,bl,Ro,bu,Ao,Ii,Oc;function gi(){}gi.__reactDisabledLog=!0;function od(){{if(Ya===0){wl=console.log,bl=console.info,Ro=console.warn,bu=console.error,Ao=console.group,Ii=console.groupCollapsed,Oc=console.groupEnd;var e={configurable:!0,enumerable:!0,value:gi,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ya++}}function ld(){{if(Ya--,Ya===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Bt({},e,{value:wl}),info:Bt({},e,{value:bl}),warn:Bt({},e,{value:Ro}),error:Bt({},e,{value:bu}),group:Bt({},e,{value:Ao}),groupCollapsed:Bt({},e,{value:Ii}),groupEnd:Bt({},e,{value:Oc})})}Ya<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _u=i.ReactCurrentDispatcher,ko;function na(e,t,s){{if(ko===void 0)try{throw Error()}catch(d){var u=d.stack.trim().match(/\n( *(at )?)/);ko=u&&u[1]||""}return`
|
|
79
|
+
*/var Y2;function qT(){return Y2||(Y2=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var o=zt,r=z2(),i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,l=!1;function f(e){l=e}function p(e){if(!l){for(var t=arguments.length,s=new Array(t>1?t-1:0),u=1;u<t;u++)s[u-1]=arguments[u];S("warn",e,s)}}function v(e){if(!l){for(var t=arguments.length,s=new Array(t>1?t-1:0),u=1;u<t;u++)s[u-1]=arguments[u];S("error",e,s)}}function S(e,t,s){{var u=i.ReactDebugCurrentFrame,d=u.getStackAddendum();d!==""&&(t+="%s",s=s.concat([d]));var g=s.map(function(y){return String(y)});g.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,g)}}var b=0,C=1,w=2,T=3,A=4,H=5,P=6,j=7,z=8,B=9,M=10,U=11,q=12,K=13,X=14,ee=15,R=16,Ee=17,Z=18,F=19,L=21,N=22,De=23,be=24,$e=25,ge=!0,Ce=!1,He=!1,_e=!1,$=!1,G=!0,de=!0,oe=!0,Je=!0,Ge=new Set,ut={},Se={};function Re(e,t){yt(e,t),yt(e+"Capture",t)}function yt(e,t){ut[e]&&v("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ut[e]=t;{var s=e.toLowerCase();Se[s]=e,e==="onDoubleClick"&&(Se.ondblclick=e)}for(var u=0;u<t.length;u++)Ge.add(t[u])}var dr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zr=Object.prototype.hasOwnProperty;function qt(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,s=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return s}}function Qt(e){try{return Fr(e),!1}catch{return!0}}function Fr(e){return""+e}function br(e,t){if(Qt(e))return v("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,qt(e)),Fr(e)}function nn(e){if(Qt(e))return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qt(e)),Fr(e)}function Tn(e,t){if(Qt(e))return v("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,qt(e)),Fr(e)}function vn(e,t){if(Qt(e))return v("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,qt(e)),Fr(e)}function qr(e){if(Qt(e))return v("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",qt(e)),Fr(e)}function tr(e){if(Qt(e))return v("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",qt(e)),Fr(e)}var ar=0,Pr=1,ui=2,Kr=3,Qr=4,Rn=5,ta=6,ra=":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",Pe=ra+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",rt=new RegExp("^["+ra+"]["+Pe+"]*$"),bt={},rr={};function Sr(e){return zr.call(rr,e)?!0:zr.call(bt,e)?!1:rt.test(e)?(rr[e]=!0,!0):(bt[e]=!0,v("Invalid attribute name: `%s`",e),!1)}function Nr(e,t,s){return t!==null?t.type===ar:s?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Or(e,t,s,u){if(s!==null&&s.type===ar)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(u)return!1;if(s!==null)return!s.acceptsBooleans;var d=e.toLowerCase().slice(0,5);return d!=="data-"&&d!=="aria-"}default:return!1}}function gn(e,t,s,u){if(t===null||typeof t>"u"||Or(e,t,s,u))return!0;if(u)return!1;if(s!==null)switch(s.type){case Kr:return!t;case Qr:return t===!1;case Rn:return isNaN(t);case ta:return isNaN(t)||t<1}return!1}function wr(e){return hr.hasOwnProperty(e)?hr[e]:null}function yr(e,t,s,u,d,g,y){this.acceptsBooleans=t===ui||t===Kr||t===Qr,this.attributeName=u,this.attributeNamespace=d,this.mustUseProperty=s,this.propertyName=e,this.type=t,this.sanitizeURL=g,this.removeEmptyString=y}var hr={},vi=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];vi.forEach(function(e){hr[e]=new yr(e,ar,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],s=e[1];hr[t]=new yr(t,Pr,!1,s,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){hr[e]=new yr(e,ui,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){hr[e]=new yr(e,ui,!1,e,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(e){hr[e]=new yr(e,Kr,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){hr[e]=new yr(e,Kr,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){hr[e]=new yr(e,Qr,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){hr[e]=new yr(e,ta,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){hr[e]=new yr(e,Rn,!1,e.toLowerCase(),null,!1,!1)});var An=/[\-\:]([a-z])/g,Ni=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(e){var t=e.replace(An,Ni);hr[t]=new yr(t,Pr,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(An,Ni);hr[t]=new yr(t,Pr,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(An,Ni);hr[t]=new yr(t,Pr,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){hr[e]=new yr(e,Pr,!1,e.toLowerCase(),null,!1,!1)});var ja="xlinkHref";hr[ja]=new yr("xlinkHref",Pr,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){hr[e]=new yr(e,Pr,!1,e.toLowerCase(),null,!0,!0)});var qs=/^[\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,cs=!1;function fs(e){!cs&&qs.test(e)&&(cs=!0,v("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function ds(e,t,s,u){if(u.mustUseProperty){var d=u.propertyName;return e[d]}else{br(s,t),u.sanitizeURL&&fs(""+s);var g=u.attributeName,y=null;if(u.type===Qr){if(e.hasAttribute(g)){var E=e.getAttribute(g);return E===""?!0:gn(t,s,u,!1)?E:E===""+s?s:E}}else if(e.hasAttribute(g)){if(gn(t,s,u,!1))return e.getAttribute(g);if(u.type===Kr)return s;y=e.getAttribute(g)}return gn(t,s,u,!1)?y===null?s:y:y===""+s?s:y}}function hs(e,t,s,u){{if(!Sr(t))return;if(!e.hasAttribute(t))return s===void 0?void 0:null;var d=e.getAttribute(t);return br(s,t),d===""+s?s:d}}function Yn(e,t,s,u){var d=wr(t);if(!Nr(t,d,u)){if(gn(t,s,d,u)&&(s=null),u||d===null){if(Sr(t)){var g=t;s===null?e.removeAttribute(g):(br(s,t),e.setAttribute(g,""+s))}return}var y=d.mustUseProperty;if(y){var E=d.propertyName;if(s===null){var _=d.type;e[E]=_===Kr?!1:""}else e[E]=s;return}var O=d.attributeName,I=d.attributeNamespace;if(s===null)e.removeAttribute(O);else{var re=d.type,J;re===Kr||re===Qr&&s===!0?J="":(br(s,O),J=""+s,d.sanitizeURL&&fs(J.toString())),I?e.setAttributeNS(I,O,J):e.setAttribute(O,J)}}}var In=Symbol.for("react.element"),pr=Symbol.for("react.portal"),kn=Symbol.for("react.fragment"),Hi=Symbol.for("react.strict_mode"),Ea=Symbol.for("react.profiler"),ps=Symbol.for("react.provider"),W=Symbol.for("react.context"),Te=Symbol.for("react.forward_ref"),je=Symbol.for("react.suspense"),et=Symbol.for("react.suspense_list"),kt=Symbol.for("react.memo"),Dt=Symbol.for("react.lazy"),$t=Symbol.for("react.scope"),Nt=Symbol.for("react.debug_trace_mode"),ln=Symbol.for("react.offscreen"),Hr=Symbol.for("react.legacy_hidden"),Lr=Symbol.for("react.cache"),Vn=Symbol.for("react.tracing_marker"),za=Symbol.iterator,qa="@@iterator";function Ft(e){if(e===null||typeof e!="object")return null;var t=za&&e[za]||e[qa];return typeof t=="function"?t:null}var Bt=Object.assign,Ya=0,wl,bl,Ro,bu,Ao,Ii,Oc;function gi(){}gi.__reactDisabledLog=!0;function od(){{if(Ya===0){wl=console.log,bl=console.info,Ro=console.warn,bu=console.error,Ao=console.group,Ii=console.groupCollapsed,Oc=console.groupEnd;var e={configurable:!0,enumerable:!0,value:gi,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ya++}}function ld(){{if(Ya--,Ya===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Bt({},e,{value:wl}),info:Bt({},e,{value:bl}),warn:Bt({},e,{value:Ro}),error:Bt({},e,{value:bu}),group:Bt({},e,{value:Ao}),groupCollapsed:Bt({},e,{value:Ii}),groupEnd:Bt({},e,{value:Oc})})}Ya<0&&v("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var _u=i.ReactCurrentDispatcher,ko;function na(e,t,s){{if(ko===void 0)try{throw Error()}catch(d){var u=d.stack.trim().match(/\n( *(at )?)/);ko=u&&u[1]||""}return`
|
|
80
80
|
`+ko+e}}var Va=!1,Wa;{var Du=typeof WeakMap=="function"?WeakMap:Map;Wa=new Du}function _l(e,t){if(!e||Va)return"";{var s=Wa.get(e);if(s!==void 0)return s}var u;Va=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var g;g=_u.current,_u.current=null,od();try{if(t){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[])}catch(fe){u=fe}Reflect.construct(e,[],y)}else{try{y.call()}catch(fe){u=fe}e.call(y.prototype)}}else{try{throw Error()}catch(fe){u=fe}e()}}catch(fe){if(fe&&u&&typeof fe.stack=="string"){for(var E=fe.stack.split(`
|
|
81
81
|
`),_=u.stack.split(`
|
|
82
82
|
`),O=E.length-1,I=_.length-1;O>=1&&I>=0&&E[O]!==_[I];)I--;for(;O>=1&&I>=0;O--,I--)if(E[O]!==_[I]){if(O!==1||I!==1)do if(O--,I--,I<0||E[O]!==_[I]){var re=`
|
|
83
|
-
`+E[O].replace(" at new "," at ");return e.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",e.displayName)),typeof e=="function"&&Wa.set(e,re),re}while(O>=1&&I>=0);break}}}finally{Va=!1,_u.current=g,ld(),Error.prepareStackTrace=d}var J=e?e.displayName||e.name:"",le=J?na(J):"";return typeof e=="function"&&Wa.set(e,le),le}function Fo(e,t,s){return _l(e,!0)}function Tu(e,t,s){return _l(e,!1)}function Ru(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Ys(e,t,s){if(e==null)return"";if(typeof e=="function")return _l(e,Ru(e));if(typeof e=="string")return na(e);switch(e){case je:return na("Suspense");case et:return na("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case Te:return Tu(e.render);case kt:return Ys(e.type,t,s);case Dt:{var u=e,d=u._payload,g=u._init;try{return Ys(g(d),t,s)}catch{}}}return""}function h0(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case H:return na(e.type);case
|
|
83
|
+
`+E[O].replace(" at new "," at ");return e.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",e.displayName)),typeof e=="function"&&Wa.set(e,re),re}while(O>=1&&I>=0);break}}}finally{Va=!1,_u.current=g,ld(),Error.prepareStackTrace=d}var J=e?e.displayName||e.name:"",le=J?na(J):"";return typeof e=="function"&&Wa.set(e,le),le}function Fo(e,t,s){return _l(e,!0)}function Tu(e,t,s){return _l(e,!1)}function Ru(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Ys(e,t,s){if(e==null)return"";if(typeof e=="function")return _l(e,Ru(e));if(typeof e=="string")return na(e);switch(e){case je:return na("Suspense");case et:return na("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case Te:return Tu(e.render);case kt:return Ys(e.type,t,s);case Dt:{var u=e,d=u._payload,g=u._init;try{return Ys(g(d),t,s)}catch{}}}return""}function h0(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case H:return na(e.type);case R:return na("Lazy");case K:return na("Suspense");case F:return na("SuspenseList");case b:case w:case ee:return Tu(e.type);case U:return Tu(e.type.render);case C:return Fo(e.type);default:return""}}function Vs(e){try{var t="",s=e;do t+=h0(s),s=s.return;while(s);return t}catch(u){return`
|
|
84
84
|
Error generating stack: `+u.message+`
|
|
85
|
-
`+u.stack}}function sr(e,t,s){var u=e.displayName;if(u)return u;var d=t.displayName||t.name||"";return d!==""?s+"("+d+")":s}function Au(e){return e.displayName||"Context"}function Zt(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case kn:return"Fragment";case pr:return"Portal";case Ea:return"Profiler";case Hi:return"StrictMode";case je:return"Suspense";case et:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case W:var t=e;return Au(t)+".Consumer";case ps:var s=e;return Au(s._context)+".Provider";case Te:return sr(e,e.render,"ForwardRef");case kt:var u=e.displayName||null;return u!==null?u:Zt(e.type)||"Memo";case Dt:{var d=e,g=d._payload,y=d._init;try{return Zt(y(g))}catch{return null}}}return null}function Bc(e,t,s){var u=t.displayName||t.name||"";return e.displayName||(u!==""?s+"("+u+")":s)}function vs(e){return e.displayName||"Context"}function _t(e){var t=e.tag,s=e.type;switch(t){case be:return"Cache";case B:var u=s;return vs(u)+".Consumer";case M:var d=s;return vs(d._context)+".Provider";case Z:return"DehydratedFragment";case U:return Bc(s,s.render,"ForwardRef");case j:return"Fragment";case H:return s;case
|
|
85
|
+
`+u.stack}}function sr(e,t,s){var u=e.displayName;if(u)return u;var d=t.displayName||t.name||"";return d!==""?s+"("+d+")":s}function Au(e){return e.displayName||"Context"}function Zt(e){if(e==null)return null;if(typeof e.tag=="number"&&v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case kn:return"Fragment";case pr:return"Portal";case Ea:return"Profiler";case Hi:return"StrictMode";case je:return"Suspense";case et:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case W:var t=e;return Au(t)+".Consumer";case ps:var s=e;return Au(s._context)+".Provider";case Te:return sr(e,e.render,"ForwardRef");case kt:var u=e.displayName||null;return u!==null?u:Zt(e.type)||"Memo";case Dt:{var d=e,g=d._payload,y=d._init;try{return Zt(y(g))}catch{return null}}}return null}function Bc(e,t,s){var u=t.displayName||t.name||"";return e.displayName||(u!==""?s+"("+u+")":s)}function vs(e){return e.displayName||"Context"}function _t(e){var t=e.tag,s=e.type;switch(t){case be:return"Cache";case B:var u=s;return vs(u)+".Consumer";case M:var d=s;return vs(d._context)+".Provider";case Z:return"DehydratedFragment";case U:return Bc(s,s.render,"ForwardRef");case j:return"Fragment";case H:return s;case A:return"Portal";case T:return"Root";case P:return"Text";case R:return Zt(s);case z:return s===Hi?"StrictMode":"Mode";case N:return"Offscreen";case q:return"Profiler";case L:return"Scope";case K:return"Suspense";case F:return"SuspenseList";case $e:return"TracingMarker";case C:case b:case Ee:case w:case X:case ee:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;break}return null}var ku=i.ReactDebugCurrentFrame,Wn=null,gs=!1;function mi(){{if(Wn===null)return null;var e=Wn._debugOwner;if(e!==null&&typeof e<"u")return _t(e)}return null}function ms(){return Wn===null?"":Vs(Wn)}function Ur(){ku.getCurrentStack=null,Wn=null,gs=!1}function _r(e){ku.getCurrentStack=e===null?null:ms,Wn=e,gs=!1}function Oo(){return Wn}function Fn(e){gs=e}function yi(e){return""+e}function Ca(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return tr(e),e;default:return""}}var Dl={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Mc(e,t){Dl[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||v("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||v("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Nc(e){var t=e.type,s=e.nodeName;return s&&s.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bo(e){return e._valueTracker}function Tl(e){e._valueTracker=null}function p0(e){var t="";return e&&(Nc(e)?t=e.checked?"true":"false":t=e.value),t}function Sa(e){var t=Nc(e)?"checked":"value",s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);tr(e[t]);var u=""+e[t];if(!(e.hasOwnProperty(t)||typeof s>"u"||typeof s.get!="function"||typeof s.set!="function")){var d=s.get,g=s.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(E){tr(E),u=""+E,g.call(this,E)}}),Object.defineProperty(e,t,{enumerable:s.enumerable});var y={getValue:function(){return u},setValue:function(E){tr(E),u=""+E},stopTracking:function(){Tl(e),delete e[t]}};return y}}function Ga(e){Bo(e)||(e._valueTracker=Sa(e))}function ys(e){if(!e)return!1;var t=Bo(e);if(!t)return!0;var s=t.getValue(),u=p0(e);return u!==s?(t.setValue(u),!0):!1}function wa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Fu=!1,Ou=!1,Mo=!1,Rl=!1;function Bu(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function Mu(e,t){var s=e,u=t.checked,d=Bt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??s._wrapperState.initialChecked});return d}function Ka(e,t){Mc("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!Ou&&(v("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",mi()||"A component",t.type),Ou=!0),t.value!==void 0&&t.defaultValue!==void 0&&!Fu&&(v("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",mi()||"A component",t.type),Fu=!0);var s=e,u=t.defaultValue==null?"":t.defaultValue;s._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Ca(t.value!=null?t.value:u),controlled:Bu(t)}}function D(e,t){var s=e,u=t.checked;u!=null&&Yn(s,"checked",u,!1)}function V(e,t){var s=e;{var u=Bu(t);!s._wrapperState.controlled&&u&&!Rl&&(v("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Rl=!0),s._wrapperState.controlled&&!u&&!Mo&&(v("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Mo=!0)}D(e,t);var d=Ca(t.value),g=t.type;if(d!=null)g==="number"?(d===0&&s.value===""||s.value!=d)&&(s.value=yi(d)):s.value!==yi(d)&&(s.value=yi(d));else if(g==="submit"||g==="reset"){s.removeAttribute("value");return}t.hasOwnProperty("value")?pt(s,t.type,d):t.hasOwnProperty("defaultValue")&&pt(s,t.type,Ca(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(s.defaultChecked=!!t.defaultChecked)}function ue(e,t,s){var u=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var d=t.type,g=d==="submit"||d==="reset";if(g&&(t.value===void 0||t.value===null))return;var y=yi(u._wrapperState.initialValue);s||y!==u.value&&(u.value=y),u.defaultValue=y}var E=u.name;E!==""&&(u.name=""),u.defaultChecked=!u.defaultChecked,u.defaultChecked=!!u._wrapperState.initialChecked,E!==""&&(u.name=E)}function ve(e,t){var s=e;V(s,t),Ie(s,t)}function Ie(e,t){var s=t.name;if(t.type==="radio"&&s!=null){for(var u=e;u.parentNode;)u=u.parentNode;br(s,"name");for(var d=u.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),g=0;g<d.length;g++){var y=d[g];if(!(y===e||y.form!==e.form)){var E=Am(y);if(!E)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");ys(y),V(y,E)}}}}function pt(e,t,s){(t!=="number"||wa(e.ownerDocument)!==e)&&(s==null?e.defaultValue=yi(e._wrapperState.initialValue):e.defaultValue!==yi(s)&&(e.defaultValue=yi(s)))}var Ue=!1,xt=!1,Pt=!1;function Xt(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?o.Children.forEach(t.children,function(s){s!=null&&(typeof s=="string"||typeof s=="number"||xt||(xt=!0,v("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(Pt||(Pt=!0,v("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!Ue&&(v("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Ue=!0)}function Ir(e,t){t.value!=null&&e.setAttribute("value",yi(Ca(t.value)))}var Dr=Array.isArray;function Mt(e){return Dr(e)}var Tr;Tr=!1;function Zr(){var e=mi();return e?`
|
|
86
86
|
|
|
87
|
-
Check the render method of \``+e+"`.":""}var No=["value","defaultValue"];function Hc(e){{Mc("select",e);for(var t=0;t<No.length;t++){var s=No[t];if(e[s]!=null){var u=Mt(e[s]);e.multiple&&!u?v("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,Zr()):!e.multiple&&u&&v("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,Zr())}}}}function Ws(e,t,s,u){var d=e.options;if(t){for(var g=s,y={},E=0;E<g.length;E++)y["$"+g[E]]=!0;for(var _=0;_<d.length;_++){var O=y.hasOwnProperty("$"+d[_].value);d[_].selected!==O&&(d[_].selected=O),O&&u&&(d[_].defaultSelected=!0)}}else{for(var I=yi(Ca(s)),re=null,J=0;J<d.length;J++){if(d[J].value===I){d[J].selected=!0,u&&(d[J].defaultSelected=!0);return}re===null&&!d[J].disabled&&(re=d[J])}re!==null&&(re.selected=!0)}}function Ic(e,t){return Bt({},t,{value:void 0})}function Al(e,t){var s=e;Hc(t),s._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!Tr&&(v("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Tr=!0)}function v0(e,t){var s=e;s.multiple=!!t.multiple;var u=t.value;u!=null?Ws(s,!!t.multiple,u,!1):t.defaultValue!=null&&Ws(s,!!t.multiple,t.defaultValue,!0)}function ud(e,t){var s=e,u=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!t.multiple;var d=t.value;d!=null?Ws(s,!!t.multiple,d,!1):u!==!!t.multiple&&(t.defaultValue!=null?Ws(s,!!t.multiple,t.defaultValue,!0):Ws(s,!!t.multiple,t.multiple?[]:"",!1))}function g0(e,t){var s=e,u=t.value;u!=null&&Ws(s,!!t.multiple,u,!1)}var Xv=!1;function m0(e,t){var s=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var u=Bt({},t,{value:void 0,defaultValue:void 0,children:yi(s._wrapperState.initialValue)});return u}function y0(e,t){var s=e;Mc("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Xv&&(v("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",mi()||"A component"),Xv=!0);var u=t.value;if(u==null){var d=t.children,g=t.defaultValue;if(d!=null){v("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Mt(d)){if(d.length>1)throw new Error("<textarea> can only have at most one child.");d=d[0]}g=d}}g==null&&(g=""),u=g}s._wrapperState={initialValue:Ca(u)}}function Jv(e,t){var s=e,u=Ca(t.value),d=Ca(t.defaultValue);if(u!=null){var g=yi(u);g!==s.value&&(s.value=g),t.defaultValue==null&&s.defaultValue!==g&&(s.defaultValue=g)}d!=null&&(s.defaultValue=yi(d))}function eg(e,t){var s=e,u=s.textContent;u===s._wrapperState.initialValue&&u!==""&&u!==null&&(s.value=u)}function C1(e,t){Jv(e,t)}var Gs="http://www.w3.org/1999/xhtml",x0="http://www.w3.org/1998/Math/MathML",E0="http://www.w3.org/2000/svg";function C0(e){switch(e){case"svg":return E0;case"math":return x0;default:return Gs}}function S0(e,t){return e==null||e===Gs?C0(t):e===E0&&t==="foreignObject"?Gs:e}var tg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,s,u,d){MSApp.execUnsafeLocalFunction(function(){return e(t,s,u,d)})}:e},cd,rg=tg(function(e,t){if(e.namespaceURI===E0&&!("innerHTML"in e)){cd=cd||document.createElement("div"),cd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var s=cd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;s.firstChild;)e.appendChild(s.firstChild);return}e.innerHTML=t}),$i=1,Ks=3,mn=8,Qs=9,w0=11,Nu=function(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===Ks){s.nodeValue=t;return}}e.textContent=t},$c={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Pc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function ng(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var ig=["Webkit","ms","Moz","O"];Object.keys(Pc).forEach(function(e){ig.forEach(function(t){Pc[ng(t,e)]=Pc[e]})});function fd(e,t,s){var u=t==null||typeof t=="boolean"||t==="";return u?"":!s&&typeof t=="number"&&t!==0&&!(Pc.hasOwnProperty(e)&&Pc[e])?t+"px":(vn(t,e),(""+t).trim())}var ag=/([A-Z])/g,sg=/^ms-/;function Hu(e){return e.replace(ag,"-$1").toLowerCase().replace(sg,"-ms-")}var og=function(){};{var S1=/^(?:webkit|moz|o)[A-Z]/,w1=/^-ms-/,lg=/-(.)/g,b0=/;\s*$/,xs={},kl={},ug=!1,Lc=!1,b1=function(e){return e.replace(lg,function(t,s){return s.toUpperCase()})},cg=function(e){xs.hasOwnProperty(e)&&xs[e]||(xs[e]=!0,v("Unsupported style property %s. Did you mean %s?",e,b1(e.replace(w1,"ms-"))))},_0=function(e){xs.hasOwnProperty(e)&&xs[e]||(xs[e]=!0,v("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},D0=function(e,t){kl.hasOwnProperty(t)&&kl[t]||(kl[t]=!0,v(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(b0,"")))},fg=function(e,t){ug||(ug=!0,v("`NaN` is an invalid value for the `%s` css style property.",e))},dg=function(e,t){Lc||(Lc=!0,v("`Infinity` is an invalid value for the `%s` css style property.",e))};og=function(e,t){e.indexOf("-")>-1?cg(e):S1.test(e)?_0(e):b0.test(t)&&D0(e,t),typeof t=="number"&&(isNaN(t)?fg(e,t):isFinite(t)||dg(e,t))}}var hg=og;function _1(e){{var t="",s="";for(var u in e)if(e.hasOwnProperty(u)){var d=e[u];if(d!=null){var g=u.indexOf("--")===0;t+=s+(g?u:Hu(u))+":",t+=fd(u,d,g),s=";"}}return t||null}}function pg(e,t){var s=e.style;for(var u in t)if(t.hasOwnProperty(u)){var d=u.indexOf("--")===0;d||hg(u,t[u]);var g=fd(u,t[u],d);u==="float"&&(u="cssFloat"),d?s.setProperty(u,g):s[u]=g}}function D1(e){return e==null||typeof e=="boolean"||e===""}function vg(e){var t={};for(var s in e)for(var u=$c[s]||[s],d=0;d<u.length;d++)t[u[d]]=s;return t}function T1(e,t){{if(!t)return;var s=vg(e),u=vg(t),d={};for(var g in s){var y=s[g],E=u[g];if(E&&y!==E){var _=y+","+E;if(d[_])continue;d[_]=!0,v("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",D1(e[y])?"Removing":"Updating",y,E)}}}}var Qa={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Uc=Bt({menuitem:!0},Qa),gg="__html";function dd(e,t){if(t){if(Uc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(gg in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&v("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Ho(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jc={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},hd={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Iu={},R1=new RegExp("^(aria)-["+Pe+"]*$"),$u=new RegExp("^(aria)[A-Z]["+Pe+"]*$");function T0(e,t){{if(zr.call(Iu,t)&&Iu[t])return!0;if($u.test(t)){var s="aria-"+t.slice(4).toLowerCase(),u=hd.hasOwnProperty(s)?s:null;if(u==null)return v("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Iu[t]=!0,!0;if(t!==u)return v("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,u),Iu[t]=!0,!0}if(R1.test(t)){var d=t.toLowerCase(),g=hd.hasOwnProperty(d)?d:null;if(g==null)return Iu[t]=!0,!1;if(t!==g)return v("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,g),Iu[t]=!0,!0}}return!0}function zc(e,t){{var s=[];for(var u in t){var d=T0(e,u);d||s.push(u)}var g=s.map(function(y){return"`"+y+"`"}).join(", ");s.length===1?v("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e):s.length>1&&v("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e)}}function R0(e,t){Ho(e,t)||zc(e,t)}var A0=!1;function pd(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!A0&&(A0=!0,e==="select"&&t.multiple?v("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):v("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Fl=function(){};{var Gn={},k0=/^on./,vd=/^on[^A-Z]/,mg=new RegExp("^(aria)-["+Pe+"]*$"),yg=new RegExp("^(aria)[A-Z]["+Pe+"]*$");Fl=function(e,t,s,u){if(zr.call(Gn,t)&&Gn[t])return!0;var d=t.toLowerCase();if(d==="onfocusin"||d==="onfocusout")return v("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Gn[t]=!0,!0;if(u!=null){var g=u.registrationNameDependencies,y=u.possibleRegistrationNames;if(g.hasOwnProperty(t))return!0;var E=y.hasOwnProperty(d)?y[d]:null;if(E!=null)return v("Invalid event handler property `%s`. Did you mean `%s`?",t,E),Gn[t]=!0,!0;if(k0.test(t))return v("Unknown event handler property `%s`. It will be ignored.",t),Gn[t]=!0,!0}else if(k0.test(t))return vd.test(t)&&v("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Gn[t]=!0,!0;if(mg.test(t)||yg.test(t))return!0;if(d==="innerhtml")return v("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Gn[t]=!0,!0;if(d==="aria")return v("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Gn[t]=!0,!0;if(d==="is"&&s!==null&&s!==void 0&&typeof s!="string")return v("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),Gn[t]=!0,!0;if(typeof s=="number"&&isNaN(s))return v("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Gn[t]=!0,!0;var _=wr(t),O=_!==null&&_.type===ar;if(jc.hasOwnProperty(d)){var I=jc[d];if(I!==t)return v("Invalid DOM property `%s`. Did you mean `%s`?",t,I),Gn[t]=!0,!0}else if(!O&&t!==d)return v("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,d),Gn[t]=!0,!0;return typeof s=="boolean"&&Or(t,s,_,!1)?(s?v('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,t,t,s,t):v('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,t,t,s,t,t,t),Gn[t]=!0,!0):O?!0:Or(t,s,_,!1)?(Gn[t]=!0,!1):((s==="false"||s==="true")&&_!==null&&_.type===Kr&&(v("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,t,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,s),Gn[t]=!0),!0)}}var xg=function(e,t,s){{var u=[];for(var d in t){var g=Fl(e,d,t[d],s);g||u.push(d)}var y=u.map(function(E){return"`"+E+"`"}).join(", ");u.length===1?v("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",y,e):u.length>1&&v("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",y,e)}};function Eg(e,t,s){Ho(e,t)||xg(e,t,s)}var F0=1,gd=2,ba=4,O0=F0|gd|ba,Ol=null;function A1(e){Ol!==null&&v("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Ol=e}function k1(){Ol===null&&v("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Ol=null}function qc(e){return e===Ol}function B0(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Ks?t.parentNode:t}var md=null,Bl=null,xr=null;function yd(e){var t=ac(e);if(t){if(typeof md!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var s=t.stateNode;if(s){var u=Am(s);md(t.stateNode,t.type,u)}}}function xd(e){md=e}function Pu(e){Bl?xr?xr.push(e):xr=[e]:Bl=e}function Cg(){return Bl!==null||xr!==null}function Ed(){if(Bl){var e=Bl,t=xr;if(Bl=null,xr=null,yd(e),t)for(var s=0;s<t.length;s++)yd(t[s])}}var Lu=function(e,t){return e(t)},Yc=function(){},Io=!1;function Sg(){var e=Cg();e&&(Yc(),Ed())}function wg(e,t,s){if(Io)return e(t,s);Io=!0;try{return Lu(e,t,s)}finally{Io=!1,Sg()}}function F1(e,t,s){Lu=e,Yc=s}function bg(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function Cd(e,t,s){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(s.disabled&&bg(t));default:return!1}}function $o(e,t){var s=e.stateNode;if(s===null)return null;var u=Am(s);if(u===null)return null;var d=u[t];if(Cd(t,e.type,u))return null;if(d&&typeof d!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof d+"` type.");return d}var Vc=!1;if(dr)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){Vc=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{Vc=!1}function Sd(e,t,s,u,d,g,y,E,_){var O=Array.prototype.slice.call(arguments,3);try{t.apply(s,O)}catch(I){this.onError(I)}}var wd=Sd;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var M0=document.createElement("react");wd=function(t,s,u,d,g,y,E,_,O){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var I=document.createEvent("Event"),re=!1,J=!0,le=window.event,fe=Object.getOwnPropertyDescriptor(window,"event");function me(){M0.removeEventListener(ye,vt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=le)}var qe=Array.prototype.slice.call(arguments,3);function vt(){re=!0,me(),s.apply(u,qe),J=!1}var ct,Gt=!1,Ut=!1;function ie(ae){if(ct=ae.error,Gt=!0,ct===null&&ae.colno===0&&ae.lineno===0&&(Ut=!0),ae.defaultPrevented&&ct!=null&&typeof ct=="object")try{ct._suppressLogging=!0}catch{}}var ye="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",ie),M0.addEventListener(ye,vt,!1),I.initEvent(ye,!1,!1),M0.dispatchEvent(I),fe&&Object.defineProperty(window,"event",fe),re&&J&&(Gt?Ut&&(ct=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):ct=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(ct)),window.removeEventListener("error",ie),!re)return me(),Sd.apply(this,arguments)}}var _g=wd,Uu=!1,bd=null,ju=!1,Es=null,Dg={onError:function(e){Uu=!0,bd=e}};function Po(e,t,s,u,d,g,y,E,_){Uu=!1,bd=null,_g.apply(Dg,arguments)}function Cs(e,t,s,u,d,g,y,E,_){if(Po.apply(this,arguments),Uu){var O=Gc();ju||(ju=!0,Es=O)}}function Wc(){if(ju){var e=Es;throw ju=!1,Es=null,e}}function Zs(){return Uu}function Gc(){if(Uu){var e=bd;return Uu=!1,bd=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function zu(e){return e._reactInternals}function O1(e){return e._reactInternals!==void 0}function Nl(e,t){e._reactInternals=t}var dt=0,Za=1,Xr=2,Yt=4,_a=16,Da=32,$r=64,ft=128,ci=256,an=512,On=1024,Pi=2048,Li=4096,yn=8192,qu=16384,Tg=32767,Kc=32768,$n=65536,_d=131072,Ss=1048576,Yu=2097152,Xs=4194304,Dd=8388608,Lo=16777216,ws=33554432,Uo=Yt|On|0,jo=Xr|Yt|_a|Da|an|Li|yn,zo=Yt|$r|an|yn,Js=Pi|_a,xn=Xs|Dd|Yu,Ta=i.ReactCurrentOwner;function ia(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{var u=t;do t=u,(t.flags&(Xr|Li))!==dt&&(s=t.return),u=t.return;while(u)}return t.tag===R?s:null}function bs(e){if(e.tag===K){var t=e.memoizedState;if(t===null){var s=e.alternate;s!==null&&(t=s.memoizedState)}if(t!==null)return t.dehydrated}return null}function _s(e){return e.tag===R?e.stateNode.containerInfo:null}function Hl(e){return ia(e)===e}function Rg(e){{var t=Ta.current;if(t!==null&&t.tag===C){var s=t,u=s.stateNode;u._warnedAboutRefsInRender||v("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",_t(s)||"A component"),u._warnedAboutRefsInRender=!0}}var d=zu(e);return d?ia(d)===d:!1}function Td(e){if(ia(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function Rd(e){var t=e.alternate;if(!t){var s=ia(e);if(s===null)throw new Error("Unable to find node on an unmounted component.");return s!==e?null:e}for(var u=e,d=t;;){var g=u.return;if(g===null)break;var y=g.alternate;if(y===null){var E=g.return;if(E!==null){u=d=E;continue}break}if(g.child===y.child){for(var _=g.child;_;){if(_===u)return Td(g),e;if(_===d)return Td(g),t;_=_.sibling}throw new Error("Unable to find node on an unmounted component.")}if(u.return!==d.return)u=g,d=y;else{for(var O=!1,I=g.child;I;){if(I===u){O=!0,u=g,d=y;break}if(I===d){O=!0,d=g,u=y;break}I=I.sibling}if(!O){for(I=y.child;I;){if(I===u){O=!0,u=y,d=g;break}if(I===d){O=!0,d=y,u=g;break}I=I.sibling}if(!O)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(u.alternate!==d)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(u.tag!==R)throw new Error("Unable to find node on an unmounted component.");return u.stateNode.current===u?e:t}function Ui(e){var t=Rd(e);return t!==null?ji(t):null}function ji(e){if(e.tag===H||e.tag===P)return e;for(var t=e.child;t!==null;){var s=ji(t);if(s!==null)return s;t=t.sibling}return null}function Yr(e){var t=Rd(e);return t!==null?Ra(t):null}function Ra(e){if(e.tag===H||e.tag===P)return e;for(var t=e.child;t!==null;){if(t.tag!==T){var s=Ra(t);if(s!==null)return s}t=t.sibling}return null}var N0=r.unstable_scheduleCallback,Ag=r.unstable_cancelCallback,H0=r.unstable_shouldYield,I0=r.unstable_requestPaint,Bn=r.unstable_now,Ad=r.unstable_getCurrentPriorityLevel,Qc=r.unstable_ImmediatePriority,qo=r.unstable_UserBlockingPriority,eo=r.unstable_NormalPriority,B1=r.unstable_LowPriority,Il=r.unstable_IdlePriority,kd=r.unstable_yieldValue,kg=r.unstable_setDisableYieldValue,$l=null,un=null,ze=null,aa=!1,zi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Vu(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return v("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{de&&(e=Bt({},e,{getLaneLabelMap:Pl,injectProfilingHooks:Aa})),$l=t.inject(e),un=t}catch(s){v("React instrumentation encountered an error: %s.",s)}return!!t.checkDCE}function $0(e,t){if(un&&typeof un.onScheduleFiberRoot=="function")try{un.onScheduleFiberRoot($l,e,t)}catch(s){aa||(aa=!0,v("React instrumentation encountered an error: %s",s))}}function P0(e,t){if(un&&typeof un.onCommitFiberRoot=="function")try{var s=(e.current.flags&ft)===ft;if(oe){var u;switch(t){case xi:u=Qc;break;case Ts:u=qo;break;case ka:u=eo;break;case Fa:u=Il;break;default:u=eo;break}un.onCommitFiberRoot($l,e,u,s)}}catch(d){aa||(aa=!0,v("React instrumentation encountered an error: %s",d))}}function L0(e){if(un&&typeof un.onPostCommitFiberRoot=="function")try{un.onPostCommitFiberRoot($l,e)}catch(t){aa||(aa=!0,v("React instrumentation encountered an error: %s",t))}}function U0(e){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount($l,e)}catch(t){aa||(aa=!0,v("React instrumentation encountered an error: %s",t))}}function Jr(e){if(typeof kd=="function"&&(kg(e),f(e)),un&&typeof un.setStrictMode=="function")try{un.setStrictMode($l,e)}catch(t){aa||(aa=!0,v("React instrumentation encountered an error: %s",t))}}function Aa(e){ze=e}function Pl(){{for(var e=new Map,t=1,s=0;s<jl;s++){var u=Mg(t);e.set(t,u),t*=2}return e}}function j0(e){ze!==null&&typeof ze.markCommitStarted=="function"&&ze.markCommitStarted(e)}function z0(){ze!==null&&typeof ze.markCommitStopped=="function"&&ze.markCommitStopped()}function sa(e){ze!==null&&typeof ze.markComponentRenderStarted=="function"&&ze.markComponentRenderStarted(e)}function oa(){ze!==null&&typeof ze.markComponentRenderStopped=="function"&&ze.markComponentRenderStopped()}function q0(e){ze!==null&&typeof ze.markComponentPassiveEffectMountStarted=="function"&&ze.markComponentPassiveEffectMountStarted(e)}function Fg(){ze!==null&&typeof ze.markComponentPassiveEffectMountStopped=="function"&&ze.markComponentPassiveEffectMountStopped()}function to(e){ze!==null&&typeof ze.markComponentPassiveEffectUnmountStarted=="function"&&ze.markComponentPassiveEffectUnmountStarted(e)}function Yo(){ze!==null&&typeof ze.markComponentPassiveEffectUnmountStopped=="function"&&ze.markComponentPassiveEffectUnmountStopped()}function Fd(e){ze!==null&&typeof ze.markComponentLayoutEffectMountStarted=="function"&&ze.markComponentLayoutEffectMountStarted(e)}function Og(){ze!==null&&typeof ze.markComponentLayoutEffectMountStopped=="function"&&ze.markComponentLayoutEffectMountStopped()}function Zc(e){ze!==null&&typeof ze.markComponentLayoutEffectUnmountStarted=="function"&&ze.markComponentLayoutEffectUnmountStarted(e)}function Y0(){ze!==null&&typeof ze.markComponentLayoutEffectUnmountStopped=="function"&&ze.markComponentLayoutEffectUnmountStopped()}function Xc(e,t,s){ze!==null&&typeof ze.markComponentErrored=="function"&&ze.markComponentErrored(e,t,s)}function Ds(e,t,s){ze!==null&&typeof ze.markComponentSuspended=="function"&&ze.markComponentSuspended(e,t,s)}function Jc(e){ze!==null&&typeof ze.markLayoutEffectsStarted=="function"&&ze.markLayoutEffectsStarted(e)}function ef(){ze!==null&&typeof ze.markLayoutEffectsStopped=="function"&&ze.markLayoutEffectsStopped()}function Ll(e){ze!==null&&typeof ze.markPassiveEffectsStarted=="function"&&ze.markPassiveEffectsStarted(e)}function V0(){ze!==null&&typeof ze.markPassiveEffectsStopped=="function"&&ze.markPassiveEffectsStopped()}function Ul(e){ze!==null&&typeof ze.markRenderStarted=="function"&&ze.markRenderStarted(e)}function Bg(){ze!==null&&typeof ze.markRenderYielded=="function"&&ze.markRenderYielded()}function Od(){ze!==null&&typeof ze.markRenderStopped=="function"&&ze.markRenderStopped()}function en(e){ze!==null&&typeof ze.markRenderScheduled=="function"&&ze.markRenderScheduled(e)}function Bd(e,t){ze!==null&&typeof ze.markForceUpdateScheduled=="function"&&ze.markForceUpdateScheduled(e,t)}function tf(e,t){ze!==null&&typeof ze.markStateUpdateScheduled=="function"&&ze.markStateUpdateScheduled(e,t)}var ht=0,Ht=1,or=2,Rr=8,lr=16,En=Math.clz32?Math.clz32:rf,Pn=Math.log,Md=Math.LN2;function rf(e){var t=e>>>0;return t===0?32:31-(Pn(t)/Md|0)|0}var jl=31,Ae=0,nr=0,Ct=1,Vo=2,Xa=4,fi=8,cn=16,ro=32,Wo=4194240,zl=64,Nd=128,Hd=256,Id=512,$d=1024,Pd=2048,Ld=4096,Ud=8192,jd=16384,ql=32768,zd=65536,Wu=131072,Gu=262144,qd=524288,nf=1048576,Yd=2097152,af=130023424,Yl=4194304,Vd=8388608,sf=16777216,Wd=33554432,Gd=67108864,W0=Yl,of=134217728,G0=268435455,lf=268435456,Vl=536870912,qi=1073741824;function Mg(e){{if(e&Ct)return"Sync";if(e&Vo)return"InputContinuousHydration";if(e&Xa)return"InputContinuous";if(e&fi)return"DefaultHydration";if(e&cn)return"Default";if(e&ro)return"TransitionHydration";if(e&Wo)return"Transition";if(e&af)return"Retry";if(e&of)return"SelectiveHydration";if(e&lf)return"IdleHydration";if(e&Vl)return"Idle";if(e&qi)return"Offscreen"}}var Br=-1,Wl=zl,Kd=Yl;function uf(e){switch(Go(e)){case Ct:return Ct;case Vo:return Vo;case Xa:return Xa;case fi:return fi;case cn:return cn;case ro:return ro;case zl:case Nd:case Hd:case Id:case $d:case Pd:case Ld:case Ud:case jd:case ql:case zd:case Wu:case Gu:case qd:case nf:case Yd:return e&Wo;case Yl:case Vd:case sf:case Wd:case Gd:return e⁡case of:return of;case lf:return lf;case Vl:return Vl;case qi:return qi;default:return v("Should have found matching lanes. This is a bug in React."),e}}function Qd(e,t){var s=e.pendingLanes;if(s===Ae)return Ae;var u=Ae,d=e.suspendedLanes,g=e.pingedLanes,y=s&G0;if(y!==Ae){var E=y&~d;if(E!==Ae)u=uf(E);else{var _=y&g;_!==Ae&&(u=uf(_))}}else{var O=s&~d;O!==Ae?u=uf(O):g!==Ae&&(u=uf(g))}if(u===Ae)return Ae;if(t!==Ae&&t!==u&&(t&d)===Ae){var I=Go(u),re=Go(t);if(I>=re||I===cn&&(re&Wo)!==Ae)return t}(u&Xa)!==Ae&&(u|=s&cn);var J=e.entangledLanes;if(J!==Ae)for(var le=e.entanglements,fe=u&J;fe>0;){var me=Cn(fe),qe=1<<me;u|=le[me],fe&=~qe}return u}function Ja(e,t){for(var s=e.eventTimes,u=Br;t>0;){var d=Cn(t),g=1<<d,y=s[d];y>u&&(u=y),t&=~g}return u}function K0(e,t){switch(e){case Ct:case Vo:case Xa:return t+250;case fi:case cn:case ro:case zl:case Nd:case Hd:case Id:case $d:case Pd:case Ld:case Ud:case jd:case ql:case zd:case Wu:case Gu:case qd:case nf:case Yd:return t+5e3;case Yl:case Vd:case sf:case Wd:case Gd:return Br;case of:case lf:case Vl:case qi:return Br;default:return v("Should have found matching lanes. This is a bug in React."),Br}}function Zd(e,t){for(var s=e.pendingLanes,u=e.suspendedLanes,d=e.pingedLanes,g=e.expirationTimes,y=s;y>0;){var E=Cn(y),_=1<<E,O=g[E];O===Br?((_&u)===Ae||(_&d)!==Ae)&&(g[E]=K0(_,t)):O<=t&&(e.expiredLanes|=_),y&=~_}}function Ng(e){return uf(e.pendingLanes)}function Xd(e){var t=e.pendingLanes&~qi;return t!==Ae?t:t&qi?qi:Ae}function Hg(e){return(e&Ct)!==Ae}function cf(e){return(e&G0)!==Ae}function Gl(e){return(e&af)===e}function Q0(e){var t=Ct|Xa|cn;return(e&t)===Ae}function Z0(e){return(e&Wo)===e}function Jd(e,t){var s=Vo|Xa|fi|cn;return(t&s)!==Ae}function Ig(e,t){return(t&e.expiredLanes)!==Ae}function X0(e){return(e&Wo)!==Ae}function J0(){var e=Wl;return Wl<<=1,(Wl&Wo)===Ae&&(Wl=zl),e}function $g(){var e=Kd;return Kd<<=1,(Kd&af)===Ae&&(Kd=Yl),e}function Go(e){return e&-e}function ff(e){return Go(e)}function Cn(e){return 31-En(e)}function Kn(e){return Cn(e)}function Yi(e,t){return(e&t)!==Ae}function Kl(e,t){return(e&t)===t}function Ot(e,t){return e|t}function df(e,t){return e&~t}function ep(e,t){return e&t}function Pg(e){return e}function Lg(e,t){return e!==nr&&e<t?e:t}function hf(e){for(var t=[],s=0;s<jl;s++)t.push(e);return t}function Ku(e,t,s){e.pendingLanes|=t,t!==Vl&&(e.suspendedLanes=Ae,e.pingedLanes=Ae);var u=e.eventTimes,d=Kn(t);u[d]=s}function Ug(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var s=e.expirationTimes,u=t;u>0;){var d=Cn(u),g=1<<d;s[d]=Br,u&=~g}}function eh(e,t,s){e.pingedLanes|=e.suspendedLanes&t}function tp(e,t){var s=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=Ae,e.pingedLanes=Ae,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var u=e.entanglements,d=e.eventTimes,g=e.expirationTimes,y=s;y>0;){var E=Cn(y),_=1<<E;u[E]=Ae,d[E]=Br,g[E]=Br,y&=~_}}function th(e,t){for(var s=e.entangledLanes|=t,u=e.entanglements,d=s;d;){var g=Cn(d),y=1<<g;y&t|u[g]&t&&(u[g]|=t),d&=~y}}function rp(e,t){var s=Go(t),u;switch(s){case Xa:u=Vo;break;case cn:u=fi;break;case zl:case Nd:case Hd:case Id:case $d:case Pd:case Ld:case Ud:case jd:case ql:case zd:case Wu:case Gu:case qd:case nf:case Yd:case Yl:case Vd:case sf:case Wd:case Gd:u=ro;break;case Vl:u=lf;break;default:u=nr;break}return(u&(e.suspendedLanes|t))!==nr?nr:u}function pf(e,t,s){if(zi)for(var u=e.pendingUpdatersLaneMap;s>0;){var d=Kn(s),g=1<<d,y=u[d];y.add(t),s&=~g}}function jg(e,t){if(zi)for(var s=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;t>0;){var d=Kn(t),g=1<<d,y=s[d];y.size>0&&(y.forEach(function(E){var _=E.alternate;(_===null||!u.has(_))&&u.add(E)}),y.clear()),t&=~g}}function np(e,t){return null}var xi=Ct,Ts=Xa,ka=cn,Fa=Vl,vf=nr;function Oa(){return vf}function Sn(e){vf=e}function zg(e,t){var s=vf;try{return vf=e,t()}finally{vf=s}}function qg(e,t){return e!==0&&e<t?e:t}function gf(e,t){return e>t?e:t}function Ln(e,t){return e!==0&&e<t}function Yg(e){var t=Go(e);return Ln(xi,t)?Ln(Ts,t)?cf(t)?ka:Fa:Ts:xi}function rh(e){var t=e.current.memoizedState;return t.isDehydrated}var mf;function di(e){mf=e}function M1(e){mf(e)}var Xe;function Qu(e){Xe=e}var nh;function Vg(e){nh=e}var Wg;function yf(e){Wg=e}var xf;function ip(e){xf=e}var ih=!1,Ef=[],no=null,Rs=null,As=null,fn=new Map,Ei=new Map,Ci=[],Gg=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function Kg(e){return Gg.indexOf(e)>-1}function es(e,t,s,u,d){return{blockedOn:e,domEventName:t,eventSystemFlags:s,nativeEvent:d,targetContainers:[u]}}function ap(e,t){switch(e){case"focusin":case"focusout":no=null;break;case"dragenter":case"dragleave":Rs=null;break;case"mouseover":case"mouseout":As=null;break;case"pointerover":case"pointerout":{var s=t.pointerId;fn.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var u=t.pointerId;Ei.delete(u);break}}}function Vi(e,t,s,u,d,g){if(e===null||e.nativeEvent!==g){var y=es(t,s,u,d,g);if(t!==null){var E=ac(t);E!==null&&Xe(E)}return y}e.eventSystemFlags|=u;var _=e.targetContainers;return d!==null&&_.indexOf(d)===-1&&_.push(d),e}function N1(e,t,s,u,d){switch(t){case"focusin":{var g=d;return no=Vi(no,e,t,s,u,g),!0}case"dragenter":{var y=d;return Rs=Vi(Rs,e,t,s,u,y),!0}case"mouseover":{var E=d;return As=Vi(As,e,t,s,u,E),!0}case"pointerover":{var _=d,O=_.pointerId;return fn.set(O,Vi(fn.get(O)||null,e,t,s,u,_)),!0}case"gotpointercapture":{var I=d,re=I.pointerId;return Ei.set(re,Vi(Ei.get(re)||null,e,t,s,u,I)),!0}}return!1}function sp(e){var t=Of(e.target);if(t!==null){var s=ia(t);if(s!==null){var u=s.tag;if(u===K){var d=bs(s);if(d!==null){e.blockedOn=d,xf(e.priority,function(){nh(s)});return}}else if(u===R){var g=s.stateNode;if(rh(g)){e.blockedOn=_s(s);return}}}}e.blockedOn=null}function Qg(e){for(var t=Wg(),s={blockedOn:null,target:e,priority:t},u=0;u<Ci.length&&Ln(t,Ci[u].priority);u++);Ci.splice(u,0,s),u===0&&sp(s)}function Cf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var s=t[0],u=Xu(e.domEventName,e.eventSystemFlags,s,e.nativeEvent);if(u===null){var d=e.nativeEvent,g=new d.constructor(d.type,d);A1(g),d.target.dispatchEvent(g),k1()}else{var y=ac(u);return y!==null&&Xe(y),e.blockedOn=u,!1}t.shift()}return!0}function op(e,t,s){Cf(e)&&s.delete(t)}function H1(){ih=!1,no!==null&&Cf(no)&&(no=null),Rs!==null&&Cf(Rs)&&(Rs=null),As!==null&&Cf(As)&&(As=null),fn.forEach(op),Ei.forEach(op)}function Ko(e,t){e.blockedOn===t&&(e.blockedOn=null,ih||(ih=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,H1)))}function Ql(e){if(Ef.length>0){Ko(Ef[0],e);for(var t=1;t<Ef.length;t++){var s=Ef[t];s.blockedOn===e&&(s.blockedOn=null)}}no!==null&&Ko(no,e),Rs!==null&&Ko(Rs,e),As!==null&&Ko(As,e);var u=function(E){return Ko(E,e)};fn.forEach(u),Ei.forEach(u);for(var d=0;d<Ci.length;d++){var g=Ci[d];g.blockedOn===e&&(g.blockedOn=null)}for(;Ci.length>0;){var y=Ci[0];if(y.blockedOn!==null)break;sp(y),y.blockedOn===null&&Ci.shift()}}var Qn=i.ReactCurrentBatchConfig,Vt=!0;function Mn(e){Vt=!!e}function wn(){return Vt}function Zn(e,t,s){var u=ah(t),d;switch(u){case xi:d=la;break;case Ts:d=Zu;break;case ka:default:d=dn;break}return d.bind(null,t,s,e)}function la(e,t,s,u){var d=Oa(),g=Qn.transition;Qn.transition=null;try{Sn(xi),dn(e,t,s,u)}finally{Sn(d),Qn.transition=g}}function Zu(e,t,s,u){var d=Oa(),g=Qn.transition;Qn.transition=null;try{Sn(Ts),dn(e,t,s,u)}finally{Sn(d),Qn.transition=g}}function dn(e,t,s,u){Vt&&Sf(e,t,s,u)}function Sf(e,t,s,u){var d=Xu(e,t,s,u);if(d===null){J1(e,t,u,ks,s),ap(e,u);return}if(N1(d,e,t,s,u)){u.stopPropagation();return}if(ap(e,u),t&ba&&Kg(e)){for(;d!==null;){var g=ac(d);g!==null&&M1(g);var y=Xu(e,t,s,u);if(y===null&&J1(e,t,u,ks,s),y===d)break;d=y}d!==null&&u.stopPropagation();return}J1(e,t,u,null,s)}var ks=null;function Xu(e,t,s,u){ks=null;var d=B0(u),g=Of(d);if(g!==null){var y=ia(g);if(y===null)g=null;else{var E=y.tag;if(E===K){var _=bs(y);if(_!==null)return _;g=null}else if(E===R){var O=y.stateNode;if(rh(O))return _s(y);g=null}else y!==g&&(g=null)}}return ks=g,null}function ah(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return xi;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Ts;case"message":{var t=Ad();switch(t){case Qc:return xi;case qo:return Ts;case eo:case B1:return ka;case Il:return Fa;default:return ka}}default:return ka}}function wf(e,t,s){return e.addEventListener(t,s,!1),s}function Wi(e,t,s){return e.addEventListener(t,s,!0),s}function lp(e,t,s,u){return e.addEventListener(t,s,{capture:!0,passive:u}),s}function Ju(e,t,s,u){return e.addEventListener(t,s,{passive:u}),s}var ua=null,ec=null,Zl=null;function Qo(e){return ua=e,ec=bf(),!0}function sh(){ua=null,ec=null,Zl=null}function io(){if(Zl)return Zl;var e,t=ec,s=t.length,u,d=bf(),g=d.length;for(e=0;e<s&&t[e]===d[e];e++);var y=s-e;for(u=1;u<=y&&t[s-u]===d[g-u];u++);var E=u>1?1-u:void 0;return Zl=d.slice(e,E),Zl}function bf(){return"value"in ua?ua.value:ua.textContent}function Zo(e){var t,s=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&s===13&&(t=13)):t=s,t===10&&(t=13),t>=32||t===13?t:0}function tc(){return!0}function _f(){return!1}function hi(e){function t(s,u,d,g,y){this._reactName=s,this._targetInst=d,this.type=u,this.nativeEvent=g,this.target=y,this.currentTarget=null;for(var E in e)if(e.hasOwnProperty(E)){var _=e[E];_?this[E]=_(g):this[E]=g[E]}var O=g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1;return O?this.isDefaultPrevented=tc:this.isDefaultPrevented=_f,this.isPropagationStopped=_f,this}return Bt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=tc)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=tc)},persist:function(){},isPersistent:tc}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fs=hi(bn),Si=Bt({},bn,{view:0,detail:0}),Gi=hi(Si),oh,Df,Xl;function I1(e){e!==Xl&&(Xl&&e.type==="mousemove"?(oh=e.screenX-Xl.screenX,Df=e.screenY-Xl.screenY):(oh=0,Df=0),Xl=e)}var ts=Bt({},Si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(I1(e),oh)},movementY:function(e){return"movementY"in e?e.movementY:Df}}),up=hi(ts),cp=Bt({},ts,{dataTransfer:0}),Jl=hi(cp),fp=Bt({},Si,{relatedTarget:0}),ao=hi(fp),Zg=Bt({},bn,{animationName:0,elapsedTime:0,pseudoElement:0}),Xg=hi(Zg),dp=Bt({},bn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lh=hi(dp),$1=Bt({},bn,{data:0}),Jg=hi($1),em=Jg,tm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eu={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"};function P1(e){if(e.key){var t=tm[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var s=Zo(e);return s===13?"Enter":String.fromCharCode(s)}return e.type==="keydown"||e.type==="keyup"?eu[e.keyCode]||"Unidentified":""}var rc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rm(e){var t=this,s=t.nativeEvent;if(s.getModifierState)return s.getModifierState(e);var u=rc[e];return u?!!s[u]:!1}function Vr(e){return rm}var L1=Bt({},Si,{key:P1,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vr,charCode:function(e){return e.type==="keypress"?Zo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nm=hi(L1),U1=Bt({},ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),im=hi(U1),am=Bt({},Si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vr}),sm=hi(am),j1=Bt({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ba=hi(j1),hp=Bt({},ts,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),z1=hi(hp),Xo=[9,13,27,32],Tf=229,so=dr&&"CompositionEvent"in window,Jo=null;dr&&"documentMode"in document&&(Jo=document.documentMode);var pp=dr&&"TextEvent"in window&&!Jo,uh=dr&&(!so||Jo&&Jo>8&&Jo<=11),om=32,ch=String.fromCharCode(om);function q1(){Re("onBeforeInput",["compositionend","keypress","textInput","paste"]),Re("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Re("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Re("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var vp=!1;function lm(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function fh(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function dh(e,t){return e==="keydown"&&t.keyCode===Tf}function gp(e,t){switch(e){case"keyup":return Xo.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Tf;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hh(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function um(e){return e.locale==="ko"}var tu=!1;function mp(e,t,s,u,d){var g,y;if(so?g=fh(t):tu?gp(t,u)&&(g="onCompositionEnd"):dh(t,u)&&(g="onCompositionStart"),!g)return null;uh&&!um(u)&&(!tu&&g==="onCompositionStart"?tu=Qo(d):g==="onCompositionEnd"&&tu&&(y=io()));var E=gm(s,g);if(E.length>0){var _=new Jg(g,t,null,u,d);if(e.push({event:_,listeners:E}),y)_.data=y;else{var O=hh(u);O!==null&&(_.data=O)}}}function ph(e,t){switch(e){case"compositionend":return hh(t);case"keypress":var s=t.which;return s!==om?null:(vp=!0,ch);case"textInput":var u=t.data;return u===ch&&vp?null:u;default:return null}}function yp(e,t){if(tu){if(e==="compositionend"||!so&&gp(e,t)){var s=io();return sh(),tu=!1,s}return null}switch(e){case"paste":return null;case"keypress":if(!lm(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return uh&&!um(t)?null:t.data;default:return null}}function vh(e,t,s,u,d){var g;if(pp?g=ph(t,u):g=yp(t,u),!g)return null;var y=gm(s,"onBeforeInput");if(y.length>0){var E=new em("onBeforeInput","beforeinput",null,u,d);e.push({event:E,listeners:y}),E.data=g}}function cm(e,t,s,u,d,g,y){mp(e,t,s,u,d),vh(e,t,s,u,d)}var Y1={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 Rf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Y1[e.type]:t==="textarea"}/**
|
|
87
|
+
Check the render method of \``+e+"`.":""}var No=["value","defaultValue"];function Hc(e){{Mc("select",e);for(var t=0;t<No.length;t++){var s=No[t];if(e[s]!=null){var u=Mt(e[s]);e.multiple&&!u?v("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,Zr()):!e.multiple&&u&&v("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,Zr())}}}}function Ws(e,t,s,u){var d=e.options;if(t){for(var g=s,y={},E=0;E<g.length;E++)y["$"+g[E]]=!0;for(var _=0;_<d.length;_++){var O=y.hasOwnProperty("$"+d[_].value);d[_].selected!==O&&(d[_].selected=O),O&&u&&(d[_].defaultSelected=!0)}}else{for(var I=yi(Ca(s)),re=null,J=0;J<d.length;J++){if(d[J].value===I){d[J].selected=!0,u&&(d[J].defaultSelected=!0);return}re===null&&!d[J].disabled&&(re=d[J])}re!==null&&(re.selected=!0)}}function Ic(e,t){return Bt({},t,{value:void 0})}function Al(e,t){var s=e;Hc(t),s._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!Tr&&(v("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),Tr=!0)}function v0(e,t){var s=e;s.multiple=!!t.multiple;var u=t.value;u!=null?Ws(s,!!t.multiple,u,!1):t.defaultValue!=null&&Ws(s,!!t.multiple,t.defaultValue,!0)}function ud(e,t){var s=e,u=s._wrapperState.wasMultiple;s._wrapperState.wasMultiple=!!t.multiple;var d=t.value;d!=null?Ws(s,!!t.multiple,d,!1):u!==!!t.multiple&&(t.defaultValue!=null?Ws(s,!!t.multiple,t.defaultValue,!0):Ws(s,!!t.multiple,t.multiple?[]:"",!1))}function g0(e,t){var s=e,u=t.value;u!=null&&Ws(s,!!t.multiple,u,!1)}var Xv=!1;function m0(e,t){var s=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var u=Bt({},t,{value:void 0,defaultValue:void 0,children:yi(s._wrapperState.initialValue)});return u}function y0(e,t){var s=e;Mc("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Xv&&(v("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",mi()||"A component"),Xv=!0);var u=t.value;if(u==null){var d=t.children,g=t.defaultValue;if(d!=null){v("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(g!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Mt(d)){if(d.length>1)throw new Error("<textarea> can only have at most one child.");d=d[0]}g=d}}g==null&&(g=""),u=g}s._wrapperState={initialValue:Ca(u)}}function Jv(e,t){var s=e,u=Ca(t.value),d=Ca(t.defaultValue);if(u!=null){var g=yi(u);g!==s.value&&(s.value=g),t.defaultValue==null&&s.defaultValue!==g&&(s.defaultValue=g)}d!=null&&(s.defaultValue=yi(d))}function eg(e,t){var s=e,u=s.textContent;u===s._wrapperState.initialValue&&u!==""&&u!==null&&(s.value=u)}function C1(e,t){Jv(e,t)}var Gs="http://www.w3.org/1999/xhtml",x0="http://www.w3.org/1998/Math/MathML",E0="http://www.w3.org/2000/svg";function C0(e){switch(e){case"svg":return E0;case"math":return x0;default:return Gs}}function S0(e,t){return e==null||e===Gs?C0(t):e===E0&&t==="foreignObject"?Gs:e}var tg=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,s,u,d){MSApp.execUnsafeLocalFunction(function(){return e(t,s,u,d)})}:e},cd,rg=tg(function(e,t){if(e.namespaceURI===E0&&!("innerHTML"in e)){cd=cd||document.createElement("div"),cd.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var s=cd.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;s.firstChild;)e.appendChild(s.firstChild);return}e.innerHTML=t}),$i=1,Ks=3,mn=8,Qs=9,w0=11,Nu=function(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===Ks){s.nodeValue=t;return}}e.textContent=t},$c={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Pc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function ng(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var ig=["Webkit","ms","Moz","O"];Object.keys(Pc).forEach(function(e){ig.forEach(function(t){Pc[ng(t,e)]=Pc[e]})});function fd(e,t,s){var u=t==null||typeof t=="boolean"||t==="";return u?"":!s&&typeof t=="number"&&t!==0&&!(Pc.hasOwnProperty(e)&&Pc[e])?t+"px":(vn(t,e),(""+t).trim())}var ag=/([A-Z])/g,sg=/^ms-/;function Hu(e){return e.replace(ag,"-$1").toLowerCase().replace(sg,"-ms-")}var og=function(){};{var S1=/^(?:webkit|moz|o)[A-Z]/,w1=/^-ms-/,lg=/-(.)/g,b0=/;\s*$/,xs={},kl={},ug=!1,Lc=!1,b1=function(e){return e.replace(lg,function(t,s){return s.toUpperCase()})},cg=function(e){xs.hasOwnProperty(e)&&xs[e]||(xs[e]=!0,v("Unsupported style property %s. Did you mean %s?",e,b1(e.replace(w1,"ms-"))))},_0=function(e){xs.hasOwnProperty(e)&&xs[e]||(xs[e]=!0,v("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},D0=function(e,t){kl.hasOwnProperty(t)&&kl[t]||(kl[t]=!0,v(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(b0,"")))},fg=function(e,t){ug||(ug=!0,v("`NaN` is an invalid value for the `%s` css style property.",e))},dg=function(e,t){Lc||(Lc=!0,v("`Infinity` is an invalid value for the `%s` css style property.",e))};og=function(e,t){e.indexOf("-")>-1?cg(e):S1.test(e)?_0(e):b0.test(t)&&D0(e,t),typeof t=="number"&&(isNaN(t)?fg(e,t):isFinite(t)||dg(e,t))}}var hg=og;function _1(e){{var t="",s="";for(var u in e)if(e.hasOwnProperty(u)){var d=e[u];if(d!=null){var g=u.indexOf("--")===0;t+=s+(g?u:Hu(u))+":",t+=fd(u,d,g),s=";"}}return t||null}}function pg(e,t){var s=e.style;for(var u in t)if(t.hasOwnProperty(u)){var d=u.indexOf("--")===0;d||hg(u,t[u]);var g=fd(u,t[u],d);u==="float"&&(u="cssFloat"),d?s.setProperty(u,g):s[u]=g}}function D1(e){return e==null||typeof e=="boolean"||e===""}function vg(e){var t={};for(var s in e)for(var u=$c[s]||[s],d=0;d<u.length;d++)t[u[d]]=s;return t}function T1(e,t){{if(!t)return;var s=vg(e),u=vg(t),d={};for(var g in s){var y=s[g],E=u[g];if(E&&y!==E){var _=y+","+E;if(d[_])continue;d[_]=!0,v("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",D1(e[y])?"Removing":"Updating",y,E)}}}}var Qa={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Uc=Bt({menuitem:!0},Qa),gg="__html";function dd(e,t){if(t){if(Uc[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(gg in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&v("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Ho(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var jc={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},hd={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Iu={},R1=new RegExp("^(aria)-["+Pe+"]*$"),$u=new RegExp("^(aria)[A-Z]["+Pe+"]*$");function T0(e,t){{if(zr.call(Iu,t)&&Iu[t])return!0;if($u.test(t)){var s="aria-"+t.slice(4).toLowerCase(),u=hd.hasOwnProperty(s)?s:null;if(u==null)return v("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Iu[t]=!0,!0;if(t!==u)return v("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,u),Iu[t]=!0,!0}if(R1.test(t)){var d=t.toLowerCase(),g=hd.hasOwnProperty(d)?d:null;if(g==null)return Iu[t]=!0,!1;if(t!==g)return v("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,g),Iu[t]=!0,!0}}return!0}function zc(e,t){{var s=[];for(var u in t){var d=T0(e,u);d||s.push(u)}var g=s.map(function(y){return"`"+y+"`"}).join(", ");s.length===1?v("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e):s.length>1&&v("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",g,e)}}function R0(e,t){Ho(e,t)||zc(e,t)}var A0=!1;function pd(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!A0&&(A0=!0,e==="select"&&t.multiple?v("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):v("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Fl=function(){};{var Gn={},k0=/^on./,vd=/^on[^A-Z]/,mg=new RegExp("^(aria)-["+Pe+"]*$"),yg=new RegExp("^(aria)[A-Z]["+Pe+"]*$");Fl=function(e,t,s,u){if(zr.call(Gn,t)&&Gn[t])return!0;var d=t.toLowerCase();if(d==="onfocusin"||d==="onfocusout")return v("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Gn[t]=!0,!0;if(u!=null){var g=u.registrationNameDependencies,y=u.possibleRegistrationNames;if(g.hasOwnProperty(t))return!0;var E=y.hasOwnProperty(d)?y[d]:null;if(E!=null)return v("Invalid event handler property `%s`. Did you mean `%s`?",t,E),Gn[t]=!0,!0;if(k0.test(t))return v("Unknown event handler property `%s`. It will be ignored.",t),Gn[t]=!0,!0}else if(k0.test(t))return vd.test(t)&&v("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Gn[t]=!0,!0;if(mg.test(t)||yg.test(t))return!0;if(d==="innerhtml")return v("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Gn[t]=!0,!0;if(d==="aria")return v("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Gn[t]=!0,!0;if(d==="is"&&s!==null&&s!==void 0&&typeof s!="string")return v("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof s),Gn[t]=!0,!0;if(typeof s=="number"&&isNaN(s))return v("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Gn[t]=!0,!0;var _=wr(t),O=_!==null&&_.type===ar;if(jc.hasOwnProperty(d)){var I=jc[d];if(I!==t)return v("Invalid DOM property `%s`. Did you mean `%s`?",t,I),Gn[t]=!0,!0}else if(!O&&t!==d)return v("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,d),Gn[t]=!0,!0;return typeof s=="boolean"&&Or(t,s,_,!1)?(s?v('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',s,t,t,s,t):v('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',s,t,t,s,t,t,t),Gn[t]=!0,!0):O?!0:Or(t,s,_,!1)?(Gn[t]=!0,!1):((s==="false"||s==="true")&&_!==null&&_.type===Kr&&(v("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",s,t,s==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,s),Gn[t]=!0),!0)}}var xg=function(e,t,s){{var u=[];for(var d in t){var g=Fl(e,d,t[d],s);g||u.push(d)}var y=u.map(function(E){return"`"+E+"`"}).join(", ");u.length===1?v("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",y,e):u.length>1&&v("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",y,e)}};function Eg(e,t,s){Ho(e,t)||xg(e,t,s)}var F0=1,gd=2,ba=4,O0=F0|gd|ba,Ol=null;function A1(e){Ol!==null&&v("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Ol=e}function k1(){Ol===null&&v("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Ol=null}function qc(e){return e===Ol}function B0(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Ks?t.parentNode:t}var md=null,Bl=null,xr=null;function yd(e){var t=ac(e);if(t){if(typeof md!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var s=t.stateNode;if(s){var u=Am(s);md(t.stateNode,t.type,u)}}}function xd(e){md=e}function Pu(e){Bl?xr?xr.push(e):xr=[e]:Bl=e}function Cg(){return Bl!==null||xr!==null}function Ed(){if(Bl){var e=Bl,t=xr;if(Bl=null,xr=null,yd(e),t)for(var s=0;s<t.length;s++)yd(t[s])}}var Lu=function(e,t){return e(t)},Yc=function(){},Io=!1;function Sg(){var e=Cg();e&&(Yc(),Ed())}function wg(e,t,s){if(Io)return e(t,s);Io=!0;try{return Lu(e,t,s)}finally{Io=!1,Sg()}}function F1(e,t,s){Lu=e,Yc=s}function bg(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function Cd(e,t,s){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(s.disabled&&bg(t));default:return!1}}function $o(e,t){var s=e.stateNode;if(s===null)return null;var u=Am(s);if(u===null)return null;var d=u[t];if(Cd(t,e.type,u))return null;if(d&&typeof d!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof d+"` type.");return d}var Vc=!1;if(dr)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){Vc=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{Vc=!1}function Sd(e,t,s,u,d,g,y,E,_){var O=Array.prototype.slice.call(arguments,3);try{t.apply(s,O)}catch(I){this.onError(I)}}var wd=Sd;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var M0=document.createElement("react");wd=function(t,s,u,d,g,y,E,_,O){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var I=document.createEvent("Event"),re=!1,J=!0,le=window.event,fe=Object.getOwnPropertyDescriptor(window,"event");function me(){M0.removeEventListener(ye,vt,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=le)}var qe=Array.prototype.slice.call(arguments,3);function vt(){re=!0,me(),s.apply(u,qe),J=!1}var ct,Gt=!1,Ut=!1;function ie(ae){if(ct=ae.error,Gt=!0,ct===null&&ae.colno===0&&ae.lineno===0&&(Ut=!0),ae.defaultPrevented&&ct!=null&&typeof ct=="object")try{ct._suppressLogging=!0}catch{}}var ye="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",ie),M0.addEventListener(ye,vt,!1),I.initEvent(ye,!1,!1),M0.dispatchEvent(I),fe&&Object.defineProperty(window,"event",fe),re&&J&&(Gt?Ut&&(ct=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):ct=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(ct)),window.removeEventListener("error",ie),!re)return me(),Sd.apply(this,arguments)}}var _g=wd,Uu=!1,bd=null,ju=!1,Es=null,Dg={onError:function(e){Uu=!0,bd=e}};function Po(e,t,s,u,d,g,y,E,_){Uu=!1,bd=null,_g.apply(Dg,arguments)}function Cs(e,t,s,u,d,g,y,E,_){if(Po.apply(this,arguments),Uu){var O=Gc();ju||(ju=!0,Es=O)}}function Wc(){if(ju){var e=Es;throw ju=!1,Es=null,e}}function Zs(){return Uu}function Gc(){if(Uu){var e=bd;return Uu=!1,bd=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function zu(e){return e._reactInternals}function O1(e){return e._reactInternals!==void 0}function Nl(e,t){e._reactInternals=t}var dt=0,Za=1,Xr=2,Yt=4,_a=16,Da=32,$r=64,ft=128,ci=256,an=512,On=1024,Pi=2048,Li=4096,yn=8192,qu=16384,Tg=32767,Kc=32768,$n=65536,_d=131072,Ss=1048576,Yu=2097152,Xs=4194304,Dd=8388608,Lo=16777216,ws=33554432,Uo=Yt|On|0,jo=Xr|Yt|_a|Da|an|Li|yn,zo=Yt|$r|an|yn,Js=Pi|_a,xn=Xs|Dd|Yu,Ta=i.ReactCurrentOwner;function ia(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{var u=t;do t=u,(t.flags&(Xr|Li))!==dt&&(s=t.return),u=t.return;while(u)}return t.tag===T?s:null}function bs(e){if(e.tag===K){var t=e.memoizedState;if(t===null){var s=e.alternate;s!==null&&(t=s.memoizedState)}if(t!==null)return t.dehydrated}return null}function _s(e){return e.tag===T?e.stateNode.containerInfo:null}function Hl(e){return ia(e)===e}function Rg(e){{var t=Ta.current;if(t!==null&&t.tag===C){var s=t,u=s.stateNode;u._warnedAboutRefsInRender||v("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",_t(s)||"A component"),u._warnedAboutRefsInRender=!0}}var d=zu(e);return d?ia(d)===d:!1}function Td(e){if(ia(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function Rd(e){var t=e.alternate;if(!t){var s=ia(e);if(s===null)throw new Error("Unable to find node on an unmounted component.");return s!==e?null:e}for(var u=e,d=t;;){var g=u.return;if(g===null)break;var y=g.alternate;if(y===null){var E=g.return;if(E!==null){u=d=E;continue}break}if(g.child===y.child){for(var _=g.child;_;){if(_===u)return Td(g),e;if(_===d)return Td(g),t;_=_.sibling}throw new Error("Unable to find node on an unmounted component.")}if(u.return!==d.return)u=g,d=y;else{for(var O=!1,I=g.child;I;){if(I===u){O=!0,u=g,d=y;break}if(I===d){O=!0,d=g,u=y;break}I=I.sibling}if(!O){for(I=y.child;I;){if(I===u){O=!0,u=y,d=g;break}if(I===d){O=!0,d=y,u=g;break}I=I.sibling}if(!O)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(u.alternate!==d)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(u.tag!==T)throw new Error("Unable to find node on an unmounted component.");return u.stateNode.current===u?e:t}function Ui(e){var t=Rd(e);return t!==null?ji(t):null}function ji(e){if(e.tag===H||e.tag===P)return e;for(var t=e.child;t!==null;){var s=ji(t);if(s!==null)return s;t=t.sibling}return null}function Yr(e){var t=Rd(e);return t!==null?Ra(t):null}function Ra(e){if(e.tag===H||e.tag===P)return e;for(var t=e.child;t!==null;){if(t.tag!==A){var s=Ra(t);if(s!==null)return s}t=t.sibling}return null}var N0=r.unstable_scheduleCallback,Ag=r.unstable_cancelCallback,H0=r.unstable_shouldYield,I0=r.unstable_requestPaint,Bn=r.unstable_now,Ad=r.unstable_getCurrentPriorityLevel,Qc=r.unstable_ImmediatePriority,qo=r.unstable_UserBlockingPriority,eo=r.unstable_NormalPriority,B1=r.unstable_LowPriority,Il=r.unstable_IdlePriority,kd=r.unstable_yieldValue,kg=r.unstable_setDisableYieldValue,$l=null,un=null,ze=null,aa=!1,zi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function Vu(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return v("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{de&&(e=Bt({},e,{getLaneLabelMap:Pl,injectProfilingHooks:Aa})),$l=t.inject(e),un=t}catch(s){v("React instrumentation encountered an error: %s.",s)}return!!t.checkDCE}function $0(e,t){if(un&&typeof un.onScheduleFiberRoot=="function")try{un.onScheduleFiberRoot($l,e,t)}catch(s){aa||(aa=!0,v("React instrumentation encountered an error: %s",s))}}function P0(e,t){if(un&&typeof un.onCommitFiberRoot=="function")try{var s=(e.current.flags&ft)===ft;if(oe){var u;switch(t){case xi:u=Qc;break;case Ts:u=qo;break;case ka:u=eo;break;case Fa:u=Il;break;default:u=eo;break}un.onCommitFiberRoot($l,e,u,s)}}catch(d){aa||(aa=!0,v("React instrumentation encountered an error: %s",d))}}function L0(e){if(un&&typeof un.onPostCommitFiberRoot=="function")try{un.onPostCommitFiberRoot($l,e)}catch(t){aa||(aa=!0,v("React instrumentation encountered an error: %s",t))}}function U0(e){if(un&&typeof un.onCommitFiberUnmount=="function")try{un.onCommitFiberUnmount($l,e)}catch(t){aa||(aa=!0,v("React instrumentation encountered an error: %s",t))}}function Jr(e){if(typeof kd=="function"&&(kg(e),f(e)),un&&typeof un.setStrictMode=="function")try{un.setStrictMode($l,e)}catch(t){aa||(aa=!0,v("React instrumentation encountered an error: %s",t))}}function Aa(e){ze=e}function Pl(){{for(var e=new Map,t=1,s=0;s<jl;s++){var u=Mg(t);e.set(t,u),t*=2}return e}}function j0(e){ze!==null&&typeof ze.markCommitStarted=="function"&&ze.markCommitStarted(e)}function z0(){ze!==null&&typeof ze.markCommitStopped=="function"&&ze.markCommitStopped()}function sa(e){ze!==null&&typeof ze.markComponentRenderStarted=="function"&&ze.markComponentRenderStarted(e)}function oa(){ze!==null&&typeof ze.markComponentRenderStopped=="function"&&ze.markComponentRenderStopped()}function q0(e){ze!==null&&typeof ze.markComponentPassiveEffectMountStarted=="function"&&ze.markComponentPassiveEffectMountStarted(e)}function Fg(){ze!==null&&typeof ze.markComponentPassiveEffectMountStopped=="function"&&ze.markComponentPassiveEffectMountStopped()}function to(e){ze!==null&&typeof ze.markComponentPassiveEffectUnmountStarted=="function"&&ze.markComponentPassiveEffectUnmountStarted(e)}function Yo(){ze!==null&&typeof ze.markComponentPassiveEffectUnmountStopped=="function"&&ze.markComponentPassiveEffectUnmountStopped()}function Fd(e){ze!==null&&typeof ze.markComponentLayoutEffectMountStarted=="function"&&ze.markComponentLayoutEffectMountStarted(e)}function Og(){ze!==null&&typeof ze.markComponentLayoutEffectMountStopped=="function"&&ze.markComponentLayoutEffectMountStopped()}function Zc(e){ze!==null&&typeof ze.markComponentLayoutEffectUnmountStarted=="function"&&ze.markComponentLayoutEffectUnmountStarted(e)}function Y0(){ze!==null&&typeof ze.markComponentLayoutEffectUnmountStopped=="function"&&ze.markComponentLayoutEffectUnmountStopped()}function Xc(e,t,s){ze!==null&&typeof ze.markComponentErrored=="function"&&ze.markComponentErrored(e,t,s)}function Ds(e,t,s){ze!==null&&typeof ze.markComponentSuspended=="function"&&ze.markComponentSuspended(e,t,s)}function Jc(e){ze!==null&&typeof ze.markLayoutEffectsStarted=="function"&&ze.markLayoutEffectsStarted(e)}function ef(){ze!==null&&typeof ze.markLayoutEffectsStopped=="function"&&ze.markLayoutEffectsStopped()}function Ll(e){ze!==null&&typeof ze.markPassiveEffectsStarted=="function"&&ze.markPassiveEffectsStarted(e)}function V0(){ze!==null&&typeof ze.markPassiveEffectsStopped=="function"&&ze.markPassiveEffectsStopped()}function Ul(e){ze!==null&&typeof ze.markRenderStarted=="function"&&ze.markRenderStarted(e)}function Bg(){ze!==null&&typeof ze.markRenderYielded=="function"&&ze.markRenderYielded()}function Od(){ze!==null&&typeof ze.markRenderStopped=="function"&&ze.markRenderStopped()}function en(e){ze!==null&&typeof ze.markRenderScheduled=="function"&&ze.markRenderScheduled(e)}function Bd(e,t){ze!==null&&typeof ze.markForceUpdateScheduled=="function"&&ze.markForceUpdateScheduled(e,t)}function tf(e,t){ze!==null&&typeof ze.markStateUpdateScheduled=="function"&&ze.markStateUpdateScheduled(e,t)}var ht=0,Ht=1,or=2,Rr=8,lr=16,En=Math.clz32?Math.clz32:rf,Pn=Math.log,Md=Math.LN2;function rf(e){var t=e>>>0;return t===0?32:31-(Pn(t)/Md|0)|0}var jl=31,Ae=0,nr=0,Ct=1,Vo=2,Xa=4,fi=8,cn=16,ro=32,Wo=4194240,zl=64,Nd=128,Hd=256,Id=512,$d=1024,Pd=2048,Ld=4096,Ud=8192,jd=16384,ql=32768,zd=65536,Wu=131072,Gu=262144,qd=524288,nf=1048576,Yd=2097152,af=130023424,Yl=4194304,Vd=8388608,sf=16777216,Wd=33554432,Gd=67108864,W0=Yl,of=134217728,G0=268435455,lf=268435456,Vl=536870912,qi=1073741824;function Mg(e){{if(e&Ct)return"Sync";if(e&Vo)return"InputContinuousHydration";if(e&Xa)return"InputContinuous";if(e&fi)return"DefaultHydration";if(e&cn)return"Default";if(e&ro)return"TransitionHydration";if(e&Wo)return"Transition";if(e&af)return"Retry";if(e&of)return"SelectiveHydration";if(e&lf)return"IdleHydration";if(e&Vl)return"Idle";if(e&qi)return"Offscreen"}}var Br=-1,Wl=zl,Kd=Yl;function uf(e){switch(Go(e)){case Ct:return Ct;case Vo:return Vo;case Xa:return Xa;case fi:return fi;case cn:return cn;case ro:return ro;case zl:case Nd:case Hd:case Id:case $d:case Pd:case Ld:case Ud:case jd:case ql:case zd:case Wu:case Gu:case qd:case nf:case Yd:return e&Wo;case Yl:case Vd:case sf:case Wd:case Gd:return e⁡case of:return of;case lf:return lf;case Vl:return Vl;case qi:return qi;default:return v("Should have found matching lanes. This is a bug in React."),e}}function Qd(e,t){var s=e.pendingLanes;if(s===Ae)return Ae;var u=Ae,d=e.suspendedLanes,g=e.pingedLanes,y=s&G0;if(y!==Ae){var E=y&~d;if(E!==Ae)u=uf(E);else{var _=y&g;_!==Ae&&(u=uf(_))}}else{var O=s&~d;O!==Ae?u=uf(O):g!==Ae&&(u=uf(g))}if(u===Ae)return Ae;if(t!==Ae&&t!==u&&(t&d)===Ae){var I=Go(u),re=Go(t);if(I>=re||I===cn&&(re&Wo)!==Ae)return t}(u&Xa)!==Ae&&(u|=s&cn);var J=e.entangledLanes;if(J!==Ae)for(var le=e.entanglements,fe=u&J;fe>0;){var me=Cn(fe),qe=1<<me;u|=le[me],fe&=~qe}return u}function Ja(e,t){for(var s=e.eventTimes,u=Br;t>0;){var d=Cn(t),g=1<<d,y=s[d];y>u&&(u=y),t&=~g}return u}function K0(e,t){switch(e){case Ct:case Vo:case Xa:return t+250;case fi:case cn:case ro:case zl:case Nd:case Hd:case Id:case $d:case Pd:case Ld:case Ud:case jd:case ql:case zd:case Wu:case Gu:case qd:case nf:case Yd:return t+5e3;case Yl:case Vd:case sf:case Wd:case Gd:return Br;case of:case lf:case Vl:case qi:return Br;default:return v("Should have found matching lanes. This is a bug in React."),Br}}function Zd(e,t){for(var s=e.pendingLanes,u=e.suspendedLanes,d=e.pingedLanes,g=e.expirationTimes,y=s;y>0;){var E=Cn(y),_=1<<E,O=g[E];O===Br?((_&u)===Ae||(_&d)!==Ae)&&(g[E]=K0(_,t)):O<=t&&(e.expiredLanes|=_),y&=~_}}function Ng(e){return uf(e.pendingLanes)}function Xd(e){var t=e.pendingLanes&~qi;return t!==Ae?t:t&qi?qi:Ae}function Hg(e){return(e&Ct)!==Ae}function cf(e){return(e&G0)!==Ae}function Gl(e){return(e&af)===e}function Q0(e){var t=Ct|Xa|cn;return(e&t)===Ae}function Z0(e){return(e&Wo)===e}function Jd(e,t){var s=Vo|Xa|fi|cn;return(t&s)!==Ae}function Ig(e,t){return(t&e.expiredLanes)!==Ae}function X0(e){return(e&Wo)!==Ae}function J0(){var e=Wl;return Wl<<=1,(Wl&Wo)===Ae&&(Wl=zl),e}function $g(){var e=Kd;return Kd<<=1,(Kd&af)===Ae&&(Kd=Yl),e}function Go(e){return e&-e}function ff(e){return Go(e)}function Cn(e){return 31-En(e)}function Kn(e){return Cn(e)}function Yi(e,t){return(e&t)!==Ae}function Kl(e,t){return(e&t)===t}function Ot(e,t){return e|t}function df(e,t){return e&~t}function ep(e,t){return e&t}function Pg(e){return e}function Lg(e,t){return e!==nr&&e<t?e:t}function hf(e){for(var t=[],s=0;s<jl;s++)t.push(e);return t}function Ku(e,t,s){e.pendingLanes|=t,t!==Vl&&(e.suspendedLanes=Ae,e.pingedLanes=Ae);var u=e.eventTimes,d=Kn(t);u[d]=s}function Ug(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var s=e.expirationTimes,u=t;u>0;){var d=Cn(u),g=1<<d;s[d]=Br,u&=~g}}function eh(e,t,s){e.pingedLanes|=e.suspendedLanes&t}function tp(e,t){var s=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=Ae,e.pingedLanes=Ae,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var u=e.entanglements,d=e.eventTimes,g=e.expirationTimes,y=s;y>0;){var E=Cn(y),_=1<<E;u[E]=Ae,d[E]=Br,g[E]=Br,y&=~_}}function th(e,t){for(var s=e.entangledLanes|=t,u=e.entanglements,d=s;d;){var g=Cn(d),y=1<<g;y&t|u[g]&t&&(u[g]|=t),d&=~y}}function rp(e,t){var s=Go(t),u;switch(s){case Xa:u=Vo;break;case cn:u=fi;break;case zl:case Nd:case Hd:case Id:case $d:case Pd:case Ld:case Ud:case jd:case ql:case zd:case Wu:case Gu:case qd:case nf:case Yd:case Yl:case Vd:case sf:case Wd:case Gd:u=ro;break;case Vl:u=lf;break;default:u=nr;break}return(u&(e.suspendedLanes|t))!==nr?nr:u}function pf(e,t,s){if(zi)for(var u=e.pendingUpdatersLaneMap;s>0;){var d=Kn(s),g=1<<d,y=u[d];y.add(t),s&=~g}}function jg(e,t){if(zi)for(var s=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;t>0;){var d=Kn(t),g=1<<d,y=s[d];y.size>0&&(y.forEach(function(E){var _=E.alternate;(_===null||!u.has(_))&&u.add(E)}),y.clear()),t&=~g}}function np(e,t){return null}var xi=Ct,Ts=Xa,ka=cn,Fa=Vl,vf=nr;function Oa(){return vf}function Sn(e){vf=e}function zg(e,t){var s=vf;try{return vf=e,t()}finally{vf=s}}function qg(e,t){return e!==0&&e<t?e:t}function gf(e,t){return e>t?e:t}function Ln(e,t){return e!==0&&e<t}function Yg(e){var t=Go(e);return Ln(xi,t)?Ln(Ts,t)?cf(t)?ka:Fa:Ts:xi}function rh(e){var t=e.current.memoizedState;return t.isDehydrated}var mf;function di(e){mf=e}function M1(e){mf(e)}var Xe;function Qu(e){Xe=e}var nh;function Vg(e){nh=e}var Wg;function yf(e){Wg=e}var xf;function ip(e){xf=e}var ih=!1,Ef=[],no=null,Rs=null,As=null,fn=new Map,Ei=new Map,Ci=[],Gg=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function Kg(e){return Gg.indexOf(e)>-1}function es(e,t,s,u,d){return{blockedOn:e,domEventName:t,eventSystemFlags:s,nativeEvent:d,targetContainers:[u]}}function ap(e,t){switch(e){case"focusin":case"focusout":no=null;break;case"dragenter":case"dragleave":Rs=null;break;case"mouseover":case"mouseout":As=null;break;case"pointerover":case"pointerout":{var s=t.pointerId;fn.delete(s);break}case"gotpointercapture":case"lostpointercapture":{var u=t.pointerId;Ei.delete(u);break}}}function Vi(e,t,s,u,d,g){if(e===null||e.nativeEvent!==g){var y=es(t,s,u,d,g);if(t!==null){var E=ac(t);E!==null&&Xe(E)}return y}e.eventSystemFlags|=u;var _=e.targetContainers;return d!==null&&_.indexOf(d)===-1&&_.push(d),e}function N1(e,t,s,u,d){switch(t){case"focusin":{var g=d;return no=Vi(no,e,t,s,u,g),!0}case"dragenter":{var y=d;return Rs=Vi(Rs,e,t,s,u,y),!0}case"mouseover":{var E=d;return As=Vi(As,e,t,s,u,E),!0}case"pointerover":{var _=d,O=_.pointerId;return fn.set(O,Vi(fn.get(O)||null,e,t,s,u,_)),!0}case"gotpointercapture":{var I=d,re=I.pointerId;return Ei.set(re,Vi(Ei.get(re)||null,e,t,s,u,I)),!0}}return!1}function sp(e){var t=Of(e.target);if(t!==null){var s=ia(t);if(s!==null){var u=s.tag;if(u===K){var d=bs(s);if(d!==null){e.blockedOn=d,xf(e.priority,function(){nh(s)});return}}else if(u===T){var g=s.stateNode;if(rh(g)){e.blockedOn=_s(s);return}}}}e.blockedOn=null}function Qg(e){for(var t=Wg(),s={blockedOn:null,target:e,priority:t},u=0;u<Ci.length&&Ln(t,Ci[u].priority);u++);Ci.splice(u,0,s),u===0&&sp(s)}function Cf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var s=t[0],u=Xu(e.domEventName,e.eventSystemFlags,s,e.nativeEvent);if(u===null){var d=e.nativeEvent,g=new d.constructor(d.type,d);A1(g),d.target.dispatchEvent(g),k1()}else{var y=ac(u);return y!==null&&Xe(y),e.blockedOn=u,!1}t.shift()}return!0}function op(e,t,s){Cf(e)&&s.delete(t)}function H1(){ih=!1,no!==null&&Cf(no)&&(no=null),Rs!==null&&Cf(Rs)&&(Rs=null),As!==null&&Cf(As)&&(As=null),fn.forEach(op),Ei.forEach(op)}function Ko(e,t){e.blockedOn===t&&(e.blockedOn=null,ih||(ih=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,H1)))}function Ql(e){if(Ef.length>0){Ko(Ef[0],e);for(var t=1;t<Ef.length;t++){var s=Ef[t];s.blockedOn===e&&(s.blockedOn=null)}}no!==null&&Ko(no,e),Rs!==null&&Ko(Rs,e),As!==null&&Ko(As,e);var u=function(E){return Ko(E,e)};fn.forEach(u),Ei.forEach(u);for(var d=0;d<Ci.length;d++){var g=Ci[d];g.blockedOn===e&&(g.blockedOn=null)}for(;Ci.length>0;){var y=Ci[0];if(y.blockedOn!==null)break;sp(y),y.blockedOn===null&&Ci.shift()}}var Qn=i.ReactCurrentBatchConfig,Vt=!0;function Mn(e){Vt=!!e}function wn(){return Vt}function Zn(e,t,s){var u=ah(t),d;switch(u){case xi:d=la;break;case Ts:d=Zu;break;case ka:default:d=dn;break}return d.bind(null,t,s,e)}function la(e,t,s,u){var d=Oa(),g=Qn.transition;Qn.transition=null;try{Sn(xi),dn(e,t,s,u)}finally{Sn(d),Qn.transition=g}}function Zu(e,t,s,u){var d=Oa(),g=Qn.transition;Qn.transition=null;try{Sn(Ts),dn(e,t,s,u)}finally{Sn(d),Qn.transition=g}}function dn(e,t,s,u){Vt&&Sf(e,t,s,u)}function Sf(e,t,s,u){var d=Xu(e,t,s,u);if(d===null){J1(e,t,u,ks,s),ap(e,u);return}if(N1(d,e,t,s,u)){u.stopPropagation();return}if(ap(e,u),t&ba&&Kg(e)){for(;d!==null;){var g=ac(d);g!==null&&M1(g);var y=Xu(e,t,s,u);if(y===null&&J1(e,t,u,ks,s),y===d)break;d=y}d!==null&&u.stopPropagation();return}J1(e,t,u,null,s)}var ks=null;function Xu(e,t,s,u){ks=null;var d=B0(u),g=Of(d);if(g!==null){var y=ia(g);if(y===null)g=null;else{var E=y.tag;if(E===K){var _=bs(y);if(_!==null)return _;g=null}else if(E===T){var O=y.stateNode;if(rh(O))return _s(y);g=null}else y!==g&&(g=null)}}return ks=g,null}function ah(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return xi;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return Ts;case"message":{var t=Ad();switch(t){case Qc:return xi;case qo:return Ts;case eo:case B1:return ka;case Il:return Fa;default:return ka}}default:return ka}}function wf(e,t,s){return e.addEventListener(t,s,!1),s}function Wi(e,t,s){return e.addEventListener(t,s,!0),s}function lp(e,t,s,u){return e.addEventListener(t,s,{capture:!0,passive:u}),s}function Ju(e,t,s,u){return e.addEventListener(t,s,{passive:u}),s}var ua=null,ec=null,Zl=null;function Qo(e){return ua=e,ec=bf(),!0}function sh(){ua=null,ec=null,Zl=null}function io(){if(Zl)return Zl;var e,t=ec,s=t.length,u,d=bf(),g=d.length;for(e=0;e<s&&t[e]===d[e];e++);var y=s-e;for(u=1;u<=y&&t[s-u]===d[g-u];u++);var E=u>1?1-u:void 0;return Zl=d.slice(e,E),Zl}function bf(){return"value"in ua?ua.value:ua.textContent}function Zo(e){var t,s=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&s===13&&(t=13)):t=s,t===10&&(t=13),t>=32||t===13?t:0}function tc(){return!0}function _f(){return!1}function hi(e){function t(s,u,d,g,y){this._reactName=s,this._targetInst=d,this.type=u,this.nativeEvent=g,this.target=y,this.currentTarget=null;for(var E in e)if(e.hasOwnProperty(E)){var _=e[E];_?this[E]=_(g):this[E]=g[E]}var O=g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1;return O?this.isDefaultPrevented=tc:this.isDefaultPrevented=_f,this.isPropagationStopped=_f,this}return Bt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=tc)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=tc)},persist:function(){},isPersistent:tc}),t}var bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fs=hi(bn),Si=Bt({},bn,{view:0,detail:0}),Gi=hi(Si),oh,Df,Xl;function I1(e){e!==Xl&&(Xl&&e.type==="mousemove"?(oh=e.screenX-Xl.screenX,Df=e.screenY-Xl.screenY):(oh=0,Df=0),Xl=e)}var ts=Bt({},Si,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(I1(e),oh)},movementY:function(e){return"movementY"in e?e.movementY:Df}}),up=hi(ts),cp=Bt({},ts,{dataTransfer:0}),Jl=hi(cp),fp=Bt({},Si,{relatedTarget:0}),ao=hi(fp),Zg=Bt({},bn,{animationName:0,elapsedTime:0,pseudoElement:0}),Xg=hi(Zg),dp=Bt({},bn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lh=hi(dp),$1=Bt({},bn,{data:0}),Jg=hi($1),em=Jg,tm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eu={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"};function P1(e){if(e.key){var t=tm[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var s=Zo(e);return s===13?"Enter":String.fromCharCode(s)}return e.type==="keydown"||e.type==="keyup"?eu[e.keyCode]||"Unidentified":""}var rc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rm(e){var t=this,s=t.nativeEvent;if(s.getModifierState)return s.getModifierState(e);var u=rc[e];return u?!!s[u]:!1}function Vr(e){return rm}var L1=Bt({},Si,{key:P1,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vr,charCode:function(e){return e.type==="keypress"?Zo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),nm=hi(L1),U1=Bt({},ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),im=hi(U1),am=Bt({},Si,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vr}),sm=hi(am),j1=Bt({},bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ba=hi(j1),hp=Bt({},ts,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),z1=hi(hp),Xo=[9,13,27,32],Tf=229,so=dr&&"CompositionEvent"in window,Jo=null;dr&&"documentMode"in document&&(Jo=document.documentMode);var pp=dr&&"TextEvent"in window&&!Jo,uh=dr&&(!so||Jo&&Jo>8&&Jo<=11),om=32,ch=String.fromCharCode(om);function q1(){Re("onBeforeInput",["compositionend","keypress","textInput","paste"]),Re("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Re("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Re("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var vp=!1;function lm(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function fh(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function dh(e,t){return e==="keydown"&&t.keyCode===Tf}function gp(e,t){switch(e){case"keyup":return Xo.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Tf;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hh(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function um(e){return e.locale==="ko"}var tu=!1;function mp(e,t,s,u,d){var g,y;if(so?g=fh(t):tu?gp(t,u)&&(g="onCompositionEnd"):dh(t,u)&&(g="onCompositionStart"),!g)return null;uh&&!um(u)&&(!tu&&g==="onCompositionStart"?tu=Qo(d):g==="onCompositionEnd"&&tu&&(y=io()));var E=gm(s,g);if(E.length>0){var _=new Jg(g,t,null,u,d);if(e.push({event:_,listeners:E}),y)_.data=y;else{var O=hh(u);O!==null&&(_.data=O)}}}function ph(e,t){switch(e){case"compositionend":return hh(t);case"keypress":var s=t.which;return s!==om?null:(vp=!0,ch);case"textInput":var u=t.data;return u===ch&&vp?null:u;default:return null}}function yp(e,t){if(tu){if(e==="compositionend"||!so&&gp(e,t)){var s=io();return sh(),tu=!1,s}return null}switch(e){case"paste":return null;case"keypress":if(!lm(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return uh&&!um(t)?null:t.data;default:return null}}function vh(e,t,s,u,d){var g;if(pp?g=ph(t,u):g=yp(t,u),!g)return null;var y=gm(s,"onBeforeInput");if(y.length>0){var E=new em("onBeforeInput","beforeinput",null,u,d);e.push({event:E,listeners:y}),E.data=g}}function cm(e,t,s,u,d,g,y){mp(e,t,s,u,d),vh(e,t,s,u,d)}var Y1={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 Rf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Y1[e.type]:t==="textarea"}/**
|
|
88
88
|
* Checks if an event is supported in the current execution environment.
|
|
89
89
|
*
|
|
90
90
|
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
@@ -96,8 +96,8 @@ Check the render method of \``+e+"`.":""}var No=["value","defaultValue"];functio
|
|
|
96
96
|
* @return {boolean} True if the event is supported.
|
|
97
97
|
* @internal
|
|
98
98
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
99
|
-
*/function V1(e){if(!dr)return!1;var t="on"+e,s=t in document;if(!s){var u=document.createElement("div");u.setAttribute(t,"return;"),s=typeof u[t]=="function"}return s}function Af(){Re("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function fm(e,t,s,u){Pu(u);var d=gm(t,"onChange");if(d.length>0){var g=new Fs("onChange","change",null,s,u);e.push({event:g,listeners:d})}}var el=null,n=null;function a(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function c(e){var t=[];fm(t,n,e,B0(e)),wg(h,t)}function h(e){pb(e,0)}function m(e){var t=Ch(e);if(ys(t))return e}function x(e,t){if(e==="change")return t}var k=!1;dr&&(k=V1("input")&&(!document.documentMode||document.documentMode>9));function Y(e,t){el=e,n=t,el.attachEvent("onpropertychange",ce)}function Q(){el&&(el.detachEvent("onpropertychange",ce),el=null,n=null)}function ce(e){e.propertyName==="value"&&m(n)&&c(e)}function Fe(e,t,s){e==="focusin"?(Q(),Y(t,s)):e==="focusout"&&Q()}function Be(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return m(n)}function ke(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function Ke(e,t){if(e==="click")return m(t)}function at(e,t){if(e==="input"||e==="change")return m(t)}function lt(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||pt(e,"number",e.value)}function hn(e,t,s,u,d,g,y){var E=s?Ch(s):window,_,O;if(a(E)?_=x:Rf(E)?k?_=at:(_=Be,O=Fe):ke(E)&&(_=Ke),_){var I=_(t,s);if(I){fm(e,I,u,d);return}}O&&O(t,E,s),t==="focusout"&<(E)}function ne(){yt("onMouseEnter",["mouseout","mouseover"]),yt("onMouseLeave",["mouseout","mouseover"]),yt("onPointerEnter",["pointerout","pointerover"]),yt("onPointerLeave",["pointerout","pointerover"])}function te(e,t,s,u,d,g,y){var E=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout";if(E&&!qc(u)){var O=u.relatedTarget||u.fromElement;if(O&&(Of(O)||Op(O)))return}if(!(!_&&!E)){var I;if(d.window===d)I=d;else{var re=d.ownerDocument;re?I=re.defaultView||re.parentWindow:I=window}var J,le;if(_){var fe=u.relatedTarget||u.toElement;if(J=s,le=fe?Of(fe):null,le!==null){var me=ia(le);(le!==me||le.tag!==H&&le.tag!==P)&&(le=null)}}else J=null,le=s;if(J!==le){var qe=up,vt="onMouseLeave",ct="onMouseEnter",Gt="mouse";(t==="pointerout"||t==="pointerover")&&(qe=im,vt="onPointerLeave",ct="onPointerEnter",Gt="pointer");var Ut=J==null?I:Ch(J),ie=le==null?I:Ch(le),ye=new qe(vt,Gt+"leave",J,u,d);ye.target=Ut,ye.relatedTarget=ie;var ae=null,Me=Of(d);if(Me===s){var Ze=new qe(ct,Gt+"enter",le,u,d);Ze.target=ie,Ze.relatedTarget=Ut,ae=Ze}Vk(e,ye,ae,J,le)}}}function se(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oe=typeof Object.is=="function"?Object.is:se;function st(e,t){if(Oe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),u=Object.keys(t);if(s.length!==u.length)return!1;for(var d=0;d<s.length;d++){var g=s[d];if(!zr.call(t,g)||!Oe(e[g],t[g]))return!1}return!0}function mt(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Et(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function wt(e,t){for(var s=mt(e),u=0,d=0;s;){if(s.nodeType===Ks){if(d=u+s.textContent.length,u<=t&&d>=t)return{node:s,offset:t-u};u=d}s=mt(Et(s))}}function Un(e){var t=e.ownerDocument,s=t&&t.defaultView||window,u=s.getSelection&&s.getSelection();if(!u||u.rangeCount===0)return null;var d=u.anchorNode,g=u.anchorOffset,y=u.focusNode,E=u.focusOffset;try{d.nodeType,y.nodeType}catch{return null}return ur(e,d,g,y,E)}function ur(e,t,s,u,d){var g=0,y=-1,E=-1,_=0,O=0,I=e,re=null;e:for(;;){for(var J=null;I===t&&(s===0||I.nodeType===Ks)&&(y=g+s),I===u&&(d===0||I.nodeType===Ks)&&(E=g+d),I.nodeType===Ks&&(g+=I.nodeValue.length),(J=I.firstChild)!==null;)re=I,I=J;for(;;){if(I===e)break e;if(re===t&&++_===s&&(y=g),re===u&&++O===d&&(E=g),(J=I.nextSibling)!==null)break;I=re,re=I.parentNode}I=J}return y===-1||E===-1?null:{start:y,end:E}}function tl(e,t){var s=e.ownerDocument||document,u=s&&s.defaultView||window;if(u.getSelection){var d=u.getSelection(),g=e.textContent.length,y=Math.min(t.start,g),E=t.end===void 0?y:Math.min(t.end,g);if(!d.extend&&y>E){var _=E;E=y,y=_}var O=wt(e,y),I=wt(e,E);if(O&&I){if(d.rangeCount===1&&d.anchorNode===O.node&&d.anchorOffset===O.offset&&d.focusNode===I.node&&d.focusOffset===I.offset)return;var re=s.createRange();re.setStart(O.node,O.offset),d.removeAllRanges(),y>E?(d.addRange(re),d.extend(I.node,I.offset)):(re.setEnd(I.node,I.offset),d.addRange(re))}}}function dm(e){return e&&e.nodeType===Ks}function nb(e,t){return!e||!t?!1:e===t?!0:dm(e)?!1:dm(t)?nb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function Rk(e){return e&&e.ownerDocument&&nb(e.ownerDocument.documentElement,e)}function Ak(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function ib(){for(var e=window,t=wa();t instanceof e.HTMLIFrameElement;){if(Ak(t))e=t.contentWindow;else return t;t=wa(e.document)}return t}function W1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kk(){var e=ib();return{focusedElem:e,selectionRange:W1(e)?Ok(e):null}}function Fk(e){var t=ib(),s=e.focusedElem,u=e.selectionRange;if(t!==s&&Rk(s)){u!==null&&W1(s)&&Bk(s,u);for(var d=[],g=s;g=g.parentNode;)g.nodeType===$i&&d.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof s.focus=="function"&&s.focus();for(var y=0;y<d.length;y++){var E=d[y];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}}function Ok(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=Un(e),t||{start:0,end:0}}function Bk(e,t){var s=t.start,u=t.end;u===void 0&&(u=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(u,e.value.length)):tl(e,t)}var Mk=dr&&"documentMode"in document&&document.documentMode<=11;function Nk(){Re("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var gh=null,G1=null,xp=null,K1=!1;function Hk(e){if("selectionStart"in e&&W1(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,s=t.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function Ik(e){return e.window===e?e.document:e.nodeType===Qs?e:e.ownerDocument}function ab(e,t,s){var u=Ik(s);if(!(K1||gh==null||gh!==wa(u))){var d=Hk(gh);if(!xp||!st(xp,d)){xp=d;var g=gm(G1,"onSelect");if(g.length>0){var y=new Fs("onSelect","select",null,t,s);e.push({event:y,listeners:g}),y.target=gh}}}}function $k(e,t,s,u,d,g,y){var E=s?Ch(s):window;switch(t){case"focusin":(Rf(E)||E.contentEditable==="true")&&(gh=E,G1=s,xp=null);break;case"focusout":gh=null,G1=null,xp=null;break;case"mousedown":K1=!0;break;case"contextmenu":case"mouseup":case"dragend":K1=!1,ab(e,u,d);break;case"selectionchange":if(Mk)break;case"keydown":case"keyup":ab(e,u,d)}}function hm(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var mh={animationend:hm("Animation","AnimationEnd"),animationiteration:hm("Animation","AnimationIteration"),animationstart:hm("Animation","AnimationStart"),transitionend:hm("Transition","TransitionEnd")},Q1={},sb={};dr&&(sb=document.createElement("div").style,"AnimationEvent"in window||(delete mh.animationend.animation,delete mh.animationiteration.animation,delete mh.animationstart.animation),"TransitionEvent"in window||delete mh.transitionend.transition);function pm(e){if(Q1[e])return Q1[e];if(!mh[e])return e;var t=mh[e];for(var s in t)if(t.hasOwnProperty(s)&&s in sb)return Q1[e]=t[s];return e}var ob=pm("animationend"),lb=pm("animationiteration"),ub=pm("animationstart"),cb=pm("transitionend"),fb=new Map,db=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function nc(e,t){fb.set(e,t),Re(t,[e])}function Pk(){for(var e=0;e<db.length;e++){var t=db[e],s=t.toLowerCase(),u=t[0].toUpperCase()+t.slice(1);nc(s,"on"+u)}nc(ob,"onAnimationEnd"),nc(lb,"onAnimationIteration"),nc(ub,"onAnimationStart"),nc("dblclick","onDoubleClick"),nc("focusin","onFocus"),nc("focusout","onBlur"),nc(cb,"onTransitionEnd")}function Lk(e,t,s,u,d,g,y){var E=fb.get(t);if(E!==void 0){var _=Fs,O=t;switch(t){case"keypress":if(Zo(u)===0)return;case"keydown":case"keyup":_=nm;break;case"focusin":O="focus",_=ao;break;case"focusout":O="blur",_=ao;break;case"beforeblur":case"afterblur":_=ao;break;case"click":if(u.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=up;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Jl;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=sm;break;case ob:case lb:case ub:_=Xg;break;case cb:_=Ba;break;case"scroll":_=Gi;break;case"wheel":_=z1;break;case"copy":case"cut":case"paste":_=lh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=im;break}var I=(g&ba)!==0;{var re=!I&&t==="scroll",J=qk(s,E,u.type,I,re);if(J.length>0){var le=new _(E,O,null,u,d);e.push({event:le,listeners:J})}}}}Pk(),ne(),Af(),Nk(),q1();function Uk(e,t,s,u,d,g,y){Lk(e,t,s,u,d,g);var E=(g&O0)===0;E&&(te(e,t,s,u,d),hn(e,t,s,u,d),$k(e,t,s,u,d),cm(e,t,s,u,d))}var Ep=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Z1=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Ep));function hb(e,t,s){var u=e.type||"unknown-event";e.currentTarget=s,Cs(u,t,void 0,e),e.currentTarget=null}function jk(e,t,s){var u;if(s)for(var d=t.length-1;d>=0;d--){var g=t[d],y=g.instance,E=g.currentTarget,_=g.listener;if(y!==u&&e.isPropagationStopped())return;hb(e,_,E),u=y}else for(var O=0;O<t.length;O++){var I=t[O],re=I.instance,J=I.currentTarget,le=I.listener;if(re!==u&&e.isPropagationStopped())return;hb(e,le,J),u=re}}function pb(e,t){for(var s=(t&ba)!==0,u=0;u<e.length;u++){var d=e[u],g=d.event,y=d.listeners;jk(g,y,s)}Wc()}function zk(e,t,s,u,d){var g=B0(s),y=[];Uk(y,e,u,s,g,t),pb(y,t)}function tn(e,t){Z1.has(e)||v('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,u=x5(t),d=Wk(e);u.has(d)||(vb(t,e,gd,s),u.add(d))}function X1(e,t,s){Z1.has(e)&&!t&&v('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=ba),vb(s,e,u,t)}var vm="_reactListening"+Math.random().toString(36).slice(2);function Cp(e){if(!e[vm]){e[vm]=!0,Ge.forEach(function(s){s!=="selectionchange"&&(Z1.has(s)||X1(s,!1,e),X1(s,!0,e))});var t=e.nodeType===Qs?e:e.ownerDocument;t!==null&&(t[vm]||(t[vm]=!0,X1("selectionchange",!1,t)))}}function vb(e,t,s,u,d){var g=Zn(e,t,s),y=void 0;Vc&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(y=!0),e=e,u?y!==void 0?lp(e,t,g,y):Wi(e,t,g):y!==void 0?Ju(e,t,g,y):wf(e,t,g)}function gb(e,t){return e===t||e.nodeType===mn&&e.parentNode===t}function J1(e,t,s,u,d){var g=u;if(!(t&F0)&&!(t&gd)){var y=d;if(u!==null){var E=u;e:for(;;){if(E===null)return;var _=E.tag;if(_===R||_===T){var O=E.stateNode.containerInfo;if(gb(O,y))break;if(_===T)for(var I=E.return;I!==null;){var re=I.tag;if(re===R||re===T){var J=I.stateNode.containerInfo;if(gb(J,y))return}I=I.return}for(;O!==null;){var le=Of(O);if(le===null)return;var fe=le.tag;if(fe===H||fe===P){E=g=le;continue e}O=O.parentNode}}E=E.return}}}wg(function(){return zk(e,t,s,g)})}function Sp(e,t,s){return{instance:e,listener:t,currentTarget:s}}function qk(e,t,s,u,d,g){for(var y=t!==null?t+"Capture":null,E=u?y:t,_=[],O=e,I=null;O!==null;){var re=O,J=re.stateNode,le=re.tag;if(le===H&&J!==null&&(I=J,E!==null)){var fe=$o(O,E);fe!=null&&_.push(Sp(O,fe,I))}if(d)break;O=O.return}return _}function gm(e,t){for(var s=t+"Capture",u=[],d=e;d!==null;){var g=d,y=g.stateNode,E=g.tag;if(E===H&&y!==null){var _=y,O=$o(d,s);O!=null&&u.unshift(Sp(d,O,_));var I=$o(d,t);I!=null&&u.push(Sp(d,I,_))}d=d.return}return u}function yh(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==H);return e||null}function Yk(e,t){for(var s=e,u=t,d=0,g=s;g;g=yh(g))d++;for(var y=0,E=u;E;E=yh(E))y++;for(;d-y>0;)s=yh(s),d--;for(;y-d>0;)u=yh(u),y--;for(var _=d;_--;){if(s===u||u!==null&&s===u.alternate)return s;s=yh(s),u=yh(u)}return null}function mb(e,t,s,u,d){for(var g=t._reactName,y=[],E=s;E!==null&&E!==u;){var _=E,O=_.alternate,I=_.stateNode,re=_.tag;if(O!==null&&O===u)break;if(re===H&&I!==null){var J=I;if(d){var le=$o(E,g);le!=null&&y.unshift(Sp(E,le,J))}else if(!d){var fe=$o(E,g);fe!=null&&y.push(Sp(E,fe,J))}}E=E.return}y.length!==0&&e.push({event:t,listeners:y})}function Vk(e,t,s,u,d){var g=u&&d?Yk(u,d):null;u!==null&&mb(e,t,u,g,!1),d!==null&&s!==null&&mb(e,s,d,g,!0)}function Wk(e,t){return e+"__bubble"}var Ma=!1,wp="dangerouslySetInnerHTML",mm="suppressContentEditableWarning",ic="suppressHydrationWarning",yb="autoFocus",kf="children",Ff="style",ym="__html",eE,xm,bp,xb,Em,Eb,Cb;eE={dialog:!0,webview:!0},xm=function(e,t){R0(e,t),pd(e,t),Eg(e,t,{registrationNameDependencies:ut,possibleRegistrationNames:Se})},Eb=dr&&!document.documentMode,bp=function(e,t,s){if(!Ma){var u=Cm(s),d=Cm(t);d!==u&&(Ma=!0,v("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(d),JSON.stringify(u)))}},xb=function(e){if(!Ma){Ma=!0;var t=[];e.forEach(function(s){t.push(s)}),v("Extra attributes from the server: %s",t)}},Em=function(e,t){t===!1?v("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):v("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},Cb=function(e,t){var s=e.namespaceURI===Gs?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=t,s.innerHTML};var Gk=/\r\n?/g,Kk=/\u0000|\uFFFD/g;function Cm(e){qr(e);var t=typeof e=="string"?e:""+e;return t.replace(Gk,`
|
|
100
|
-
`).replace(Kk,"")}function Sm(e,t,s,u){var d=Cm(t),g=Cm(e);if(g!==d&&(u&&(Ma||(Ma=!0,v('Text content did not match. Server: "%s" Client: "%s"',g,d))),s&&ge))throw new Error("Text content does not match server-rendered HTML.")}function Sb(e){return e.nodeType===Qs?e:e.ownerDocument}function Qk(){}function wm(e){e.onclick=Qk}function Zk(e,t,s,u,d){for(var g in u)if(u.hasOwnProperty(g)){var y=u[g];if(g===Ff)y&&Object.freeze(y),pg(t,y);else if(g===wp){var E=y?y[ym]:void 0;E!=null&&rg(t,E)}else if(g===kf)if(typeof y=="string"){var _=e!=="textarea"||y!=="";_&&Nu(t,y)}else typeof y=="number"&&Nu(t,""+y);else g===mm||g===ic||g===yb||(ut.hasOwnProperty(g)?y!=null&&(typeof y!="function"&&Em(g,y),g==="onScroll"&&tn("scroll",t)):y!=null&&Yn(t,g,y,d))}}function Xk(e,t,s,u){for(var d=0;d<t.length;d+=2){var g=t[d],y=t[d+1];g===Ff?pg(e,y):g===wp?rg(e,y):g===kf?Nu(e,y):Yn(e,g,y,u)}}function Jk(e,t,s,u){var d,g=Sb(s),y,E=u;if(E===Gs&&(E=C0(e)),E===Gs){if(d=Ho(e,t),!d&&e!==e.toLowerCase()&&v("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var _=g.createElement("div");_.innerHTML="<script><\/script>";var O=_.firstChild;y=_.removeChild(O)}else if(typeof t.is=="string")y=g.createElement(e,{is:t.is});else if(y=g.createElement(e),e==="select"){var I=y;t.multiple?I.multiple=!0:t.size&&(I.size=t.size)}}else y=g.createElementNS(E,e);return E===Gs&&!d&&Object.prototype.toString.call(y)==="[object HTMLUnknownElement]"&&!zr.call(eE,e)&&(eE[e]=!0,v("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),y}function e3(e,t){return Sb(t).createTextNode(e)}function t3(e,t,s,u){var d=Ho(t,s);xm(t,s);var g;switch(t){case"dialog":tn("cancel",e),tn("close",e),g=s;break;case"iframe":case"object":case"embed":tn("load",e),g=s;break;case"video":case"audio":for(var y=0;y<Ep.length;y++)tn(Ep[y],e);g=s;break;case"source":tn("error",e),g=s;break;case"img":case"image":case"link":tn("error",e),tn("load",e),g=s;break;case"details":tn("toggle",e),g=s;break;case"input":Ka(e,s),g=Mu(e,s),tn("invalid",e);break;case"option":Xt(e,s),g=s;break;case"select":Al(e,s),g=Ic(e,s),tn("invalid",e);break;case"textarea":y0(e,s),g=m0(e,s),tn("invalid",e);break;default:g=s}switch(dd(t,g),Zk(t,e,u,g,d),t){case"input":Ga(e),ue(e,s,!1);break;case"textarea":Ga(e),eg(e);break;case"option":Ir(e,s);break;case"select":v0(e,s);break;default:typeof g.onClick=="function"&&wm(e);break}}function r3(e,t,s,u,d){xm(t,u);var g=null,y,E;switch(t){case"input":y=Mu(e,s),E=Mu(e,u),g=[];break;case"select":y=Ic(e,s),E=Ic(e,u),g=[];break;case"textarea":y=m0(e,s),E=m0(e,u),g=[];break;default:y=s,E=u,typeof y.onClick!="function"&&typeof E.onClick=="function"&&wm(e);break}dd(t,E);var _,O,I=null;for(_ in y)if(!(E.hasOwnProperty(_)||!y.hasOwnProperty(_)||y[_]==null))if(_===Ff){var re=y[_];for(O in re)re.hasOwnProperty(O)&&(I||(I={}),I[O]="")}else _===wp||_===kf||_===mm||_===ic||_===yb||(ut.hasOwnProperty(_)?g||(g=[]):(g=g||[]).push(_,null));for(_ in E){var J=E[_],le=y!=null?y[_]:void 0;if(!(!E.hasOwnProperty(_)||J===le||J==null&&le==null))if(_===Ff)if(J&&Object.freeze(J),le){for(O in le)le.hasOwnProperty(O)&&(!J||!J.hasOwnProperty(O))&&(I||(I={}),I[O]="");for(O in J)J.hasOwnProperty(O)&&le[O]!==J[O]&&(I||(I={}),I[O]=J[O])}else I||(g||(g=[]),g.push(_,I)),I=J;else if(_===wp){var fe=J?J[ym]:void 0,me=le?le[ym]:void 0;fe!=null&&me!==fe&&(g=g||[]).push(_,fe)}else _===kf?(typeof J=="string"||typeof J=="number")&&(g=g||[]).push(_,""+J):_===mm||_===ic||(ut.hasOwnProperty(_)?(J!=null&&(typeof J!="function"&&Em(_,J),_==="onScroll"&&tn("scroll",e)),!g&&le!==J&&(g=[])):(g=g||[]).push(_,J))}return I&&(T1(I,E[Ff]),(g=g||[]).push(Ff,I)),g}function n3(e,t,s,u,d){s==="input"&&d.type==="radio"&&d.name!=null&&D(e,d);var g=Ho(s,u),y=Ho(s,d);switch(Xk(e,t,g,y),s){case"input":V(e,d);break;case"textarea":Jv(e,d);break;case"select":ud(e,d);break}}function i3(e){{var t=e.toLowerCase();return jc.hasOwnProperty(t)&&jc[t]||null}}function a3(e,t,s,u,d,g,y){var E,_;switch(E=Ho(t,s),xm(t,s),t){case"dialog":tn("cancel",e),tn("close",e);break;case"iframe":case"object":case"embed":tn("load",e);break;case"video":case"audio":for(var O=0;O<Ep.length;O++)tn(Ep[O],e);break;case"source":tn("error",e);break;case"img":case"image":case"link":tn("error",e),tn("load",e);break;case"details":tn("toggle",e);break;case"input":Ka(e,s),tn("invalid",e);break;case"option":Xt(e,s);break;case"select":Al(e,s),tn("invalid",e);break;case"textarea":y0(e,s),tn("invalid",e);break}dd(t,s);{_=new Set;for(var I=e.attributes,re=0;re<I.length;re++){var J=I[re].name.toLowerCase();switch(J){case"value":break;case"checked":break;case"selected":break;default:_.add(I[re].name)}}}var le=null;for(var fe in s)if(s.hasOwnProperty(fe)){var me=s[fe];if(fe===kf)typeof me=="string"?e.textContent!==me&&(s[ic]!==!0&&Sm(e.textContent,me,g,y),le=[kf,me]):typeof me=="number"&&e.textContent!==""+me&&(s[ic]!==!0&&Sm(e.textContent,me,g,y),le=[kf,""+me]);else if(ut.hasOwnProperty(fe))me!=null&&(typeof me!="function"&&Em(fe,me),fe==="onScroll"&&tn("scroll",e));else if(y&&typeof E=="boolean"){var qe=void 0,vt=wr(fe);if(s[ic]!==!0){if(!(fe===mm||fe===ic||fe==="value"||fe==="checked"||fe==="selected")){if(fe===wp){var ct=e.innerHTML,Gt=me?me[ym]:void 0;if(Gt!=null){var Ut=Cb(e,Gt);Ut!==ct&&bp(fe,ct,Ut)}}else if(fe===Ff){if(_.delete(fe),Eb){var ie=_1(me);qe=e.getAttribute("style"),ie!==qe&&bp(fe,qe,ie)}}else if(E&&!$)_.delete(fe.toLowerCase()),qe=hs(e,fe,me),me!==qe&&bp(fe,qe,me);else if(!Nr(fe,vt,E)&&!gn(fe,me,vt,E)){var ye=!1;if(vt!==null)_.delete(vt.attributeName),qe=ds(e,fe,me,vt);else{var ae=u;if(ae===Gs&&(ae=C0(t)),ae===Gs)_.delete(fe.toLowerCase());else{var Me=i3(fe);Me!==null&&Me!==fe&&(ye=!0,_.delete(Me)),_.delete(fe)}qe=hs(e,fe,me)}var Ze=$;!Ze&&me!==qe&&!ye&&bp(fe,qe,me)}}}}}switch(y&&_.size>0&&s[ic]!==!0&&xb(_),t){case"input":Ga(e),ue(e,s,!0);break;case"textarea":Ga(e),eg(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&wm(e);break}return le}function s3(e,t,s){var u=e.nodeValue!==t;return u}function tE(e,t){{if(Ma)return;Ma=!0,v("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function rE(e,t){{if(Ma)return;Ma=!0,v('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function nE(e,t,s){{if(Ma)return;Ma=!0,v("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function iE(e,t){{if(t===""||Ma)return;Ma=!0,v('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function o3(e,t,s){switch(t){case"input":ve(e,s);return;case"textarea":C1(e,s);return;case"select":g0(e,s);return}}var _p=function(){},Dp=function(){};{var l3=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],wb=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],u3=wb.concat(["button"]),c3=["dd","dt","li","option","optgroup","p","rp","rt"],bb={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Dp=function(e,t){var s=Bt({},e||bb),u={tag:t};return wb.indexOf(t)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),u3.indexOf(t)!==-1&&(s.pTagInButtonScope=null),l3.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=u,t==="form"&&(s.formTag=u),t==="a"&&(s.aTagInScope=u),t==="button"&&(s.buttonTagInScope=u),t==="nobr"&&(s.nobrTagInScope=u),t==="p"&&(s.pTagInButtonScope=u),t==="li"&&(s.listItemTagAutoclosing=u),(t==="dd"||t==="dt")&&(s.dlItemTagAutoclosing=u),s};var f3=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return c3.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},d3=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},_b={};_p=function(e,t,s){s=s||bb;var u=s.current,d=u&&u.tag;t!=null&&(e!=null&&v("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var g=f3(e,d)?null:u,y=g?null:d3(e,s),E=g||y;if(E){var _=E.tag,O=!!g+"|"+e+"|"+_;if(!_b[O]){_b[O]=!0;var I=e,re="";if(e==="#text"?/\S/.test(t)?I="Text nodes":(I="Whitespace text nodes",re=" Make sure you don't have any extra whitespace between tags on each line of your source code."):I="<"+e+">",g){var J="";_==="table"&&e==="tr"&&(J+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),v("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",I,_,re,J)}else v("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",I,_)}}}}var bm="suppressHydrationWarning",_m="$",Dm="/$",Tp="$?",Rp="$!",h3="style",aE=null,sE=null;function p3(e){var t,s,u=e.nodeType;switch(u){case Qs:case w0:{t=u===Qs?"#document":"#fragment";var d=e.documentElement;s=d?d.namespaceURI:S0(null,"");break}default:{var g=u===mn?e.parentNode:e,y=g.namespaceURI||null;t=g.tagName,s=S0(y,t);break}}{var E=t.toLowerCase(),_=Dp(null,E);return{namespace:s,ancestorInfo:_}}}function v3(e,t,s){{var u=e,d=S0(u.namespace,t),g=Dp(u.ancestorInfo,t);return{namespace:d,ancestorInfo:g}}}function gO(e){return e}function g3(e){aE=wn(),sE=kk();var t=null;return Mn(!1),t}function m3(e){Fk(sE),Mn(aE),aE=null,sE=null}function y3(e,t,s,u,d){var g;{var y=u;if(_p(e,null,y.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var E=""+t.children,_=Dp(y.ancestorInfo,e);_p(null,E,_)}g=y.namespace}var O=Jk(e,t,s,g);return Fp(d,O),pE(O,t),O}function x3(e,t){e.appendChild(t)}function E3(e,t,s,u,d){switch(t3(e,t,s,u),t){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function C3(e,t,s,u,d,g){{var y=g;if(typeof u.children!=typeof s.children&&(typeof u.children=="string"||typeof u.children=="number")){var E=""+u.children,_=Dp(y.ancestorInfo,t);_p(null,E,_)}}return r3(e,t,s,u)}function oE(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function S3(e,t,s,u){{var d=s;_p(null,e,d.ancestorInfo)}var g=e3(e,t);return Fp(u,g),g}function w3(){var e=window.event;return e===void 0?ka:ah(e.type)}var lE=typeof setTimeout=="function"?setTimeout:void 0,b3=typeof clearTimeout=="function"?clearTimeout:void 0,uE=-1,Db=typeof Promise=="function"?Promise:void 0,_3=typeof queueMicrotask=="function"?queueMicrotask:typeof Db<"u"?function(e){return Db.resolve(null).then(e).catch(D3)}:lE;function D3(e){setTimeout(function(){throw e})}function T3(e,t,s,u){switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function R3(e,t,s,u,d,g){n3(e,t,s,u,d),pE(e,d)}function Tb(e){Nu(e,"")}function A3(e,t,s){e.nodeValue=s}function k3(e,t){e.appendChild(t)}function F3(e,t){var s;e.nodeType===mn?(s=e.parentNode,s.insertBefore(t,e)):(s=e,s.appendChild(t));var u=e._reactRootContainer;u==null&&s.onclick===null&&wm(s)}function O3(e,t,s){e.insertBefore(t,s)}function B3(e,t,s){e.nodeType===mn?e.parentNode.insertBefore(t,s):e.insertBefore(t,s)}function M3(e,t){e.removeChild(t)}function N3(e,t){e.nodeType===mn?e.parentNode.removeChild(t):e.removeChild(t)}function cE(e,t){var s=t,u=0;do{var d=s.nextSibling;if(e.removeChild(s),d&&d.nodeType===mn){var g=d.data;if(g===Dm)if(u===0){e.removeChild(d),Ql(t);return}else u--;else(g===_m||g===Tp||g===Rp)&&u++}s=d}while(s);Ql(t)}function H3(e,t){e.nodeType===mn?cE(e.parentNode,t):e.nodeType===$i&&cE(e,t),Ql(e)}function I3(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function $3(e){e.nodeValue=""}function P3(e,t){e=e;var s=t[h3],u=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=fd("display",u)}function L3(e,t){e.nodeValue=t}function U3(e){e.nodeType===$i?e.textContent="":e.nodeType===Qs&&e.documentElement&&e.removeChild(e.documentElement)}function j3(e,t,s){return e.nodeType!==$i||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function z3(e,t){return t===""||e.nodeType!==Ks?null:e}function q3(e){return e.nodeType!==mn?null:e}function Rb(e){return e.data===Tp}function fE(e){return e.data===Rp}function Y3(e){var t=e.nextSibling&&e.nextSibling.dataset,s,u,d;return t&&(s=t.dgst,u=t.msg,d=t.stck),{message:u,digest:s,stack:d}}function V3(e,t){e._reactRetry=t}function Tm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===$i||t===Ks)break;if(t===mn){var s=e.data;if(s===_m||s===Rp||s===Tp)break;if(s===Dm)return null}}return e}function Ap(e){return Tm(e.nextSibling)}function W3(e){return Tm(e.firstChild)}function G3(e){return Tm(e.firstChild)}function K3(e){return Tm(e.nextSibling)}function Q3(e,t,s,u,d,g,y){Fp(g,e),pE(e,s);var E;{var _=d;E=_.namespace}var O=(g.mode&Ht)!==ht;return a3(e,t,s,E,u,O,y)}function Z3(e,t,s,u){return Fp(s,e),s.mode&Ht,s3(e,t)}function X3(e,t){Fp(t,e)}function J3(e){for(var t=e.nextSibling,s=0;t;){if(t.nodeType===mn){var u=t.data;if(u===Dm){if(s===0)return Ap(t);s--}else(u===_m||u===Rp||u===Tp)&&s++}t=t.nextSibling}return null}function Ab(e){for(var t=e.previousSibling,s=0;t;){if(t.nodeType===mn){var u=t.data;if(u===_m||u===Rp||u===Tp){if(s===0)return t;s--}else u===Dm&&s++}t=t.previousSibling}return null}function e5(e){Ql(e)}function t5(e){Ql(e)}function r5(e){return e!=="head"&&e!=="body"}function n5(e,t,s,u){var d=!0;Sm(t.nodeValue,s,u,d)}function i5(e,t,s,u,d,g){if(t[bm]!==!0){var y=!0;Sm(u.nodeValue,d,g,y)}}function a5(e,t){t.nodeType===$i?tE(e,t):t.nodeType===mn||rE(e,t)}function s5(e,t){{var s=e.parentNode;s!==null&&(t.nodeType===$i?tE(s,t):t.nodeType===mn||rE(s,t))}}function o5(e,t,s,u,d){(d||t[bm]!==!0)&&(u.nodeType===$i?tE(s,u):u.nodeType===mn||rE(s,u))}function l5(e,t,s){nE(e,t)}function u5(e,t){iE(e,t)}function c5(e,t,s){{var u=e.parentNode;u!==null&&nE(u,t)}}function f5(e,t){{var s=e.parentNode;s!==null&&iE(s,t)}}function d5(e,t,s,u,d,g){(g||t[bm]!==!0)&&nE(s,u)}function h5(e,t,s,u,d){(d||t[bm]!==!0)&&iE(s,u)}function p5(e){v("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function v5(e){Cp(e)}var xh=Math.random().toString(36).slice(2),Eh="__reactFiber$"+xh,dE="__reactProps$"+xh,kp="__reactContainer$"+xh,hE="__reactEvents$"+xh,g5="__reactListeners$"+xh,m5="__reactHandles$"+xh;function y5(e){delete e[Eh],delete e[dE],delete e[hE],delete e[g5],delete e[m5]}function Fp(e,t){t[Eh]=e}function Rm(e,t){t[kp]=e}function kb(e){e[kp]=null}function Op(e){return!!e[kp]}function Of(e){var t=e[Eh];if(t)return t;for(var s=e.parentNode;s;){if(t=s[kp]||s[Eh],t){var u=t.alternate;if(t.child!==null||u!==null&&u.child!==null)for(var d=Ab(e);d!==null;){var g=d[Eh];if(g)return g;d=Ab(d)}return t}e=s,s=e.parentNode}return null}function ac(e){var t=e[Eh]||e[kp];return t&&(t.tag===H||t.tag===P||t.tag===K||t.tag===R)?t:null}function Ch(e){if(e.tag===H||e.tag===P)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Am(e){return e[dE]||null}function pE(e,t){e[dE]=t}function x5(e){var t=e[hE];return t===void 0&&(t=e[hE]=new Set),t}var Fb={},Ob=i.ReactDebugCurrentFrame;function km(e){if(e){var t=e._owner,s=Ys(e.type,e._source,t?t.type:null);Ob.setExtraStackFrame(s)}else Ob.setExtraStackFrame(null)}function oo(e,t,s,u,d){{var g=Function.call.bind(zr);for(var y in e)if(g(e,y)){var E=void 0;try{if(typeof e[y]!="function"){var _=Error((u||"React class")+": "+s+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}E=e[y](t,y,u,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(O){E=O}E&&!(E instanceof Error)&&(km(d),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",s,y,typeof E),km(null)),E instanceof Error&&!(E.message in Fb)&&(Fb[E.message]=!0,km(d),v("Failed %s type: %s",s,E.message),km(null))}}}var vE=[],Fm;Fm=[];var ru=-1;function sc(e){return{current:e}}function Ki(e,t){if(ru<0){v("Unexpected pop.");return}t!==Fm[ru]&&v("Unexpected Fiber popped."),e.current=vE[ru],vE[ru]=null,Fm[ru]=null,ru--}function Qi(e,t,s){ru++,vE[ru]=e.current,Fm[ru]=s,e.current=t}var gE;gE={};var rs={};Object.freeze(rs);var nu=sc(rs),rl=sc(!1),mE=rs;function Sh(e,t,s){return s&&nl(t)?mE:nu.current}function Bb(e,t,s){{var u=e.stateNode;u.__reactInternalMemoizedUnmaskedChildContext=t,u.__reactInternalMemoizedMaskedChildContext=s}}function wh(e,t){{var s=e.type,u=s.contextTypes;if(!u)return rs;var d=e.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===t)return d.__reactInternalMemoizedMaskedChildContext;var g={};for(var y in u)g[y]=t[y];{var E=_t(e)||"Unknown";oo(u,g,"context",E)}return d&&Bb(e,t,g),g}}function Om(){return rl.current}function nl(e){{var t=e.childContextTypes;return t!=null}}function Bm(e){Ki(rl,e),Ki(nu,e)}function yE(e){Ki(rl,e),Ki(nu,e)}function Mb(e,t,s){{if(nu.current!==rs)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Qi(nu,t,e),Qi(rl,s,e)}}function Nb(e,t,s){{var u=e.stateNode,d=t.childContextTypes;if(typeof u.getChildContext!="function"){{var g=_t(e)||"Unknown";gE[g]||(gE[g]=!0,v("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",g,g))}return s}var y=u.getChildContext();for(var E in y)if(!(E in d))throw new Error((_t(e)||"Unknown")+'.getChildContext(): key "'+E+'" is not defined in childContextTypes.');{var _=_t(e)||"Unknown";oo(d,y,"child context",_)}return Bt({},s,y)}}function Mm(e){{var t=e.stateNode,s=t&&t.__reactInternalMemoizedMergedChildContext||rs;return mE=nu.current,Qi(nu,s,e),Qi(rl,rl.current,e),!0}}function Hb(e,t,s){{var u=e.stateNode;if(!u)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var d=Nb(e,t,mE);u.__reactInternalMemoizedMergedChildContext=d,Ki(rl,e),Ki(nu,e),Qi(nu,d,e),Qi(rl,s,e)}else Ki(rl,e),Qi(rl,s,e)}}function E5(e){{if(!Hl(e)||e.tag!==C)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case R:return t.stateNode.context;case C:{var s=t.type;if(nl(s))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var oc=0,Nm=1,iu=null,xE=!1,EE=!1;function Ib(e){iu===null?iu=[e]:iu.push(e)}function C5(e){xE=!0,Ib(e)}function $b(){xE&&lc()}function lc(){if(!EE&&iu!==null){EE=!0;var e=0,t=Oa();try{var s=!0,u=iu;for(Sn(xi);e<u.length;e++){var d=u[e];do d=d(s);while(d!==null)}iu=null,xE=!1}catch(g){throw iu!==null&&(iu=iu.slice(e+1)),N0(Qc,lc),g}finally{Sn(t),EE=!1}}return null}var bh=[],_h=0,Hm=null,Im=0,Os=[],Bs=0,Bf=null,au=1,su="";function S5(e){return Nf(),(e.flags&Ss)!==dt}function w5(e){return Nf(),Im}function b5(){var e=su,t=au,s=t&~_5(t);return s.toString(32)+e}function Mf(e,t){Nf(),bh[_h++]=Im,bh[_h++]=Hm,Hm=e,Im=t}function Pb(e,t,s){Nf(),Os[Bs++]=au,Os[Bs++]=su,Os[Bs++]=Bf,Bf=e;var u=au,d=su,g=$m(u)-1,y=u&~(1<<g),E=s+1,_=$m(t)+g;if(_>30){var O=g-g%5,I=(1<<O)-1,re=(y&I).toString(32),J=y>>O,le=g-O,fe=$m(t)+le,me=E<<le,qe=me|J,vt=re+d;au=1<<fe|qe,su=vt}else{var ct=E<<g,Gt=ct|y,Ut=d;au=1<<_|Gt,su=Ut}}function CE(e){Nf();var t=e.return;if(t!==null){var s=1,u=0;Mf(e,s),Pb(e,s,u)}}function $m(e){return 32-En(e)}function _5(e){return 1<<$m(e)-1}function SE(e){for(;e===Hm;)Hm=bh[--_h],bh[_h]=null,Im=bh[--_h],bh[_h]=null;for(;e===Bf;)Bf=Os[--Bs],Os[Bs]=null,su=Os[--Bs],Os[Bs]=null,au=Os[--Bs],Os[Bs]=null}function D5(){return Nf(),Bf!==null?{id:au,overflow:su}:null}function T5(e,t){Nf(),Os[Bs++]=au,Os[Bs++]=su,Os[Bs++]=Bf,au=t.id,su=t.overflow,Bf=e}function Nf(){bi()||v("Expected to be hydrating. This is a bug in React. Please file an issue.")}var wi=null,Ms=null,lo=!1,Hf=!1,uc=null;function R5(){lo&&v("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Lb(){Hf=!0}function A5(){return Hf}function k5(e){var t=e.stateNode.containerInfo;return Ms=G3(t),wi=e,lo=!0,uc=null,Hf=!1,!0}function F5(e,t,s){return Ms=K3(t),wi=e,lo=!0,uc=null,Hf=!1,s!==null&&T5(e,s),!0}function Ub(e,t){switch(e.tag){case R:{a5(e.stateNode.containerInfo,t);break}case H:{var s=(e.mode&Ht)!==ht;o5(e.type,e.memoizedProps,e.stateNode,t,s);break}case K:{var u=e.memoizedState;u.dehydrated!==null&&s5(u.dehydrated,t);break}}}function jb(e,t){Ub(e,t);var s=N9();s.stateNode=t,s.return=e;var u=e.deletions;u===null?(e.deletions=[s],e.flags|=_a):u.push(s)}function wE(e,t){{if(Hf)return;switch(e.tag){case R:{var s=e.stateNode.containerInfo;switch(t.tag){case H:var u=t.type;t.pendingProps,l5(s,u);break;case P:var d=t.pendingProps;u5(s,d);break}break}case H:{var g=e.type,y=e.memoizedProps,E=e.stateNode;switch(t.tag){case H:{var _=t.type,O=t.pendingProps,I=(e.mode&Ht)!==ht;d5(g,y,E,_,O,I);break}case P:{var re=t.pendingProps,J=(e.mode&Ht)!==ht;h5(g,y,E,re,J);break}}break}case K:{var le=e.memoizedState,fe=le.dehydrated;if(fe!==null)switch(t.tag){case H:var me=t.type;t.pendingProps,c5(fe,me);break;case P:var qe=t.pendingProps;f5(fe,qe);break}break}default:return}}}function zb(e,t){t.flags=t.flags&~Li|Xr,wE(e,t)}function qb(e,t){switch(e.tag){case H:{var s=e.type;e.pendingProps;var u=j3(t,s);return u!==null?(e.stateNode=u,wi=e,Ms=W3(u),!0):!1}case P:{var d=e.pendingProps,g=z3(t,d);return g!==null?(e.stateNode=g,wi=e,Ms=null,!0):!1}case K:{var y=q3(t);if(y!==null){var E={dehydrated:y,treeContext:D5(),retryLane:qi};e.memoizedState=E;var _=H9(y);return _.return=e,e.child=_,wi=e,Ms=null,!0}return!1}default:return!1}}function bE(e){return(e.mode&Ht)!==ht&&(e.flags&ft)===dt}function _E(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function DE(e){if(lo){var t=Ms;if(!t){bE(e)&&(wE(wi,e),_E()),zb(wi,e),lo=!1,wi=e;return}var s=t;if(!qb(e,t)){bE(e)&&(wE(wi,e),_E()),t=Ap(s);var u=wi;if(!t||!qb(e,t)){zb(wi,e),lo=!1,wi=e;return}jb(u,s)}}}function O5(e,t,s){var u=e.stateNode,d=!Hf,g=Q3(u,e.type,e.memoizedProps,t,s,e,d);return e.updateQueue=g,g!==null}function B5(e){var t=e.stateNode,s=e.memoizedProps,u=Z3(t,s,e);if(u){var d=wi;if(d!==null)switch(d.tag){case R:{var g=d.stateNode.containerInfo,y=(d.mode&Ht)!==ht;n5(g,t,s,y);break}case H:{var E=d.type,_=d.memoizedProps,O=d.stateNode,I=(d.mode&Ht)!==ht;i5(E,_,O,t,s,I);break}}}return u}function M5(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");X3(s,e)}function N5(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return J3(s)}function Yb(e){for(var t=e.return;t!==null&&t.tag!==H&&t.tag!==R&&t.tag!==K;)t=t.return;wi=t}function Pm(e){if(e!==wi)return!1;if(!lo)return Yb(e),lo=!0,!1;if(e.tag!==R&&(e.tag!==H||r5(e.type)&&!oE(e.type,e.memoizedProps))){var t=Ms;if(t)if(bE(e))Vb(e),_E();else for(;t;)jb(e,t),t=Ap(t)}return Yb(e),e.tag===K?Ms=N5(e):Ms=wi?Ap(e.stateNode):null,!0}function H5(){return lo&&Ms!==null}function Vb(e){for(var t=Ms;t;)Ub(e,t),t=Ap(t)}function Dh(){wi=null,Ms=null,lo=!1,Hf=!1}function Wb(){uc!==null&&(LD(uc),uc=null)}function bi(){return lo}function TE(e){uc===null?uc=[e]:uc.push(e)}var I5=i.ReactCurrentBatchConfig,$5=null;function P5(){return I5.transition}var uo={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var L5=function(e){for(var t=null,s=e;s!==null;)s.mode&Rr&&(t=s),s=s.return;return t},If=function(e){var t=[];return e.forEach(function(s){t.push(s)}),t.sort().join(", ")},Bp=[],Mp=[],Np=[],Hp=[],Ip=[],$p=[],$f=new Set;uo.recordUnsafeLifecycleWarnings=function(e,t){$f.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Bp.push(e),e.mode&Rr&&typeof t.UNSAFE_componentWillMount=="function"&&Mp.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Np.push(e),e.mode&Rr&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Hp.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ip.push(e),e.mode&Rr&&typeof t.UNSAFE_componentWillUpdate=="function"&&$p.push(e))},uo.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Bp.length>0&&(Bp.forEach(function(J){e.add(_t(J)||"Component"),$f.add(J.type)}),Bp=[]);var t=new Set;Mp.length>0&&(Mp.forEach(function(J){t.add(_t(J)||"Component"),$f.add(J.type)}),Mp=[]);var s=new Set;Np.length>0&&(Np.forEach(function(J){s.add(_t(J)||"Component"),$f.add(J.type)}),Np=[]);var u=new Set;Hp.length>0&&(Hp.forEach(function(J){u.add(_t(J)||"Component"),$f.add(J.type)}),Hp=[]);var d=new Set;Ip.length>0&&(Ip.forEach(function(J){d.add(_t(J)||"Component"),$f.add(J.type)}),Ip=[]);var g=new Set;if($p.length>0&&($p.forEach(function(J){g.add(_t(J)||"Component"),$f.add(J.type)}),$p=[]),t.size>0){var y=If(t);v(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
99
|
+
*/function V1(e){if(!dr)return!1;var t="on"+e,s=t in document;if(!s){var u=document.createElement("div");u.setAttribute(t,"return;"),s=typeof u[t]=="function"}return s}function Af(){Re("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function fm(e,t,s,u){Pu(u);var d=gm(t,"onChange");if(d.length>0){var g=new Fs("onChange","change",null,s,u);e.push({event:g,listeners:d})}}var el=null,n=null;function a(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function c(e){var t=[];fm(t,n,e,B0(e)),wg(h,t)}function h(e){pb(e,0)}function m(e){var t=Ch(e);if(ys(t))return e}function x(e,t){if(e==="change")return t}var k=!1;dr&&(k=V1("input")&&(!document.documentMode||document.documentMode>9));function Y(e,t){el=e,n=t,el.attachEvent("onpropertychange",ce)}function Q(){el&&(el.detachEvent("onpropertychange",ce),el=null,n=null)}function ce(e){e.propertyName==="value"&&m(n)&&c(e)}function Fe(e,t,s){e==="focusin"?(Q(),Y(t,s)):e==="focusout"&&Q()}function Be(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return m(n)}function ke(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function Ke(e,t){if(e==="click")return m(t)}function at(e,t){if(e==="input"||e==="change")return m(t)}function lt(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||pt(e,"number",e.value)}function hn(e,t,s,u,d,g,y){var E=s?Ch(s):window,_,O;if(a(E)?_=x:Rf(E)?k?_=at:(_=Be,O=Fe):ke(E)&&(_=Ke),_){var I=_(t,s);if(I){fm(e,I,u,d);return}}O&&O(t,E,s),t==="focusout"&<(E)}function ne(){yt("onMouseEnter",["mouseout","mouseover"]),yt("onMouseLeave",["mouseout","mouseover"]),yt("onPointerEnter",["pointerout","pointerover"]),yt("onPointerLeave",["pointerout","pointerover"])}function te(e,t,s,u,d,g,y){var E=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout";if(E&&!qc(u)){var O=u.relatedTarget||u.fromElement;if(O&&(Of(O)||Op(O)))return}if(!(!_&&!E)){var I;if(d.window===d)I=d;else{var re=d.ownerDocument;re?I=re.defaultView||re.parentWindow:I=window}var J,le;if(_){var fe=u.relatedTarget||u.toElement;if(J=s,le=fe?Of(fe):null,le!==null){var me=ia(le);(le!==me||le.tag!==H&&le.tag!==P)&&(le=null)}}else J=null,le=s;if(J!==le){var qe=up,vt="onMouseLeave",ct="onMouseEnter",Gt="mouse";(t==="pointerout"||t==="pointerover")&&(qe=im,vt="onPointerLeave",ct="onPointerEnter",Gt="pointer");var Ut=J==null?I:Ch(J),ie=le==null?I:Ch(le),ye=new qe(vt,Gt+"leave",J,u,d);ye.target=Ut,ye.relatedTarget=ie;var ae=null,Me=Of(d);if(Me===s){var Ze=new qe(ct,Gt+"enter",le,u,d);Ze.target=ie,Ze.relatedTarget=Ut,ae=Ze}Vk(e,ye,ae,J,le)}}}function se(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oe=typeof Object.is=="function"?Object.is:se;function st(e,t){if(Oe(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),u=Object.keys(t);if(s.length!==u.length)return!1;for(var d=0;d<s.length;d++){var g=s[d];if(!zr.call(t,g)||!Oe(e[g],t[g]))return!1}return!0}function mt(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Et(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function wt(e,t){for(var s=mt(e),u=0,d=0;s;){if(s.nodeType===Ks){if(d=u+s.textContent.length,u<=t&&d>=t)return{node:s,offset:t-u};u=d}s=mt(Et(s))}}function Un(e){var t=e.ownerDocument,s=t&&t.defaultView||window,u=s.getSelection&&s.getSelection();if(!u||u.rangeCount===0)return null;var d=u.anchorNode,g=u.anchorOffset,y=u.focusNode,E=u.focusOffset;try{d.nodeType,y.nodeType}catch{return null}return ur(e,d,g,y,E)}function ur(e,t,s,u,d){var g=0,y=-1,E=-1,_=0,O=0,I=e,re=null;e:for(;;){for(var J=null;I===t&&(s===0||I.nodeType===Ks)&&(y=g+s),I===u&&(d===0||I.nodeType===Ks)&&(E=g+d),I.nodeType===Ks&&(g+=I.nodeValue.length),(J=I.firstChild)!==null;)re=I,I=J;for(;;){if(I===e)break e;if(re===t&&++_===s&&(y=g),re===u&&++O===d&&(E=g),(J=I.nextSibling)!==null)break;I=re,re=I.parentNode}I=J}return y===-1||E===-1?null:{start:y,end:E}}function tl(e,t){var s=e.ownerDocument||document,u=s&&s.defaultView||window;if(u.getSelection){var d=u.getSelection(),g=e.textContent.length,y=Math.min(t.start,g),E=t.end===void 0?y:Math.min(t.end,g);if(!d.extend&&y>E){var _=E;E=y,y=_}var O=wt(e,y),I=wt(e,E);if(O&&I){if(d.rangeCount===1&&d.anchorNode===O.node&&d.anchorOffset===O.offset&&d.focusNode===I.node&&d.focusOffset===I.offset)return;var re=s.createRange();re.setStart(O.node,O.offset),d.removeAllRanges(),y>E?(d.addRange(re),d.extend(I.node,I.offset)):(re.setEnd(I.node,I.offset),d.addRange(re))}}}function dm(e){return e&&e.nodeType===Ks}function nb(e,t){return!e||!t?!1:e===t?!0:dm(e)?!1:dm(t)?nb(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function Rk(e){return e&&e.ownerDocument&&nb(e.ownerDocument.documentElement,e)}function Ak(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function ib(){for(var e=window,t=wa();t instanceof e.HTMLIFrameElement;){if(Ak(t))e=t.contentWindow;else return t;t=wa(e.document)}return t}function W1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kk(){var e=ib();return{focusedElem:e,selectionRange:W1(e)?Ok(e):null}}function Fk(e){var t=ib(),s=e.focusedElem,u=e.selectionRange;if(t!==s&&Rk(s)){u!==null&&W1(s)&&Bk(s,u);for(var d=[],g=s;g=g.parentNode;)g.nodeType===$i&&d.push({element:g,left:g.scrollLeft,top:g.scrollTop});typeof s.focus=="function"&&s.focus();for(var y=0;y<d.length;y++){var E=d[y];E.element.scrollLeft=E.left,E.element.scrollTop=E.top}}}function Ok(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=Un(e),t||{start:0,end:0}}function Bk(e,t){var s=t.start,u=t.end;u===void 0&&(u=s),"selectionStart"in e?(e.selectionStart=s,e.selectionEnd=Math.min(u,e.value.length)):tl(e,t)}var Mk=dr&&"documentMode"in document&&document.documentMode<=11;function Nk(){Re("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var gh=null,G1=null,xp=null,K1=!1;function Hk(e){if("selectionStart"in e&&W1(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,s=t.getSelection();return{anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}}function Ik(e){return e.window===e?e.document:e.nodeType===Qs?e:e.ownerDocument}function ab(e,t,s){var u=Ik(s);if(!(K1||gh==null||gh!==wa(u))){var d=Hk(gh);if(!xp||!st(xp,d)){xp=d;var g=gm(G1,"onSelect");if(g.length>0){var y=new Fs("onSelect","select",null,t,s);e.push({event:y,listeners:g}),y.target=gh}}}}function $k(e,t,s,u,d,g,y){var E=s?Ch(s):window;switch(t){case"focusin":(Rf(E)||E.contentEditable==="true")&&(gh=E,G1=s,xp=null);break;case"focusout":gh=null,G1=null,xp=null;break;case"mousedown":K1=!0;break;case"contextmenu":case"mouseup":case"dragend":K1=!1,ab(e,u,d);break;case"selectionchange":if(Mk)break;case"keydown":case"keyup":ab(e,u,d)}}function hm(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var mh={animationend:hm("Animation","AnimationEnd"),animationiteration:hm("Animation","AnimationIteration"),animationstart:hm("Animation","AnimationStart"),transitionend:hm("Transition","TransitionEnd")},Q1={},sb={};dr&&(sb=document.createElement("div").style,"AnimationEvent"in window||(delete mh.animationend.animation,delete mh.animationiteration.animation,delete mh.animationstart.animation),"TransitionEvent"in window||delete mh.transitionend.transition);function pm(e){if(Q1[e])return Q1[e];if(!mh[e])return e;var t=mh[e];for(var s in t)if(t.hasOwnProperty(s)&&s in sb)return Q1[e]=t[s];return e}var ob=pm("animationend"),lb=pm("animationiteration"),ub=pm("animationstart"),cb=pm("transitionend"),fb=new Map,db=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function nc(e,t){fb.set(e,t),Re(t,[e])}function Pk(){for(var e=0;e<db.length;e++){var t=db[e],s=t.toLowerCase(),u=t[0].toUpperCase()+t.slice(1);nc(s,"on"+u)}nc(ob,"onAnimationEnd"),nc(lb,"onAnimationIteration"),nc(ub,"onAnimationStart"),nc("dblclick","onDoubleClick"),nc("focusin","onFocus"),nc("focusout","onBlur"),nc(cb,"onTransitionEnd")}function Lk(e,t,s,u,d,g,y){var E=fb.get(t);if(E!==void 0){var _=Fs,O=t;switch(t){case"keypress":if(Zo(u)===0)return;case"keydown":case"keyup":_=nm;break;case"focusin":O="focus",_=ao;break;case"focusout":O="blur",_=ao;break;case"beforeblur":case"afterblur":_=ao;break;case"click":if(u.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=up;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=Jl;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=sm;break;case ob:case lb:case ub:_=Xg;break;case cb:_=Ba;break;case"scroll":_=Gi;break;case"wheel":_=z1;break;case"copy":case"cut":case"paste":_=lh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=im;break}var I=(g&ba)!==0;{var re=!I&&t==="scroll",J=qk(s,E,u.type,I,re);if(J.length>0){var le=new _(E,O,null,u,d);e.push({event:le,listeners:J})}}}}Pk(),ne(),Af(),Nk(),q1();function Uk(e,t,s,u,d,g,y){Lk(e,t,s,u,d,g);var E=(g&O0)===0;E&&(te(e,t,s,u,d),hn(e,t,s,u,d),$k(e,t,s,u,d),cm(e,t,s,u,d))}var Ep=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Z1=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Ep));function hb(e,t,s){var u=e.type||"unknown-event";e.currentTarget=s,Cs(u,t,void 0,e),e.currentTarget=null}function jk(e,t,s){var u;if(s)for(var d=t.length-1;d>=0;d--){var g=t[d],y=g.instance,E=g.currentTarget,_=g.listener;if(y!==u&&e.isPropagationStopped())return;hb(e,_,E),u=y}else for(var O=0;O<t.length;O++){var I=t[O],re=I.instance,J=I.currentTarget,le=I.listener;if(re!==u&&e.isPropagationStopped())return;hb(e,le,J),u=re}}function pb(e,t){for(var s=(t&ba)!==0,u=0;u<e.length;u++){var d=e[u],g=d.event,y=d.listeners;jk(g,y,s)}Wc()}function zk(e,t,s,u,d){var g=B0(s),y=[];Uk(y,e,u,s,g,t),pb(y,t)}function tn(e,t){Z1.has(e)||v('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var s=!1,u=x5(t),d=Wk(e);u.has(d)||(vb(t,e,gd,s),u.add(d))}function X1(e,t,s){Z1.has(e)&&!t&&v('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;t&&(u|=ba),vb(s,e,u,t)}var vm="_reactListening"+Math.random().toString(36).slice(2);function Cp(e){if(!e[vm]){e[vm]=!0,Ge.forEach(function(s){s!=="selectionchange"&&(Z1.has(s)||X1(s,!1,e),X1(s,!0,e))});var t=e.nodeType===Qs?e:e.ownerDocument;t!==null&&(t[vm]||(t[vm]=!0,X1("selectionchange",!1,t)))}}function vb(e,t,s,u,d){var g=Zn(e,t,s),y=void 0;Vc&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(y=!0),e=e,u?y!==void 0?lp(e,t,g,y):Wi(e,t,g):y!==void 0?Ju(e,t,g,y):wf(e,t,g)}function gb(e,t){return e===t||e.nodeType===mn&&e.parentNode===t}function J1(e,t,s,u,d){var g=u;if(!(t&F0)&&!(t&gd)){var y=d;if(u!==null){var E=u;e:for(;;){if(E===null)return;var _=E.tag;if(_===T||_===A){var O=E.stateNode.containerInfo;if(gb(O,y))break;if(_===A)for(var I=E.return;I!==null;){var re=I.tag;if(re===T||re===A){var J=I.stateNode.containerInfo;if(gb(J,y))return}I=I.return}for(;O!==null;){var le=Of(O);if(le===null)return;var fe=le.tag;if(fe===H||fe===P){E=g=le;continue e}O=O.parentNode}}E=E.return}}}wg(function(){return zk(e,t,s,g)})}function Sp(e,t,s){return{instance:e,listener:t,currentTarget:s}}function qk(e,t,s,u,d,g){for(var y=t!==null?t+"Capture":null,E=u?y:t,_=[],O=e,I=null;O!==null;){var re=O,J=re.stateNode,le=re.tag;if(le===H&&J!==null&&(I=J,E!==null)){var fe=$o(O,E);fe!=null&&_.push(Sp(O,fe,I))}if(d)break;O=O.return}return _}function gm(e,t){for(var s=t+"Capture",u=[],d=e;d!==null;){var g=d,y=g.stateNode,E=g.tag;if(E===H&&y!==null){var _=y,O=$o(d,s);O!=null&&u.unshift(Sp(d,O,_));var I=$o(d,t);I!=null&&u.push(Sp(d,I,_))}d=d.return}return u}function yh(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==H);return e||null}function Yk(e,t){for(var s=e,u=t,d=0,g=s;g;g=yh(g))d++;for(var y=0,E=u;E;E=yh(E))y++;for(;d-y>0;)s=yh(s),d--;for(;y-d>0;)u=yh(u),y--;for(var _=d;_--;){if(s===u||u!==null&&s===u.alternate)return s;s=yh(s),u=yh(u)}return null}function mb(e,t,s,u,d){for(var g=t._reactName,y=[],E=s;E!==null&&E!==u;){var _=E,O=_.alternate,I=_.stateNode,re=_.tag;if(O!==null&&O===u)break;if(re===H&&I!==null){var J=I;if(d){var le=$o(E,g);le!=null&&y.unshift(Sp(E,le,J))}else if(!d){var fe=$o(E,g);fe!=null&&y.push(Sp(E,fe,J))}}E=E.return}y.length!==0&&e.push({event:t,listeners:y})}function Vk(e,t,s,u,d){var g=u&&d?Yk(u,d):null;u!==null&&mb(e,t,u,g,!1),d!==null&&s!==null&&mb(e,s,d,g,!0)}function Wk(e,t){return e+"__bubble"}var Ma=!1,wp="dangerouslySetInnerHTML",mm="suppressContentEditableWarning",ic="suppressHydrationWarning",yb="autoFocus",kf="children",Ff="style",ym="__html",eE,xm,bp,xb,Em,Eb,Cb;eE={dialog:!0,webview:!0},xm=function(e,t){R0(e,t),pd(e,t),Eg(e,t,{registrationNameDependencies:ut,possibleRegistrationNames:Se})},Eb=dr&&!document.documentMode,bp=function(e,t,s){if(!Ma){var u=Cm(s),d=Cm(t);d!==u&&(Ma=!0,v("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(d),JSON.stringify(u)))}},xb=function(e){if(!Ma){Ma=!0;var t=[];e.forEach(function(s){t.push(s)}),v("Extra attributes from the server: %s",t)}},Em=function(e,t){t===!1?v("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):v("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},Cb=function(e,t){var s=e.namespaceURI===Gs?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return s.innerHTML=t,s.innerHTML};var Gk=/\r\n?/g,Kk=/\u0000|\uFFFD/g;function Cm(e){qr(e);var t=typeof e=="string"?e:""+e;return t.replace(Gk,`
|
|
100
|
+
`).replace(Kk,"")}function Sm(e,t,s,u){var d=Cm(t),g=Cm(e);if(g!==d&&(u&&(Ma||(Ma=!0,v('Text content did not match. Server: "%s" Client: "%s"',g,d))),s&&ge))throw new Error("Text content does not match server-rendered HTML.")}function Sb(e){return e.nodeType===Qs?e:e.ownerDocument}function Qk(){}function wm(e){e.onclick=Qk}function Zk(e,t,s,u,d){for(var g in u)if(u.hasOwnProperty(g)){var y=u[g];if(g===Ff)y&&Object.freeze(y),pg(t,y);else if(g===wp){var E=y?y[ym]:void 0;E!=null&&rg(t,E)}else if(g===kf)if(typeof y=="string"){var _=e!=="textarea"||y!=="";_&&Nu(t,y)}else typeof y=="number"&&Nu(t,""+y);else g===mm||g===ic||g===yb||(ut.hasOwnProperty(g)?y!=null&&(typeof y!="function"&&Em(g,y),g==="onScroll"&&tn("scroll",t)):y!=null&&Yn(t,g,y,d))}}function Xk(e,t,s,u){for(var d=0;d<t.length;d+=2){var g=t[d],y=t[d+1];g===Ff?pg(e,y):g===wp?rg(e,y):g===kf?Nu(e,y):Yn(e,g,y,u)}}function Jk(e,t,s,u){var d,g=Sb(s),y,E=u;if(E===Gs&&(E=C0(e)),E===Gs){if(d=Ho(e,t),!d&&e!==e.toLowerCase()&&v("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var _=g.createElement("div");_.innerHTML="<script><\/script>";var O=_.firstChild;y=_.removeChild(O)}else if(typeof t.is=="string")y=g.createElement(e,{is:t.is});else if(y=g.createElement(e),e==="select"){var I=y;t.multiple?I.multiple=!0:t.size&&(I.size=t.size)}}else y=g.createElementNS(E,e);return E===Gs&&!d&&Object.prototype.toString.call(y)==="[object HTMLUnknownElement]"&&!zr.call(eE,e)&&(eE[e]=!0,v("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),y}function e3(e,t){return Sb(t).createTextNode(e)}function t3(e,t,s,u){var d=Ho(t,s);xm(t,s);var g;switch(t){case"dialog":tn("cancel",e),tn("close",e),g=s;break;case"iframe":case"object":case"embed":tn("load",e),g=s;break;case"video":case"audio":for(var y=0;y<Ep.length;y++)tn(Ep[y],e);g=s;break;case"source":tn("error",e),g=s;break;case"img":case"image":case"link":tn("error",e),tn("load",e),g=s;break;case"details":tn("toggle",e),g=s;break;case"input":Ka(e,s),g=Mu(e,s),tn("invalid",e);break;case"option":Xt(e,s),g=s;break;case"select":Al(e,s),g=Ic(e,s),tn("invalid",e);break;case"textarea":y0(e,s),g=m0(e,s),tn("invalid",e);break;default:g=s}switch(dd(t,g),Zk(t,e,u,g,d),t){case"input":Ga(e),ue(e,s,!1);break;case"textarea":Ga(e),eg(e);break;case"option":Ir(e,s);break;case"select":v0(e,s);break;default:typeof g.onClick=="function"&&wm(e);break}}function r3(e,t,s,u,d){xm(t,u);var g=null,y,E;switch(t){case"input":y=Mu(e,s),E=Mu(e,u),g=[];break;case"select":y=Ic(e,s),E=Ic(e,u),g=[];break;case"textarea":y=m0(e,s),E=m0(e,u),g=[];break;default:y=s,E=u,typeof y.onClick!="function"&&typeof E.onClick=="function"&&wm(e);break}dd(t,E);var _,O,I=null;for(_ in y)if(!(E.hasOwnProperty(_)||!y.hasOwnProperty(_)||y[_]==null))if(_===Ff){var re=y[_];for(O in re)re.hasOwnProperty(O)&&(I||(I={}),I[O]="")}else _===wp||_===kf||_===mm||_===ic||_===yb||(ut.hasOwnProperty(_)?g||(g=[]):(g=g||[]).push(_,null));for(_ in E){var J=E[_],le=y!=null?y[_]:void 0;if(!(!E.hasOwnProperty(_)||J===le||J==null&&le==null))if(_===Ff)if(J&&Object.freeze(J),le){for(O in le)le.hasOwnProperty(O)&&(!J||!J.hasOwnProperty(O))&&(I||(I={}),I[O]="");for(O in J)J.hasOwnProperty(O)&&le[O]!==J[O]&&(I||(I={}),I[O]=J[O])}else I||(g||(g=[]),g.push(_,I)),I=J;else if(_===wp){var fe=J?J[ym]:void 0,me=le?le[ym]:void 0;fe!=null&&me!==fe&&(g=g||[]).push(_,fe)}else _===kf?(typeof J=="string"||typeof J=="number")&&(g=g||[]).push(_,""+J):_===mm||_===ic||(ut.hasOwnProperty(_)?(J!=null&&(typeof J!="function"&&Em(_,J),_==="onScroll"&&tn("scroll",e)),!g&&le!==J&&(g=[])):(g=g||[]).push(_,J))}return I&&(T1(I,E[Ff]),(g=g||[]).push(Ff,I)),g}function n3(e,t,s,u,d){s==="input"&&d.type==="radio"&&d.name!=null&&D(e,d);var g=Ho(s,u),y=Ho(s,d);switch(Xk(e,t,g,y),s){case"input":V(e,d);break;case"textarea":Jv(e,d);break;case"select":ud(e,d);break}}function i3(e){{var t=e.toLowerCase();return jc.hasOwnProperty(t)&&jc[t]||null}}function a3(e,t,s,u,d,g,y){var E,_;switch(E=Ho(t,s),xm(t,s),t){case"dialog":tn("cancel",e),tn("close",e);break;case"iframe":case"object":case"embed":tn("load",e);break;case"video":case"audio":for(var O=0;O<Ep.length;O++)tn(Ep[O],e);break;case"source":tn("error",e);break;case"img":case"image":case"link":tn("error",e),tn("load",e);break;case"details":tn("toggle",e);break;case"input":Ka(e,s),tn("invalid",e);break;case"option":Xt(e,s);break;case"select":Al(e,s),tn("invalid",e);break;case"textarea":y0(e,s),tn("invalid",e);break}dd(t,s);{_=new Set;for(var I=e.attributes,re=0;re<I.length;re++){var J=I[re].name.toLowerCase();switch(J){case"value":break;case"checked":break;case"selected":break;default:_.add(I[re].name)}}}var le=null;for(var fe in s)if(s.hasOwnProperty(fe)){var me=s[fe];if(fe===kf)typeof me=="string"?e.textContent!==me&&(s[ic]!==!0&&Sm(e.textContent,me,g,y),le=[kf,me]):typeof me=="number"&&e.textContent!==""+me&&(s[ic]!==!0&&Sm(e.textContent,me,g,y),le=[kf,""+me]);else if(ut.hasOwnProperty(fe))me!=null&&(typeof me!="function"&&Em(fe,me),fe==="onScroll"&&tn("scroll",e));else if(y&&typeof E=="boolean"){var qe=void 0,vt=wr(fe);if(s[ic]!==!0){if(!(fe===mm||fe===ic||fe==="value"||fe==="checked"||fe==="selected")){if(fe===wp){var ct=e.innerHTML,Gt=me?me[ym]:void 0;if(Gt!=null){var Ut=Cb(e,Gt);Ut!==ct&&bp(fe,ct,Ut)}}else if(fe===Ff){if(_.delete(fe),Eb){var ie=_1(me);qe=e.getAttribute("style"),ie!==qe&&bp(fe,qe,ie)}}else if(E&&!$)_.delete(fe.toLowerCase()),qe=hs(e,fe,me),me!==qe&&bp(fe,qe,me);else if(!Nr(fe,vt,E)&&!gn(fe,me,vt,E)){var ye=!1;if(vt!==null)_.delete(vt.attributeName),qe=ds(e,fe,me,vt);else{var ae=u;if(ae===Gs&&(ae=C0(t)),ae===Gs)_.delete(fe.toLowerCase());else{var Me=i3(fe);Me!==null&&Me!==fe&&(ye=!0,_.delete(Me)),_.delete(fe)}qe=hs(e,fe,me)}var Ze=$;!Ze&&me!==qe&&!ye&&bp(fe,qe,me)}}}}}switch(y&&_.size>0&&s[ic]!==!0&&xb(_),t){case"input":Ga(e),ue(e,s,!0);break;case"textarea":Ga(e),eg(e);break;case"select":case"option":break;default:typeof s.onClick=="function"&&wm(e);break}return le}function s3(e,t,s){var u=e.nodeValue!==t;return u}function tE(e,t){{if(Ma)return;Ma=!0,v("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function rE(e,t){{if(Ma)return;Ma=!0,v('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function nE(e,t,s){{if(Ma)return;Ma=!0,v("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function iE(e,t){{if(t===""||Ma)return;Ma=!0,v('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function o3(e,t,s){switch(t){case"input":ve(e,s);return;case"textarea":C1(e,s);return;case"select":g0(e,s);return}}var _p=function(){},Dp=function(){};{var l3=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],wb=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],u3=wb.concat(["button"]),c3=["dd","dt","li","option","optgroup","p","rp","rt"],bb={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Dp=function(e,t){var s=Bt({},e||bb),u={tag:t};return wb.indexOf(t)!==-1&&(s.aTagInScope=null,s.buttonTagInScope=null,s.nobrTagInScope=null),u3.indexOf(t)!==-1&&(s.pTagInButtonScope=null),l3.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(s.listItemTagAutoclosing=null,s.dlItemTagAutoclosing=null),s.current=u,t==="form"&&(s.formTag=u),t==="a"&&(s.aTagInScope=u),t==="button"&&(s.buttonTagInScope=u),t==="nobr"&&(s.nobrTagInScope=u),t==="p"&&(s.pTagInButtonScope=u),t==="li"&&(s.listItemTagAutoclosing=u),(t==="dd"||t==="dt")&&(s.dlItemTagAutoclosing=u),s};var f3=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return c3.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},d3=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},_b={};_p=function(e,t,s){s=s||bb;var u=s.current,d=u&&u.tag;t!=null&&(e!=null&&v("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var g=f3(e,d)?null:u,y=g?null:d3(e,s),E=g||y;if(E){var _=E.tag,O=!!g+"|"+e+"|"+_;if(!_b[O]){_b[O]=!0;var I=e,re="";if(e==="#text"?/\S/.test(t)?I="Text nodes":(I="Whitespace text nodes",re=" Make sure you don't have any extra whitespace between tags on each line of your source code."):I="<"+e+">",g){var J="";_==="table"&&e==="tr"&&(J+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),v("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",I,_,re,J)}else v("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",I,_)}}}}var bm="suppressHydrationWarning",_m="$",Dm="/$",Tp="$?",Rp="$!",h3="style",aE=null,sE=null;function p3(e){var t,s,u=e.nodeType;switch(u){case Qs:case w0:{t=u===Qs?"#document":"#fragment";var d=e.documentElement;s=d?d.namespaceURI:S0(null,"");break}default:{var g=u===mn?e.parentNode:e,y=g.namespaceURI||null;t=g.tagName,s=S0(y,t);break}}{var E=t.toLowerCase(),_=Dp(null,E);return{namespace:s,ancestorInfo:_}}}function v3(e,t,s){{var u=e,d=S0(u.namespace,t),g=Dp(u.ancestorInfo,t);return{namespace:d,ancestorInfo:g}}}function gO(e){return e}function g3(e){aE=wn(),sE=kk();var t=null;return Mn(!1),t}function m3(e){Fk(sE),Mn(aE),aE=null,sE=null}function y3(e,t,s,u,d){var g;{var y=u;if(_p(e,null,y.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var E=""+t.children,_=Dp(y.ancestorInfo,e);_p(null,E,_)}g=y.namespace}var O=Jk(e,t,s,g);return Fp(d,O),pE(O,t),O}function x3(e,t){e.appendChild(t)}function E3(e,t,s,u,d){switch(t3(e,t,s,u),t){case"button":case"input":case"select":case"textarea":return!!s.autoFocus;case"img":return!0;default:return!1}}function C3(e,t,s,u,d,g){{var y=g;if(typeof u.children!=typeof s.children&&(typeof u.children=="string"||typeof u.children=="number")){var E=""+u.children,_=Dp(y.ancestorInfo,t);_p(null,E,_)}}return r3(e,t,s,u)}function oE(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function S3(e,t,s,u){{var d=s;_p(null,e,d.ancestorInfo)}var g=e3(e,t);return Fp(u,g),g}function w3(){var e=window.event;return e===void 0?ka:ah(e.type)}var lE=typeof setTimeout=="function"?setTimeout:void 0,b3=typeof clearTimeout=="function"?clearTimeout:void 0,uE=-1,Db=typeof Promise=="function"?Promise:void 0,_3=typeof queueMicrotask=="function"?queueMicrotask:typeof Db<"u"?function(e){return Db.resolve(null).then(e).catch(D3)}:lE;function D3(e){setTimeout(function(){throw e})}function T3(e,t,s,u){switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&e.focus();return;case"img":{s.src&&(e.src=s.src);return}}}function R3(e,t,s,u,d,g){n3(e,t,s,u,d),pE(e,d)}function Tb(e){Nu(e,"")}function A3(e,t,s){e.nodeValue=s}function k3(e,t){e.appendChild(t)}function F3(e,t){var s;e.nodeType===mn?(s=e.parentNode,s.insertBefore(t,e)):(s=e,s.appendChild(t));var u=e._reactRootContainer;u==null&&s.onclick===null&&wm(s)}function O3(e,t,s){e.insertBefore(t,s)}function B3(e,t,s){e.nodeType===mn?e.parentNode.insertBefore(t,s):e.insertBefore(t,s)}function M3(e,t){e.removeChild(t)}function N3(e,t){e.nodeType===mn?e.parentNode.removeChild(t):e.removeChild(t)}function cE(e,t){var s=t,u=0;do{var d=s.nextSibling;if(e.removeChild(s),d&&d.nodeType===mn){var g=d.data;if(g===Dm)if(u===0){e.removeChild(d),Ql(t);return}else u--;else(g===_m||g===Tp||g===Rp)&&u++}s=d}while(s);Ql(t)}function H3(e,t){e.nodeType===mn?cE(e.parentNode,t):e.nodeType===$i&&cE(e,t),Ql(e)}function I3(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function $3(e){e.nodeValue=""}function P3(e,t){e=e;var s=t[h3],u=s!=null&&s.hasOwnProperty("display")?s.display:null;e.style.display=fd("display",u)}function L3(e,t){e.nodeValue=t}function U3(e){e.nodeType===$i?e.textContent="":e.nodeType===Qs&&e.documentElement&&e.removeChild(e.documentElement)}function j3(e,t,s){return e.nodeType!==$i||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function z3(e,t){return t===""||e.nodeType!==Ks?null:e}function q3(e){return e.nodeType!==mn?null:e}function Rb(e){return e.data===Tp}function fE(e){return e.data===Rp}function Y3(e){var t=e.nextSibling&&e.nextSibling.dataset,s,u,d;return t&&(s=t.dgst,u=t.msg,d=t.stck),{message:u,digest:s,stack:d}}function V3(e,t){e._reactRetry=t}function Tm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===$i||t===Ks)break;if(t===mn){var s=e.data;if(s===_m||s===Rp||s===Tp)break;if(s===Dm)return null}}return e}function Ap(e){return Tm(e.nextSibling)}function W3(e){return Tm(e.firstChild)}function G3(e){return Tm(e.firstChild)}function K3(e){return Tm(e.nextSibling)}function Q3(e,t,s,u,d,g,y){Fp(g,e),pE(e,s);var E;{var _=d;E=_.namespace}var O=(g.mode&Ht)!==ht;return a3(e,t,s,E,u,O,y)}function Z3(e,t,s,u){return Fp(s,e),s.mode&Ht,s3(e,t)}function X3(e,t){Fp(t,e)}function J3(e){for(var t=e.nextSibling,s=0;t;){if(t.nodeType===mn){var u=t.data;if(u===Dm){if(s===0)return Ap(t);s--}else(u===_m||u===Rp||u===Tp)&&s++}t=t.nextSibling}return null}function Ab(e){for(var t=e.previousSibling,s=0;t;){if(t.nodeType===mn){var u=t.data;if(u===_m||u===Rp||u===Tp){if(s===0)return t;s--}else u===Dm&&s++}t=t.previousSibling}return null}function e5(e){Ql(e)}function t5(e){Ql(e)}function r5(e){return e!=="head"&&e!=="body"}function n5(e,t,s,u){var d=!0;Sm(t.nodeValue,s,u,d)}function i5(e,t,s,u,d,g){if(t[bm]!==!0){var y=!0;Sm(u.nodeValue,d,g,y)}}function a5(e,t){t.nodeType===$i?tE(e,t):t.nodeType===mn||rE(e,t)}function s5(e,t){{var s=e.parentNode;s!==null&&(t.nodeType===$i?tE(s,t):t.nodeType===mn||rE(s,t))}}function o5(e,t,s,u,d){(d||t[bm]!==!0)&&(u.nodeType===$i?tE(s,u):u.nodeType===mn||rE(s,u))}function l5(e,t,s){nE(e,t)}function u5(e,t){iE(e,t)}function c5(e,t,s){{var u=e.parentNode;u!==null&&nE(u,t)}}function f5(e,t){{var s=e.parentNode;s!==null&&iE(s,t)}}function d5(e,t,s,u,d,g){(g||t[bm]!==!0)&&nE(s,u)}function h5(e,t,s,u,d){(d||t[bm]!==!0)&&iE(s,u)}function p5(e){v("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function v5(e){Cp(e)}var xh=Math.random().toString(36).slice(2),Eh="__reactFiber$"+xh,dE="__reactProps$"+xh,kp="__reactContainer$"+xh,hE="__reactEvents$"+xh,g5="__reactListeners$"+xh,m5="__reactHandles$"+xh;function y5(e){delete e[Eh],delete e[dE],delete e[hE],delete e[g5],delete e[m5]}function Fp(e,t){t[Eh]=e}function Rm(e,t){t[kp]=e}function kb(e){e[kp]=null}function Op(e){return!!e[kp]}function Of(e){var t=e[Eh];if(t)return t;for(var s=e.parentNode;s;){if(t=s[kp]||s[Eh],t){var u=t.alternate;if(t.child!==null||u!==null&&u.child!==null)for(var d=Ab(e);d!==null;){var g=d[Eh];if(g)return g;d=Ab(d)}return t}e=s,s=e.parentNode}return null}function ac(e){var t=e[Eh]||e[kp];return t&&(t.tag===H||t.tag===P||t.tag===K||t.tag===T)?t:null}function Ch(e){if(e.tag===H||e.tag===P)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Am(e){return e[dE]||null}function pE(e,t){e[dE]=t}function x5(e){var t=e[hE];return t===void 0&&(t=e[hE]=new Set),t}var Fb={},Ob=i.ReactDebugCurrentFrame;function km(e){if(e){var t=e._owner,s=Ys(e.type,e._source,t?t.type:null);Ob.setExtraStackFrame(s)}else Ob.setExtraStackFrame(null)}function oo(e,t,s,u,d){{var g=Function.call.bind(zr);for(var y in e)if(g(e,y)){var E=void 0;try{if(typeof e[y]!="function"){var _=Error((u||"React class")+": "+s+" type `"+y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}E=e[y](t,y,u,s,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(O){E=O}E&&!(E instanceof Error)&&(km(d),v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",s,y,typeof E),km(null)),E instanceof Error&&!(E.message in Fb)&&(Fb[E.message]=!0,km(d),v("Failed %s type: %s",s,E.message),km(null))}}}var vE=[],Fm;Fm=[];var ru=-1;function sc(e){return{current:e}}function Ki(e,t){if(ru<0){v("Unexpected pop.");return}t!==Fm[ru]&&v("Unexpected Fiber popped."),e.current=vE[ru],vE[ru]=null,Fm[ru]=null,ru--}function Qi(e,t,s){ru++,vE[ru]=e.current,Fm[ru]=s,e.current=t}var gE;gE={};var rs={};Object.freeze(rs);var nu=sc(rs),rl=sc(!1),mE=rs;function Sh(e,t,s){return s&&nl(t)?mE:nu.current}function Bb(e,t,s){{var u=e.stateNode;u.__reactInternalMemoizedUnmaskedChildContext=t,u.__reactInternalMemoizedMaskedChildContext=s}}function wh(e,t){{var s=e.type,u=s.contextTypes;if(!u)return rs;var d=e.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===t)return d.__reactInternalMemoizedMaskedChildContext;var g={};for(var y in u)g[y]=t[y];{var E=_t(e)||"Unknown";oo(u,g,"context",E)}return d&&Bb(e,t,g),g}}function Om(){return rl.current}function nl(e){{var t=e.childContextTypes;return t!=null}}function Bm(e){Ki(rl,e),Ki(nu,e)}function yE(e){Ki(rl,e),Ki(nu,e)}function Mb(e,t,s){{if(nu.current!==rs)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Qi(nu,t,e),Qi(rl,s,e)}}function Nb(e,t,s){{var u=e.stateNode,d=t.childContextTypes;if(typeof u.getChildContext!="function"){{var g=_t(e)||"Unknown";gE[g]||(gE[g]=!0,v("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",g,g))}return s}var y=u.getChildContext();for(var E in y)if(!(E in d))throw new Error((_t(e)||"Unknown")+'.getChildContext(): key "'+E+'" is not defined in childContextTypes.');{var _=_t(e)||"Unknown";oo(d,y,"child context",_)}return Bt({},s,y)}}function Mm(e){{var t=e.stateNode,s=t&&t.__reactInternalMemoizedMergedChildContext||rs;return mE=nu.current,Qi(nu,s,e),Qi(rl,rl.current,e),!0}}function Hb(e,t,s){{var u=e.stateNode;if(!u)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(s){var d=Nb(e,t,mE);u.__reactInternalMemoizedMergedChildContext=d,Ki(rl,e),Ki(nu,e),Qi(nu,d,e),Qi(rl,s,e)}else Ki(rl,e),Qi(rl,s,e)}}function E5(e){{if(!Hl(e)||e.tag!==C)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case T:return t.stateNode.context;case C:{var s=t.type;if(nl(s))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var oc=0,Nm=1,iu=null,xE=!1,EE=!1;function Ib(e){iu===null?iu=[e]:iu.push(e)}function C5(e){xE=!0,Ib(e)}function $b(){xE&&lc()}function lc(){if(!EE&&iu!==null){EE=!0;var e=0,t=Oa();try{var s=!0,u=iu;for(Sn(xi);e<u.length;e++){var d=u[e];do d=d(s);while(d!==null)}iu=null,xE=!1}catch(g){throw iu!==null&&(iu=iu.slice(e+1)),N0(Qc,lc),g}finally{Sn(t),EE=!1}}return null}var bh=[],_h=0,Hm=null,Im=0,Os=[],Bs=0,Bf=null,au=1,su="";function S5(e){return Nf(),(e.flags&Ss)!==dt}function w5(e){return Nf(),Im}function b5(){var e=su,t=au,s=t&~_5(t);return s.toString(32)+e}function Mf(e,t){Nf(),bh[_h++]=Im,bh[_h++]=Hm,Hm=e,Im=t}function Pb(e,t,s){Nf(),Os[Bs++]=au,Os[Bs++]=su,Os[Bs++]=Bf,Bf=e;var u=au,d=su,g=$m(u)-1,y=u&~(1<<g),E=s+1,_=$m(t)+g;if(_>30){var O=g-g%5,I=(1<<O)-1,re=(y&I).toString(32),J=y>>O,le=g-O,fe=$m(t)+le,me=E<<le,qe=me|J,vt=re+d;au=1<<fe|qe,su=vt}else{var ct=E<<g,Gt=ct|y,Ut=d;au=1<<_|Gt,su=Ut}}function CE(e){Nf();var t=e.return;if(t!==null){var s=1,u=0;Mf(e,s),Pb(e,s,u)}}function $m(e){return 32-En(e)}function _5(e){return 1<<$m(e)-1}function SE(e){for(;e===Hm;)Hm=bh[--_h],bh[_h]=null,Im=bh[--_h],bh[_h]=null;for(;e===Bf;)Bf=Os[--Bs],Os[Bs]=null,su=Os[--Bs],Os[Bs]=null,au=Os[--Bs],Os[Bs]=null}function D5(){return Nf(),Bf!==null?{id:au,overflow:su}:null}function T5(e,t){Nf(),Os[Bs++]=au,Os[Bs++]=su,Os[Bs++]=Bf,au=t.id,su=t.overflow,Bf=e}function Nf(){bi()||v("Expected to be hydrating. This is a bug in React. Please file an issue.")}var wi=null,Ms=null,lo=!1,Hf=!1,uc=null;function R5(){lo&&v("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Lb(){Hf=!0}function A5(){return Hf}function k5(e){var t=e.stateNode.containerInfo;return Ms=G3(t),wi=e,lo=!0,uc=null,Hf=!1,!0}function F5(e,t,s){return Ms=K3(t),wi=e,lo=!0,uc=null,Hf=!1,s!==null&&T5(e,s),!0}function Ub(e,t){switch(e.tag){case T:{a5(e.stateNode.containerInfo,t);break}case H:{var s=(e.mode&Ht)!==ht;o5(e.type,e.memoizedProps,e.stateNode,t,s);break}case K:{var u=e.memoizedState;u.dehydrated!==null&&s5(u.dehydrated,t);break}}}function jb(e,t){Ub(e,t);var s=N9();s.stateNode=t,s.return=e;var u=e.deletions;u===null?(e.deletions=[s],e.flags|=_a):u.push(s)}function wE(e,t){{if(Hf)return;switch(e.tag){case T:{var s=e.stateNode.containerInfo;switch(t.tag){case H:var u=t.type;t.pendingProps,l5(s,u);break;case P:var d=t.pendingProps;u5(s,d);break}break}case H:{var g=e.type,y=e.memoizedProps,E=e.stateNode;switch(t.tag){case H:{var _=t.type,O=t.pendingProps,I=(e.mode&Ht)!==ht;d5(g,y,E,_,O,I);break}case P:{var re=t.pendingProps,J=(e.mode&Ht)!==ht;h5(g,y,E,re,J);break}}break}case K:{var le=e.memoizedState,fe=le.dehydrated;if(fe!==null)switch(t.tag){case H:var me=t.type;t.pendingProps,c5(fe,me);break;case P:var qe=t.pendingProps;f5(fe,qe);break}break}default:return}}}function zb(e,t){t.flags=t.flags&~Li|Xr,wE(e,t)}function qb(e,t){switch(e.tag){case H:{var s=e.type;e.pendingProps;var u=j3(t,s);return u!==null?(e.stateNode=u,wi=e,Ms=W3(u),!0):!1}case P:{var d=e.pendingProps,g=z3(t,d);return g!==null?(e.stateNode=g,wi=e,Ms=null,!0):!1}case K:{var y=q3(t);if(y!==null){var E={dehydrated:y,treeContext:D5(),retryLane:qi};e.memoizedState=E;var _=H9(y);return _.return=e,e.child=_,wi=e,Ms=null,!0}return!1}default:return!1}}function bE(e){return(e.mode&Ht)!==ht&&(e.flags&ft)===dt}function _E(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function DE(e){if(lo){var t=Ms;if(!t){bE(e)&&(wE(wi,e),_E()),zb(wi,e),lo=!1,wi=e;return}var s=t;if(!qb(e,t)){bE(e)&&(wE(wi,e),_E()),t=Ap(s);var u=wi;if(!t||!qb(e,t)){zb(wi,e),lo=!1,wi=e;return}jb(u,s)}}}function O5(e,t,s){var u=e.stateNode,d=!Hf,g=Q3(u,e.type,e.memoizedProps,t,s,e,d);return e.updateQueue=g,g!==null}function B5(e){var t=e.stateNode,s=e.memoizedProps,u=Z3(t,s,e);if(u){var d=wi;if(d!==null)switch(d.tag){case T:{var g=d.stateNode.containerInfo,y=(d.mode&Ht)!==ht;n5(g,t,s,y);break}case H:{var E=d.type,_=d.memoizedProps,O=d.stateNode,I=(d.mode&Ht)!==ht;i5(E,_,O,t,s,I);break}}}return u}function M5(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");X3(s,e)}function N5(e){var t=e.memoizedState,s=t!==null?t.dehydrated:null;if(!s)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return J3(s)}function Yb(e){for(var t=e.return;t!==null&&t.tag!==H&&t.tag!==T&&t.tag!==K;)t=t.return;wi=t}function Pm(e){if(e!==wi)return!1;if(!lo)return Yb(e),lo=!0,!1;if(e.tag!==T&&(e.tag!==H||r5(e.type)&&!oE(e.type,e.memoizedProps))){var t=Ms;if(t)if(bE(e))Vb(e),_E();else for(;t;)jb(e,t),t=Ap(t)}return Yb(e),e.tag===K?Ms=N5(e):Ms=wi?Ap(e.stateNode):null,!0}function H5(){return lo&&Ms!==null}function Vb(e){for(var t=Ms;t;)Ub(e,t),t=Ap(t)}function Dh(){wi=null,Ms=null,lo=!1,Hf=!1}function Wb(){uc!==null&&(LD(uc),uc=null)}function bi(){return lo}function TE(e){uc===null?uc=[e]:uc.push(e)}var I5=i.ReactCurrentBatchConfig,$5=null;function P5(){return I5.transition}var uo={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var L5=function(e){for(var t=null,s=e;s!==null;)s.mode&Rr&&(t=s),s=s.return;return t},If=function(e){var t=[];return e.forEach(function(s){t.push(s)}),t.sort().join(", ")},Bp=[],Mp=[],Np=[],Hp=[],Ip=[],$p=[],$f=new Set;uo.recordUnsafeLifecycleWarnings=function(e,t){$f.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Bp.push(e),e.mode&Rr&&typeof t.UNSAFE_componentWillMount=="function"&&Mp.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Np.push(e),e.mode&Rr&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&Hp.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Ip.push(e),e.mode&Rr&&typeof t.UNSAFE_componentWillUpdate=="function"&&$p.push(e))},uo.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Bp.length>0&&(Bp.forEach(function(J){e.add(_t(J)||"Component"),$f.add(J.type)}),Bp=[]);var t=new Set;Mp.length>0&&(Mp.forEach(function(J){t.add(_t(J)||"Component"),$f.add(J.type)}),Mp=[]);var s=new Set;Np.length>0&&(Np.forEach(function(J){s.add(_t(J)||"Component"),$f.add(J.type)}),Np=[]);var u=new Set;Hp.length>0&&(Hp.forEach(function(J){u.add(_t(J)||"Component"),$f.add(J.type)}),Hp=[]);var d=new Set;Ip.length>0&&(Ip.forEach(function(J){d.add(_t(J)||"Component"),$f.add(J.type)}),Ip=[]);var g=new Set;if($p.length>0&&($p.forEach(function(J){g.add(_t(J)||"Component"),$f.add(J.type)}),$p=[]),t.size>0){var y=If(t);v(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
101
101
|
|
|
102
102
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
103
103
|
|
|
@@ -136,7 +136,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`,d)}
|
|
|
136
136
|
1. You may be adding a ref to a function component
|
|
137
137
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
138
138
|
3. You have multiple copies of React loaded
|
|
139
|
-
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return u}function Um(e,t){var s=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function jm(e){{var t=_t(e)||"Component";if(OE[t])return;OE[t]=!0,v("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function Qb(e){var t=e._payload,s=e._init;return s(t)}function Zb(e){function t(ie,ye){if(e){var ae=ie.deletions;ae===null?(ie.deletions=[ye],ie.flags|=_a):ae.push(ye)}}function s(ie,ye){if(!e)return null;for(var ae=ye;ae!==null;)t(ie,ae),ae=ae.sibling;return null}function u(ie,ye){for(var ae=new Map,Me=ye;Me!==null;)Me.key!==null?ae.set(Me.key,Me):ae.set(Me.index,Me),Me=Me.sibling;return ae}function d(ie,ye){var ae=Wf(ie,ye);return ae.index=0,ae.sibling=null,ae}function g(ie,ye,ae){if(ie.index=ae,!e)return ie.flags|=Ss,ye;var Me=ie.alternate;if(Me!==null){var Ze=Me.index;return Ze<ye?(ie.flags|=Xr,ye):Ze}else return ie.flags|=Xr,ye}function y(ie){return e&&ie.alternate===null&&(ie.flags|=Xr),ie}function E(ie,ye,ae,Me){if(ye===null||ye.tag!==P){var Ze=T2(ae,ie.mode,Me);return Ze.return=ie,Ze}else{var We=d(ye,ae);return We.return=ie,We}}function _(ie,ye,ae,Me){var Ze=ae.type;if(Ze===kn)return I(ie,ye,ae.props.children,Me,ae.key);if(ye!==null&&(ye.elementType===Ze||rT(ye,ae)||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===Dt&&Qb(Ze)===ye.type)){var We=d(ye,ae.props);return We.ref=Pp(ie,ye,ae),We.return=ie,We._debugSource=ae._source,We._debugOwner=ae._owner,We}var St=D2(ae,ie.mode,Me);return St.ref=Pp(ie,ye,ae),St.return=ie,St}function O(ie,ye,ae,Me){if(ye===null||ye.tag!==T||ye.stateNode.containerInfo!==ae.containerInfo||ye.stateNode.implementation!==ae.implementation){var Ze=R2(ae,ie.mode,Me);return Ze.return=ie,Ze}else{var We=d(ye,ae.children||[]);return We.return=ie,We}}function I(ie,ye,ae,Me,Ze){if(ye===null||ye.tag!==j){var We=Ec(ae,ie.mode,Me,Ze);return We.return=ie,We}else{var St=d(ye,ae);return St.return=ie,St}}function re(ie,ye,ae){if(typeof ye=="string"&&ye!==""||typeof ye=="number"){var Me=T2(""+ye,ie.mode,ae);return Me.return=ie,Me}if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case In:{var Ze=D2(ye,ie.mode,ae);return Ze.ref=Pp(ie,null,ye),Ze.return=ie,Ze}case pr:{var We=R2(ye,ie.mode,ae);return We.return=ie,We}case Dt:{var St=ye._payload,At=ye._init;return re(ie,At(St),ae)}}if(Mt(ye)||Ft(ye)){var kr=Ec(ye,ie.mode,ae,null);return kr.return=ie,kr}Um(ie,ye)}return typeof ye=="function"&&jm(ie),null}function J(ie,ye,ae,Me){var Ze=ye!==null?ye.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return Ze!==null?null:E(ie,ye,""+ae,Me);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case In:return ae.key===Ze?_(ie,ye,ae,Me):null;case pr:return ae.key===Ze?O(ie,ye,ae,Me):null;case Dt:{var We=ae._payload,St=ae._init;return J(ie,ye,St(We),Me)}}if(Mt(ae)||Ft(ae))return Ze!==null?null:I(ie,ye,ae,Me,null);Um(ie,ae)}return typeof ae=="function"&&jm(ie),null}function le(ie,ye,ae,Me,Ze){if(typeof Me=="string"&&Me!==""||typeof Me=="number"){var We=ie.get(ae)||null;return E(ye,We,""+Me,Ze)}if(typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case In:{var St=ie.get(Me.key===null?ae:Me.key)||null;return _(ye,St,Me,Ze)}case pr:{var At=ie.get(Me.key===null?ae:Me.key)||null;return O(ye,At,Me,Ze)}case Dt:var kr=Me._payload,cr=Me._init;return le(ie,ye,ae,cr(kr),Ze)}if(Mt(Me)||Ft(Me)){var Nn=ie.get(ae)||null;return I(ye,Nn,Me,Ze,null)}Um(ye,Me)}return typeof Me=="function"&&jm(ye),null}function fe(ie,ye,ae){{if(typeof ie!="object"||ie===null)return ye;switch(ie.$$typeof){case In:case pr:Kb(ie,ae);var Me=ie.key;if(typeof Me!="string")break;if(ye===null){ye=new Set,ye.add(Me);break}if(!ye.has(Me)){ye.add(Me);break}v("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Me);break;case Dt:var Ze=ie._payload,We=ie._init;fe(We(Ze),ye,ae);break}}return ye}function me(ie,ye,ae,Me){for(var Ze=null,We=0;We<ae.length;We++){var St=ae[We];Ze=fe(St,Ze,ie)}for(var At=null,kr=null,cr=ye,Nn=0,fr=0,_n=null;cr!==null&&fr<ae.length;fr++){cr.index>fr?(_n=cr,cr=null):_n=cr.sibling;var Xi=J(ie,cr,ae[fr],Me);if(Xi===null){cr===null&&(cr=_n);break}e&&cr&&Xi.alternate===null&&t(ie,cr),Nn=g(Xi,Nn,fr),kr===null?At=Xi:kr.sibling=Xi,kr=Xi,cr=_n}if(fr===ae.length){if(s(ie,cr),bi()){var Fi=fr;Mf(ie,Fi)}return At}if(cr===null){for(;fr<ae.length;fr++){var is=re(ie,ae[fr],Me);is!==null&&(Nn=g(is,Nn,fr),kr===null?At=is:kr.sibling=is,kr=is)}if(bi()){var ha=fr;Mf(ie,ha)}return At}for(var pa=u(ie,cr);fr<ae.length;fr++){var Ji=le(pa,ie,fr,ae[fr],Me);Ji!==null&&(e&&Ji.alternate!==null&&pa.delete(Ji.key===null?fr:Ji.key),Nn=g(Ji,Nn,fr),kr===null?At=Ji:kr.sibling=Ji,kr=Ji)}if(e&&pa.forEach(function(Yh){return t(ie,Yh)}),bi()){var hu=fr;Mf(ie,hu)}return At}function qe(ie,ye,ae,Me){var Ze=Ft(ae);if(typeof Ze!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&ae[Symbol.toStringTag]==="Generator"&&(AE||v("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),AE=!0),ae.entries===Ze&&(RE||v("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),RE=!0);var We=Ze.call(ae);if(We)for(var St=null,At=We.next();!At.done;At=We.next()){var kr=At.value;St=fe(kr,St,ie)}}var cr=Ze.call(ae);if(cr==null)throw new Error("An iterable object provided no iterator.");for(var Nn=null,fr=null,_n=ye,Xi=0,Fi=0,is=null,ha=cr.next();_n!==null&&!ha.done;Fi++,ha=cr.next()){_n.index>Fi?(is=_n,_n=null):is=_n.sibling;var pa=J(ie,_n,ha.value,Me);if(pa===null){_n===null&&(_n=is);break}e&&_n&&pa.alternate===null&&t(ie,_n),Xi=g(pa,Xi,Fi),fr===null?Nn=pa:fr.sibling=pa,fr=pa,_n=is}if(ha.done){if(s(ie,_n),bi()){var Ji=Fi;Mf(ie,Ji)}return Nn}if(_n===null){for(;!ha.done;Fi++,ha=cr.next()){var hu=re(ie,ha.value,Me);hu!==null&&(Xi=g(hu,Xi,Fi),fr===null?Nn=hu:fr.sibling=hu,fr=hu)}if(bi()){var Yh=Fi;Mf(ie,Yh)}return Nn}for(var mv=u(ie,_n);!ha.done;Fi++,ha=cr.next()){var fl=le(mv,ie,Fi,ha.value,Me);fl!==null&&(e&&fl.alternate!==null&&mv.delete(fl.key===null?Fi:fl.key),Xi=g(fl,Xi,Fi),fr===null?Nn=fl:fr.sibling=fl,fr=fl)}if(e&&mv.forEach(function(hO){return t(ie,hO)}),bi()){var dO=Fi;Mf(ie,dO)}return Nn}function vt(ie,ye,ae,Me){if(ye!==null&&ye.tag===P){s(ie,ye.sibling);var Ze=d(ye,ae);return Ze.return=ie,Ze}s(ie,ye);var We=T2(ae,ie.mode,Me);return We.return=ie,We}function ct(ie,ye,ae,Me){for(var Ze=ae.key,We=ye;We!==null;){if(We.key===Ze){var St=ae.type;if(St===kn){if(We.tag===j){s(ie,We.sibling);var At=d(We,ae.props.children);return At.return=ie,At._debugSource=ae._source,At._debugOwner=ae._owner,At}}else if(We.elementType===St||rT(We,ae)||typeof St=="object"&&St!==null&&St.$$typeof===Dt&&Qb(St)===We.type){s(ie,We.sibling);var kr=d(We,ae.props);return kr.ref=Pp(ie,We,ae),kr.return=ie,kr._debugSource=ae._source,kr._debugOwner=ae._owner,kr}s(ie,We);break}else t(ie,We);We=We.sibling}if(ae.type===kn){var cr=Ec(ae.props.children,ie.mode,Me,ae.key);return cr.return=ie,cr}else{var Nn=D2(ae,ie.mode,Me);return Nn.ref=Pp(ie,ye,ae),Nn.return=ie,Nn}}function Gt(ie,ye,ae,Me){for(var Ze=ae.key,We=ye;We!==null;){if(We.key===Ze)if(We.tag===T&&We.stateNode.containerInfo===ae.containerInfo&&We.stateNode.implementation===ae.implementation){s(ie,We.sibling);var St=d(We,ae.children||[]);return St.return=ie,St}else{s(ie,We);break}else t(ie,We);We=We.sibling}var At=R2(ae,ie.mode,Me);return At.return=ie,At}function Ut(ie,ye,ae,Me){var Ze=typeof ae=="object"&&ae!==null&&ae.type===kn&&ae.key===null;if(Ze&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case In:return y(ct(ie,ye,ae,Me));case pr:return y(Gt(ie,ye,ae,Me));case Dt:var We=ae._payload,St=ae._init;return Ut(ie,ye,St(We),Me)}if(Mt(ae))return me(ie,ye,ae,Me);if(Ft(ae))return qe(ie,ye,ae,Me);Um(ie,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?y(vt(ie,ye,""+ae,Me)):(typeof ae=="function"&&jm(ie),s(ie,ye))}return Ut}var Th=Zb(!0),Xb=Zb(!1);function j5(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var s=t.child,u=Wf(s,s.pendingProps);for(t.child=u,u.return=t;s.sibling!==null;)s=s.sibling,u=u.sibling=Wf(s,s.pendingProps),u.return=t;u.sibling=null}}function z5(e,t){for(var s=e.child;s!==null;)k9(s,t),s=s.sibling}var BE=sc(null),ME;ME={};var zm=null,Rh=null,NE=null,qm=!1;function Ym(){zm=null,Rh=null,NE=null,qm=!1}function Jb(){qm=!0}function e_(){qm=!1}function t_(e,t,s){Qi(BE,t._currentValue,e),t._currentValue=s,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==ME&&v("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=ME}function HE(e,t){var s=BE.current;Ki(BE,t),e._currentValue=s}function IE(e,t,s){for(var u=e;u!==null;){var d=u.alternate;if(Kl(u.childLanes,t)?d!==null&&!Kl(d.childLanes,t)&&(d.childLanes=Ot(d.childLanes,t)):(u.childLanes=Ot(u.childLanes,t),d!==null&&(d.childLanes=Ot(d.childLanes,t))),u===s)break;u=u.return}u!==s&&v("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function q5(e,t,s){Y5(e,t,s)}function Y5(e,t,s){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=void 0,g=u.dependencies;if(g!==null){d=u.child;for(var y=g.firstContext;y!==null;){if(y.context===t){if(u.tag===C){var E=ff(s),_=ou(Br,E);_.tag=Wm;var O=u.updateQueue;if(O!==null){var I=O.shared,re=I.pending;re===null?_.next=_:(_.next=re.next,re.next=_),I.pending=_}}u.lanes=Ot(u.lanes,s);var J=u.alternate;J!==null&&(J.lanes=Ot(J.lanes,s)),IE(u.return,s,e),g.lanes=Ot(g.lanes,s);break}y=y.next}}else if(u.tag===M)d=u.type===e.type?null:u.child;else if(u.tag===Z){var le=u.return;if(le===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");le.lanes=Ot(le.lanes,s);var fe=le.alternate;fe!==null&&(fe.lanes=Ot(fe.lanes,s)),IE(le,s,e),d=u.sibling}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===e){d=null;break}var me=d.sibling;if(me!==null){me.return=d.return,d=me;break}d=d.return}u=d}}function Ah(e,t){zm=e,Rh=null,NE=null;var s=e.dependencies;if(s!==null){var u=s.firstContext;u!==null&&(Yi(s.lanes,t)&&ev(),s.firstContext=null)}}function jn(e){qm&&v("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(NE!==e){var s={context:e,memoizedValue:t,next:null};if(Rh===null){if(zm===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Rh=s,zm.dependencies={lanes:Ae,firstContext:s}}else Rh=Rh.next=s}return t}var Pf=null;function $E(e){Pf===null?Pf=[e]:Pf.push(e)}function V5(){if(Pf!==null){for(var e=0;e<Pf.length;e++){var t=Pf[e],s=t.interleaved;if(s!==null){t.interleaved=null;var u=s.next,d=t.pending;if(d!==null){var g=d.next;d.next=u,s.next=g}t.pending=s}}Pf=null}}function r_(e,t,s,u){var d=t.interleaved;return d===null?(s.next=s,$E(t)):(s.next=d.next,d.next=s),t.interleaved=s,Vm(e,u)}function W5(e,t,s,u){var d=t.interleaved;d===null?(s.next=s,$E(t)):(s.next=d.next,d.next=s),t.interleaved=s}function G5(e,t,s,u){var d=t.interleaved;return d===null?(s.next=s,$E(t)):(s.next=d.next,d.next=s),t.interleaved=s,Vm(e,u)}function Na(e,t){return Vm(e,t)}var K5=Vm;function Vm(e,t){e.lanes=Ot(e.lanes,t);var s=e.alternate;s!==null&&(s.lanes=Ot(s.lanes,t)),s===null&&(e.flags&(Xr|Li))!==dt&&XD(e);for(var u=e,d=e.return;d!==null;)d.childLanes=Ot(d.childLanes,t),s=d.alternate,s!==null?s.childLanes=Ot(s.childLanes,t):(d.flags&(Xr|Li))!==dt&&XD(e),u=d,d=d.return;if(u.tag===R){var g=u.stateNode;return g}else return null}var n_=0,i_=1,Wm=2,PE=3,Gm=!1,LE,Km;LE=!1,Km=null;function UE(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Ae},effects:null};e.updateQueue=t}function a_(e,t){var s=t.updateQueue,u=e.updateQueue;if(s===u){var d={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects};t.updateQueue=d}}function ou(e,t){var s={eventTime:e,lane:t,tag:n_,payload:null,callback:null,next:null};return s}function cc(e,t,s){var u=e.updateQueue;if(u===null)return null;var d=u.shared;if(Km===d&&!LE&&(v("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),LE=!0),WF()){var g=d.pending;return g===null?t.next=t:(t.next=g.next,g.next=t),d.pending=t,K5(e,s)}else return G5(e,d,t,s)}function Qm(e,t,s){var u=t.updateQueue;if(u!==null){var d=u.shared;if(X0(s)){var g=d.lanes;g=ep(g,e.pendingLanes);var y=Ot(g,s);d.lanes=y,th(e,y)}}}function jE(e,t){var s=e.updateQueue,u=e.alternate;if(u!==null){var d=u.updateQueue;if(s===d){var g=null,y=null,E=s.firstBaseUpdate;if(E!==null){var _=E;do{var O={eventTime:_.eventTime,lane:_.lane,tag:_.tag,payload:_.payload,callback:_.callback,next:null};y===null?g=y=O:(y.next=O,y=O),_=_.next}while(_!==null);y===null?g=y=t:(y.next=t,y=t)}else g=y=t;s={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:y,shared:d.shared,effects:d.effects},e.updateQueue=s;return}}var I=s.lastBaseUpdate;I===null?s.firstBaseUpdate=t:I.next=t,s.lastBaseUpdate=t}function Q5(e,t,s,u,d,g){switch(s.tag){case i_:{var y=s.payload;if(typeof y=="function"){Jb();var E=y.call(g,u,d);{if(e.mode&Rr){Jr(!0);try{y.call(g,u,d)}finally{Jr(!1)}}e_()}return E}return y}case PE:e.flags=e.flags&~$n|ft;case n_:{var _=s.payload,O;if(typeof _=="function"){Jb(),O=_.call(g,u,d);{if(e.mode&Rr){Jr(!0);try{_.call(g,u,d)}finally{Jr(!1)}}e_()}}else O=_;return O==null?u:Bt({},u,O)}case Wm:return Gm=!0,u}return u}function Zm(e,t,s,u){var d=e.updateQueue;Gm=!1,Km=d.shared;var g=d.firstBaseUpdate,y=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var _=E,O=_.next;_.next=null,y===null?g=O:y.next=O,y=_;var I=e.alternate;if(I!==null){var re=I.updateQueue,J=re.lastBaseUpdate;J!==y&&(J===null?re.firstBaseUpdate=O:J.next=O,re.lastBaseUpdate=_)}}if(g!==null){var le=d.baseState,fe=Ae,me=null,qe=null,vt=null,ct=g;do{var Gt=ct.lane,Ut=ct.eventTime;if(Kl(u,Gt)){if(vt!==null){var ye={eventTime:Ut,lane:nr,tag:ct.tag,payload:ct.payload,callback:ct.callback,next:null};vt=vt.next=ye}le=Q5(e,d,ct,le,t,s);var ae=ct.callback;if(ae!==null&&ct.lane!==nr){e.flags|=$r;var Me=d.effects;Me===null?d.effects=[ct]:Me.push(ct)}}else{var ie={eventTime:Ut,lane:Gt,tag:ct.tag,payload:ct.payload,callback:ct.callback,next:null};vt===null?(qe=vt=ie,me=le):vt=vt.next=ie,fe=Ot(fe,Gt)}if(ct=ct.next,ct===null){if(E=d.shared.pending,E===null)break;var Ze=E,We=Ze.next;Ze.next=null,ct=We,d.lastBaseUpdate=Ze,d.shared.pending=null}}while(!0);vt===null&&(me=le),d.baseState=me,d.firstBaseUpdate=qe,d.lastBaseUpdate=vt;var St=d.shared.interleaved;if(St!==null){var At=St;do fe=Ot(fe,At.lane),At=At.next;while(At!==St)}else g===null&&(d.shared.lanes=Ae);dv(fe),e.lanes=fe,e.memoizedState=le}Km=null}function Z5(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function s_(){Gm=!1}function Xm(){return Gm}function o_(e,t,s){var u=t.effects;if(t.effects=null,u!==null)for(var d=0;d<u.length;d++){var g=u[d],y=g.callback;y!==null&&(g.callback=null,Z5(y,s))}}var Lp={},fc=sc(Lp),Up=sc(Lp),Jm=sc(Lp);function ey(e){if(e===Lp)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function l_(){var e=ey(Jm.current);return e}function zE(e,t){Qi(Jm,t,e),Qi(Up,e,e),Qi(fc,Lp,e);var s=p3(t);Ki(fc,e),Qi(fc,s,e)}function kh(e){Ki(fc,e),Ki(Up,e),Ki(Jm,e)}function qE(){var e=ey(fc.current);return e}function u_(e){ey(Jm.current);var t=ey(fc.current),s=v3(t,e.type);t!==s&&(Qi(Up,e,e),Qi(fc,s,e))}function YE(e){Up.current===e&&(Ki(fc,e),Ki(Up,e))}var X5=0,c_=1,f_=1,jp=2,co=sc(X5);function VE(e,t){return(e&t)!==0}function Fh(e){return e&c_}function WE(e,t){return e&c_|t}function J5(e,t){return e|t}function dc(e,t){Qi(co,t,e)}function Oh(e){Ki(co,e)}function e7(e,t){var s=e.memoizedState;return s!==null?s.dehydrated!==null:(e.memoizedProps,!0)}function ty(e){for(var t=e;t!==null;){if(t.tag===K){var s=t.memoizedState;if(s!==null){var u=s.dehydrated;if(u===null||Rb(u)||fE(u))return t}}else if(t.tag===F&&t.memoizedProps.revealOrder!==void 0){var d=(t.flags&ft)!==dt;if(d)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ha=0,Xn=1,il=2,Jn=4,_i=8,GE=[];function KE(){for(var e=0;e<GE.length;e++){var t=GE[e];t._workInProgressVersionPrimary=null}GE.length=0}function t7(e,t){var s=t._getVersion,u=s(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,u]:e.mutableSourceEagerHydrationData.push(t,u)}var Qe=i.ReactCurrentDispatcher,zp=i.ReactCurrentBatchConfig,QE,Bh;QE=new Set;var Lf=Ae,Ar=null,ei=null,ti=null,ry=!1,qp=!1,Yp=0,r7=0,n7=25,we=null,Ns=null,hc=-1,ZE=!1;function Er(){{var e=we;Ns===null?Ns=[e]:Ns.push(e)}}function Le(){{var e=we;Ns!==null&&(hc++,Ns[hc]!==e&&i7(e))}}function Mh(e){e!=null&&!Mt(e)&&v("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",we,typeof e)}function i7(e){{var t=_t(Ar);if(!QE.has(t)&&(QE.add(t),Ns!==null)){for(var s="",u=30,d=0;d<=hc;d++){for(var g=Ns[d],y=d===hc?e:g,E=d+1+". "+g;E.length<u;)E+=" ";E+=y+`
|
|
139
|
+
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return u}function Um(e,t){var s=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(s==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":s)+"). If you meant to render a collection of children, use an array instead.")}function jm(e){{var t=_t(e)||"Component";if(OE[t])return;OE[t]=!0,v("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function Qb(e){var t=e._payload,s=e._init;return s(t)}function Zb(e){function t(ie,ye){if(e){var ae=ie.deletions;ae===null?(ie.deletions=[ye],ie.flags|=_a):ae.push(ye)}}function s(ie,ye){if(!e)return null;for(var ae=ye;ae!==null;)t(ie,ae),ae=ae.sibling;return null}function u(ie,ye){for(var ae=new Map,Me=ye;Me!==null;)Me.key!==null?ae.set(Me.key,Me):ae.set(Me.index,Me),Me=Me.sibling;return ae}function d(ie,ye){var ae=Wf(ie,ye);return ae.index=0,ae.sibling=null,ae}function g(ie,ye,ae){if(ie.index=ae,!e)return ie.flags|=Ss,ye;var Me=ie.alternate;if(Me!==null){var Ze=Me.index;return Ze<ye?(ie.flags|=Xr,ye):Ze}else return ie.flags|=Xr,ye}function y(ie){return e&&ie.alternate===null&&(ie.flags|=Xr),ie}function E(ie,ye,ae,Me){if(ye===null||ye.tag!==P){var Ze=T2(ae,ie.mode,Me);return Ze.return=ie,Ze}else{var We=d(ye,ae);return We.return=ie,We}}function _(ie,ye,ae,Me){var Ze=ae.type;if(Ze===kn)return I(ie,ye,ae.props.children,Me,ae.key);if(ye!==null&&(ye.elementType===Ze||rT(ye,ae)||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===Dt&&Qb(Ze)===ye.type)){var We=d(ye,ae.props);return We.ref=Pp(ie,ye,ae),We.return=ie,We._debugSource=ae._source,We._debugOwner=ae._owner,We}var St=D2(ae,ie.mode,Me);return St.ref=Pp(ie,ye,ae),St.return=ie,St}function O(ie,ye,ae,Me){if(ye===null||ye.tag!==A||ye.stateNode.containerInfo!==ae.containerInfo||ye.stateNode.implementation!==ae.implementation){var Ze=R2(ae,ie.mode,Me);return Ze.return=ie,Ze}else{var We=d(ye,ae.children||[]);return We.return=ie,We}}function I(ie,ye,ae,Me,Ze){if(ye===null||ye.tag!==j){var We=Ec(ae,ie.mode,Me,Ze);return We.return=ie,We}else{var St=d(ye,ae);return St.return=ie,St}}function re(ie,ye,ae){if(typeof ye=="string"&&ye!==""||typeof ye=="number"){var Me=T2(""+ye,ie.mode,ae);return Me.return=ie,Me}if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case In:{var Ze=D2(ye,ie.mode,ae);return Ze.ref=Pp(ie,null,ye),Ze.return=ie,Ze}case pr:{var We=R2(ye,ie.mode,ae);return We.return=ie,We}case Dt:{var St=ye._payload,At=ye._init;return re(ie,At(St),ae)}}if(Mt(ye)||Ft(ye)){var kr=Ec(ye,ie.mode,ae,null);return kr.return=ie,kr}Um(ie,ye)}return typeof ye=="function"&&jm(ie),null}function J(ie,ye,ae,Me){var Ze=ye!==null?ye.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return Ze!==null?null:E(ie,ye,""+ae,Me);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case In:return ae.key===Ze?_(ie,ye,ae,Me):null;case pr:return ae.key===Ze?O(ie,ye,ae,Me):null;case Dt:{var We=ae._payload,St=ae._init;return J(ie,ye,St(We),Me)}}if(Mt(ae)||Ft(ae))return Ze!==null?null:I(ie,ye,ae,Me,null);Um(ie,ae)}return typeof ae=="function"&&jm(ie),null}function le(ie,ye,ae,Me,Ze){if(typeof Me=="string"&&Me!==""||typeof Me=="number"){var We=ie.get(ae)||null;return E(ye,We,""+Me,Ze)}if(typeof Me=="object"&&Me!==null){switch(Me.$$typeof){case In:{var St=ie.get(Me.key===null?ae:Me.key)||null;return _(ye,St,Me,Ze)}case pr:{var At=ie.get(Me.key===null?ae:Me.key)||null;return O(ye,At,Me,Ze)}case Dt:var kr=Me._payload,cr=Me._init;return le(ie,ye,ae,cr(kr),Ze)}if(Mt(Me)||Ft(Me)){var Nn=ie.get(ae)||null;return I(ye,Nn,Me,Ze,null)}Um(ye,Me)}return typeof Me=="function"&&jm(ye),null}function fe(ie,ye,ae){{if(typeof ie!="object"||ie===null)return ye;switch(ie.$$typeof){case In:case pr:Kb(ie,ae);var Me=ie.key;if(typeof Me!="string")break;if(ye===null){ye=new Set,ye.add(Me);break}if(!ye.has(Me)){ye.add(Me);break}v("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Me);break;case Dt:var Ze=ie._payload,We=ie._init;fe(We(Ze),ye,ae);break}}return ye}function me(ie,ye,ae,Me){for(var Ze=null,We=0;We<ae.length;We++){var St=ae[We];Ze=fe(St,Ze,ie)}for(var At=null,kr=null,cr=ye,Nn=0,fr=0,_n=null;cr!==null&&fr<ae.length;fr++){cr.index>fr?(_n=cr,cr=null):_n=cr.sibling;var Xi=J(ie,cr,ae[fr],Me);if(Xi===null){cr===null&&(cr=_n);break}e&&cr&&Xi.alternate===null&&t(ie,cr),Nn=g(Xi,Nn,fr),kr===null?At=Xi:kr.sibling=Xi,kr=Xi,cr=_n}if(fr===ae.length){if(s(ie,cr),bi()){var Fi=fr;Mf(ie,Fi)}return At}if(cr===null){for(;fr<ae.length;fr++){var is=re(ie,ae[fr],Me);is!==null&&(Nn=g(is,Nn,fr),kr===null?At=is:kr.sibling=is,kr=is)}if(bi()){var ha=fr;Mf(ie,ha)}return At}for(var pa=u(ie,cr);fr<ae.length;fr++){var Ji=le(pa,ie,fr,ae[fr],Me);Ji!==null&&(e&&Ji.alternate!==null&&pa.delete(Ji.key===null?fr:Ji.key),Nn=g(Ji,Nn,fr),kr===null?At=Ji:kr.sibling=Ji,kr=Ji)}if(e&&pa.forEach(function(Yh){return t(ie,Yh)}),bi()){var hu=fr;Mf(ie,hu)}return At}function qe(ie,ye,ae,Me){var Ze=Ft(ae);if(typeof Ze!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&ae[Symbol.toStringTag]==="Generator"&&(AE||v("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),AE=!0),ae.entries===Ze&&(RE||v("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),RE=!0);var We=Ze.call(ae);if(We)for(var St=null,At=We.next();!At.done;At=We.next()){var kr=At.value;St=fe(kr,St,ie)}}var cr=Ze.call(ae);if(cr==null)throw new Error("An iterable object provided no iterator.");for(var Nn=null,fr=null,_n=ye,Xi=0,Fi=0,is=null,ha=cr.next();_n!==null&&!ha.done;Fi++,ha=cr.next()){_n.index>Fi?(is=_n,_n=null):is=_n.sibling;var pa=J(ie,_n,ha.value,Me);if(pa===null){_n===null&&(_n=is);break}e&&_n&&pa.alternate===null&&t(ie,_n),Xi=g(pa,Xi,Fi),fr===null?Nn=pa:fr.sibling=pa,fr=pa,_n=is}if(ha.done){if(s(ie,_n),bi()){var Ji=Fi;Mf(ie,Ji)}return Nn}if(_n===null){for(;!ha.done;Fi++,ha=cr.next()){var hu=re(ie,ha.value,Me);hu!==null&&(Xi=g(hu,Xi,Fi),fr===null?Nn=hu:fr.sibling=hu,fr=hu)}if(bi()){var Yh=Fi;Mf(ie,Yh)}return Nn}for(var mv=u(ie,_n);!ha.done;Fi++,ha=cr.next()){var fl=le(mv,ie,Fi,ha.value,Me);fl!==null&&(e&&fl.alternate!==null&&mv.delete(fl.key===null?Fi:fl.key),Xi=g(fl,Xi,Fi),fr===null?Nn=fl:fr.sibling=fl,fr=fl)}if(e&&mv.forEach(function(hO){return t(ie,hO)}),bi()){var dO=Fi;Mf(ie,dO)}return Nn}function vt(ie,ye,ae,Me){if(ye!==null&&ye.tag===P){s(ie,ye.sibling);var Ze=d(ye,ae);return Ze.return=ie,Ze}s(ie,ye);var We=T2(ae,ie.mode,Me);return We.return=ie,We}function ct(ie,ye,ae,Me){for(var Ze=ae.key,We=ye;We!==null;){if(We.key===Ze){var St=ae.type;if(St===kn){if(We.tag===j){s(ie,We.sibling);var At=d(We,ae.props.children);return At.return=ie,At._debugSource=ae._source,At._debugOwner=ae._owner,At}}else if(We.elementType===St||rT(We,ae)||typeof St=="object"&&St!==null&&St.$$typeof===Dt&&Qb(St)===We.type){s(ie,We.sibling);var kr=d(We,ae.props);return kr.ref=Pp(ie,We,ae),kr.return=ie,kr._debugSource=ae._source,kr._debugOwner=ae._owner,kr}s(ie,We);break}else t(ie,We);We=We.sibling}if(ae.type===kn){var cr=Ec(ae.props.children,ie.mode,Me,ae.key);return cr.return=ie,cr}else{var Nn=D2(ae,ie.mode,Me);return Nn.ref=Pp(ie,ye,ae),Nn.return=ie,Nn}}function Gt(ie,ye,ae,Me){for(var Ze=ae.key,We=ye;We!==null;){if(We.key===Ze)if(We.tag===A&&We.stateNode.containerInfo===ae.containerInfo&&We.stateNode.implementation===ae.implementation){s(ie,We.sibling);var St=d(We,ae.children||[]);return St.return=ie,St}else{s(ie,We);break}else t(ie,We);We=We.sibling}var At=R2(ae,ie.mode,Me);return At.return=ie,At}function Ut(ie,ye,ae,Me){var Ze=typeof ae=="object"&&ae!==null&&ae.type===kn&&ae.key===null;if(Ze&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case In:return y(ct(ie,ye,ae,Me));case pr:return y(Gt(ie,ye,ae,Me));case Dt:var We=ae._payload,St=ae._init;return Ut(ie,ye,St(We),Me)}if(Mt(ae))return me(ie,ye,ae,Me);if(Ft(ae))return qe(ie,ye,ae,Me);Um(ie,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?y(vt(ie,ye,""+ae,Me)):(typeof ae=="function"&&jm(ie),s(ie,ye))}return Ut}var Th=Zb(!0),Xb=Zb(!1);function j5(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var s=t.child,u=Wf(s,s.pendingProps);for(t.child=u,u.return=t;s.sibling!==null;)s=s.sibling,u=u.sibling=Wf(s,s.pendingProps),u.return=t;u.sibling=null}}function z5(e,t){for(var s=e.child;s!==null;)k9(s,t),s=s.sibling}var BE=sc(null),ME;ME={};var zm=null,Rh=null,NE=null,qm=!1;function Ym(){zm=null,Rh=null,NE=null,qm=!1}function Jb(){qm=!0}function e_(){qm=!1}function t_(e,t,s){Qi(BE,t._currentValue,e),t._currentValue=s,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==ME&&v("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=ME}function HE(e,t){var s=BE.current;Ki(BE,t),e._currentValue=s}function IE(e,t,s){for(var u=e;u!==null;){var d=u.alternate;if(Kl(u.childLanes,t)?d!==null&&!Kl(d.childLanes,t)&&(d.childLanes=Ot(d.childLanes,t)):(u.childLanes=Ot(u.childLanes,t),d!==null&&(d.childLanes=Ot(d.childLanes,t))),u===s)break;u=u.return}u!==s&&v("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function q5(e,t,s){Y5(e,t,s)}function Y5(e,t,s){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=void 0,g=u.dependencies;if(g!==null){d=u.child;for(var y=g.firstContext;y!==null;){if(y.context===t){if(u.tag===C){var E=ff(s),_=ou(Br,E);_.tag=Wm;var O=u.updateQueue;if(O!==null){var I=O.shared,re=I.pending;re===null?_.next=_:(_.next=re.next,re.next=_),I.pending=_}}u.lanes=Ot(u.lanes,s);var J=u.alternate;J!==null&&(J.lanes=Ot(J.lanes,s)),IE(u.return,s,e),g.lanes=Ot(g.lanes,s);break}y=y.next}}else if(u.tag===M)d=u.type===e.type?null:u.child;else if(u.tag===Z){var le=u.return;if(le===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");le.lanes=Ot(le.lanes,s);var fe=le.alternate;fe!==null&&(fe.lanes=Ot(fe.lanes,s)),IE(le,s,e),d=u.sibling}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===e){d=null;break}var me=d.sibling;if(me!==null){me.return=d.return,d=me;break}d=d.return}u=d}}function Ah(e,t){zm=e,Rh=null,NE=null;var s=e.dependencies;if(s!==null){var u=s.firstContext;u!==null&&(Yi(s.lanes,t)&&ev(),s.firstContext=null)}}function jn(e){qm&&v("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(NE!==e){var s={context:e,memoizedValue:t,next:null};if(Rh===null){if(zm===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Rh=s,zm.dependencies={lanes:Ae,firstContext:s}}else Rh=Rh.next=s}return t}var Pf=null;function $E(e){Pf===null?Pf=[e]:Pf.push(e)}function V5(){if(Pf!==null){for(var e=0;e<Pf.length;e++){var t=Pf[e],s=t.interleaved;if(s!==null){t.interleaved=null;var u=s.next,d=t.pending;if(d!==null){var g=d.next;d.next=u,s.next=g}t.pending=s}}Pf=null}}function r_(e,t,s,u){var d=t.interleaved;return d===null?(s.next=s,$E(t)):(s.next=d.next,d.next=s),t.interleaved=s,Vm(e,u)}function W5(e,t,s,u){var d=t.interleaved;d===null?(s.next=s,$E(t)):(s.next=d.next,d.next=s),t.interleaved=s}function G5(e,t,s,u){var d=t.interleaved;return d===null?(s.next=s,$E(t)):(s.next=d.next,d.next=s),t.interleaved=s,Vm(e,u)}function Na(e,t){return Vm(e,t)}var K5=Vm;function Vm(e,t){e.lanes=Ot(e.lanes,t);var s=e.alternate;s!==null&&(s.lanes=Ot(s.lanes,t)),s===null&&(e.flags&(Xr|Li))!==dt&&XD(e);for(var u=e,d=e.return;d!==null;)d.childLanes=Ot(d.childLanes,t),s=d.alternate,s!==null?s.childLanes=Ot(s.childLanes,t):(d.flags&(Xr|Li))!==dt&&XD(e),u=d,d=d.return;if(u.tag===T){var g=u.stateNode;return g}else return null}var n_=0,i_=1,Wm=2,PE=3,Gm=!1,LE,Km;LE=!1,Km=null;function UE(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Ae},effects:null};e.updateQueue=t}function a_(e,t){var s=t.updateQueue,u=e.updateQueue;if(s===u){var d={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects};t.updateQueue=d}}function ou(e,t){var s={eventTime:e,lane:t,tag:n_,payload:null,callback:null,next:null};return s}function cc(e,t,s){var u=e.updateQueue;if(u===null)return null;var d=u.shared;if(Km===d&&!LE&&(v("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),LE=!0),WF()){var g=d.pending;return g===null?t.next=t:(t.next=g.next,g.next=t),d.pending=t,K5(e,s)}else return G5(e,d,t,s)}function Qm(e,t,s){var u=t.updateQueue;if(u!==null){var d=u.shared;if(X0(s)){var g=d.lanes;g=ep(g,e.pendingLanes);var y=Ot(g,s);d.lanes=y,th(e,y)}}}function jE(e,t){var s=e.updateQueue,u=e.alternate;if(u!==null){var d=u.updateQueue;if(s===d){var g=null,y=null,E=s.firstBaseUpdate;if(E!==null){var _=E;do{var O={eventTime:_.eventTime,lane:_.lane,tag:_.tag,payload:_.payload,callback:_.callback,next:null};y===null?g=y=O:(y.next=O,y=O),_=_.next}while(_!==null);y===null?g=y=t:(y.next=t,y=t)}else g=y=t;s={baseState:d.baseState,firstBaseUpdate:g,lastBaseUpdate:y,shared:d.shared,effects:d.effects},e.updateQueue=s;return}}var I=s.lastBaseUpdate;I===null?s.firstBaseUpdate=t:I.next=t,s.lastBaseUpdate=t}function Q5(e,t,s,u,d,g){switch(s.tag){case i_:{var y=s.payload;if(typeof y=="function"){Jb();var E=y.call(g,u,d);{if(e.mode&Rr){Jr(!0);try{y.call(g,u,d)}finally{Jr(!1)}}e_()}return E}return y}case PE:e.flags=e.flags&~$n|ft;case n_:{var _=s.payload,O;if(typeof _=="function"){Jb(),O=_.call(g,u,d);{if(e.mode&Rr){Jr(!0);try{_.call(g,u,d)}finally{Jr(!1)}}e_()}}else O=_;return O==null?u:Bt({},u,O)}case Wm:return Gm=!0,u}return u}function Zm(e,t,s,u){var d=e.updateQueue;Gm=!1,Km=d.shared;var g=d.firstBaseUpdate,y=d.lastBaseUpdate,E=d.shared.pending;if(E!==null){d.shared.pending=null;var _=E,O=_.next;_.next=null,y===null?g=O:y.next=O,y=_;var I=e.alternate;if(I!==null){var re=I.updateQueue,J=re.lastBaseUpdate;J!==y&&(J===null?re.firstBaseUpdate=O:J.next=O,re.lastBaseUpdate=_)}}if(g!==null){var le=d.baseState,fe=Ae,me=null,qe=null,vt=null,ct=g;do{var Gt=ct.lane,Ut=ct.eventTime;if(Kl(u,Gt)){if(vt!==null){var ye={eventTime:Ut,lane:nr,tag:ct.tag,payload:ct.payload,callback:ct.callback,next:null};vt=vt.next=ye}le=Q5(e,d,ct,le,t,s);var ae=ct.callback;if(ae!==null&&ct.lane!==nr){e.flags|=$r;var Me=d.effects;Me===null?d.effects=[ct]:Me.push(ct)}}else{var ie={eventTime:Ut,lane:Gt,tag:ct.tag,payload:ct.payload,callback:ct.callback,next:null};vt===null?(qe=vt=ie,me=le):vt=vt.next=ie,fe=Ot(fe,Gt)}if(ct=ct.next,ct===null){if(E=d.shared.pending,E===null)break;var Ze=E,We=Ze.next;Ze.next=null,ct=We,d.lastBaseUpdate=Ze,d.shared.pending=null}}while(!0);vt===null&&(me=le),d.baseState=me,d.firstBaseUpdate=qe,d.lastBaseUpdate=vt;var St=d.shared.interleaved;if(St!==null){var At=St;do fe=Ot(fe,At.lane),At=At.next;while(At!==St)}else g===null&&(d.shared.lanes=Ae);dv(fe),e.lanes=fe,e.memoizedState=le}Km=null}function Z5(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function s_(){Gm=!1}function Xm(){return Gm}function o_(e,t,s){var u=t.effects;if(t.effects=null,u!==null)for(var d=0;d<u.length;d++){var g=u[d],y=g.callback;y!==null&&(g.callback=null,Z5(y,s))}}var Lp={},fc=sc(Lp),Up=sc(Lp),Jm=sc(Lp);function ey(e){if(e===Lp)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function l_(){var e=ey(Jm.current);return e}function zE(e,t){Qi(Jm,t,e),Qi(Up,e,e),Qi(fc,Lp,e);var s=p3(t);Ki(fc,e),Qi(fc,s,e)}function kh(e){Ki(fc,e),Ki(Up,e),Ki(Jm,e)}function qE(){var e=ey(fc.current);return e}function u_(e){ey(Jm.current);var t=ey(fc.current),s=v3(t,e.type);t!==s&&(Qi(Up,e,e),Qi(fc,s,e))}function YE(e){Up.current===e&&(Ki(fc,e),Ki(Up,e))}var X5=0,c_=1,f_=1,jp=2,co=sc(X5);function VE(e,t){return(e&t)!==0}function Fh(e){return e&c_}function WE(e,t){return e&c_|t}function J5(e,t){return e|t}function dc(e,t){Qi(co,t,e)}function Oh(e){Ki(co,e)}function e7(e,t){var s=e.memoizedState;return s!==null?s.dehydrated!==null:(e.memoizedProps,!0)}function ty(e){for(var t=e;t!==null;){if(t.tag===K){var s=t.memoizedState;if(s!==null){var u=s.dehydrated;if(u===null||Rb(u)||fE(u))return t}}else if(t.tag===F&&t.memoizedProps.revealOrder!==void 0){var d=(t.flags&ft)!==dt;if(d)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ha=0,Xn=1,il=2,Jn=4,_i=8,GE=[];function KE(){for(var e=0;e<GE.length;e++){var t=GE[e];t._workInProgressVersionPrimary=null}GE.length=0}function t7(e,t){var s=t._getVersion,u=s(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,u]:e.mutableSourceEagerHydrationData.push(t,u)}var Qe=i.ReactCurrentDispatcher,zp=i.ReactCurrentBatchConfig,QE,Bh;QE=new Set;var Lf=Ae,Ar=null,ei=null,ti=null,ry=!1,qp=!1,Yp=0,r7=0,n7=25,we=null,Ns=null,hc=-1,ZE=!1;function Er(){{var e=we;Ns===null?Ns=[e]:Ns.push(e)}}function Le(){{var e=we;Ns!==null&&(hc++,Ns[hc]!==e&&i7(e))}}function Mh(e){e!=null&&!Mt(e)&&v("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",we,typeof e)}function i7(e){{var t=_t(Ar);if(!QE.has(t)&&(QE.add(t),Ns!==null)){for(var s="",u=30,d=0;d<=hc;d++){for(var g=Ns[d],y=d===hc?e:g,E=d+1+". "+g;E.length<u;)E+=" ";E+=y+`
|
|
140
140
|
`,s+=E}v(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
|
141
141
|
|
|
142
142
|
Previous render Next render
|
|
@@ -149,7 +149,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}retur
|
|
|
149
149
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function XE(e,t){if(ZE)return!1;if(t===null)return v("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",we),!1;e.length!==t.length&&v(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
150
150
|
|
|
151
151
|
Previous: %s
|
|
152
|
-
Incoming: %s`,we,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var s=0;s<t.length&&s<e.length;s++)if(!Oe(e[s],t[s]))return!1;return!0}function Nh(e,t,s,u,d,g){Lf=g,Ar=t,Ns=e!==null?e._debugHookTypes:null,hc=-1,ZE=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=Ae,e!==null&&e.memoizedState!==null?Qe.current=B_:Ns!==null?Qe.current=O_:Qe.current=F_;var y=s(u,d);if(qp){var E=0;do{if(qp=!1,Yp=0,E>=n7)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");E+=1,ZE=!1,ei=null,ti=null,t.updateQueue=null,hc=-1,Qe.current=M_,y=s(u,d)}while(qp)}Qe.current=vy,t._debugHookTypes=Ns;var _=ei!==null&&ei.next!==null;if(Lf=Ae,Ar=null,ei=null,ti=null,we=null,Ns=null,hc=-1,e!==null&&(e.flags&xn)!==(t.flags&xn)&&(e.mode&Ht)!==ht&&v("Internal React error: Expected static flag was missing. Please notify the React team."),ry=!1,_)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return y}function Hh(){var e=Yp!==0;return Yp=0,e}function d_(e,t,s){t.updateQueue=e.updateQueue,(t.mode&lr)!==ht?t.flags&=-50333701:t.flags&=-2053,e.lanes=df(e.lanes,s)}function h_(){if(Qe.current=vy,ry){for(var e=Ar.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ry=!1}Lf=Ae,Ar=null,ei=null,ti=null,Ns=null,hc=-1,we=null,D_=!1,qp=!1,Yp=0}function al(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ti===null?Ar.memoizedState=ti=e:ti=ti.next=e,ti}function Hs(){var e;if(ei===null){var t=Ar.alternate;t!==null?e=t.memoizedState:e=null}else e=ei.next;var s;if(ti===null?s=Ar.memoizedState:s=ti.next,s!==null)ti=s,s=ti.next,ei=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");ei=e;var u={memoizedState:ei.memoizedState,baseState:ei.baseState,baseQueue:ei.baseQueue,queue:ei.queue,next:null};ti===null?Ar.memoizedState=ti=u:ti=ti.next=u}return ti}function p_(){return{lastEffect:null,stores:null}}function JE(e,t){return typeof t=="function"?t(e):t}function eC(e,t,s){var u=al(),d;s!==void 0?d=s(t):d=t,u.memoizedState=u.baseState=d;var g={pending:null,interleaved:null,lanes:Ae,dispatch:null,lastRenderedReducer:e,lastRenderedState:d};u.queue=g;var y=g.dispatch=l7.bind(null,Ar,g);return[u.memoizedState,y]}function tC(e,t,s){var u=Hs(),d=u.queue;if(d===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");d.lastRenderedReducer=e;var g=ei,y=g.baseQueue,E=d.pending;if(E!==null){if(y!==null){var _=y.next,O=E.next;y.next=O,E.next=_}g.baseQueue!==y&&v("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),g.baseQueue=y=E,d.pending=null}if(y!==null){var I=y.next,re=g.baseState,J=null,le=null,fe=null,me=I;do{var qe=me.lane;if(Kl(Lf,qe)){if(fe!==null){var ct={lane:nr,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null};fe=fe.next=ct}if(me.hasEagerState)re=me.eagerState;else{var Gt=me.action;re=e(re,Gt)}}else{var vt={lane:qe,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null};fe===null?(le=fe=vt,J=re):fe=fe.next=vt,Ar.lanes=Ot(Ar.lanes,qe),dv(qe)}me=me.next}while(me!==null&&me!==I);fe===null?J=re:fe.next=le,Oe(re,u.memoizedState)||ev(),u.memoizedState=re,u.baseState=J,u.baseQueue=fe,d.lastRenderedState=re}var Ut=d.interleaved;if(Ut!==null){var ie=Ut;do{var ye=ie.lane;Ar.lanes=Ot(Ar.lanes,ye),dv(ye),ie=ie.next}while(ie!==Ut)}else y===null&&(d.lanes=Ae);var ae=d.dispatch;return[u.memoizedState,ae]}function rC(e,t,s){var u=Hs(),d=u.queue;if(d===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");d.lastRenderedReducer=e;var g=d.dispatch,y=d.pending,E=u.memoizedState;if(y!==null){d.pending=null;var _=y.next,O=_;do{var I=O.action;E=e(E,I),O=O.next}while(O!==_);Oe(E,u.memoizedState)||ev(),u.memoizedState=E,u.baseQueue===null&&(u.baseState=E),d.lastRenderedState=E}return[E,g]}function mO(e,t,s){}function yO(e,t,s){}function nC(e,t,s){var u=Ar,d=al(),g,y=bi();if(y){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");g=s(),Bh||g!==s()&&(v("The result of getServerSnapshot should be cached to avoid an infinite loop"),Bh=!0)}else{if(g=t(),!Bh){var E=t();Oe(g,E)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),Bh=!0)}var _=My();if(_===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Jd(_,Lf)||v_(u,t,g)}d.memoizedState=g;var O={value:g,getSnapshot:t};return d.queue=O,oy(m_.bind(null,u,O,e),[e]),u.flags|=Pi,Vp(Xn|_i,g_.bind(null,u,O,g,t),void 0,null),g}function ny(e,t,s){var u=Ar,d=Hs(),g=t();if(!Bh){var y=t();Oe(g,y)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),Bh=!0)}var E=d.memoizedState,_=!Oe(E,g);_&&(d.memoizedState=g,ev());var O=d.queue;if(Gp(m_.bind(null,u,O,e),[e]),O.getSnapshot!==t||_||ti!==null&&ti.memoizedState.tag&Xn){u.flags|=Pi,Vp(Xn|_i,g_.bind(null,u,O,g,t),void 0,null);var I=My();if(I===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Jd(I,Lf)||v_(u,t,g)}return g}function v_(e,t,s){e.flags|=qu;var u={getSnapshot:t,value:s},d=Ar.updateQueue;if(d===null)d=p_(),Ar.updateQueue=d,d.stores=[u];else{var g=d.stores;g===null?d.stores=[u]:g.push(u)}}function g_(e,t,s,u){t.value=s,t.getSnapshot=u,y_(t)&&x_(e)}function m_(e,t,s){var u=function(){y_(t)&&x_(e)};return s(u)}function y_(e){var t=e.getSnapshot,s=e.value;try{var u=t();return!Oe(s,u)}catch{return!0}}function x_(e){var t=Na(e,Ct);t!==null&&ai(t,e,Ct,Br)}function iy(e){var t=al();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var s={pending:null,interleaved:null,lanes:Ae,dispatch:null,lastRenderedReducer:JE,lastRenderedState:e};t.queue=s;var u=s.dispatch=u7.bind(null,Ar,s);return[t.memoizedState,u]}function iC(e){return tC(JE)}function aC(e){return rC(JE)}function Vp(e,t,s,u){var d={tag:e,create:t,destroy:s,deps:u,next:null},g=Ar.updateQueue;if(g===null)g=p_(),Ar.updateQueue=g,g.lastEffect=d.next=d;else{var y=g.lastEffect;if(y===null)g.lastEffect=d.next=d;else{var E=y.next;y.next=d,d.next=E,g.lastEffect=d}}return d}function sC(e){var t=al();{var s={current:e};return t.memoizedState=s,s}}function ay(e){var t=Hs();return t.memoizedState}function Wp(e,t,s,u){var d=al(),g=u===void 0?null:u;Ar.flags|=e,d.memoizedState=Vp(Xn|t,s,void 0,g)}function sy(e,t,s,u){var d=Hs(),g=u===void 0?null:u,y=void 0;if(ei!==null){var E=ei.memoizedState;if(y=E.destroy,g!==null){var _=E.deps;if(XE(g,_)){d.memoizedState=Vp(t,s,y,g);return}}}Ar.flags|=e,d.memoizedState=Vp(Xn|t,s,y,g)}function oy(e,t){return(Ar.mode&lr)!==ht?Wp(ws|Pi|Dd,_i,e,t):Wp(Pi|Dd,_i,e,t)}function Gp(e,t){return sy(Pi,_i,e,t)}function oC(e,t){return Wp(Yt,il,e,t)}function ly(e,t){return sy(Yt,il,e,t)}function lC(e,t){var s=Yt;return s|=Xs,(Ar.mode&lr)!==ht&&(s|=Lo),Wp(s,Jn,e,t)}function uy(e,t){return sy(Yt,Jn,e,t)}function E_(e,t){if(typeof t=="function"){var s=t,u=e();return s(u),function(){s(null)}}else if(t!=null){var d=t;d.hasOwnProperty("current")||v("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(d).join(", ")+"}");var g=e();return d.current=g,function(){d.current=null}}}function uC(e,t,s){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var u=s!=null?s.concat([e]):null,d=Yt;return d|=Xs,(Ar.mode&lr)!==ht&&(d|=Lo),Wp(d,Jn,E_.bind(null,t,e),u)}function cy(e,t,s){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var u=s!=null?s.concat([e]):null;return sy(Yt,Jn,E_.bind(null,t,e),u)}function a7(e,t){}var fy=a7;function cC(e,t){var s=al(),u=t===void 0?null:t;return s.memoizedState=[e,u],e}function dy(e,t){var s=Hs(),u=t===void 0?null:t,d=s.memoizedState;if(d!==null&&u!==null){var g=d[1];if(XE(u,g))return d[0]}return s.memoizedState=[e,u],e}function fC(e,t){var s=al(),u=t===void 0?null:t,d=e();return s.memoizedState=[d,u],d}function hy(e,t){var s=Hs(),u=t===void 0?null:t,d=s.memoizedState;if(d!==null&&u!==null){var g=d[1];if(XE(u,g))return d[0]}var y=e();return s.memoizedState=[y,u],y}function dC(e){var t=al();return t.memoizedState=e,e}function C_(e){var t=Hs(),s=ei,u=s.memoizedState;return w_(t,u,e)}function S_(e){var t=Hs();if(ei===null)return t.memoizedState=e,e;var s=ei.memoizedState;return w_(t,s,e)}function w_(e,t,s){var u=!Q0(Lf);if(u){if(!Oe(s,t)){var d=J0();Ar.lanes=Ot(Ar.lanes,d),dv(d),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,ev()),e.memoizedState=s,s}function s7(e,t,s){var u=Oa();Sn(qg(u,Ts)),e(!0);var d=zp.transition;zp.transition={};var g=zp.transition;zp.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Sn(u),zp.transition=d,d===null&&g._updatedFibers){var y=g._updatedFibers.size;y>10&&p("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),g._updatedFibers.clear()}}}function hC(){var e=iy(!1),t=e[0],s=e[1],u=s7.bind(null,s),d=al();return d.memoizedState=u,[t,u]}function b_(){var e=iC(),t=e[0],s=Hs(),u=s.memoizedState;return[t,u]}function __(){var e=aC(),t=e[0],s=Hs(),u=s.memoizedState;return[t,u]}var D_=!1;function o7(){return D_}function pC(){var e=al(),t=My(),s=t.identifierPrefix,u;if(bi()){var d=b5();u=":"+s+"R"+d;var g=Yp++;g>0&&(u+="H"+g.toString(32)),u+=":"}else{var y=r7++;u=":"+s+"r"+y.toString(32)+":"}return e.memoizedState=u,u}function py(){var e=Hs(),t=e.memoizedState;return t}function l7(e,t,s){typeof arguments[3]=="function"&&v("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var u=yc(e),d={lane:u,action:s,hasEagerState:!1,eagerState:null,next:null};if(T_(e))R_(t,d);else{var g=r_(e,t,d,u);if(g!==null){var y=da();ai(g,e,u,y),A_(g,t,u)}}k_(e,u)}function u7(e,t,s){typeof arguments[3]=="function"&&v("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var u=yc(e),d={lane:u,action:s,hasEagerState:!1,eagerState:null,next:null};if(T_(e))R_(t,d);else{var g=e.alternate;if(e.lanes===Ae&&(g===null||g.lanes===Ae)){var y=t.lastRenderedReducer;if(y!==null){var E;E=Qe.current,Qe.current=fo;try{var _=t.lastRenderedState,O=y(_,s);if(d.hasEagerState=!0,d.eagerState=O,Oe(O,_)){W5(e,t,d,u);return}}catch{}finally{Qe.current=E}}}var I=r_(e,t,d,u);if(I!==null){var re=da();ai(I,e,u,re),A_(I,t,u)}}k_(e,u)}function T_(e){var t=e.alternate;return e===Ar||t!==null&&t===Ar}function R_(e,t){qp=ry=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function A_(e,t,s){if(X0(s)){var u=t.lanes;u=ep(u,e.pendingLanes);var d=Ot(u,s);t.lanes=d,th(e,d)}}function k_(e,t,s){tf(e,t)}var vy={readContext:jn,useCallback:Zi,useContext:Zi,useEffect:Zi,useImperativeHandle:Zi,useInsertionEffect:Zi,useLayoutEffect:Zi,useMemo:Zi,useReducer:Zi,useRef:Zi,useState:Zi,useDebugValue:Zi,useDeferredValue:Zi,useTransition:Zi,useMutableSource:Zi,useSyncExternalStore:Zi,useId:Zi,unstable_isNewReconciler:Ce},F_=null,O_=null,B_=null,M_=null,sl=null,fo=null,gy=null;{var vC=function(){v("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Tt=function(){v("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};F_={readContext:function(e){return jn(e)},useCallback:function(e,t){return we="useCallback",Er(),Mh(t),cC(e,t)},useContext:function(e){return we="useContext",Er(),jn(e)},useEffect:function(e,t){return we="useEffect",Er(),Mh(t),oy(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Er(),Mh(s),uC(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Er(),Mh(t),oC(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Er(),Mh(t),lC(e,t)},useMemo:function(e,t){we="useMemo",Er(),Mh(t);var s=Qe.current;Qe.current=sl;try{return fC(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Er();var u=Qe.current;Qe.current=sl;try{return eC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Er(),sC(e)},useState:function(e){we="useState",Er();var t=Qe.current;Qe.current=sl;try{return iy(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Er(),void 0},useDeferredValue:function(e){return we="useDeferredValue",Er(),dC(e)},useTransition:function(){return we="useTransition",Er(),hC()},useMutableSource:function(e,t,s){return we="useMutableSource",Er(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Er(),nC(e,t,s)},useId:function(){return we="useId",Er(),pC()},unstable_isNewReconciler:Ce},O_={readContext:function(e){return jn(e)},useCallback:function(e,t){return we="useCallback",Le(),cC(e,t)},useContext:function(e){return we="useContext",Le(),jn(e)},useEffect:function(e,t){return we="useEffect",Le(),oy(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Le(),uC(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Le(),oC(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Le(),lC(e,t)},useMemo:function(e,t){we="useMemo",Le();var s=Qe.current;Qe.current=sl;try{return fC(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Le();var u=Qe.current;Qe.current=sl;try{return eC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Le(),sC(e)},useState:function(e){we="useState",Le();var t=Qe.current;Qe.current=sl;try{return iy(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Le(),void 0},useDeferredValue:function(e){return we="useDeferredValue",Le(),dC(e)},useTransition:function(){return we="useTransition",Le(),hC()},useMutableSource:function(e,t,s){return we="useMutableSource",Le(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Le(),nC(e,t,s)},useId:function(){return we="useId",Le(),pC()},unstable_isNewReconciler:Ce},B_={readContext:function(e){return jn(e)},useCallback:function(e,t){return we="useCallback",Le(),dy(e,t)},useContext:function(e){return we="useContext",Le(),jn(e)},useEffect:function(e,t){return we="useEffect",Le(),Gp(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Le(),cy(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Le(),ly(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Le(),uy(e,t)},useMemo:function(e,t){we="useMemo",Le();var s=Qe.current;Qe.current=fo;try{return hy(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Le();var u=Qe.current;Qe.current=fo;try{return tC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Le(),ay()},useState:function(e){we="useState",Le();var t=Qe.current;Qe.current=fo;try{return iC(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Le(),fy()},useDeferredValue:function(e){return we="useDeferredValue",Le(),C_(e)},useTransition:function(){return we="useTransition",Le(),b_()},useMutableSource:function(e,t,s){return we="useMutableSource",Le(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Le(),ny(e,t)},useId:function(){return we="useId",Le(),py()},unstable_isNewReconciler:Ce},M_={readContext:function(e){return jn(e)},useCallback:function(e,t){return we="useCallback",Le(),dy(e,t)},useContext:function(e){return we="useContext",Le(),jn(e)},useEffect:function(e,t){return we="useEffect",Le(),Gp(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Le(),cy(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Le(),ly(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Le(),uy(e,t)},useMemo:function(e,t){we="useMemo",Le();var s=Qe.current;Qe.current=gy;try{return hy(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Le();var u=Qe.current;Qe.current=gy;try{return rC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Le(),ay()},useState:function(e){we="useState",Le();var t=Qe.current;Qe.current=gy;try{return aC(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Le(),fy()},useDeferredValue:function(e){return we="useDeferredValue",Le(),S_(e)},useTransition:function(){return we="useTransition",Le(),__()},useMutableSource:function(e,t,s){return we="useMutableSource",Le(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Le(),ny(e,t)},useId:function(){return we="useId",Le(),py()},unstable_isNewReconciler:Ce},sl={readContext:function(e){return vC(),jn(e)},useCallback:function(e,t){return we="useCallback",Tt(),Er(),cC(e,t)},useContext:function(e){return we="useContext",Tt(),Er(),jn(e)},useEffect:function(e,t){return we="useEffect",Tt(),Er(),oy(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Tt(),Er(),uC(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Tt(),Er(),oC(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Tt(),Er(),lC(e,t)},useMemo:function(e,t){we="useMemo",Tt(),Er();var s=Qe.current;Qe.current=sl;try{return fC(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Tt(),Er();var u=Qe.current;Qe.current=sl;try{return eC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Tt(),Er(),sC(e)},useState:function(e){we="useState",Tt(),Er();var t=Qe.current;Qe.current=sl;try{return iy(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Tt(),Er(),void 0},useDeferredValue:function(e){return we="useDeferredValue",Tt(),Er(),dC(e)},useTransition:function(){return we="useTransition",Tt(),Er(),hC()},useMutableSource:function(e,t,s){return we="useMutableSource",Tt(),Er(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Tt(),Er(),nC(e,t,s)},useId:function(){return we="useId",Tt(),Er(),pC()},unstable_isNewReconciler:Ce},fo={readContext:function(e){return vC(),jn(e)},useCallback:function(e,t){return we="useCallback",Tt(),Le(),dy(e,t)},useContext:function(e){return we="useContext",Tt(),Le(),jn(e)},useEffect:function(e,t){return we="useEffect",Tt(),Le(),Gp(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Tt(),Le(),cy(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Tt(),Le(),ly(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Tt(),Le(),uy(e,t)},useMemo:function(e,t){we="useMemo",Tt(),Le();var s=Qe.current;Qe.current=fo;try{return hy(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Tt(),Le();var u=Qe.current;Qe.current=fo;try{return tC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Tt(),Le(),ay()},useState:function(e){we="useState",Tt(),Le();var t=Qe.current;Qe.current=fo;try{return iC(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Tt(),Le(),fy()},useDeferredValue:function(e){return we="useDeferredValue",Tt(),Le(),C_(e)},useTransition:function(){return we="useTransition",Tt(),Le(),b_()},useMutableSource:function(e,t,s){return we="useMutableSource",Tt(),Le(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Tt(),Le(),ny(e,t)},useId:function(){return we="useId",Tt(),Le(),py()},unstable_isNewReconciler:Ce},gy={readContext:function(e){return vC(),jn(e)},useCallback:function(e,t){return we="useCallback",Tt(),Le(),dy(e,t)},useContext:function(e){return we="useContext",Tt(),Le(),jn(e)},useEffect:function(e,t){return we="useEffect",Tt(),Le(),Gp(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Tt(),Le(),cy(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Tt(),Le(),ly(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Tt(),Le(),uy(e,t)},useMemo:function(e,t){we="useMemo",Tt(),Le();var s=Qe.current;Qe.current=fo;try{return hy(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Tt(),Le();var u=Qe.current;Qe.current=fo;try{return rC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Tt(),Le(),ay()},useState:function(e){we="useState",Tt(),Le();var t=Qe.current;Qe.current=fo;try{return aC(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Tt(),Le(),fy()},useDeferredValue:function(e){return we="useDeferredValue",Tt(),Le(),S_(e)},useTransition:function(){return we="useTransition",Tt(),Le(),__()},useMutableSource:function(e,t,s){return we="useMutableSource",Tt(),Le(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Tt(),Le(),ny(e,t)},useId:function(){return we="useId",Tt(),Le(),py()},unstable_isNewReconciler:Ce}}var pc=r.unstable_now,N_=0,my=-1,Kp=-1,yy=-1,gC=!1,xy=!1;function H_(){return gC}function c7(){xy=!0}function f7(){gC=!1,xy=!1}function d7(){gC=xy,xy=!1}function I_(){return N_}function $_(){N_=pc()}function mC(e){Kp=pc(),e.actualStartTime<0&&(e.actualStartTime=pc())}function P_(e){Kp=-1}function Ey(e,t){if(Kp>=0){var s=pc()-Kp;e.actualDuration+=s,t&&(e.selfBaseDuration=s),Kp=-1}}function ol(e){if(my>=0){var t=pc()-my;my=-1;for(var s=e.return;s!==null;){switch(s.tag){case R:var u=s.stateNode;u.effectDuration+=t;return;case q:var d=s.stateNode;d.effectDuration+=t;return}s=s.return}}}function yC(e){if(yy>=0){var t=pc()-yy;yy=-1;for(var s=e.return;s!==null;){switch(s.tag){case R:var u=s.stateNode;u!==null&&(u.passiveEffectDuration+=t);return;case q:var d=s.stateNode;d!==null&&(d.passiveEffectDuration+=t);return}s=s.return}}}function ll(){my=pc()}function xC(){yy=pc()}function EC(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function ho(e,t){if(e&&e.defaultProps){var s=Bt({},t),u=e.defaultProps;for(var d in u)s[d]===void 0&&(s[d]=u[d]);return s}return t}var CC={},SC,wC,bC,_C,DC,L_,Cy,TC,RC,AC,Qp;{SC=new Set,wC=new Set,bC=new Set,_C=new Set,TC=new Set,DC=new Set,RC=new Set,AC=new Set,Qp=new Set;var U_=new Set;Cy=function(e,t){if(!(e===null||typeof e=="function")){var s=t+"_"+e;U_.has(s)||(U_.add(s),v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},L_=function(e,t){if(t===void 0){var s=Zt(e)||"Component";DC.has(s)||(DC.add(s),v("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(CC,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(CC)}function kC(e,t,s,u){var d=e.memoizedState,g=s(u,d);{if(e.mode&Rr){Jr(!0);try{g=s(u,d)}finally{Jr(!1)}}L_(t,g)}var y=g==null?d:Bt({},d,g);if(e.memoizedState=y,e.lanes===Ae){var E=e.updateQueue;E.baseState=y}}var FC={isMounted:Rg,enqueueSetState:function(e,t,s){var u=zu(e),d=da(),g=yc(u),y=ou(d,g);y.payload=t,s!=null&&(Cy(s,"setState"),y.callback=s);var E=cc(u,y,g);E!==null&&(ai(E,u,g,d),Qm(E,u,g)),tf(u,g)},enqueueReplaceState:function(e,t,s){var u=zu(e),d=da(),g=yc(u),y=ou(d,g);y.tag=i_,y.payload=t,s!=null&&(Cy(s,"replaceState"),y.callback=s);var E=cc(u,y,g);E!==null&&(ai(E,u,g,d),Qm(E,u,g)),tf(u,g)},enqueueForceUpdate:function(e,t){var s=zu(e),u=da(),d=yc(s),g=ou(u,d);g.tag=Wm,t!=null&&(Cy(t,"forceUpdate"),g.callback=t);var y=cc(s,g,d);y!==null&&(ai(y,s,d,u),Qm(y,s,d)),Bd(s,d)}};function j_(e,t,s,u,d,g,y){var E=e.stateNode;if(typeof E.shouldComponentUpdate=="function"){var _=E.shouldComponentUpdate(u,g,y);{if(e.mode&Rr){Jr(!0);try{_=E.shouldComponentUpdate(u,g,y)}finally{Jr(!1)}}_===void 0&&v("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Zt(t)||"Component")}return _}return t.prototype&&t.prototype.isPureReactComponent?!st(s,u)||!st(d,g):!0}function h7(e,t,s){var u=e.stateNode;{var d=Zt(t)||"Component",g=u.render;g||(t.prototype&&typeof t.prototype.render=="function"?v("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",d):v("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",d)),u.getInitialState&&!u.getInitialState.isReactClassApproved&&!u.state&&v("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",d),u.getDefaultProps&&!u.getDefaultProps.isReactClassApproved&&v("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",d),u.propTypes&&v("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",d),u.contextType&&v("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),t.childContextTypes&&!Qp.has(t)&&(e.mode&Rr)===ht&&(Qp.add(t),v(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
152
|
+
Incoming: %s`,we,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var s=0;s<t.length&&s<e.length;s++)if(!Oe(e[s],t[s]))return!1;return!0}function Nh(e,t,s,u,d,g){Lf=g,Ar=t,Ns=e!==null?e._debugHookTypes:null,hc=-1,ZE=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=Ae,e!==null&&e.memoizedState!==null?Qe.current=B_:Ns!==null?Qe.current=O_:Qe.current=F_;var y=s(u,d);if(qp){var E=0;do{if(qp=!1,Yp=0,E>=n7)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");E+=1,ZE=!1,ei=null,ti=null,t.updateQueue=null,hc=-1,Qe.current=M_,y=s(u,d)}while(qp)}Qe.current=vy,t._debugHookTypes=Ns;var _=ei!==null&&ei.next!==null;if(Lf=Ae,Ar=null,ei=null,ti=null,we=null,Ns=null,hc=-1,e!==null&&(e.flags&xn)!==(t.flags&xn)&&(e.mode&Ht)!==ht&&v("Internal React error: Expected static flag was missing. Please notify the React team."),ry=!1,_)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return y}function Hh(){var e=Yp!==0;return Yp=0,e}function d_(e,t,s){t.updateQueue=e.updateQueue,(t.mode&lr)!==ht?t.flags&=-50333701:t.flags&=-2053,e.lanes=df(e.lanes,s)}function h_(){if(Qe.current=vy,ry){for(var e=Ar.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ry=!1}Lf=Ae,Ar=null,ei=null,ti=null,Ns=null,hc=-1,we=null,D_=!1,qp=!1,Yp=0}function al(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ti===null?Ar.memoizedState=ti=e:ti=ti.next=e,ti}function Hs(){var e;if(ei===null){var t=Ar.alternate;t!==null?e=t.memoizedState:e=null}else e=ei.next;var s;if(ti===null?s=Ar.memoizedState:s=ti.next,s!==null)ti=s,s=ti.next,ei=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");ei=e;var u={memoizedState:ei.memoizedState,baseState:ei.baseState,baseQueue:ei.baseQueue,queue:ei.queue,next:null};ti===null?Ar.memoizedState=ti=u:ti=ti.next=u}return ti}function p_(){return{lastEffect:null,stores:null}}function JE(e,t){return typeof t=="function"?t(e):t}function eC(e,t,s){var u=al(),d;s!==void 0?d=s(t):d=t,u.memoizedState=u.baseState=d;var g={pending:null,interleaved:null,lanes:Ae,dispatch:null,lastRenderedReducer:e,lastRenderedState:d};u.queue=g;var y=g.dispatch=l7.bind(null,Ar,g);return[u.memoizedState,y]}function tC(e,t,s){var u=Hs(),d=u.queue;if(d===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");d.lastRenderedReducer=e;var g=ei,y=g.baseQueue,E=d.pending;if(E!==null){if(y!==null){var _=y.next,O=E.next;y.next=O,E.next=_}g.baseQueue!==y&&v("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),g.baseQueue=y=E,d.pending=null}if(y!==null){var I=y.next,re=g.baseState,J=null,le=null,fe=null,me=I;do{var qe=me.lane;if(Kl(Lf,qe)){if(fe!==null){var ct={lane:nr,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null};fe=fe.next=ct}if(me.hasEagerState)re=me.eagerState;else{var Gt=me.action;re=e(re,Gt)}}else{var vt={lane:qe,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null};fe===null?(le=fe=vt,J=re):fe=fe.next=vt,Ar.lanes=Ot(Ar.lanes,qe),dv(qe)}me=me.next}while(me!==null&&me!==I);fe===null?J=re:fe.next=le,Oe(re,u.memoizedState)||ev(),u.memoizedState=re,u.baseState=J,u.baseQueue=fe,d.lastRenderedState=re}var Ut=d.interleaved;if(Ut!==null){var ie=Ut;do{var ye=ie.lane;Ar.lanes=Ot(Ar.lanes,ye),dv(ye),ie=ie.next}while(ie!==Ut)}else y===null&&(d.lanes=Ae);var ae=d.dispatch;return[u.memoizedState,ae]}function rC(e,t,s){var u=Hs(),d=u.queue;if(d===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");d.lastRenderedReducer=e;var g=d.dispatch,y=d.pending,E=u.memoizedState;if(y!==null){d.pending=null;var _=y.next,O=_;do{var I=O.action;E=e(E,I),O=O.next}while(O!==_);Oe(E,u.memoizedState)||ev(),u.memoizedState=E,u.baseQueue===null&&(u.baseState=E),d.lastRenderedState=E}return[E,g]}function mO(e,t,s){}function yO(e,t,s){}function nC(e,t,s){var u=Ar,d=al(),g,y=bi();if(y){if(s===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");g=s(),Bh||g!==s()&&(v("The result of getServerSnapshot should be cached to avoid an infinite loop"),Bh=!0)}else{if(g=t(),!Bh){var E=t();Oe(g,E)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),Bh=!0)}var _=My();if(_===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Jd(_,Lf)||v_(u,t,g)}d.memoizedState=g;var O={value:g,getSnapshot:t};return d.queue=O,oy(m_.bind(null,u,O,e),[e]),u.flags|=Pi,Vp(Xn|_i,g_.bind(null,u,O,g,t),void 0,null),g}function ny(e,t,s){var u=Ar,d=Hs(),g=t();if(!Bh){var y=t();Oe(g,y)||(v("The result of getSnapshot should be cached to avoid an infinite loop"),Bh=!0)}var E=d.memoizedState,_=!Oe(E,g);_&&(d.memoizedState=g,ev());var O=d.queue;if(Gp(m_.bind(null,u,O,e),[e]),O.getSnapshot!==t||_||ti!==null&&ti.memoizedState.tag&Xn){u.flags|=Pi,Vp(Xn|_i,g_.bind(null,u,O,g,t),void 0,null);var I=My();if(I===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");Jd(I,Lf)||v_(u,t,g)}return g}function v_(e,t,s){e.flags|=qu;var u={getSnapshot:t,value:s},d=Ar.updateQueue;if(d===null)d=p_(),Ar.updateQueue=d,d.stores=[u];else{var g=d.stores;g===null?d.stores=[u]:g.push(u)}}function g_(e,t,s,u){t.value=s,t.getSnapshot=u,y_(t)&&x_(e)}function m_(e,t,s){var u=function(){y_(t)&&x_(e)};return s(u)}function y_(e){var t=e.getSnapshot,s=e.value;try{var u=t();return!Oe(s,u)}catch{return!0}}function x_(e){var t=Na(e,Ct);t!==null&&ai(t,e,Ct,Br)}function iy(e){var t=al();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var s={pending:null,interleaved:null,lanes:Ae,dispatch:null,lastRenderedReducer:JE,lastRenderedState:e};t.queue=s;var u=s.dispatch=u7.bind(null,Ar,s);return[t.memoizedState,u]}function iC(e){return tC(JE)}function aC(e){return rC(JE)}function Vp(e,t,s,u){var d={tag:e,create:t,destroy:s,deps:u,next:null},g=Ar.updateQueue;if(g===null)g=p_(),Ar.updateQueue=g,g.lastEffect=d.next=d;else{var y=g.lastEffect;if(y===null)g.lastEffect=d.next=d;else{var E=y.next;y.next=d,d.next=E,g.lastEffect=d}}return d}function sC(e){var t=al();{var s={current:e};return t.memoizedState=s,s}}function ay(e){var t=Hs();return t.memoizedState}function Wp(e,t,s,u){var d=al(),g=u===void 0?null:u;Ar.flags|=e,d.memoizedState=Vp(Xn|t,s,void 0,g)}function sy(e,t,s,u){var d=Hs(),g=u===void 0?null:u,y=void 0;if(ei!==null){var E=ei.memoizedState;if(y=E.destroy,g!==null){var _=E.deps;if(XE(g,_)){d.memoizedState=Vp(t,s,y,g);return}}}Ar.flags|=e,d.memoizedState=Vp(Xn|t,s,y,g)}function oy(e,t){return(Ar.mode&lr)!==ht?Wp(ws|Pi|Dd,_i,e,t):Wp(Pi|Dd,_i,e,t)}function Gp(e,t){return sy(Pi,_i,e,t)}function oC(e,t){return Wp(Yt,il,e,t)}function ly(e,t){return sy(Yt,il,e,t)}function lC(e,t){var s=Yt;return s|=Xs,(Ar.mode&lr)!==ht&&(s|=Lo),Wp(s,Jn,e,t)}function uy(e,t){return sy(Yt,Jn,e,t)}function E_(e,t){if(typeof t=="function"){var s=t,u=e();return s(u),function(){s(null)}}else if(t!=null){var d=t;d.hasOwnProperty("current")||v("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(d).join(", ")+"}");var g=e();return d.current=g,function(){d.current=null}}}function uC(e,t,s){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var u=s!=null?s.concat([e]):null,d=Yt;return d|=Xs,(Ar.mode&lr)!==ht&&(d|=Lo),Wp(d,Jn,E_.bind(null,t,e),u)}function cy(e,t,s){typeof t!="function"&&v("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var u=s!=null?s.concat([e]):null;return sy(Yt,Jn,E_.bind(null,t,e),u)}function a7(e,t){}var fy=a7;function cC(e,t){var s=al(),u=t===void 0?null:t;return s.memoizedState=[e,u],e}function dy(e,t){var s=Hs(),u=t===void 0?null:t,d=s.memoizedState;if(d!==null&&u!==null){var g=d[1];if(XE(u,g))return d[0]}return s.memoizedState=[e,u],e}function fC(e,t){var s=al(),u=t===void 0?null:t,d=e();return s.memoizedState=[d,u],d}function hy(e,t){var s=Hs(),u=t===void 0?null:t,d=s.memoizedState;if(d!==null&&u!==null){var g=d[1];if(XE(u,g))return d[0]}var y=e();return s.memoizedState=[y,u],y}function dC(e){var t=al();return t.memoizedState=e,e}function C_(e){var t=Hs(),s=ei,u=s.memoizedState;return w_(t,u,e)}function S_(e){var t=Hs();if(ei===null)return t.memoizedState=e,e;var s=ei.memoizedState;return w_(t,s,e)}function w_(e,t,s){var u=!Q0(Lf);if(u){if(!Oe(s,t)){var d=J0();Ar.lanes=Ot(Ar.lanes,d),dv(d),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,ev()),e.memoizedState=s,s}function s7(e,t,s){var u=Oa();Sn(qg(u,Ts)),e(!0);var d=zp.transition;zp.transition={};var g=zp.transition;zp.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Sn(u),zp.transition=d,d===null&&g._updatedFibers){var y=g._updatedFibers.size;y>10&&p("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),g._updatedFibers.clear()}}}function hC(){var e=iy(!1),t=e[0],s=e[1],u=s7.bind(null,s),d=al();return d.memoizedState=u,[t,u]}function b_(){var e=iC(),t=e[0],s=Hs(),u=s.memoizedState;return[t,u]}function __(){var e=aC(),t=e[0],s=Hs(),u=s.memoizedState;return[t,u]}var D_=!1;function o7(){return D_}function pC(){var e=al(),t=My(),s=t.identifierPrefix,u;if(bi()){var d=b5();u=":"+s+"R"+d;var g=Yp++;g>0&&(u+="H"+g.toString(32)),u+=":"}else{var y=r7++;u=":"+s+"r"+y.toString(32)+":"}return e.memoizedState=u,u}function py(){var e=Hs(),t=e.memoizedState;return t}function l7(e,t,s){typeof arguments[3]=="function"&&v("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var u=yc(e),d={lane:u,action:s,hasEagerState:!1,eagerState:null,next:null};if(T_(e))R_(t,d);else{var g=r_(e,t,d,u);if(g!==null){var y=da();ai(g,e,u,y),A_(g,t,u)}}k_(e,u)}function u7(e,t,s){typeof arguments[3]=="function"&&v("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var u=yc(e),d={lane:u,action:s,hasEagerState:!1,eagerState:null,next:null};if(T_(e))R_(t,d);else{var g=e.alternate;if(e.lanes===Ae&&(g===null||g.lanes===Ae)){var y=t.lastRenderedReducer;if(y!==null){var E;E=Qe.current,Qe.current=fo;try{var _=t.lastRenderedState,O=y(_,s);if(d.hasEagerState=!0,d.eagerState=O,Oe(O,_)){W5(e,t,d,u);return}}catch{}finally{Qe.current=E}}}var I=r_(e,t,d,u);if(I!==null){var re=da();ai(I,e,u,re),A_(I,t,u)}}k_(e,u)}function T_(e){var t=e.alternate;return e===Ar||t!==null&&t===Ar}function R_(e,t){qp=ry=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function A_(e,t,s){if(X0(s)){var u=t.lanes;u=ep(u,e.pendingLanes);var d=Ot(u,s);t.lanes=d,th(e,d)}}function k_(e,t,s){tf(e,t)}var vy={readContext:jn,useCallback:Zi,useContext:Zi,useEffect:Zi,useImperativeHandle:Zi,useInsertionEffect:Zi,useLayoutEffect:Zi,useMemo:Zi,useReducer:Zi,useRef:Zi,useState:Zi,useDebugValue:Zi,useDeferredValue:Zi,useTransition:Zi,useMutableSource:Zi,useSyncExternalStore:Zi,useId:Zi,unstable_isNewReconciler:Ce},F_=null,O_=null,B_=null,M_=null,sl=null,fo=null,gy=null;{var vC=function(){v("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Tt=function(){v("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};F_={readContext:function(e){return jn(e)},useCallback:function(e,t){return we="useCallback",Er(),Mh(t),cC(e,t)},useContext:function(e){return we="useContext",Er(),jn(e)},useEffect:function(e,t){return we="useEffect",Er(),Mh(t),oy(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Er(),Mh(s),uC(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Er(),Mh(t),oC(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Er(),Mh(t),lC(e,t)},useMemo:function(e,t){we="useMemo",Er(),Mh(t);var s=Qe.current;Qe.current=sl;try{return fC(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Er();var u=Qe.current;Qe.current=sl;try{return eC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Er(),sC(e)},useState:function(e){we="useState",Er();var t=Qe.current;Qe.current=sl;try{return iy(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Er(),void 0},useDeferredValue:function(e){return we="useDeferredValue",Er(),dC(e)},useTransition:function(){return we="useTransition",Er(),hC()},useMutableSource:function(e,t,s){return we="useMutableSource",Er(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Er(),nC(e,t,s)},useId:function(){return we="useId",Er(),pC()},unstable_isNewReconciler:Ce},O_={readContext:function(e){return jn(e)},useCallback:function(e,t){return we="useCallback",Le(),cC(e,t)},useContext:function(e){return we="useContext",Le(),jn(e)},useEffect:function(e,t){return we="useEffect",Le(),oy(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Le(),uC(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Le(),oC(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Le(),lC(e,t)},useMemo:function(e,t){we="useMemo",Le();var s=Qe.current;Qe.current=sl;try{return fC(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Le();var u=Qe.current;Qe.current=sl;try{return eC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Le(),sC(e)},useState:function(e){we="useState",Le();var t=Qe.current;Qe.current=sl;try{return iy(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Le(),void 0},useDeferredValue:function(e){return we="useDeferredValue",Le(),dC(e)},useTransition:function(){return we="useTransition",Le(),hC()},useMutableSource:function(e,t,s){return we="useMutableSource",Le(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Le(),nC(e,t,s)},useId:function(){return we="useId",Le(),pC()},unstable_isNewReconciler:Ce},B_={readContext:function(e){return jn(e)},useCallback:function(e,t){return we="useCallback",Le(),dy(e,t)},useContext:function(e){return we="useContext",Le(),jn(e)},useEffect:function(e,t){return we="useEffect",Le(),Gp(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Le(),cy(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Le(),ly(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Le(),uy(e,t)},useMemo:function(e,t){we="useMemo",Le();var s=Qe.current;Qe.current=fo;try{return hy(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Le();var u=Qe.current;Qe.current=fo;try{return tC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Le(),ay()},useState:function(e){we="useState",Le();var t=Qe.current;Qe.current=fo;try{return iC(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Le(),fy()},useDeferredValue:function(e){return we="useDeferredValue",Le(),C_(e)},useTransition:function(){return we="useTransition",Le(),b_()},useMutableSource:function(e,t,s){return we="useMutableSource",Le(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Le(),ny(e,t)},useId:function(){return we="useId",Le(),py()},unstable_isNewReconciler:Ce},M_={readContext:function(e){return jn(e)},useCallback:function(e,t){return we="useCallback",Le(),dy(e,t)},useContext:function(e){return we="useContext",Le(),jn(e)},useEffect:function(e,t){return we="useEffect",Le(),Gp(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Le(),cy(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Le(),ly(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Le(),uy(e,t)},useMemo:function(e,t){we="useMemo",Le();var s=Qe.current;Qe.current=gy;try{return hy(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Le();var u=Qe.current;Qe.current=gy;try{return rC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Le(),ay()},useState:function(e){we="useState",Le();var t=Qe.current;Qe.current=gy;try{return aC(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Le(),fy()},useDeferredValue:function(e){return we="useDeferredValue",Le(),S_(e)},useTransition:function(){return we="useTransition",Le(),__()},useMutableSource:function(e,t,s){return we="useMutableSource",Le(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Le(),ny(e,t)},useId:function(){return we="useId",Le(),py()},unstable_isNewReconciler:Ce},sl={readContext:function(e){return vC(),jn(e)},useCallback:function(e,t){return we="useCallback",Tt(),Er(),cC(e,t)},useContext:function(e){return we="useContext",Tt(),Er(),jn(e)},useEffect:function(e,t){return we="useEffect",Tt(),Er(),oy(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Tt(),Er(),uC(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Tt(),Er(),oC(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Tt(),Er(),lC(e,t)},useMemo:function(e,t){we="useMemo",Tt(),Er();var s=Qe.current;Qe.current=sl;try{return fC(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Tt(),Er();var u=Qe.current;Qe.current=sl;try{return eC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Tt(),Er(),sC(e)},useState:function(e){we="useState",Tt(),Er();var t=Qe.current;Qe.current=sl;try{return iy(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Tt(),Er(),void 0},useDeferredValue:function(e){return we="useDeferredValue",Tt(),Er(),dC(e)},useTransition:function(){return we="useTransition",Tt(),Er(),hC()},useMutableSource:function(e,t,s){return we="useMutableSource",Tt(),Er(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Tt(),Er(),nC(e,t,s)},useId:function(){return we="useId",Tt(),Er(),pC()},unstable_isNewReconciler:Ce},fo={readContext:function(e){return vC(),jn(e)},useCallback:function(e,t){return we="useCallback",Tt(),Le(),dy(e,t)},useContext:function(e){return we="useContext",Tt(),Le(),jn(e)},useEffect:function(e,t){return we="useEffect",Tt(),Le(),Gp(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Tt(),Le(),cy(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Tt(),Le(),ly(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Tt(),Le(),uy(e,t)},useMemo:function(e,t){we="useMemo",Tt(),Le();var s=Qe.current;Qe.current=fo;try{return hy(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Tt(),Le();var u=Qe.current;Qe.current=fo;try{return tC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Tt(),Le(),ay()},useState:function(e){we="useState",Tt(),Le();var t=Qe.current;Qe.current=fo;try{return iC(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Tt(),Le(),fy()},useDeferredValue:function(e){return we="useDeferredValue",Tt(),Le(),C_(e)},useTransition:function(){return we="useTransition",Tt(),Le(),b_()},useMutableSource:function(e,t,s){return we="useMutableSource",Tt(),Le(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Tt(),Le(),ny(e,t)},useId:function(){return we="useId",Tt(),Le(),py()},unstable_isNewReconciler:Ce},gy={readContext:function(e){return vC(),jn(e)},useCallback:function(e,t){return we="useCallback",Tt(),Le(),dy(e,t)},useContext:function(e){return we="useContext",Tt(),Le(),jn(e)},useEffect:function(e,t){return we="useEffect",Tt(),Le(),Gp(e,t)},useImperativeHandle:function(e,t,s){return we="useImperativeHandle",Tt(),Le(),cy(e,t,s)},useInsertionEffect:function(e,t){return we="useInsertionEffect",Tt(),Le(),ly(e,t)},useLayoutEffect:function(e,t){return we="useLayoutEffect",Tt(),Le(),uy(e,t)},useMemo:function(e,t){we="useMemo",Tt(),Le();var s=Qe.current;Qe.current=fo;try{return hy(e,t)}finally{Qe.current=s}},useReducer:function(e,t,s){we="useReducer",Tt(),Le();var u=Qe.current;Qe.current=fo;try{return rC(e,t,s)}finally{Qe.current=u}},useRef:function(e){return we="useRef",Tt(),Le(),ay()},useState:function(e){we="useState",Tt(),Le();var t=Qe.current;Qe.current=fo;try{return aC(e)}finally{Qe.current=t}},useDebugValue:function(e,t){return we="useDebugValue",Tt(),Le(),fy()},useDeferredValue:function(e){return we="useDeferredValue",Tt(),Le(),S_(e)},useTransition:function(){return we="useTransition",Tt(),Le(),__()},useMutableSource:function(e,t,s){return we="useMutableSource",Tt(),Le(),void 0},useSyncExternalStore:function(e,t,s){return we="useSyncExternalStore",Tt(),Le(),ny(e,t)},useId:function(){return we="useId",Tt(),Le(),py()},unstable_isNewReconciler:Ce}}var pc=r.unstable_now,N_=0,my=-1,Kp=-1,yy=-1,gC=!1,xy=!1;function H_(){return gC}function c7(){xy=!0}function f7(){gC=!1,xy=!1}function d7(){gC=xy,xy=!1}function I_(){return N_}function $_(){N_=pc()}function mC(e){Kp=pc(),e.actualStartTime<0&&(e.actualStartTime=pc())}function P_(e){Kp=-1}function Ey(e,t){if(Kp>=0){var s=pc()-Kp;e.actualDuration+=s,t&&(e.selfBaseDuration=s),Kp=-1}}function ol(e){if(my>=0){var t=pc()-my;my=-1;for(var s=e.return;s!==null;){switch(s.tag){case T:var u=s.stateNode;u.effectDuration+=t;return;case q:var d=s.stateNode;d.effectDuration+=t;return}s=s.return}}}function yC(e){if(yy>=0){var t=pc()-yy;yy=-1;for(var s=e.return;s!==null;){switch(s.tag){case T:var u=s.stateNode;u!==null&&(u.passiveEffectDuration+=t);return;case q:var d=s.stateNode;d!==null&&(d.passiveEffectDuration+=t);return}s=s.return}}}function ll(){my=pc()}function xC(){yy=pc()}function EC(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function ho(e,t){if(e&&e.defaultProps){var s=Bt({},t),u=e.defaultProps;for(var d in u)s[d]===void 0&&(s[d]=u[d]);return s}return t}var CC={},SC,wC,bC,_C,DC,L_,Cy,TC,RC,AC,Qp;{SC=new Set,wC=new Set,bC=new Set,_C=new Set,TC=new Set,DC=new Set,RC=new Set,AC=new Set,Qp=new Set;var U_=new Set;Cy=function(e,t){if(!(e===null||typeof e=="function")){var s=t+"_"+e;U_.has(s)||(U_.add(s),v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},L_=function(e,t){if(t===void 0){var s=Zt(e)||"Component";DC.has(s)||(DC.add(s),v("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",s))}},Object.defineProperty(CC,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(CC)}function kC(e,t,s,u){var d=e.memoizedState,g=s(u,d);{if(e.mode&Rr){Jr(!0);try{g=s(u,d)}finally{Jr(!1)}}L_(t,g)}var y=g==null?d:Bt({},d,g);if(e.memoizedState=y,e.lanes===Ae){var E=e.updateQueue;E.baseState=y}}var FC={isMounted:Rg,enqueueSetState:function(e,t,s){var u=zu(e),d=da(),g=yc(u),y=ou(d,g);y.payload=t,s!=null&&(Cy(s,"setState"),y.callback=s);var E=cc(u,y,g);E!==null&&(ai(E,u,g,d),Qm(E,u,g)),tf(u,g)},enqueueReplaceState:function(e,t,s){var u=zu(e),d=da(),g=yc(u),y=ou(d,g);y.tag=i_,y.payload=t,s!=null&&(Cy(s,"replaceState"),y.callback=s);var E=cc(u,y,g);E!==null&&(ai(E,u,g,d),Qm(E,u,g)),tf(u,g)},enqueueForceUpdate:function(e,t){var s=zu(e),u=da(),d=yc(s),g=ou(u,d);g.tag=Wm,t!=null&&(Cy(t,"forceUpdate"),g.callback=t);var y=cc(s,g,d);y!==null&&(ai(y,s,d,u),Qm(y,s,d)),Bd(s,d)}};function j_(e,t,s,u,d,g,y){var E=e.stateNode;if(typeof E.shouldComponentUpdate=="function"){var _=E.shouldComponentUpdate(u,g,y);{if(e.mode&Rr){Jr(!0);try{_=E.shouldComponentUpdate(u,g,y)}finally{Jr(!1)}}_===void 0&&v("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Zt(t)||"Component")}return _}return t.prototype&&t.prototype.isPureReactComponent?!st(s,u)||!st(d,g):!0}function h7(e,t,s){var u=e.stateNode;{var d=Zt(t)||"Component",g=u.render;g||(t.prototype&&typeof t.prototype.render=="function"?v("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",d):v("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",d)),u.getInitialState&&!u.getInitialState.isReactClassApproved&&!u.state&&v("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",d),u.getDefaultProps&&!u.getDefaultProps.isReactClassApproved&&v("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",d),u.propTypes&&v("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",d),u.contextType&&v("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),t.childContextTypes&&!Qp.has(t)&&(e.mode&Rr)===ht&&(Qp.add(t),v(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
153
153
|
|
|
154
154
|
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,d)),t.contextTypes&&!Qp.has(t)&&(e.mode&Rr)===ht&&(Qp.add(t),v(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
|
|
155
155
|
|
|
@@ -161,13 +161,13 @@ The above lifecycles should be removed. Learn more about this warning here:
|
|
|
161
161
|
https://reactjs.org/link/unsafe-component-lifecycles`,qe,vt,le!==null?`
|
|
162
162
|
`+le:"",fe!==null?`
|
|
163
163
|
`+fe:"",me!==null?`
|
|
164
|
-
`+me:""))}}}return u&&Bb(e,d,g),I}function p7(e,t){var s=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),s!==t.state&&(v("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_t(e)||"Component"),FC.enqueueReplaceState(t,t.state,null))}function Y_(e,t,s,u){var d=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,u),t.state!==d){{var g=_t(e)||"Component";SC.has(g)||(SC.add(g),v("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",g))}FC.enqueueReplaceState(t,t.state,null)}}function OC(e,t,s,u){h7(e,t,s);var d=e.stateNode;d.props=s,d.state=e.memoizedState,d.refs={},UE(e);var g=t.contextType;if(typeof g=="object"&&g!==null)d.context=jn(g);else{var y=Sh(e,t,!0);d.context=wh(e,y)}{if(d.state===s){var E=Zt(t)||"Component";TC.has(E)||(TC.add(E),v("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",E))}e.mode&Rr&&uo.recordLegacyContextWarning(e,d),uo.recordUnsafeLifecycleWarnings(e,d)}d.state=e.memoizedState;var _=t.getDerivedStateFromProps;if(typeof _=="function"&&(kC(e,t,_,s),d.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof d.getSnapshotBeforeUpdate!="function"&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(p7(e,d),Zm(e,s,d,u),d.state=e.memoizedState),typeof d.componentDidMount=="function"){var O=Yt;O|=Xs,(e.mode&lr)!==ht&&(O|=Lo),e.flags|=O}}function v7(e,t,s,u){var d=e.stateNode,g=e.memoizedProps;d.props=g;var y=d.context,E=t.contextType,_=rs;if(typeof E=="object"&&E!==null)_=jn(E);else{var O=Sh(e,t,!0);_=wh(e,O)}var I=t.getDerivedStateFromProps,re=typeof I=="function"||typeof d.getSnapshotBeforeUpdate=="function";!re&&(typeof d.UNSAFE_componentWillReceiveProps=="function"||typeof d.componentWillReceiveProps=="function")&&(g!==s||y!==_)&&Y_(e,d,s,_),s_();var J=e.memoizedState,le=d.state=J;if(Zm(e,s,d,u),le=e.memoizedState,g===s&&J===le&&!Om()&&!Xm()){if(typeof d.componentDidMount=="function"){var fe=Yt;fe|=Xs,(e.mode&lr)!==ht&&(fe|=Lo),e.flags|=fe}return!1}typeof I=="function"&&(kC(e,t,I,s),le=e.memoizedState);var me=Xm()||j_(e,t,g,s,J,le,_);if(me){if(!re&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"){var qe=Yt;qe|=Xs,(e.mode&lr)!==ht&&(qe|=Lo),e.flags|=qe}}else{if(typeof d.componentDidMount=="function"){var vt=Yt;vt|=Xs,(e.mode&lr)!==ht&&(vt|=Lo),e.flags|=vt}e.memoizedProps=s,e.memoizedState=le}return d.props=s,d.state=le,d.context=_,me}function g7(e,t,s,u,d){var g=t.stateNode;a_(e,t);var y=t.memoizedProps,E=t.type===t.elementType?y:ho(t.type,y);g.props=E;var _=t.pendingProps,O=g.context,I=s.contextType,re=rs;if(typeof I=="object"&&I!==null)re=jn(I);else{var J=Sh(t,s,!0);re=wh(t,J)}var le=s.getDerivedStateFromProps,fe=typeof le=="function"||typeof g.getSnapshotBeforeUpdate=="function";!fe&&(typeof g.UNSAFE_componentWillReceiveProps=="function"||typeof g.componentWillReceiveProps=="function")&&(y!==_||O!==re)&&Y_(t,g,u,re),s_();var me=t.memoizedState,qe=g.state=me;if(Zm(t,u,g,d),qe=t.memoizedState,y===_&&me===qe&&!Om()&&!Xm()&&!He)return typeof g.componentDidUpdate=="function"&&(y!==e.memoizedProps||me!==e.memoizedState)&&(t.flags|=Yt),typeof g.getSnapshotBeforeUpdate=="function"&&(y!==e.memoizedProps||me!==e.memoizedState)&&(t.flags|=On),!1;typeof le=="function"&&(kC(t,s,le,u),qe=t.memoizedState);var vt=Xm()||j_(t,s,E,u,me,qe,re)||He;return vt?(!fe&&(typeof g.UNSAFE_componentWillUpdate=="function"||typeof g.componentWillUpdate=="function")&&(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(u,qe,re),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(u,qe,re)),typeof g.componentDidUpdate=="function"&&(t.flags|=Yt),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=On)):(typeof g.componentDidUpdate=="function"&&(y!==e.memoizedProps||me!==e.memoizedState)&&(t.flags|=Yt),typeof g.getSnapshotBeforeUpdate=="function"&&(y!==e.memoizedProps||me!==e.memoizedState)&&(t.flags|=On),t.memoizedProps=u,t.memoizedState=qe),g.props=u,g.state=qe,g.context=re,vt}function Uf(e,t){return{value:e,source:t,stack:Vs(t),digest:null}}function BC(e,t,s){return{value:e,source:null,stack:s??null,digest:t??null}}function m7(e,t){return!0}function MC(e,t){try{var s=m7(e,t);if(s===!1)return;var u=t.value,d=t.source,g=t.stack,y=g!==null?g:"";if(u!=null&&u._suppressLogging){if(e.tag===C)return;console.error(u)}var E=d?_t(d):null,_=E?"The above error occurred in the <"+E+"> component:":"The above error occurred in one of your React components:",O;if(e.tag===
|
|
164
|
+
`+me:""))}}}return u&&Bb(e,d,g),I}function p7(e,t){var s=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),s!==t.state&&(v("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_t(e)||"Component"),FC.enqueueReplaceState(t,t.state,null))}function Y_(e,t,s,u){var d=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,u),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,u),t.state!==d){{var g=_t(e)||"Component";SC.has(g)||(SC.add(g),v("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",g))}FC.enqueueReplaceState(t,t.state,null)}}function OC(e,t,s,u){h7(e,t,s);var d=e.stateNode;d.props=s,d.state=e.memoizedState,d.refs={},UE(e);var g=t.contextType;if(typeof g=="object"&&g!==null)d.context=jn(g);else{var y=Sh(e,t,!0);d.context=wh(e,y)}{if(d.state===s){var E=Zt(t)||"Component";TC.has(E)||(TC.add(E),v("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",E))}e.mode&Rr&&uo.recordLegacyContextWarning(e,d),uo.recordUnsafeLifecycleWarnings(e,d)}d.state=e.memoizedState;var _=t.getDerivedStateFromProps;if(typeof _=="function"&&(kC(e,t,_,s),d.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof d.getSnapshotBeforeUpdate!="function"&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(p7(e,d),Zm(e,s,d,u),d.state=e.memoizedState),typeof d.componentDidMount=="function"){var O=Yt;O|=Xs,(e.mode&lr)!==ht&&(O|=Lo),e.flags|=O}}function v7(e,t,s,u){var d=e.stateNode,g=e.memoizedProps;d.props=g;var y=d.context,E=t.contextType,_=rs;if(typeof E=="object"&&E!==null)_=jn(E);else{var O=Sh(e,t,!0);_=wh(e,O)}var I=t.getDerivedStateFromProps,re=typeof I=="function"||typeof d.getSnapshotBeforeUpdate=="function";!re&&(typeof d.UNSAFE_componentWillReceiveProps=="function"||typeof d.componentWillReceiveProps=="function")&&(g!==s||y!==_)&&Y_(e,d,s,_),s_();var J=e.memoizedState,le=d.state=J;if(Zm(e,s,d,u),le=e.memoizedState,g===s&&J===le&&!Om()&&!Xm()){if(typeof d.componentDidMount=="function"){var fe=Yt;fe|=Xs,(e.mode&lr)!==ht&&(fe|=Lo),e.flags|=fe}return!1}typeof I=="function"&&(kC(e,t,I,s),le=e.memoizedState);var me=Xm()||j_(e,t,g,s,J,le,_);if(me){if(!re&&(typeof d.UNSAFE_componentWillMount=="function"||typeof d.componentWillMount=="function")&&(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"){var qe=Yt;qe|=Xs,(e.mode&lr)!==ht&&(qe|=Lo),e.flags|=qe}}else{if(typeof d.componentDidMount=="function"){var vt=Yt;vt|=Xs,(e.mode&lr)!==ht&&(vt|=Lo),e.flags|=vt}e.memoizedProps=s,e.memoizedState=le}return d.props=s,d.state=le,d.context=_,me}function g7(e,t,s,u,d){var g=t.stateNode;a_(e,t);var y=t.memoizedProps,E=t.type===t.elementType?y:ho(t.type,y);g.props=E;var _=t.pendingProps,O=g.context,I=s.contextType,re=rs;if(typeof I=="object"&&I!==null)re=jn(I);else{var J=Sh(t,s,!0);re=wh(t,J)}var le=s.getDerivedStateFromProps,fe=typeof le=="function"||typeof g.getSnapshotBeforeUpdate=="function";!fe&&(typeof g.UNSAFE_componentWillReceiveProps=="function"||typeof g.componentWillReceiveProps=="function")&&(y!==_||O!==re)&&Y_(t,g,u,re),s_();var me=t.memoizedState,qe=g.state=me;if(Zm(t,u,g,d),qe=t.memoizedState,y===_&&me===qe&&!Om()&&!Xm()&&!He)return typeof g.componentDidUpdate=="function"&&(y!==e.memoizedProps||me!==e.memoizedState)&&(t.flags|=Yt),typeof g.getSnapshotBeforeUpdate=="function"&&(y!==e.memoizedProps||me!==e.memoizedState)&&(t.flags|=On),!1;typeof le=="function"&&(kC(t,s,le,u),qe=t.memoizedState);var vt=Xm()||j_(t,s,E,u,me,qe,re)||He;return vt?(!fe&&(typeof g.UNSAFE_componentWillUpdate=="function"||typeof g.componentWillUpdate=="function")&&(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(u,qe,re),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(u,qe,re)),typeof g.componentDidUpdate=="function"&&(t.flags|=Yt),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=On)):(typeof g.componentDidUpdate=="function"&&(y!==e.memoizedProps||me!==e.memoizedState)&&(t.flags|=Yt),typeof g.getSnapshotBeforeUpdate=="function"&&(y!==e.memoizedProps||me!==e.memoizedState)&&(t.flags|=On),t.memoizedProps=u,t.memoizedState=qe),g.props=u,g.state=qe,g.context=re,vt}function Uf(e,t){return{value:e,source:t,stack:Vs(t),digest:null}}function BC(e,t,s){return{value:e,source:null,stack:s??null,digest:t??null}}function m7(e,t){return!0}function MC(e,t){try{var s=m7(e,t);if(s===!1)return;var u=t.value,d=t.source,g=t.stack,y=g!==null?g:"";if(u!=null&&u._suppressLogging){if(e.tag===C)return;console.error(u)}var E=d?_t(d):null,_=E?"The above error occurred in the <"+E+"> component:":"The above error occurred in one of your React components:",O;if(e.tag===T)O=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
165
165
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var I=_t(e)||"Anonymous";O="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+I+".")}var re=_+`
|
|
166
166
|
`+y+`
|
|
167
167
|
|
|
168
|
-
`+(""+O);console.error(re)}catch(J){setTimeout(function(){throw J})}}var y7=typeof WeakMap=="function"?WeakMap:Map;function V_(e,t,s){var u=ou(Br,s);u.tag=PE,u.payload={element:null};var d=t.value;return u.callback=function(){c9(d),MC(e,t)},u}function NC(e,t,s){var u=ou(Br,s);u.tag=PE;var d=e.type.getDerivedStateFromError;if(typeof d=="function"){var g=t.value;u.payload=function(){return d(g)},u.callback=function(){nT(e),MC(e,t)}}var y=e.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(u.callback=function(){nT(e),MC(e,t),typeof d!="function"&&l9(this);var _=t.value,O=t.stack;this.componentDidCatch(_,{componentStack:O!==null?O:""}),typeof d!="function"&&(Yi(e.lanes,Ct)||v("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",_t(e)||"Unknown"))}),u}function W_(e,t,s){var u=e.pingCache,d;if(u===null?(u=e.pingCache=new y7,d=new Set,u.set(t,d)):(d=u.get(t),d===void 0&&(d=new Set,u.set(t,d))),!d.has(s)){d.add(s);var g=f9.bind(null,e,t,s);zi&&hv(e,s),t.then(g,g)}}function x7(e,t,s,u){var d=e.updateQueue;if(d===null){var g=new Set;g.add(s),e.updateQueue=g}else d.add(s)}function E7(e,t){var s=e.tag;if((e.mode&Ht)===ht&&(s===w||s===U||s===ee)){var u=e.alternate;u?(e.updateQueue=u.updateQueue,e.memoizedState=u.memoizedState,e.lanes=u.lanes):(e.updateQueue=null,e.memoizedState=null)}}function G_(e){var t=e;do{if(t.tag===K&&e7(t))return t;t=t.return}while(t!==null);return null}function K_(e,t,s,u,d){if((e.mode&Ht)===ht){if(e===t)e.flags|=$n;else{if(e.flags|=ft,s.flags|=_d,s.flags&=-52805,s.tag===C){var g=s.alternate;if(g===null)s.tag=Ee;else{var y=ou(Br,Ct);y.tag=Wm,cc(s,y,Ct)}}s.lanes=Ot(s.lanes,Ct)}return e}return e.flags|=$n,e.lanes=d,e}function C7(e,t,s,u,d){if(s.flags|=Kc,zi&&hv(e,d),u!==null&&typeof u=="object"&&typeof u.then=="function"){var g=u;E7(s),bi()&&s.mode&Ht&&Lb();var y=G_(t);if(y!==null){y.flags&=~ci,K_(y,t,s,e,d),y.mode&Ht&&W_(e,g,d),x7(y,e,g);return}else{if(!Hg(d)){W_(e,g,d),p2();return}var E=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");u=E}}else if(bi()&&s.mode&Ht){Lb();var _=G_(t);if(_!==null){(_.flags&$n)===dt&&(_.flags|=ci),K_(_,t,s,e,d),TE(Uf(u,s));return}}u=Uf(u,s),e9(u);var O=t;do{switch(O.tag){case R:{var I=u;O.flags|=$n;var re=ff(d);O.lanes=Ot(O.lanes,re);var J=V_(O,I,re);jE(O,J);return}case C:var le=u,fe=O.type,me=O.stateNode;if((O.flags&ft)===dt&&(typeof fe.getDerivedStateFromError=="function"||me!==null&&typeof me.componentDidCatch=="function"&&!GD(me))){O.flags|=$n;var qe=ff(d);O.lanes=Ot(O.lanes,qe);var vt=NC(O,le,qe);jE(O,vt);return}break}O=O.return}while(O!==null)}function S7(){return null}var Zp=i.ReactCurrentOwner,po=!1,HC,Xp,IC,$C,PC,jf,LC,Sy,Jp;HC={},Xp={},IC={},$C={},PC={},jf=!1,LC={},Sy={},Jp={};function ca(e,t,s,u){e===null?t.child=Xb(t,null,s,u):t.child=Th(t,e.child,s,u)}function w7(e,t,s,u){t.child=Th(t,e.child,null,u),t.child=Th(t,null,s,u)}function Q_(e,t,s,u,d){if(t.type!==t.elementType){var g=s.propTypes;g&&oo(g,u,"prop",Zt(s))}var y=s.render,E=t.ref,_,O;Ah(t,d),sa(t);{if(Zp.current=t,Fn(!0),_=Nh(e,t,y,u,E,d),O=Hh(),t.mode&Rr){Jr(!0);try{_=Nh(e,t,y,u,E,d),O=Hh()}finally{Jr(!1)}}Fn(!1)}return oa(),e!==null&&!po?(d_(e,t,d),lu(e,t,d)):(bi()&&O&&CE(t),t.flags|=Za,ca(e,t,_,d),t.child)}function Z_(e,t,s,u,d){if(e===null){var g=s.type;if(R9(g)&&s.compare===null&&s.defaultProps===void 0){var y=g;return y=qh(g),t.tag=ee,t.type=y,zC(t,g),X_(e,t,y,u,d)}{var E=g.propTypes;if(E&&oo(E,u,"prop",Zt(g)),s.defaultProps!==void 0){var _=Zt(g)||"Unknown";Jp[_]||(v("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",_),Jp[_]=!0)}}var O=_2(s.type,null,u,t,t.mode,d);return O.ref=t.ref,O.return=t,t.child=O,O}{var I=s.type,re=I.propTypes;re&&oo(re,u,"prop",Zt(I))}var J=e.child,le=KC(e,d);if(!le){var fe=J.memoizedProps,me=s.compare;if(me=me!==null?me:st,me(fe,u)&&e.ref===t.ref)return lu(e,t,d)}t.flags|=Za;var qe=Wf(J,u);return qe.ref=t.ref,qe.return=t,t.child=qe,qe}function X_(e,t,s,u,d){if(t.type!==t.elementType){var g=t.elementType;if(g.$$typeof===Dt){var y=g,E=y._payload,_=y._init;try{g=_(E)}catch{g=null}var O=g&&g.propTypes;O&&oo(O,u,"prop",Zt(g))}}if(e!==null){var I=e.memoizedProps;if(st(I,u)&&e.ref===t.ref&&t.type===e.type)if(po=!1,t.pendingProps=u=I,KC(e,d))(e.flags&_d)!==dt&&(po=!0);else return t.lanes=e.lanes,lu(e,t,d)}return UC(e,t,s,u,d)}function J_(e,t,s){var u=t.pendingProps,d=u.children,g=e!==null?e.memoizedState:null;if(u.mode==="hidden"||_e)if((t.mode&Ht)===ht){var y={baseLanes:Ae,cachePool:null,transitions:null};t.memoizedState=y,Ny(t,s)}else if(Yi(s,qi)){var re={baseLanes:Ae,cachePool:null,transitions:null};t.memoizedState=re;var J=g!==null?g.baseLanes:s;Ny(t,J)}else{var E=null,_;if(g!==null){var O=g.baseLanes;_=Ot(O,s)}else _=s;t.lanes=t.childLanes=qi;var I={baseLanes:_,cachePool:E,transitions:null};return t.memoizedState=I,t.updateQueue=null,Ny(t,_),null}else{var le;g!==null?(le=Ot(g.baseLanes,s),t.memoizedState=null):le=s,Ny(t,le)}return ca(e,t,d,s),t.child}function b7(e,t,s){var u=t.pendingProps;return ca(e,t,u,s),t.child}function _7(e,t,s){var u=t.pendingProps.children;return ca(e,t,u,s),t.child}function D7(e,t,s){{t.flags|=Yt;{var u=t.stateNode;u.effectDuration=0,u.passiveEffectDuration=0}}var d=t.pendingProps,g=d.children;return ca(e,t,g,s),t.child}function eD(e,t){var s=t.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(t.flags|=an,t.flags|=Yu)}function UC(e,t,s,u,d){if(t.type!==t.elementType){var g=s.propTypes;g&&oo(g,u,"prop",Zt(s))}var y;{var E=Sh(t,s,!0);y=wh(t,E)}var _,O;Ah(t,d),sa(t);{if(Zp.current=t,Fn(!0),_=Nh(e,t,s,u,y,d),O=Hh(),t.mode&Rr){Jr(!0);try{_=Nh(e,t,s,u,y,d),O=Hh()}finally{Jr(!1)}}Fn(!1)}return oa(),e!==null&&!po?(d_(e,t,d),lu(e,t,d)):(bi()&&O&&CE(t),t.flags|=Za,ca(e,t,_,d),t.child)}function tD(e,t,s,u,d){{switch(z9(t)){case!1:{var g=t.stateNode,y=t.type,E=new y(t.memoizedProps,g.context),_=E.state;g.updater.enqueueSetState(g,_,null);break}case!0:{t.flags|=ft,t.flags|=$n;var O=new Error("Simulated error coming from DevTools"),I=ff(d);t.lanes=Ot(t.lanes,I);var re=NC(t,Uf(O,t),I);jE(t,re);break}}if(t.type!==t.elementType){var J=s.propTypes;J&&oo(J,u,"prop",Zt(s))}}var le;nl(s)?(le=!0,Mm(t)):le=!1,Ah(t,d);var fe=t.stateNode,me;fe===null?(by(e,t),q_(t,s,u),OC(t,s,u,d),me=!0):e===null?me=v7(t,s,u,d):me=g7(e,t,s,u,d);var qe=jC(e,t,s,me,le,d);{var vt=t.stateNode;me&&vt.props!==u&&(jf||v("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",_t(t)||"a component"),jf=!0)}return qe}function jC(e,t,s,u,d,g){eD(e,t);var y=(t.flags&ft)!==dt;if(!u&&!y)return d&&Hb(t,s,!1),lu(e,t,g);var E=t.stateNode;Zp.current=t;var _;if(y&&typeof s.getDerivedStateFromError!="function")_=null,P_();else{sa(t);{if(Fn(!0),_=E.render(),t.mode&Rr){Jr(!0);try{E.render()}finally{Jr(!1)}}Fn(!1)}oa()}return t.flags|=Za,e!==null&&y?w7(e,t,_,g):ca(e,t,_,g),t.memoizedState=E.state,d&&Hb(t,s,!0),t.child}function rD(e){var t=e.stateNode;t.pendingContext?Mb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mb(e,t.context,!1),zE(e,t.containerInfo)}function T7(e,t,s){if(rD(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var u=t.pendingProps,d=t.memoizedState,g=d.element;a_(e,t),Zm(t,u,null,s);var y=t.memoizedState;t.stateNode;var E=y.element;if(d.isDehydrated){var _={element:E,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},O=t.updateQueue;if(O.baseState=_,t.memoizedState=_,t.flags&ci){var I=Uf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return nD(e,t,E,s,I)}else if(E!==g){var re=Uf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return nD(e,t,E,s,re)}else{k5(t);var J=Xb(t,null,E,s);t.child=J;for(var le=J;le;)le.flags=le.flags&~Xr|Li,le=le.sibling}}else{if(Dh(),E===g)return lu(e,t,s);ca(e,t,E,s)}return t.child}function nD(e,t,s,u,d){return Dh(),TE(d),t.flags|=ci,ca(e,t,s,u),t.child}function R7(e,t,s){u_(t),e===null&&DE(t);var u=t.type,d=t.pendingProps,g=e!==null?e.memoizedProps:null,y=d.children,E=oE(u,d);return E?y=null:g!==null&&oE(u,g)&&(t.flags|=Da),eD(e,t),ca(e,t,y,s),t.child}function A7(e,t){return e===null&&DE(t),null}function k7(e,t,s,u){by(e,t);var d=t.pendingProps,g=s,y=g._payload,E=g._init,_=E(y);t.type=_;var O=t.tag=A9(_),I=ho(_,d),re;switch(O){case w:return zC(t,_),t.type=_=qh(_),re=UC(null,t,_,I,u),re;case C:return t.type=_=x2(_),re=tD(null,t,_,I,u),re;case U:return t.type=_=E2(_),re=Q_(null,t,_,I,u),re;case X:{if(t.type!==t.elementType){var J=_.propTypes;J&&oo(J,I,"prop",Zt(_))}return re=Z_(null,t,_,ho(_.type,I),u),re}}var le="";throw _!==null&&typeof _=="object"&&_.$$typeof===Dt&&(le=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+_+". "+("Lazy element type must resolve to a class or function."+le))}function F7(e,t,s,u,d){by(e,t),t.tag=C;var g;return nl(s)?(g=!0,Mm(t)):g=!1,Ah(t,d),q_(t,s,u),OC(t,s,u,d),jC(null,t,s,!0,g,d)}function O7(e,t,s,u){by(e,t);var d=t.pendingProps,g;{var y=Sh(t,s,!1);g=wh(t,y)}Ah(t,u);var E,_;sa(t);{if(s.prototype&&typeof s.prototype.render=="function"){var O=Zt(s)||"Unknown";HC[O]||(v("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",O,O),HC[O]=!0)}t.mode&Rr&&uo.recordLegacyContextWarning(t,null),Fn(!0),Zp.current=t,E=Nh(null,t,s,d,g,u),_=Hh(),Fn(!1)}if(oa(),t.flags|=Za,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0){var I=Zt(s)||"Unknown";Xp[I]||(v("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",I,I,I),Xp[I]=!0)}if(typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0){{var re=Zt(s)||"Unknown";Xp[re]||(v("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),Xp[re]=!0)}t.tag=C,t.memoizedState=null,t.updateQueue=null;var J=!1;return nl(s)?(J=!0,Mm(t)):J=!1,t.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,UE(t),z_(t,E),OC(t,s,d,u),jC(null,t,s,!0,J,u)}else{if(t.tag=w,t.mode&Rr){Jr(!0);try{E=Nh(null,t,s,d,g,u),_=Hh()}finally{Jr(!1)}}return bi()&&_&&CE(t),ca(null,t,E,u),zC(t,s),t.child}}function zC(e,t){{if(t&&t.childContextTypes&&v("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var s="",u=mi();u&&(s+=`
|
|
168
|
+
`+(""+O);console.error(re)}catch(J){setTimeout(function(){throw J})}}var y7=typeof WeakMap=="function"?WeakMap:Map;function V_(e,t,s){var u=ou(Br,s);u.tag=PE,u.payload={element:null};var d=t.value;return u.callback=function(){c9(d),MC(e,t)},u}function NC(e,t,s){var u=ou(Br,s);u.tag=PE;var d=e.type.getDerivedStateFromError;if(typeof d=="function"){var g=t.value;u.payload=function(){return d(g)},u.callback=function(){nT(e),MC(e,t)}}var y=e.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(u.callback=function(){nT(e),MC(e,t),typeof d!="function"&&l9(this);var _=t.value,O=t.stack;this.componentDidCatch(_,{componentStack:O!==null?O:""}),typeof d!="function"&&(Yi(e.lanes,Ct)||v("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",_t(e)||"Unknown"))}),u}function W_(e,t,s){var u=e.pingCache,d;if(u===null?(u=e.pingCache=new y7,d=new Set,u.set(t,d)):(d=u.get(t),d===void 0&&(d=new Set,u.set(t,d))),!d.has(s)){d.add(s);var g=f9.bind(null,e,t,s);zi&&hv(e,s),t.then(g,g)}}function x7(e,t,s,u){var d=e.updateQueue;if(d===null){var g=new Set;g.add(s),e.updateQueue=g}else d.add(s)}function E7(e,t){var s=e.tag;if((e.mode&Ht)===ht&&(s===b||s===U||s===ee)){var u=e.alternate;u?(e.updateQueue=u.updateQueue,e.memoizedState=u.memoizedState,e.lanes=u.lanes):(e.updateQueue=null,e.memoizedState=null)}}function G_(e){var t=e;do{if(t.tag===K&&e7(t))return t;t=t.return}while(t!==null);return null}function K_(e,t,s,u,d){if((e.mode&Ht)===ht){if(e===t)e.flags|=$n;else{if(e.flags|=ft,s.flags|=_d,s.flags&=-52805,s.tag===C){var g=s.alternate;if(g===null)s.tag=Ee;else{var y=ou(Br,Ct);y.tag=Wm,cc(s,y,Ct)}}s.lanes=Ot(s.lanes,Ct)}return e}return e.flags|=$n,e.lanes=d,e}function C7(e,t,s,u,d){if(s.flags|=Kc,zi&&hv(e,d),u!==null&&typeof u=="object"&&typeof u.then=="function"){var g=u;E7(s),bi()&&s.mode&Ht&&Lb();var y=G_(t);if(y!==null){y.flags&=~ci,K_(y,t,s,e,d),y.mode&Ht&&W_(e,g,d),x7(y,e,g);return}else{if(!Hg(d)){W_(e,g,d),p2();return}var E=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");u=E}}else if(bi()&&s.mode&Ht){Lb();var _=G_(t);if(_!==null){(_.flags&$n)===dt&&(_.flags|=ci),K_(_,t,s,e,d),TE(Uf(u,s));return}}u=Uf(u,s),e9(u);var O=t;do{switch(O.tag){case T:{var I=u;O.flags|=$n;var re=ff(d);O.lanes=Ot(O.lanes,re);var J=V_(O,I,re);jE(O,J);return}case C:var le=u,fe=O.type,me=O.stateNode;if((O.flags&ft)===dt&&(typeof fe.getDerivedStateFromError=="function"||me!==null&&typeof me.componentDidCatch=="function"&&!GD(me))){O.flags|=$n;var qe=ff(d);O.lanes=Ot(O.lanes,qe);var vt=NC(O,le,qe);jE(O,vt);return}break}O=O.return}while(O!==null)}function S7(){return null}var Zp=i.ReactCurrentOwner,po=!1,HC,Xp,IC,$C,PC,jf,LC,Sy,Jp;HC={},Xp={},IC={},$C={},PC={},jf=!1,LC={},Sy={},Jp={};function ca(e,t,s,u){e===null?t.child=Xb(t,null,s,u):t.child=Th(t,e.child,s,u)}function w7(e,t,s,u){t.child=Th(t,e.child,null,u),t.child=Th(t,null,s,u)}function Q_(e,t,s,u,d){if(t.type!==t.elementType){var g=s.propTypes;g&&oo(g,u,"prop",Zt(s))}var y=s.render,E=t.ref,_,O;Ah(t,d),sa(t);{if(Zp.current=t,Fn(!0),_=Nh(e,t,y,u,E,d),O=Hh(),t.mode&Rr){Jr(!0);try{_=Nh(e,t,y,u,E,d),O=Hh()}finally{Jr(!1)}}Fn(!1)}return oa(),e!==null&&!po?(d_(e,t,d),lu(e,t,d)):(bi()&&O&&CE(t),t.flags|=Za,ca(e,t,_,d),t.child)}function Z_(e,t,s,u,d){if(e===null){var g=s.type;if(R9(g)&&s.compare===null&&s.defaultProps===void 0){var y=g;return y=qh(g),t.tag=ee,t.type=y,zC(t,g),X_(e,t,y,u,d)}{var E=g.propTypes;if(E&&oo(E,u,"prop",Zt(g)),s.defaultProps!==void 0){var _=Zt(g)||"Unknown";Jp[_]||(v("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",_),Jp[_]=!0)}}var O=_2(s.type,null,u,t,t.mode,d);return O.ref=t.ref,O.return=t,t.child=O,O}{var I=s.type,re=I.propTypes;re&&oo(re,u,"prop",Zt(I))}var J=e.child,le=KC(e,d);if(!le){var fe=J.memoizedProps,me=s.compare;if(me=me!==null?me:st,me(fe,u)&&e.ref===t.ref)return lu(e,t,d)}t.flags|=Za;var qe=Wf(J,u);return qe.ref=t.ref,qe.return=t,t.child=qe,qe}function X_(e,t,s,u,d){if(t.type!==t.elementType){var g=t.elementType;if(g.$$typeof===Dt){var y=g,E=y._payload,_=y._init;try{g=_(E)}catch{g=null}var O=g&&g.propTypes;O&&oo(O,u,"prop",Zt(g))}}if(e!==null){var I=e.memoizedProps;if(st(I,u)&&e.ref===t.ref&&t.type===e.type)if(po=!1,t.pendingProps=u=I,KC(e,d))(e.flags&_d)!==dt&&(po=!0);else return t.lanes=e.lanes,lu(e,t,d)}return UC(e,t,s,u,d)}function J_(e,t,s){var u=t.pendingProps,d=u.children,g=e!==null?e.memoizedState:null;if(u.mode==="hidden"||_e)if((t.mode&Ht)===ht){var y={baseLanes:Ae,cachePool:null,transitions:null};t.memoizedState=y,Ny(t,s)}else if(Yi(s,qi)){var re={baseLanes:Ae,cachePool:null,transitions:null};t.memoizedState=re;var J=g!==null?g.baseLanes:s;Ny(t,J)}else{var E=null,_;if(g!==null){var O=g.baseLanes;_=Ot(O,s)}else _=s;t.lanes=t.childLanes=qi;var I={baseLanes:_,cachePool:E,transitions:null};return t.memoizedState=I,t.updateQueue=null,Ny(t,_),null}else{var le;g!==null?(le=Ot(g.baseLanes,s),t.memoizedState=null):le=s,Ny(t,le)}return ca(e,t,d,s),t.child}function b7(e,t,s){var u=t.pendingProps;return ca(e,t,u,s),t.child}function _7(e,t,s){var u=t.pendingProps.children;return ca(e,t,u,s),t.child}function D7(e,t,s){{t.flags|=Yt;{var u=t.stateNode;u.effectDuration=0,u.passiveEffectDuration=0}}var d=t.pendingProps,g=d.children;return ca(e,t,g,s),t.child}function eD(e,t){var s=t.ref;(e===null&&s!==null||e!==null&&e.ref!==s)&&(t.flags|=an,t.flags|=Yu)}function UC(e,t,s,u,d){if(t.type!==t.elementType){var g=s.propTypes;g&&oo(g,u,"prop",Zt(s))}var y;{var E=Sh(t,s,!0);y=wh(t,E)}var _,O;Ah(t,d),sa(t);{if(Zp.current=t,Fn(!0),_=Nh(e,t,s,u,y,d),O=Hh(),t.mode&Rr){Jr(!0);try{_=Nh(e,t,s,u,y,d),O=Hh()}finally{Jr(!1)}}Fn(!1)}return oa(),e!==null&&!po?(d_(e,t,d),lu(e,t,d)):(bi()&&O&&CE(t),t.flags|=Za,ca(e,t,_,d),t.child)}function tD(e,t,s,u,d){{switch(z9(t)){case!1:{var g=t.stateNode,y=t.type,E=new y(t.memoizedProps,g.context),_=E.state;g.updater.enqueueSetState(g,_,null);break}case!0:{t.flags|=ft,t.flags|=$n;var O=new Error("Simulated error coming from DevTools"),I=ff(d);t.lanes=Ot(t.lanes,I);var re=NC(t,Uf(O,t),I);jE(t,re);break}}if(t.type!==t.elementType){var J=s.propTypes;J&&oo(J,u,"prop",Zt(s))}}var le;nl(s)?(le=!0,Mm(t)):le=!1,Ah(t,d);var fe=t.stateNode,me;fe===null?(by(e,t),q_(t,s,u),OC(t,s,u,d),me=!0):e===null?me=v7(t,s,u,d):me=g7(e,t,s,u,d);var qe=jC(e,t,s,me,le,d);{var vt=t.stateNode;me&&vt.props!==u&&(jf||v("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",_t(t)||"a component"),jf=!0)}return qe}function jC(e,t,s,u,d,g){eD(e,t);var y=(t.flags&ft)!==dt;if(!u&&!y)return d&&Hb(t,s,!1),lu(e,t,g);var E=t.stateNode;Zp.current=t;var _;if(y&&typeof s.getDerivedStateFromError!="function")_=null,P_();else{sa(t);{if(Fn(!0),_=E.render(),t.mode&Rr){Jr(!0);try{E.render()}finally{Jr(!1)}}Fn(!1)}oa()}return t.flags|=Za,e!==null&&y?w7(e,t,_,g):ca(e,t,_,g),t.memoizedState=E.state,d&&Hb(t,s,!0),t.child}function rD(e){var t=e.stateNode;t.pendingContext?Mb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Mb(e,t.context,!1),zE(e,t.containerInfo)}function T7(e,t,s){if(rD(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var u=t.pendingProps,d=t.memoizedState,g=d.element;a_(e,t),Zm(t,u,null,s);var y=t.memoizedState;t.stateNode;var E=y.element;if(d.isDehydrated){var _={element:E,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},O=t.updateQueue;if(O.baseState=_,t.memoizedState=_,t.flags&ci){var I=Uf(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return nD(e,t,E,s,I)}else if(E!==g){var re=Uf(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return nD(e,t,E,s,re)}else{k5(t);var J=Xb(t,null,E,s);t.child=J;for(var le=J;le;)le.flags=le.flags&~Xr|Li,le=le.sibling}}else{if(Dh(),E===g)return lu(e,t,s);ca(e,t,E,s)}return t.child}function nD(e,t,s,u,d){return Dh(),TE(d),t.flags|=ci,ca(e,t,s,u),t.child}function R7(e,t,s){u_(t),e===null&&DE(t);var u=t.type,d=t.pendingProps,g=e!==null?e.memoizedProps:null,y=d.children,E=oE(u,d);return E?y=null:g!==null&&oE(u,g)&&(t.flags|=Da),eD(e,t),ca(e,t,y,s),t.child}function A7(e,t){return e===null&&DE(t),null}function k7(e,t,s,u){by(e,t);var d=t.pendingProps,g=s,y=g._payload,E=g._init,_=E(y);t.type=_;var O=t.tag=A9(_),I=ho(_,d),re;switch(O){case b:return zC(t,_),t.type=_=qh(_),re=UC(null,t,_,I,u),re;case C:return t.type=_=x2(_),re=tD(null,t,_,I,u),re;case U:return t.type=_=E2(_),re=Q_(null,t,_,I,u),re;case X:{if(t.type!==t.elementType){var J=_.propTypes;J&&oo(J,I,"prop",Zt(_))}return re=Z_(null,t,_,ho(_.type,I),u),re}}var le="";throw _!==null&&typeof _=="object"&&_.$$typeof===Dt&&(le=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+_+". "+("Lazy element type must resolve to a class or function."+le))}function F7(e,t,s,u,d){by(e,t),t.tag=C;var g;return nl(s)?(g=!0,Mm(t)):g=!1,Ah(t,d),q_(t,s,u),OC(t,s,u,d),jC(null,t,s,!0,g,d)}function O7(e,t,s,u){by(e,t);var d=t.pendingProps,g;{var y=Sh(t,s,!1);g=wh(t,y)}Ah(t,u);var E,_;sa(t);{if(s.prototype&&typeof s.prototype.render=="function"){var O=Zt(s)||"Unknown";HC[O]||(v("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",O,O),HC[O]=!0)}t.mode&Rr&&uo.recordLegacyContextWarning(t,null),Fn(!0),Zp.current=t,E=Nh(null,t,s,d,g,u),_=Hh(),Fn(!1)}if(oa(),t.flags|=Za,typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0){var I=Zt(s)||"Unknown";Xp[I]||(v("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",I,I,I),Xp[I]=!0)}if(typeof E=="object"&&E!==null&&typeof E.render=="function"&&E.$$typeof===void 0){{var re=Zt(s)||"Unknown";Xp[re]||(v("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",re,re,re),Xp[re]=!0)}t.tag=C,t.memoizedState=null,t.updateQueue=null;var J=!1;return nl(s)?(J=!0,Mm(t)):J=!1,t.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,UE(t),z_(t,E),OC(t,s,d,u),jC(null,t,s,!0,J,u)}else{if(t.tag=b,t.mode&Rr){Jr(!0);try{E=Nh(null,t,s,d,g,u),_=Hh()}finally{Jr(!1)}}return bi()&&_&&CE(t),ca(null,t,E,u),zC(t,s),t.child}}function zC(e,t){{if(t&&t.childContextTypes&&v("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var s="",u=mi();u&&(s+=`
|
|
169
169
|
|
|
170
|
-
Check the render method of \``+u+"`.");var d=u||"",g=e._debugSource;g&&(d=g.fileName+":"+g.lineNumber),PC[d]||(PC[d]=!0,v("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(t.defaultProps!==void 0){var y=Zt(t)||"Unknown";Jp[y]||(v("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",y),Jp[y]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var E=Zt(t)||"Unknown";$C[E]||(v("%s: Function components do not support getDerivedStateFromProps.",E),$C[E]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var _=Zt(t)||"Unknown";IC[_]||(v("%s: Function components do not support contextType.",_),IC[_]=!0)}}}var qC={dehydrated:null,treeContext:null,retryLane:nr};function YC(e){return{baseLanes:e,cachePool:S7(),transitions:null}}function B7(e,t){var s=null;return{baseLanes:Ot(e.baseLanes,t),cachePool:s,transitions:e.transitions}}function M7(e,t,s,u){if(t!==null){var d=t.memoizedState;if(d===null)return!1}return VE(e,jp)}function N7(e,t){return df(e.childLanes,t)}function iD(e,t,s){var u=t.pendingProps;q9(t)&&(t.flags|=ft);var d=co.current,g=!1,y=(t.flags&ft)!==dt;if(y||M7(d,e)?(g=!0,t.flags&=~ft):(e===null||e.memoizedState!==null)&&(d=J5(d,f_)),d=Fh(d),dc(t,d),e===null){DE(t);var E=t.memoizedState;if(E!==null){var _=E.dehydrated;if(_!==null)return L7(t,_)}var O=u.children,I=u.fallback;if(g){var re=H7(t,O,I,s),J=t.child;return J.memoizedState=YC(s),t.memoizedState=qC,re}else return VC(t,O)}else{var le=e.memoizedState;if(le!==null){var fe=le.dehydrated;if(fe!==null)return U7(e,t,y,u,fe,le,s)}if(g){var me=u.fallback,qe=u.children,vt=$7(e,t,qe,me,s),ct=t.child,Gt=e.child.memoizedState;return ct.memoizedState=Gt===null?YC(s):B7(Gt,s),ct.childLanes=N7(e,s),t.memoizedState=qC,vt}else{var Ut=u.children,ie=I7(e,t,Ut,s);return t.memoizedState=null,ie}}}function VC(e,t,s){var u=e.mode,d={mode:"visible",children:t},g=WC(d,u);return g.return=e,e.child=g,g}function H7(e,t,s,u){var d=e.mode,g=e.child,y={mode:"hidden",children:t},E,_;return(d&Ht)===ht&&g!==null?(E=g,E.childLanes=Ae,E.pendingProps=y,e.mode&or&&(E.actualDuration=0,E.actualStartTime=-1,E.selfBaseDuration=0,E.treeBaseDuration=0),_=Ec(s,d,u,null)):(E=WC(y,d),_=Ec(s,d,u,null)),E.return=e,_.return=e,E.sibling=_,e.child=E,_}function WC(e,t,s){return aT(e,t,Ae,null)}function aD(e,t){return Wf(e,t)}function I7(e,t,s,u){var d=e.child,g=d.sibling,y=aD(d,{mode:"visible",children:s});if((t.mode&Ht)===ht&&(y.lanes=u),y.return=t,y.sibling=null,g!==null){var E=t.deletions;E===null?(t.deletions=[g],t.flags|=_a):E.push(g)}return t.child=y,y}function $7(e,t,s,u,d){var g=t.mode,y=e.child,E=y.sibling,_={mode:"hidden",children:s},O;if((g&Ht)===ht&&t.child!==y){var I=t.child;O=I,O.childLanes=Ae,O.pendingProps=_,t.mode&or&&(O.actualDuration=0,O.actualStartTime=-1,O.selfBaseDuration=y.selfBaseDuration,O.treeBaseDuration=y.treeBaseDuration),t.deletions=null}else O=aD(y,_),O.subtreeFlags=y.subtreeFlags&xn;var re;return E!==null?re=Wf(E,u):(re=Ec(u,g,d,null),re.flags|=Xr),re.return=t,O.return=t,O.sibling=re,t.child=O,re}function wy(e,t,s,u){u!==null&&TE(u),Th(t,e.child,null,s);var d=t.pendingProps,g=d.children,y=VC(t,g);return y.flags|=Xr,t.memoizedState=null,y}function P7(e,t,s,u,d){var g=t.mode,y={mode:"visible",children:s},E=WC(y,g),_=Ec(u,g,d,null);return _.flags|=Xr,E.return=t,_.return=t,E.sibling=_,t.child=E,(t.mode&Ht)!==ht&&Th(t,e.child,null,d),_}function L7(e,t,s){return(e.mode&Ht)===ht?(v("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Ct):fE(t)?e.lanes=fi:e.lanes=qi,null}function U7(e,t,s,u,d,g,y){if(s)if(t.flags&ci){t.flags&=~ci;var ie=BC(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return wy(e,t,y,ie)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=ft,null;var ye=u.children,ae=u.fallback,Me=P7(e,t,ye,ae,y),Ze=t.child;return Ze.memoizedState=YC(y),t.memoizedState=qC,Me}else{if(R5(),(t.mode&Ht)===ht)return wy(e,t,y,null);if(fE(d)){var E,_,O;{var I=Y3(d);E=I.digest,_=I.message,O=I.stack}var re;_?re=new Error(_):re=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var J=BC(re,E,O);return wy(e,t,y,J)}var le=Yi(y,e.childLanes);if(po||le){var fe=My();if(fe!==null){var me=rp(fe,y);if(me!==nr&&me!==g.retryLane){g.retryLane=me;var qe=Br;Na(e,me),ai(fe,e,me,qe)}}p2();var vt=BC(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return wy(e,t,y,vt)}else if(Rb(d)){t.flags|=ft,t.child=e.child;var ct=d9.bind(null,e);return V3(d,ct),null}else{F5(t,d,g.treeContext);var Gt=u.children,Ut=VC(t,Gt);return Ut.flags|=Li,Ut}}}function sD(e,t,s){e.lanes=Ot(e.lanes,t);var u=e.alternate;u!==null&&(u.lanes=Ot(u.lanes,t)),IE(e.return,t,s)}function j7(e,t,s){for(var u=t;u!==null;){if(u.tag===K){var d=u.memoizedState;d!==null&&sD(u,s,e)}else if(u.tag===F)sD(u,s,e);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)return;for(;u.sibling===null;){if(u.return===null||u.return===e)return;u=u.return}u.sibling.return=u.return,u=u.sibling}}function z7(e){for(var t=e,s=null;t!==null;){var u=t.alternate;u!==null&&ty(u)===null&&(s=t),t=t.sibling}return s}function q7(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!LC[e])if(LC[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:v('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else v('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function Y7(e,t){e!==void 0&&!Sy[e]&&(e!=="collapsed"&&e!=="hidden"?(Sy[e]=!0,v('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Sy[e]=!0,v('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function oD(e,t){{var s=Mt(e),u=!s&&typeof Ft(e)=="function";if(s||u){var d=s?"array":"iterable";return v("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",d,t,d),!1}}return!0}function V7(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Mt(e)){for(var s=0;s<e.length;s++)if(!oD(e[s],s))return}else{var u=Ft(e);if(typeof u=="function"){var d=u.call(e);if(d)for(var g=d.next(),y=0;!g.done;g=d.next()){if(!oD(g.value,y))return;y++}}else v('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function GC(e,t,s,u,d){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:s,tailMode:d}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=s,g.tailMode=d)}function lD(e,t,s){var u=t.pendingProps,d=u.revealOrder,g=u.tail,y=u.children;q7(d),Y7(g,d),V7(y,d),ca(e,t,y,s);var E=co.current,_=VE(E,jp);if(_)E=WE(E,jp),t.flags|=ft;else{var O=e!==null&&(e.flags&ft)!==dt;O&&j7(t,t.child,s),E=Fh(E)}if(dc(t,E),(t.mode&Ht)===ht)t.memoizedState=null;else switch(d){case"forwards":{var I=z7(t.child),re;I===null?(re=t.child,t.child=null):(re=I.sibling,I.sibling=null),GC(t,!1,re,I,g);break}case"backwards":{var J=null,le=t.child;for(t.child=null;le!==null;){var fe=le.alternate;if(fe!==null&&ty(fe)===null){t.child=le;break}var me=le.sibling;le.sibling=J,J=le,le=me}GC(t,!0,J,null,g);break}case"together":{GC(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function W7(e,t,s){zE(t,t.stateNode.containerInfo);var u=t.pendingProps;return e===null?t.child=Th(t,null,u,s):ca(e,t,u,s),t.child}var uD=!1;function G7(e,t,s){var u=t.type,d=u._context,g=t.pendingProps,y=t.memoizedProps,E=g.value;{"value"in g||uD||(uD=!0,v("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var _=t.type.propTypes;_&&oo(_,g,"prop","Context.Provider")}if(t_(t,d,E),y!==null){var O=y.value;if(Oe(O,E)){if(y.children===g.children&&!Om())return lu(e,t,s)}else q5(t,d,s)}var I=g.children;return ca(e,t,I,s),t.child}var cD=!1;function K7(e,t,s){var u=t.type;u._context===void 0?u!==u.Consumer&&(cD||(cD=!0,v("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):u=u._context;var d=t.pendingProps,g=d.children;typeof g!="function"&&v("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Ah(t,s);var y=jn(u);sa(t);var E;return Zp.current=t,Fn(!0),E=g(y),Fn(!1),oa(),t.flags|=Za,ca(e,t,E,s),t.child}function ev(){po=!0}function by(e,t){(t.mode&Ht)===ht&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Xr)}function lu(e,t,s){return e!==null&&(t.dependencies=e.dependencies),P_(),dv(t.lanes),Yi(s,t.childLanes)?(j5(e,t),t.child):null}function Q7(e,t,s){{var u=t.return;if(u===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,s.index=t.index,s.sibling=t.sibling,s.return=t.return,s.ref=t.ref,t===u.child)u.child=s;else{var d=u.child;if(d===null)throw new Error("Expected parent to have a child.");for(;d.sibling!==t;)if(d=d.sibling,d===null)throw new Error("Expected to find the previous sibling.");d.sibling=s}var g=u.deletions;return g===null?(u.deletions=[e],u.flags|=_a):g.push(e),s.flags|=Xr,s}}function KC(e,t){var s=e.lanes;return!!Yi(s,t)}function Z7(e,t,s){switch(t.tag){case R:rD(t),t.stateNode,Dh();break;case H:u_(t);break;case C:{var u=t.type;nl(u)&&Mm(t);break}case T:zE(t,t.stateNode.containerInfo);break;case M:{var d=t.memoizedProps.value,g=t.type._context;t_(t,g,d);break}case q:{var y=Yi(s,t.childLanes);y&&(t.flags|=Yt);{var E=t.stateNode;E.effectDuration=0,E.passiveEffectDuration=0}}break;case K:{var _=t.memoizedState;if(_!==null){if(_.dehydrated!==null)return dc(t,Fh(co.current)),t.flags|=ft,null;var O=t.child,I=O.childLanes;if(Yi(s,I))return iD(e,t,s);dc(t,Fh(co.current));var re=lu(e,t,s);return re!==null?re.sibling:null}else dc(t,Fh(co.current));break}case F:{var J=(e.flags&ft)!==dt,le=Yi(s,t.childLanes);if(J){if(le)return lD(e,t,s);t.flags|=ft}var fe=t.memoizedState;if(fe!==null&&(fe.rendering=null,fe.tail=null,fe.lastEffect=null),dc(t,co.current),le)break;return null}case N:case De:return t.lanes=Ae,J_(e,t,s)}return lu(e,t,s)}function fD(e,t,s){if(t._debugNeedsRemount&&e!==null)return Q7(e,t,_2(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var u=e.memoizedProps,d=t.pendingProps;if(u!==d||Om()||t.type!==e.type)po=!0;else{var g=KC(e,s);if(!g&&(t.flags&ft)===dt)return po=!1,Z7(e,t,s);(e.flags&_d)!==dt?po=!0:po=!1}}else if(po=!1,bi()&&S5(t)){var y=t.index,E=w5();Pb(t,E,y)}switch(t.lanes=Ae,t.tag){case b:return O7(e,t,t.type,s);case A:{var _=t.elementType;return k7(e,t,_,s)}case w:{var O=t.type,I=t.pendingProps,re=t.elementType===O?I:ho(O,I);return UC(e,t,O,re,s)}case C:{var J=t.type,le=t.pendingProps,fe=t.elementType===J?le:ho(J,le);return tD(e,t,J,fe,s)}case R:return T7(e,t,s);case H:return R7(e,t,s);case P:return A7(e,t);case K:return iD(e,t,s);case T:return W7(e,t,s);case U:{var me=t.type,qe=t.pendingProps,vt=t.elementType===me?qe:ho(me,qe);return Q_(e,t,me,vt,s)}case j:return b7(e,t,s);case z:return _7(e,t,s);case q:return D7(e,t,s);case M:return G7(e,t,s);case B:return K7(e,t,s);case X:{var ct=t.type,Gt=t.pendingProps,Ut=ho(ct,Gt);if(t.type!==t.elementType){var ie=ct.propTypes;ie&&oo(ie,Ut,"prop",Zt(ct))}return Ut=ho(ct.type,Ut),Z_(e,t,ct,Ut,s)}case ee:return X_(e,t,t.type,t.pendingProps,s);case Ee:{var ye=t.type,ae=t.pendingProps,Me=t.elementType===ye?ae:ho(ye,ae);return F7(e,t,ye,Me,s)}case F:return lD(e,t,s);case L:break;case N:return J_(e,t,s)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ih(e){e.flags|=Yt}function dD(e){e.flags|=an,e.flags|=Yu}var hD,QC,pD,vD;hD=function(e,t,s,u){for(var d=t.child;d!==null;){if(d.tag===H||d.tag===P)x3(e,d.stateNode);else if(d.tag!==T){if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===t)return;for(;d.sibling===null;){if(d.return===null||d.return===t)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},QC=function(e,t){},pD=function(e,t,s,u,d){var g=e.memoizedProps;if(g!==u){var y=t.stateNode,E=qE(),_=C3(y,s,g,u,d,E);t.updateQueue=_,_&&Ih(t)}},vD=function(e,t,s,u){s!==u&&Ih(t)};function tv(e,t){if(!bi())switch(e.tailMode){case"hidden":{for(var s=e.tail,u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?e.tail=null:u.sibling=null;break}case"collapsed":{for(var d=e.tail,g=null;d!==null;)d.alternate!==null&&(g=d),d=d.sibling;g===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:g.sibling=null;break}}}function Di(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=Ae,u=dt;if(t){if((e.mode&or)!==ht){for(var _=e.selfBaseDuration,O=e.child;O!==null;)s=Ot(s,Ot(O.lanes,O.childLanes)),u|=O.subtreeFlags&xn,u|=O.flags&xn,_+=O.treeBaseDuration,O=O.sibling;e.treeBaseDuration=_}else for(var I=e.child;I!==null;)s=Ot(s,Ot(I.lanes,I.childLanes)),u|=I.subtreeFlags&xn,u|=I.flags&xn,I.return=e,I=I.sibling;e.subtreeFlags|=u}else{if((e.mode&or)!==ht){for(var d=e.actualDuration,g=e.selfBaseDuration,y=e.child;y!==null;)s=Ot(s,Ot(y.lanes,y.childLanes)),u|=y.subtreeFlags,u|=y.flags,d+=y.actualDuration,g+=y.treeBaseDuration,y=y.sibling;e.actualDuration=d,e.treeBaseDuration=g}else for(var E=e.child;E!==null;)s=Ot(s,Ot(E.lanes,E.childLanes)),u|=E.subtreeFlags,u|=E.flags,E.return=e,E=E.sibling;e.subtreeFlags|=u}return e.childLanes=s,t}function X7(e,t,s){if(H5()&&(t.mode&Ht)!==ht&&(t.flags&ft)===dt)return Vb(t),Dh(),t.flags|=ci|Kc|$n,!1;var u=Pm(t);if(s!==null&&s.dehydrated!==null)if(e===null){if(!u)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(M5(t),Di(t),(t.mode&or)!==ht){var d=s!==null;if(d){var g=t.child;g!==null&&(t.treeBaseDuration-=g.treeBaseDuration)}}return!1}else{if(Dh(),(t.flags&ft)===dt&&(t.memoizedState=null),t.flags|=Yt,Di(t),(t.mode&or)!==ht){var y=s!==null;if(y){var E=t.child;E!==null&&(t.treeBaseDuration-=E.treeBaseDuration)}}return!1}else return Wb(),!0}function gD(e,t,s){var u=t.pendingProps;switch(SE(t),t.tag){case b:case A:case ee:case w:case U:case j:case z:case q:case B:case X:return Di(t),null;case C:{var d=t.type;return nl(d)&&Bm(t),Di(t),null}case R:{var g=t.stateNode;if(kh(t),yE(t),KE(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),e===null||e.child===null){var y=Pm(t);if(y)Ih(t);else if(e!==null){var E=e.memoizedState;(!E.isDehydrated||(t.flags&ci)!==dt)&&(t.flags|=On,Wb())}}return QC(e,t),Di(t),null}case H:{YE(t);var _=l_(),O=t.type;if(e!==null&&t.stateNode!=null)pD(e,t,O,u,_),e.ref!==t.ref&&dD(t);else{if(!u){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Di(t),null}var I=qE(),re=Pm(t);if(re)O5(t,_,I)&&Ih(t);else{var J=y3(O,u,_,I,t);hD(J,t,!1,!1),t.stateNode=J,E3(J,O,u,_)&&Ih(t)}t.ref!==null&&dD(t)}return Di(t),null}case P:{var le=u;if(e&&t.stateNode!=null){var fe=e.memoizedProps;vD(e,t,fe,le)}else{if(typeof le!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var me=l_(),qe=qE(),vt=Pm(t);vt?B5(t)&&Ih(t):t.stateNode=S3(le,me,qe,t)}return Di(t),null}case K:{Oh(t);var ct=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Gt=X7(e,t,ct);if(!Gt)return t.flags&$n?t:null}if((t.flags&ft)!==dt)return t.lanes=s,(t.mode&or)!==ht&&EC(t),t;var Ut=ct!==null,ie=e!==null&&e.memoizedState!==null;if(Ut!==ie&&Ut){var ye=t.child;if(ye.flags|=yn,(t.mode&Ht)!==ht){var ae=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);ae||VE(co.current,f_)?JF():p2()}}var Me=t.updateQueue;if(Me!==null&&(t.flags|=Yt),Di(t),(t.mode&or)!==ht&&Ut){var Ze=t.child;Ze!==null&&(t.treeBaseDuration-=Ze.treeBaseDuration)}return null}case T:return kh(t),QC(e,t),e===null&&v5(t.stateNode.containerInfo),Di(t),null;case M:var We=t.type._context;return HE(We,t),Di(t),null;case Ee:{var St=t.type;return nl(St)&&Bm(t),Di(t),null}case F:{Oh(t);var At=t.memoizedState;if(At===null)return Di(t),null;var kr=(t.flags&ft)!==dt,cr=At.rendering;if(cr===null)if(kr)tv(At,!1);else{var Nn=t9()&&(e===null||(e.flags&ft)===dt);if(!Nn)for(var fr=t.child;fr!==null;){var _n=ty(fr);if(_n!==null){kr=!0,t.flags|=ft,tv(At,!1);var Xi=_n.updateQueue;return Xi!==null&&(t.updateQueue=Xi,t.flags|=Yt),t.subtreeFlags=dt,z5(t,s),dc(t,WE(co.current,jp)),t.child}fr=fr.sibling}At.tail!==null&&Bn()>ID()&&(t.flags|=ft,kr=!0,tv(At,!1),t.lanes=W0)}else{if(!kr){var Fi=ty(cr);if(Fi!==null){t.flags|=ft,kr=!0;var is=Fi.updateQueue;if(is!==null&&(t.updateQueue=is,t.flags|=Yt),tv(At,!0),At.tail===null&&At.tailMode==="hidden"&&!cr.alternate&&!bi())return Di(t),null}else Bn()*2-At.renderingStartTime>ID()&&s!==qi&&(t.flags|=ft,kr=!0,tv(At,!1),t.lanes=W0)}if(At.isBackwards)cr.sibling=t.child,t.child=cr;else{var ha=At.last;ha!==null?ha.sibling=cr:t.child=cr,At.last=cr}}if(At.tail!==null){var pa=At.tail;At.rendering=pa,At.tail=pa.sibling,At.renderingStartTime=Bn(),pa.sibling=null;var Ji=co.current;return kr?Ji=WE(Ji,jp):Ji=Fh(Ji),dc(t,Ji),pa}return Di(t),null}case L:break;case N:case De:{h2(t);var hu=t.memoizedState,Yh=hu!==null;if(e!==null){var mv=e.memoizedState,fl=mv!==null;fl!==Yh&&!_e&&(t.flags|=yn)}return!Yh||(t.mode&Ht)===ht?Di(t):Yi(cl,qi)&&(Di(t),t.subtreeFlags&(Xr|Yt)&&(t.flags|=yn)),null}case be:return null;case $e:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function J7(e,t,s){switch(SE(t),t.tag){case C:{var u=t.type;nl(u)&&Bm(t);var d=t.flags;return d&$n?(t.flags=d&~$n|ft,(t.mode&or)!==ht&&EC(t),t):null}case R:{t.stateNode,kh(t),yE(t),KE();var g=t.flags;return(g&$n)!==dt&&(g&ft)===dt?(t.flags=g&~$n|ft,t):null}case H:return YE(t),null;case K:{Oh(t);var y=t.memoizedState;if(y!==null&&y.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Dh()}var E=t.flags;return E&$n?(t.flags=E&~$n|ft,(t.mode&or)!==ht&&EC(t),t):null}case F:return Oh(t),null;case T:return kh(t),null;case M:var _=t.type._context;return HE(_,t),null;case N:case De:return h2(t),null;case be:return null;default:return null}}function mD(e,t,s){switch(SE(t),t.tag){case C:{var u=t.type.childContextTypes;u!=null&&Bm(t);break}case R:{t.stateNode,kh(t),yE(t),KE();break}case H:{YE(t);break}case T:kh(t);break;case K:Oh(t);break;case F:Oh(t);break;case M:var d=t.type._context;HE(d,t);break;case N:case De:h2(t);break}}var yD=null;yD=new Set;var _y=!1,Ti=!1,eF=typeof WeakSet=="function"?WeakSet:Set,ot=null,$h=null,Ph=null;function tF(e){Po(null,function(){throw e}),Gc()}var rF=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&or)try{ll(),t.componentWillUnmount()}finally{ol(e)}else t.componentWillUnmount()};function xD(e,t){try{vc(Jn,e)}catch(s){jr(e,t,s)}}function ZC(e,t,s){try{rF(e,s)}catch(u){jr(e,t,u)}}function nF(e,t,s){try{s.componentDidMount()}catch(u){jr(e,t,u)}}function ED(e,t){try{SD(e)}catch(s){jr(e,t,s)}}function Lh(e,t){var s=e.ref;if(s!==null)if(typeof s=="function"){var u;try{if(oe&&Je&&e.mode&or)try{ll(),u=s(null)}finally{ol(e)}else u=s(null)}catch(d){jr(e,t,d)}typeof u=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",_t(e))}else s.current=null}function Dy(e,t,s){try{s()}catch(u){jr(e,t,u)}}var CD=!1;function iF(e,t){g3(e.containerInfo),ot=t,aF();var s=CD;return CD=!1,s}function aF(){for(;ot!==null;){var e=ot,t=e.child;(e.subtreeFlags&Uo)!==dt&&t!==null?(t.return=e,ot=t):sF()}}function sF(){for(;ot!==null;){var e=ot;_r(e);try{oF(e)}catch(s){jr(e,e.return,s)}Ur();var t=e.sibling;if(t!==null){t.return=e.return,ot=t;return}ot=e.return}}function oF(e){var t=e.alternate,s=e.flags;if((s&On)!==dt){switch(_r(e),e.tag){case w:case U:case ee:break;case C:{if(t!==null){var u=t.memoizedProps,d=t.memoizedState,g=e.stateNode;e.type===e.elementType&&!jf&&(g.props!==e.memoizedProps&&v("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",_t(e)||"instance"),g.state!==e.memoizedState&&v("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",_t(e)||"instance"));var y=g.getSnapshotBeforeUpdate(e.elementType===e.type?u:ho(e.type,u),d);{var E=yD;y===void 0&&!E.has(e.type)&&(E.add(e.type),v("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",_t(e)))}g.__reactInternalSnapshotBeforeUpdate=y}break}case R:{{var _=e.stateNode;U3(_.containerInfo)}break}case H:case P:case T:case Ee:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Ur()}}function vo(e,t,s){var u=t.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var g=d.next,y=g;do{if((y.tag&e)===e){var E=y.destroy;y.destroy=void 0,E!==void 0&&((e&_i)!==Ha?to(t):(e&Jn)!==Ha&&Zc(t),(e&il)!==Ha&&pv(!0),Dy(t,s,E),(e&il)!==Ha&&pv(!1),(e&_i)!==Ha?Yo():(e&Jn)!==Ha&&Y0())}y=y.next}while(y!==g)}}function vc(e,t){var s=t.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var d=u.next,g=d;do{if((g.tag&e)===e){(e&_i)!==Ha?q0(t):(e&Jn)!==Ha&&Fd(t);var y=g.create;(e&il)!==Ha&&pv(!0),g.destroy=y(),(e&il)!==Ha&&pv(!1),(e&_i)!==Ha?Fg():(e&Jn)!==Ha&&Og();{var E=g.destroy;if(E!==void 0&&typeof E!="function"){var _=void 0;(g.tag&Jn)!==dt?_="useLayoutEffect":(g.tag&il)!==dt?_="useInsertionEffect":_="useEffect";var O=void 0;E===null?O=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof E.then=="function"?O=`
|
|
170
|
+
Check the render method of \``+u+"`.");var d=u||"",g=e._debugSource;g&&(d=g.fileName+":"+g.lineNumber),PC[d]||(PC[d]=!0,v("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",s))}if(t.defaultProps!==void 0){var y=Zt(t)||"Unknown";Jp[y]||(v("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",y),Jp[y]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var E=Zt(t)||"Unknown";$C[E]||(v("%s: Function components do not support getDerivedStateFromProps.",E),$C[E]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var _=Zt(t)||"Unknown";IC[_]||(v("%s: Function components do not support contextType.",_),IC[_]=!0)}}}var qC={dehydrated:null,treeContext:null,retryLane:nr};function YC(e){return{baseLanes:e,cachePool:S7(),transitions:null}}function B7(e,t){var s=null;return{baseLanes:Ot(e.baseLanes,t),cachePool:s,transitions:e.transitions}}function M7(e,t,s,u){if(t!==null){var d=t.memoizedState;if(d===null)return!1}return VE(e,jp)}function N7(e,t){return df(e.childLanes,t)}function iD(e,t,s){var u=t.pendingProps;q9(t)&&(t.flags|=ft);var d=co.current,g=!1,y=(t.flags&ft)!==dt;if(y||M7(d,e)?(g=!0,t.flags&=~ft):(e===null||e.memoizedState!==null)&&(d=J5(d,f_)),d=Fh(d),dc(t,d),e===null){DE(t);var E=t.memoizedState;if(E!==null){var _=E.dehydrated;if(_!==null)return L7(t,_)}var O=u.children,I=u.fallback;if(g){var re=H7(t,O,I,s),J=t.child;return J.memoizedState=YC(s),t.memoizedState=qC,re}else return VC(t,O)}else{var le=e.memoizedState;if(le!==null){var fe=le.dehydrated;if(fe!==null)return U7(e,t,y,u,fe,le,s)}if(g){var me=u.fallback,qe=u.children,vt=$7(e,t,qe,me,s),ct=t.child,Gt=e.child.memoizedState;return ct.memoizedState=Gt===null?YC(s):B7(Gt,s),ct.childLanes=N7(e,s),t.memoizedState=qC,vt}else{var Ut=u.children,ie=I7(e,t,Ut,s);return t.memoizedState=null,ie}}}function VC(e,t,s){var u=e.mode,d={mode:"visible",children:t},g=WC(d,u);return g.return=e,e.child=g,g}function H7(e,t,s,u){var d=e.mode,g=e.child,y={mode:"hidden",children:t},E,_;return(d&Ht)===ht&&g!==null?(E=g,E.childLanes=Ae,E.pendingProps=y,e.mode&or&&(E.actualDuration=0,E.actualStartTime=-1,E.selfBaseDuration=0,E.treeBaseDuration=0),_=Ec(s,d,u,null)):(E=WC(y,d),_=Ec(s,d,u,null)),E.return=e,_.return=e,E.sibling=_,e.child=E,_}function WC(e,t,s){return aT(e,t,Ae,null)}function aD(e,t){return Wf(e,t)}function I7(e,t,s,u){var d=e.child,g=d.sibling,y=aD(d,{mode:"visible",children:s});if((t.mode&Ht)===ht&&(y.lanes=u),y.return=t,y.sibling=null,g!==null){var E=t.deletions;E===null?(t.deletions=[g],t.flags|=_a):E.push(g)}return t.child=y,y}function $7(e,t,s,u,d){var g=t.mode,y=e.child,E=y.sibling,_={mode:"hidden",children:s},O;if((g&Ht)===ht&&t.child!==y){var I=t.child;O=I,O.childLanes=Ae,O.pendingProps=_,t.mode&or&&(O.actualDuration=0,O.actualStartTime=-1,O.selfBaseDuration=y.selfBaseDuration,O.treeBaseDuration=y.treeBaseDuration),t.deletions=null}else O=aD(y,_),O.subtreeFlags=y.subtreeFlags&xn;var re;return E!==null?re=Wf(E,u):(re=Ec(u,g,d,null),re.flags|=Xr),re.return=t,O.return=t,O.sibling=re,t.child=O,re}function wy(e,t,s,u){u!==null&&TE(u),Th(t,e.child,null,s);var d=t.pendingProps,g=d.children,y=VC(t,g);return y.flags|=Xr,t.memoizedState=null,y}function P7(e,t,s,u,d){var g=t.mode,y={mode:"visible",children:s},E=WC(y,g),_=Ec(u,g,d,null);return _.flags|=Xr,E.return=t,_.return=t,E.sibling=_,t.child=E,(t.mode&Ht)!==ht&&Th(t,e.child,null,d),_}function L7(e,t,s){return(e.mode&Ht)===ht?(v("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Ct):fE(t)?e.lanes=fi:e.lanes=qi,null}function U7(e,t,s,u,d,g,y){if(s)if(t.flags&ci){t.flags&=~ci;var ie=BC(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return wy(e,t,y,ie)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=ft,null;var ye=u.children,ae=u.fallback,Me=P7(e,t,ye,ae,y),Ze=t.child;return Ze.memoizedState=YC(y),t.memoizedState=qC,Me}else{if(R5(),(t.mode&Ht)===ht)return wy(e,t,y,null);if(fE(d)){var E,_,O;{var I=Y3(d);E=I.digest,_=I.message,O=I.stack}var re;_?re=new Error(_):re=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var J=BC(re,E,O);return wy(e,t,y,J)}var le=Yi(y,e.childLanes);if(po||le){var fe=My();if(fe!==null){var me=rp(fe,y);if(me!==nr&&me!==g.retryLane){g.retryLane=me;var qe=Br;Na(e,me),ai(fe,e,me,qe)}}p2();var vt=BC(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return wy(e,t,y,vt)}else if(Rb(d)){t.flags|=ft,t.child=e.child;var ct=d9.bind(null,e);return V3(d,ct),null}else{F5(t,d,g.treeContext);var Gt=u.children,Ut=VC(t,Gt);return Ut.flags|=Li,Ut}}}function sD(e,t,s){e.lanes=Ot(e.lanes,t);var u=e.alternate;u!==null&&(u.lanes=Ot(u.lanes,t)),IE(e.return,t,s)}function j7(e,t,s){for(var u=t;u!==null;){if(u.tag===K){var d=u.memoizedState;d!==null&&sD(u,s,e)}else if(u.tag===F)sD(u,s,e);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)return;for(;u.sibling===null;){if(u.return===null||u.return===e)return;u=u.return}u.sibling.return=u.return,u=u.sibling}}function z7(e){for(var t=e,s=null;t!==null;){var u=t.alternate;u!==null&&ty(u)===null&&(s=t),t=t.sibling}return s}function q7(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!LC[e])if(LC[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{v('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:v('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else v('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function Y7(e,t){e!==void 0&&!Sy[e]&&(e!=="collapsed"&&e!=="hidden"?(Sy[e]=!0,v('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Sy[e]=!0,v('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function oD(e,t){{var s=Mt(e),u=!s&&typeof Ft(e)=="function";if(s||u){var d=s?"array":"iterable";return v("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",d,t,d),!1}}return!0}function V7(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(Mt(e)){for(var s=0;s<e.length;s++)if(!oD(e[s],s))return}else{var u=Ft(e);if(typeof u=="function"){var d=u.call(e);if(d)for(var g=d.next(),y=0;!g.done;g=d.next()){if(!oD(g.value,y))return;y++}}else v('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function GC(e,t,s,u,d){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:u,tail:s,tailMode:d}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=u,g.tail=s,g.tailMode=d)}function lD(e,t,s){var u=t.pendingProps,d=u.revealOrder,g=u.tail,y=u.children;q7(d),Y7(g,d),V7(y,d),ca(e,t,y,s);var E=co.current,_=VE(E,jp);if(_)E=WE(E,jp),t.flags|=ft;else{var O=e!==null&&(e.flags&ft)!==dt;O&&j7(t,t.child,s),E=Fh(E)}if(dc(t,E),(t.mode&Ht)===ht)t.memoizedState=null;else switch(d){case"forwards":{var I=z7(t.child),re;I===null?(re=t.child,t.child=null):(re=I.sibling,I.sibling=null),GC(t,!1,re,I,g);break}case"backwards":{var J=null,le=t.child;for(t.child=null;le!==null;){var fe=le.alternate;if(fe!==null&&ty(fe)===null){t.child=le;break}var me=le.sibling;le.sibling=J,J=le,le=me}GC(t,!0,J,null,g);break}case"together":{GC(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function W7(e,t,s){zE(t,t.stateNode.containerInfo);var u=t.pendingProps;return e===null?t.child=Th(t,null,u,s):ca(e,t,u,s),t.child}var uD=!1;function G7(e,t,s){var u=t.type,d=u._context,g=t.pendingProps,y=t.memoizedProps,E=g.value;{"value"in g||uD||(uD=!0,v("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var _=t.type.propTypes;_&&oo(_,g,"prop","Context.Provider")}if(t_(t,d,E),y!==null){var O=y.value;if(Oe(O,E)){if(y.children===g.children&&!Om())return lu(e,t,s)}else q5(t,d,s)}var I=g.children;return ca(e,t,I,s),t.child}var cD=!1;function K7(e,t,s){var u=t.type;u._context===void 0?u!==u.Consumer&&(cD||(cD=!0,v("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):u=u._context;var d=t.pendingProps,g=d.children;typeof g!="function"&&v("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Ah(t,s);var y=jn(u);sa(t);var E;return Zp.current=t,Fn(!0),E=g(y),Fn(!1),oa(),t.flags|=Za,ca(e,t,E,s),t.child}function ev(){po=!0}function by(e,t){(t.mode&Ht)===ht&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=Xr)}function lu(e,t,s){return e!==null&&(t.dependencies=e.dependencies),P_(),dv(t.lanes),Yi(s,t.childLanes)?(j5(e,t),t.child):null}function Q7(e,t,s){{var u=t.return;if(u===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,s.index=t.index,s.sibling=t.sibling,s.return=t.return,s.ref=t.ref,t===u.child)u.child=s;else{var d=u.child;if(d===null)throw new Error("Expected parent to have a child.");for(;d.sibling!==t;)if(d=d.sibling,d===null)throw new Error("Expected to find the previous sibling.");d.sibling=s}var g=u.deletions;return g===null?(u.deletions=[e],u.flags|=_a):g.push(e),s.flags|=Xr,s}}function KC(e,t){var s=e.lanes;return!!Yi(s,t)}function Z7(e,t,s){switch(t.tag){case T:rD(t),t.stateNode,Dh();break;case H:u_(t);break;case C:{var u=t.type;nl(u)&&Mm(t);break}case A:zE(t,t.stateNode.containerInfo);break;case M:{var d=t.memoizedProps.value,g=t.type._context;t_(t,g,d);break}case q:{var y=Yi(s,t.childLanes);y&&(t.flags|=Yt);{var E=t.stateNode;E.effectDuration=0,E.passiveEffectDuration=0}}break;case K:{var _=t.memoizedState;if(_!==null){if(_.dehydrated!==null)return dc(t,Fh(co.current)),t.flags|=ft,null;var O=t.child,I=O.childLanes;if(Yi(s,I))return iD(e,t,s);dc(t,Fh(co.current));var re=lu(e,t,s);return re!==null?re.sibling:null}else dc(t,Fh(co.current));break}case F:{var J=(e.flags&ft)!==dt,le=Yi(s,t.childLanes);if(J){if(le)return lD(e,t,s);t.flags|=ft}var fe=t.memoizedState;if(fe!==null&&(fe.rendering=null,fe.tail=null,fe.lastEffect=null),dc(t,co.current),le)break;return null}case N:case De:return t.lanes=Ae,J_(e,t,s)}return lu(e,t,s)}function fD(e,t,s){if(t._debugNeedsRemount&&e!==null)return Q7(e,t,_2(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var u=e.memoizedProps,d=t.pendingProps;if(u!==d||Om()||t.type!==e.type)po=!0;else{var g=KC(e,s);if(!g&&(t.flags&ft)===dt)return po=!1,Z7(e,t,s);(e.flags&_d)!==dt?po=!0:po=!1}}else if(po=!1,bi()&&S5(t)){var y=t.index,E=w5();Pb(t,E,y)}switch(t.lanes=Ae,t.tag){case w:return O7(e,t,t.type,s);case R:{var _=t.elementType;return k7(e,t,_,s)}case b:{var O=t.type,I=t.pendingProps,re=t.elementType===O?I:ho(O,I);return UC(e,t,O,re,s)}case C:{var J=t.type,le=t.pendingProps,fe=t.elementType===J?le:ho(J,le);return tD(e,t,J,fe,s)}case T:return T7(e,t,s);case H:return R7(e,t,s);case P:return A7(e,t);case K:return iD(e,t,s);case A:return W7(e,t,s);case U:{var me=t.type,qe=t.pendingProps,vt=t.elementType===me?qe:ho(me,qe);return Q_(e,t,me,vt,s)}case j:return b7(e,t,s);case z:return _7(e,t,s);case q:return D7(e,t,s);case M:return G7(e,t,s);case B:return K7(e,t,s);case X:{var ct=t.type,Gt=t.pendingProps,Ut=ho(ct,Gt);if(t.type!==t.elementType){var ie=ct.propTypes;ie&&oo(ie,Ut,"prop",Zt(ct))}return Ut=ho(ct.type,Ut),Z_(e,t,ct,Ut,s)}case ee:return X_(e,t,t.type,t.pendingProps,s);case Ee:{var ye=t.type,ae=t.pendingProps,Me=t.elementType===ye?ae:ho(ye,ae);return F7(e,t,ye,Me,s)}case F:return lD(e,t,s);case L:break;case N:return J_(e,t,s)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ih(e){e.flags|=Yt}function dD(e){e.flags|=an,e.flags|=Yu}var hD,QC,pD,vD;hD=function(e,t,s,u){for(var d=t.child;d!==null;){if(d.tag===H||d.tag===P)x3(e,d.stateNode);else if(d.tag!==A){if(d.child!==null){d.child.return=d,d=d.child;continue}}if(d===t)return;for(;d.sibling===null;){if(d.return===null||d.return===t)return;d=d.return}d.sibling.return=d.return,d=d.sibling}},QC=function(e,t){},pD=function(e,t,s,u,d){var g=e.memoizedProps;if(g!==u){var y=t.stateNode,E=qE(),_=C3(y,s,g,u,d,E);t.updateQueue=_,_&&Ih(t)}},vD=function(e,t,s,u){s!==u&&Ih(t)};function tv(e,t){if(!bi())switch(e.tailMode){case"hidden":{for(var s=e.tail,u=null;s!==null;)s.alternate!==null&&(u=s),s=s.sibling;u===null?e.tail=null:u.sibling=null;break}case"collapsed":{for(var d=e.tail,g=null;d!==null;)d.alternate!==null&&(g=d),d=d.sibling;g===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:g.sibling=null;break}}}function Di(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=Ae,u=dt;if(t){if((e.mode&or)!==ht){for(var _=e.selfBaseDuration,O=e.child;O!==null;)s=Ot(s,Ot(O.lanes,O.childLanes)),u|=O.subtreeFlags&xn,u|=O.flags&xn,_+=O.treeBaseDuration,O=O.sibling;e.treeBaseDuration=_}else for(var I=e.child;I!==null;)s=Ot(s,Ot(I.lanes,I.childLanes)),u|=I.subtreeFlags&xn,u|=I.flags&xn,I.return=e,I=I.sibling;e.subtreeFlags|=u}else{if((e.mode&or)!==ht){for(var d=e.actualDuration,g=e.selfBaseDuration,y=e.child;y!==null;)s=Ot(s,Ot(y.lanes,y.childLanes)),u|=y.subtreeFlags,u|=y.flags,d+=y.actualDuration,g+=y.treeBaseDuration,y=y.sibling;e.actualDuration=d,e.treeBaseDuration=g}else for(var E=e.child;E!==null;)s=Ot(s,Ot(E.lanes,E.childLanes)),u|=E.subtreeFlags,u|=E.flags,E.return=e,E=E.sibling;e.subtreeFlags|=u}return e.childLanes=s,t}function X7(e,t,s){if(H5()&&(t.mode&Ht)!==ht&&(t.flags&ft)===dt)return Vb(t),Dh(),t.flags|=ci|Kc|$n,!1;var u=Pm(t);if(s!==null&&s.dehydrated!==null)if(e===null){if(!u)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(M5(t),Di(t),(t.mode&or)!==ht){var d=s!==null;if(d){var g=t.child;g!==null&&(t.treeBaseDuration-=g.treeBaseDuration)}}return!1}else{if(Dh(),(t.flags&ft)===dt&&(t.memoizedState=null),t.flags|=Yt,Di(t),(t.mode&or)!==ht){var y=s!==null;if(y){var E=t.child;E!==null&&(t.treeBaseDuration-=E.treeBaseDuration)}}return!1}else return Wb(),!0}function gD(e,t,s){var u=t.pendingProps;switch(SE(t),t.tag){case w:case R:case ee:case b:case U:case j:case z:case q:case B:case X:return Di(t),null;case C:{var d=t.type;return nl(d)&&Bm(t),Di(t),null}case T:{var g=t.stateNode;if(kh(t),yE(t),KE(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),e===null||e.child===null){var y=Pm(t);if(y)Ih(t);else if(e!==null){var E=e.memoizedState;(!E.isDehydrated||(t.flags&ci)!==dt)&&(t.flags|=On,Wb())}}return QC(e,t),Di(t),null}case H:{YE(t);var _=l_(),O=t.type;if(e!==null&&t.stateNode!=null)pD(e,t,O,u,_),e.ref!==t.ref&&dD(t);else{if(!u){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Di(t),null}var I=qE(),re=Pm(t);if(re)O5(t,_,I)&&Ih(t);else{var J=y3(O,u,_,I,t);hD(J,t,!1,!1),t.stateNode=J,E3(J,O,u,_)&&Ih(t)}t.ref!==null&&dD(t)}return Di(t),null}case P:{var le=u;if(e&&t.stateNode!=null){var fe=e.memoizedProps;vD(e,t,fe,le)}else{if(typeof le!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var me=l_(),qe=qE(),vt=Pm(t);vt?B5(t)&&Ih(t):t.stateNode=S3(le,me,qe,t)}return Di(t),null}case K:{Oh(t);var ct=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var Gt=X7(e,t,ct);if(!Gt)return t.flags&$n?t:null}if((t.flags&ft)!==dt)return t.lanes=s,(t.mode&or)!==ht&&EC(t),t;var Ut=ct!==null,ie=e!==null&&e.memoizedState!==null;if(Ut!==ie&&Ut){var ye=t.child;if(ye.flags|=yn,(t.mode&Ht)!==ht){var ae=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);ae||VE(co.current,f_)?JF():p2()}}var Me=t.updateQueue;if(Me!==null&&(t.flags|=Yt),Di(t),(t.mode&or)!==ht&&Ut){var Ze=t.child;Ze!==null&&(t.treeBaseDuration-=Ze.treeBaseDuration)}return null}case A:return kh(t),QC(e,t),e===null&&v5(t.stateNode.containerInfo),Di(t),null;case M:var We=t.type._context;return HE(We,t),Di(t),null;case Ee:{var St=t.type;return nl(St)&&Bm(t),Di(t),null}case F:{Oh(t);var At=t.memoizedState;if(At===null)return Di(t),null;var kr=(t.flags&ft)!==dt,cr=At.rendering;if(cr===null)if(kr)tv(At,!1);else{var Nn=t9()&&(e===null||(e.flags&ft)===dt);if(!Nn)for(var fr=t.child;fr!==null;){var _n=ty(fr);if(_n!==null){kr=!0,t.flags|=ft,tv(At,!1);var Xi=_n.updateQueue;return Xi!==null&&(t.updateQueue=Xi,t.flags|=Yt),t.subtreeFlags=dt,z5(t,s),dc(t,WE(co.current,jp)),t.child}fr=fr.sibling}At.tail!==null&&Bn()>ID()&&(t.flags|=ft,kr=!0,tv(At,!1),t.lanes=W0)}else{if(!kr){var Fi=ty(cr);if(Fi!==null){t.flags|=ft,kr=!0;var is=Fi.updateQueue;if(is!==null&&(t.updateQueue=is,t.flags|=Yt),tv(At,!0),At.tail===null&&At.tailMode==="hidden"&&!cr.alternate&&!bi())return Di(t),null}else Bn()*2-At.renderingStartTime>ID()&&s!==qi&&(t.flags|=ft,kr=!0,tv(At,!1),t.lanes=W0)}if(At.isBackwards)cr.sibling=t.child,t.child=cr;else{var ha=At.last;ha!==null?ha.sibling=cr:t.child=cr,At.last=cr}}if(At.tail!==null){var pa=At.tail;At.rendering=pa,At.tail=pa.sibling,At.renderingStartTime=Bn(),pa.sibling=null;var Ji=co.current;return kr?Ji=WE(Ji,jp):Ji=Fh(Ji),dc(t,Ji),pa}return Di(t),null}case L:break;case N:case De:{h2(t);var hu=t.memoizedState,Yh=hu!==null;if(e!==null){var mv=e.memoizedState,fl=mv!==null;fl!==Yh&&!_e&&(t.flags|=yn)}return!Yh||(t.mode&Ht)===ht?Di(t):Yi(cl,qi)&&(Di(t),t.subtreeFlags&(Xr|Yt)&&(t.flags|=yn)),null}case be:return null;case $e:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function J7(e,t,s){switch(SE(t),t.tag){case C:{var u=t.type;nl(u)&&Bm(t);var d=t.flags;return d&$n?(t.flags=d&~$n|ft,(t.mode&or)!==ht&&EC(t),t):null}case T:{t.stateNode,kh(t),yE(t),KE();var g=t.flags;return(g&$n)!==dt&&(g&ft)===dt?(t.flags=g&~$n|ft,t):null}case H:return YE(t),null;case K:{Oh(t);var y=t.memoizedState;if(y!==null&&y.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Dh()}var E=t.flags;return E&$n?(t.flags=E&~$n|ft,(t.mode&or)!==ht&&EC(t),t):null}case F:return Oh(t),null;case A:return kh(t),null;case M:var _=t.type._context;return HE(_,t),null;case N:case De:return h2(t),null;case be:return null;default:return null}}function mD(e,t,s){switch(SE(t),t.tag){case C:{var u=t.type.childContextTypes;u!=null&&Bm(t);break}case T:{t.stateNode,kh(t),yE(t),KE();break}case H:{YE(t);break}case A:kh(t);break;case K:Oh(t);break;case F:Oh(t);break;case M:var d=t.type._context;HE(d,t);break;case N:case De:h2(t);break}}var yD=null;yD=new Set;var _y=!1,Ti=!1,eF=typeof WeakSet=="function"?WeakSet:Set,ot=null,$h=null,Ph=null;function tF(e){Po(null,function(){throw e}),Gc()}var rF=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&or)try{ll(),t.componentWillUnmount()}finally{ol(e)}else t.componentWillUnmount()};function xD(e,t){try{vc(Jn,e)}catch(s){jr(e,t,s)}}function ZC(e,t,s){try{rF(e,s)}catch(u){jr(e,t,u)}}function nF(e,t,s){try{s.componentDidMount()}catch(u){jr(e,t,u)}}function ED(e,t){try{SD(e)}catch(s){jr(e,t,s)}}function Lh(e,t){var s=e.ref;if(s!==null)if(typeof s=="function"){var u;try{if(oe&&Je&&e.mode&or)try{ll(),u=s(null)}finally{ol(e)}else u=s(null)}catch(d){jr(e,t,d)}typeof u=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",_t(e))}else s.current=null}function Dy(e,t,s){try{s()}catch(u){jr(e,t,u)}}var CD=!1;function iF(e,t){g3(e.containerInfo),ot=t,aF();var s=CD;return CD=!1,s}function aF(){for(;ot!==null;){var e=ot,t=e.child;(e.subtreeFlags&Uo)!==dt&&t!==null?(t.return=e,ot=t):sF()}}function sF(){for(;ot!==null;){var e=ot;_r(e);try{oF(e)}catch(s){jr(e,e.return,s)}Ur();var t=e.sibling;if(t!==null){t.return=e.return,ot=t;return}ot=e.return}}function oF(e){var t=e.alternate,s=e.flags;if((s&On)!==dt){switch(_r(e),e.tag){case b:case U:case ee:break;case C:{if(t!==null){var u=t.memoizedProps,d=t.memoizedState,g=e.stateNode;e.type===e.elementType&&!jf&&(g.props!==e.memoizedProps&&v("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",_t(e)||"instance"),g.state!==e.memoizedState&&v("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",_t(e)||"instance"));var y=g.getSnapshotBeforeUpdate(e.elementType===e.type?u:ho(e.type,u),d);{var E=yD;y===void 0&&!E.has(e.type)&&(E.add(e.type),v("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",_t(e)))}g.__reactInternalSnapshotBeforeUpdate=y}break}case T:{{var _=e.stateNode;U3(_.containerInfo)}break}case H:case P:case A:case Ee:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Ur()}}function vo(e,t,s){var u=t.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var g=d.next,y=g;do{if((y.tag&e)===e){var E=y.destroy;y.destroy=void 0,E!==void 0&&((e&_i)!==Ha?to(t):(e&Jn)!==Ha&&Zc(t),(e&il)!==Ha&&pv(!0),Dy(t,s,E),(e&il)!==Ha&&pv(!1),(e&_i)!==Ha?Yo():(e&Jn)!==Ha&&Y0())}y=y.next}while(y!==g)}}function vc(e,t){var s=t.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var d=u.next,g=d;do{if((g.tag&e)===e){(e&_i)!==Ha?q0(t):(e&Jn)!==Ha&&Fd(t);var y=g.create;(e&il)!==Ha&&pv(!0),g.destroy=y(),(e&il)!==Ha&&pv(!1),(e&_i)!==Ha?Fg():(e&Jn)!==Ha&&Og();{var E=g.destroy;if(E!==void 0&&typeof E!="function"){var _=void 0;(g.tag&Jn)!==dt?_="useLayoutEffect":(g.tag&il)!==dt?_="useInsertionEffect":_="useEffect";var O=void 0;E===null?O=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof E.then=="function"?O=`
|
|
171
171
|
|
|
172
172
|
It looks like you wrote `+_+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
173
173
|
|
|
@@ -180,11 +180,11 @@ It looks like you wrote `+_+`(async () => ...) or returned a Promise. Instead, w
|
|
|
180
180
|
fetchData();
|
|
181
181
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
182
182
|
|
|
183
|
-
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:O=" You returned: "+E,v("%s must not return anything besides a function, which is used for clean-up.%s",_,O)}}}g=g.next}while(g!==d)}}function lF(e,t){if((t.flags&Yt)!==dt)switch(t.tag){case q:{var s=t.stateNode.passiveEffectDuration,u=t.memoizedProps,d=u.id,g=u.onPostCommit,y=I_(),E=t.alternate===null?"mount":"update";H_()&&(E="nested-update"),typeof g=="function"&&g(d,E,s,y);var _=t.return;e:for(;_!==null;){switch(_.tag){case R:var O=_.stateNode;O.passiveEffectDuration+=s;break e;case q:var I=_.stateNode;I.passiveEffectDuration+=s;break e}_=_.return}break}}}function uF(e,t,s,u){if((s.flags&zo)!==dt)switch(s.tag){case w:case U:case ee:{if(!Ti)if(s.mode&or)try{ll(),vc(Jn|Xn,s)}finally{ol(s)}else vc(Jn|Xn,s);break}case C:{var d=s.stateNode;if(s.flags&Yt&&!Ti)if(t===null)if(s.type===s.elementType&&!jf&&(d.props!==s.memoizedProps&&v("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",_t(s)||"instance"),d.state!==s.memoizedState&&v("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",_t(s)||"instance")),s.mode&or)try{ll(),d.componentDidMount()}finally{ol(s)}else d.componentDidMount();else{var g=s.elementType===s.type?t.memoizedProps:ho(s.type,t.memoizedProps),y=t.memoizedState;if(s.type===s.elementType&&!jf&&(d.props!==s.memoizedProps&&v("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",_t(s)||"instance"),d.state!==s.memoizedState&&v("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",_t(s)||"instance")),s.mode&or)try{ll(),d.componentDidUpdate(g,y,d.__reactInternalSnapshotBeforeUpdate)}finally{ol(s)}else d.componentDidUpdate(g,y,d.__reactInternalSnapshotBeforeUpdate)}var E=s.updateQueue;E!==null&&(s.type===s.elementType&&!jf&&(d.props!==s.memoizedProps&&v("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",_t(s)||"instance"),d.state!==s.memoizedState&&v("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",_t(s)||"instance")),o_(s,E,d));break}case R:{var _=s.updateQueue;if(_!==null){var O=null;if(s.child!==null)switch(s.child.tag){case H:O=s.child.stateNode;break;case C:O=s.child.stateNode;break}o_(s,_,O)}break}case H:{var I=s.stateNode;if(t===null&&s.flags&Yt){var re=s.type,J=s.memoizedProps;T3(I,re,J)}break}case P:break;case T:break;case q:{{var le=s.memoizedProps,fe=le.onCommit,me=le.onRender,qe=s.stateNode.effectDuration,vt=I_(),ct=t===null?"mount":"update";H_()&&(ct="nested-update"),typeof me=="function"&&me(s.memoizedProps.id,ct,s.actualDuration,s.treeBaseDuration,s.actualStartTime,vt);{typeof fe=="function"&&fe(s.memoizedProps.id,ct,qe,vt),s9(s);var Gt=s.return;e:for(;Gt!==null;){switch(Gt.tag){case R:var Ut=Gt.stateNode;Ut.effectDuration+=qe;break e;case q:var ie=Gt.stateNode;ie.effectDuration+=qe;break e}Gt=Gt.return}}}break}case K:{mF(e,s);break}case F:case Ee:case L:case N:case De:case $e:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Ti||s.flags&an&&SD(s)}function cF(e){switch(e.tag){case w:case U:case ee:{if(e.mode&or)try{ll(),xD(e,e.return)}finally{ol(e)}else xD(e,e.return);break}case C:{var t=e.stateNode;typeof t.componentDidMount=="function"&&nF(e,e.return,t),ED(e,e.return);break}case H:{ED(e,e.return);break}}}function fF(e,t){for(var s=null,u=e;;){if(u.tag===H){if(s===null){s=u;try{var d=u.stateNode;t?I3(d):P3(u.stateNode,u.memoizedProps)}catch(y){jr(e,e.return,y)}}}else if(u.tag===P){if(s===null)try{var g=u.stateNode;t?$3(g):L3(g,u.memoizedProps)}catch(y){jr(e,e.return,y)}}else if(!((u.tag===N||u.tag===De)&&u.memoizedState!==null&&u!==e)){if(u.child!==null){u.child.return=u,u=u.child;continue}}if(u===e)return;for(;u.sibling===null;){if(u.return===null||u.return===e)return;s===u&&(s=null),u=u.return}s===u&&(s=null),u.sibling.return=u.return,u=u.sibling}}function SD(e){var t=e.ref;if(t!==null){var s=e.stateNode,u;switch(e.tag){case H:u=s;break;default:u=s}if(typeof t=="function"){var d;if(e.mode&or)try{ll(),d=t(u)}finally{ol(e)}else d=t(u);typeof d=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",_t(e))}else t.hasOwnProperty("current")||v("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",_t(e)),t.current=u}}function dF(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function wD(e){var t=e.alternate;t!==null&&(e.alternate=null,wD(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===H){var s=e.stateNode;s!==null&&y5(s)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function hF(e){for(var t=e.return;t!==null;){if(bD(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function bD(e){return e.tag===H||e.tag===R||e.tag===T}function _D(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||bD(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==H&&t.tag!==P&&t.tag!==Z;){if(t.flags&Xr||t.child===null||t.tag===T)continue e;t.child.return=t,t=t.child}if(!(t.flags&Xr))return t.stateNode}}function pF(e){var t=hF(e);switch(t.tag){case H:{var s=t.stateNode;t.flags&Da&&(Tb(s),t.flags&=~Da);var u=_D(e);JC(e,u,s);break}case R:case T:{var d=t.stateNode.containerInfo,g=_D(e);XC(e,g,d);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function XC(e,t,s){var u=e.tag,d=u===H||u===P;if(d){var g=e.stateNode;t?B3(s,g,t):F3(s,g)}else if(u!==T){var y=e.child;if(y!==null){XC(y,t,s);for(var E=y.sibling;E!==null;)XC(E,t,s),E=E.sibling}}}function JC(e,t,s){var u=e.tag,d=u===H||u===P;if(d){var g=e.stateNode;t?O3(s,g,t):k3(s,g)}else if(u!==T){var y=e.child;if(y!==null){JC(y,t,s);for(var E=y.sibling;E!==null;)JC(E,t,s),E=E.sibling}}}var Ri=null,go=!1;function vF(e,t,s){{var u=t;e:for(;u!==null;){switch(u.tag){case H:{Ri=u.stateNode,go=!1;break e}case R:{Ri=u.stateNode.containerInfo,go=!0;break e}case T:{Ri=u.stateNode.containerInfo,go=!0;break e}}u=u.return}if(Ri===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");DD(e,t,s),Ri=null,go=!1}dF(s)}function gc(e,t,s){for(var u=s.child;u!==null;)DD(e,t,u),u=u.sibling}function DD(e,t,s){switch(U0(s),s.tag){case H:Ti||Lh(s,t);case P:{{var u=Ri,d=go;Ri=null,gc(e,t,s),Ri=u,go=d,Ri!==null&&(go?N3(Ri,s.stateNode):M3(Ri,s.stateNode))}return}case Z:{Ri!==null&&(go?H3(Ri,s.stateNode):cE(Ri,s.stateNode));return}case T:{{var g=Ri,y=go;Ri=s.stateNode.containerInfo,go=!0,gc(e,t,s),Ri=g,go=y}return}case w:case U:case X:case ee:{if(!Ti){var E=s.updateQueue;if(E!==null){var _=E.lastEffect;if(_!==null){var O=_.next,I=O;do{var re=I,J=re.destroy,le=re.tag;J!==void 0&&((le&il)!==Ha?Dy(s,t,J):(le&Jn)!==Ha&&(Zc(s),s.mode&or?(ll(),Dy(s,t,J),ol(s)):Dy(s,t,J),Y0())),I=I.next}while(I!==O)}}}gc(e,t,s);return}case C:{if(!Ti){Lh(s,t);var fe=s.stateNode;typeof fe.componentWillUnmount=="function"&&ZC(s,t,fe)}gc(e,t,s);return}case L:{gc(e,t,s);return}case N:{if(s.mode&Ht){var me=Ti;Ti=me||s.memoizedState!==null,gc(e,t,s),Ti=me}else gc(e,t,s);break}default:{gc(e,t,s);return}}}function gF(e){e.memoizedState}function mF(e,t){var s=t.memoizedState;if(s===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var g=d.dehydrated;g!==null&&t5(g)}}}}function TD(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new eF),t.forEach(function(u){var d=h9.bind(null,e,u);if(!s.has(u)){if(s.add(u),zi)if($h!==null&&Ph!==null)hv(Ph,$h);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");u.then(d,d)}})}}function yF(e,t,s){$h=s,Ph=e,_r(t),RD(t,e),_r(t),$h=null,Ph=null}function mo(e,t,s){var u=t.deletions;if(u!==null)for(var d=0;d<u.length;d++){var g=u[d];try{vF(e,t,g)}catch(_){jr(g,t,_)}}var y=Oo();if(t.subtreeFlags&jo)for(var E=t.child;E!==null;)_r(E),RD(E,e),E=E.sibling;_r(y)}function RD(e,t,s){var u=e.alternate,d=e.flags;switch(e.tag){case w:case U:case X:case ee:{if(mo(t,e),ul(e),d&Yt){try{vo(il|Xn,e,e.return),vc(il|Xn,e)}catch(St){jr(e,e.return,St)}if(e.mode&or){try{ll(),vo(Jn|Xn,e,e.return)}catch(St){jr(e,e.return,St)}ol(e)}else try{vo(Jn|Xn,e,e.return)}catch(St){jr(e,e.return,St)}}return}case C:{mo(t,e),ul(e),d&an&&u!==null&&Lh(u,u.return);return}case H:{mo(t,e),ul(e),d&an&&u!==null&&Lh(u,u.return);{if(e.flags&Da){var g=e.stateNode;try{Tb(g)}catch(St){jr(e,e.return,St)}}if(d&Yt){var y=e.stateNode;if(y!=null){var E=e.memoizedProps,_=u!==null?u.memoizedProps:E,O=e.type,I=e.updateQueue;if(e.updateQueue=null,I!==null)try{R3(y,I,O,_,E,e)}catch(St){jr(e,e.return,St)}}}}return}case P:{if(mo(t,e),ul(e),d&Yt){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var re=e.stateNode,J=e.memoizedProps,le=u!==null?u.memoizedProps:J;try{A3(re,le,J)}catch(St){jr(e,e.return,St)}}return}case R:{if(mo(t,e),ul(e),d&Yt&&u!==null){var fe=u.memoizedState;if(fe.isDehydrated)try{e5(t.containerInfo)}catch(St){jr(e,e.return,St)}}return}case T:{mo(t,e),ul(e);return}case K:{mo(t,e),ul(e);var me=e.child;if(me.flags&yn){var qe=me.stateNode,vt=me.memoizedState,ct=vt!==null;if(qe.isHidden=ct,ct){var Gt=me.alternate!==null&&me.alternate.memoizedState!==null;Gt||XF()}}if(d&Yt){try{gF(e)}catch(St){jr(e,e.return,St)}TD(e)}return}case N:{var Ut=u!==null&&u.memoizedState!==null;if(e.mode&Ht){var ie=Ti;Ti=ie||Ut,mo(t,e),Ti=ie}else mo(t,e);if(ul(e),d&yn){var ye=e.stateNode,ae=e.memoizedState,Me=ae!==null,Ze=e;if(ye.isHidden=Me,Me&&!Ut&&(Ze.mode&Ht)!==ht){ot=Ze;for(var We=Ze.child;We!==null;)ot=We,EF(We),We=We.sibling}fF(Ze,Me)}return}case F:{mo(t,e),ul(e),d&Yt&&TD(e);return}case L:return;default:{mo(t,e),ul(e);return}}}function ul(e){var t=e.flags;if(t&Xr){try{pF(e)}catch(s){jr(e,e.return,s)}e.flags&=~Xr}t&Li&&(e.flags&=~Li)}function xF(e,t,s){$h=s,Ph=t,ot=e,AD(e,t,s),$h=null,Ph=null}function AD(e,t,s){for(var u=(e.mode&Ht)!==ht;ot!==null;){var d=ot,g=d.child;if(d.tag===N&&u){var y=d.memoizedState!==null,E=y||_y;if(E){e2(e,t,s);continue}else{var _=d.alternate,O=_!==null&&_.memoizedState!==null,I=O||Ti,re=_y,J=Ti;_y=E,Ti=I,Ti&&!J&&(ot=d,CF(d));for(var le=g;le!==null;)ot=le,AD(le,t,s),le=le.sibling;ot=d,_y=re,Ti=J,e2(e,t,s);continue}}(d.subtreeFlags&zo)!==dt&&g!==null?(g.return=d,ot=g):e2(e,t,s)}}function e2(e,t,s){for(;ot!==null;){var u=ot;if((u.flags&zo)!==dt){var d=u.alternate;_r(u);try{uF(t,d,u,s)}catch(y){jr(u,u.return,y)}Ur()}if(u===e){ot=null;return}var g=u.sibling;if(g!==null){g.return=u.return,ot=g;return}ot=u.return}}function EF(e){for(;ot!==null;){var t=ot,s=t.child;switch(t.tag){case w:case U:case X:case ee:{if(t.mode&or)try{ll(),vo(Jn,t,t.return)}finally{ol(t)}else vo(Jn,t,t.return);break}case C:{Lh(t,t.return);var u=t.stateNode;typeof u.componentWillUnmount=="function"&&ZC(t,t.return,u);break}case H:{Lh(t,t.return);break}case N:{var d=t.memoizedState!==null;if(d){kD(e);continue}break}}s!==null?(s.return=t,ot=s):kD(e)}}function kD(e){for(;ot!==null;){var t=ot;if(t===e){ot=null;return}var s=t.sibling;if(s!==null){s.return=t.return,ot=s;return}ot=t.return}}function CF(e){for(;ot!==null;){var t=ot,s=t.child;if(t.tag===N){var u=t.memoizedState!==null;if(u){FD(e);continue}}s!==null?(s.return=t,ot=s):FD(e)}}function FD(e){for(;ot!==null;){var t=ot;_r(t);try{cF(t)}catch(u){jr(t,t.return,u)}if(Ur(),t===e){ot=null;return}var s=t.sibling;if(s!==null){s.return=t.return,ot=s;return}ot=t.return}}function SF(e,t,s,u){ot=t,wF(t,e,s,u)}function wF(e,t,s,u){for(;ot!==null;){var d=ot,g=d.child;(d.subtreeFlags&Js)!==dt&&g!==null?(g.return=d,ot=g):bF(e,t,s,u)}}function bF(e,t,s,u){for(;ot!==null;){var d=ot;if((d.flags&Pi)!==dt){_r(d);try{_F(t,d,s,u)}catch(y){jr(d,d.return,y)}Ur()}if(d===e){ot=null;return}var g=d.sibling;if(g!==null){g.return=d.return,ot=g;return}ot=d.return}}function _F(e,t,s,u){switch(t.tag){case w:case U:case ee:{if(t.mode&or){xC();try{vc(_i|Xn,t)}finally{yC(t)}}else vc(_i|Xn,t);break}}}function DF(e){ot=e,TF()}function TF(){for(;ot!==null;){var e=ot,t=e.child;if((ot.flags&_a)!==dt){var s=e.deletions;if(s!==null){for(var u=0;u<s.length;u++){var d=s[u];ot=d,kF(d,e)}{var g=e.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var E=y.sibling;y.sibling=null,y=E}while(y!==null)}}}ot=e}}(e.subtreeFlags&Js)!==dt&&t!==null?(t.return=e,ot=t):RF()}}function RF(){for(;ot!==null;){var e=ot;(e.flags&Pi)!==dt&&(_r(e),AF(e),Ur());var t=e.sibling;if(t!==null){t.return=e.return,ot=t;return}ot=e.return}}function AF(e){switch(e.tag){case w:case U:case ee:{e.mode&or?(xC(),vo(_i|Xn,e,e.return),yC(e)):vo(_i|Xn,e,e.return);break}}}function kF(e,t){for(;ot!==null;){var s=ot;_r(s),OF(s,t),Ur();var u=s.child;u!==null?(u.return=s,ot=u):FF(e)}}function FF(e){for(;ot!==null;){var t=ot,s=t.sibling,u=t.return;if(wD(t),t===e){ot=null;return}if(s!==null){s.return=u,ot=s;return}ot=u}}function OF(e,t){switch(e.tag){case w:case U:case ee:{e.mode&or?(xC(),vo(_i,e,t),yC(e)):vo(_i,e,t);break}}}function BF(e){switch(e.tag){case w:case U:case ee:{try{vc(Jn|Xn,e)}catch(s){jr(e,e.return,s)}break}case C:{var t=e.stateNode;try{t.componentDidMount()}catch(s){jr(e,e.return,s)}break}}}function MF(e){switch(e.tag){case w:case U:case ee:{try{vc(_i|Xn,e)}catch(t){jr(e,e.return,t)}break}}}function NF(e){switch(e.tag){case w:case U:case ee:{try{vo(Jn|Xn,e,e.return)}catch(s){jr(e,e.return,s)}break}case C:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&ZC(e,e.return,t);break}}}function HF(e){switch(e.tag){case w:case U:case ee:try{vo(_i|Xn,e,e.return)}catch(t){jr(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var rv=Symbol.for;rv("selector.component"),rv("selector.has_pseudo_class"),rv("selector.role"),rv("selector.test_id"),rv("selector.text")}var IF=[];function $F(){IF.forEach(function(e){return e()})}var PF=i.ReactCurrentActQueue;function LF(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&t!==!1}}function OD(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&PF.current!==null&&v("The current testing environment is not configured to support act(...)"),e}}var UF=Math.ceil,t2=i.ReactCurrentDispatcher,r2=i.ReactCurrentOwner,Ai=i.ReactCurrentBatchConfig,yo=i.ReactCurrentActQueue,ri=0,BD=1,ki=2,Is=4,uu=0,nv=1,zf=2,Ty=3,iv=4,MD=5,n2=6,Wt=ri,fa=null,pn=null,ni=Ae,cl=Ae,i2=sc(Ae),ii=uu,av=null,Ry=Ae,sv=Ae,Ay=Ae,ov=null,Ia=null,a2=0,ND=500,HD=1/0,jF=500,cu=null;function lv(){HD=Bn()+jF}function ID(){return HD}var ky=!1,s2=null,Uh=null,qf=!1,mc=null,uv=Ae,o2=[],l2=null,zF=50,cv=0,u2=null,c2=!1,Fy=!1,qF=50,jh=0,Oy=null,fv=Br,By=Ae,$D=!1;function My(){return fa}function da(){return(Wt&(ki|Is))!==ri?Bn():(fv!==Br||(fv=Bn()),fv)}function yc(e){var t=e.mode;if((t&Ht)===ht)return Ct;if((Wt&ki)!==ri&&ni!==Ae)return ff(ni);var s=P5()!==$5;if(s){if(Ai.transition!==null){var u=Ai.transition;u._updatedFibers||(u._updatedFibers=new Set),u._updatedFibers.add(e)}return By===nr&&(By=J0()),By}var d=Oa();if(d!==nr)return d;var g=w3();return g}function YF(e){var t=e.mode;return(t&Ht)===ht?Ct:$g()}function ai(e,t,s,u){v9(),$D&&v("useInsertionEffect must not schedule updates."),c2&&(Fy=!0),Ku(e,s,u),(Wt&ki)!==Ae&&e===fa?y9(t):(zi&&pf(e,t,s),x9(t),e===fa&&((Wt&ki)===ri&&(sv=Ot(sv,s)),ii===iv&&xc(e,ni)),$a(e,u),s===Ct&&Wt===ri&&(t.mode&Ht)===ht&&!yo.isBatchingLegacy&&(lv(),$b()))}function VF(e,t,s){var u=e.current;u.lanes=t,Ku(e,t,s),$a(e,s)}function WF(e){return(Wt&ki)!==ri}function $a(e,t){var s=e.callbackNode;Zd(e,t);var u=Qd(e,e===fa?ni:Ae);if(u===Ae){s!==null&&eT(s),e.callbackNode=null,e.callbackPriority=nr;return}var d=Go(u),g=e.callbackPriority;if(g===d&&!(yo.current!==null&&s!==m2)){s==null&&g!==Ct&&v("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&eT(s);var y;if(d===Ct)e.tag===oc?(yo.isBatchingLegacy!==null&&(yo.didScheduleLegacyUpdate=!0),C5(UD.bind(null,e))):Ib(UD.bind(null,e)),yo.current!==null?yo.current.push(lc):_3(function(){(Wt&(ki|Is))===ri&&lc()}),y=null;else{var E;switch(Yg(u)){case xi:E=Qc;break;case Ts:E=qo;break;case ka:E=eo;break;case Fa:E=Il;break;default:E=eo;break}y=y2(E,PD.bind(null,e))}e.callbackPriority=d,e.callbackNode=y}function PD(e,t){if(f7(),fv=Br,By=Ae,(Wt&(ki|Is))!==ri)throw new Error("Should not already be working.");var s=e.callbackNode,u=du();if(u&&e.callbackNode!==s)return null;var d=Qd(e,e===fa?ni:Ae);if(d===Ae)return null;var g=!Jd(e,d)&&!Ig(e,d)&&!t,y=g?n9(e,d):Hy(e,d);if(y!==uu){if(y===zf){var E=Xd(e);E!==Ae&&(d=E,y=f2(e,E))}if(y===nv){var _=av;throw Yf(e,Ae),xc(e,d),$a(e,Bn()),_}if(y===n2)xc(e,d);else{var O=!Jd(e,d),I=e.current.alternate;if(O&&!KF(I)){if(y=Hy(e,d),y===zf){var re=Xd(e);re!==Ae&&(d=re,y=f2(e,re))}if(y===nv){var J=av;throw Yf(e,Ae),xc(e,d),$a(e,Bn()),J}}e.finishedWork=I,e.finishedLanes=d,GF(e,y,d)}}return $a(e,Bn()),e.callbackNode===s?PD.bind(null,e):null}function f2(e,t){var s=ov;if(rh(e)){var u=Yf(e,t);u.flags|=ci,p5(e.containerInfo)}var d=Hy(e,t);if(d!==zf){var g=Ia;Ia=s,g!==null&&LD(g)}return d}function LD(e){Ia===null?Ia=e:Ia.push.apply(Ia,e)}function GF(e,t,s){switch(t){case uu:case nv:throw new Error("Root did not complete. This is a bug in React.");case zf:{Vf(e,Ia,cu);break}case Ty:{if(xc(e,s),Gl(s)&&!tT()){var u=a2+ND-Bn();if(u>10){var d=Qd(e,Ae);if(d!==Ae)break;var g=e.suspendedLanes;if(!Kl(g,s)){da(),eh(e,g);break}e.timeoutHandle=lE(Vf.bind(null,e,Ia,cu),u);break}}Vf(e,Ia,cu);break}case iv:{if(xc(e,s),Z0(s))break;if(!tT()){var y=Ja(e,s),E=y,_=Bn()-E,O=p9(_)-_;if(O>10){e.timeoutHandle=lE(Vf.bind(null,e,Ia,cu),O);break}}Vf(e,Ia,cu);break}case MD:{Vf(e,Ia,cu);break}default:throw new Error("Unknown root exit status.")}}function KF(e){for(var t=e;;){if(t.flags&qu){var s=t.updateQueue;if(s!==null){var u=s.stores;if(u!==null)for(var d=0;d<u.length;d++){var g=u[d],y=g.getSnapshot,E=g.value;try{if(!Oe(y(),E))return!1}catch{return!1}}}}var _=t.child;if(t.subtreeFlags&qu&&_!==null){_.return=t,t=_;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function xc(e,t){t=df(t,Ay),t=df(t,sv),Ug(e,t)}function UD(e){if(d7(),(Wt&(ki|Is))!==ri)throw new Error("Should not already be working.");du();var t=Qd(e,Ae);if(!Yi(t,Ct))return $a(e,Bn()),null;var s=Hy(e,t);if(e.tag!==oc&&s===zf){var u=Xd(e);u!==Ae&&(t=u,s=f2(e,u))}if(s===nv){var d=av;throw Yf(e,Ae),xc(e,t),$a(e,Bn()),d}if(s===n2)throw new Error("Root did not complete. This is a bug in React.");var g=e.current.alternate;return e.finishedWork=g,e.finishedLanes=t,Vf(e,Ia,cu),$a(e,Bn()),null}function QF(e,t){t!==Ae&&(th(e,Ot(t,Ct)),$a(e,Bn()),(Wt&(ki|Is))===ri&&(lv(),lc()))}function d2(e,t){var s=Wt;Wt|=BD;try{return e(t)}finally{Wt=s,Wt===ri&&!yo.isBatchingLegacy&&(lv(),$b())}}function ZF(e,t,s,u,d){var g=Oa(),y=Ai.transition;try{return Ai.transition=null,Sn(xi),e(t,s,u,d)}finally{Sn(g),Ai.transition=y,Wt===ri&&lv()}}function fu(e){mc!==null&&mc.tag===oc&&(Wt&(ki|Is))===ri&&du();var t=Wt;Wt|=BD;var s=Ai.transition,u=Oa();try{return Ai.transition=null,Sn(xi),e?e():void 0}finally{Sn(u),Ai.transition=s,Wt=t,(Wt&(ki|Is))===ri&&lc()}}function jD(){return(Wt&(ki|Is))!==ri}function Ny(e,t){Qi(i2,cl,e),cl=Ot(cl,t)}function h2(e){cl=i2.current,Ki(i2,e)}function Yf(e,t){e.finishedWork=null,e.finishedLanes=Ae;var s=e.timeoutHandle;if(s!==uE&&(e.timeoutHandle=uE,b3(s)),pn!==null)for(var u=pn.return;u!==null;){var d=u.alternate;mD(d,u),u=u.return}fa=e;var g=Wf(e.current,null);return pn=g,ni=cl=t,ii=uu,av=null,Ry=Ae,sv=Ae,Ay=Ae,ov=null,Ia=null,V5(),uo.discardPendingWarnings(),g}function zD(e,t){do{var s=pn;try{if(Ym(),h_(),Ur(),r2.current=null,s===null||s.return===null){ii=nv,av=t,pn=null;return}if(oe&&s.mode&or&&Ey(s,!0),de)if(oa(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var u=t;Ds(s,u,ni)}else Xc(s,t,ni);C7(e,s.return,s,t,ni),WD(s)}catch(d){t=d,pn===s&&s!==null?(s=s.return,pn=s):s=pn;continue}return}while(!0)}function qD(){var e=t2.current;return t2.current=vy,e===null?vy:e}function YD(e){t2.current=e}function XF(){a2=Bn()}function dv(e){Ry=Ot(e,Ry)}function JF(){ii===uu&&(ii=Ty)}function p2(){(ii===uu||ii===Ty||ii===zf)&&(ii=iv),fa!==null&&(cf(Ry)||cf(sv))&&xc(fa,ni)}function e9(e){ii!==iv&&(ii=zf),ov===null?ov=[e]:ov.push(e)}function t9(){return ii===uu}function Hy(e,t){var s=Wt;Wt|=ki;var u=qD();if(fa!==e||ni!==t){if(zi){var d=e.memoizedUpdaters;d.size>0&&(hv(e,ni),d.clear()),jg(e,t)}cu=np(),Yf(e,t)}Ul(t);do try{r9();break}catch(g){zD(e,g)}while(!0);if(Ym(),Wt=s,YD(u),pn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Od(),fa=null,ni=Ae,ii}function r9(){for(;pn!==null;)VD(pn)}function n9(e,t){var s=Wt;Wt|=ki;var u=qD();if(fa!==e||ni!==t){if(zi){var d=e.memoizedUpdaters;d.size>0&&(hv(e,ni),d.clear()),jg(e,t)}cu=np(),lv(),Yf(e,t)}Ul(t);do try{i9();break}catch(g){zD(e,g)}while(!0);return Ym(),YD(u),Wt=s,pn!==null?(Bg(),uu):(Od(),fa=null,ni=Ae,ii)}function i9(){for(;pn!==null&&!H0();)VD(pn)}function VD(e){var t=e.alternate;_r(e);var s;(e.mode&or)!==ht?(mC(e),s=v2(t,e,cl),Ey(e,!0)):s=v2(t,e,cl),Ur(),e.memoizedProps=e.pendingProps,s===null?WD(e):pn=s,r2.current=null}function WD(e){var t=e;do{var s=t.alternate,u=t.return;if((t.flags&Kc)===dt){_r(t);var d=void 0;if((t.mode&or)===ht?d=gD(s,t,cl):(mC(t),d=gD(s,t,cl),Ey(t,!1)),Ur(),d!==null){pn=d;return}}else{var g=J7(s,t);if(g!==null){g.flags&=Tg,pn=g;return}if((t.mode&or)!==ht){Ey(t,!1);for(var y=t.actualDuration,E=t.child;E!==null;)y+=E.actualDuration,E=E.sibling;t.actualDuration=y}if(u!==null)u.flags|=Kc,u.subtreeFlags=dt,u.deletions=null;else{ii=n2,pn=null;return}}var _=t.sibling;if(_!==null){pn=_;return}t=u,pn=t}while(t!==null);ii===uu&&(ii=MD)}function Vf(e,t,s){var u=Oa(),d=Ai.transition;try{Ai.transition=null,Sn(xi),a9(e,t,s,u)}finally{Ai.transition=d,Sn(u)}return null}function a9(e,t,s,u){do du();while(mc!==null);if(g9(),(Wt&(ki|Is))!==ri)throw new Error("Should not already be working.");var d=e.finishedWork,g=e.finishedLanes;if(j0(g),d===null)return z0(),null;if(g===Ae&&v("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=Ae,d===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=nr;var y=Ot(d.lanes,d.childLanes);tp(e,y),e===fa&&(fa=null,pn=null,ni=Ae),((d.subtreeFlags&Js)!==dt||(d.flags&Js)!==dt)&&(qf||(qf=!0,l2=s,y2(eo,function(){return du(),null})));var E=(d.subtreeFlags&(Uo|jo|zo|Js))!==dt,_=(d.flags&(Uo|jo|zo|Js))!==dt;if(E||_){var O=Ai.transition;Ai.transition=null;var I=Oa();Sn(xi);var re=Wt;Wt|=Is,r2.current=null,iF(e,d),$_(),yF(e,d,g),m3(e.containerInfo),e.current=d,Jc(g),xF(d,e,g),ef(),I0(),Wt=re,Sn(I),Ai.transition=O}else e.current=d,$_();var J=qf;if(qf?(qf=!1,mc=e,uv=g):(jh=0,Oy=null),y=e.pendingLanes,y===Ae&&(Uh=null),J||ZD(e.current,!1),P0(d.stateNode,u),zi&&e.memoizedUpdaters.clear(),$F(),$a(e,Bn()),t!==null)for(var le=e.onRecoverableError,fe=0;fe<t.length;fe++){var me=t[fe],qe=me.stack,vt=me.digest;le(me.value,{componentStack:qe,digest:vt})}if(ky){ky=!1;var ct=s2;throw s2=null,ct}return Yi(uv,Ct)&&e.tag!==oc&&du(),y=e.pendingLanes,Yi(y,Ct)?(c7(),e===u2?cv++:(cv=0,u2=e)):cv=0,lc(),z0(),null}function du(){if(mc!==null){var e=Yg(uv),t=gf(ka,e),s=Ai.transition,u=Oa();try{return Ai.transition=null,Sn(t),o9()}finally{Sn(u),Ai.transition=s}}return!1}function s9(e){o2.push(e),qf||(qf=!0,y2(eo,function(){return du(),null}))}function o9(){if(mc===null)return!1;var e=l2;l2=null;var t=mc,s=uv;if(mc=null,uv=Ae,(Wt&(ki|Is))!==ri)throw new Error("Cannot flush passive effects while already rendering.");c2=!0,Fy=!1,Ll(s);var u=Wt;Wt|=Is,DF(t.current),SF(t,t.current,s,e);{var d=o2;o2=[];for(var g=0;g<d.length;g++){var y=d[g];lF(t,y)}}V0(),ZD(t.current,!0),Wt=u,lc(),Fy?t===Oy?jh++:(jh=0,Oy=t):jh=0,c2=!1,Fy=!1,L0(t);{var E=t.current.stateNode;E.effectDuration=0,E.passiveEffectDuration=0}return!0}function GD(e){return Uh!==null&&Uh.has(e)}function l9(e){Uh===null?Uh=new Set([e]):Uh.add(e)}function u9(e){ky||(ky=!0,s2=e)}var c9=u9;function KD(e,t,s){var u=Uf(s,t),d=V_(e,u,Ct),g=cc(e,d,Ct),y=da();g!==null&&(Ku(g,Ct,y),$a(g,y))}function jr(e,t,s){if(tF(s),pv(!1),e.tag===R){KD(e,e,s);return}var u=null;for(u=t;u!==null;){if(u.tag===R){KD(u,e,s);return}else if(u.tag===C){var d=u.type,g=u.stateNode;if(typeof d.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&!GD(g)){var y=Uf(s,e),E=NC(u,y,Ct),_=cc(u,E,Ct),O=da();_!==null&&(Ku(_,Ct,O),$a(_,O));return}}u=u.return}v(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
183
|
+
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:O=" You returned: "+E,v("%s must not return anything besides a function, which is used for clean-up.%s",_,O)}}}g=g.next}while(g!==d)}}function lF(e,t){if((t.flags&Yt)!==dt)switch(t.tag){case q:{var s=t.stateNode.passiveEffectDuration,u=t.memoizedProps,d=u.id,g=u.onPostCommit,y=I_(),E=t.alternate===null?"mount":"update";H_()&&(E="nested-update"),typeof g=="function"&&g(d,E,s,y);var _=t.return;e:for(;_!==null;){switch(_.tag){case T:var O=_.stateNode;O.passiveEffectDuration+=s;break e;case q:var I=_.stateNode;I.passiveEffectDuration+=s;break e}_=_.return}break}}}function uF(e,t,s,u){if((s.flags&zo)!==dt)switch(s.tag){case b:case U:case ee:{if(!Ti)if(s.mode&or)try{ll(),vc(Jn|Xn,s)}finally{ol(s)}else vc(Jn|Xn,s);break}case C:{var d=s.stateNode;if(s.flags&Yt&&!Ti)if(t===null)if(s.type===s.elementType&&!jf&&(d.props!==s.memoizedProps&&v("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",_t(s)||"instance"),d.state!==s.memoizedState&&v("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",_t(s)||"instance")),s.mode&or)try{ll(),d.componentDidMount()}finally{ol(s)}else d.componentDidMount();else{var g=s.elementType===s.type?t.memoizedProps:ho(s.type,t.memoizedProps),y=t.memoizedState;if(s.type===s.elementType&&!jf&&(d.props!==s.memoizedProps&&v("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",_t(s)||"instance"),d.state!==s.memoizedState&&v("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",_t(s)||"instance")),s.mode&or)try{ll(),d.componentDidUpdate(g,y,d.__reactInternalSnapshotBeforeUpdate)}finally{ol(s)}else d.componentDidUpdate(g,y,d.__reactInternalSnapshotBeforeUpdate)}var E=s.updateQueue;E!==null&&(s.type===s.elementType&&!jf&&(d.props!==s.memoizedProps&&v("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",_t(s)||"instance"),d.state!==s.memoizedState&&v("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",_t(s)||"instance")),o_(s,E,d));break}case T:{var _=s.updateQueue;if(_!==null){var O=null;if(s.child!==null)switch(s.child.tag){case H:O=s.child.stateNode;break;case C:O=s.child.stateNode;break}o_(s,_,O)}break}case H:{var I=s.stateNode;if(t===null&&s.flags&Yt){var re=s.type,J=s.memoizedProps;T3(I,re,J)}break}case P:break;case A:break;case q:{{var le=s.memoizedProps,fe=le.onCommit,me=le.onRender,qe=s.stateNode.effectDuration,vt=I_(),ct=t===null?"mount":"update";H_()&&(ct="nested-update"),typeof me=="function"&&me(s.memoizedProps.id,ct,s.actualDuration,s.treeBaseDuration,s.actualStartTime,vt);{typeof fe=="function"&&fe(s.memoizedProps.id,ct,qe,vt),s9(s);var Gt=s.return;e:for(;Gt!==null;){switch(Gt.tag){case T:var Ut=Gt.stateNode;Ut.effectDuration+=qe;break e;case q:var ie=Gt.stateNode;ie.effectDuration+=qe;break e}Gt=Gt.return}}}break}case K:{mF(e,s);break}case F:case Ee:case L:case N:case De:case $e:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Ti||s.flags&an&&SD(s)}function cF(e){switch(e.tag){case b:case U:case ee:{if(e.mode&or)try{ll(),xD(e,e.return)}finally{ol(e)}else xD(e,e.return);break}case C:{var t=e.stateNode;typeof t.componentDidMount=="function"&&nF(e,e.return,t),ED(e,e.return);break}case H:{ED(e,e.return);break}}}function fF(e,t){for(var s=null,u=e;;){if(u.tag===H){if(s===null){s=u;try{var d=u.stateNode;t?I3(d):P3(u.stateNode,u.memoizedProps)}catch(y){jr(e,e.return,y)}}}else if(u.tag===P){if(s===null)try{var g=u.stateNode;t?$3(g):L3(g,u.memoizedProps)}catch(y){jr(e,e.return,y)}}else if(!((u.tag===N||u.tag===De)&&u.memoizedState!==null&&u!==e)){if(u.child!==null){u.child.return=u,u=u.child;continue}}if(u===e)return;for(;u.sibling===null;){if(u.return===null||u.return===e)return;s===u&&(s=null),u=u.return}s===u&&(s=null),u.sibling.return=u.return,u=u.sibling}}function SD(e){var t=e.ref;if(t!==null){var s=e.stateNode,u;switch(e.tag){case H:u=s;break;default:u=s}if(typeof t=="function"){var d;if(e.mode&or)try{ll(),d=t(u)}finally{ol(e)}else d=t(u);typeof d=="function"&&v("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",_t(e))}else t.hasOwnProperty("current")||v("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",_t(e)),t.current=u}}function dF(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function wD(e){var t=e.alternate;t!==null&&(e.alternate=null,wD(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===H){var s=e.stateNode;s!==null&&y5(s)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function hF(e){for(var t=e.return;t!==null;){if(bD(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function bD(e){return e.tag===H||e.tag===T||e.tag===A}function _D(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||bD(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==H&&t.tag!==P&&t.tag!==Z;){if(t.flags&Xr||t.child===null||t.tag===A)continue e;t.child.return=t,t=t.child}if(!(t.flags&Xr))return t.stateNode}}function pF(e){var t=hF(e);switch(t.tag){case H:{var s=t.stateNode;t.flags&Da&&(Tb(s),t.flags&=~Da);var u=_D(e);JC(e,u,s);break}case T:case A:{var d=t.stateNode.containerInfo,g=_D(e);XC(e,g,d);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function XC(e,t,s){var u=e.tag,d=u===H||u===P;if(d){var g=e.stateNode;t?B3(s,g,t):F3(s,g)}else if(u!==A){var y=e.child;if(y!==null){XC(y,t,s);for(var E=y.sibling;E!==null;)XC(E,t,s),E=E.sibling}}}function JC(e,t,s){var u=e.tag,d=u===H||u===P;if(d){var g=e.stateNode;t?O3(s,g,t):k3(s,g)}else if(u!==A){var y=e.child;if(y!==null){JC(y,t,s);for(var E=y.sibling;E!==null;)JC(E,t,s),E=E.sibling}}}var Ri=null,go=!1;function vF(e,t,s){{var u=t;e:for(;u!==null;){switch(u.tag){case H:{Ri=u.stateNode,go=!1;break e}case T:{Ri=u.stateNode.containerInfo,go=!0;break e}case A:{Ri=u.stateNode.containerInfo,go=!0;break e}}u=u.return}if(Ri===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");DD(e,t,s),Ri=null,go=!1}dF(s)}function gc(e,t,s){for(var u=s.child;u!==null;)DD(e,t,u),u=u.sibling}function DD(e,t,s){switch(U0(s),s.tag){case H:Ti||Lh(s,t);case P:{{var u=Ri,d=go;Ri=null,gc(e,t,s),Ri=u,go=d,Ri!==null&&(go?N3(Ri,s.stateNode):M3(Ri,s.stateNode))}return}case Z:{Ri!==null&&(go?H3(Ri,s.stateNode):cE(Ri,s.stateNode));return}case A:{{var g=Ri,y=go;Ri=s.stateNode.containerInfo,go=!0,gc(e,t,s),Ri=g,go=y}return}case b:case U:case X:case ee:{if(!Ti){var E=s.updateQueue;if(E!==null){var _=E.lastEffect;if(_!==null){var O=_.next,I=O;do{var re=I,J=re.destroy,le=re.tag;J!==void 0&&((le&il)!==Ha?Dy(s,t,J):(le&Jn)!==Ha&&(Zc(s),s.mode&or?(ll(),Dy(s,t,J),ol(s)):Dy(s,t,J),Y0())),I=I.next}while(I!==O)}}}gc(e,t,s);return}case C:{if(!Ti){Lh(s,t);var fe=s.stateNode;typeof fe.componentWillUnmount=="function"&&ZC(s,t,fe)}gc(e,t,s);return}case L:{gc(e,t,s);return}case N:{if(s.mode&Ht){var me=Ti;Ti=me||s.memoizedState!==null,gc(e,t,s),Ti=me}else gc(e,t,s);break}default:{gc(e,t,s);return}}}function gF(e){e.memoizedState}function mF(e,t){var s=t.memoizedState;if(s===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var g=d.dehydrated;g!==null&&t5(g)}}}}function TD(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var s=e.stateNode;s===null&&(s=e.stateNode=new eF),t.forEach(function(u){var d=h9.bind(null,e,u);if(!s.has(u)){if(s.add(u),zi)if($h!==null&&Ph!==null)hv(Ph,$h);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");u.then(d,d)}})}}function yF(e,t,s){$h=s,Ph=e,_r(t),RD(t,e),_r(t),$h=null,Ph=null}function mo(e,t,s){var u=t.deletions;if(u!==null)for(var d=0;d<u.length;d++){var g=u[d];try{vF(e,t,g)}catch(_){jr(g,t,_)}}var y=Oo();if(t.subtreeFlags&jo)for(var E=t.child;E!==null;)_r(E),RD(E,e),E=E.sibling;_r(y)}function RD(e,t,s){var u=e.alternate,d=e.flags;switch(e.tag){case b:case U:case X:case ee:{if(mo(t,e),ul(e),d&Yt){try{vo(il|Xn,e,e.return),vc(il|Xn,e)}catch(St){jr(e,e.return,St)}if(e.mode&or){try{ll(),vo(Jn|Xn,e,e.return)}catch(St){jr(e,e.return,St)}ol(e)}else try{vo(Jn|Xn,e,e.return)}catch(St){jr(e,e.return,St)}}return}case C:{mo(t,e),ul(e),d&an&&u!==null&&Lh(u,u.return);return}case H:{mo(t,e),ul(e),d&an&&u!==null&&Lh(u,u.return);{if(e.flags&Da){var g=e.stateNode;try{Tb(g)}catch(St){jr(e,e.return,St)}}if(d&Yt){var y=e.stateNode;if(y!=null){var E=e.memoizedProps,_=u!==null?u.memoizedProps:E,O=e.type,I=e.updateQueue;if(e.updateQueue=null,I!==null)try{R3(y,I,O,_,E,e)}catch(St){jr(e,e.return,St)}}}}return}case P:{if(mo(t,e),ul(e),d&Yt){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var re=e.stateNode,J=e.memoizedProps,le=u!==null?u.memoizedProps:J;try{A3(re,le,J)}catch(St){jr(e,e.return,St)}}return}case T:{if(mo(t,e),ul(e),d&Yt&&u!==null){var fe=u.memoizedState;if(fe.isDehydrated)try{e5(t.containerInfo)}catch(St){jr(e,e.return,St)}}return}case A:{mo(t,e),ul(e);return}case K:{mo(t,e),ul(e);var me=e.child;if(me.flags&yn){var qe=me.stateNode,vt=me.memoizedState,ct=vt!==null;if(qe.isHidden=ct,ct){var Gt=me.alternate!==null&&me.alternate.memoizedState!==null;Gt||XF()}}if(d&Yt){try{gF(e)}catch(St){jr(e,e.return,St)}TD(e)}return}case N:{var Ut=u!==null&&u.memoizedState!==null;if(e.mode&Ht){var ie=Ti;Ti=ie||Ut,mo(t,e),Ti=ie}else mo(t,e);if(ul(e),d&yn){var ye=e.stateNode,ae=e.memoizedState,Me=ae!==null,Ze=e;if(ye.isHidden=Me,Me&&!Ut&&(Ze.mode&Ht)!==ht){ot=Ze;for(var We=Ze.child;We!==null;)ot=We,EF(We),We=We.sibling}fF(Ze,Me)}return}case F:{mo(t,e),ul(e),d&Yt&&TD(e);return}case L:return;default:{mo(t,e),ul(e);return}}}function ul(e){var t=e.flags;if(t&Xr){try{pF(e)}catch(s){jr(e,e.return,s)}e.flags&=~Xr}t&Li&&(e.flags&=~Li)}function xF(e,t,s){$h=s,Ph=t,ot=e,AD(e,t,s),$h=null,Ph=null}function AD(e,t,s){for(var u=(e.mode&Ht)!==ht;ot!==null;){var d=ot,g=d.child;if(d.tag===N&&u){var y=d.memoizedState!==null,E=y||_y;if(E){e2(e,t,s);continue}else{var _=d.alternate,O=_!==null&&_.memoizedState!==null,I=O||Ti,re=_y,J=Ti;_y=E,Ti=I,Ti&&!J&&(ot=d,CF(d));for(var le=g;le!==null;)ot=le,AD(le,t,s),le=le.sibling;ot=d,_y=re,Ti=J,e2(e,t,s);continue}}(d.subtreeFlags&zo)!==dt&&g!==null?(g.return=d,ot=g):e2(e,t,s)}}function e2(e,t,s){for(;ot!==null;){var u=ot;if((u.flags&zo)!==dt){var d=u.alternate;_r(u);try{uF(t,d,u,s)}catch(y){jr(u,u.return,y)}Ur()}if(u===e){ot=null;return}var g=u.sibling;if(g!==null){g.return=u.return,ot=g;return}ot=u.return}}function EF(e){for(;ot!==null;){var t=ot,s=t.child;switch(t.tag){case b:case U:case X:case ee:{if(t.mode&or)try{ll(),vo(Jn,t,t.return)}finally{ol(t)}else vo(Jn,t,t.return);break}case C:{Lh(t,t.return);var u=t.stateNode;typeof u.componentWillUnmount=="function"&&ZC(t,t.return,u);break}case H:{Lh(t,t.return);break}case N:{var d=t.memoizedState!==null;if(d){kD(e);continue}break}}s!==null?(s.return=t,ot=s):kD(e)}}function kD(e){for(;ot!==null;){var t=ot;if(t===e){ot=null;return}var s=t.sibling;if(s!==null){s.return=t.return,ot=s;return}ot=t.return}}function CF(e){for(;ot!==null;){var t=ot,s=t.child;if(t.tag===N){var u=t.memoizedState!==null;if(u){FD(e);continue}}s!==null?(s.return=t,ot=s):FD(e)}}function FD(e){for(;ot!==null;){var t=ot;_r(t);try{cF(t)}catch(u){jr(t,t.return,u)}if(Ur(),t===e){ot=null;return}var s=t.sibling;if(s!==null){s.return=t.return,ot=s;return}ot=t.return}}function SF(e,t,s,u){ot=t,wF(t,e,s,u)}function wF(e,t,s,u){for(;ot!==null;){var d=ot,g=d.child;(d.subtreeFlags&Js)!==dt&&g!==null?(g.return=d,ot=g):bF(e,t,s,u)}}function bF(e,t,s,u){for(;ot!==null;){var d=ot;if((d.flags&Pi)!==dt){_r(d);try{_F(t,d,s,u)}catch(y){jr(d,d.return,y)}Ur()}if(d===e){ot=null;return}var g=d.sibling;if(g!==null){g.return=d.return,ot=g;return}ot=d.return}}function _F(e,t,s,u){switch(t.tag){case b:case U:case ee:{if(t.mode&or){xC();try{vc(_i|Xn,t)}finally{yC(t)}}else vc(_i|Xn,t);break}}}function DF(e){ot=e,TF()}function TF(){for(;ot!==null;){var e=ot,t=e.child;if((ot.flags&_a)!==dt){var s=e.deletions;if(s!==null){for(var u=0;u<s.length;u++){var d=s[u];ot=d,kF(d,e)}{var g=e.alternate;if(g!==null){var y=g.child;if(y!==null){g.child=null;do{var E=y.sibling;y.sibling=null,y=E}while(y!==null)}}}ot=e}}(e.subtreeFlags&Js)!==dt&&t!==null?(t.return=e,ot=t):RF()}}function RF(){for(;ot!==null;){var e=ot;(e.flags&Pi)!==dt&&(_r(e),AF(e),Ur());var t=e.sibling;if(t!==null){t.return=e.return,ot=t;return}ot=e.return}}function AF(e){switch(e.tag){case b:case U:case ee:{e.mode&or?(xC(),vo(_i|Xn,e,e.return),yC(e)):vo(_i|Xn,e,e.return);break}}}function kF(e,t){for(;ot!==null;){var s=ot;_r(s),OF(s,t),Ur();var u=s.child;u!==null?(u.return=s,ot=u):FF(e)}}function FF(e){for(;ot!==null;){var t=ot,s=t.sibling,u=t.return;if(wD(t),t===e){ot=null;return}if(s!==null){s.return=u,ot=s;return}ot=u}}function OF(e,t){switch(e.tag){case b:case U:case ee:{e.mode&or?(xC(),vo(_i,e,t),yC(e)):vo(_i,e,t);break}}}function BF(e){switch(e.tag){case b:case U:case ee:{try{vc(Jn|Xn,e)}catch(s){jr(e,e.return,s)}break}case C:{var t=e.stateNode;try{t.componentDidMount()}catch(s){jr(e,e.return,s)}break}}}function MF(e){switch(e.tag){case b:case U:case ee:{try{vc(_i|Xn,e)}catch(t){jr(e,e.return,t)}break}}}function NF(e){switch(e.tag){case b:case U:case ee:{try{vo(Jn|Xn,e,e.return)}catch(s){jr(e,e.return,s)}break}case C:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&ZC(e,e.return,t);break}}}function HF(e){switch(e.tag){case b:case U:case ee:try{vo(_i|Xn,e,e.return)}catch(t){jr(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var rv=Symbol.for;rv("selector.component"),rv("selector.has_pseudo_class"),rv("selector.role"),rv("selector.test_id"),rv("selector.text")}var IF=[];function $F(){IF.forEach(function(e){return e()})}var PF=i.ReactCurrentActQueue;function LF(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,s=typeof jest<"u";return s&&t!==!1}}function OD(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&PF.current!==null&&v("The current testing environment is not configured to support act(...)"),e}}var UF=Math.ceil,t2=i.ReactCurrentDispatcher,r2=i.ReactCurrentOwner,Ai=i.ReactCurrentBatchConfig,yo=i.ReactCurrentActQueue,ri=0,BD=1,ki=2,Is=4,uu=0,nv=1,zf=2,Ty=3,iv=4,MD=5,n2=6,Wt=ri,fa=null,pn=null,ni=Ae,cl=Ae,i2=sc(Ae),ii=uu,av=null,Ry=Ae,sv=Ae,Ay=Ae,ov=null,Ia=null,a2=0,ND=500,HD=1/0,jF=500,cu=null;function lv(){HD=Bn()+jF}function ID(){return HD}var ky=!1,s2=null,Uh=null,qf=!1,mc=null,uv=Ae,o2=[],l2=null,zF=50,cv=0,u2=null,c2=!1,Fy=!1,qF=50,jh=0,Oy=null,fv=Br,By=Ae,$D=!1;function My(){return fa}function da(){return(Wt&(ki|Is))!==ri?Bn():(fv!==Br||(fv=Bn()),fv)}function yc(e){var t=e.mode;if((t&Ht)===ht)return Ct;if((Wt&ki)!==ri&&ni!==Ae)return ff(ni);var s=P5()!==$5;if(s){if(Ai.transition!==null){var u=Ai.transition;u._updatedFibers||(u._updatedFibers=new Set),u._updatedFibers.add(e)}return By===nr&&(By=J0()),By}var d=Oa();if(d!==nr)return d;var g=w3();return g}function YF(e){var t=e.mode;return(t&Ht)===ht?Ct:$g()}function ai(e,t,s,u){v9(),$D&&v("useInsertionEffect must not schedule updates."),c2&&(Fy=!0),Ku(e,s,u),(Wt&ki)!==Ae&&e===fa?y9(t):(zi&&pf(e,t,s),x9(t),e===fa&&((Wt&ki)===ri&&(sv=Ot(sv,s)),ii===iv&&xc(e,ni)),$a(e,u),s===Ct&&Wt===ri&&(t.mode&Ht)===ht&&!yo.isBatchingLegacy&&(lv(),$b()))}function VF(e,t,s){var u=e.current;u.lanes=t,Ku(e,t,s),$a(e,s)}function WF(e){return(Wt&ki)!==ri}function $a(e,t){var s=e.callbackNode;Zd(e,t);var u=Qd(e,e===fa?ni:Ae);if(u===Ae){s!==null&&eT(s),e.callbackNode=null,e.callbackPriority=nr;return}var d=Go(u),g=e.callbackPriority;if(g===d&&!(yo.current!==null&&s!==m2)){s==null&&g!==Ct&&v("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}s!=null&&eT(s);var y;if(d===Ct)e.tag===oc?(yo.isBatchingLegacy!==null&&(yo.didScheduleLegacyUpdate=!0),C5(UD.bind(null,e))):Ib(UD.bind(null,e)),yo.current!==null?yo.current.push(lc):_3(function(){(Wt&(ki|Is))===ri&&lc()}),y=null;else{var E;switch(Yg(u)){case xi:E=Qc;break;case Ts:E=qo;break;case ka:E=eo;break;case Fa:E=Il;break;default:E=eo;break}y=y2(E,PD.bind(null,e))}e.callbackPriority=d,e.callbackNode=y}function PD(e,t){if(f7(),fv=Br,By=Ae,(Wt&(ki|Is))!==ri)throw new Error("Should not already be working.");var s=e.callbackNode,u=du();if(u&&e.callbackNode!==s)return null;var d=Qd(e,e===fa?ni:Ae);if(d===Ae)return null;var g=!Jd(e,d)&&!Ig(e,d)&&!t,y=g?n9(e,d):Hy(e,d);if(y!==uu){if(y===zf){var E=Xd(e);E!==Ae&&(d=E,y=f2(e,E))}if(y===nv){var _=av;throw Yf(e,Ae),xc(e,d),$a(e,Bn()),_}if(y===n2)xc(e,d);else{var O=!Jd(e,d),I=e.current.alternate;if(O&&!KF(I)){if(y=Hy(e,d),y===zf){var re=Xd(e);re!==Ae&&(d=re,y=f2(e,re))}if(y===nv){var J=av;throw Yf(e,Ae),xc(e,d),$a(e,Bn()),J}}e.finishedWork=I,e.finishedLanes=d,GF(e,y,d)}}return $a(e,Bn()),e.callbackNode===s?PD.bind(null,e):null}function f2(e,t){var s=ov;if(rh(e)){var u=Yf(e,t);u.flags|=ci,p5(e.containerInfo)}var d=Hy(e,t);if(d!==zf){var g=Ia;Ia=s,g!==null&&LD(g)}return d}function LD(e){Ia===null?Ia=e:Ia.push.apply(Ia,e)}function GF(e,t,s){switch(t){case uu:case nv:throw new Error("Root did not complete. This is a bug in React.");case zf:{Vf(e,Ia,cu);break}case Ty:{if(xc(e,s),Gl(s)&&!tT()){var u=a2+ND-Bn();if(u>10){var d=Qd(e,Ae);if(d!==Ae)break;var g=e.suspendedLanes;if(!Kl(g,s)){da(),eh(e,g);break}e.timeoutHandle=lE(Vf.bind(null,e,Ia,cu),u);break}}Vf(e,Ia,cu);break}case iv:{if(xc(e,s),Z0(s))break;if(!tT()){var y=Ja(e,s),E=y,_=Bn()-E,O=p9(_)-_;if(O>10){e.timeoutHandle=lE(Vf.bind(null,e,Ia,cu),O);break}}Vf(e,Ia,cu);break}case MD:{Vf(e,Ia,cu);break}default:throw new Error("Unknown root exit status.")}}function KF(e){for(var t=e;;){if(t.flags&qu){var s=t.updateQueue;if(s!==null){var u=s.stores;if(u!==null)for(var d=0;d<u.length;d++){var g=u[d],y=g.getSnapshot,E=g.value;try{if(!Oe(y(),E))return!1}catch{return!1}}}}var _=t.child;if(t.subtreeFlags&qu&&_!==null){_.return=t,t=_;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function xc(e,t){t=df(t,Ay),t=df(t,sv),Ug(e,t)}function UD(e){if(d7(),(Wt&(ki|Is))!==ri)throw new Error("Should not already be working.");du();var t=Qd(e,Ae);if(!Yi(t,Ct))return $a(e,Bn()),null;var s=Hy(e,t);if(e.tag!==oc&&s===zf){var u=Xd(e);u!==Ae&&(t=u,s=f2(e,u))}if(s===nv){var d=av;throw Yf(e,Ae),xc(e,t),$a(e,Bn()),d}if(s===n2)throw new Error("Root did not complete. This is a bug in React.");var g=e.current.alternate;return e.finishedWork=g,e.finishedLanes=t,Vf(e,Ia,cu),$a(e,Bn()),null}function QF(e,t){t!==Ae&&(th(e,Ot(t,Ct)),$a(e,Bn()),(Wt&(ki|Is))===ri&&(lv(),lc()))}function d2(e,t){var s=Wt;Wt|=BD;try{return e(t)}finally{Wt=s,Wt===ri&&!yo.isBatchingLegacy&&(lv(),$b())}}function ZF(e,t,s,u,d){var g=Oa(),y=Ai.transition;try{return Ai.transition=null,Sn(xi),e(t,s,u,d)}finally{Sn(g),Ai.transition=y,Wt===ri&&lv()}}function fu(e){mc!==null&&mc.tag===oc&&(Wt&(ki|Is))===ri&&du();var t=Wt;Wt|=BD;var s=Ai.transition,u=Oa();try{return Ai.transition=null,Sn(xi),e?e():void 0}finally{Sn(u),Ai.transition=s,Wt=t,(Wt&(ki|Is))===ri&&lc()}}function jD(){return(Wt&(ki|Is))!==ri}function Ny(e,t){Qi(i2,cl,e),cl=Ot(cl,t)}function h2(e){cl=i2.current,Ki(i2,e)}function Yf(e,t){e.finishedWork=null,e.finishedLanes=Ae;var s=e.timeoutHandle;if(s!==uE&&(e.timeoutHandle=uE,b3(s)),pn!==null)for(var u=pn.return;u!==null;){var d=u.alternate;mD(d,u),u=u.return}fa=e;var g=Wf(e.current,null);return pn=g,ni=cl=t,ii=uu,av=null,Ry=Ae,sv=Ae,Ay=Ae,ov=null,Ia=null,V5(),uo.discardPendingWarnings(),g}function zD(e,t){do{var s=pn;try{if(Ym(),h_(),Ur(),r2.current=null,s===null||s.return===null){ii=nv,av=t,pn=null;return}if(oe&&s.mode&or&&Ey(s,!0),de)if(oa(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var u=t;Ds(s,u,ni)}else Xc(s,t,ni);C7(e,s.return,s,t,ni),WD(s)}catch(d){t=d,pn===s&&s!==null?(s=s.return,pn=s):s=pn;continue}return}while(!0)}function qD(){var e=t2.current;return t2.current=vy,e===null?vy:e}function YD(e){t2.current=e}function XF(){a2=Bn()}function dv(e){Ry=Ot(e,Ry)}function JF(){ii===uu&&(ii=Ty)}function p2(){(ii===uu||ii===Ty||ii===zf)&&(ii=iv),fa!==null&&(cf(Ry)||cf(sv))&&xc(fa,ni)}function e9(e){ii!==iv&&(ii=zf),ov===null?ov=[e]:ov.push(e)}function t9(){return ii===uu}function Hy(e,t){var s=Wt;Wt|=ki;var u=qD();if(fa!==e||ni!==t){if(zi){var d=e.memoizedUpdaters;d.size>0&&(hv(e,ni),d.clear()),jg(e,t)}cu=np(),Yf(e,t)}Ul(t);do try{r9();break}catch(g){zD(e,g)}while(!0);if(Ym(),Wt=s,YD(u),pn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Od(),fa=null,ni=Ae,ii}function r9(){for(;pn!==null;)VD(pn)}function n9(e,t){var s=Wt;Wt|=ki;var u=qD();if(fa!==e||ni!==t){if(zi){var d=e.memoizedUpdaters;d.size>0&&(hv(e,ni),d.clear()),jg(e,t)}cu=np(),lv(),Yf(e,t)}Ul(t);do try{i9();break}catch(g){zD(e,g)}while(!0);return Ym(),YD(u),Wt=s,pn!==null?(Bg(),uu):(Od(),fa=null,ni=Ae,ii)}function i9(){for(;pn!==null&&!H0();)VD(pn)}function VD(e){var t=e.alternate;_r(e);var s;(e.mode&or)!==ht?(mC(e),s=v2(t,e,cl),Ey(e,!0)):s=v2(t,e,cl),Ur(),e.memoizedProps=e.pendingProps,s===null?WD(e):pn=s,r2.current=null}function WD(e){var t=e;do{var s=t.alternate,u=t.return;if((t.flags&Kc)===dt){_r(t);var d=void 0;if((t.mode&or)===ht?d=gD(s,t,cl):(mC(t),d=gD(s,t,cl),Ey(t,!1)),Ur(),d!==null){pn=d;return}}else{var g=J7(s,t);if(g!==null){g.flags&=Tg,pn=g;return}if((t.mode&or)!==ht){Ey(t,!1);for(var y=t.actualDuration,E=t.child;E!==null;)y+=E.actualDuration,E=E.sibling;t.actualDuration=y}if(u!==null)u.flags|=Kc,u.subtreeFlags=dt,u.deletions=null;else{ii=n2,pn=null;return}}var _=t.sibling;if(_!==null){pn=_;return}t=u,pn=t}while(t!==null);ii===uu&&(ii=MD)}function Vf(e,t,s){var u=Oa(),d=Ai.transition;try{Ai.transition=null,Sn(xi),a9(e,t,s,u)}finally{Ai.transition=d,Sn(u)}return null}function a9(e,t,s,u){do du();while(mc!==null);if(g9(),(Wt&(ki|Is))!==ri)throw new Error("Should not already be working.");var d=e.finishedWork,g=e.finishedLanes;if(j0(g),d===null)return z0(),null;if(g===Ae&&v("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=Ae,d===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=nr;var y=Ot(d.lanes,d.childLanes);tp(e,y),e===fa&&(fa=null,pn=null,ni=Ae),((d.subtreeFlags&Js)!==dt||(d.flags&Js)!==dt)&&(qf||(qf=!0,l2=s,y2(eo,function(){return du(),null})));var E=(d.subtreeFlags&(Uo|jo|zo|Js))!==dt,_=(d.flags&(Uo|jo|zo|Js))!==dt;if(E||_){var O=Ai.transition;Ai.transition=null;var I=Oa();Sn(xi);var re=Wt;Wt|=Is,r2.current=null,iF(e,d),$_(),yF(e,d,g),m3(e.containerInfo),e.current=d,Jc(g),xF(d,e,g),ef(),I0(),Wt=re,Sn(I),Ai.transition=O}else e.current=d,$_();var J=qf;if(qf?(qf=!1,mc=e,uv=g):(jh=0,Oy=null),y=e.pendingLanes,y===Ae&&(Uh=null),J||ZD(e.current,!1),P0(d.stateNode,u),zi&&e.memoizedUpdaters.clear(),$F(),$a(e,Bn()),t!==null)for(var le=e.onRecoverableError,fe=0;fe<t.length;fe++){var me=t[fe],qe=me.stack,vt=me.digest;le(me.value,{componentStack:qe,digest:vt})}if(ky){ky=!1;var ct=s2;throw s2=null,ct}return Yi(uv,Ct)&&e.tag!==oc&&du(),y=e.pendingLanes,Yi(y,Ct)?(c7(),e===u2?cv++:(cv=0,u2=e)):cv=0,lc(),z0(),null}function du(){if(mc!==null){var e=Yg(uv),t=gf(ka,e),s=Ai.transition,u=Oa();try{return Ai.transition=null,Sn(t),o9()}finally{Sn(u),Ai.transition=s}}return!1}function s9(e){o2.push(e),qf||(qf=!0,y2(eo,function(){return du(),null}))}function o9(){if(mc===null)return!1;var e=l2;l2=null;var t=mc,s=uv;if(mc=null,uv=Ae,(Wt&(ki|Is))!==ri)throw new Error("Cannot flush passive effects while already rendering.");c2=!0,Fy=!1,Ll(s);var u=Wt;Wt|=Is,DF(t.current),SF(t,t.current,s,e);{var d=o2;o2=[];for(var g=0;g<d.length;g++){var y=d[g];lF(t,y)}}V0(),ZD(t.current,!0),Wt=u,lc(),Fy?t===Oy?jh++:(jh=0,Oy=t):jh=0,c2=!1,Fy=!1,L0(t);{var E=t.current.stateNode;E.effectDuration=0,E.passiveEffectDuration=0}return!0}function GD(e){return Uh!==null&&Uh.has(e)}function l9(e){Uh===null?Uh=new Set([e]):Uh.add(e)}function u9(e){ky||(ky=!0,s2=e)}var c9=u9;function KD(e,t,s){var u=Uf(s,t),d=V_(e,u,Ct),g=cc(e,d,Ct),y=da();g!==null&&(Ku(g,Ct,y),$a(g,y))}function jr(e,t,s){if(tF(s),pv(!1),e.tag===T){KD(e,e,s);return}var u=null;for(u=t;u!==null;){if(u.tag===T){KD(u,e,s);return}else if(u.tag===C){var d=u.type,g=u.stateNode;if(typeof d.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&!GD(g)){var y=Uf(s,e),E=NC(u,y,Ct),_=cc(u,E,Ct),O=da();_!==null&&(Ku(_,Ct,O),$a(_,O));return}}u=u.return}v(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
184
184
|
|
|
185
185
|
Error message:
|
|
186
186
|
|
|
187
|
-
%s`,s)}function f9(e,t,s){var u=e.pingCache;u!==null&&u.delete(t);var d=da();eh(e,s),E9(e),fa===e&&Kl(ni,s)&&(ii===iv||ii===Ty&&Gl(ni)&&Bn()-a2<ND?Yf(e,Ae):Ay=Ot(Ay,s)),$a(e,d)}function QD(e,t){t===nr&&(t=YF(e));var s=da(),u=Na(e,t);u!==null&&(Ku(u,t,s),$a(u,s))}function d9(e){var t=e.memoizedState,s=nr;t!==null&&(s=t.retryLane),QD(e,s)}function h9(e,t){var s=nr,u;switch(e.tag){case K:u=e.stateNode;var d=e.memoizedState;d!==null&&(s=d.retryLane);break;case F:u=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(t),QD(e,s)}function p9(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:UF(e/1960)*1960}function v9(){if(cv>zF)throw cv=0,u2=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");jh>qF&&(jh=0,Oy=null,v("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function g9(){uo.flushLegacyContextWarning(),uo.flushPendingUnsafeLifecycleWarnings()}function ZD(e,t){_r(e),Iy(e,Lo,NF),t&&Iy(e,ws,HF),Iy(e,Lo,BF),t&&Iy(e,ws,MF),Ur()}function Iy(e,t,s){for(var u=e,d=null;u!==null;){var g=u.subtreeFlags&t;u!==d&&u.child!==null&&g!==dt?u=u.child:((u.flags&t)!==dt&&s(u),u.sibling!==null?u=u.sibling:u=d=u.return)}}var $y=null;function XD(e){{if((Wt&ki)!==ri||!(e.mode&Ht))return;var t=e.tag;if(t!==
|
|
187
|
+
%s`,s)}function f9(e,t,s){var u=e.pingCache;u!==null&&u.delete(t);var d=da();eh(e,s),E9(e),fa===e&&Kl(ni,s)&&(ii===iv||ii===Ty&&Gl(ni)&&Bn()-a2<ND?Yf(e,Ae):Ay=Ot(Ay,s)),$a(e,d)}function QD(e,t){t===nr&&(t=YF(e));var s=da(),u=Na(e,t);u!==null&&(Ku(u,t,s),$a(u,s))}function d9(e){var t=e.memoizedState,s=nr;t!==null&&(s=t.retryLane),QD(e,s)}function h9(e,t){var s=nr,u;switch(e.tag){case K:u=e.stateNode;var d=e.memoizedState;d!==null&&(s=d.retryLane);break;case F:u=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(t),QD(e,s)}function p9(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:UF(e/1960)*1960}function v9(){if(cv>zF)throw cv=0,u2=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");jh>qF&&(jh=0,Oy=null,v("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function g9(){uo.flushLegacyContextWarning(),uo.flushPendingUnsafeLifecycleWarnings()}function ZD(e,t){_r(e),Iy(e,Lo,NF),t&&Iy(e,ws,HF),Iy(e,Lo,BF),t&&Iy(e,ws,MF),Ur()}function Iy(e,t,s){for(var u=e,d=null;u!==null;){var g=u.subtreeFlags&t;u!==d&&u.child!==null&&g!==dt?u=u.child:((u.flags&t)!==dt&&s(u),u.sibling!==null?u=u.sibling:u=d=u.return)}}var $y=null;function XD(e){{if((Wt&ki)!==ri||!(e.mode&Ht))return;var t=e.tag;if(t!==w&&t!==T&&t!==C&&t!==b&&t!==U&&t!==X&&t!==ee)return;var s=_t(e)||"ReactComponent";if($y!==null){if($y.has(s))return;$y.add(s)}else $y=new Set([s]);var u=Wn;try{_r(e),v("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{u?_r(e):Ur()}}}var v2;{var m9=null;v2=function(e,t,s){var u=sT(m9,t);try{return fD(e,t,s)}catch(g){if(A5()||g!==null&&typeof g=="object"&&typeof g.then=="function")throw g;if(Ym(),h_(),mD(e,t),sT(t,u),t.mode&or&&mC(t),Po(null,fD,null,e,t,s),Zs()){var d=Gc();typeof d=="object"&&d!==null&&d._suppressLogging&&typeof g=="object"&&g!==null&&!g._suppressLogging&&(g._suppressLogging=!0)}throw g}}}var JD=!1,g2;g2=new Set;function y9(e){if(gs&&!o7())switch(e.tag){case b:case U:case ee:{var t=pn&&_t(pn)||"Unknown",s=t;if(!g2.has(s)){g2.add(s);var u=_t(e)||"Unknown";v("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",u,t,t)}break}case C:{JD||(v("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),JD=!0);break}}}function hv(e,t){if(zi){var s=e.memoizedUpdaters;s.forEach(function(u){pf(e,u,t)})}}var m2={};function y2(e,t){{var s=yo.current;return s!==null?(s.push(t),m2):N0(e,t)}}function eT(e){if(e!==m2)return Ag(e)}function tT(){return yo.current!==null}function x9(e){{if(e.mode&Ht){if(!OD())return}else if(!LF()||Wt!==ri||e.tag!==b&&e.tag!==U&&e.tag!==ee)return;if(yo.current===null){var t=Wn;try{_r(e),v(`An update to %s inside a test was not wrapped in act(...).
|
|
188
188
|
|
|
189
189
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
190
190
|
|
|
@@ -202,11 +202,11 @@ act(() => {
|
|
|
202
202
|
});
|
|
203
203
|
/* assert on the output */
|
|
204
204
|
|
|
205
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function pv(e){$D=e}var $s=null,zh=null,C9=function(e){$s=e};function qh(e){{if($s===null)return e;var t=$s(e);return t===void 0?e:t.current}}function x2(e){return qh(e)}function E2(e){{if($s===null)return e;var t=$s(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var s=qh(e.render);if(e.render!==s){var u={$$typeof:Te,render:s};return e.displayName!==void 0&&(u.displayName=e.displayName),u}}return e}return t.current}}function rT(e,t){{if($s===null)return!1;var s=e.elementType,u=t.type,d=!1,g=typeof u=="object"&&u!==null?u.$$typeof:null;switch(e.tag){case C:{typeof u=="function"&&(d=!0);break}case
|
|
205
|
+
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function pv(e){$D=e}var $s=null,zh=null,C9=function(e){$s=e};function qh(e){{if($s===null)return e;var t=$s(e);return t===void 0?e:t.current}}function x2(e){return qh(e)}function E2(e){{if($s===null)return e;var t=$s(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var s=qh(e.render);if(e.render!==s){var u={$$typeof:Te,render:s};return e.displayName!==void 0&&(u.displayName=e.displayName),u}}return e}return t.current}}function rT(e,t){{if($s===null)return!1;var s=e.elementType,u=t.type,d=!1,g=typeof u=="object"&&u!==null?u.$$typeof:null;switch(e.tag){case C:{typeof u=="function"&&(d=!0);break}case b:{(typeof u=="function"||g===Dt)&&(d=!0);break}case U:{(g===Te||g===Dt)&&(d=!0);break}case X:case ee:{(g===kt||g===Dt)&&(d=!0);break}default:return!1}if(d){var y=$s(s);if(y!==void 0&&y===$s(u))return!0}return!1}}function nT(e){{if($s===null||typeof WeakSet!="function")return;zh===null&&(zh=new WeakSet),zh.add(e)}}var S9=function(e,t){{if($s===null)return;var s=t.staleFamilies,u=t.updatedFamilies;du(),fu(function(){C2(e.current,u,s)})}},w9=function(e,t){{if(e.context!==rs)return;du(),fu(function(){vv(t,e,null,null)})}};function C2(e,t,s){{var u=e.alternate,d=e.child,g=e.sibling,y=e.tag,E=e.type,_=null;switch(y){case b:case ee:case C:_=E;break;case U:_=E.render;break}if($s===null)throw new Error("Expected resolveFamily to be set during hot reload.");var O=!1,I=!1;if(_!==null){var re=$s(_);re!==void 0&&(s.has(re)?I=!0:t.has(re)&&(y===C?I=!0:O=!0))}if(zh!==null&&(zh.has(e)||u!==null&&zh.has(u))&&(I=!0),I&&(e._debugNeedsRemount=!0),I||O){var J=Na(e,Ct);J!==null&&ai(J,e,Ct,Br)}d!==null&&!I&&C2(d,t,s),g!==null&&C2(g,t,s)}}var b9=function(e,t){{var s=new Set,u=new Set(t.map(function(d){return d.current}));return S2(e.current,u,s),s}};function S2(e,t,s){{var u=e.child,d=e.sibling,g=e.tag,y=e.type,E=null;switch(g){case b:case ee:case C:E=y;break;case U:E=y.render;break}var _=!1;E!==null&&t.has(E)&&(_=!0),_?_9(e,s):u!==null&&S2(u,t,s),d!==null&&S2(d,t,s)}}function _9(e,t){{var s=D9(e,t);if(s)return;for(var u=e;;){switch(u.tag){case H:t.add(u.stateNode);return;case A:t.add(u.stateNode.containerInfo);return;case T:t.add(u.stateNode.containerInfo);return}if(u.return===null)throw new Error("Expected to reach root first.");u=u.return}}}function D9(e,t){for(var s=e,u=!1;;){if(s.tag===H)u=!0,t.add(s.stateNode);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)return u;for(;s.sibling===null;){if(s.return===null||s.return===e)return u;s=s.return}s.sibling.return=s.return,s=s.sibling}return!1}var w2;{w2=!1;try{var iT=Object.preventExtensions({})}catch{w2=!0}}function T9(e,t,s,u){this.tag=e,this.key=s,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=u,this.flags=dt,this.subtreeFlags=dt,this.deletions=null,this.lanes=Ae,this.childLanes=Ae,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!w2&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var ns=function(e,t,s,u){return new T9(e,t,s,u)};function b2(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function R9(e){return typeof e=="function"&&!b2(e)&&e.defaultProps===void 0}function A9(e){if(typeof e=="function")return b2(e)?C:b;if(e!=null){var t=e.$$typeof;if(t===Te)return U;if(t===kt)return X}return w}function Wf(e,t){var s=e.alternate;s===null?(s=ns(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s._debugSource=e._debugSource,s._debugOwner=e._debugOwner,s._debugHookTypes=e._debugHookTypes,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=dt,s.subtreeFlags=dt,s.deletions=null,s.actualDuration=0,s.actualStartTime=-1),s.flags=e.flags&xn,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue;var u=e.dependencies;switch(s.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.selfBaseDuration=e.selfBaseDuration,s.treeBaseDuration=e.treeBaseDuration,s._debugNeedsRemount=e._debugNeedsRemount,s.tag){case w:case b:case ee:s.type=qh(e.type);break;case C:s.type=x2(e.type);break;case U:s.type=E2(e.type);break}return s}function k9(e,t){e.flags&=xn|Xr;var s=e.alternate;if(s===null)e.childLanes=Ae,e.lanes=t,e.child=null,e.subtreeFlags=dt,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=dt,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type;var u=s.dependencies;e.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},e.selfBaseDuration=s.selfBaseDuration,e.treeBaseDuration=s.treeBaseDuration}return e}function F9(e,t,s){var u;return e===Nm?(u=Ht,t===!0&&(u|=Rr,u|=lr)):u=ht,zi&&(u|=or),ns(T,null,null,u)}function _2(e,t,s,u,d,g){var y=w,E=e;if(typeof e=="function")b2(e)?(y=C,E=x2(E)):E=qh(E);else if(typeof e=="string")y=H;else e:switch(e){case kn:return Ec(s.children,d,g,t);case Hi:y=z,d|=Rr,(d&Ht)!==ht&&(d|=lr);break;case Ea:return O9(s,d,g,t);case je:return B9(s,d,g,t);case et:return M9(s,d,g,t);case ln:return aT(s,d,g,t);case Hr:case $t:case Lr:case Vn:case Nt:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ps:y=M;break e;case W:y=B;break e;case Te:y=U,E=E2(E);break e;case kt:y=X;break e;case Dt:y=R,E=null;break e}var _="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var O=u?_t(u):null;O&&(_+=`
|
|
206
206
|
|
|
207
|
-
Check the render method of \``+O+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+_))}}var I=ns(y,s,t,d);return I.elementType=e,I.type=E,I.lanes=g,I._debugOwner=u,I}function D2(e,t,s){var u=null;u=e._owner;var d=e.type,g=e.key,y=e.props,E=_2(d,g,y,u,t,s);return E._debugSource=e._source,E._debugOwner=e._owner,E}function Ec(e,t,s,u){var d=ns(j,e,u,t);return d.lanes=s,d}function O9(e,t,s,u){typeof e.id!="string"&&v('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var d=ns(q,e,u,t|or);return d.elementType=Ea,d.lanes=s,d.stateNode={effectDuration:0,passiveEffectDuration:0},d}function B9(e,t,s,u){var d=ns(K,e,u,t);return d.elementType=je,d.lanes=s,d}function M9(e,t,s,u){var d=ns(F,e,u,t);return d.elementType=et,d.lanes=s,d}function aT(e,t,s,u){var d=ns(N,e,u,t);d.elementType=ln,d.lanes=s;var g={isHidden:!1};return d.stateNode=g,d}function T2(e,t,s){var u=ns(P,e,null,t);return u.lanes=s,u}function N9(){var e=ns(H,null,null,ht);return e.elementType="DELETED",e}function H9(e){var t=ns(Z,null,null,ht);return t.stateNode=e,t}function R2(e,t,s){var u=e.children!==null?e.children:[],d=ns(
|
|
207
|
+
Check the render method of \``+O+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+_))}}var I=ns(y,s,t,d);return I.elementType=e,I.type=E,I.lanes=g,I._debugOwner=u,I}function D2(e,t,s){var u=null;u=e._owner;var d=e.type,g=e.key,y=e.props,E=_2(d,g,y,u,t,s);return E._debugSource=e._source,E._debugOwner=e._owner,E}function Ec(e,t,s,u){var d=ns(j,e,u,t);return d.lanes=s,d}function O9(e,t,s,u){typeof e.id!="string"&&v('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var d=ns(q,e,u,t|or);return d.elementType=Ea,d.lanes=s,d.stateNode={effectDuration:0,passiveEffectDuration:0},d}function B9(e,t,s,u){var d=ns(K,e,u,t);return d.elementType=je,d.lanes=s,d}function M9(e,t,s,u){var d=ns(F,e,u,t);return d.elementType=et,d.lanes=s,d}function aT(e,t,s,u){var d=ns(N,e,u,t);d.elementType=ln,d.lanes=s;var g={isHidden:!1};return d.stateNode=g,d}function T2(e,t,s){var u=ns(P,e,null,t);return u.lanes=s,u}function N9(){var e=ns(H,null,null,ht);return e.elementType="DELETED",e}function H9(e){var t=ns(Z,null,null,ht);return t.stateNode=e,t}function R2(e,t,s){var u=e.children!==null?e.children:[],d=ns(A,u,e.key,t);return d.lanes=s,d.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},d}function sT(e,t){return e===null&&(e=ns(w,null,null,ht)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function I9(e,t,s,u,d){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=uE,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=nr,this.eventTimes=hf(Ae),this.expirationTimes=hf(Br),this.pendingLanes=Ae,this.suspendedLanes=Ae,this.pingedLanes=Ae,this.expiredLanes=Ae,this.mutableReadLanes=Ae,this.finishedLanes=Ae,this.entangledLanes=Ae,this.entanglements=hf(Ae),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var g=this.pendingUpdatersLaneMap=[],y=0;y<jl;y++)g.push(new Set)}switch(t){case Nm:this._debugRootType=s?"hydrateRoot()":"createRoot()";break;case oc:this._debugRootType=s?"hydrate()":"render()";break}}function oT(e,t,s,u,d,g,y,E,_,O){var I=new I9(e,t,s,E,_),re=F9(t,g);I.current=re,re.stateNode=I;{var J={element:u,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null};re.memoizedState=J}return UE(re),I}var A2="18.3.1";function $9(e,t,s){var u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return nn(u),{$$typeof:pr,key:u==null?null:""+u,children:e,containerInfo:t,implementation:s}}var k2,F2;k2=!1,F2={};function lT(e){if(!e)return rs;var t=zu(e),s=E5(t);if(t.tag===C){var u=t.type;if(nl(u))return Nb(t,u,s)}return s}function P9(e,t){{var s=zu(e);if(s===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var u=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+u)}var d=Ui(s);if(d===null)return null;if(d.mode&Rr){var g=_t(s)||"Component";if(!F2[g]){F2[g]=!0;var y=Wn;try{_r(d),s.mode&Rr?v("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,g):v("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,g)}finally{y?_r(y):Ur()}}}return d.stateNode}}function uT(e,t,s,u,d,g,y,E){var _=!1,O=null;return oT(e,t,_,O,s,u,d,g,y)}function cT(e,t,s,u,d,g,y,E,_,O){var I=!0,re=oT(s,u,I,e,d,g,y,E,_);re.context=lT(null);var J=re.current,le=da(),fe=yc(J),me=ou(le,fe);return me.callback=t??null,cc(J,me,fe),VF(re,fe,le),re}function vv(e,t,s,u){$0(t,e);var d=t.current,g=da(),y=yc(d);en(y);var E=lT(s);t.context===null?t.context=E:t.pendingContext=E,gs&&Wn!==null&&!k2&&(k2=!0,v(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
208
208
|
|
|
209
|
-
Check the render method of %s.`,_t(Wn)||"Unknown"));var _=ou(g,y);_.payload={element:e},u=u===void 0?null:u,u!==null&&(typeof u!="function"&&v("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",u),_.callback=u);var O=cc(d,_,y);return O!==null&&(ai(O,d,y,g),Qm(O,d,y)),y}function Py(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case H:return t.child.stateNode;default:return t.child.stateNode}}function L9(e){switch(e.tag){case
|
|
209
|
+
Check the render method of %s.`,_t(Wn)||"Unknown"));var _=ou(g,y);_.payload={element:e},u=u===void 0?null:u,u!==null&&(typeof u!="function"&&v("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",u),_.callback=u);var O=cc(d,_,y);return O!==null&&(ai(O,d,y,g),Qm(O,d,y)),y}function Py(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case H:return t.child.stateNode;default:return t.child.stateNode}}function L9(e){switch(e.tag){case T:{var t=e.stateNode;if(rh(t)){var s=Ng(t);QF(t,s)}break}case K:{fu(function(){var d=Na(e,Ct);if(d!==null){var g=da();ai(d,e,Ct,g)}});var u=Ct;O2(e,u);break}}}function fT(e,t){var s=e.memoizedState;s!==null&&s.dehydrated!==null&&(s.retryLane=Lg(s.retryLane,t))}function O2(e,t){fT(e,t);var s=e.alternate;s&&fT(s,t)}function U9(e){if(e.tag===K){var t=of,s=Na(e,t);if(s!==null){var u=da();ai(s,e,t,u)}O2(e,t)}}function j9(e){if(e.tag===K){var t=yc(e),s=Na(e,t);if(s!==null){var u=da();ai(s,e,t,u)}O2(e,t)}}function dT(e){var t=Yr(e);return t===null?null:t.stateNode}var hT=function(e){return null};function z9(e){return hT(e)}var pT=function(e){return!1};function q9(e){return pT(e)}var vT=null,gT=null,mT=null,yT=null,xT=null,ET=null,CT=null,ST=null,wT=null;{var bT=function(e,t,s){var u=t[s],d=Mt(e)?e.slice():Bt({},e);return s+1===t.length?(Mt(d)?d.splice(u,1):delete d[u],d):(d[u]=bT(e[u],t,s+1),d)},_T=function(e,t){return bT(e,t,0)},DT=function(e,t,s,u){var d=t[u],g=Mt(e)?e.slice():Bt({},e);if(u+1===t.length){var y=s[u];g[y]=g[d],Mt(g)?g.splice(d,1):delete g[d]}else g[d]=DT(e[d],t,s,u+1);return g},TT=function(e,t,s){if(t.length!==s.length){p("copyWithRename() expects paths of the same length");return}else for(var u=0;u<s.length-1;u++)if(t[u]!==s[u]){p("copyWithRename() expects paths to be the same except for the deepest key");return}return DT(e,t,s,0)},RT=function(e,t,s,u){if(s>=t.length)return u;var d=t[s],g=Mt(e)?e.slice():Bt({},e);return g[d]=RT(e[d],t,s+1,u),g},AT=function(e,t,s){return RT(e,t,0,s)},B2=function(e,t){for(var s=e.memoizedState;s!==null&&t>0;)s=s.next,t--;return s};vT=function(e,t,s,u){var d=B2(e,t);if(d!==null){var g=AT(d.memoizedState,s,u);d.memoizedState=g,d.baseState=g,e.memoizedProps=Bt({},e.memoizedProps);var y=Na(e,Ct);y!==null&&ai(y,e,Ct,Br)}},gT=function(e,t,s){var u=B2(e,t);if(u!==null){var d=_T(u.memoizedState,s);u.memoizedState=d,u.baseState=d,e.memoizedProps=Bt({},e.memoizedProps);var g=Na(e,Ct);g!==null&&ai(g,e,Ct,Br)}},mT=function(e,t,s,u){var d=B2(e,t);if(d!==null){var g=TT(d.memoizedState,s,u);d.memoizedState=g,d.baseState=g,e.memoizedProps=Bt({},e.memoizedProps);var y=Na(e,Ct);y!==null&&ai(y,e,Ct,Br)}},yT=function(e,t,s){e.pendingProps=AT(e.memoizedProps,t,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var u=Na(e,Ct);u!==null&&ai(u,e,Ct,Br)},xT=function(e,t){e.pendingProps=_T(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var s=Na(e,Ct);s!==null&&ai(s,e,Ct,Br)},ET=function(e,t,s){e.pendingProps=TT(e.memoizedProps,t,s),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var u=Na(e,Ct);u!==null&&ai(u,e,Ct,Br)},CT=function(e){var t=Na(e,Ct);t!==null&&ai(t,e,Ct,Br)},ST=function(e){hT=e},wT=function(e){pT=e}}function Y9(e){var t=Ui(e);return t===null?null:t.stateNode}function V9(e){return null}function W9(){return Wn}function G9(e){var t=e.findFiberByHostInstance,s=i.ReactCurrentDispatcher;return Vu({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:vT,overrideHookStateDeletePath:gT,overrideHookStateRenamePath:mT,overrideProps:yT,overridePropsDeletePath:xT,overridePropsRenamePath:ET,setErrorHandler:ST,setSuspenseHandler:wT,scheduleUpdate:CT,currentDispatcherRef:s,findHostInstanceByFiber:Y9,findFiberByHostInstance:t||V9,findHostInstancesForRefresh:b9,scheduleRefresh:S9,scheduleRoot:w9,setRefreshHandler:C9,getCurrentFiber:W9,reconcilerVersion:A2})}var kT=typeof reportError=="function"?reportError:function(e){console.error(e)};function M2(e){this._internalRoot=e}Ly.prototype.render=M2.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?v("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Uy(arguments[1])?v("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&v("You passed a second argument to root.render(...) but it only accepts one argument.");var s=t.containerInfo;if(s.nodeType!==mn){var u=dT(t.current);u&&u.parentNode!==s&&v("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}vv(e,t,null,null)},Ly.prototype.unmount=M2.prototype.unmount=function(){typeof arguments[0]=="function"&&v("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jD()&&v("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),fu(function(){vv(null,e,null,null)}),kb(t)}};function K9(e,t){if(!Uy(e))throw new Error("createRoot(...): Target container is not a DOM element.");FT(e);var s=!1,u=!1,d="",g=kT;t!=null&&(t.hydrate?p("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===In&&v(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
210
210
|
|
|
211
211
|
let root = createRoot(domContainer);
|
|
212
212
|
root.render(<App />);`),t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(d=t.identifierPrefix),t.onRecoverableError!==void 0&&(g=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var y=uT(e,Nm,null,s,u,d,g);Rm(y.current,e);var E=e.nodeType===mn?e.parentNode:e;return Cp(E),new M2(y)}function Ly(e){this._internalRoot=e}function Q9(e){e&&Qg(e)}Ly.prototype.unstable_scheduleHydration=Q9;function Z9(e,t,s){if(!Uy(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");FT(e),t===void 0&&v("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=s??null,d=s!=null&&s.hydratedSources||null,g=!1,y=!1,E="",_=kT;s!=null&&(s.unstable_strictMode===!0&&(g=!0),s.identifierPrefix!==void 0&&(E=s.identifierPrefix),s.onRecoverableError!==void 0&&(_=s.onRecoverableError));var O=cT(t,null,e,Nm,u,g,y,E,_);if(Rm(O.current,e),Cp(e),d)for(var I=0;I<d.length;I++){var re=d[I];t7(O,re)}return new Ly(O)}function Uy(e){return!!(e&&(e.nodeType===$i||e.nodeType===Qs||e.nodeType===w0))}function gv(e){return!!(e&&(e.nodeType===$i||e.nodeType===Qs||e.nodeType===w0||e.nodeType===mn&&e.nodeValue===" react-mount-point-unstable "))}function FT(e){e.nodeType===$i&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&v("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),Op(e)&&(e._reactRootContainer?v("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):v("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var X9=i.ReactCurrentOwner,OT;OT=function(e){if(e._reactRootContainer&&e.nodeType!==mn){var t=dT(e._reactRootContainer.current);t&&t.parentNode!==e&&v("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var s=!!e._reactRootContainer,u=N2(e),d=!!(u&&ac(u));d&&!s&&v("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===$i&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&v("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function N2(e){return e?e.nodeType===Qs?e.documentElement:e.firstChild:null}function BT(){}function J9(e,t,s,u,d){if(d){if(typeof u=="function"){var g=u;u=function(){var J=Py(y);g.call(J)}}var y=cT(t,u,e,oc,null,!1,!1,"",BT);e._reactRootContainer=y,Rm(y.current,e);var E=e.nodeType===mn?e.parentNode:e;return Cp(E),fu(),y}else{for(var _;_=e.lastChild;)e.removeChild(_);if(typeof u=="function"){var O=u;u=function(){var J=Py(I);O.call(J)}}var I=uT(e,oc,null,!1,!1,"",BT);e._reactRootContainer=I,Rm(I.current,e);var re=e.nodeType===mn?e.parentNode:e;return Cp(re),fu(function(){vv(t,I,s,u)}),I}}function eO(e,t){e!==null&&typeof e!="function"&&v("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function jy(e,t,s,u,d){OT(s),eO(d===void 0?null:d,"render");var g=s._reactRootContainer,y;if(!g)y=J9(s,t,e,d,u);else{if(y=g,typeof d=="function"){var E=d;d=function(){var _=Py(y);E.call(_)}}vv(t,y,e,d)}return Py(y)}var MT=!1;function tO(e){{MT||(MT=!0,v("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=X9.current;if(t!==null&&t.stateNode!==null){var s=t.stateNode._warnedAboutRefsInRender;s||v("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Zt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===$i?e:P9(e,"findDOMNode")}function rO(e,t,s){if(v("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!gv(t))throw new Error("Target container is not a DOM element.");{var u=Op(t)&&t._reactRootContainer===void 0;u&&v("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return jy(null,e,t,!0,s)}function nO(e,t,s){if(v("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!gv(t))throw new Error("Target container is not a DOM element.");{var u=Op(t)&&t._reactRootContainer===void 0;u&&v("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return jy(null,e,t,!1,s)}function iO(e,t,s,u){if(v("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!gv(s))throw new Error("Target container is not a DOM element.");if(e==null||!O1(e))throw new Error("parentComponent must be a valid React Component");return jy(e,t,s,!1,u)}var NT=!1;function aO(e){if(NT||(NT=!0,v("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!gv(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=Op(e)&&e._reactRootContainer===void 0;t&&v("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var s=N2(e),u=s&&!ac(s);u&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return fu(function(){jy(null,null,e,!1,function(){e._reactRootContainer=null,kb(e)})}),!0}else{{var d=N2(e),g=!!(d&&ac(d)),y=e.nodeType===$i&&gv(e.parentNode)&&!!e.parentNode._reactRootContainer;g&&v("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",y?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}di(L9),Qu(U9),Vg(j9),yf(Oa),ip(zg),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&v("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),xd(o3),F1(d2,ZF,fu);function sO(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Uy(t))throw new Error("Target container is not a DOM element.");return $9(e,t,null,s)}function oO(e,t,s,u){return iO(e,t,s,u)}var H2={usingClientEntryPoint:!1,Events:[ac,Ch,Am,Pu,Ed,d2]};function lO(e,t){return H2.usingClientEntryPoint||v('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),K9(e,t)}function uO(e,t,s){return H2.usingClientEntryPoint||v('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),Z9(e,t,s)}function cO(e){return jD()&&v("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),fu(e)}var fO=G9({findFiberByHostInstance:Of,bundleType:1,version:A2,rendererPackageName:"react-dom"});if(!fO&&dr&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var HT=window.location.protocol;/^(https?|file):$/.test(HT)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(HT==="file:"?`
|
|
@@ -218,7 +218,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
218
218
|
*
|
|
219
219
|
* This source code is licensed under the MIT license found in the
|
|
220
220
|
* LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/var W2;function YT(){if(W2)return Gh;W2=1;var o=zt,r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function v(S,
|
|
221
|
+
*/var W2;function YT(){if(W2)return Gh;W2=1;var o=zt,r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function v(S,b,C){var w,T={},A=null,H=null;C!==void 0&&(A=""+C),b.key!==void 0&&(A=""+b.key),b.ref!==void 0&&(H=b.ref);for(w in b)l.call(b,w)&&!p.hasOwnProperty(w)&&(T[w]=b[w]);if(S&&S.defaultProps)for(w in b=S.defaultProps,b)T[w]===void 0&&(T[w]=b[w]);return{$$typeof:r,type:S,key:A,ref:H,props:T,_owner:f.current}}return Gh.Fragment=i,Gh.jsx=v,Gh.jsxs=v,Gh}var Kh={};/**
|
|
222
222
|
* @license React
|
|
223
223
|
* react-jsx-runtime.development.js
|
|
224
224
|
*
|
|
@@ -226,15 +226,15 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
|
|
|
226
226
|
*
|
|
227
227
|
* This source code is licensed under the MIT license found in the
|
|
228
228
|
* LICENSE file in the root directory of this source tree.
|
|
229
|
-
*/var G2;function VT(){return G2||(G2=1,process.env.NODE_ENV!=="production"&&function(){var o=zt,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),S=Symbol.for("react.context"),
|
|
229
|
+
*/var G2;function VT(){return G2||(G2=1,process.env.NODE_ENV!=="production"&&function(){var o=zt,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),S=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),P=Symbol.iterator,j="@@iterator";function z(W){if(W===null||typeof W!="object")return null;var Te=P&&W[P]||W[j];return typeof Te=="function"?Te:null}var B=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function M(W){{for(var Te=arguments.length,je=new Array(Te>1?Te-1:0),et=1;et<Te;et++)je[et-1]=arguments[et];U("error",W,je)}}function U(W,Te,je){{var et=B.ReactDebugCurrentFrame,kt=et.getStackAddendum();kt!==""&&(Te+="%s",je=je.concat([kt]));var Dt=je.map(function($t){return String($t)});Dt.unshift("Warning: "+Te),Function.prototype.apply.call(console[W],console,Dt)}}var q=!1,K=!1,X=!1,ee=!1,R=!1,Ee;Ee=Symbol.for("react.module.reference");function Z(W){return!!(typeof W=="string"||typeof W=="function"||W===l||W===p||R||W===f||W===C||W===w||ee||W===H||q||K||X||typeof W=="object"&&W!==null&&(W.$$typeof===A||W.$$typeof===T||W.$$typeof===v||W.$$typeof===S||W.$$typeof===b||W.$$typeof===Ee||W.getModuleId!==void 0))}function F(W,Te,je){var et=W.displayName;if(et)return et;var kt=Te.displayName||Te.name||"";return kt!==""?je+"("+kt+")":je}function L(W){return W.displayName||"Context"}function N(W){if(W==null)return null;if(typeof W.tag=="number"&&M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof W=="function")return W.displayName||W.name||null;if(typeof W=="string")return W;switch(W){case l:return"Fragment";case i:return"Portal";case p:return"Profiler";case f:return"StrictMode";case C:return"Suspense";case w:return"SuspenseList"}if(typeof W=="object")switch(W.$$typeof){case S:var Te=W;return L(Te)+".Consumer";case v:var je=W;return L(je._context)+".Provider";case b:return F(W,W.render,"ForwardRef");case T:var et=W.displayName||null;return et!==null?et:N(W.type)||"Memo";case A:{var kt=W,Dt=kt._payload,$t=kt._init;try{return N($t(Dt))}catch{return null}}}return null}var De=Object.assign,be=0,$e,ge,Ce,He,_e,$,G;function de(){}de.__reactDisabledLog=!0;function oe(){{if(be===0){$e=console.log,ge=console.info,Ce=console.warn,He=console.error,_e=console.group,$=console.groupCollapsed,G=console.groupEnd;var W={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:W,log:W,warn:W,error:W,group:W,groupCollapsed:W,groupEnd:W})}be++}}function Je(){{if(be--,be===0){var W={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:De({},W,{value:$e}),info:De({},W,{value:ge}),warn:De({},W,{value:Ce}),error:De({},W,{value:He}),group:De({},W,{value:_e}),groupCollapsed:De({},W,{value:$}),groupEnd:De({},W,{value:G})})}be<0&&M("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ge=B.ReactCurrentDispatcher,ut;function Se(W,Te,je){{if(ut===void 0)try{throw Error()}catch(kt){var et=kt.stack.trim().match(/\n( *(at )?)/);ut=et&&et[1]||""}return`
|
|
230
230
|
`+ut+W}}var Re=!1,yt;{var dr=typeof WeakMap=="function"?WeakMap:Map;yt=new dr}function zr(W,Te){if(!W||Re)return"";{var je=yt.get(W);if(je!==void 0)return je}var et;Re=!0;var kt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Dt;Dt=Ge.current,Ge.current=null,oe();try{if(Te){var $t=function(){throw Error()};if(Object.defineProperty($t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($t,[])}catch(Ft){et=Ft}Reflect.construct(W,[],$t)}else{try{$t.call()}catch(Ft){et=Ft}W.call($t.prototype)}}else{try{throw Error()}catch(Ft){et=Ft}W()}}catch(Ft){if(Ft&&et&&typeof Ft.stack=="string"){for(var Nt=Ft.stack.split(`
|
|
231
231
|
`),ln=et.stack.split(`
|
|
232
232
|
`),Hr=Nt.length-1,Lr=ln.length-1;Hr>=1&&Lr>=0&&Nt[Hr]!==ln[Lr];)Lr--;for(;Hr>=1&&Lr>=0;Hr--,Lr--)if(Nt[Hr]!==ln[Lr]){if(Hr!==1||Lr!==1)do if(Hr--,Lr--,Lr<0||Nt[Hr]!==ln[Lr]){var Vn=`
|
|
233
|
-
`+Nt[Hr].replace(" at new "," at ");return W.displayName&&Vn.includes("<anonymous>")&&(Vn=Vn.replace("<anonymous>",W.displayName)),typeof W=="function"&&yt.set(W,Vn),Vn}while(Hr>=1&&Lr>=0);break}}}finally{Re=!1,Ge.current=Dt,Je(),Error.prepareStackTrace=kt}var za=W?W.displayName||W.name:"",qa=za?Se(za):"";return typeof W=="function"&&yt.set(W,qa),qa}function qt(W,Te,je){return zr(W,!1)}function Qt(W){var Te=W.prototype;return!!(Te&&Te.isReactComponent)}function Fr(W,Te,je){if(W==null)return"";if(typeof W=="function")return zr(W,Qt(W));if(typeof W=="string")return Se(W);switch(W){case C:return Se("Suspense");case
|
|
233
|
+
`+Nt[Hr].replace(" at new "," at ");return W.displayName&&Vn.includes("<anonymous>")&&(Vn=Vn.replace("<anonymous>",W.displayName)),typeof W=="function"&&yt.set(W,Vn),Vn}while(Hr>=1&&Lr>=0);break}}}finally{Re=!1,Ge.current=Dt,Je(),Error.prepareStackTrace=kt}var za=W?W.displayName||W.name:"",qa=za?Se(za):"";return typeof W=="function"&&yt.set(W,qa),qa}function qt(W,Te,je){return zr(W,!1)}function Qt(W){var Te=W.prototype;return!!(Te&&Te.isReactComponent)}function Fr(W,Te,je){if(W==null)return"";if(typeof W=="function")return zr(W,Qt(W));if(typeof W=="string")return Se(W);switch(W){case C:return Se("Suspense");case w:return Se("SuspenseList")}if(typeof W=="object")switch(W.$$typeof){case b:return qt(W.render);case T:return Fr(W.type,Te,je);case A:{var et=W,kt=et._payload,Dt=et._init;try{return Fr(Dt(kt),Te,je)}catch{}}}return""}var br=Object.prototype.hasOwnProperty,nn={},Tn=B.ReactDebugCurrentFrame;function vn(W){if(W){var Te=W._owner,je=Fr(W.type,W._source,Te?Te.type:null);Tn.setExtraStackFrame(je)}else Tn.setExtraStackFrame(null)}function qr(W,Te,je,et,kt){{var Dt=Function.call.bind(br);for(var $t in W)if(Dt(W,$t)){var Nt=void 0;try{if(typeof W[$t]!="function"){var ln=Error((et||"React class")+": "+je+" type `"+$t+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof W[$t]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ln.name="Invariant Violation",ln}Nt=W[$t](Te,$t,et,je,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Hr){Nt=Hr}Nt&&!(Nt instanceof Error)&&(vn(kt),M("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",et||"React class",je,$t,typeof Nt),vn(null)),Nt instanceof Error&&!(Nt.message in nn)&&(nn[Nt.message]=!0,vn(kt),M("Failed %s type: %s",je,Nt.message),vn(null))}}}var tr=Array.isArray;function ar(W){return tr(W)}function Pr(W){{var Te=typeof Symbol=="function"&&Symbol.toStringTag,je=Te&&W[Symbol.toStringTag]||W.constructor.name||"Object";return je}}function ui(W){try{return Kr(W),!1}catch{return!0}}function Kr(W){return""+W}function Qr(W){if(ui(W))return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pr(W)),Kr(W)}var Rn=B.ReactCurrentOwner,ta={key:!0,ref:!0,__self:!0,__source:!0},ra,Pe;function rt(W){if(br.call(W,"ref")){var Te=Object.getOwnPropertyDescriptor(W,"ref").get;if(Te&&Te.isReactWarning)return!1}return W.ref!==void 0}function bt(W){if(br.call(W,"key")){var Te=Object.getOwnPropertyDescriptor(W,"key").get;if(Te&&Te.isReactWarning)return!1}return W.key!==void 0}function rr(W,Te){typeof W.ref=="string"&&Rn.current}function Sr(W,Te){{var je=function(){ra||(ra=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Te))};je.isReactWarning=!0,Object.defineProperty(W,"key",{get:je,configurable:!0})}}function Nr(W,Te){{var je=function(){Pe||(Pe=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",Te))};je.isReactWarning=!0,Object.defineProperty(W,"ref",{get:je,configurable:!0})}}var Or=function(W,Te,je,et,kt,Dt,$t){var Nt={$$typeof:r,type:W,key:Te,ref:je,props:$t,_owner:Dt};return Nt._store={},Object.defineProperty(Nt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Nt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:et}),Object.defineProperty(Nt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:kt}),Object.freeze&&(Object.freeze(Nt.props),Object.freeze(Nt)),Nt};function gn(W,Te,je,et,kt){{var Dt,$t={},Nt=null,ln=null;je!==void 0&&(Qr(je),Nt=""+je),bt(Te)&&(Qr(Te.key),Nt=""+Te.key),rt(Te)&&(ln=Te.ref,rr(Te,kt));for(Dt in Te)br.call(Te,Dt)&&!ta.hasOwnProperty(Dt)&&($t[Dt]=Te[Dt]);if(W&&W.defaultProps){var Hr=W.defaultProps;for(Dt in Hr)$t[Dt]===void 0&&($t[Dt]=Hr[Dt])}if(Nt||ln){var Lr=typeof W=="function"?W.displayName||W.name||"Unknown":W;Nt&&Sr($t,Lr),ln&&Nr($t,Lr)}return Or(W,Nt,ln,kt,et,Rn.current,$t)}}var wr=B.ReactCurrentOwner,yr=B.ReactDebugCurrentFrame;function hr(W){if(W){var Te=W._owner,je=Fr(W.type,W._source,Te?Te.type:null);yr.setExtraStackFrame(je)}else yr.setExtraStackFrame(null)}var vi;vi=!1;function An(W){return typeof W=="object"&&W!==null&&W.$$typeof===r}function Ni(){{if(wr.current){var W=N(wr.current.type);if(W)return`
|
|
234
234
|
|
|
235
235
|
Check the render method of \``+W+"`."}return""}}function ja(W){return""}var qs={};function cs(W){{var Te=Ni();if(!Te){var je=typeof W=="string"?W:W.displayName||W.name;je&&(Te=`
|
|
236
236
|
|
|
237
|
-
Check the top-level render call using <`+je+">.")}return Te}}function fs(W,Te){{if(!W._store||W._store.validated||W.key!=null)return;W._store.validated=!0;var je=cs(Te);if(qs[je])return;qs[je]=!0;var et="";W&&W._owner&&W._owner!==wr.current&&(et=" It was passed a child from "+N(W._owner.type)+"."),hr(W),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',je,et),hr(null)}}function ds(W,Te){{if(typeof W!="object")return;if(ar(W))for(var je=0;je<W.length;je++){var et=W[je];An(et)&&fs(et,Te)}else if(An(W))W._store&&(W._store.validated=!0);else if(W){var kt=z(W);if(typeof kt=="function"&&kt!==W.entries)for(var Dt=kt.call(W),$t;!($t=Dt.next()).done;)An($t.value)&&fs($t.value,Te)}}}function hs(W){{var Te=W.type;if(Te==null||typeof Te=="string")return;var je;if(typeof Te=="function")je=Te.propTypes;else if(typeof Te=="object"&&(Te.$$typeof===
|
|
237
|
+
Check the top-level render call using <`+je+">.")}return Te}}function fs(W,Te){{if(!W._store||W._store.validated||W.key!=null)return;W._store.validated=!0;var je=cs(Te);if(qs[je])return;qs[je]=!0;var et="";W&&W._owner&&W._owner!==wr.current&&(et=" It was passed a child from "+N(W._owner.type)+"."),hr(W),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',je,et),hr(null)}}function ds(W,Te){{if(typeof W!="object")return;if(ar(W))for(var je=0;je<W.length;je++){var et=W[je];An(et)&&fs(et,Te)}else if(An(W))W._store&&(W._store.validated=!0);else if(W){var kt=z(W);if(typeof kt=="function"&&kt!==W.entries)for(var Dt=kt.call(W),$t;!($t=Dt.next()).done;)An($t.value)&&fs($t.value,Te)}}}function hs(W){{var Te=W.type;if(Te==null||typeof Te=="string")return;var je;if(typeof Te=="function")je=Te.propTypes;else if(typeof Te=="object"&&(Te.$$typeof===b||Te.$$typeof===T))je=Te.propTypes;else return;if(je){var et=N(Te);qr(je,W.props,"prop",et,W)}else if(Te.PropTypes!==void 0&&!vi){vi=!0;var kt=N(Te);M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",kt||"Unknown")}typeof Te.getDefaultProps=="function"&&!Te.getDefaultProps.isReactClassApproved&&M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Yn(W){{for(var Te=Object.keys(W.props),je=0;je<Te.length;je++){var et=Te[je];if(et!=="children"&&et!=="key"){hr(W),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",et),hr(null);break}}W.ref!==null&&(hr(W),M("Invalid attribute `ref` supplied to `React.Fragment`."),hr(null))}}var In={};function pr(W,Te,je,et,kt,Dt){{var $t=Z(W);if(!$t){var Nt="";(W===void 0||typeof W=="object"&&W!==null&&Object.keys(W).length===0)&&(Nt+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ln=ja();ln?Nt+=ln:Nt+=Ni();var Hr;W===null?Hr="null":ar(W)?Hr="array":W!==void 0&&W.$$typeof===r?(Hr="<"+(N(W.type)||"Unknown")+" />",Nt=" Did you accidentally export a JSX literal instead of a component?"):Hr=typeof W,M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Hr,Nt)}var Lr=gn(W,Te,je,kt,Dt);if(Lr==null)return Lr;if($t){var Vn=Te.children;if(Vn!==void 0)if(et)if(ar(Vn)){for(var za=0;za<Vn.length;za++)ds(Vn[za],W);Object.freeze&&Object.freeze(Vn)}else M("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ds(Vn,W)}if(br.call(Te,"key")){var qa=N(W),Ft=Object.keys(Te).filter(function(wl){return wl!=="key"}),Bt=Ft.length>0?"{key: someKey, "+Ft.join(": ..., ")+": ...}":"{key: someKey}";if(!In[qa+Bt]){var Ya=Ft.length>0?"{"+Ft.join(": ..., ")+": ...}":"{}";M(`A props object containing a "key" prop is being spread into JSX:
|
|
238
238
|
let props = %s;
|
|
239
239
|
<%s {...props} />
|
|
240
240
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -249,7 +249,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
249
249
|
*
|
|
250
250
|
* This source code is licensed under the ISC license.
|
|
251
251
|
* See the LICENSE file in the root directory of this source tree.
|
|
252
|
-
*/const GT=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Oi=(o,r)=>{const i=zt.forwardRef(({color:l="currentColor",size:f=24,strokeWidth:p=2,absoluteStrokeWidth:v,className:S="",children:
|
|
252
|
+
*/const GT=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Oi=(o,r)=>{const i=zt.forwardRef(({color:l="currentColor",size:f=24,strokeWidth:p=2,absoluteStrokeWidth:v,className:S="",children:b,...C},w)=>zt.createElement("svg",{ref:w,...WT,width:f,height:f,stroke:l,strokeWidth:v?Number(p)*24/Number(f):p,className:["lucide",`lucide-${GT(o)}`,S].join(" "),...C},[...r.map(([T,A])=>zt.createElement(T,A)),...Array.isArray(b)?b:[b]]));return i.displayName=`${o}`,i};/**
|
|
253
253
|
* @license lucide-react v0.344.0 - ISC
|
|
254
254
|
*
|
|
255
255
|
* This source code is licensed under the ISC license.
|
|
@@ -338,7 +338,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
338
338
|
hover:border-primary/20 hover:bg-primary/5
|
|
339
339
|
active:shadow-none active:bg-primary/10 active:scale-95
|
|
340
340
|
transition-all duration-150
|
|
341
|
-
`,children:[he.jsx("span",{className:"text-[22px] font-medium text-gray-800 leading-none",children:r}),i?he.jsx("span",{className:"text-[9px] text-gray-400 font-semibold tracking-[0.18em] mt-1.5",children:i}):he.jsx("span",{className:"h-3.5"})]},r))});class oR{constructor(){this.listeners={}}on(r,i){return this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push(i),()=>this.off(r,i)}off(r,i){this.listeners[r]&&(this.listeners[r]=this.listeners[r].filter(l=>l!==i))}emitLocal(r,i){this.listeners[r]&&this.listeners[r].forEach(l=>{try{l(i)}catch(f){console.error(`Error in event listener for ${r}:`,f)}})}emitToParent(r,i){this.emitLocal(r,i)}}const it=new oR;var J2={exports:{}};function lR(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ky={exports:{}};const uR=IT(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var eS;function Jt(){return eS||(eS=1,function(o,r){(function(i,l){o.exports=l()})(Lt,function(){var i=i||function(l,f){var p;if(typeof window<"u"&&window.crypto&&(p=window.crypto),typeof self<"u"&&self.crypto&&(p=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(p=globalThis.crypto),!p&&typeof window<"u"&&window.msCrypto&&(p=window.msCrypto),!p&&typeof Lt<"u"&&Lt.crypto&&(p=Lt.crypto),!p&&typeof lR=="function")try{p=uR}catch{}var v=function(){if(p){if(typeof p.getRandomValues=="function")try{return p.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof p.randomBytes=="function")try{return p.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},S=Object.create||function(){function M(){}return function(U){var q;return M.prototype=U,q=new M,M.prototype=null,q}}(),w={},C=w.lib={},b=C.Base=function(){return{extend:function(M){var U=S(this);return M&&U.mixIn(M),(!U.hasOwnProperty("init")||this.init===U.init)&&(U.init=function(){U.$super.init.apply(this,arguments)}),U.init.prototype=U,U.$super=this,U},create:function(){var M=this.extend();return M.init.apply(M,arguments),M},init:function(){},mixIn:function(M){for(var U in M)M.hasOwnProperty(U)&&(this[U]=M[U]);M.hasOwnProperty("toString")&&(this.toString=M.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),R=C.WordArray=b.extend({init:function(M,U){M=this.words=M||[],U!=f?this.sigBytes=U:this.sigBytes=M.length*4},toString:function(M){return(M||H).stringify(this)},concat:function(M){var U=this.words,q=M.words,K=this.sigBytes,X=M.sigBytes;if(this.clamp(),K%4)for(var ee=0;ee<X;ee++){var A=q[ee>>>2]>>>24-ee%4*8&255;U[K+ee>>>2]|=A<<24-(K+ee)%4*8}else for(var Ee=0;Ee<X;Ee+=4)U[K+Ee>>>2]=q[Ee>>>2];return this.sigBytes+=X,this},clamp:function(){var M=this.words,U=this.sigBytes;M[U>>>2]&=4294967295<<32-U%4*8,M.length=l.ceil(U/4)},clone:function(){var M=b.clone.call(this);return M.words=this.words.slice(0),M},random:function(M){for(var U=[],q=0;q<M;q+=4)U.push(v());return new R.init(U,M)}}),T=w.enc={},H=T.Hex={stringify:function(M){for(var U=M.words,q=M.sigBytes,K=[],X=0;X<q;X++){var ee=U[X>>>2]>>>24-X%4*8&255;K.push((ee>>>4).toString(16)),K.push((ee&15).toString(16))}return K.join("")},parse:function(M){for(var U=M.length,q=[],K=0;K<U;K+=2)q[K>>>3]|=parseInt(M.substr(K,2),16)<<24-K%8*4;return new R.init(q,U/2)}},P=T.Latin1={stringify:function(M){for(var U=M.words,q=M.sigBytes,K=[],X=0;X<q;X++){var ee=U[X>>>2]>>>24-X%4*8&255;K.push(String.fromCharCode(ee))}return K.join("")},parse:function(M){for(var U=M.length,q=[],K=0;K<U;K++)q[K>>>2]|=(M.charCodeAt(K)&255)<<24-K%4*8;return new R.init(q,U)}},j=T.Utf8={stringify:function(M){try{return decodeURIComponent(escape(P.stringify(M)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(M){return P.parse(unescape(encodeURIComponent(M)))}},z=C.BufferedBlockAlgorithm=b.extend({reset:function(){this._data=new R.init,this._nDataBytes=0},_append:function(M){typeof M=="string"&&(M=j.parse(M)),this._data.concat(M),this._nDataBytes+=M.sigBytes},_process:function(M){var U,q=this._data,K=q.words,X=q.sigBytes,ee=this.blockSize,A=ee*4,Ee=X/A;M?Ee=l.ceil(Ee):Ee=l.max((Ee|0)-this._minBufferSize,0);var Z=Ee*ee,F=l.min(Z*4,X);if(Z){for(var L=0;L<Z;L+=ee)this._doProcessBlock(K,L);U=K.splice(0,Z),q.sigBytes-=F}return new R.init(U,F)},clone:function(){var M=b.clone.call(this);return M._data=this._data.clone(),M},_minBufferSize:0});C.Hasher=z.extend({cfg:b.extend(),init:function(M){this.cfg=this.cfg.extend(M),this.reset()},reset:function(){z.reset.call(this),this._doReset()},update:function(M){return this._append(M),this._process(),this},finalize:function(M){M&&this._append(M);var U=this._doFinalize();return U},blockSize:16,_createHelper:function(M){return function(U,q){return new M.init(q).finalize(U)}},_createHmacHelper:function(M){return function(U,q){return new B.HMAC.init(M,q).finalize(U)}}});var B=w.algo={};return w}(Math);return i})}(Ky)),Ky.exports}var Qy={exports:{}},tS;function Cv(){return tS||(tS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(l){var f=i,p=f.lib,v=p.Base,S=p.WordArray,w=f.x64={};w.Word=v.extend({init:function(C,b){this.high=C,this.low=b}}),w.WordArray=v.extend({init:function(C,b){C=this.words=C||[],b!=l?this.sigBytes=b:this.sigBytes=C.length*8},toX32:function(){for(var C=this.words,b=C.length,R=[],T=0;T<b;T++){var H=C[T];R.push(H.high),R.push(H.low)}return S.create(R,this.sigBytes)},clone:function(){for(var C=v.clone.call(this),b=C.words=this.words.slice(0),R=b.length,T=0;T<R;T++)b[T]=b[T].clone();return C}})}(),i})}(Qy)),Qy.exports}var Zy={exports:{}},rS;function cR(){return rS||(rS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(){if(typeof ArrayBuffer=="function"){var l=i,f=l.lib,p=f.WordArray,v=p.init,S=p.init=function(w){if(w instanceof ArrayBuffer&&(w=new Uint8Array(w)),(w instanceof Int8Array||typeof Uint8ClampedArray<"u"&&w instanceof Uint8ClampedArray||w instanceof Int16Array||w instanceof Uint16Array||w instanceof Int32Array||w instanceof Uint32Array||w instanceof Float32Array||w instanceof Float64Array)&&(w=new Uint8Array(w.buffer,w.byteOffset,w.byteLength)),w instanceof Uint8Array){for(var C=w.byteLength,b=[],R=0;R<C;R++)b[R>>>2]|=w[R]<<24-R%4*8;v.call(this,b,C)}else v.apply(this,arguments)};S.prototype=p}}(),i.lib.WordArray})}(Zy)),Zy.exports}var Xy={exports:{}},nS;function fR(){return nS||(nS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.WordArray,v=l.enc;v.Utf16=v.Utf16BE={stringify:function(w){for(var C=w.words,b=w.sigBytes,R=[],T=0;T<b;T+=2){var H=C[T>>>2]>>>16-T%4*8&65535;R.push(String.fromCharCode(H))}return R.join("")},parse:function(w){for(var C=w.length,b=[],R=0;R<C;R++)b[R>>>1]|=w.charCodeAt(R)<<16-R%2*16;return p.create(b,C*2)}},v.Utf16LE={stringify:function(w){for(var C=w.words,b=w.sigBytes,R=[],T=0;T<b;T+=2){var H=S(C[T>>>2]>>>16-T%4*8&65535);R.push(String.fromCharCode(H))}return R.join("")},parse:function(w){for(var C=w.length,b=[],R=0;R<C;R++)b[R>>>1]|=S(w.charCodeAt(R)<<16-R%2*16);return p.create(b,C*2)}};function S(w){return w<<8&4278255360|w>>>8&16711935}}(),i.enc.Utf16})}(Xy)),Xy.exports}var Jy={exports:{}},iS;function Cc(){return iS||(iS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.WordArray,v=l.enc;v.Base64={stringify:function(w){var C=w.words,b=w.sigBytes,R=this._map;w.clamp();for(var T=[],H=0;H<b;H+=3)for(var P=C[H>>>2]>>>24-H%4*8&255,j=C[H+1>>>2]>>>24-(H+1)%4*8&255,z=C[H+2>>>2]>>>24-(H+2)%4*8&255,B=P<<16|j<<8|z,M=0;M<4&&H+M*.75<b;M++)T.push(R.charAt(B>>>6*(3-M)&63));var U=R.charAt(64);if(U)for(;T.length%4;)T.push(U);return T.join("")},parse:function(w){var C=w.length,b=this._map,R=this._reverseMap;if(!R){R=this._reverseMap=[];for(var T=0;T<b.length;T++)R[b.charCodeAt(T)]=T}var H=b.charAt(64);if(H){var P=w.indexOf(H);P!==-1&&(C=P)}return S(w,C,R)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function S(w,C,b){for(var R=[],T=0,H=0;H<C;H++)if(H%4){var P=b[w.charCodeAt(H-1)]<<H%4*2,j=b[w.charCodeAt(H)]>>>6-H%4*2,z=P|j;R[T>>>2]|=z<<24-T%4*8,T++}return p.create(R,T)}}(),i.enc.Base64})}(Jy)),Jy.exports}var ex={exports:{}},aS;function dR(){return aS||(aS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.WordArray,v=l.enc;v.Base64url={stringify:function(w,C){C===void 0&&(C=!0);var b=w.words,R=w.sigBytes,T=C?this._safe_map:this._map;w.clamp();for(var H=[],P=0;P<R;P+=3)for(var j=b[P>>>2]>>>24-P%4*8&255,z=b[P+1>>>2]>>>24-(P+1)%4*8&255,B=b[P+2>>>2]>>>24-(P+2)%4*8&255,M=j<<16|z<<8|B,U=0;U<4&&P+U*.75<R;U++)H.push(T.charAt(M>>>6*(3-U)&63));var q=T.charAt(64);if(q)for(;H.length%4;)H.push(q);return H.join("")},parse:function(w,C){C===void 0&&(C=!0);var b=w.length,R=C?this._safe_map:this._map,T=this._reverseMap;if(!T){T=this._reverseMap=[];for(var H=0;H<R.length;H++)T[R.charCodeAt(H)]=H}var P=R.charAt(64);if(P){var j=w.indexOf(P);j!==-1&&(b=j)}return S(w,b,T)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function S(w,C,b){for(var R=[],T=0,H=0;H<C;H++)if(H%4){var P=b[w.charCodeAt(H-1)]<<H%4*2,j=b[w.charCodeAt(H)]>>>6-H%4*2,z=P|j;R[T>>>2]|=z<<24-T%4*8,T++}return p.create(R,T)}}(),i.enc.Base64url})}(ex)),ex.exports}var tx={exports:{}},sS;function Sc(){return sS||(sS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(l){var f=i,p=f.lib,v=p.WordArray,S=p.Hasher,w=f.algo,C=[];(function(){for(var j=0;j<64;j++)C[j]=l.abs(l.sin(j+1))*4294967296|0})();var b=w.MD5=S.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(j,z){for(var B=0;B<16;B++){var M=z+B,U=j[M];j[M]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360}var q=this._hash.words,K=j[z+0],X=j[z+1],ee=j[z+2],A=j[z+3],Ee=j[z+4],Z=j[z+5],F=j[z+6],L=j[z+7],N=j[z+8],De=j[z+9],be=j[z+10],$e=j[z+11],ge=j[z+12],Ce=j[z+13],He=j[z+14],_e=j[z+15],$=q[0],G=q[1],de=q[2],oe=q[3];$=R($,G,de,oe,K,7,C[0]),oe=R(oe,$,G,de,X,12,C[1]),de=R(de,oe,$,G,ee,17,C[2]),G=R(G,de,oe,$,A,22,C[3]),$=R($,G,de,oe,Ee,7,C[4]),oe=R(oe,$,G,de,Z,12,C[5]),de=R(de,oe,$,G,F,17,C[6]),G=R(G,de,oe,$,L,22,C[7]),$=R($,G,de,oe,N,7,C[8]),oe=R(oe,$,G,de,De,12,C[9]),de=R(de,oe,$,G,be,17,C[10]),G=R(G,de,oe,$,$e,22,C[11]),$=R($,G,de,oe,ge,7,C[12]),oe=R(oe,$,G,de,Ce,12,C[13]),de=R(de,oe,$,G,He,17,C[14]),G=R(G,de,oe,$,_e,22,C[15]),$=T($,G,de,oe,X,5,C[16]),oe=T(oe,$,G,de,F,9,C[17]),de=T(de,oe,$,G,$e,14,C[18]),G=T(G,de,oe,$,K,20,C[19]),$=T($,G,de,oe,Z,5,C[20]),oe=T(oe,$,G,de,be,9,C[21]),de=T(de,oe,$,G,_e,14,C[22]),G=T(G,de,oe,$,Ee,20,C[23]),$=T($,G,de,oe,De,5,C[24]),oe=T(oe,$,G,de,He,9,C[25]),de=T(de,oe,$,G,A,14,C[26]),G=T(G,de,oe,$,N,20,C[27]),$=T($,G,de,oe,Ce,5,C[28]),oe=T(oe,$,G,de,ee,9,C[29]),de=T(de,oe,$,G,L,14,C[30]),G=T(G,de,oe,$,ge,20,C[31]),$=H($,G,de,oe,Z,4,C[32]),oe=H(oe,$,G,de,N,11,C[33]),de=H(de,oe,$,G,$e,16,C[34]),G=H(G,de,oe,$,He,23,C[35]),$=H($,G,de,oe,X,4,C[36]),oe=H(oe,$,G,de,Ee,11,C[37]),de=H(de,oe,$,G,L,16,C[38]),G=H(G,de,oe,$,be,23,C[39]),$=H($,G,de,oe,Ce,4,C[40]),oe=H(oe,$,G,de,K,11,C[41]),de=H(de,oe,$,G,A,16,C[42]),G=H(G,de,oe,$,F,23,C[43]),$=H($,G,de,oe,De,4,C[44]),oe=H(oe,$,G,de,ge,11,C[45]),de=H(de,oe,$,G,_e,16,C[46]),G=H(G,de,oe,$,ee,23,C[47]),$=P($,G,de,oe,K,6,C[48]),oe=P(oe,$,G,de,L,10,C[49]),de=P(de,oe,$,G,He,15,C[50]),G=P(G,de,oe,$,Z,21,C[51]),$=P($,G,de,oe,ge,6,C[52]),oe=P(oe,$,G,de,A,10,C[53]),de=P(de,oe,$,G,be,15,C[54]),G=P(G,de,oe,$,X,21,C[55]),$=P($,G,de,oe,N,6,C[56]),oe=P(oe,$,G,de,_e,10,C[57]),de=P(de,oe,$,G,F,15,C[58]),G=P(G,de,oe,$,Ce,21,C[59]),$=P($,G,de,oe,Ee,6,C[60]),oe=P(oe,$,G,de,$e,10,C[61]),de=P(de,oe,$,G,ee,15,C[62]),G=P(G,de,oe,$,De,21,C[63]),q[0]=q[0]+$|0,q[1]=q[1]+G|0,q[2]=q[2]+de|0,q[3]=q[3]+oe|0},_doFinalize:function(){var j=this._data,z=j.words,B=this._nDataBytes*8,M=j.sigBytes*8;z[M>>>5]|=128<<24-M%32;var U=l.floor(B/4294967296),q=B;z[(M+64>>>9<<4)+15]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360,z[(M+64>>>9<<4)+14]=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360,j.sigBytes=(z.length+1)*4,this._process();for(var K=this._hash,X=K.words,ee=0;ee<4;ee++){var A=X[ee];X[ee]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}return K},clone:function(){var j=S.clone.call(this);return j._hash=this._hash.clone(),j}});function R(j,z,B,M,U,q,K){var X=j+(z&B|~z&M)+U+K;return(X<<q|X>>>32-q)+z}function T(j,z,B,M,U,q,K){var X=j+(z&M|B&~M)+U+K;return(X<<q|X>>>32-q)+z}function H(j,z,B,M,U,q,K){var X=j+(z^B^M)+U+K;return(X<<q|X>>>32-q)+z}function P(j,z,B,M,U,q,K){var X=j+(B^(z|~M))+U+K;return(X<<q|X>>>32-q)+z}f.MD5=S._createHelper(b),f.HmacMD5=S._createHmacHelper(b)}(Math),i.MD5})}(tx)),tx.exports}var rx={exports:{}},oS;function lS(){return oS||(oS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.WordArray,v=f.Hasher,S=l.algo,w=[],C=S.SHA1=v.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(b,R){for(var T=this._hash.words,H=T[0],P=T[1],j=T[2],z=T[3],B=T[4],M=0;M<80;M++){if(M<16)w[M]=b[R+M]|0;else{var U=w[M-3]^w[M-8]^w[M-14]^w[M-16];w[M]=U<<1|U>>>31}var q=(H<<5|H>>>27)+B+w[M];M<20?q+=(P&j|~P&z)+1518500249:M<40?q+=(P^j^z)+1859775393:M<60?q+=(P&j|P&z|j&z)-1894007588:q+=(P^j^z)-899497514,B=z,z=j,j=P<<30|P>>>2,P=H,H=q}T[0]=T[0]+H|0,T[1]=T[1]+P|0,T[2]=T[2]+j|0,T[3]=T[3]+z|0,T[4]=T[4]+B|0},_doFinalize:function(){var b=this._data,R=b.words,T=this._nDataBytes*8,H=b.sigBytes*8;return R[H>>>5]|=128<<24-H%32,R[(H+64>>>9<<4)+14]=Math.floor(T/4294967296),R[(H+64>>>9<<4)+15]=T,b.sigBytes=R.length*4,this._process(),this._hash},clone:function(){var b=v.clone.call(this);return b._hash=this._hash.clone(),b}});l.SHA1=v._createHelper(C),l.HmacSHA1=v._createHmacHelper(C)}(),i.SHA1})}(rx)),rx.exports}var nx={exports:{}},uS;function ix(){return uS||(uS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(l){var f=i,p=f.lib,v=p.WordArray,S=p.Hasher,w=f.algo,C=[],b=[];(function(){function H(B){for(var M=l.sqrt(B),U=2;U<=M;U++)if(!(B%U))return!1;return!0}function P(B){return(B-(B|0))*4294967296|0}for(var j=2,z=0;z<64;)H(j)&&(z<8&&(C[z]=P(l.pow(j,.5))),b[z]=P(l.pow(j,.3333333333333333)),z++),j++})();var R=[],T=w.SHA256=S.extend({_doReset:function(){this._hash=new v.init(C.slice(0))},_doProcessBlock:function(H,P){for(var j=this._hash.words,z=j[0],B=j[1],M=j[2],U=j[3],q=j[4],K=j[5],X=j[6],ee=j[7],A=0;A<64;A++){if(A<16)R[A]=H[P+A]|0;else{var Ee=R[A-15],Z=(Ee<<25|Ee>>>7)^(Ee<<14|Ee>>>18)^Ee>>>3,F=R[A-2],L=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;R[A]=Z+R[A-7]+L+R[A-16]}var N=q&K^~q&X,De=z&B^z&M^B&M,be=(z<<30|z>>>2)^(z<<19|z>>>13)^(z<<10|z>>>22),$e=(q<<26|q>>>6)^(q<<21|q>>>11)^(q<<7|q>>>25),ge=ee+$e+N+b[A]+R[A],Ce=be+De;ee=X,X=K,K=q,q=U+ge|0,U=M,M=B,B=z,z=ge+Ce|0}j[0]=j[0]+z|0,j[1]=j[1]+B|0,j[2]=j[2]+M|0,j[3]=j[3]+U|0,j[4]=j[4]+q|0,j[5]=j[5]+K|0,j[6]=j[6]+X|0,j[7]=j[7]+ee|0},_doFinalize:function(){var H=this._data,P=H.words,j=this._nDataBytes*8,z=H.sigBytes*8;return P[z>>>5]|=128<<24-z%32,P[(z+64>>>9<<4)+14]=l.floor(j/4294967296),P[(z+64>>>9<<4)+15]=j,H.sigBytes=P.length*4,this._process(),this._hash},clone:function(){var H=S.clone.call(this);return H._hash=this._hash.clone(),H}});f.SHA256=S._createHelper(T),f.HmacSHA256=S._createHmacHelper(T)}(Math),i.SHA256})}(nx)),nx.exports}var ax={exports:{}},cS;function hR(){return cS||(cS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),ix())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.WordArray,v=l.algo,S=v.SHA256,w=v.SHA224=S.extend({_doReset:function(){this._hash=new p.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var C=S._doFinalize.call(this);return C.sigBytes-=4,C}});l.SHA224=S._createHelper(w),l.HmacSHA224=S._createHmacHelper(w)}(),i.SHA224})}(ax)),ax.exports}var sx={exports:{}},fS;function dS(){return fS||(fS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cv())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.Hasher,v=l.x64,S=v.Word,w=v.WordArray,C=l.algo;function b(){return S.create.apply(S,arguments)}var R=[b(1116352408,3609767458),b(1899447441,602891725),b(3049323471,3964484399),b(3921009573,2173295548),b(961987163,4081628472),b(1508970993,3053834265),b(2453635748,2937671579),b(2870763221,3664609560),b(3624381080,2734883394),b(310598401,1164996542),b(607225278,1323610764),b(1426881987,3590304994),b(1925078388,4068182383),b(2162078206,991336113),b(2614888103,633803317),b(3248222580,3479774868),b(3835390401,2666613458),b(4022224774,944711139),b(264347078,2341262773),b(604807628,2007800933),b(770255983,1495990901),b(1249150122,1856431235),b(1555081692,3175218132),b(1996064986,2198950837),b(2554220882,3999719339),b(2821834349,766784016),b(2952996808,2566594879),b(3210313671,3203337956),b(3336571891,1034457026),b(3584528711,2466948901),b(113926993,3758326383),b(338241895,168717936),b(666307205,1188179964),b(773529912,1546045734),b(1294757372,1522805485),b(1396182291,2643833823),b(1695183700,2343527390),b(1986661051,1014477480),b(2177026350,1206759142),b(2456956037,344077627),b(2730485921,1290863460),b(2820302411,3158454273),b(3259730800,3505952657),b(3345764771,106217008),b(3516065817,3606008344),b(3600352804,1432725776),b(4094571909,1467031594),b(275423344,851169720),b(430227734,3100823752),b(506948616,1363258195),b(659060556,3750685593),b(883997877,3785050280),b(958139571,3318307427),b(1322822218,3812723403),b(1537002063,2003034995),b(1747873779,3602036899),b(1955562222,1575990012),b(2024104815,1125592928),b(2227730452,2716904306),b(2361852424,442776044),b(2428436474,593698344),b(2756734187,3733110249),b(3204031479,2999351573),b(3329325298,3815920427),b(3391569614,3928383900),b(3515267271,566280711),b(3940187606,3454069534),b(4118630271,4000239992),b(116418474,1914138554),b(174292421,2731055270),b(289380356,3203993006),b(460393269,320620315),b(685471733,587496836),b(852142971,1086792851),b(1017036298,365543100),b(1126000580,2618297676),b(1288033470,3409855158),b(1501505948,4234509866),b(1607167915,987167468),b(1816402316,1246189591)],T=[];(function(){for(var P=0;P<80;P++)T[P]=b()})();var H=C.SHA512=p.extend({_doReset:function(){this._hash=new w.init([new S.init(1779033703,4089235720),new S.init(3144134277,2227873595),new S.init(1013904242,4271175723),new S.init(2773480762,1595750129),new S.init(1359893119,2917565137),new S.init(2600822924,725511199),new S.init(528734635,4215389547),new S.init(1541459225,327033209)])},_doProcessBlock:function(P,j){for(var z=this._hash.words,B=z[0],M=z[1],U=z[2],q=z[3],K=z[4],X=z[5],ee=z[6],A=z[7],Ee=B.high,Z=B.low,F=M.high,L=M.low,N=U.high,De=U.low,be=q.high,$e=q.low,ge=K.high,Ce=K.low,He=X.high,_e=X.low,$=ee.high,G=ee.low,de=A.high,oe=A.low,Je=Ee,Ge=Z,ut=F,Se=L,Re=N,yt=De,dr=be,zr=$e,qt=ge,Qt=Ce,Fr=He,br=_e,nn=$,Tn=G,vn=de,qr=oe,tr=0;tr<80;tr++){var ar,Pr,ui=T[tr];if(tr<16)Pr=ui.high=P[j+tr*2]|0,ar=ui.low=P[j+tr*2+1]|0;else{var Kr=T[tr-15],Qr=Kr.high,Rn=Kr.low,ta=(Qr>>>1|Rn<<31)^(Qr>>>8|Rn<<24)^Qr>>>7,ra=(Rn>>>1|Qr<<31)^(Rn>>>8|Qr<<24)^(Rn>>>7|Qr<<25),Pe=T[tr-2],rt=Pe.high,bt=Pe.low,rr=(rt>>>19|bt<<13)^(rt<<3|bt>>>29)^rt>>>6,Sr=(bt>>>19|rt<<13)^(bt<<3|rt>>>29)^(bt>>>6|rt<<26),Nr=T[tr-7],Or=Nr.high,gn=Nr.low,wr=T[tr-16],yr=wr.high,hr=wr.low;ar=ra+gn,Pr=ta+Or+(ar>>>0<ra>>>0?1:0),ar=ar+Sr,Pr=Pr+rr+(ar>>>0<Sr>>>0?1:0),ar=ar+hr,Pr=Pr+yr+(ar>>>0<hr>>>0?1:0),ui.high=Pr,ui.low=ar}var vi=qt&Fr^~qt&nn,An=Qt&br^~Qt&Tn,Ni=Je&ut^Je&Re^ut&Re,ja=Ge&Se^Ge&yt^Se&yt,qs=(Je>>>28|Ge<<4)^(Je<<30|Ge>>>2)^(Je<<25|Ge>>>7),cs=(Ge>>>28|Je<<4)^(Ge<<30|Je>>>2)^(Ge<<25|Je>>>7),fs=(qt>>>14|Qt<<18)^(qt>>>18|Qt<<14)^(qt<<23|Qt>>>9),ds=(Qt>>>14|qt<<18)^(Qt>>>18|qt<<14)^(Qt<<23|qt>>>9),hs=R[tr],Yn=hs.high,In=hs.low,pr=qr+ds,kn=vn+fs+(pr>>>0<qr>>>0?1:0),pr=pr+An,kn=kn+vi+(pr>>>0<An>>>0?1:0),pr=pr+In,kn=kn+Yn+(pr>>>0<In>>>0?1:0),pr=pr+ar,kn=kn+Pr+(pr>>>0<ar>>>0?1:0),Hi=cs+ja,Ea=qs+Ni+(Hi>>>0<cs>>>0?1:0);vn=nn,qr=Tn,nn=Fr,Tn=br,Fr=qt,br=Qt,Qt=zr+pr|0,qt=dr+kn+(Qt>>>0<zr>>>0?1:0)|0,dr=Re,zr=yt,Re=ut,yt=Se,ut=Je,Se=Ge,Ge=pr+Hi|0,Je=kn+Ea+(Ge>>>0<pr>>>0?1:0)|0}Z=B.low=Z+Ge,B.high=Ee+Je+(Z>>>0<Ge>>>0?1:0),L=M.low=L+Se,M.high=F+ut+(L>>>0<Se>>>0?1:0),De=U.low=De+yt,U.high=N+Re+(De>>>0<yt>>>0?1:0),$e=q.low=$e+zr,q.high=be+dr+($e>>>0<zr>>>0?1:0),Ce=K.low=Ce+Qt,K.high=ge+qt+(Ce>>>0<Qt>>>0?1:0),_e=X.low=_e+br,X.high=He+Fr+(_e>>>0<br>>>0?1:0),G=ee.low=G+Tn,ee.high=$+nn+(G>>>0<Tn>>>0?1:0),oe=A.low=oe+qr,A.high=de+vn+(oe>>>0<qr>>>0?1:0)},_doFinalize:function(){var P=this._data,j=P.words,z=this._nDataBytes*8,B=P.sigBytes*8;j[B>>>5]|=128<<24-B%32,j[(B+128>>>10<<5)+30]=Math.floor(z/4294967296),j[(B+128>>>10<<5)+31]=z,P.sigBytes=j.length*4,this._process();var M=this._hash.toX32();return M},clone:function(){var P=p.clone.call(this);return P._hash=this._hash.clone(),P},blockSize:1024/32});l.SHA512=p._createHelper(H),l.HmacSHA512=p._createHmacHelper(H)}(),i.SHA512})}(sx)),sx.exports}var ox={exports:{}},hS;function pR(){return hS||(hS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cv(),dS())})(Lt,function(i){return function(){var l=i,f=l.x64,p=f.Word,v=f.WordArray,S=l.algo,w=S.SHA512,C=S.SHA384=w.extend({_doReset:function(){this._hash=new v.init([new p.init(3418070365,3238371032),new p.init(1654270250,914150663),new p.init(2438529370,812702999),new p.init(355462360,4144912697),new p.init(1731405415,4290775857),new p.init(2394180231,1750603025),new p.init(3675008525,1694076839),new p.init(1203062813,3204075428)])},_doFinalize:function(){var b=w._doFinalize.call(this);return b.sigBytes-=16,b}});l.SHA384=w._createHelper(C),l.HmacSHA384=w._createHmacHelper(C)}(),i.SHA384})}(ox)),ox.exports}var lx={exports:{}},pS;function vR(){return pS||(pS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cv())})(Lt,function(i){return function(l){var f=i,p=f.lib,v=p.WordArray,S=p.Hasher,w=f.x64,C=w.Word,b=f.algo,R=[],T=[],H=[];(function(){for(var z=1,B=0,M=0;M<24;M++){R[z+5*B]=(M+1)*(M+2)/2%64;var U=B%5,q=(2*z+3*B)%5;z=U,B=q}for(var z=0;z<5;z++)for(var B=0;B<5;B++)T[z+5*B]=B+(2*z+3*B)%5*5;for(var K=1,X=0;X<24;X++){for(var ee=0,A=0,Ee=0;Ee<7;Ee++){if(K&1){var Z=(1<<Ee)-1;Z<32?A^=1<<Z:ee^=1<<Z-32}K&128?K=K<<1^113:K<<=1}H[X]=C.create(ee,A)}})();var P=[];(function(){for(var z=0;z<25;z++)P[z]=C.create()})();var j=b.SHA3=S.extend({cfg:S.cfg.extend({outputLength:512}),_doReset:function(){for(var z=this._state=[],B=0;B<25;B++)z[B]=new C.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(z,B){for(var M=this._state,U=this.blockSize/2,q=0;q<U;q++){var K=z[B+2*q],X=z[B+2*q+1];K=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,X=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360;var ee=M[q];ee.high^=X,ee.low^=K}for(var A=0;A<24;A++){for(var Ee=0;Ee<5;Ee++){for(var Z=0,F=0,L=0;L<5;L++){var ee=M[Ee+5*L];Z^=ee.high,F^=ee.low}var N=P[Ee];N.high=Z,N.low=F}for(var Ee=0;Ee<5;Ee++)for(var De=P[(Ee+4)%5],be=P[(Ee+1)%5],$e=be.high,ge=be.low,Z=De.high^($e<<1|ge>>>31),F=De.low^(ge<<1|$e>>>31),L=0;L<5;L++){var ee=M[Ee+5*L];ee.high^=Z,ee.low^=F}for(var Ce=1;Ce<25;Ce++){var Z,F,ee=M[Ce],He=ee.high,_e=ee.low,$=R[Ce];$<32?(Z=He<<$|_e>>>32-$,F=_e<<$|He>>>32-$):(Z=_e<<$-32|He>>>64-$,F=He<<$-32|_e>>>64-$);var G=P[T[Ce]];G.high=Z,G.low=F}var de=P[0],oe=M[0];de.high=oe.high,de.low=oe.low;for(var Ee=0;Ee<5;Ee++)for(var L=0;L<5;L++){var Ce=Ee+5*L,ee=M[Ce],Je=P[Ce],Ge=P[(Ee+1)%5+5*L],ut=P[(Ee+2)%5+5*L];ee.high=Je.high^~Ge.high&ut.high,ee.low=Je.low^~Ge.low&ut.low}var ee=M[0],Se=H[A];ee.high^=Se.high,ee.low^=Se.low}},_doFinalize:function(){var z=this._data,B=z.words;this._nDataBytes*8;var M=z.sigBytes*8,U=this.blockSize*32;B[M>>>5]|=1<<24-M%32,B[(l.ceil((M+1)/U)*U>>>5)-1]|=128,z.sigBytes=B.length*4,this._process();for(var q=this._state,K=this.cfg.outputLength/8,X=K/8,ee=[],A=0;A<X;A++){var Ee=q[A],Z=Ee.high,F=Ee.low;Z=(Z<<8|Z>>>24)&16711935|(Z<<24|Z>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,ee.push(F),ee.push(Z)}return new v.init(ee,K)},clone:function(){for(var z=S.clone.call(this),B=z._state=this._state.slice(0),M=0;M<25;M++)B[M]=B[M].clone();return z}});f.SHA3=S._createHelper(j),f.HmacSHA3=S._createHmacHelper(j)}(Math),i.SHA3})}(lx)),lx.exports}var ux={exports:{}},vS;function gR(){return vS||(vS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){/** @preserve
|
|
341
|
+
`,children:[he.jsx("span",{className:"text-[22px] font-medium text-gray-800 leading-none",children:r}),i?he.jsx("span",{className:"text-[9px] text-gray-400 font-semibold tracking-[0.18em] mt-1.5",children:i}):he.jsx("span",{className:"h-3.5"})]},r))});class oR{constructor(){this.listeners={}}on(r,i){return this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push(i),()=>this.off(r,i)}off(r,i){this.listeners[r]&&(this.listeners[r]=this.listeners[r].filter(l=>l!==i))}emitLocal(r,i){this.listeners[r]&&this.listeners[r].forEach(l=>{try{l(i)}catch(f){console.error(`Error in event listener for ${r}:`,f)}})}emitToParent(r,i){this.emitLocal(r,i)}}const it=new oR;var J2={exports:{}};function lR(o){throw new Error('Could not dynamically require "'+o+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ky={exports:{}};const uR=IT(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var eS;function Jt(){return eS||(eS=1,function(o,r){(function(i,l){o.exports=l()})(Lt,function(){var i=i||function(l,f){var p;if(typeof window<"u"&&window.crypto&&(p=window.crypto),typeof self<"u"&&self.crypto&&(p=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(p=globalThis.crypto),!p&&typeof window<"u"&&window.msCrypto&&(p=window.msCrypto),!p&&typeof Lt<"u"&&Lt.crypto&&(p=Lt.crypto),!p&&typeof lR=="function")try{p=uR}catch{}var v=function(){if(p){if(typeof p.getRandomValues=="function")try{return p.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof p.randomBytes=="function")try{return p.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},S=Object.create||function(){function M(){}return function(U){var q;return M.prototype=U,q=new M,M.prototype=null,q}}(),b={},C=b.lib={},w=C.Base=function(){return{extend:function(M){var U=S(this);return M&&U.mixIn(M),(!U.hasOwnProperty("init")||this.init===U.init)&&(U.init=function(){U.$super.init.apply(this,arguments)}),U.init.prototype=U,U.$super=this,U},create:function(){var M=this.extend();return M.init.apply(M,arguments),M},init:function(){},mixIn:function(M){for(var U in M)M.hasOwnProperty(U)&&(this[U]=M[U]);M.hasOwnProperty("toString")&&(this.toString=M.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),T=C.WordArray=w.extend({init:function(M,U){M=this.words=M||[],U!=f?this.sigBytes=U:this.sigBytes=M.length*4},toString:function(M){return(M||H).stringify(this)},concat:function(M){var U=this.words,q=M.words,K=this.sigBytes,X=M.sigBytes;if(this.clamp(),K%4)for(var ee=0;ee<X;ee++){var R=q[ee>>>2]>>>24-ee%4*8&255;U[K+ee>>>2]|=R<<24-(K+ee)%4*8}else for(var Ee=0;Ee<X;Ee+=4)U[K+Ee>>>2]=q[Ee>>>2];return this.sigBytes+=X,this},clamp:function(){var M=this.words,U=this.sigBytes;M[U>>>2]&=4294967295<<32-U%4*8,M.length=l.ceil(U/4)},clone:function(){var M=w.clone.call(this);return M.words=this.words.slice(0),M},random:function(M){for(var U=[],q=0;q<M;q+=4)U.push(v());return new T.init(U,M)}}),A=b.enc={},H=A.Hex={stringify:function(M){for(var U=M.words,q=M.sigBytes,K=[],X=0;X<q;X++){var ee=U[X>>>2]>>>24-X%4*8&255;K.push((ee>>>4).toString(16)),K.push((ee&15).toString(16))}return K.join("")},parse:function(M){for(var U=M.length,q=[],K=0;K<U;K+=2)q[K>>>3]|=parseInt(M.substr(K,2),16)<<24-K%8*4;return new T.init(q,U/2)}},P=A.Latin1={stringify:function(M){for(var U=M.words,q=M.sigBytes,K=[],X=0;X<q;X++){var ee=U[X>>>2]>>>24-X%4*8&255;K.push(String.fromCharCode(ee))}return K.join("")},parse:function(M){for(var U=M.length,q=[],K=0;K<U;K++)q[K>>>2]|=(M.charCodeAt(K)&255)<<24-K%4*8;return new T.init(q,U)}},j=A.Utf8={stringify:function(M){try{return decodeURIComponent(escape(P.stringify(M)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(M){return P.parse(unescape(encodeURIComponent(M)))}},z=C.BufferedBlockAlgorithm=w.extend({reset:function(){this._data=new T.init,this._nDataBytes=0},_append:function(M){typeof M=="string"&&(M=j.parse(M)),this._data.concat(M),this._nDataBytes+=M.sigBytes},_process:function(M){var U,q=this._data,K=q.words,X=q.sigBytes,ee=this.blockSize,R=ee*4,Ee=X/R;M?Ee=l.ceil(Ee):Ee=l.max((Ee|0)-this._minBufferSize,0);var Z=Ee*ee,F=l.min(Z*4,X);if(Z){for(var L=0;L<Z;L+=ee)this._doProcessBlock(K,L);U=K.splice(0,Z),q.sigBytes-=F}return new T.init(U,F)},clone:function(){var M=w.clone.call(this);return M._data=this._data.clone(),M},_minBufferSize:0});C.Hasher=z.extend({cfg:w.extend(),init:function(M){this.cfg=this.cfg.extend(M),this.reset()},reset:function(){z.reset.call(this),this._doReset()},update:function(M){return this._append(M),this._process(),this},finalize:function(M){M&&this._append(M);var U=this._doFinalize();return U},blockSize:16,_createHelper:function(M){return function(U,q){return new M.init(q).finalize(U)}},_createHmacHelper:function(M){return function(U,q){return new B.HMAC.init(M,q).finalize(U)}}});var B=b.algo={};return b}(Math);return i})}(Ky)),Ky.exports}var Qy={exports:{}},tS;function Cv(){return tS||(tS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(l){var f=i,p=f.lib,v=p.Base,S=p.WordArray,b=f.x64={};b.Word=v.extend({init:function(C,w){this.high=C,this.low=w}}),b.WordArray=v.extend({init:function(C,w){C=this.words=C||[],w!=l?this.sigBytes=w:this.sigBytes=C.length*8},toX32:function(){for(var C=this.words,w=C.length,T=[],A=0;A<w;A++){var H=C[A];T.push(H.high),T.push(H.low)}return S.create(T,this.sigBytes)},clone:function(){for(var C=v.clone.call(this),w=C.words=this.words.slice(0),T=w.length,A=0;A<T;A++)w[A]=w[A].clone();return C}})}(),i})}(Qy)),Qy.exports}var Zy={exports:{}},rS;function cR(){return rS||(rS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(){if(typeof ArrayBuffer=="function"){var l=i,f=l.lib,p=f.WordArray,v=p.init,S=p.init=function(b){if(b instanceof ArrayBuffer&&(b=new Uint8Array(b)),(b instanceof Int8Array||typeof Uint8ClampedArray<"u"&&b instanceof Uint8ClampedArray||b instanceof Int16Array||b instanceof Uint16Array||b instanceof Int32Array||b instanceof Uint32Array||b instanceof Float32Array||b instanceof Float64Array)&&(b=new Uint8Array(b.buffer,b.byteOffset,b.byteLength)),b instanceof Uint8Array){for(var C=b.byteLength,w=[],T=0;T<C;T++)w[T>>>2]|=b[T]<<24-T%4*8;v.call(this,w,C)}else v.apply(this,arguments)};S.prototype=p}}(),i.lib.WordArray})}(Zy)),Zy.exports}var Xy={exports:{}},nS;function fR(){return nS||(nS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.WordArray,v=l.enc;v.Utf16=v.Utf16BE={stringify:function(b){for(var C=b.words,w=b.sigBytes,T=[],A=0;A<w;A+=2){var H=C[A>>>2]>>>16-A%4*8&65535;T.push(String.fromCharCode(H))}return T.join("")},parse:function(b){for(var C=b.length,w=[],T=0;T<C;T++)w[T>>>1]|=b.charCodeAt(T)<<16-T%2*16;return p.create(w,C*2)}},v.Utf16LE={stringify:function(b){for(var C=b.words,w=b.sigBytes,T=[],A=0;A<w;A+=2){var H=S(C[A>>>2]>>>16-A%4*8&65535);T.push(String.fromCharCode(H))}return T.join("")},parse:function(b){for(var C=b.length,w=[],T=0;T<C;T++)w[T>>>1]|=S(b.charCodeAt(T)<<16-T%2*16);return p.create(w,C*2)}};function S(b){return b<<8&4278255360|b>>>8&16711935}}(),i.enc.Utf16})}(Xy)),Xy.exports}var Jy={exports:{}},iS;function Cc(){return iS||(iS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.WordArray,v=l.enc;v.Base64={stringify:function(b){var C=b.words,w=b.sigBytes,T=this._map;b.clamp();for(var A=[],H=0;H<w;H+=3)for(var P=C[H>>>2]>>>24-H%4*8&255,j=C[H+1>>>2]>>>24-(H+1)%4*8&255,z=C[H+2>>>2]>>>24-(H+2)%4*8&255,B=P<<16|j<<8|z,M=0;M<4&&H+M*.75<w;M++)A.push(T.charAt(B>>>6*(3-M)&63));var U=T.charAt(64);if(U)for(;A.length%4;)A.push(U);return A.join("")},parse:function(b){var C=b.length,w=this._map,T=this._reverseMap;if(!T){T=this._reverseMap=[];for(var A=0;A<w.length;A++)T[w.charCodeAt(A)]=A}var H=w.charAt(64);if(H){var P=b.indexOf(H);P!==-1&&(C=P)}return S(b,C,T)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function S(b,C,w){for(var T=[],A=0,H=0;H<C;H++)if(H%4){var P=w[b.charCodeAt(H-1)]<<H%4*2,j=w[b.charCodeAt(H)]>>>6-H%4*2,z=P|j;T[A>>>2]|=z<<24-A%4*8,A++}return p.create(T,A)}}(),i.enc.Base64})}(Jy)),Jy.exports}var ex={exports:{}},aS;function dR(){return aS||(aS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.WordArray,v=l.enc;v.Base64url={stringify:function(b,C){C===void 0&&(C=!0);var w=b.words,T=b.sigBytes,A=C?this._safe_map:this._map;b.clamp();for(var H=[],P=0;P<T;P+=3)for(var j=w[P>>>2]>>>24-P%4*8&255,z=w[P+1>>>2]>>>24-(P+1)%4*8&255,B=w[P+2>>>2]>>>24-(P+2)%4*8&255,M=j<<16|z<<8|B,U=0;U<4&&P+U*.75<T;U++)H.push(A.charAt(M>>>6*(3-U)&63));var q=A.charAt(64);if(q)for(;H.length%4;)H.push(q);return H.join("")},parse:function(b,C){C===void 0&&(C=!0);var w=b.length,T=C?this._safe_map:this._map,A=this._reverseMap;if(!A){A=this._reverseMap=[];for(var H=0;H<T.length;H++)A[T.charCodeAt(H)]=H}var P=T.charAt(64);if(P){var j=b.indexOf(P);j!==-1&&(w=j)}return S(b,w,A)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function S(b,C,w){for(var T=[],A=0,H=0;H<C;H++)if(H%4){var P=w[b.charCodeAt(H-1)]<<H%4*2,j=w[b.charCodeAt(H)]>>>6-H%4*2,z=P|j;T[A>>>2]|=z<<24-A%4*8,A++}return p.create(T,A)}}(),i.enc.Base64url})}(ex)),ex.exports}var tx={exports:{}},sS;function Sc(){return sS||(sS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(l){var f=i,p=f.lib,v=p.WordArray,S=p.Hasher,b=f.algo,C=[];(function(){for(var j=0;j<64;j++)C[j]=l.abs(l.sin(j+1))*4294967296|0})();var w=b.MD5=S.extend({_doReset:function(){this._hash=new v.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(j,z){for(var B=0;B<16;B++){var M=z+B,U=j[M];j[M]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360}var q=this._hash.words,K=j[z+0],X=j[z+1],ee=j[z+2],R=j[z+3],Ee=j[z+4],Z=j[z+5],F=j[z+6],L=j[z+7],N=j[z+8],De=j[z+9],be=j[z+10],$e=j[z+11],ge=j[z+12],Ce=j[z+13],He=j[z+14],_e=j[z+15],$=q[0],G=q[1],de=q[2],oe=q[3];$=T($,G,de,oe,K,7,C[0]),oe=T(oe,$,G,de,X,12,C[1]),de=T(de,oe,$,G,ee,17,C[2]),G=T(G,de,oe,$,R,22,C[3]),$=T($,G,de,oe,Ee,7,C[4]),oe=T(oe,$,G,de,Z,12,C[5]),de=T(de,oe,$,G,F,17,C[6]),G=T(G,de,oe,$,L,22,C[7]),$=T($,G,de,oe,N,7,C[8]),oe=T(oe,$,G,de,De,12,C[9]),de=T(de,oe,$,G,be,17,C[10]),G=T(G,de,oe,$,$e,22,C[11]),$=T($,G,de,oe,ge,7,C[12]),oe=T(oe,$,G,de,Ce,12,C[13]),de=T(de,oe,$,G,He,17,C[14]),G=T(G,de,oe,$,_e,22,C[15]),$=A($,G,de,oe,X,5,C[16]),oe=A(oe,$,G,de,F,9,C[17]),de=A(de,oe,$,G,$e,14,C[18]),G=A(G,de,oe,$,K,20,C[19]),$=A($,G,de,oe,Z,5,C[20]),oe=A(oe,$,G,de,be,9,C[21]),de=A(de,oe,$,G,_e,14,C[22]),G=A(G,de,oe,$,Ee,20,C[23]),$=A($,G,de,oe,De,5,C[24]),oe=A(oe,$,G,de,He,9,C[25]),de=A(de,oe,$,G,R,14,C[26]),G=A(G,de,oe,$,N,20,C[27]),$=A($,G,de,oe,Ce,5,C[28]),oe=A(oe,$,G,de,ee,9,C[29]),de=A(de,oe,$,G,L,14,C[30]),G=A(G,de,oe,$,ge,20,C[31]),$=H($,G,de,oe,Z,4,C[32]),oe=H(oe,$,G,de,N,11,C[33]),de=H(de,oe,$,G,$e,16,C[34]),G=H(G,de,oe,$,He,23,C[35]),$=H($,G,de,oe,X,4,C[36]),oe=H(oe,$,G,de,Ee,11,C[37]),de=H(de,oe,$,G,L,16,C[38]),G=H(G,de,oe,$,be,23,C[39]),$=H($,G,de,oe,Ce,4,C[40]),oe=H(oe,$,G,de,K,11,C[41]),de=H(de,oe,$,G,R,16,C[42]),G=H(G,de,oe,$,F,23,C[43]),$=H($,G,de,oe,De,4,C[44]),oe=H(oe,$,G,de,ge,11,C[45]),de=H(de,oe,$,G,_e,16,C[46]),G=H(G,de,oe,$,ee,23,C[47]),$=P($,G,de,oe,K,6,C[48]),oe=P(oe,$,G,de,L,10,C[49]),de=P(de,oe,$,G,He,15,C[50]),G=P(G,de,oe,$,Z,21,C[51]),$=P($,G,de,oe,ge,6,C[52]),oe=P(oe,$,G,de,R,10,C[53]),de=P(de,oe,$,G,be,15,C[54]),G=P(G,de,oe,$,X,21,C[55]),$=P($,G,de,oe,N,6,C[56]),oe=P(oe,$,G,de,_e,10,C[57]),de=P(de,oe,$,G,F,15,C[58]),G=P(G,de,oe,$,Ce,21,C[59]),$=P($,G,de,oe,Ee,6,C[60]),oe=P(oe,$,G,de,$e,10,C[61]),de=P(de,oe,$,G,ee,15,C[62]),G=P(G,de,oe,$,De,21,C[63]),q[0]=q[0]+$|0,q[1]=q[1]+G|0,q[2]=q[2]+de|0,q[3]=q[3]+oe|0},_doFinalize:function(){var j=this._data,z=j.words,B=this._nDataBytes*8,M=j.sigBytes*8;z[M>>>5]|=128<<24-M%32;var U=l.floor(B/4294967296),q=B;z[(M+64>>>9<<4)+15]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360,z[(M+64>>>9<<4)+14]=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360,j.sigBytes=(z.length+1)*4,this._process();for(var K=this._hash,X=K.words,ee=0;ee<4;ee++){var R=X[ee];X[ee]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}return K},clone:function(){var j=S.clone.call(this);return j._hash=this._hash.clone(),j}});function T(j,z,B,M,U,q,K){var X=j+(z&B|~z&M)+U+K;return(X<<q|X>>>32-q)+z}function A(j,z,B,M,U,q,K){var X=j+(z&M|B&~M)+U+K;return(X<<q|X>>>32-q)+z}function H(j,z,B,M,U,q,K){var X=j+(z^B^M)+U+K;return(X<<q|X>>>32-q)+z}function P(j,z,B,M,U,q,K){var X=j+(B^(z|~M))+U+K;return(X<<q|X>>>32-q)+z}f.MD5=S._createHelper(w),f.HmacMD5=S._createHmacHelper(w)}(Math),i.MD5})}(tx)),tx.exports}var rx={exports:{}},oS;function lS(){return oS||(oS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.WordArray,v=f.Hasher,S=l.algo,b=[],C=S.SHA1=v.extend({_doReset:function(){this._hash=new p.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,T){for(var A=this._hash.words,H=A[0],P=A[1],j=A[2],z=A[3],B=A[4],M=0;M<80;M++){if(M<16)b[M]=w[T+M]|0;else{var U=b[M-3]^b[M-8]^b[M-14]^b[M-16];b[M]=U<<1|U>>>31}var q=(H<<5|H>>>27)+B+b[M];M<20?q+=(P&j|~P&z)+1518500249:M<40?q+=(P^j^z)+1859775393:M<60?q+=(P&j|P&z|j&z)-1894007588:q+=(P^j^z)-899497514,B=z,z=j,j=P<<30|P>>>2,P=H,H=q}A[0]=A[0]+H|0,A[1]=A[1]+P|0,A[2]=A[2]+j|0,A[3]=A[3]+z|0,A[4]=A[4]+B|0},_doFinalize:function(){var w=this._data,T=w.words,A=this._nDataBytes*8,H=w.sigBytes*8;return T[H>>>5]|=128<<24-H%32,T[(H+64>>>9<<4)+14]=Math.floor(A/4294967296),T[(H+64>>>9<<4)+15]=A,w.sigBytes=T.length*4,this._process(),this._hash},clone:function(){var w=v.clone.call(this);return w._hash=this._hash.clone(),w}});l.SHA1=v._createHelper(C),l.HmacSHA1=v._createHmacHelper(C)}(),i.SHA1})}(rx)),rx.exports}var nx={exports:{}},uS;function ix(){return uS||(uS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){return function(l){var f=i,p=f.lib,v=p.WordArray,S=p.Hasher,b=f.algo,C=[],w=[];(function(){function H(B){for(var M=l.sqrt(B),U=2;U<=M;U++)if(!(B%U))return!1;return!0}function P(B){return(B-(B|0))*4294967296|0}for(var j=2,z=0;z<64;)H(j)&&(z<8&&(C[z]=P(l.pow(j,.5))),w[z]=P(l.pow(j,.3333333333333333)),z++),j++})();var T=[],A=b.SHA256=S.extend({_doReset:function(){this._hash=new v.init(C.slice(0))},_doProcessBlock:function(H,P){for(var j=this._hash.words,z=j[0],B=j[1],M=j[2],U=j[3],q=j[4],K=j[5],X=j[6],ee=j[7],R=0;R<64;R++){if(R<16)T[R]=H[P+R]|0;else{var Ee=T[R-15],Z=(Ee<<25|Ee>>>7)^(Ee<<14|Ee>>>18)^Ee>>>3,F=T[R-2],L=(F<<15|F>>>17)^(F<<13|F>>>19)^F>>>10;T[R]=Z+T[R-7]+L+T[R-16]}var N=q&K^~q&X,De=z&B^z&M^B&M,be=(z<<30|z>>>2)^(z<<19|z>>>13)^(z<<10|z>>>22),$e=(q<<26|q>>>6)^(q<<21|q>>>11)^(q<<7|q>>>25),ge=ee+$e+N+w[R]+T[R],Ce=be+De;ee=X,X=K,K=q,q=U+ge|0,U=M,M=B,B=z,z=ge+Ce|0}j[0]=j[0]+z|0,j[1]=j[1]+B|0,j[2]=j[2]+M|0,j[3]=j[3]+U|0,j[4]=j[4]+q|0,j[5]=j[5]+K|0,j[6]=j[6]+X|0,j[7]=j[7]+ee|0},_doFinalize:function(){var H=this._data,P=H.words,j=this._nDataBytes*8,z=H.sigBytes*8;return P[z>>>5]|=128<<24-z%32,P[(z+64>>>9<<4)+14]=l.floor(j/4294967296),P[(z+64>>>9<<4)+15]=j,H.sigBytes=P.length*4,this._process(),this._hash},clone:function(){var H=S.clone.call(this);return H._hash=this._hash.clone(),H}});f.SHA256=S._createHelper(A),f.HmacSHA256=S._createHmacHelper(A)}(Math),i.SHA256})}(nx)),nx.exports}var ax={exports:{}},cS;function hR(){return cS||(cS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),ix())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.WordArray,v=l.algo,S=v.SHA256,b=v.SHA224=S.extend({_doReset:function(){this._hash=new p.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var C=S._doFinalize.call(this);return C.sigBytes-=4,C}});l.SHA224=S._createHelper(b),l.HmacSHA224=S._createHmacHelper(b)}(),i.SHA224})}(ax)),ax.exports}var sx={exports:{}},fS;function dS(){return fS||(fS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cv())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.Hasher,v=l.x64,S=v.Word,b=v.WordArray,C=l.algo;function w(){return S.create.apply(S,arguments)}var T=[w(1116352408,3609767458),w(1899447441,602891725),w(3049323471,3964484399),w(3921009573,2173295548),w(961987163,4081628472),w(1508970993,3053834265),w(2453635748,2937671579),w(2870763221,3664609560),w(3624381080,2734883394),w(310598401,1164996542),w(607225278,1323610764),w(1426881987,3590304994),w(1925078388,4068182383),w(2162078206,991336113),w(2614888103,633803317),w(3248222580,3479774868),w(3835390401,2666613458),w(4022224774,944711139),w(264347078,2341262773),w(604807628,2007800933),w(770255983,1495990901),w(1249150122,1856431235),w(1555081692,3175218132),w(1996064986,2198950837),w(2554220882,3999719339),w(2821834349,766784016),w(2952996808,2566594879),w(3210313671,3203337956),w(3336571891,1034457026),w(3584528711,2466948901),w(113926993,3758326383),w(338241895,168717936),w(666307205,1188179964),w(773529912,1546045734),w(1294757372,1522805485),w(1396182291,2643833823),w(1695183700,2343527390),w(1986661051,1014477480),w(2177026350,1206759142),w(2456956037,344077627),w(2730485921,1290863460),w(2820302411,3158454273),w(3259730800,3505952657),w(3345764771,106217008),w(3516065817,3606008344),w(3600352804,1432725776),w(4094571909,1467031594),w(275423344,851169720),w(430227734,3100823752),w(506948616,1363258195),w(659060556,3750685593),w(883997877,3785050280),w(958139571,3318307427),w(1322822218,3812723403),w(1537002063,2003034995),w(1747873779,3602036899),w(1955562222,1575990012),w(2024104815,1125592928),w(2227730452,2716904306),w(2361852424,442776044),w(2428436474,593698344),w(2756734187,3733110249),w(3204031479,2999351573),w(3329325298,3815920427),w(3391569614,3928383900),w(3515267271,566280711),w(3940187606,3454069534),w(4118630271,4000239992),w(116418474,1914138554),w(174292421,2731055270),w(289380356,3203993006),w(460393269,320620315),w(685471733,587496836),w(852142971,1086792851),w(1017036298,365543100),w(1126000580,2618297676),w(1288033470,3409855158),w(1501505948,4234509866),w(1607167915,987167468),w(1816402316,1246189591)],A=[];(function(){for(var P=0;P<80;P++)A[P]=w()})();var H=C.SHA512=p.extend({_doReset:function(){this._hash=new b.init([new S.init(1779033703,4089235720),new S.init(3144134277,2227873595),new S.init(1013904242,4271175723),new S.init(2773480762,1595750129),new S.init(1359893119,2917565137),new S.init(2600822924,725511199),new S.init(528734635,4215389547),new S.init(1541459225,327033209)])},_doProcessBlock:function(P,j){for(var z=this._hash.words,B=z[0],M=z[1],U=z[2],q=z[3],K=z[4],X=z[5],ee=z[6],R=z[7],Ee=B.high,Z=B.low,F=M.high,L=M.low,N=U.high,De=U.low,be=q.high,$e=q.low,ge=K.high,Ce=K.low,He=X.high,_e=X.low,$=ee.high,G=ee.low,de=R.high,oe=R.low,Je=Ee,Ge=Z,ut=F,Se=L,Re=N,yt=De,dr=be,zr=$e,qt=ge,Qt=Ce,Fr=He,br=_e,nn=$,Tn=G,vn=de,qr=oe,tr=0;tr<80;tr++){var ar,Pr,ui=A[tr];if(tr<16)Pr=ui.high=P[j+tr*2]|0,ar=ui.low=P[j+tr*2+1]|0;else{var Kr=A[tr-15],Qr=Kr.high,Rn=Kr.low,ta=(Qr>>>1|Rn<<31)^(Qr>>>8|Rn<<24)^Qr>>>7,ra=(Rn>>>1|Qr<<31)^(Rn>>>8|Qr<<24)^(Rn>>>7|Qr<<25),Pe=A[tr-2],rt=Pe.high,bt=Pe.low,rr=(rt>>>19|bt<<13)^(rt<<3|bt>>>29)^rt>>>6,Sr=(bt>>>19|rt<<13)^(bt<<3|rt>>>29)^(bt>>>6|rt<<26),Nr=A[tr-7],Or=Nr.high,gn=Nr.low,wr=A[tr-16],yr=wr.high,hr=wr.low;ar=ra+gn,Pr=ta+Or+(ar>>>0<ra>>>0?1:0),ar=ar+Sr,Pr=Pr+rr+(ar>>>0<Sr>>>0?1:0),ar=ar+hr,Pr=Pr+yr+(ar>>>0<hr>>>0?1:0),ui.high=Pr,ui.low=ar}var vi=qt&Fr^~qt&nn,An=Qt&br^~Qt&Tn,Ni=Je&ut^Je&Re^ut&Re,ja=Ge&Se^Ge&yt^Se&yt,qs=(Je>>>28|Ge<<4)^(Je<<30|Ge>>>2)^(Je<<25|Ge>>>7),cs=(Ge>>>28|Je<<4)^(Ge<<30|Je>>>2)^(Ge<<25|Je>>>7),fs=(qt>>>14|Qt<<18)^(qt>>>18|Qt<<14)^(qt<<23|Qt>>>9),ds=(Qt>>>14|qt<<18)^(Qt>>>18|qt<<14)^(Qt<<23|qt>>>9),hs=T[tr],Yn=hs.high,In=hs.low,pr=qr+ds,kn=vn+fs+(pr>>>0<qr>>>0?1:0),pr=pr+An,kn=kn+vi+(pr>>>0<An>>>0?1:0),pr=pr+In,kn=kn+Yn+(pr>>>0<In>>>0?1:0),pr=pr+ar,kn=kn+Pr+(pr>>>0<ar>>>0?1:0),Hi=cs+ja,Ea=qs+Ni+(Hi>>>0<cs>>>0?1:0);vn=nn,qr=Tn,nn=Fr,Tn=br,Fr=qt,br=Qt,Qt=zr+pr|0,qt=dr+kn+(Qt>>>0<zr>>>0?1:0)|0,dr=Re,zr=yt,Re=ut,yt=Se,ut=Je,Se=Ge,Ge=pr+Hi|0,Je=kn+Ea+(Ge>>>0<pr>>>0?1:0)|0}Z=B.low=Z+Ge,B.high=Ee+Je+(Z>>>0<Ge>>>0?1:0),L=M.low=L+Se,M.high=F+ut+(L>>>0<Se>>>0?1:0),De=U.low=De+yt,U.high=N+Re+(De>>>0<yt>>>0?1:0),$e=q.low=$e+zr,q.high=be+dr+($e>>>0<zr>>>0?1:0),Ce=K.low=Ce+Qt,K.high=ge+qt+(Ce>>>0<Qt>>>0?1:0),_e=X.low=_e+br,X.high=He+Fr+(_e>>>0<br>>>0?1:0),G=ee.low=G+Tn,ee.high=$+nn+(G>>>0<Tn>>>0?1:0),oe=R.low=oe+qr,R.high=de+vn+(oe>>>0<qr>>>0?1:0)},_doFinalize:function(){var P=this._data,j=P.words,z=this._nDataBytes*8,B=P.sigBytes*8;j[B>>>5]|=128<<24-B%32,j[(B+128>>>10<<5)+30]=Math.floor(z/4294967296),j[(B+128>>>10<<5)+31]=z,P.sigBytes=j.length*4,this._process();var M=this._hash.toX32();return M},clone:function(){var P=p.clone.call(this);return P._hash=this._hash.clone(),P},blockSize:1024/32});l.SHA512=p._createHelper(H),l.HmacSHA512=p._createHmacHelper(H)}(),i.SHA512})}(sx)),sx.exports}var ox={exports:{}},hS;function pR(){return hS||(hS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cv(),dS())})(Lt,function(i){return function(){var l=i,f=l.x64,p=f.Word,v=f.WordArray,S=l.algo,b=S.SHA512,C=S.SHA384=b.extend({_doReset:function(){this._hash=new v.init([new p.init(3418070365,3238371032),new p.init(1654270250,914150663),new p.init(2438529370,812702999),new p.init(355462360,4144912697),new p.init(1731405415,4290775857),new p.init(2394180231,1750603025),new p.init(3675008525,1694076839),new p.init(1203062813,3204075428)])},_doFinalize:function(){var w=b._doFinalize.call(this);return w.sigBytes-=16,w}});l.SHA384=b._createHelper(C),l.HmacSHA384=b._createHmacHelper(C)}(),i.SHA384})}(ox)),ox.exports}var lx={exports:{}},pS;function vR(){return pS||(pS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cv())})(Lt,function(i){return function(l){var f=i,p=f.lib,v=p.WordArray,S=p.Hasher,b=f.x64,C=b.Word,w=f.algo,T=[],A=[],H=[];(function(){for(var z=1,B=0,M=0;M<24;M++){T[z+5*B]=(M+1)*(M+2)/2%64;var U=B%5,q=(2*z+3*B)%5;z=U,B=q}for(var z=0;z<5;z++)for(var B=0;B<5;B++)A[z+5*B]=B+(2*z+3*B)%5*5;for(var K=1,X=0;X<24;X++){for(var ee=0,R=0,Ee=0;Ee<7;Ee++){if(K&1){var Z=(1<<Ee)-1;Z<32?R^=1<<Z:ee^=1<<Z-32}K&128?K=K<<1^113:K<<=1}H[X]=C.create(ee,R)}})();var P=[];(function(){for(var z=0;z<25;z++)P[z]=C.create()})();var j=w.SHA3=S.extend({cfg:S.cfg.extend({outputLength:512}),_doReset:function(){for(var z=this._state=[],B=0;B<25;B++)z[B]=new C.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(z,B){for(var M=this._state,U=this.blockSize/2,q=0;q<U;q++){var K=z[B+2*q],X=z[B+2*q+1];K=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,X=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360;var ee=M[q];ee.high^=X,ee.low^=K}for(var R=0;R<24;R++){for(var Ee=0;Ee<5;Ee++){for(var Z=0,F=0,L=0;L<5;L++){var ee=M[Ee+5*L];Z^=ee.high,F^=ee.low}var N=P[Ee];N.high=Z,N.low=F}for(var Ee=0;Ee<5;Ee++)for(var De=P[(Ee+4)%5],be=P[(Ee+1)%5],$e=be.high,ge=be.low,Z=De.high^($e<<1|ge>>>31),F=De.low^(ge<<1|$e>>>31),L=0;L<5;L++){var ee=M[Ee+5*L];ee.high^=Z,ee.low^=F}for(var Ce=1;Ce<25;Ce++){var Z,F,ee=M[Ce],He=ee.high,_e=ee.low,$=T[Ce];$<32?(Z=He<<$|_e>>>32-$,F=_e<<$|He>>>32-$):(Z=_e<<$-32|He>>>64-$,F=He<<$-32|_e>>>64-$);var G=P[A[Ce]];G.high=Z,G.low=F}var de=P[0],oe=M[0];de.high=oe.high,de.low=oe.low;for(var Ee=0;Ee<5;Ee++)for(var L=0;L<5;L++){var Ce=Ee+5*L,ee=M[Ce],Je=P[Ce],Ge=P[(Ee+1)%5+5*L],ut=P[(Ee+2)%5+5*L];ee.high=Je.high^~Ge.high&ut.high,ee.low=Je.low^~Ge.low&ut.low}var ee=M[0],Se=H[R];ee.high^=Se.high,ee.low^=Se.low}},_doFinalize:function(){var z=this._data,B=z.words;this._nDataBytes*8;var M=z.sigBytes*8,U=this.blockSize*32;B[M>>>5]|=1<<24-M%32,B[(l.ceil((M+1)/U)*U>>>5)-1]|=128,z.sigBytes=B.length*4,this._process();for(var q=this._state,K=this.cfg.outputLength/8,X=K/8,ee=[],R=0;R<X;R++){var Ee=q[R],Z=Ee.high,F=Ee.low;Z=(Z<<8|Z>>>24)&16711935|(Z<<24|Z>>>8)&4278255360,F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,ee.push(F),ee.push(Z)}return new v.init(ee,K)},clone:function(){for(var z=S.clone.call(this),B=z._state=this._state.slice(0),M=0;M<25;M++)B[M]=B[M].clone();return z}});f.SHA3=S._createHelper(j),f.HmacSHA3=S._createHmacHelper(j)}(Math),i.SHA3})}(lx)),lx.exports}var ux={exports:{}},vS;function gR(){return vS||(vS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){/** @preserve
|
|
342
342
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
343
343
|
|
|
344
344
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -347,11 +347,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
347
347
|
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
348
348
|
|
|
349
349
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
350
|
-
*/return function(l){var f=i,p=f.lib,v=p.WordArray,S=p.Hasher,w=f.algo,C=v.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),b=v.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),R=v.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),T=v.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),H=v.create([0,1518500249,1859775393,2400959708,2840853838]),P=v.create([1352829926,1548603684,1836072691,2053994217,0]),j=w.RIPEMD160=S.extend({_doReset:function(){this._hash=v.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(X,ee){for(var A=0;A<16;A++){var Ee=ee+A,Z=X[Ee];X[Ee]=(Z<<8|Z>>>24)&16711935|(Z<<24|Z>>>8)&4278255360}var F=this._hash.words,L=H.words,N=P.words,De=C.words,be=b.words,$e=R.words,ge=T.words,Ce,He,_e,$,G,de,oe,Je,Ge,ut;de=Ce=F[0],oe=He=F[1],Je=_e=F[2],Ge=$=F[3],ut=G=F[4];for(var Se,A=0;A<80;A+=1)Se=Ce+X[ee+De[A]]|0,A<16?Se+=z(He,_e,$)+L[0]:A<32?Se+=B(He,_e,$)+L[1]:A<48?Se+=M(He,_e,$)+L[2]:A<64?Se+=U(He,_e,$)+L[3]:Se+=q(He,_e,$)+L[4],Se=Se|0,Se=K(Se,$e[A]),Se=Se+G|0,Ce=G,G=$,$=K(_e,10),_e=He,He=Se,Se=de+X[ee+be[A]]|0,A<16?Se+=q(oe,Je,Ge)+N[0]:A<32?Se+=U(oe,Je,Ge)+N[1]:A<48?Se+=M(oe,Je,Ge)+N[2]:A<64?Se+=B(oe,Je,Ge)+N[3]:Se+=z(oe,Je,Ge)+N[4],Se=Se|0,Se=K(Se,ge[A]),Se=Se+ut|0,de=ut,ut=Ge,Ge=K(Je,10),Je=oe,oe=Se;Se=F[1]+_e+Ge|0,F[1]=F[2]+$+ut|0,F[2]=F[3]+G+de|0,F[3]=F[4]+Ce+oe|0,F[4]=F[0]+He+Je|0,F[0]=Se},_doFinalize:function(){var X=this._data,ee=X.words,A=this._nDataBytes*8,Ee=X.sigBytes*8;ee[Ee>>>5]|=128<<24-Ee%32,ee[(Ee+64>>>9<<4)+14]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,X.sigBytes=(ee.length+1)*4,this._process();for(var Z=this._hash,F=Z.words,L=0;L<5;L++){var N=F[L];F[L]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return Z},clone:function(){var X=S.clone.call(this);return X._hash=this._hash.clone(),X}});function z(X,ee,A){return X^ee^A}function B(X,ee,A){return X&ee|~X&A}function M(X,ee,A){return(X|~ee)^A}function U(X,ee,A){return X&A|ee&~A}function q(X,ee,A){return X^(ee|~A)}function K(X,ee){return X<<ee|X>>>32-ee}f.RIPEMD160=S._createHelper(j),f.HmacRIPEMD160=S._createHmacHelper(j)}(),i.RIPEMD160})}(ux)),ux.exports}var cx={exports:{}},gS;function fx(){return gS||(gS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){(function(){var l=i,f=l.lib,p=f.Base,v=l.enc,S=v.Utf8,w=l.algo;w.HMAC=p.extend({init:function(C,b){C=this._hasher=new C.init,typeof b=="string"&&(b=S.parse(b));var R=C.blockSize,T=R*4;b.sigBytes>T&&(b=C.finalize(b)),b.clamp();for(var H=this._oKey=b.clone(),P=this._iKey=b.clone(),j=H.words,z=P.words,B=0;B<R;B++)j[B]^=1549556828,z[B]^=909522486;H.sigBytes=P.sigBytes=T,this.reset()},reset:function(){var C=this._hasher;C.reset(),C.update(this._iKey)},update:function(C){return this._hasher.update(C),this},finalize:function(C){var b=this._hasher,R=b.finalize(C);b.reset();var T=b.finalize(this._oKey.clone().concat(R));return T}})})()})}(cx)),cx.exports}var dx={exports:{}},mS;function mR(){return mS||(mS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),ix(),fx())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.Base,v=f.WordArray,S=l.algo,w=S.SHA256,C=S.HMAC,b=S.PBKDF2=p.extend({cfg:p.extend({keySize:128/32,hasher:w,iterations:25e4}),init:function(R){this.cfg=this.cfg.extend(R)},compute:function(R,T){for(var H=this.cfg,P=C.create(H.hasher,R),j=v.create(),z=v.create([1]),B=j.words,M=z.words,U=H.keySize,q=H.iterations;B.length<U;){var K=P.update(T).finalize(z);P.reset();for(var X=K.words,ee=X.length,A=K,Ee=1;Ee<q;Ee++){A=P.finalize(A),P.reset();for(var Z=A.words,F=0;F<ee;F++)X[F]^=Z[F]}j.concat(K),M[0]++}return j.sigBytes=U*4,j}});l.PBKDF2=function(R,T,H){return b.create(H).compute(R,T)}}(),i.PBKDF2})}(dx)),dx.exports}var hx={exports:{}},yS;function pu(){return yS||(yS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),lS(),fx())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.Base,v=f.WordArray,S=l.algo,w=S.MD5,C=S.EvpKDF=p.extend({cfg:p.extend({keySize:128/32,hasher:w,iterations:1}),init:function(b){this.cfg=this.cfg.extend(b)},compute:function(b,R){for(var T,H=this.cfg,P=H.hasher.create(),j=v.create(),z=j.words,B=H.keySize,M=H.iterations;z.length<B;){T&&P.update(T),T=P.update(b).finalize(R),P.reset();for(var U=1;U<M;U++)T=P.finalize(T),P.reset();j.concat(T)}return j.sigBytes=B*4,j}});l.EvpKDF=function(b,R,T){return C.create(T).compute(b,R)}}(),i.EvpKDF})}(hx)),hx.exports}var px={exports:{}},xS;function si(){return xS||(xS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),pu())})(Lt,function(i){i.lib.Cipher||function(l){var f=i,p=f.lib,v=p.Base,S=p.WordArray,w=p.BufferedBlockAlgorithm,C=f.enc;C.Utf8;var b=C.Base64,R=f.algo,T=R.EvpKDF,H=p.Cipher=w.extend({cfg:v.extend(),createEncryptor:function(Z,F){return this.create(this._ENC_XFORM_MODE,Z,F)},createDecryptor:function(Z,F){return this.create(this._DEC_XFORM_MODE,Z,F)},init:function(Z,F,L){this.cfg=this.cfg.extend(L),this._xformMode=Z,this._key=F,this.reset()},reset:function(){w.reset.call(this),this._doReset()},process:function(Z){return this._append(Z),this._process()},finalize:function(Z){Z&&this._append(Z);var F=this._doFinalize();return F},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function Z(F){return typeof F=="string"?Ee:X}return function(F){return{encrypt:function(L,N,De){return Z(N).encrypt(F,L,N,De)},decrypt:function(L,N,De){return Z(N).decrypt(F,L,N,De)}}}}()});p.StreamCipher=H.extend({_doFinalize:function(){var Z=this._process(!0);return Z},blockSize:1});var P=f.mode={},j=p.BlockCipherMode=v.extend({createEncryptor:function(Z,F){return this.Encryptor.create(Z,F)},createDecryptor:function(Z,F){return this.Decryptor.create(Z,F)},init:function(Z,F){this._cipher=Z,this._iv=F}}),z=P.CBC=function(){var Z=j.extend();Z.Encryptor=Z.extend({processBlock:function(L,N){var De=this._cipher,be=De.blockSize;F.call(this,L,N,be),De.encryptBlock(L,N),this._prevBlock=L.slice(N,N+be)}}),Z.Decryptor=Z.extend({processBlock:function(L,N){var De=this._cipher,be=De.blockSize,$e=L.slice(N,N+be);De.decryptBlock(L,N),F.call(this,L,N,be),this._prevBlock=$e}});function F(L,N,De){var be,$e=this._iv;$e?(be=$e,this._iv=l):be=this._prevBlock;for(var ge=0;ge<De;ge++)L[N+ge]^=be[ge]}return Z}(),B=f.pad={},M=B.Pkcs7={pad:function(Z,F){for(var L=F*4,N=L-Z.sigBytes%L,De=N<<24|N<<16|N<<8|N,be=[],$e=0;$e<N;$e+=4)be.push(De);var ge=S.create(be,N);Z.concat(ge)},unpad:function(Z){var F=Z.words[Z.sigBytes-1>>>2]&255;Z.sigBytes-=F}};p.BlockCipher=H.extend({cfg:H.cfg.extend({mode:z,padding:M}),reset:function(){var Z;H.reset.call(this);var F=this.cfg,L=F.iv,N=F.mode;this._xformMode==this._ENC_XFORM_MODE?Z=N.createEncryptor:(Z=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==Z?this._mode.init(this,L&&L.words):(this._mode=Z.call(N,this,L&&L.words),this._mode.__creator=Z)},_doProcessBlock:function(Z,F){this._mode.processBlock(Z,F)},_doFinalize:function(){var Z,F=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(F.pad(this._data,this.blockSize),Z=this._process(!0)):(Z=this._process(!0),F.unpad(Z)),Z},blockSize:4});var U=p.CipherParams=v.extend({init:function(Z){this.mixIn(Z)},toString:function(Z){return(Z||this.formatter).stringify(this)}}),q=f.format={},K=q.OpenSSL={stringify:function(Z){var F,L=Z.ciphertext,N=Z.salt;return N?F=S.create([1398893684,1701076831]).concat(N).concat(L):F=L,F.toString(b)},parse:function(Z){var F,L=b.parse(Z),N=L.words;return N[0]==1398893684&&N[1]==1701076831&&(F=S.create(N.slice(2,4)),N.splice(0,4),L.sigBytes-=16),U.create({ciphertext:L,salt:F})}},X=p.SerializableCipher=v.extend({cfg:v.extend({format:K}),encrypt:function(Z,F,L,N){N=this.cfg.extend(N);var De=Z.createEncryptor(L,N),be=De.finalize(F),$e=De.cfg;return U.create({ciphertext:be,key:L,iv:$e.iv,algorithm:Z,mode:$e.mode,padding:$e.padding,blockSize:Z.blockSize,formatter:N.format})},decrypt:function(Z,F,L,N){N=this.cfg.extend(N),F=this._parse(F,N.format);var De=Z.createDecryptor(L,N).finalize(F.ciphertext);return De},_parse:function(Z,F){return typeof Z=="string"?F.parse(Z,this):Z}}),ee=f.kdf={},A=ee.OpenSSL={execute:function(Z,F,L,N,De){if(N||(N=S.random(64/8)),De)var be=T.create({keySize:F+L,hasher:De}).compute(Z,N);else var be=T.create({keySize:F+L}).compute(Z,N);var $e=S.create(be.words.slice(F),L*4);return be.sigBytes=F*4,U.create({key:be,iv:$e,salt:N})}},Ee=p.PasswordBasedCipher=X.extend({cfg:X.cfg.extend({kdf:A}),encrypt:function(Z,F,L,N){N=this.cfg.extend(N);var De=N.kdf.execute(L,Z.keySize,Z.ivSize,N.salt,N.hasher);N.iv=De.iv;var be=X.encrypt.call(this,Z,F,De.key,N);return be.mixIn(De),be},decrypt:function(Z,F,L,N){N=this.cfg.extend(N),F=this._parse(F,N.format);var De=N.kdf.execute(L,Z.keySize,Z.ivSize,F.salt,N.hasher);N.iv=De.iv;var be=X.decrypt.call(this,Z,F,De.key,N);return be}})}()})}(px)),px.exports}var vx={exports:{}},ES;function yR(){return ES||(ES=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.mode.CFB=function(){var l=i.lib.BlockCipherMode.extend();l.Encryptor=l.extend({processBlock:function(p,v){var S=this._cipher,w=S.blockSize;f.call(this,p,v,w,S),this._prevBlock=p.slice(v,v+w)}}),l.Decryptor=l.extend({processBlock:function(p,v){var S=this._cipher,w=S.blockSize,C=p.slice(v,v+w);f.call(this,p,v,w,S),this._prevBlock=C}});function f(p,v,S,w){var C,b=this._iv;b?(C=b.slice(0),this._iv=void 0):C=this._prevBlock,w.encryptBlock(C,0);for(var R=0;R<S;R++)p[v+R]^=C[R]}return l}(),i.mode.CFB})}(vx)),vx.exports}var gx={exports:{}},CS;function xR(){return CS||(CS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.mode.CTR=function(){var l=i.lib.BlockCipherMode.extend(),f=l.Encryptor=l.extend({processBlock:function(p,v){var S=this._cipher,w=S.blockSize,C=this._iv,b=this._counter;C&&(b=this._counter=C.slice(0),this._iv=void 0);var R=b.slice(0);S.encryptBlock(R,0),b[w-1]=b[w-1]+1|0;for(var T=0;T<w;T++)p[v+T]^=R[T]}});return l.Decryptor=f,l}(),i.mode.CTR})}(gx)),gx.exports}var mx={exports:{}},SS;function ER(){return SS||(SS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){/** @preserve
|
|
350
|
+
*/return function(l){var f=i,p=f.lib,v=p.WordArray,S=p.Hasher,b=f.algo,C=v.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),w=v.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),T=v.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),A=v.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),H=v.create([0,1518500249,1859775393,2400959708,2840853838]),P=v.create([1352829926,1548603684,1836072691,2053994217,0]),j=b.RIPEMD160=S.extend({_doReset:function(){this._hash=v.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(X,ee){for(var R=0;R<16;R++){var Ee=ee+R,Z=X[Ee];X[Ee]=(Z<<8|Z>>>24)&16711935|(Z<<24|Z>>>8)&4278255360}var F=this._hash.words,L=H.words,N=P.words,De=C.words,be=w.words,$e=T.words,ge=A.words,Ce,He,_e,$,G,de,oe,Je,Ge,ut;de=Ce=F[0],oe=He=F[1],Je=_e=F[2],Ge=$=F[3],ut=G=F[4];for(var Se,R=0;R<80;R+=1)Se=Ce+X[ee+De[R]]|0,R<16?Se+=z(He,_e,$)+L[0]:R<32?Se+=B(He,_e,$)+L[1]:R<48?Se+=M(He,_e,$)+L[2]:R<64?Se+=U(He,_e,$)+L[3]:Se+=q(He,_e,$)+L[4],Se=Se|0,Se=K(Se,$e[R]),Se=Se+G|0,Ce=G,G=$,$=K(_e,10),_e=He,He=Se,Se=de+X[ee+be[R]]|0,R<16?Se+=q(oe,Je,Ge)+N[0]:R<32?Se+=U(oe,Je,Ge)+N[1]:R<48?Se+=M(oe,Je,Ge)+N[2]:R<64?Se+=B(oe,Je,Ge)+N[3]:Se+=z(oe,Je,Ge)+N[4],Se=Se|0,Se=K(Se,ge[R]),Se=Se+ut|0,de=ut,ut=Ge,Ge=K(Je,10),Je=oe,oe=Se;Se=F[1]+_e+Ge|0,F[1]=F[2]+$+ut|0,F[2]=F[3]+G+de|0,F[3]=F[4]+Ce+oe|0,F[4]=F[0]+He+Je|0,F[0]=Se},_doFinalize:function(){var X=this._data,ee=X.words,R=this._nDataBytes*8,Ee=X.sigBytes*8;ee[Ee>>>5]|=128<<24-Ee%32,ee[(Ee+64>>>9<<4)+14]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,X.sigBytes=(ee.length+1)*4,this._process();for(var Z=this._hash,F=Z.words,L=0;L<5;L++){var N=F[L];F[L]=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360}return Z},clone:function(){var X=S.clone.call(this);return X._hash=this._hash.clone(),X}});function z(X,ee,R){return X^ee^R}function B(X,ee,R){return X&ee|~X&R}function M(X,ee,R){return(X|~ee)^R}function U(X,ee,R){return X&R|ee&~R}function q(X,ee,R){return X^(ee|~R)}function K(X,ee){return X<<ee|X>>>32-ee}f.RIPEMD160=S._createHelper(j),f.HmacRIPEMD160=S._createHmacHelper(j)}(),i.RIPEMD160})}(ux)),ux.exports}var cx={exports:{}},gS;function fx(){return gS||(gS=1,function(o,r){(function(i,l){o.exports=l(Jt())})(Lt,function(i){(function(){var l=i,f=l.lib,p=f.Base,v=l.enc,S=v.Utf8,b=l.algo;b.HMAC=p.extend({init:function(C,w){C=this._hasher=new C.init,typeof w=="string"&&(w=S.parse(w));var T=C.blockSize,A=T*4;w.sigBytes>A&&(w=C.finalize(w)),w.clamp();for(var H=this._oKey=w.clone(),P=this._iKey=w.clone(),j=H.words,z=P.words,B=0;B<T;B++)j[B]^=1549556828,z[B]^=909522486;H.sigBytes=P.sigBytes=A,this.reset()},reset:function(){var C=this._hasher;C.reset(),C.update(this._iKey)},update:function(C){return this._hasher.update(C),this},finalize:function(C){var w=this._hasher,T=w.finalize(C);w.reset();var A=w.finalize(this._oKey.clone().concat(T));return A}})})()})}(cx)),cx.exports}var dx={exports:{}},mS;function mR(){return mS||(mS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),ix(),fx())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.Base,v=f.WordArray,S=l.algo,b=S.SHA256,C=S.HMAC,w=S.PBKDF2=p.extend({cfg:p.extend({keySize:128/32,hasher:b,iterations:25e4}),init:function(T){this.cfg=this.cfg.extend(T)},compute:function(T,A){for(var H=this.cfg,P=C.create(H.hasher,T),j=v.create(),z=v.create([1]),B=j.words,M=z.words,U=H.keySize,q=H.iterations;B.length<U;){var K=P.update(A).finalize(z);P.reset();for(var X=K.words,ee=X.length,R=K,Ee=1;Ee<q;Ee++){R=P.finalize(R),P.reset();for(var Z=R.words,F=0;F<ee;F++)X[F]^=Z[F]}j.concat(K),M[0]++}return j.sigBytes=U*4,j}});l.PBKDF2=function(T,A,H){return w.create(H).compute(T,A)}}(),i.PBKDF2})}(dx)),dx.exports}var hx={exports:{}},yS;function pu(){return yS||(yS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),lS(),fx())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.Base,v=f.WordArray,S=l.algo,b=S.MD5,C=S.EvpKDF=p.extend({cfg:p.extend({keySize:128/32,hasher:b,iterations:1}),init:function(w){this.cfg=this.cfg.extend(w)},compute:function(w,T){for(var A,H=this.cfg,P=H.hasher.create(),j=v.create(),z=j.words,B=H.keySize,M=H.iterations;z.length<B;){A&&P.update(A),A=P.update(w).finalize(T),P.reset();for(var U=1;U<M;U++)A=P.finalize(A),P.reset();j.concat(A)}return j.sigBytes=B*4,j}});l.EvpKDF=function(w,T,A){return C.create(A).compute(w,T)}}(),i.EvpKDF})}(hx)),hx.exports}var px={exports:{}},xS;function si(){return xS||(xS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),pu())})(Lt,function(i){i.lib.Cipher||function(l){var f=i,p=f.lib,v=p.Base,S=p.WordArray,b=p.BufferedBlockAlgorithm,C=f.enc;C.Utf8;var w=C.Base64,T=f.algo,A=T.EvpKDF,H=p.Cipher=b.extend({cfg:v.extend(),createEncryptor:function(Z,F){return this.create(this._ENC_XFORM_MODE,Z,F)},createDecryptor:function(Z,F){return this.create(this._DEC_XFORM_MODE,Z,F)},init:function(Z,F,L){this.cfg=this.cfg.extend(L),this._xformMode=Z,this._key=F,this.reset()},reset:function(){b.reset.call(this),this._doReset()},process:function(Z){return this._append(Z),this._process()},finalize:function(Z){Z&&this._append(Z);var F=this._doFinalize();return F},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function Z(F){return typeof F=="string"?Ee:X}return function(F){return{encrypt:function(L,N,De){return Z(N).encrypt(F,L,N,De)},decrypt:function(L,N,De){return Z(N).decrypt(F,L,N,De)}}}}()});p.StreamCipher=H.extend({_doFinalize:function(){var Z=this._process(!0);return Z},blockSize:1});var P=f.mode={},j=p.BlockCipherMode=v.extend({createEncryptor:function(Z,F){return this.Encryptor.create(Z,F)},createDecryptor:function(Z,F){return this.Decryptor.create(Z,F)},init:function(Z,F){this._cipher=Z,this._iv=F}}),z=P.CBC=function(){var Z=j.extend();Z.Encryptor=Z.extend({processBlock:function(L,N){var De=this._cipher,be=De.blockSize;F.call(this,L,N,be),De.encryptBlock(L,N),this._prevBlock=L.slice(N,N+be)}}),Z.Decryptor=Z.extend({processBlock:function(L,N){var De=this._cipher,be=De.blockSize,$e=L.slice(N,N+be);De.decryptBlock(L,N),F.call(this,L,N,be),this._prevBlock=$e}});function F(L,N,De){var be,$e=this._iv;$e?(be=$e,this._iv=l):be=this._prevBlock;for(var ge=0;ge<De;ge++)L[N+ge]^=be[ge]}return Z}(),B=f.pad={},M=B.Pkcs7={pad:function(Z,F){for(var L=F*4,N=L-Z.sigBytes%L,De=N<<24|N<<16|N<<8|N,be=[],$e=0;$e<N;$e+=4)be.push(De);var ge=S.create(be,N);Z.concat(ge)},unpad:function(Z){var F=Z.words[Z.sigBytes-1>>>2]&255;Z.sigBytes-=F}};p.BlockCipher=H.extend({cfg:H.cfg.extend({mode:z,padding:M}),reset:function(){var Z;H.reset.call(this);var F=this.cfg,L=F.iv,N=F.mode;this._xformMode==this._ENC_XFORM_MODE?Z=N.createEncryptor:(Z=N.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==Z?this._mode.init(this,L&&L.words):(this._mode=Z.call(N,this,L&&L.words),this._mode.__creator=Z)},_doProcessBlock:function(Z,F){this._mode.processBlock(Z,F)},_doFinalize:function(){var Z,F=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(F.pad(this._data,this.blockSize),Z=this._process(!0)):(Z=this._process(!0),F.unpad(Z)),Z},blockSize:4});var U=p.CipherParams=v.extend({init:function(Z){this.mixIn(Z)},toString:function(Z){return(Z||this.formatter).stringify(this)}}),q=f.format={},K=q.OpenSSL={stringify:function(Z){var F,L=Z.ciphertext,N=Z.salt;return N?F=S.create([1398893684,1701076831]).concat(N).concat(L):F=L,F.toString(w)},parse:function(Z){var F,L=w.parse(Z),N=L.words;return N[0]==1398893684&&N[1]==1701076831&&(F=S.create(N.slice(2,4)),N.splice(0,4),L.sigBytes-=16),U.create({ciphertext:L,salt:F})}},X=p.SerializableCipher=v.extend({cfg:v.extend({format:K}),encrypt:function(Z,F,L,N){N=this.cfg.extend(N);var De=Z.createEncryptor(L,N),be=De.finalize(F),$e=De.cfg;return U.create({ciphertext:be,key:L,iv:$e.iv,algorithm:Z,mode:$e.mode,padding:$e.padding,blockSize:Z.blockSize,formatter:N.format})},decrypt:function(Z,F,L,N){N=this.cfg.extend(N),F=this._parse(F,N.format);var De=Z.createDecryptor(L,N).finalize(F.ciphertext);return De},_parse:function(Z,F){return typeof Z=="string"?F.parse(Z,this):Z}}),ee=f.kdf={},R=ee.OpenSSL={execute:function(Z,F,L,N,De){if(N||(N=S.random(64/8)),De)var be=A.create({keySize:F+L,hasher:De}).compute(Z,N);else var be=A.create({keySize:F+L}).compute(Z,N);var $e=S.create(be.words.slice(F),L*4);return be.sigBytes=F*4,U.create({key:be,iv:$e,salt:N})}},Ee=p.PasswordBasedCipher=X.extend({cfg:X.cfg.extend({kdf:R}),encrypt:function(Z,F,L,N){N=this.cfg.extend(N);var De=N.kdf.execute(L,Z.keySize,Z.ivSize,N.salt,N.hasher);N.iv=De.iv;var be=X.encrypt.call(this,Z,F,De.key,N);return be.mixIn(De),be},decrypt:function(Z,F,L,N){N=this.cfg.extend(N),F=this._parse(F,N.format);var De=N.kdf.execute(L,Z.keySize,Z.ivSize,F.salt,N.hasher);N.iv=De.iv;var be=X.decrypt.call(this,Z,F,De.key,N);return be}})}()})}(px)),px.exports}var vx={exports:{}},ES;function yR(){return ES||(ES=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.mode.CFB=function(){var l=i.lib.BlockCipherMode.extend();l.Encryptor=l.extend({processBlock:function(p,v){var S=this._cipher,b=S.blockSize;f.call(this,p,v,b,S),this._prevBlock=p.slice(v,v+b)}}),l.Decryptor=l.extend({processBlock:function(p,v){var S=this._cipher,b=S.blockSize,C=p.slice(v,v+b);f.call(this,p,v,b,S),this._prevBlock=C}});function f(p,v,S,b){var C,w=this._iv;w?(C=w.slice(0),this._iv=void 0):C=this._prevBlock,b.encryptBlock(C,0);for(var T=0;T<S;T++)p[v+T]^=C[T]}return l}(),i.mode.CFB})}(vx)),vx.exports}var gx={exports:{}},CS;function xR(){return CS||(CS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.mode.CTR=function(){var l=i.lib.BlockCipherMode.extend(),f=l.Encryptor=l.extend({processBlock:function(p,v){var S=this._cipher,b=S.blockSize,C=this._iv,w=this._counter;C&&(w=this._counter=C.slice(0),this._iv=void 0);var T=w.slice(0);S.encryptBlock(T,0),w[b-1]=w[b-1]+1|0;for(var A=0;A<b;A++)p[v+A]^=T[A]}});return l.Decryptor=f,l}(),i.mode.CTR})}(gx)),gx.exports}var mx={exports:{}},SS;function ER(){return SS||(SS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){/** @preserve
|
|
351
351
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
352
352
|
* derived from CryptoJS.mode.CTR
|
|
353
353
|
* Jan Hruby jhruby.web@gmail.com
|
|
354
|
-
*/return i.mode.CTRGladman=function(){var l=i.lib.BlockCipherMode.extend();function f(S){if((S>>24&255)===255){var w=S>>16&255,C=S>>8&255,b=S&255;w===255?(w=0,C===255?(C=0,b===255?b=0:++b):++C):++w,S=0,S+=w<<16,S+=C<<8,S+=b}else S+=16777216;return S}function p(S){return(S[0]=f(S[0]))===0&&(S[1]=f(S[1])),S}var v=l.Encryptor=l.extend({processBlock:function(S,w){var C=this._cipher,b=C.blockSize,R=this._iv,T=this._counter;R&&(T=this._counter=R.slice(0),this._iv=void 0),p(T);var H=T.slice(0);C.encryptBlock(H,0);for(var P=0;P<b;P++)S[w+P]^=H[P]}});return l.Decryptor=v,l}(),i.mode.CTRGladman})}(mx)),mx.exports}var yx={exports:{}},wS;function CR(){return wS||(wS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.mode.OFB=function(){var l=i.lib.BlockCipherMode.extend(),f=l.Encryptor=l.extend({processBlock:function(p,v){var S=this._cipher,w=S.blockSize,C=this._iv,b=this._keystream;C&&(b=this._keystream=C.slice(0),this._iv=void 0),S.encryptBlock(b,0);for(var R=0;R<w;R++)p[v+R]^=b[R]}});return l.Decryptor=f,l}(),i.mode.OFB})}(yx)),yx.exports}var xx={exports:{}},bS;function SR(){return bS||(bS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.mode.ECB=function(){var l=i.lib.BlockCipherMode.extend();return l.Encryptor=l.extend({processBlock:function(f,p){this._cipher.encryptBlock(f,p)}}),l.Decryptor=l.extend({processBlock:function(f,p){this._cipher.decryptBlock(f,p)}}),l}(),i.mode.ECB})}(xx)),xx.exports}var Ex={exports:{}},_S;function wR(){return _S||(_S=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.pad.AnsiX923={pad:function(l,f){var p=l.sigBytes,v=f*4,S=v-p%v,w=p+S-1;l.clamp(),l.words[w>>>2]|=S<<24-w%4*8,l.sigBytes+=S},unpad:function(l){var f=l.words[l.sigBytes-1>>>2]&255;l.sigBytes-=f}},i.pad.Ansix923})}(Ex)),Ex.exports}var Cx={exports:{}},DS;function bR(){return DS||(DS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.pad.Iso10126={pad:function(l,f){var p=f*4,v=p-l.sigBytes%p;l.concat(i.lib.WordArray.random(v-1)).concat(i.lib.WordArray.create([v<<24],1))},unpad:function(l){var f=l.words[l.sigBytes-1>>>2]&255;l.sigBytes-=f}},i.pad.Iso10126})}(Cx)),Cx.exports}var Sx={exports:{}},TS;function _R(){return TS||(TS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.pad.Iso97971={pad:function(l,f){l.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(l,f)},unpad:function(l){i.pad.ZeroPadding.unpad(l),l.sigBytes--}},i.pad.Iso97971})}(Sx)),Sx.exports}var wx={exports:{}},RS;function DR(){return RS||(RS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.pad.ZeroPadding={pad:function(l,f){var p=f*4;l.clamp(),l.sigBytes+=p-(l.sigBytes%p||p)},unpad:function(l){for(var f=l.words,p=l.sigBytes-1,p=l.sigBytes-1;p>=0;p--)if(f[p>>>2]>>>24-p%4*8&255){l.sigBytes=p+1;break}}},i.pad.ZeroPadding})}(wx)),wx.exports}var bx={exports:{}},AS;function TR(){return AS||(AS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding})}(bx)),bx.exports}var _x={exports:{}},kS;function RR(){return kS||(kS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return function(l){var f=i,p=f.lib,v=p.CipherParams,S=f.enc,w=S.Hex,C=f.format;C.Hex={stringify:function(b){return b.ciphertext.toString(w)},parse:function(b){var R=w.parse(b);return v.create({ciphertext:R})}}}(),i.format.Hex})}(_x)),_x.exports}var Dx={exports:{}},FS;function AR(){return FS||(FS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cc(),Sc(),pu(),si())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.BlockCipher,v=l.algo,S=[],w=[],C=[],b=[],R=[],T=[],H=[],P=[],j=[],z=[];(function(){for(var U=[],q=0;q<256;q++)q<128?U[q]=q<<1:U[q]=q<<1^283;for(var K=0,X=0,q=0;q<256;q++){var ee=X^X<<1^X<<2^X<<3^X<<4;ee=ee>>>8^ee&255^99,S[K]=ee,w[ee]=K;var A=U[K],Ee=U[A],Z=U[Ee],F=U[ee]*257^ee*16843008;C[K]=F<<24|F>>>8,b[K]=F<<16|F>>>16,R[K]=F<<8|F>>>24,T[K]=F;var F=Z*16843009^Ee*65537^A*257^K*16843008;H[ee]=F<<24|F>>>8,P[ee]=F<<16|F>>>16,j[ee]=F<<8|F>>>24,z[ee]=F,K?(K=A^U[U[U[Z^A]]],X^=U[U[X]]):K=X=1}})();var B=[0,1,2,4,8,16,32,64,128,27,54],M=v.AES=p.extend({_doReset:function(){var U;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var q=this._keyPriorReset=this._key,K=q.words,X=q.sigBytes/4,ee=this._nRounds=X+6,A=(ee+1)*4,Ee=this._keySchedule=[],Z=0;Z<A;Z++)Z<X?Ee[Z]=K[Z]:(U=Ee[Z-1],Z%X?X>6&&Z%X==4&&(U=S[U>>>24]<<24|S[U>>>16&255]<<16|S[U>>>8&255]<<8|S[U&255]):(U=U<<8|U>>>24,U=S[U>>>24]<<24|S[U>>>16&255]<<16|S[U>>>8&255]<<8|S[U&255],U^=B[Z/X|0]<<24),Ee[Z]=Ee[Z-X]^U);for(var F=this._invKeySchedule=[],L=0;L<A;L++){var Z=A-L;if(L%4)var U=Ee[Z];else var U=Ee[Z-4];L<4||Z<=4?F[L]=U:F[L]=H[S[U>>>24]]^P[S[U>>>16&255]]^j[S[U>>>8&255]]^z[S[U&255]]}}},encryptBlock:function(U,q){this._doCryptBlock(U,q,this._keySchedule,C,b,R,T,S)},decryptBlock:function(U,q){var K=U[q+1];U[q+1]=U[q+3],U[q+3]=K,this._doCryptBlock(U,q,this._invKeySchedule,H,P,j,z,w);var K=U[q+1];U[q+1]=U[q+3],U[q+3]=K},_doCryptBlock:function(U,q,K,X,ee,A,Ee,Z){for(var F=this._nRounds,L=U[q]^K[0],N=U[q+1]^K[1],De=U[q+2]^K[2],be=U[q+3]^K[3],$e=4,ge=1;ge<F;ge++){var Ce=X[L>>>24]^ee[N>>>16&255]^A[De>>>8&255]^Ee[be&255]^K[$e++],He=X[N>>>24]^ee[De>>>16&255]^A[be>>>8&255]^Ee[L&255]^K[$e++],_e=X[De>>>24]^ee[be>>>16&255]^A[L>>>8&255]^Ee[N&255]^K[$e++],$=X[be>>>24]^ee[L>>>16&255]^A[N>>>8&255]^Ee[De&255]^K[$e++];L=Ce,N=He,De=_e,be=$}var Ce=(Z[L>>>24]<<24|Z[N>>>16&255]<<16|Z[De>>>8&255]<<8|Z[be&255])^K[$e++],He=(Z[N>>>24]<<24|Z[De>>>16&255]<<16|Z[be>>>8&255]<<8|Z[L&255])^K[$e++],_e=(Z[De>>>24]<<24|Z[be>>>16&255]<<16|Z[L>>>8&255]<<8|Z[N&255])^K[$e++],$=(Z[be>>>24]<<24|Z[L>>>16&255]<<16|Z[N>>>8&255]<<8|Z[De&255])^K[$e++];U[q]=Ce,U[q+1]=He,U[q+2]=_e,U[q+3]=$},keySize:256/32});l.AES=p._createHelper(M)}(),i.AES})}(Dx)),Dx.exports}var Tx={exports:{}},OS;function kR(){return OS||(OS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cc(),Sc(),pu(),si())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.WordArray,v=f.BlockCipher,S=l.algo,w=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],C=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],b=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],R=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],T=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],H=S.DES=v.extend({_doReset:function(){for(var B=this._key,M=B.words,U=[],q=0;q<56;q++){var K=w[q]-1;U[q]=M[K>>>5]>>>31-K%32&1}for(var X=this._subKeys=[],ee=0;ee<16;ee++){for(var A=X[ee]=[],Ee=b[ee],q=0;q<24;q++)A[q/6|0]|=U[(C[q]-1+Ee)%28]<<31-q%6,A[4+(q/6|0)]|=U[28+(C[q+24]-1+Ee)%28]<<31-q%6;A[0]=A[0]<<1|A[0]>>>31;for(var q=1;q<7;q++)A[q]=A[q]>>>(q-1)*4+3;A[7]=A[7]<<5|A[7]>>>27}for(var Z=this._invSubKeys=[],q=0;q<16;q++)Z[q]=X[15-q]},encryptBlock:function(B,M){this._doCryptBlock(B,M,this._subKeys)},decryptBlock:function(B,M){this._doCryptBlock(B,M,this._invSubKeys)},_doCryptBlock:function(B,M,U){this._lBlock=B[M],this._rBlock=B[M+1],P.call(this,4,252645135),P.call(this,16,65535),j.call(this,2,858993459),j.call(this,8,16711935),P.call(this,1,1431655765);for(var q=0;q<16;q++){for(var K=U[q],X=this._lBlock,ee=this._rBlock,A=0,Ee=0;Ee<8;Ee++)A|=R[Ee][((ee^K[Ee])&T[Ee])>>>0];this._lBlock=ee,this._rBlock=X^A}var Z=this._lBlock;this._lBlock=this._rBlock,this._rBlock=Z,P.call(this,1,1431655765),j.call(this,8,16711935),j.call(this,2,858993459),P.call(this,16,65535),P.call(this,4,252645135),B[M]=this._lBlock,B[M+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function P(B,M){var U=(this._lBlock>>>B^this._rBlock)&M;this._rBlock^=U,this._lBlock^=U<<B}function j(B,M){var U=(this._rBlock>>>B^this._lBlock)&M;this._lBlock^=U,this._rBlock^=U<<B}l.DES=v._createHelper(H);var z=S.TripleDES=v.extend({_doReset:function(){var B=this._key,M=B.words;if(M.length!==2&&M.length!==4&&M.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var U=M.slice(0,2),q=M.length<4?M.slice(0,2):M.slice(2,4),K=M.length<6?M.slice(0,2):M.slice(4,6);this._des1=H.createEncryptor(p.create(U)),this._des2=H.createEncryptor(p.create(q)),this._des3=H.createEncryptor(p.create(K))},encryptBlock:function(B,M){this._des1.encryptBlock(B,M),this._des2.decryptBlock(B,M),this._des3.encryptBlock(B,M)},decryptBlock:function(B,M){this._des3.decryptBlock(B,M),this._des2.encryptBlock(B,M),this._des1.decryptBlock(B,M)},keySize:192/32,ivSize:64/32,blockSize:64/32});l.TripleDES=v._createHelper(z)}(),i.TripleDES})}(Tx)),Tx.exports}var Rx={exports:{}},BS;function FR(){return BS||(BS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cc(),Sc(),pu(),si())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.StreamCipher,v=l.algo,S=v.RC4=p.extend({_doReset:function(){for(var b=this._key,R=b.words,T=b.sigBytes,H=this._S=[],P=0;P<256;P++)H[P]=P;for(var P=0,j=0;P<256;P++){var z=P%T,B=R[z>>>2]>>>24-z%4*8&255;j=(j+H[P]+B)%256;var M=H[P];H[P]=H[j],H[j]=M}this._i=this._j=0},_doProcessBlock:function(b,R){b[R]^=w.call(this)},keySize:256/32,ivSize:0});function w(){for(var b=this._S,R=this._i,T=this._j,H=0,P=0;P<4;P++){R=(R+1)%256,T=(T+b[R])%256;var j=b[R];b[R]=b[T],b[T]=j,H|=b[(b[R]+b[T])%256]<<24-P*8}return this._i=R,this._j=T,H}l.RC4=p._createHelper(S);var C=v.RC4Drop=S.extend({cfg:S.cfg.extend({drop:192}),_doReset:function(){S._doReset.call(this);for(var b=this.cfg.drop;b>0;b--)w.call(this)}});l.RC4Drop=p._createHelper(C)}(),i.RC4})}(Rx)),Rx.exports}var Ax={exports:{}},MS;function OR(){return MS||(MS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cc(),Sc(),pu(),si())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.StreamCipher,v=l.algo,S=[],w=[],C=[],b=v.Rabbit=p.extend({_doReset:function(){for(var T=this._key.words,H=this.cfg.iv,P=0;P<4;P++)T[P]=(T[P]<<8|T[P]>>>24)&16711935|(T[P]<<24|T[P]>>>8)&4278255360;var j=this._X=[T[0],T[3]<<16|T[2]>>>16,T[1],T[0]<<16|T[3]>>>16,T[2],T[1]<<16|T[0]>>>16,T[3],T[2]<<16|T[1]>>>16],z=this._C=[T[2]<<16|T[2]>>>16,T[0]&4294901760|T[1]&65535,T[3]<<16|T[3]>>>16,T[1]&4294901760|T[2]&65535,T[0]<<16|T[0]>>>16,T[2]&4294901760|T[3]&65535,T[1]<<16|T[1]>>>16,T[3]&4294901760|T[0]&65535];this._b=0;for(var P=0;P<4;P++)R.call(this);for(var P=0;P<8;P++)z[P]^=j[P+4&7];if(H){var B=H.words,M=B[0],U=B[1],q=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,K=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360,X=q>>>16|K&4294901760,ee=K<<16|q&65535;z[0]^=q,z[1]^=X,z[2]^=K,z[3]^=ee,z[4]^=q,z[5]^=X,z[6]^=K,z[7]^=ee;for(var P=0;P<4;P++)R.call(this)}},_doProcessBlock:function(T,H){var P=this._X;R.call(this),S[0]=P[0]^P[5]>>>16^P[3]<<16,S[1]=P[2]^P[7]>>>16^P[5]<<16,S[2]=P[4]^P[1]>>>16^P[7]<<16,S[3]=P[6]^P[3]>>>16^P[1]<<16;for(var j=0;j<4;j++)S[j]=(S[j]<<8|S[j]>>>24)&16711935|(S[j]<<24|S[j]>>>8)&4278255360,T[H+j]^=S[j]},blockSize:128/32,ivSize:64/32});function R(){for(var T=this._X,H=this._C,P=0;P<8;P++)w[P]=H[P];H[0]=H[0]+1295307597+this._b|0,H[1]=H[1]+3545052371+(H[0]>>>0<w[0]>>>0?1:0)|0,H[2]=H[2]+886263092+(H[1]>>>0<w[1]>>>0?1:0)|0,H[3]=H[3]+1295307597+(H[2]>>>0<w[2]>>>0?1:0)|0,H[4]=H[4]+3545052371+(H[3]>>>0<w[3]>>>0?1:0)|0,H[5]=H[5]+886263092+(H[4]>>>0<w[4]>>>0?1:0)|0,H[6]=H[6]+1295307597+(H[5]>>>0<w[5]>>>0?1:0)|0,H[7]=H[7]+3545052371+(H[6]>>>0<w[6]>>>0?1:0)|0,this._b=H[7]>>>0<w[7]>>>0?1:0;for(var P=0;P<8;P++){var j=T[P]+H[P],z=j&65535,B=j>>>16,M=((z*z>>>17)+z*B>>>15)+B*B,U=((j&4294901760)*j|0)+((j&65535)*j|0);C[P]=M^U}T[0]=C[0]+(C[7]<<16|C[7]>>>16)+(C[6]<<16|C[6]>>>16)|0,T[1]=C[1]+(C[0]<<8|C[0]>>>24)+C[7]|0,T[2]=C[2]+(C[1]<<16|C[1]>>>16)+(C[0]<<16|C[0]>>>16)|0,T[3]=C[3]+(C[2]<<8|C[2]>>>24)+C[1]|0,T[4]=C[4]+(C[3]<<16|C[3]>>>16)+(C[2]<<16|C[2]>>>16)|0,T[5]=C[5]+(C[4]<<8|C[4]>>>24)+C[3]|0,T[6]=C[6]+(C[5]<<16|C[5]>>>16)+(C[4]<<16|C[4]>>>16)|0,T[7]=C[7]+(C[6]<<8|C[6]>>>24)+C[5]|0}l.Rabbit=p._createHelper(b)}(),i.Rabbit})}(Ax)),Ax.exports}var kx={exports:{}},NS;function BR(){return NS||(NS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cc(),Sc(),pu(),si())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.StreamCipher,v=l.algo,S=[],w=[],C=[],b=v.RabbitLegacy=p.extend({_doReset:function(){var T=this._key.words,H=this.cfg.iv,P=this._X=[T[0],T[3]<<16|T[2]>>>16,T[1],T[0]<<16|T[3]>>>16,T[2],T[1]<<16|T[0]>>>16,T[3],T[2]<<16|T[1]>>>16],j=this._C=[T[2]<<16|T[2]>>>16,T[0]&4294901760|T[1]&65535,T[3]<<16|T[3]>>>16,T[1]&4294901760|T[2]&65535,T[0]<<16|T[0]>>>16,T[2]&4294901760|T[3]&65535,T[1]<<16|T[1]>>>16,T[3]&4294901760|T[0]&65535];this._b=0;for(var z=0;z<4;z++)R.call(this);for(var z=0;z<8;z++)j[z]^=P[z+4&7];if(H){var B=H.words,M=B[0],U=B[1],q=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,K=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360,X=q>>>16|K&4294901760,ee=K<<16|q&65535;j[0]^=q,j[1]^=X,j[2]^=K,j[3]^=ee,j[4]^=q,j[5]^=X,j[6]^=K,j[7]^=ee;for(var z=0;z<4;z++)R.call(this)}},_doProcessBlock:function(T,H){var P=this._X;R.call(this),S[0]=P[0]^P[5]>>>16^P[3]<<16,S[1]=P[2]^P[7]>>>16^P[5]<<16,S[2]=P[4]^P[1]>>>16^P[7]<<16,S[3]=P[6]^P[3]>>>16^P[1]<<16;for(var j=0;j<4;j++)S[j]=(S[j]<<8|S[j]>>>24)&16711935|(S[j]<<24|S[j]>>>8)&4278255360,T[H+j]^=S[j]},blockSize:128/32,ivSize:64/32});function R(){for(var T=this._X,H=this._C,P=0;P<8;P++)w[P]=H[P];H[0]=H[0]+1295307597+this._b|0,H[1]=H[1]+3545052371+(H[0]>>>0<w[0]>>>0?1:0)|0,H[2]=H[2]+886263092+(H[1]>>>0<w[1]>>>0?1:0)|0,H[3]=H[3]+1295307597+(H[2]>>>0<w[2]>>>0?1:0)|0,H[4]=H[4]+3545052371+(H[3]>>>0<w[3]>>>0?1:0)|0,H[5]=H[5]+886263092+(H[4]>>>0<w[4]>>>0?1:0)|0,H[6]=H[6]+1295307597+(H[5]>>>0<w[5]>>>0?1:0)|0,H[7]=H[7]+3545052371+(H[6]>>>0<w[6]>>>0?1:0)|0,this._b=H[7]>>>0<w[7]>>>0?1:0;for(var P=0;P<8;P++){var j=T[P]+H[P],z=j&65535,B=j>>>16,M=((z*z>>>17)+z*B>>>15)+B*B,U=((j&4294901760)*j|0)+((j&65535)*j|0);C[P]=M^U}T[0]=C[0]+(C[7]<<16|C[7]>>>16)+(C[6]<<16|C[6]>>>16)|0,T[1]=C[1]+(C[0]<<8|C[0]>>>24)+C[7]|0,T[2]=C[2]+(C[1]<<16|C[1]>>>16)+(C[0]<<16|C[0]>>>16)|0,T[3]=C[3]+(C[2]<<8|C[2]>>>24)+C[1]|0,T[4]=C[4]+(C[3]<<16|C[3]>>>16)+(C[2]<<16|C[2]>>>16)|0,T[5]=C[5]+(C[4]<<8|C[4]>>>24)+C[3]|0,T[6]=C[6]+(C[5]<<16|C[5]>>>16)+(C[4]<<16|C[4]>>>16)|0,T[7]=C[7]+(C[6]<<8|C[6]>>>24)+C[5]|0}l.RabbitLegacy=p._createHelper(b)}(),i.RabbitLegacy})}(kx)),kx.exports}var Fx={exports:{}},HS;function MR(){return HS||(HS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cc(),Sc(),pu(),si())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.BlockCipher,v=l.algo;const S=16,w=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],C=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var b={pbox:[],sbox:[]};function R(z,B){let M=B>>24&255,U=B>>16&255,q=B>>8&255,K=B&255,X=z.sbox[0][M]+z.sbox[1][U];return X=X^z.sbox[2][q],X=X+z.sbox[3][K],X}function T(z,B,M){let U=B,q=M,K;for(let X=0;X<S;++X)U=U^z.pbox[X],q=R(z,U)^q,K=U,U=q,q=K;return K=U,U=q,q=K,q=q^z.pbox[S],U=U^z.pbox[S+1],{left:U,right:q}}function H(z,B,M){let U=B,q=M,K;for(let X=S+1;X>1;--X)U=U^z.pbox[X],q=R(z,U)^q,K=U,U=q,q=K;return K=U,U=q,q=K,q=q^z.pbox[1],U=U^z.pbox[0],{left:U,right:q}}function P(z,B,M){for(let ee=0;ee<4;ee++){z.sbox[ee]=[];for(let A=0;A<256;A++)z.sbox[ee][A]=C[ee][A]}let U=0;for(let ee=0;ee<S+2;ee++)z.pbox[ee]=w[ee]^B[U],U++,U>=M&&(U=0);let q=0,K=0,X=0;for(let ee=0;ee<S+2;ee+=2)X=T(z,q,K),q=X.left,K=X.right,z.pbox[ee]=q,z.pbox[ee+1]=K;for(let ee=0;ee<4;ee++)for(let A=0;A<256;A+=2)X=T(z,q,K),q=X.left,K=X.right,z.sbox[ee][A]=q,z.sbox[ee][A+1]=K;return!0}var j=v.Blowfish=p.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var z=this._keyPriorReset=this._key,B=z.words,M=z.sigBytes/4;P(b,B,M)}},encryptBlock:function(z,B){var M=T(b,z[B],z[B+1]);z[B]=M.left,z[B+1]=M.right},decryptBlock:function(z,B){var M=H(b,z[B],z[B+1]);z[B]=M.left,z[B+1]=M.right},blockSize:64/32,keySize:128/32,ivSize:64/32});l.Blowfish=p._createHelper(j)}(),i.Blowfish})}(Fx)),Fx.exports}(function(o,r){(function(i,l,f){o.exports=l(Jt(),Cv(),cR(),fR(),Cc(),dR(),Sc(),lS(),ix(),hR(),dS(),pR(),vR(),gR(),fx(),mR(),pu(),si(),yR(),xR(),ER(),CR(),SR(),wR(),bR(),_R(),DR(),TR(),RR(),AR(),kR(),FR(),OR(),BR(),MR())})(Lt,function(i){return i})})(J2);var NR=J2.exports;const wc=I2(NR);let er=null,sn=null,Gf=null;const ea={setConfig(o){er=o},getConfig(){return er},decrypt(o,r=null,i=null){var l,f;try{const p=r||((l=er==null?void 0:er.env)==null?void 0:l.DECODE_IV)||"default_iv_1234",v=i||((f=er==null?void 0:er.env)==null?void 0:f.DECODE_KEY)||"default_key_1234",S=wc.enc.Base64.parse(o),w=wc.enc.Utf8.parse(v),C=wc.enc.Utf8.parse(p);return wc.AES.decrypt({ciphertext:S},w,{iv:C,mode:wc.mode.CTR,padding:wc.pad.NoPadding}).toString(wc.enc.Utf8)}catch(p){return console.log("ERROR ===> failed decrypt:",p),!1}},pushSound(){try{Gf&&clearInterval(Gf);const o=()=>{try{(!sn||sn.state==="closed")&&(sn=new(window.AudioContext||window.webkitAudioContext)),sn.state==="suspended"&&sn.resume();const r=sn.createOscillator(),i=sn.createOscillator(),l=sn.createGain();r.type="sine",i.type="sine",r.frequency.setValueAtTime(400,sn.currentTime),i.frequency.setValueAtTime(450,sn.currentTime);const f=sn.createOscillator(),p=sn.createGain();f.frequency.value=25,p.gain.value=15,f.connect(p),p.connect(r.frequency),p.connect(i.frequency),r.connect(l),i.connect(l),l.connect(sn.destination),l.gain.setValueAtTime(0,sn.currentTime),l.gain.linearRampToValueAtTime(.08,sn.currentTime+.05),l.gain.setValueAtTime(.08,sn.currentTime+1.2),l.gain.linearRampToValueAtTime(0,sn.currentTime+1.3),f.start(),r.start(),i.start(),f.stop(sn.currentTime+1.4),r.stop(sn.currentTime+1.4),i.stop(sn.currentTime+1.4)}catch(r){console.warn("Failed to play synthesized tone:",r)}};o(),Gf=setInterval(o,3e3)}catch(o){console.warn("AudioContext initialization failed:",o)}},stopSound(){Gf&&(clearInterval(Gf),Gf=null),sn&&(sn.close().catch(()=>{}),sn=null)},pushNotification(o){it.emitToParent("show_notification",{message:o})},toHHMMSS(o){const r=parseInt(o,10),i=Math.floor(r/3600),l=Math.floor(r/60)%60,f=r%60;return[i,l,f].map(p=>p<10?"0"+p:p).filter((p,v)=>p!=="00"||v>0).join(":")},mute(o,r,i,l){o?r?o.unmute():o.mute():l&&(r?l.unmuteAudio():l.muteAudio()),i(!r)},hold(o,r,i,l){o?r?o.unhold():o.hold():l&&(r?l.unhold():l.hold()),i(!r)},async hangup(o,r,i,l,f,p,v,S){l&&await l(!1),f&&f(!1),p&&p(0),o&&o.current&&clearInterval(o.current),r?(await(r==null?void 0:r.terminate("hangup")),v&&v(!1),it.emitLocal("yeastarSession",!1)):i&&(await(i==null?void 0:i.hangup()),S&&S(!1),it.emitLocal("flashphonerCall",!1))},attachRemoteAudio(o){if(!o)return;let r=document.getElementById("ys-remote-audio");r||(r=document.createElement("audio"),r.id="ys-remote-audio",r.autoplay=!0,r.playsInline=!0,r.hidden=!0,document.body.appendChild(r)),r.srcObject=o,r.play().catch(()=>{console.warn("User gesture needed to play audio"),it.emitLocal("needUserGestureToPlay",!0)})},getContactName(o){return o&&((er==null?void 0:er.contacts)||{1001:"John Doe",1002:"Jane Smith","08123456789":"Alice Johnson",123:"Customer Support"})[o]||null},async updateExtensionStatus(o,r="Ready",i="ready"){var l,f,p;try{const v=(er==null?void 0:er["X-CPAAS-Key-Fingerprint"])||(er==null?void 0:er.fingerprint)||(er==null?void 0:er.cpaasKeyFingerprint)||((l=er==null?void 0:er.env)==null?void 0:l.fingerprint)||((f=er==null?void 0:er.env)==null?void 0:f.X_CPAAS_Key_Fingerprint)||((p=er==null?void 0:er.pabxConfig)==null?void 0:p["X-CPAAS-Key-Fingerprint"]);if(!v)return console.warn("X-CPAAS-Key-Fingerprint not found. Cannot update extension status."),!1;const S=await fetch("https://cpaas-api-dev.omni-x.dev/voice/extensions/status",{method:"POST",headers:{"X-CPAAS-Key-Fingerprint":v,"Content-Type":"application/json"},body:JSON.stringify({extension:o,status:r,reason:i})}),w=await S.json();return console.log(`[ExtStatus] ${r}/${i}:`,w),S.ok}catch(v){return console.error("Failed to update extension status:",v),!1}},getExtensionUsername(){var o,r;return((o=er==null?void 0:er.auth)==null?void 0:o.user_pbx)||((r=er==null?void 0:er.auth)==null?void 0:r.username)||null}};function HR({initialRegisterStatus:o="CONNECTING",autoReady:r=!0,showAuxButton:i=!1,auxOptions:l=[]}){const[f,p]=zt.useState(""),[v,S]=zt.useState("Idle"),[w,C]=zt.useState("00:00"),[b,R]=zt.useState(!1),[T,H]=zt.useState(!1),[P,j]=zt.useState(!1),[z,B]=zt.useState(""),[M,U]=zt.useState(""),[q,K]=zt.useState(""),[X,ee]=zt.useState(o),[A,Ee]=zt.useState(""),[Z,F]=zt.useState(r&&o==="REGISTERED"?"READY":"NOT_READY"),[L,N]=zt.useState(!1),[De,be]=zt.useState(null),$e=zt.useCallback(Se=>{U(Se),setTimeout(()=>U(""),4e3)},[]);zt.useEffect(()=>{const Se=[it.on("call_status",Re=>{S(Re),Re!=="InCall"&&(j(!1),B(""),H(!1),R(!1))}),it.on("call_duration",C),it.on("incoming_call",Re=>{var zr,qt,Qt,Fr,br,nn,Tn,vn;const yt=((qt=(zr=Re==null?void 0:Re.remoteIdentity)==null?void 0:zr.uri)==null?void 0:qt.user)||(Re==null?void 0:Re.from_id)||"Unknown",dr=((Qt=Re==null?void 0:Re.remoteIdentity)==null?void 0:Qt.displayName)||((br=(Fr=Re==null?void 0:Re.request)==null?void 0:Fr.from)==null?void 0:br.displayName)||((vn=(Tn=(nn=Re==null?void 0:Re.incomingInviteRequest)==null?void 0:nn.message)==null?void 0:Tn.from)==null?void 0:vn.displayName)||(Re==null?void 0:Re.from_name)||ea.getContactName(yt)||"";p(yt),K(dr),S("Ringing")}),it.on("register_status",Re=>{const yt=typeof Re=="string"?Re:(Re==null?void 0:Re.status)??"FAILED",dr=typeof Re=="object"?Re==null?void 0:Re.reason:"";ee(yt),Ee(yt==="FAILED"?dr||"Failed to connect to Voice Platform":""),yt!=="REGISTERED"&&F("NOT_READY")}),it.on("agent_status",Re=>{F(Re),Re!=="AUX"&&be(null)}),it.on("call_failed",Re=>$e(Re||"Call Failed"))];return()=>Se.forEach(Re=>Re())},[$e]),zt.useEffect(()=>{v==="Idle"&&K(ea.getContactName(f)||"")},[f,v]),zt.useEffect(()=>{const Se=Re=>{Re.metaKey||Re.ctrlKey||Re.altKey||(v==="InCall"&&/^[0-9*#]$/.test(Re.key)?G(Re.key):v==="Idle"&&X==="REGISTERED"&&/^[0-9+*#]$/.test(Re.key)?p(yt=>yt+Re.key):v==="Idle"&&Re.key==="Backspace"?p(yt=>yt.slice(0,-1)):v==="Idle"&&Re.key==="Enter"&&$())};return window.addEventListener("keydown",Se),()=>window.removeEventListener("keydown",Se)},[v,X,f]);const ge=async(Se,Re)=>{const yt=ea.getExtensionUsername();if(!yt)return!1;N(!0);const dr=await ea.updateExtensionStatus(yt,Se,Re);return N(!1),dr},Ce=async()=>{await ge("Ready","ready")&&(F("READY"),be(null),it.emitLocal("agent_status","READY"))},He=async()=>{await ge("Logout","not_ready")&&(F("NOT_READY"),be(null),it.emitLocal("agent_status","NOT_READY"))},_e=async(Se=null)=>{const Re=(Se==null?void 0:Se.code)||"AUX",yt=(Se==null?void 0:Se.label)||"AUX";await ge("AUX",Re)&&(F("AUX"),be({code:Re,label:yt}),it.emitLocal("agent_status","AUX")),setShowAuxMenu(!1)},$=()=>{const Se=f.trim();Se&&it.emitLocal("local_dial",{number:Se})},G=Se=>{B(Re=>Re+Se),it.emitLocal("local_dtmf",{key:Se})},de=()=>it.emitLocal("local_hangup"),oe=()=>it.emitLocal("local_answer"),Je=()=>it.emitLocal("local_reject"),Ge=()=>{const Se=!b;R(Se),it.emitLocal("local_toggle_mute",{muted:Se})},ut=()=>{it.emitLocal("local_toggle_hold",{isOnHold:T,setIsOnHold:H})};return v==="Ringing"?he.jsxs(Qh,{error:M,children:[he.jsxs("div",{className:"flex flex-col items-center justify-center px-6 py-10 gap-7 min-h-[300px] animate-fadeIn",children:[he.jsx(Ox,{color:"green",pulse:!0,children:he.jsx(Z2,{className:"w-9 h-9 text-green-600"})}),he.jsxs("div",{className:"text-center space-y-1",children:[he.jsx("p",{className:"text-lg font-bold text-gray-800 leading-tight",children:q||f||"Unknown"}),q&&he.jsx("p",{className:"text-sm font-mono text-gray-400 tracking-wider",children:f}),he.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-green-50 border border-green-100 mt-1",children:[he.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse"}),he.jsx("span",{className:"text-[11px] font-semibold text-green-600 uppercase tracking-widest",children:"Incoming Call"})]})]})]}),he.jsxs(IS,{children:[he.jsx(Bx,{color:"red",size:"lg",onClick:Je,title:"Reject",children:he.jsx(xv,{className:"w-6 h-6"})}),he.jsx(Bx,{color:"green",size:"lg",onClick:oe,title:"Answer",pulse:!0,children:he.jsx(Ev,{className:"w-6 h-6 fill-white"})})]})]}):v==="Calling..."?he.jsxs(Qh,{error:M,children:[he.jsxs("div",{className:"flex flex-col items-center justify-center px-6 py-10 gap-7 min-h-[300px] animate-fadeIn",children:[he.jsx(Ox,{color:"primary",pulse:!0,children:he.jsx(nR,{className:"w-9 h-9 text-primary"})}),he.jsxs("div",{className:"text-center space-y-1",children:[he.jsx("p",{className:"text-lg font-bold text-gray-800 leading-tight",children:q||f}),q&&he.jsx("p",{className:"text-xs font-mono text-gray-400 tracking-wider",children:f}),he.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-primary/8 border border-primary/15 mt-1",children:[he.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary animate-pulse"}),he.jsx("span",{className:"text-[11px] font-semibold text-primary uppercase tracking-widest",children:"Dialing..."})]})]})]}),he.jsx(IS,{children:he.jsx(Bx,{color:"red",size:"lg",onClick:de,title:"Cancel",children:he.jsx(xv,{className:"w-6 h-6"})})})]}):v==="InCall"?he.jsxs(Qh,{error:M,children:[P?he.jsxs("div",{className:"animate-fadeIn",children:[he.jsxs("div",{className:"px-6 pt-5 pb-2 text-center",children:[he.jsx("p",{className:"text-[10px] font-bold text-gray-400 uppercase tracking-[0.2em] mb-2",children:"DTMF"}),he.jsx("div",{className:"min-h-[44px] flex items-center justify-center",children:he.jsx("span",{className:"text-3xl font-light text-gray-700 tracking-[0.25em] font-mono",children:z||he.jsx("span",{className:"text-gray-200",children:"—"})})})]}),he.jsx(X2,{onKeyPress:G})]}):he.jsxs("div",{className:"flex flex-col items-center justify-center px-6 py-10 gap-7 min-h-[300px] animate-fadeIn",children:[he.jsx(Ox,{color:T?"primary":"green",pulse:!T,children:T?he.jsx(Q2,{className:"w-9 h-9 text-primary"}):he.jsx(Z2,{className:"w-9 h-9 text-green-600"})}),he.jsxs("div",{className:"text-center space-y-1",children:[he.jsx("p",{className:"text-base font-bold text-gray-800 leading-tight",children:q||f||"Connected"}),q&&he.jsx("p",{className:"text-xs font-mono text-gray-400 tracking-wider",children:f}),he.jsxs("div",{className:"flex items-center justify-center gap-2 mt-1",children:[!T&&he.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse"}),he.jsx("span",{className:`text-sm font-mono font-semibold ${T?"text-primary":"text-green-600"}`,children:T?"On Hold":w})]})]})]}),he.jsx("div",{className:"border-t border-gray-100 bg-gray-50/60 px-6 py-4",children:he.jsxs("div",{className:"flex items-center justify-between gap-2 max-w-[260px] mx-auto",children:[he.jsx(Mx,{onClick:Ge,active:b,activeColor:"red",title:b?"Unmute":"Mute",children:b?he.jsx(tR,{className:"w-[18px] h-[18px]"}):he.jsx(rR,{className:"w-[18px] h-[18px]"})}),he.jsx(Mx,{onClick:ut,active:T,activeColor:"primary",title:T?"Resume":"Hold",children:T?he.jsx(iR,{className:"w-[18px] h-[18px]"}):he.jsx(Q2,{className:"w-[18px] h-[18px]"})}),he.jsx(Mx,{onClick:()=>j(Se=>!Se),active:P,activeColor:"primary",title:"Keypad",children:he.jsx(eR,{className:"w-[18px] h-[18px]"})}),he.jsx("button",{onClick:de,title:"End Call",className:"w-12 h-12 rounded-full bg-red-500 hover:bg-red-600 text-white flex items-center justify-center shadow-[0_4px_14px_rgba(239,68,68,0.4)] hover:shadow-[0_6px_18px_rgba(239,68,68,0.5)] transition-all active:scale-95",children:he.jsx(xv,{className:"w-5 h-5"})})]})})]}):X==="REGISTERED"?he.jsxs(Qh,{error:M,children:[he.jsxs("div",{className:"px-5 pt-5 pb-1",children:[he.jsxs("div",{className:"relative flex items-center justify-center min-h-[56px] bg-gray-50 rounded-2xl border border-gray-100 px-10",children:[he.jsx("input",{type:"text",value:f,onChange:Se=>p(Se.target.value.replace(/[^0-9+*#]/g,"")),onKeyDown:Se=>Se.key==="Enter"&&$(),className:"w-full text-center text-[28px] font-light text-gray-800 tracking-[0.12em] bg-transparent outline-none placeholder:text-gray-300 placeholder:text-2xl placeholder:font-normal",placeholder:"Enter number"}),f&&he.jsx("button",{onClick:()=>p(Se=>Se.slice(0,-1)),onMouseDown:Se=>Se.preventDefault(),className:"absolute right-3 p-1.5 rounded-full text-gray-300 hover:text-gray-500 hover:bg-gray-200 transition-all",children:he.jsx(JT,{className:"w-4 h-4"})})]}),q&&he.jsx("p",{className:"text-center text-xs text-primary/70 font-medium mt-1.5 tracking-wide",children:q})]}),he.jsx(X2,{onKeyPress:Se=>p(Re=>Re+Se)}),he.jsx("div",{className:"px-5 pb-4 pt-1 flex justify-center",children:he.jsxs("button",{onClick:$,disabled:!f.trim(),className:`
|
|
354
|
+
*/return i.mode.CTRGladman=function(){var l=i.lib.BlockCipherMode.extend();function f(S){if((S>>24&255)===255){var b=S>>16&255,C=S>>8&255,w=S&255;b===255?(b=0,C===255?(C=0,w===255?w=0:++w):++C):++b,S=0,S+=b<<16,S+=C<<8,S+=w}else S+=16777216;return S}function p(S){return(S[0]=f(S[0]))===0&&(S[1]=f(S[1])),S}var v=l.Encryptor=l.extend({processBlock:function(S,b){var C=this._cipher,w=C.blockSize,T=this._iv,A=this._counter;T&&(A=this._counter=T.slice(0),this._iv=void 0),p(A);var H=A.slice(0);C.encryptBlock(H,0);for(var P=0;P<w;P++)S[b+P]^=H[P]}});return l.Decryptor=v,l}(),i.mode.CTRGladman})}(mx)),mx.exports}var yx={exports:{}},wS;function CR(){return wS||(wS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.mode.OFB=function(){var l=i.lib.BlockCipherMode.extend(),f=l.Encryptor=l.extend({processBlock:function(p,v){var S=this._cipher,b=S.blockSize,C=this._iv,w=this._keystream;C&&(w=this._keystream=C.slice(0),this._iv=void 0),S.encryptBlock(w,0);for(var T=0;T<b;T++)p[v+T]^=w[T]}});return l.Decryptor=f,l}(),i.mode.OFB})}(yx)),yx.exports}var xx={exports:{}},bS;function SR(){return bS||(bS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.mode.ECB=function(){var l=i.lib.BlockCipherMode.extend();return l.Encryptor=l.extend({processBlock:function(f,p){this._cipher.encryptBlock(f,p)}}),l.Decryptor=l.extend({processBlock:function(f,p){this._cipher.decryptBlock(f,p)}}),l}(),i.mode.ECB})}(xx)),xx.exports}var Ex={exports:{}},_S;function wR(){return _S||(_S=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.pad.AnsiX923={pad:function(l,f){var p=l.sigBytes,v=f*4,S=v-p%v,b=p+S-1;l.clamp(),l.words[b>>>2]|=S<<24-b%4*8,l.sigBytes+=S},unpad:function(l){var f=l.words[l.sigBytes-1>>>2]&255;l.sigBytes-=f}},i.pad.Ansix923})}(Ex)),Ex.exports}var Cx={exports:{}},DS;function bR(){return DS||(DS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.pad.Iso10126={pad:function(l,f){var p=f*4,v=p-l.sigBytes%p;l.concat(i.lib.WordArray.random(v-1)).concat(i.lib.WordArray.create([v<<24],1))},unpad:function(l){var f=l.words[l.sigBytes-1>>>2]&255;l.sigBytes-=f}},i.pad.Iso10126})}(Cx)),Cx.exports}var Sx={exports:{}},TS;function _R(){return TS||(TS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.pad.Iso97971={pad:function(l,f){l.concat(i.lib.WordArray.create([2147483648],1)),i.pad.ZeroPadding.pad(l,f)},unpad:function(l){i.pad.ZeroPadding.unpad(l),l.sigBytes--}},i.pad.Iso97971})}(Sx)),Sx.exports}var wx={exports:{}},RS;function DR(){return RS||(RS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.pad.ZeroPadding={pad:function(l,f){var p=f*4;l.clamp(),l.sigBytes+=p-(l.sigBytes%p||p)},unpad:function(l){for(var f=l.words,p=l.sigBytes-1,p=l.sigBytes-1;p>=0;p--)if(f[p>>>2]>>>24-p%4*8&255){l.sigBytes=p+1;break}}},i.pad.ZeroPadding})}(wx)),wx.exports}var bx={exports:{}},AS;function TR(){return AS||(AS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return i.pad.NoPadding={pad:function(){},unpad:function(){}},i.pad.NoPadding})}(bx)),bx.exports}var _x={exports:{}},kS;function RR(){return kS||(kS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),si())})(Lt,function(i){return function(l){var f=i,p=f.lib,v=p.CipherParams,S=f.enc,b=S.Hex,C=f.format;C.Hex={stringify:function(w){return w.ciphertext.toString(b)},parse:function(w){var T=b.parse(w);return v.create({ciphertext:T})}}}(),i.format.Hex})}(_x)),_x.exports}var Dx={exports:{}},FS;function AR(){return FS||(FS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cc(),Sc(),pu(),si())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.BlockCipher,v=l.algo,S=[],b=[],C=[],w=[],T=[],A=[],H=[],P=[],j=[],z=[];(function(){for(var U=[],q=0;q<256;q++)q<128?U[q]=q<<1:U[q]=q<<1^283;for(var K=0,X=0,q=0;q<256;q++){var ee=X^X<<1^X<<2^X<<3^X<<4;ee=ee>>>8^ee&255^99,S[K]=ee,b[ee]=K;var R=U[K],Ee=U[R],Z=U[Ee],F=U[ee]*257^ee*16843008;C[K]=F<<24|F>>>8,w[K]=F<<16|F>>>16,T[K]=F<<8|F>>>24,A[K]=F;var F=Z*16843009^Ee*65537^R*257^K*16843008;H[ee]=F<<24|F>>>8,P[ee]=F<<16|F>>>16,j[ee]=F<<8|F>>>24,z[ee]=F,K?(K=R^U[U[U[Z^R]]],X^=U[U[X]]):K=X=1}})();var B=[0,1,2,4,8,16,32,64,128,27,54],M=v.AES=p.extend({_doReset:function(){var U;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var q=this._keyPriorReset=this._key,K=q.words,X=q.sigBytes/4,ee=this._nRounds=X+6,R=(ee+1)*4,Ee=this._keySchedule=[],Z=0;Z<R;Z++)Z<X?Ee[Z]=K[Z]:(U=Ee[Z-1],Z%X?X>6&&Z%X==4&&(U=S[U>>>24]<<24|S[U>>>16&255]<<16|S[U>>>8&255]<<8|S[U&255]):(U=U<<8|U>>>24,U=S[U>>>24]<<24|S[U>>>16&255]<<16|S[U>>>8&255]<<8|S[U&255],U^=B[Z/X|0]<<24),Ee[Z]=Ee[Z-X]^U);for(var F=this._invKeySchedule=[],L=0;L<R;L++){var Z=R-L;if(L%4)var U=Ee[Z];else var U=Ee[Z-4];L<4||Z<=4?F[L]=U:F[L]=H[S[U>>>24]]^P[S[U>>>16&255]]^j[S[U>>>8&255]]^z[S[U&255]]}}},encryptBlock:function(U,q){this._doCryptBlock(U,q,this._keySchedule,C,w,T,A,S)},decryptBlock:function(U,q){var K=U[q+1];U[q+1]=U[q+3],U[q+3]=K,this._doCryptBlock(U,q,this._invKeySchedule,H,P,j,z,b);var K=U[q+1];U[q+1]=U[q+3],U[q+3]=K},_doCryptBlock:function(U,q,K,X,ee,R,Ee,Z){for(var F=this._nRounds,L=U[q]^K[0],N=U[q+1]^K[1],De=U[q+2]^K[2],be=U[q+3]^K[3],$e=4,ge=1;ge<F;ge++){var Ce=X[L>>>24]^ee[N>>>16&255]^R[De>>>8&255]^Ee[be&255]^K[$e++],He=X[N>>>24]^ee[De>>>16&255]^R[be>>>8&255]^Ee[L&255]^K[$e++],_e=X[De>>>24]^ee[be>>>16&255]^R[L>>>8&255]^Ee[N&255]^K[$e++],$=X[be>>>24]^ee[L>>>16&255]^R[N>>>8&255]^Ee[De&255]^K[$e++];L=Ce,N=He,De=_e,be=$}var Ce=(Z[L>>>24]<<24|Z[N>>>16&255]<<16|Z[De>>>8&255]<<8|Z[be&255])^K[$e++],He=(Z[N>>>24]<<24|Z[De>>>16&255]<<16|Z[be>>>8&255]<<8|Z[L&255])^K[$e++],_e=(Z[De>>>24]<<24|Z[be>>>16&255]<<16|Z[L>>>8&255]<<8|Z[N&255])^K[$e++],$=(Z[be>>>24]<<24|Z[L>>>16&255]<<16|Z[N>>>8&255]<<8|Z[De&255])^K[$e++];U[q]=Ce,U[q+1]=He,U[q+2]=_e,U[q+3]=$},keySize:256/32});l.AES=p._createHelper(M)}(),i.AES})}(Dx)),Dx.exports}var Tx={exports:{}},OS;function kR(){return OS||(OS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cc(),Sc(),pu(),si())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.WordArray,v=f.BlockCipher,S=l.algo,b=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],C=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],w=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],T=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],A=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],H=S.DES=v.extend({_doReset:function(){for(var B=this._key,M=B.words,U=[],q=0;q<56;q++){var K=b[q]-1;U[q]=M[K>>>5]>>>31-K%32&1}for(var X=this._subKeys=[],ee=0;ee<16;ee++){for(var R=X[ee]=[],Ee=w[ee],q=0;q<24;q++)R[q/6|0]|=U[(C[q]-1+Ee)%28]<<31-q%6,R[4+(q/6|0)]|=U[28+(C[q+24]-1+Ee)%28]<<31-q%6;R[0]=R[0]<<1|R[0]>>>31;for(var q=1;q<7;q++)R[q]=R[q]>>>(q-1)*4+3;R[7]=R[7]<<5|R[7]>>>27}for(var Z=this._invSubKeys=[],q=0;q<16;q++)Z[q]=X[15-q]},encryptBlock:function(B,M){this._doCryptBlock(B,M,this._subKeys)},decryptBlock:function(B,M){this._doCryptBlock(B,M,this._invSubKeys)},_doCryptBlock:function(B,M,U){this._lBlock=B[M],this._rBlock=B[M+1],P.call(this,4,252645135),P.call(this,16,65535),j.call(this,2,858993459),j.call(this,8,16711935),P.call(this,1,1431655765);for(var q=0;q<16;q++){for(var K=U[q],X=this._lBlock,ee=this._rBlock,R=0,Ee=0;Ee<8;Ee++)R|=T[Ee][((ee^K[Ee])&A[Ee])>>>0];this._lBlock=ee,this._rBlock=X^R}var Z=this._lBlock;this._lBlock=this._rBlock,this._rBlock=Z,P.call(this,1,1431655765),j.call(this,8,16711935),j.call(this,2,858993459),P.call(this,16,65535),P.call(this,4,252645135),B[M]=this._lBlock,B[M+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function P(B,M){var U=(this._lBlock>>>B^this._rBlock)&M;this._rBlock^=U,this._lBlock^=U<<B}function j(B,M){var U=(this._rBlock>>>B^this._lBlock)&M;this._lBlock^=U,this._rBlock^=U<<B}l.DES=v._createHelper(H);var z=S.TripleDES=v.extend({_doReset:function(){var B=this._key,M=B.words;if(M.length!==2&&M.length!==4&&M.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var U=M.slice(0,2),q=M.length<4?M.slice(0,2):M.slice(2,4),K=M.length<6?M.slice(0,2):M.slice(4,6);this._des1=H.createEncryptor(p.create(U)),this._des2=H.createEncryptor(p.create(q)),this._des3=H.createEncryptor(p.create(K))},encryptBlock:function(B,M){this._des1.encryptBlock(B,M),this._des2.decryptBlock(B,M),this._des3.encryptBlock(B,M)},decryptBlock:function(B,M){this._des3.decryptBlock(B,M),this._des2.encryptBlock(B,M),this._des1.decryptBlock(B,M)},keySize:192/32,ivSize:64/32,blockSize:64/32});l.TripleDES=v._createHelper(z)}(),i.TripleDES})}(Tx)),Tx.exports}var Rx={exports:{}},BS;function FR(){return BS||(BS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cc(),Sc(),pu(),si())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.StreamCipher,v=l.algo,S=v.RC4=p.extend({_doReset:function(){for(var w=this._key,T=w.words,A=w.sigBytes,H=this._S=[],P=0;P<256;P++)H[P]=P;for(var P=0,j=0;P<256;P++){var z=P%A,B=T[z>>>2]>>>24-z%4*8&255;j=(j+H[P]+B)%256;var M=H[P];H[P]=H[j],H[j]=M}this._i=this._j=0},_doProcessBlock:function(w,T){w[T]^=b.call(this)},keySize:256/32,ivSize:0});function b(){for(var w=this._S,T=this._i,A=this._j,H=0,P=0;P<4;P++){T=(T+1)%256,A=(A+w[T])%256;var j=w[T];w[T]=w[A],w[A]=j,H|=w[(w[T]+w[A])%256]<<24-P*8}return this._i=T,this._j=A,H}l.RC4=p._createHelper(S);var C=v.RC4Drop=S.extend({cfg:S.cfg.extend({drop:192}),_doReset:function(){S._doReset.call(this);for(var w=this.cfg.drop;w>0;w--)b.call(this)}});l.RC4Drop=p._createHelper(C)}(),i.RC4})}(Rx)),Rx.exports}var Ax={exports:{}},MS;function OR(){return MS||(MS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cc(),Sc(),pu(),si())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.StreamCipher,v=l.algo,S=[],b=[],C=[],w=v.Rabbit=p.extend({_doReset:function(){for(var A=this._key.words,H=this.cfg.iv,P=0;P<4;P++)A[P]=(A[P]<<8|A[P]>>>24)&16711935|(A[P]<<24|A[P]>>>8)&4278255360;var j=this._X=[A[0],A[3]<<16|A[2]>>>16,A[1],A[0]<<16|A[3]>>>16,A[2],A[1]<<16|A[0]>>>16,A[3],A[2]<<16|A[1]>>>16],z=this._C=[A[2]<<16|A[2]>>>16,A[0]&4294901760|A[1]&65535,A[3]<<16|A[3]>>>16,A[1]&4294901760|A[2]&65535,A[0]<<16|A[0]>>>16,A[2]&4294901760|A[3]&65535,A[1]<<16|A[1]>>>16,A[3]&4294901760|A[0]&65535];this._b=0;for(var P=0;P<4;P++)T.call(this);for(var P=0;P<8;P++)z[P]^=j[P+4&7];if(H){var B=H.words,M=B[0],U=B[1],q=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,K=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360,X=q>>>16|K&4294901760,ee=K<<16|q&65535;z[0]^=q,z[1]^=X,z[2]^=K,z[3]^=ee,z[4]^=q,z[5]^=X,z[6]^=K,z[7]^=ee;for(var P=0;P<4;P++)T.call(this)}},_doProcessBlock:function(A,H){var P=this._X;T.call(this),S[0]=P[0]^P[5]>>>16^P[3]<<16,S[1]=P[2]^P[7]>>>16^P[5]<<16,S[2]=P[4]^P[1]>>>16^P[7]<<16,S[3]=P[6]^P[3]>>>16^P[1]<<16;for(var j=0;j<4;j++)S[j]=(S[j]<<8|S[j]>>>24)&16711935|(S[j]<<24|S[j]>>>8)&4278255360,A[H+j]^=S[j]},blockSize:128/32,ivSize:64/32});function T(){for(var A=this._X,H=this._C,P=0;P<8;P++)b[P]=H[P];H[0]=H[0]+1295307597+this._b|0,H[1]=H[1]+3545052371+(H[0]>>>0<b[0]>>>0?1:0)|0,H[2]=H[2]+886263092+(H[1]>>>0<b[1]>>>0?1:0)|0,H[3]=H[3]+1295307597+(H[2]>>>0<b[2]>>>0?1:0)|0,H[4]=H[4]+3545052371+(H[3]>>>0<b[3]>>>0?1:0)|0,H[5]=H[5]+886263092+(H[4]>>>0<b[4]>>>0?1:0)|0,H[6]=H[6]+1295307597+(H[5]>>>0<b[5]>>>0?1:0)|0,H[7]=H[7]+3545052371+(H[6]>>>0<b[6]>>>0?1:0)|0,this._b=H[7]>>>0<b[7]>>>0?1:0;for(var P=0;P<8;P++){var j=A[P]+H[P],z=j&65535,B=j>>>16,M=((z*z>>>17)+z*B>>>15)+B*B,U=((j&4294901760)*j|0)+((j&65535)*j|0);C[P]=M^U}A[0]=C[0]+(C[7]<<16|C[7]>>>16)+(C[6]<<16|C[6]>>>16)|0,A[1]=C[1]+(C[0]<<8|C[0]>>>24)+C[7]|0,A[2]=C[2]+(C[1]<<16|C[1]>>>16)+(C[0]<<16|C[0]>>>16)|0,A[3]=C[3]+(C[2]<<8|C[2]>>>24)+C[1]|0,A[4]=C[4]+(C[3]<<16|C[3]>>>16)+(C[2]<<16|C[2]>>>16)|0,A[5]=C[5]+(C[4]<<8|C[4]>>>24)+C[3]|0,A[6]=C[6]+(C[5]<<16|C[5]>>>16)+(C[4]<<16|C[4]>>>16)|0,A[7]=C[7]+(C[6]<<8|C[6]>>>24)+C[5]|0}l.Rabbit=p._createHelper(w)}(),i.Rabbit})}(Ax)),Ax.exports}var kx={exports:{}},NS;function BR(){return NS||(NS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cc(),Sc(),pu(),si())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.StreamCipher,v=l.algo,S=[],b=[],C=[],w=v.RabbitLegacy=p.extend({_doReset:function(){var A=this._key.words,H=this.cfg.iv,P=this._X=[A[0],A[3]<<16|A[2]>>>16,A[1],A[0]<<16|A[3]>>>16,A[2],A[1]<<16|A[0]>>>16,A[3],A[2]<<16|A[1]>>>16],j=this._C=[A[2]<<16|A[2]>>>16,A[0]&4294901760|A[1]&65535,A[3]<<16|A[3]>>>16,A[1]&4294901760|A[2]&65535,A[0]<<16|A[0]>>>16,A[2]&4294901760|A[3]&65535,A[1]<<16|A[1]>>>16,A[3]&4294901760|A[0]&65535];this._b=0;for(var z=0;z<4;z++)T.call(this);for(var z=0;z<8;z++)j[z]^=P[z+4&7];if(H){var B=H.words,M=B[0],U=B[1],q=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,K=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360,X=q>>>16|K&4294901760,ee=K<<16|q&65535;j[0]^=q,j[1]^=X,j[2]^=K,j[3]^=ee,j[4]^=q,j[5]^=X,j[6]^=K,j[7]^=ee;for(var z=0;z<4;z++)T.call(this)}},_doProcessBlock:function(A,H){var P=this._X;T.call(this),S[0]=P[0]^P[5]>>>16^P[3]<<16,S[1]=P[2]^P[7]>>>16^P[5]<<16,S[2]=P[4]^P[1]>>>16^P[7]<<16,S[3]=P[6]^P[3]>>>16^P[1]<<16;for(var j=0;j<4;j++)S[j]=(S[j]<<8|S[j]>>>24)&16711935|(S[j]<<24|S[j]>>>8)&4278255360,A[H+j]^=S[j]},blockSize:128/32,ivSize:64/32});function T(){for(var A=this._X,H=this._C,P=0;P<8;P++)b[P]=H[P];H[0]=H[0]+1295307597+this._b|0,H[1]=H[1]+3545052371+(H[0]>>>0<b[0]>>>0?1:0)|0,H[2]=H[2]+886263092+(H[1]>>>0<b[1]>>>0?1:0)|0,H[3]=H[3]+1295307597+(H[2]>>>0<b[2]>>>0?1:0)|0,H[4]=H[4]+3545052371+(H[3]>>>0<b[3]>>>0?1:0)|0,H[5]=H[5]+886263092+(H[4]>>>0<b[4]>>>0?1:0)|0,H[6]=H[6]+1295307597+(H[5]>>>0<b[5]>>>0?1:0)|0,H[7]=H[7]+3545052371+(H[6]>>>0<b[6]>>>0?1:0)|0,this._b=H[7]>>>0<b[7]>>>0?1:0;for(var P=0;P<8;P++){var j=A[P]+H[P],z=j&65535,B=j>>>16,M=((z*z>>>17)+z*B>>>15)+B*B,U=((j&4294901760)*j|0)+((j&65535)*j|0);C[P]=M^U}A[0]=C[0]+(C[7]<<16|C[7]>>>16)+(C[6]<<16|C[6]>>>16)|0,A[1]=C[1]+(C[0]<<8|C[0]>>>24)+C[7]|0,A[2]=C[2]+(C[1]<<16|C[1]>>>16)+(C[0]<<16|C[0]>>>16)|0,A[3]=C[3]+(C[2]<<8|C[2]>>>24)+C[1]|0,A[4]=C[4]+(C[3]<<16|C[3]>>>16)+(C[2]<<16|C[2]>>>16)|0,A[5]=C[5]+(C[4]<<8|C[4]>>>24)+C[3]|0,A[6]=C[6]+(C[5]<<16|C[5]>>>16)+(C[4]<<16|C[4]>>>16)|0,A[7]=C[7]+(C[6]<<8|C[6]>>>24)+C[5]|0}l.RabbitLegacy=p._createHelper(w)}(),i.RabbitLegacy})}(kx)),kx.exports}var Fx={exports:{}},HS;function MR(){return HS||(HS=1,function(o,r){(function(i,l,f){o.exports=l(Jt(),Cc(),Sc(),pu(),si())})(Lt,function(i){return function(){var l=i,f=l.lib,p=f.BlockCipher,v=l.algo;const S=16,b=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],C=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var w={pbox:[],sbox:[]};function T(z,B){let M=B>>24&255,U=B>>16&255,q=B>>8&255,K=B&255,X=z.sbox[0][M]+z.sbox[1][U];return X=X^z.sbox[2][q],X=X+z.sbox[3][K],X}function A(z,B,M){let U=B,q=M,K;for(let X=0;X<S;++X)U=U^z.pbox[X],q=T(z,U)^q,K=U,U=q,q=K;return K=U,U=q,q=K,q=q^z.pbox[S],U=U^z.pbox[S+1],{left:U,right:q}}function H(z,B,M){let U=B,q=M,K;for(let X=S+1;X>1;--X)U=U^z.pbox[X],q=T(z,U)^q,K=U,U=q,q=K;return K=U,U=q,q=K,q=q^z.pbox[1],U=U^z.pbox[0],{left:U,right:q}}function P(z,B,M){for(let ee=0;ee<4;ee++){z.sbox[ee]=[];for(let R=0;R<256;R++)z.sbox[ee][R]=C[ee][R]}let U=0;for(let ee=0;ee<S+2;ee++)z.pbox[ee]=b[ee]^B[U],U++,U>=M&&(U=0);let q=0,K=0,X=0;for(let ee=0;ee<S+2;ee+=2)X=A(z,q,K),q=X.left,K=X.right,z.pbox[ee]=q,z.pbox[ee+1]=K;for(let ee=0;ee<4;ee++)for(let R=0;R<256;R+=2)X=A(z,q,K),q=X.left,K=X.right,z.sbox[ee][R]=q,z.sbox[ee][R+1]=K;return!0}var j=v.Blowfish=p.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var z=this._keyPriorReset=this._key,B=z.words,M=z.sigBytes/4;P(w,B,M)}},encryptBlock:function(z,B){var M=A(w,z[B],z[B+1]);z[B]=M.left,z[B+1]=M.right},decryptBlock:function(z,B){var M=H(w,z[B],z[B+1]);z[B]=M.left,z[B+1]=M.right},blockSize:64/32,keySize:128/32,ivSize:64/32});l.Blowfish=p._createHelper(j)}(),i.Blowfish})}(Fx)),Fx.exports}(function(o,r){(function(i,l,f){o.exports=l(Jt(),Cv(),cR(),fR(),Cc(),dR(),Sc(),lS(),ix(),hR(),dS(),pR(),vR(),gR(),fx(),mR(),pu(),si(),yR(),xR(),ER(),CR(),SR(),wR(),bR(),_R(),DR(),TR(),RR(),AR(),kR(),FR(),OR(),BR(),MR())})(Lt,function(i){return i})})(J2);var NR=J2.exports;const wc=I2(NR);let er=null,sn=null,Gf=null;const ea={setConfig(o){er=o},getConfig(){return er},decrypt(o,r=null,i=null){var l,f;try{const p=r||((l=er==null?void 0:er.env)==null?void 0:l.DECODE_IV)||"default_iv_1234",v=i||((f=er==null?void 0:er.env)==null?void 0:f.DECODE_KEY)||"default_key_1234",S=wc.enc.Base64.parse(o),b=wc.enc.Utf8.parse(v),C=wc.enc.Utf8.parse(p);return wc.AES.decrypt({ciphertext:S},b,{iv:C,mode:wc.mode.CTR,padding:wc.pad.NoPadding}).toString(wc.enc.Utf8)}catch(p){return console.log("ERROR ===> failed decrypt:",p),!1}},pushSound(){try{Gf&&clearInterval(Gf);const o=()=>{try{(!sn||sn.state==="closed")&&(sn=new(window.AudioContext||window.webkitAudioContext)),sn.state==="suspended"&&sn.resume();const r=sn.createOscillator(),i=sn.createOscillator(),l=sn.createGain();r.type="sine",i.type="sine",r.frequency.setValueAtTime(400,sn.currentTime),i.frequency.setValueAtTime(450,sn.currentTime);const f=sn.createOscillator(),p=sn.createGain();f.frequency.value=25,p.gain.value=15,f.connect(p),p.connect(r.frequency),p.connect(i.frequency),r.connect(l),i.connect(l),l.connect(sn.destination),l.gain.setValueAtTime(0,sn.currentTime),l.gain.linearRampToValueAtTime(.08,sn.currentTime+.05),l.gain.setValueAtTime(.08,sn.currentTime+1.2),l.gain.linearRampToValueAtTime(0,sn.currentTime+1.3),f.start(),r.start(),i.start(),f.stop(sn.currentTime+1.4),r.stop(sn.currentTime+1.4),i.stop(sn.currentTime+1.4)}catch(r){console.warn("Failed to play synthesized tone:",r)}};o(),Gf=setInterval(o,3e3)}catch(o){console.warn("AudioContext initialization failed:",o)}},stopSound(){Gf&&(clearInterval(Gf),Gf=null),sn&&(sn.close().catch(()=>{}),sn=null)},pushNotification(o){it.emitToParent("show_notification",{message:o})},toHHMMSS(o){const r=parseInt(o,10),i=Math.floor(r/3600),l=Math.floor(r/60)%60,f=r%60;return[i,l,f].map(p=>p<10?"0"+p:p).filter((p,v)=>p!=="00"||v>0).join(":")},mute(o,r,i,l){o?r?o.unmute():o.mute():l&&(r?l.unmuteAudio():l.muteAudio()),i(!r)},hold(o,r,i,l){o?r?o.unhold():o.hold():l&&(r?l.unhold():l.hold()),i(!r)},async hangup(o,r,i,l,f,p,v,S){l&&await l(!1),f&&f(!1),p&&p(0),o&&o.current&&clearInterval(o.current),r?(await(r==null?void 0:r.terminate("hangup")),v&&v(!1),it.emitLocal("yeastarSession",!1)):i&&(await(i==null?void 0:i.hangup()),S&&S(!1),it.emitLocal("flashphonerCall",!1))},attachRemoteAudio(o){if(!o)return;let r=document.getElementById("ys-remote-audio");r||(r=document.createElement("audio"),r.id="ys-remote-audio",r.autoplay=!0,r.playsInline=!0,r.hidden=!0,document.body.appendChild(r)),r.srcObject=o,r.play().catch(()=>{console.warn("User gesture needed to play audio"),it.emitLocal("needUserGestureToPlay",!0)})},getContactName(o){return o&&((er==null?void 0:er.contacts)||{1001:"John Doe",1002:"Jane Smith","08123456789":"Alice Johnson",123:"Customer Support"})[o]||null},async updateExtensionStatus(o,r="Ready",i="ready"){var l,f,p;try{const v=(er==null?void 0:er["X-CPAAS-Key-Fingerprint"])||(er==null?void 0:er.fingerprint)||(er==null?void 0:er.cpaasKeyFingerprint)||((l=er==null?void 0:er.env)==null?void 0:l.fingerprint)||((f=er==null?void 0:er.env)==null?void 0:f.X_CPAAS_Key_Fingerprint)||((p=er==null?void 0:er.pabxConfig)==null?void 0:p["X-CPAAS-Key-Fingerprint"]);if(!v)return console.warn("X-CPAAS-Key-Fingerprint not found. Cannot update extension status."),!1;const S=await fetch("https://cpaas-api-dev.omni-x.dev/voice/extensions/status",{method:"POST",headers:{"X-CPAAS-Key-Fingerprint":v,"Content-Type":"application/json"},body:JSON.stringify({extension:o,status:r,reason:i})}),b=await S.json();return console.log(`[ExtStatus] ${r}/${i}:`,b),S.ok}catch(v){return console.error("Failed to update extension status:",v),!1}},getExtensionUsername(){var o,r;return((o=er==null?void 0:er.auth)==null?void 0:o.user_pbx)||((r=er==null?void 0:er.auth)==null?void 0:r.username)||null}};function HR({initialRegisterStatus:o="CONNECTING",autoReady:r=!0,showAuxButton:i=!1,auxOptions:l=[]}){const[f,p]=zt.useState(""),[v,S]=zt.useState("Idle"),[b,C]=zt.useState("00:00"),[w,T]=zt.useState(!1),[A,H]=zt.useState(!1),[P,j]=zt.useState(!1),[z,B]=zt.useState(""),[M,U]=zt.useState(""),[q,K]=zt.useState(""),[X,ee]=zt.useState(o),[R,Ee]=zt.useState(""),[Z,F]=zt.useState(r&&o==="REGISTERED"?"READY":"NOT_READY"),[L,N]=zt.useState(!1),[De,be]=zt.useState(null),$e=zt.useCallback(Se=>{U(Se),setTimeout(()=>U(""),4e3)},[]);zt.useEffect(()=>{const Se=[it.on("call_status",Re=>{S(Re),Re!=="InCall"&&(j(!1),B(""),H(!1),T(!1))}),it.on("call_duration",C),it.on("incoming_call",Re=>{var zr,qt,Qt,Fr,br,nn,Tn,vn;const yt=((qt=(zr=Re==null?void 0:Re.remoteIdentity)==null?void 0:zr.uri)==null?void 0:qt.user)||(Re==null?void 0:Re.from_id)||"Unknown",dr=((Qt=Re==null?void 0:Re.remoteIdentity)==null?void 0:Qt.displayName)||((br=(Fr=Re==null?void 0:Re.request)==null?void 0:Fr.from)==null?void 0:br.displayName)||((vn=(Tn=(nn=Re==null?void 0:Re.incomingInviteRequest)==null?void 0:nn.message)==null?void 0:Tn.from)==null?void 0:vn.displayName)||(Re==null?void 0:Re.from_name)||ea.getContactName(yt)||"";p(yt),K(dr),S("Ringing")}),it.on("register_status",Re=>{const yt=typeof Re=="string"?Re:(Re==null?void 0:Re.status)??"FAILED",dr=typeof Re=="object"?Re==null?void 0:Re.reason:"";ee(yt),Ee(yt==="FAILED"?dr||"Failed to connect to Voice Platform":""),yt!=="REGISTERED"&&F("NOT_READY")}),it.on("agent_status",Re=>{F(Re),Re!=="AUX"&&be(null)}),it.on("call_failed",Re=>$e(Re||"Call Failed"))];return()=>Se.forEach(Re=>Re())},[$e]),zt.useEffect(()=>{v==="Idle"&&K(ea.getContactName(f)||"")},[f,v]),zt.useEffect(()=>{const Se=Re=>{Re.metaKey||Re.ctrlKey||Re.altKey||(v==="InCall"&&/^[0-9*#]$/.test(Re.key)?G(Re.key):v==="Idle"&&X==="REGISTERED"&&/^[0-9+*#]$/.test(Re.key)?p(yt=>yt+Re.key):v==="Idle"&&Re.key==="Backspace"?p(yt=>yt.slice(0,-1)):v==="Idle"&&Re.key==="Enter"&&$())};return window.addEventListener("keydown",Se),()=>window.removeEventListener("keydown",Se)},[v,X,f]);const ge=async(Se,Re)=>{const yt=ea.getExtensionUsername();if(!yt)return!1;N(!0);const dr=await ea.updateExtensionStatus(yt,Se,Re);return N(!1),dr},Ce=async()=>{await ge("Ready","ready")&&(F("READY"),be(null),it.emitLocal("agent_status","READY"))},He=async()=>{await ge("Logout","not_ready")&&(F("NOT_READY"),be(null),it.emitLocal("agent_status","NOT_READY"))},_e=async(Se=null)=>{const Re=(Se==null?void 0:Se.code)||"AUX",yt=(Se==null?void 0:Se.label)||"AUX";await ge("AUX",Re)&&(F("AUX"),be({code:Re,label:yt}),it.emitLocal("agent_status","AUX")),setShowAuxMenu(!1)},$=()=>{const Se=f.trim();Se&&it.emitLocal("local_dial",{number:Se})},G=Se=>{B(Re=>Re+Se),it.emitLocal("local_dtmf",{key:Se})},de=()=>it.emitLocal("local_hangup"),oe=()=>it.emitLocal("local_answer"),Je=()=>it.emitLocal("local_reject"),Ge=()=>{const Se=!w;T(Se),it.emitLocal("local_toggle_mute",{muted:Se})},ut=()=>{it.emitLocal("local_toggle_hold",{isOnHold:A,setIsOnHold:H})};return v==="Ringing"?he.jsxs(Qh,{error:M,children:[he.jsxs("div",{className:"flex flex-col items-center justify-center px-6 py-10 gap-7 min-h-[300px] animate-fadeIn",children:[he.jsx(Ox,{color:"green",pulse:!0,children:he.jsx(Z2,{className:"w-9 h-9 text-green-600"})}),he.jsxs("div",{className:"text-center space-y-1",children:[he.jsx("p",{className:"text-lg font-bold text-gray-800 leading-tight",children:q||f||"Unknown"}),q&&he.jsx("p",{className:"text-sm font-mono text-gray-400 tracking-wider",children:f}),he.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-green-50 border border-green-100 mt-1",children:[he.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse"}),he.jsx("span",{className:"text-[11px] font-semibold text-green-600 uppercase tracking-widest",children:"Incoming Call"})]})]})]}),he.jsxs(IS,{children:[he.jsx(Bx,{color:"red",size:"lg",onClick:Je,title:"Reject",children:he.jsx(xv,{className:"w-6 h-6"})}),he.jsx(Bx,{color:"green",size:"lg",onClick:oe,title:"Answer",pulse:!0,children:he.jsx(Ev,{className:"w-6 h-6 fill-white"})})]})]}):v==="Calling..."?he.jsxs(Qh,{error:M,children:[he.jsxs("div",{className:"flex flex-col items-center justify-center px-6 py-10 gap-7 min-h-[300px] animate-fadeIn",children:[he.jsx(Ox,{color:"primary",pulse:!0,children:he.jsx(nR,{className:"w-9 h-9 text-primary"})}),he.jsxs("div",{className:"text-center space-y-1",children:[he.jsx("p",{className:"text-lg font-bold text-gray-800 leading-tight",children:q||f}),q&&he.jsx("p",{className:"text-xs font-mono text-gray-400 tracking-wider",children:f}),he.jsxs("span",{className:"inline-flex items-center gap-1.5 px-3 py-1 rounded-full bg-primary/8 border border-primary/15 mt-1",children:[he.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary animate-pulse"}),he.jsx("span",{className:"text-[11px] font-semibold text-primary uppercase tracking-widest",children:"Dialing..."})]})]})]}),he.jsx(IS,{children:he.jsx(Bx,{color:"red",size:"lg",onClick:de,title:"Cancel",children:he.jsx(xv,{className:"w-6 h-6"})})})]}):v==="InCall"?he.jsxs(Qh,{error:M,children:[P?he.jsxs("div",{className:"animate-fadeIn",children:[he.jsxs("div",{className:"px-6 pt-5 pb-2 text-center",children:[he.jsx("p",{className:"text-[10px] font-bold text-gray-400 uppercase tracking-[0.2em] mb-2",children:"DTMF"}),he.jsx("div",{className:"min-h-[44px] flex items-center justify-center",children:he.jsx("span",{className:"text-3xl font-light text-gray-700 tracking-[0.25em] font-mono",children:z||he.jsx("span",{className:"text-gray-200",children:"—"})})})]}),he.jsx(X2,{onKeyPress:G})]}):he.jsxs("div",{className:"flex flex-col items-center justify-center px-6 py-10 gap-7 min-h-[300px] animate-fadeIn",children:[he.jsx(Ox,{color:A?"primary":"green",pulse:!A,children:A?he.jsx(Q2,{className:"w-9 h-9 text-primary"}):he.jsx(Z2,{className:"w-9 h-9 text-green-600"})}),he.jsxs("div",{className:"text-center space-y-1",children:[he.jsx("p",{className:"text-base font-bold text-gray-800 leading-tight",children:q||f||"Connected"}),q&&he.jsx("p",{className:"text-xs font-mono text-gray-400 tracking-wider",children:f}),he.jsxs("div",{className:"flex items-center justify-center gap-2 mt-1",children:[!A&&he.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-green-500 animate-pulse"}),he.jsx("span",{className:`text-sm font-mono font-semibold ${A?"text-primary":"text-green-600"}`,children:A?"On Hold":b})]})]})]}),he.jsx("div",{className:"border-t border-gray-100 bg-gray-50/60 px-6 py-4",children:he.jsxs("div",{className:"flex items-center justify-between gap-2 max-w-[260px] mx-auto",children:[he.jsx(Mx,{onClick:Ge,active:w,activeColor:"red",title:w?"Unmute":"Mute",children:w?he.jsx(tR,{className:"w-[18px] h-[18px]"}):he.jsx(rR,{className:"w-[18px] h-[18px]"})}),he.jsx(Mx,{onClick:ut,active:A,activeColor:"primary",title:A?"Resume":"Hold",children:A?he.jsx(iR,{className:"w-[18px] h-[18px]"}):he.jsx(Q2,{className:"w-[18px] h-[18px]"})}),he.jsx(Mx,{onClick:()=>j(Se=>!Se),active:P,activeColor:"primary",title:"Keypad",children:he.jsx(eR,{className:"w-[18px] h-[18px]"})}),he.jsx("button",{onClick:de,title:"End Call",className:"w-12 h-12 rounded-full bg-red-500 hover:bg-red-600 text-white flex items-center justify-center shadow-[0_4px_14px_rgba(239,68,68,0.4)] hover:shadow-[0_6px_18px_rgba(239,68,68,0.5)] transition-all active:scale-95",children:he.jsx(xv,{className:"w-5 h-5"})})]})})]}):X==="REGISTERED"?he.jsxs(Qh,{error:M,children:[he.jsxs("div",{className:"px-5 pt-5 pb-1",children:[he.jsxs("div",{className:"relative flex items-center justify-center min-h-[56px] bg-gray-50 rounded-2xl border border-gray-100 px-10",children:[he.jsx("input",{type:"text",value:f,onChange:Se=>p(Se.target.value.replace(/[^0-9+*#]/g,"")),onKeyDown:Se=>Se.key==="Enter"&&$(),className:"w-full text-center text-[28px] font-light text-gray-800 tracking-[0.12em] bg-transparent outline-none placeholder:text-gray-300 placeholder:text-2xl placeholder:font-normal",placeholder:"Enter number"}),f&&he.jsx("button",{onClick:()=>p(Se=>Se.slice(0,-1)),onMouseDown:Se=>Se.preventDefault(),className:"absolute right-3 p-1.5 rounded-full text-gray-300 hover:text-gray-500 hover:bg-gray-200 transition-all",children:he.jsx(JT,{className:"w-4 h-4"})})]}),q&&he.jsx("p",{className:"text-center text-xs text-primary/70 font-medium mt-1.5 tracking-wide",children:q})]}),he.jsx(X2,{onKeyPress:Se=>p(Re=>Re+Se)}),he.jsx("div",{className:"px-5 pb-4 pt-1 flex justify-center",children:he.jsxs("button",{onClick:$,disabled:!f.trim(),className:`
|
|
355
355
|
flex items-center gap-3 px-10 py-3.5 rounded-full
|
|
356
356
|
bg-gradient-to-r from-green-500 to-green-600
|
|
357
357
|
hover:from-green-600 hover:to-green-700
|
|
@@ -361,18 +361,18 @@ React keys must be passed directly to JSX without using spread:
|
|
|
361
361
|
hover:shadow-[0_6px_20px_rgba(34,197,94,0.5)]
|
|
362
362
|
disabled:shadow-none
|
|
363
363
|
transition-all active:scale-95
|
|
364
|
-
`,children:[he.jsx(Ev,{className:"w-4 h-4 fill-white"}),"Call"]})}),he.jsx(IR,{agentStatus:Z,currentAux:De,loading:L,autoReady:r,showAuxButton:i,auxOptions:l,onReady:Ce,onNotReady:He,onAux:_e})]}):he.jsx(Qh,{error:M,children:he.jsx("div",{className:"flex flex-col items-center justify-center px-6 py-12 gap-4 min-h-[280px] animate-fadeIn",children:X==="CONNECTING"?he.jsxs(he.Fragment,{children:[he.jsxs("div",{className:"relative w-16 h-16",children:[he.jsx("div",{className:"absolute inset-0 rounded-full border-4 border-primary/20"}),he.jsx("div",{className:"absolute inset-0 rounded-full border-4 border-transparent border-t-primary animate-spin"}),he.jsx("div",{className:"absolute inset-2 rounded-full bg-primary/10 flex items-center justify-center",children:he.jsx(Ev,{className:"w-5 h-5 text-primary",style:{transform:"rotate(90deg)"}})})]}),he.jsxs("div",{className:"text-center space-y-1",children:[he.jsx("p",{className:"text-sm font-semibold text-gray-700",children:"Connecting to server"}),he.jsx("p",{className:"text-xs text-gray-400",children:"Please wait..."})]})]}):he.jsxs(he.Fragment,{children:[he.jsx("div",{className:"w-16 h-16 rounded-full bg-red-50 border-2 border-red-100 flex items-center justify-center",children:he.jsx(xv,{className:"w-7 h-7 text-red-400"})}),he.jsxs("div",{className:"text-center space-y-1.5",children:[he.jsx("p",{className:"text-sm font-bold text-red-600",children:"Not Registered"}),
|
|
364
|
+
`,children:[he.jsx(Ev,{className:"w-4 h-4 fill-white"}),"Call"]})}),he.jsx(IR,{agentStatus:Z,currentAux:De,loading:L,autoReady:r,showAuxButton:i,auxOptions:l,onReady:Ce,onNotReady:He,onAux:_e})]}):he.jsx(Qh,{error:M,children:he.jsx("div",{className:"flex flex-col items-center justify-center px-6 py-12 gap-4 min-h-[280px] animate-fadeIn",children:X==="CONNECTING"?he.jsxs(he.Fragment,{children:[he.jsxs("div",{className:"relative w-16 h-16",children:[he.jsx("div",{className:"absolute inset-0 rounded-full border-4 border-primary/20"}),he.jsx("div",{className:"absolute inset-0 rounded-full border-4 border-transparent border-t-primary animate-spin"}),he.jsx("div",{className:"absolute inset-2 rounded-full bg-primary/10 flex items-center justify-center",children:he.jsx(Ev,{className:"w-5 h-5 text-primary",style:{transform:"rotate(90deg)"}})})]}),he.jsxs("div",{className:"text-center space-y-1",children:[he.jsx("p",{className:"text-sm font-semibold text-gray-700",children:"Connecting to server"}),he.jsx("p",{className:"text-xs text-gray-400",children:"Please wait..."})]})]}):he.jsxs(he.Fragment,{children:[he.jsx("div",{className:"w-16 h-16 rounded-full bg-red-50 border-2 border-red-100 flex items-center justify-center",children:he.jsx(xv,{className:"w-7 h-7 text-red-400"})}),he.jsxs("div",{className:"text-center space-y-1.5",children:[he.jsx("p",{className:"text-sm font-bold text-red-600",children:"Not Registered"}),R&&he.jsx("p",{className:"text-xs text-gray-400 max-w-[220px] leading-relaxed",children:R})]})]})})})}function Qh({children:o,error:r}){return he.jsxs("div",{className:"w-full relative select-none",children:[r&&he.jsxs("div",{className:"absolute top-3 left-1/2 -translate-x-1/2 z-50 flex items-center gap-2 px-4 py-2 rounded-full bg-red-500 text-white text-xs font-semibold shadow-lg animate-slideUp whitespace-nowrap",children:[he.jsx(KT,{className:"w-3.5 h-3.5 shrink-0"}),r]}),o]})}function IS({children:o}){return he.jsx("div",{className:"border-t border-gray-100 bg-gray-50/60 px-6 py-5 flex items-center justify-center gap-10 animate-slideUp",children:o})}function Ox({children:o,color:r="green",pulse:i=!1}){const l={green:{ring:"bg-green-500/15",ring2:"bg-green-500/8",wrap:"bg-green-50 border-green-200"},primary:{ring:"bg-primary/15",ring2:"bg-primary/8",wrap:"bg-primary/10 border-primary/20"},red:{ring:"bg-red-500/15",ring2:"bg-red-500/8",wrap:"bg-red-50 border-red-200"}},f=l[r]||l.green;return he.jsxs("div",{className:"relative flex items-center justify-center w-20 h-20",children:[i&&he.jsxs(he.Fragment,{children:[he.jsx("span",{className:`absolute w-20 h-20 rounded-full ${f.ring} animate-ping opacity-75`}),he.jsx("span",{className:`absolute w-28 h-28 rounded-full ${f.ring2} animate-pulse`})]}),he.jsx("div",{className:`relative z-10 w-16 h-16 rounded-full ${f.wrap} border-2 flex items-center justify-center shadow-sm`,children:o})]})}function Bx({children:o,onClick:r,color:i="gray",size:l="md",title:f,pulse:p=!1}){const v={md:"w-12 h-12",lg:"w-14 h-14"},S={green:"bg-green-500 hover:bg-green-600 shadow-[0_4px_14px_rgba(34,197,94,0.4)] hover:shadow-[0_6px_20px_rgba(34,197,94,0.5)]",red:"bg-red-500 hover:bg-red-600 shadow-[0_4px_14px_rgba(239,68,68,0.4)] hover:shadow-[0_6px_20px_rgba(239,68,68,0.5)]",gray:"bg-white border border-gray-200 text-gray-600 hover:bg-gray-50 shadow-sm"};return he.jsx("button",{onClick:r,title:f,className:`${v[l]} rounded-full text-white flex items-center justify-center transition-all active:scale-95 ${S[i]} ${p?"animate-pulse":""}`,children:o})}const $S={READY:{dot:"bg-green-500",label:"Ready",text:"text-green-700",bg:"bg-green-50 border-green-200"},NOT_READY:{dot:"bg-gray-400",label:"Not Ready",text:"text-gray-600",bg:"bg-gray-50 border-gray-200"},AUX:{dot:"bg-amber-400",label:"AUX",text:"text-amber-700",bg:"bg-amber-50 border-amber-200"}};function IR({agentStatus:o,currentAux:r,loading:i,autoReady:l,showAuxButton:f,auxOptions:p,onReady:v,onNotReady:S,onAux:b}){const[C,w]=zt.useState(!1),T=zt.useRef(null);zt.useEffect(()=>{const M=U=>{T.current&&!T.current.contains(U.target)&&w(!1)};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[]);const A=$S[o]||$S.NOT_READY,H=o==="AUX"&&r?`AUX: ${r.label}`:A.label,P=!l||f,j=()=>{w(!1),v()},z=()=>{w(!1),S()},B=M=>{w(!1),b(M)};return he.jsx("div",{className:"border-t border-gray-100 bg-gray-50/70 px-4 py-3",children:he.jsxs("div",{className:"flex items-center justify-between gap-2",children:[he.jsxs("div",{className:`flex items-center gap-1.5 px-2.5 py-1 rounded-full border text-xs font-semibold ${A.bg} ${A.text}`,children:[he.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${A.dot}`}),H]}),P&&he.jsxs("div",{className:"relative",ref:T,children:[he.jsxs("button",{onClick:()=>!i&&w(M=>!M),disabled:i,className:"flex items-center gap-1 px-2.5 py-1.5 rounded-lg text-[11px] font-semibold bg-white border border-gray-200 text-gray-600 hover:bg-gray-50 transition-all active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed",children:[i?he.jsx("span",{className:"w-3 h-3 border-2 border-gray-300 border-t-gray-600 rounded-full animate-spin"}):he.jsx(XT,{className:`w-3 h-3 transition-transform duration-150 ${C?"":"rotate-180"}`}),"Status"]}),C&&he.jsxs("div",{className:"absolute bottom-full mb-1.5 right-0 w-48 bg-white rounded-xl shadow-xl border border-gray-100 overflow-hidden z-50 animate-slideUp",children:[!l&&he.jsxs(he.Fragment,{children:[he.jsxs("button",{onClick:j,disabled:o==="READY",className:"w-full flex items-center gap-2.5 px-3.5 py-2.5 text-left text-xs font-medium text-gray-700 hover:bg-green-50 hover:text-green-800 transition-colors disabled:opacity-40 disabled:cursor-not-allowed border-b border-gray-50",children:[he.jsx(QT,{className:"w-3.5 h-3.5 text-green-500 shrink-0"}),"Ready",o==="READY"&&he.jsx("span",{className:"ml-auto text-[10px] text-green-500 font-semibold",children:"✓ Active"})]}),he.jsxs("button",{onClick:z,disabled:o==="NOT_READY",className:"w-full flex items-center gap-2.5 px-3.5 py-2.5 text-left text-xs font-medium text-gray-700 hover:bg-gray-100 transition-colors disabled:opacity-40 disabled:cursor-not-allowed border-b border-gray-50",children:[he.jsx(aR,{className:"w-3.5 h-3.5 text-gray-400 shrink-0"}),"Not Ready",o==="NOT_READY"&&he.jsx("span",{className:"ml-auto text-[10px] text-gray-400 font-semibold",children:"✓ Active"})]})]}),!l&&f&&p.length>0&&he.jsxs("div",{className:"px-3.5 py-1.5 flex items-center gap-2",children:[he.jsx("div",{className:"flex-1 h-px bg-gray-100"}),he.jsx("span",{className:"text-[10px] text-gray-400 font-semibold uppercase tracking-wider",children:"AUX"}),he.jsx("div",{className:"flex-1 h-px bg-gray-100"})]}),f&&p.map(M=>he.jsxs("button",{onClick:()=>B(M),disabled:o==="AUX"&&(r==null?void 0:r.code)===M.code,className:"w-full flex items-center gap-2.5 px-3.5 py-2.5 text-left text-xs font-medium text-gray-700 hover:bg-amber-50 hover:text-amber-800 transition-colors border-b border-gray-50 last:border-0 disabled:opacity-40 disabled:cursor-not-allowed",children:[he.jsx(K2,{className:"w-3.5 h-3.5 text-amber-500 shrink-0"}),M.label,o==="AUX"&&(r==null?void 0:r.code)===M.code&&he.jsx("span",{className:"ml-auto text-[10px] text-amber-500 font-semibold",children:"✓ Active"})]},M.code)),f&&p.length===0&&he.jsxs("button",{onClick:()=>B(null),disabled:o==="AUX",className:"w-full flex items-center gap-2.5 px-3.5 py-2.5 text-left text-xs font-medium text-gray-700 hover:bg-amber-50 hover:text-amber-800 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:[he.jsx(K2,{className:"w-3.5 h-3.5 text-amber-500 shrink-0"}),"AUX",o==="AUX"&&he.jsx("span",{className:"ml-auto text-[10px] text-amber-500 font-semibold",children:"✓ Active"})]})]})]})]})})}function Mx({children:o,onClick:r,active:i,activeColor:l="primary",title:f}){const p={red:"bg-red-500 border-red-500 text-white shadow-[0_2px_8px_rgba(239,68,68,0.35)]",primary:"bg-primary border-primary text-white shadow-[0_2px_8px_rgba(63,49,146,0.35)]"};return he.jsx("button",{onClick:r,title:f,className:`
|
|
365
365
|
w-11 h-11 rounded-full flex items-center justify-center
|
|
366
366
|
border transition-all active:scale-95
|
|
367
367
|
${i?p[l]:"bg-white border-gray-200 text-gray-500 hover:bg-gray-100 hover:text-gray-700"}
|
|
368
|
-
`,children:o})}const $R="0.21.1";class bc extends Error{constructor(r){super(r),Object.setPrototypeOf(this,new.target.prototype)}}class Nx extends bc{constructor(r){super(r||"Unsupported content type.")}}class Hx extends bc{constructor(r){super(r||"Request pending.")}}class PR extends bc{constructor(r){super(r||"Unspecified session description handler error.")}}class Ix extends bc{constructor(){super("The session has terminated.")}}class Zh extends bc{constructor(r){super(r||"An error occurred during state transition.")}}class LR{constructor(r){this.incomingAckRequest=r}get request(){return this.incomingAckRequest.message}}class UR{constructor(r){this.incomingByeRequest=r}get request(){return this.incomingByeRequest.message}accept(r){return this.incomingByeRequest.accept(r),Promise.resolve()}reject(r){return this.incomingByeRequest.reject(r),Promise.resolve()}}class jR{constructor(r){this.incomingCancelRequest=r}get request(){return this.incomingCancelRequest}}class Xh{constructor(){this.listeners=new Array}addListener(r,i){const l=f=>{this.removeListener(l),r(f)};(i==null?void 0:i.once)===!0?this.listeners.push(l):this.listeners.push(r)}emit(r){this.listeners.slice().forEach(i=>i(r))}removeAllListeners(){this.listeners=[]}removeListener(r){this.listeners=this.listeners.filter(i=>i!==r)}on(r){return this.addListener(r)}off(r){return this.removeListener(r)}once(r){return this.addListener(r,{once:!0})}}class zR{constructor(r){this.incomingInfoRequest=r}get request(){return this.incomingInfoRequest.message}accept(r){return this.incomingInfoRequest.accept(r),Promise.resolve()}reject(r){return this.incomingInfoRequest.reject(r),Promise.resolve()}}class PS{constructor(r){this.parameters={};for(const i in r)r.hasOwnProperty(i)&&this.setParam(i,r[i])}setParam(r,i){r&&(this.parameters[r.toLowerCase()]=typeof i>"u"||i===null?null:i.toString())}getParam(r){if(r)return this.parameters[r.toLowerCase()]}hasParam(r){return!!(r&&this.parameters[r.toLowerCase()]!==void 0)}deleteParam(r){if(r=r.toLowerCase(),this.hasParam(r)){const i=this.parameters[r];return delete this.parameters[r],i}}clearParams(){this.parameters={}}}class ma extends PS{constructor(r,i,l){super(l),this.uri=r,this._displayName=i}get friendlyName(){return this.displayName||this.uri.aor}get displayName(){return this._displayName}set displayName(r){this._displayName=r}clone(){return new ma(this.uri.clone(),this._displayName,JSON.parse(JSON.stringify(this.parameters)))}toString(){let r=this.displayName||this.displayName==="0"?'"'+this.displayName+'" ':"";r+="<"+this.uri.toString()+">";for(const i in this.parameters)this.parameters.hasOwnProperty(i)&&(r+=";"+i,this.parameters[i]!==null&&(r+="="+this.parameters[i]));return r}}class xo extends PS{constructor(r="sip",i,l,f,p,v){if(super(p||{}),this.headers={},!l)throw new TypeError('missing or invalid "host" parameter');for(const S in v)v.hasOwnProperty(S)&&this.setHeader(S,v[S]);this.raw={scheme:r,user:i,host:l,port:f},this.normal={scheme:r.toLowerCase(),user:i,host:l.toLowerCase(),port:f}}get scheme(){return this.normal.scheme}set scheme(r){this.raw.scheme=r,this.normal.scheme=r.toLowerCase()}get user(){return this.normal.user}set user(r){this.normal.user=this.raw.user=r}get host(){return this.normal.host}set host(r){this.raw.host=r,this.normal.host=r.toLowerCase()}get aor(){return this.normal.user+"@"+this.normal.host}get port(){return this.normal.port}set port(r){this.normal.port=this.raw.port=r}setHeader(r,i){this.headers[this.headerize(r)]=i instanceof Array?i:[i]}getHeader(r){if(r)return this.headers[this.headerize(r)]}hasHeader(r){return!!r&&!!this.headers.hasOwnProperty(this.headerize(r))}deleteHeader(r){if(r=this.headerize(r),this.headers.hasOwnProperty(r)){const i=this.headers[r];return delete this.headers[r],i}}clearHeaders(){this.headers={}}clone(){return new xo(this._raw.scheme,this._raw.user||"",this._raw.host,this._raw.port,JSON.parse(JSON.stringify(this.parameters)),JSON.parse(JSON.stringify(this.headers)))}toRaw(){return this._toString(this._raw)}toString(){return this._toString(this._normal)}get _normal(){return this.normal}get _raw(){return this.raw}_toString(r){let i=r.scheme+":";r.scheme.toLowerCase().match("^sips?$")||(i+="//"),r.user&&(i+=this.escapeUser(r.user)+"@"),i+=r.host,(r.port||r.port===0)&&(i+=":"+r.port);for(const f in this.parameters)this.parameters.hasOwnProperty(f)&&(i+=";"+f,this.parameters[f]!==null&&(i+="="+this.parameters[f]));const l=[];for(const f in this.headers)if(this.headers.hasOwnProperty(f))for(const p in this.headers[f])this.headers[f].hasOwnProperty(p)&&l.push(f+"="+this.headers[f][p]);return l.length>0&&(i+="?"+l.join("&")),i}escapeUser(r){let i;try{i=decodeURIComponent(r)}catch(l){throw l}return encodeURIComponent(i).replace(/%3A/ig,":").replace(/%2B/ig,"+").replace(/%3F/ig,"?").replace(/%2F/ig,"/")}headerize(r){const i={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},l=r.toLowerCase().replace(/_/g,"-").split("-"),f=l.length;let p="";for(let v=0;v<f;v++)v!==0&&(p+="-"),p+=l[v].charAt(0).toUpperCase()+l[v].substring(1);return i[p]&&(p=i[p]),p}}function LS(o,r){if(o.scheme!==r.scheme||o.user!==r.user||o.host!==r.host||o.port!==r.port)return!1;function i(p,v){const S=Object.keys(p.parameters),
|
|
368
|
+
`,children:o})}const $R="0.21.1";class bc extends Error{constructor(r){super(r),Object.setPrototypeOf(this,new.target.prototype)}}class Nx extends bc{constructor(r){super(r||"Unsupported content type.")}}class Hx extends bc{constructor(r){super(r||"Request pending.")}}class PR extends bc{constructor(r){super(r||"Unspecified session description handler error.")}}class Ix extends bc{constructor(){super("The session has terminated.")}}class Zh extends bc{constructor(r){super(r||"An error occurred during state transition.")}}class LR{constructor(r){this.incomingAckRequest=r}get request(){return this.incomingAckRequest.message}}class UR{constructor(r){this.incomingByeRequest=r}get request(){return this.incomingByeRequest.message}accept(r){return this.incomingByeRequest.accept(r),Promise.resolve()}reject(r){return this.incomingByeRequest.reject(r),Promise.resolve()}}class jR{constructor(r){this.incomingCancelRequest=r}get request(){return this.incomingCancelRequest}}class Xh{constructor(){this.listeners=new Array}addListener(r,i){const l=f=>{this.removeListener(l),r(f)};(i==null?void 0:i.once)===!0?this.listeners.push(l):this.listeners.push(r)}emit(r){this.listeners.slice().forEach(i=>i(r))}removeAllListeners(){this.listeners=[]}removeListener(r){this.listeners=this.listeners.filter(i=>i!==r)}on(r){return this.addListener(r)}off(r){return this.removeListener(r)}once(r){return this.addListener(r,{once:!0})}}class zR{constructor(r){this.incomingInfoRequest=r}get request(){return this.incomingInfoRequest.message}accept(r){return this.incomingInfoRequest.accept(r),Promise.resolve()}reject(r){return this.incomingInfoRequest.reject(r),Promise.resolve()}}class PS{constructor(r){this.parameters={};for(const i in r)r.hasOwnProperty(i)&&this.setParam(i,r[i])}setParam(r,i){r&&(this.parameters[r.toLowerCase()]=typeof i>"u"||i===null?null:i.toString())}getParam(r){if(r)return this.parameters[r.toLowerCase()]}hasParam(r){return!!(r&&this.parameters[r.toLowerCase()]!==void 0)}deleteParam(r){if(r=r.toLowerCase(),this.hasParam(r)){const i=this.parameters[r];return delete this.parameters[r],i}}clearParams(){this.parameters={}}}class ma extends PS{constructor(r,i,l){super(l),this.uri=r,this._displayName=i}get friendlyName(){return this.displayName||this.uri.aor}get displayName(){return this._displayName}set displayName(r){this._displayName=r}clone(){return new ma(this.uri.clone(),this._displayName,JSON.parse(JSON.stringify(this.parameters)))}toString(){let r=this.displayName||this.displayName==="0"?'"'+this.displayName+'" ':"";r+="<"+this.uri.toString()+">";for(const i in this.parameters)this.parameters.hasOwnProperty(i)&&(r+=";"+i,this.parameters[i]!==null&&(r+="="+this.parameters[i]));return r}}class xo extends PS{constructor(r="sip",i,l,f,p,v){if(super(p||{}),this.headers={},!l)throw new TypeError('missing or invalid "host" parameter');for(const S in v)v.hasOwnProperty(S)&&this.setHeader(S,v[S]);this.raw={scheme:r,user:i,host:l,port:f},this.normal={scheme:r.toLowerCase(),user:i,host:l.toLowerCase(),port:f}}get scheme(){return this.normal.scheme}set scheme(r){this.raw.scheme=r,this.normal.scheme=r.toLowerCase()}get user(){return this.normal.user}set user(r){this.normal.user=this.raw.user=r}get host(){return this.normal.host}set host(r){this.raw.host=r,this.normal.host=r.toLowerCase()}get aor(){return this.normal.user+"@"+this.normal.host}get port(){return this.normal.port}set port(r){this.normal.port=this.raw.port=r}setHeader(r,i){this.headers[this.headerize(r)]=i instanceof Array?i:[i]}getHeader(r){if(r)return this.headers[this.headerize(r)]}hasHeader(r){return!!r&&!!this.headers.hasOwnProperty(this.headerize(r))}deleteHeader(r){if(r=this.headerize(r),this.headers.hasOwnProperty(r)){const i=this.headers[r];return delete this.headers[r],i}}clearHeaders(){this.headers={}}clone(){return new xo(this._raw.scheme,this._raw.user||"",this._raw.host,this._raw.port,JSON.parse(JSON.stringify(this.parameters)),JSON.parse(JSON.stringify(this.headers)))}toRaw(){return this._toString(this._raw)}toString(){return this._toString(this._normal)}get _normal(){return this.normal}get _raw(){return this.raw}_toString(r){let i=r.scheme+":";r.scheme.toLowerCase().match("^sips?$")||(i+="//"),r.user&&(i+=this.escapeUser(r.user)+"@"),i+=r.host,(r.port||r.port===0)&&(i+=":"+r.port);for(const f in this.parameters)this.parameters.hasOwnProperty(f)&&(i+=";"+f,this.parameters[f]!==null&&(i+="="+this.parameters[f]));const l=[];for(const f in this.headers)if(this.headers.hasOwnProperty(f))for(const p in this.headers[f])this.headers[f].hasOwnProperty(p)&&l.push(f+"="+this.headers[f][p]);return l.length>0&&(i+="?"+l.join("&")),i}escapeUser(r){let i;try{i=decodeURIComponent(r)}catch(l){throw l}return encodeURIComponent(i).replace(/%3A/ig,":").replace(/%2B/ig,"+").replace(/%3F/ig,"?").replace(/%2F/ig,"/")}headerize(r){const i={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},l=r.toLowerCase().replace(/_/g,"-").split("-"),f=l.length;let p="";for(let v=0;v<f;v++)v!==0&&(p+="-"),p+=l[v].charAt(0).toUpperCase()+l[v].substring(1);return i[p]&&(p=i[p]),p}}function LS(o,r){if(o.scheme!==r.scheme||o.user!==r.user||o.host!==r.host||o.port!==r.port)return!1;function i(p,v){const S=Object.keys(p.parameters),b=Object.keys(v.parameters);return!(!S.filter(w=>b.includes(w)).every(w=>p.parameters[w]===v.parameters[w])||!["user","ttl","method","transport"].every(w=>p.hasParam(w)&&v.hasParam(w)||!p.hasParam(w)&&!v.hasParam(w))||!["maddr"].every(w=>p.hasParam(w)&&v.hasParam(w)||!p.hasParam(w)&&!v.hasParam(w)))}if(!i(o,r))return!1;const l=Object.keys(o.headers),f=Object.keys(r.headers);if(l.length!==0||f.length!==0){if(l.length!==f.length)return!1;const p=l.filter(v=>f.includes(v));if(p.length!==f.length||!p.every(v=>o.headers[v].length&&r.headers[v].length&&o.headers[v][0]===r.headers[v][0]))return!1}return!0}function $x(o,r,i){return i=i||" ",o.length>r?o:(r-=o.length,i+=i.repeat(r),o+i.slice(0,r))}class Kf extends Error{constructor(r,i,l,f){super(),this.message=r,this.expected=i,this.found=l,this.location=f,this.name="SyntaxError",typeof Object.setPrototypeOf=="function"?Object.setPrototypeOf(this,Kf.prototype):this.__proto__=Kf.prototype,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,Kf)}static buildMessage(r,i){function l(C){return C.charCodeAt(0).toString(16).toUpperCase()}function f(C){return C.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,w=>"\\x0"+l(w)).replace(/[\x10-\x1F\x7F-\x9F]/g,w=>"\\x"+l(w))}function p(C){return C.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,w=>"\\x0"+l(w)).replace(/[\x10-\x1F\x7F-\x9F]/g,w=>"\\x"+l(w))}function v(C){switch(C.type){case"literal":return'"'+f(C.text)+'"';case"class":const w=C.parts.map(T=>Array.isArray(T)?p(T[0])+"-"+p(T[1]):p(T));return"["+(C.inverted?"^":"")+w+"]";case"any":return"any character";case"end":return"end of input";case"other":return C.description}}function S(C){const w=C.map(v);let T,A;if(w.sort(),w.length>0){for(T=1,A=1;T<w.length;T++)w[T-1]!==w[T]&&(w[A]=w[T],A++);w.length=A}switch(w.length){case 1:return w[0];case 2:return w[0]+" or "+w[1];default:return w.slice(0,-1).join(", ")+", or "+w[w.length-1]}}function b(C){return C?'"'+f(C)+'"':"end of input"}return"Expected "+S(r)+" but "+b(i)+" found."}format(r){let i="Error: "+this.message;if(this.location){let l=null,f;for(f=0;f<r.length;f++)if(r[f].source===this.location.source){l=r[f].text.split(/\r\n|\n|\r/g);break}let p=this.location.start,v=this.location.source+":"+p.line+":"+p.column;if(l){let S=this.location.end,b=$x("",p.line.toString().length," "),C=l[p.line-1],w=p.line===S.line?S.column:C.length+1;i+=`
|
|
369
369
|
--> `+v+`
|
|
370
|
-
`+
|
|
370
|
+
`+b+` |
|
|
371
371
|
`+p.line+" | "+C+`
|
|
372
|
-
`+
|
|
372
|
+
`+b+" | "+$x("",p.column-1," ")+$x("",w-p.column,"^")}else i+=`
|
|
373
373
|
at `+v}return i}}function qR(o,r){r=r!==void 0?r:{};const i={},l=r.grammarSource,f={Contact:119,Name_Addr_Header:156,Record_Route:176,Request_Response:81,SIP_URI:45,Subscription_State:186,Supported:191,Require:182,Via:194,absoluteURI:84,Call_ID:118,Content_Disposition:130,Content_Length:135,Content_Type:136,CSeq:146,displayName:122,Event:149,From:151,host:52,Max_Forwards:154,Min_SE:213,Proxy_Authenticate:157,quoted_string:40,Refer_To:178,Replaces:179,Session_Expires:210,stun_URI:217,To:192,turn_URI:223,uuid:226,WWW_Authenticate:209,challenge:158,sipfrag:230,Referred_By:231};let p=119;const v=[`\r
|
|
374
374
|
`,B(`\r
|
|
375
|
-
`,!1),/^[0-9]/,M([["0","9"]],!1,!1),/^[a-zA-Z]/,M([["a","z"],["A","Z"]],!1,!1),/^[0-9a-fA-F]/,M([["0","9"],["a","f"],["A","F"]],!1,!1),/^[\0-\xFF]/,M([["\0","ÿ"]],!1,!1),/^["]/,M(['"'],!1,!1)," ",B(" ",!1)," ",B(" ",!1),/^[a-zA-Z0-9]/,M([["a","z"],["A","Z"],["0","9"]],!1,!1),";",B(";",!1),"/",B("/",!1),"?",B("?",!1),":",B(":",!1),"@",B("@",!1),"&",B("&",!1),"=",B("=",!1),"+",B("+",!1),"$",B("$",!1),",",B(",",!1),"-",B("-",!1),"_",B("_",!1),".",B(".",!1),"!",B("!",!1),"~",B("~",!1),"*",B("*",!1),"'",B("'",!1),"(",B("(",!1),")",B(")",!1),"%",B("%",!1),function(){return" "},function(){return":"},/^[!-~]/,M([["!","~"]],!1,!1),/^[\x80-\uFFFF]/,M([["",""]],!1,!1),/^[\x80-\xBF]/,M([["","¿"]],!1,!1),/^[a-f]/,M([["a","f"]],!1,!1),"`",B("`",!1),"<",B("<",!1),">",B(">",!1),"\\",B("\\",!1),"[",B("[",!1),"]",B("]",!1),"{",B("{",!1),"}",B("}",!1),function(){return"*"},function(){return"/"},function(){return"="},function(){return"("},function(){return")"},function(){return">"},function(){return"<"},function(){return","},function(){return";"},function(){return":"},function(){return'"'},/^[!-']/,M([["!","'"]],!1,!1),/^[*-[]/,M([["*","["]],!1,!1),/^[\]-~]/,M([["]","~"]],!1,!1),function(F){return F},/^[#-[]/,M([["#","["]],!1,!1),/^[\0-\t]/,M([["\0"," "]],!1,!1),/^[\v-\f]/,M([["\v","\f"]],!1,!1),/^[\x0E-\x7F]/,M([["",""]],!1,!1),function(){r=r||{data:{}},r.data.uri=new xo(r.data.scheme,r.data.user,r.data.host,r.data.port),delete r.data.scheme,delete r.data.user,delete r.data.host,delete r.data.host_type,delete r.data.port},function(){r=r||{data:{}},r.data.uri=new xo(r.data.scheme,r.data.user,r.data.host,r.data.port,r.data.uri_params,r.data.uri_headers),delete r.data.scheme,delete r.data.user,delete r.data.host,delete r.data.host_type,delete r.data.port,delete r.data.uri_params,r.startRule==="SIP_URI"&&(r.data=r.data.uri)},"sips",B("sips",!0),"sip",B("sip",!0),function(F){r=r||{data:{}},r.data.scheme=F},function(){r=r||{data:{}},r.data.user=decodeURIComponent(j().slice(0,-1))},function(){r=r||{data:{}},r.data.password=j()},function(){return r=r||{data:{}},r.data.host=j(),r.data.host},function(){return r=r||{data:{}},r.data.host_type="domain",j()},/^[a-zA-Z0-9_\-]/,M([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),/^[a-zA-Z0-9\-]/,M([["a","z"],["A","Z"],["0","9"],"-"],!1,!1),function(){return r=r||{data:{}},r.data.host_type="IPv6",j()},"::",B("::",!1),function(){return r=r||{data:{}},r.data.host_type="IPv6",j()},function(){return r=r||{data:{}},r.data.host_type="IPv4",j()},"25",B("25",!1),/^[0-5]/,M([["0","5"]],!1,!1),"2",B("2",!1),/^[0-4]/,M([["0","4"]],!1,!1),"1",B("1",!1),/^[1-9]/,M([["1","9"]],!1,!1),function(F){return r=r||{data:{}},F=parseInt(F.join("")),r.data.port=F,F},"transport=",B("transport=",!0),"udp",B("udp",!0),"tcp",B("tcp",!0),"sctp",B("sctp",!0),"tls",B("tls",!0),function(F){r=r||{data:{}},r.data.uri_params||(r.data.uri_params={}),r.data.uri_params.transport=F.toLowerCase()},"user=",B("user=",!0),"phone",B("phone",!0),"ip",B("ip",!0),function(F){r=r||{data:{}},r.data.uri_params||(r.data.uri_params={}),r.data.uri_params.user=F.toLowerCase()},"method=",B("method=",!0),function(F){r=r||{data:{}},r.data.uri_params||(r.data.uri_params={}),r.data.uri_params.method=F},"ttl=",B("ttl=",!0),function(F){r=r||{data:{}},r.data.params||(r.data.params={}),r.data.params.ttl=F},"maddr=",B("maddr=",!0),function(F){r=r||{data:{}},r.data.uri_params||(r.data.uri_params={}),r.data.uri_params.maddr=F},"lr",B("lr",!0),function(){r=r||{data:{}},r.data.uri_params||(r.data.uri_params={}),r.data.uri_params.lr=void 0},function(F,L){r=r||{data:{}},r.data.uri_params||(r.data.uri_params={}),L===null?L=void 0:L=L[1],r.data.uri_params[F.toLowerCase()]=L},function(F,L){F=F.join("").toLowerCase(),L=L.join(""),r=r||{data:{}},r.data.uri_headers||(r.data.uri_headers={}),r.data.uri_headers[F]?r.data.uri_headers[F].push(L):r.data.uri_headers[F]=[L]},function(){r=r||{data:{}},r.startRule==="Refer_To"&&(r.data.uri=new xo(r.data.scheme,r.data.user,r.data.host,r.data.port,r.data.uri_params,r.data.uri_headers),delete r.data.scheme,delete r.data.user,delete r.data.host,delete r.data.host_type,delete r.data.port,delete r.data.uri_params)},"//",B("//",!1),function(){r=r||{data:{}},r.data.scheme=j()},B("SIP",!0),function(){r=r||{data:{}},r.data.sip_version=j()},"INVITE",B("INVITE",!1),"ACK",B("ACK",!1),"VXACH",B("VXACH",!1),"OPTIONS",B("OPTIONS",!1),"BYE",B("BYE",!1),"CANCEL",B("CANCEL",!1),"REGISTER",B("REGISTER",!1),"SUBSCRIBE",B("SUBSCRIBE",!1),"NOTIFY",B("NOTIFY",!1),"REFER",B("REFER",!1),"PUBLISH",B("PUBLISH",!1),function(){return r=r||{data:{}},r.data.method=j(),r.data.method},function(F){r=r||{data:{}},r.data.status_code=parseInt(F.join(""))},function(){r=r||{data:{}},r.data.reason_phrase=j()},function(){r=r||{data:{}},r.data=j()},function(){var F,L;for(r=r||{data:{}},L=r.data.multi_header.length,F=0;F<L;F++)if(r.data.multi_header[F].parsed===null){r.data=null;break}r.data!==null?r.data=r.data.multi_header:r.data=-1},function(){var F;r=r||{data:{}},r.data.multi_header||(r.data.multi_header=[]);try{F=new ma(r.data.uri,r.data.displayName,r.data.params),delete r.data.uri,delete r.data.displayName,delete r.data.params}catch{F=null}r.data.multi_header.push({position:w,offset:z().start.offset,parsed:F})},function(F){F=j().trim(),F[0]==='"'&&(F=F.substring(1,F.length-1)),r=r||{data:{}},r.data.displayName=F},"q",B("q",!0),function(F){r=r||{data:{}},r.data.params||(r.data.params={}),r.data.params.q=F},"expires",B("expires",!0),function(F){r=r||{data:{}},r.data.params||(r.data.params={}),r.data.params.expires=F},function(F){return parseInt(F.join(""))},"0",B("0",!1),function(){return parseFloat(j())},function(F,L){r=r||{data:{}},r.data.params||(r.data.params={}),L===null?L=void 0:L=L[1],r.data.params[F.toLowerCase()]=L},"render",B("render",!0),"session",B("session",!0),"icon",B("icon",!0),"alert",B("alert",!0),function(){r=r||{data:{}},r.startRule==="Content_Disposition"&&(r.data.type=j().toLowerCase())},"handling",B("handling",!0),"optional",B("optional",!0),"required",B("required",!0),function(F){r=r||{data:{}},r.data=parseInt(F.join(""))},function(){r=r||{data:{}},r.data=j()},"text",B("text",!0),"image",B("image",!0),"audio",B("audio",!0),"video",B("video",!0),"application",B("application",!0),"message",B("message",!0),"multipart",B("multipart",!0),"x-",B("x-",!0),function(F){r=r||{data:{}},r.data.value=parseInt(F.join(""))},function(F){r=r||{data:{}},r.data=F},function(F){r=r||{data:{}},r.data.event=F.toLowerCase()},function(){r=r||{data:{}};var F=r.data.tag;r.data=new ma(r.data.uri,r.data.displayName,r.data.params),F&&r.data.setParam("tag",F)},"tag",B("tag",!0),function(F){r=r||{data:{}},r.data.tag=F},function(F){r=r||{data:{}},r.data=parseInt(F.join(""))},function(F){r=r||{data:{}},r.data=F},function(){r=r||{data:{}},r.data=new ma(r.data.uri,r.data.displayName,r.data.params)},"digest",B("Digest",!0),"realm",B("realm",!0),function(F){r=r||{data:{}},r.data.realm=F},"domain",B("domain",!0),"nonce",B("nonce",!0),function(F){r=r||{data:{}},r.data.nonce=F},"opaque",B("opaque",!0),function(F){r=r||{data:{}},r.data.opaque=F},"stale",B("stale",!0),"true",B("true",!0),function(){r=r||{data:{}},r.data.stale=!0},"false",B("false",!0),function(){r=r||{data:{}},r.data.stale=!1},"algorithm",B("algorithm",!0),"md5",B("MD5",!0),"md5-sess",B("MD5-sess",!0),function(F){r=r||{data:{}},r.data.algorithm=F.toUpperCase()},"qop",B("qop",!0),"auth-int",B("auth-int",!0),"auth",B("auth",!0),function(F){r=r||{data:{}},r.data.qop||(r.data.qop=[]),r.data.qop.push(F.toLowerCase())},function(F){r=r||{data:{}},r.data.value=parseInt(F.join(""))},function(){var F,L;for(r=r||{data:{}},L=r.data.multi_header.length,F=0;F<L;F++)if(r.data.multi_header[F].parsed===null){r.data=null;break}r.data!==null?r.data=r.data.multi_header:r.data=-1},function(){var F;r=r||{data:{}},r.data.multi_header||(r.data.multi_header=[]);try{F=new ma(r.data.uri,r.data.displayName,r.data.params),delete r.data.uri,delete r.data.displayName,delete r.data.params}catch{F=null}r.data.multi_header.push({position:w,offset:z().start.offset,parsed:F})},function(){r=r||{data:{}},r.data=new ma(r.data.uri,r.data.displayName,r.data.params)},function(){r=r||{data:{}},r.data.replaces_from_tag&&r.data.replaces_to_tag||(r.data=-1)},function(){r=r||{data:{}},r.data={call_id:r.data}},"from-tag",B("from-tag",!0),function(F){r=r||{data:{}},r.data.replaces_from_tag=F},"to-tag",B("to-tag",!0),function(F){r=r||{data:{}},r.data.replaces_to_tag=F},"early-only",B("early-only",!0),function(){r=r||{data:{}},r.data.early_only=!0},function(F,L){return L},function(F,L){return Z(F,L)},function(F){r=r||{data:{}},r.startRule==="Require"&&(r.data=F||[])},function(F){r=r||{data:{}},r.data.value=parseInt(F.join(""))},"active",B("active",!0),"pending",B("pending",!0),"terminated",B("terminated",!0),function(){r=r||{data:{}},r.data.state=j()},"reason",B("reason",!0),function(F){r=r||{data:{}},typeof F<"u"&&(r.data.reason=F)},function(F){r=r||{data:{}},typeof F<"u"&&(r.data.expires=F)},"retry_after",B("retry_after",!0),function(F){r=r||{data:{}},typeof F<"u"&&(r.data.retry_after=F)},"deactivated",B("deactivated",!0),"probation",B("probation",!0),"rejected",B("rejected",!0),"timeout",B("timeout",!0),"giveup",B("giveup",!0),"noresource",B("noresource",!0),"invariant",B("invariant",!0),function(F){r=r||{data:{}},r.startRule==="Supported"&&(r.data=F||[])},function(){r=r||{data:{}};var F=r.data.tag;r.data=new ma(r.data.uri,r.data.displayName,r.data.params),F&&r.data.setParam("tag",F)},"ttl",B("ttl",!0),function(F){r=r||{data:{}},r.data.ttl=F},"maddr",B("maddr",!0),function(F){r=r||{data:{}},r.data.maddr=F},"received",B("received",!0),function(F){r=r||{data:{}},r.data.received=F},"branch",B("branch",!0),function(F){r=r||{data:{}},r.data.branch=F},"rport",B("rport",!0),function(F){r=r||{data:{}},typeof F<"u"&&(r.data.rport=F.join(""))},function(F){r=r||{data:{}},r.data.protocol=F},B("UDP",!0),B("TCP",!0),B("TLS",!0),B("SCTP",!0),function(F){r=r||{data:{}},r.data.transport=F},function(){r=r||{data:{}},r.data.host=j()},function(F){r=r||{data:{}},r.data.port=parseInt(F.join(""))},function(F){return parseInt(F.join(""))},function(F){r=r||{data:{}},r.startRule==="Session_Expires"&&(r.data.deltaSeconds=F)},"refresher",B("refresher",!1),"uas",B("uas",!1),"uac",B("uac",!1),function(F){r=r||{data:{}},r.startRule==="Session_Expires"&&(r.data.refresher=F)},function(F){r=r||{data:{}},r.startRule==="Min_SE"&&(r.data=F)},"stuns",B("stuns",!0),"stun",B("stun",!0),function(F){r=r||{data:{}},r.data.scheme=F},function(F){r=r||{data:{}},r.data.host=F},"?transport=",B("?transport=",!1),"turns",B("turns",!0),"turn",B("turn",!0),function(F){r=r||{data:{}},r.data.transport=F},function(){r=r||{data:{}},r.data=j()},"Referred-By",B("Referred-By",!1),"b",B("b",!1),"cid",B("cid",!1)],S=[A('2 ""6 7!'),A('4"""5!7#'),A('4$""5!7%'),A(`4&""5!7'`),A(";'.# &;("),A('4(""5!7)'),A('4*""5!7+'),A('2,""6,7-'),A('2.""6.7/'),A('40""5!71'),A('22""6273. &24""6475.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),A(";).# &;,"),A('2F""6F7G.} &2H""6H7I.q &2J""6J7K.e &2L""6L7M.Y &2N""6N7O.M &2P""6P7Q.A &2R""6R7S.5 &2T""6T7U.) &2V""6V7W'),A(`%%2X""6X7Y/5#;#/,$;#/#$+#)(#'#("'#&'#/"!&,)`),A(`%%$;$0#*;$&/,#; /#$+")("'#&'#." &"/=#$;$/�#*;$&&&#/'$8":Z" )("'#&'#`),A(';.." &"'),A(`%$;'.# &;(0)*;'.# &;(&/?#28""6879/0$;//'$8#:[# )(#'#("'#&'#`),A(`%%$;2/�#*;2&&&#/g#$%$;.0#*;.&/,#;2/#$+")("'#&'#0=*%$;.0#*;.&/,#;2/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),A('4\\""5!7].# &;3'),A('4^""5!7_'),A('4`""5!7a'),A(';!.) &4b""5!7c'),A('%$;). &2F""6F7G. &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/#0*;). &2F""6F7G. &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),A('%$;). &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/#0*;). &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),A(`2T""6T7U.ã &2V""6V7W.× &2f""6f7g.Ë &2h""6h7i.¿ &2:""6:7;.³ &2D""6D7E.§ &22""6273. &28""6879. &2j""6j7k. &;&.} &24""6475.q &2l""6l7m.e &2n""6n7o.Y &26""6677.M &2>""6>7?.A &2p""6p7q.5 &2r""6r7s.) &;'.# &;(`),A('%$;).ī &2F""6F7G.ğ &2J""6J7K.ē &2L""6L7M.ć &2X""6X7Y.û &2P""6P7Q.ï &2H""6H7I.ã &2@""6@7A.× &2d""6d7e.Ë &2R""6R7S.¿ &2N""6N7O.³ &2T""6T7U.§ &2V""6V7W. &2f""6f7g. &2h""6h7i. &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s/Ĵ#0ı*;).ī &2F""6F7G.ğ &2J""6J7K.ē &2L""6L7M.ć &2X""6X7Y.û &2P""6P7Q.ï &2H""6H7I.ã &2@""6@7A.× &2d""6d7e.Ë &2R""6R7S.¿ &2N""6N7O.³ &2T""6T7U.§ &2V""6V7W. &2f""6f7g. &2h""6h7i. &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s&&&#/"!&,)'),A(`%;//?#2P""6P7Q/0$;//'$8#:t# )(#'#("'#&'#`),A(`%;//?#24""6475/0$;//'$8#:u# )(#'#("'#&'#`),A(`%;//?#2>""6>7?/0$;//'$8#:v# )(#'#("'#&'#`),A(`%;//?#2T""6T7U/0$;//'$8#:w# )(#'#("'#&'#`),A(`%;//?#2V""6V7W/0$;//'$8#:x# )(#'#("'#&'#`),A(`%2h""6h7i/0#;//'$8":y" )("'#&'#`),A(`%;//6#2f""6f7g/'$8":z" )("'#&'#`),A(`%;//?#2D""6D7E/0$;//'$8#:{# )(#'#("'#&'#`),A(`%;//?#22""6273/0$;//'$8#:|# )(#'#("'#&'#`),A(`%;//?#28""6879/0$;//'$8#:}# )(#'#("'#&'#`),A(`%;//0#;&/'$8":~" )("'#&'#`),A(`%;&/0#;//'$8":~" )("'#&'#`),A(`%;=/T#$;G.) &;K.# &;F0/*;G.) &;K.# &;F&/,$;>/#$+#)(#'#("'#&'#`),A('4""5!7.A &4""5!7.5 &4""5!7.) &;3.# &;.'),A(`%%;//Q#;&/H$$;J.# &;K0)*;J.# &;K&/,$;&/#$+$)($'#(#'#("'#&'#/"!&,)`),A(`%;//]#;&/T$%$;J.# &;K0)*;J.# &;K&/"!&,)/1$;&/($8$:
$!!)($'#(#'#("'#&'#`),A(';..G &2L""6L7M.; &4""5!7./ &4""5!7.# &;3'),A(`%2j""6j7k/J#4""5!7.5 &4""5!7.) &4""5!7/#$+")("'#&'#`),A(`%;N/M#28""6879/>$;O." &"/0$;S/'$8$:$ )($'#(#'#("'#&'#`),A(`%;N/d#28""6879/U$;O." &"/G$;S/>$;_/5$;l." &"/'$8&:& )(&'#(%'#($'#(#'#("'#&'#`),A(`%3""5$7.) &3""5#7/' 8!:!! )`),A(`%;P/]#%28""6879/,#;R/#$+")("'#&'#." &"/6$2:""6:7;/'$8#:# )(#'#("'#&'#`),A("$;+.) &;-.# &;Q/2#0/*;+.) &;-.# &;Q&&&#"),A('2<""6<7=.q &2>""6>7?.e &2@""6@7A.Y &2B""6B7C.M &2D""6D7E.A &22""6273.5 &26""6677.) &24""6475'),A('%$;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E0e*;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E&/& 8!:! )'),A(`%;T/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),A("%;U.) &;\\.# &;X/& 8!:! )"),A(`%$%;V/2#2J""6J7K/#$+")("'#&'#0<*%;V/2#2J""6J7K/#$+")("'#&'#&/D#;W/;$2J""6J7K." &"/'$8#:# )(#'#("'#&'#`),A('$4""5!7/,#0)*4""5!7&&&#'),A(`%4$""5!7%/?#$4""5!70)*4""5!7&/#$+")("'#&'#`),A(`%2l""6l7m/?#;Y/6$2n""6n7o/'$8#:# )(#'#("'#&'#`),A(`%%;Z/³#28""6879/¤$;Z/$28""6879/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+-)(-'#(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.ސ &%2""67/¤#;Z/$28""6879/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+,)(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.۹ &%2""67/#;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.ٺ &%2""67/t#;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.ؓ &%2""67/\\#;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+&)(&'#(%'#($'#(#'#("'#&'#.ׄ &%2""67/D#;Z/;$28""6879/,$;[/#$+$)($'#(#'#("'#&'#.֍ &%2""67/,#;[/#$+")("'#&'#.ծ &%2""67/,#;Z/#$+")("'#&'#.Տ &%;Z/#2""67/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$++)(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ӈ &%;Z/ª#%28""6879/,#;Z/#$+")("'#&'#." &"/$2""67/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.а &%;Z/¹#%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/k$2""67/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+))()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ί &%;Z/È#%28""6879/,#;Z/#$+")("'#&'#." &"/¡$%28""6879/,#;Z/#$+")("'#&'#." &"/z$%28""6879/,#;Z/#$+")("'#&'#." &"/S$2""67/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.˕ &%;Z/×#%28""6879/,#;Z/#$+")("'#&'#." &"/°$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2""67/,$;[/#$+')(''#(&'#(%'#($'#(#'#("'#&'#.ȑ &%;Z/þ#%28""6879/,#;Z/#$+")("'#&'#." &"/×$%28""6879/,#;Z/#$+")("'#&'#." &"/°$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2""67/,$;Z/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ħ &%;Z/Ĝ#%28""6879/,#;Z/#$+")("'#&'#." &"/õ$%28""6879/,#;Z/#$+")("'#&'#." &"/Î$%28""6879/,#;Z/#$+")("'#&'#." &"/§$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/Y$%28""6879/,#;Z/#$+")("'#&'#." &"/2$2""67/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#/& 8!: ! )`),A(`%;#/M#;#." &"/?$;#." &"/1$;#." &"/#$+$)($'#(#'#("'#&'#`),A(`%;Z/;#28""6879/,$;Z/#$+#)(#'#("'#&'#.# &;\\`),A(`%;]/o#2J""6J7K/\`$;]/W$2J""6J7K/H$;]/?$2J""6J7K/0$;]/'$8':¡' )(''#(&'#(%'#($'#(#'#("'#&'#`),A(`%2¢""6¢7£/2#4¤""5!7¥/#$+")("'#&'#. &%2¦""6¦7§/;#4¨""5!7©/,$;!/#$+#)(#'#("'#&'#.j &%2ª""6ª7«/5#;!/,$;!/#$+#)(#'#("'#&'#.B &%4¬""5!7/,#;!/#$+")("'#&'#.# &;!`),A(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:®!! )`),A(`$%22""6273/,#;\`/#$+")("'#&'#0<*%22""6273/,#;\`/#$+")("'#&'#&`),A(";a.A &;b.; &;c.5 &;d./ &;e.) &;f.# &;g"),A(`%3¯""5*7°/a#3±""5#7².G &3³""5#7´.; &3µ""5$7¶./ &3·""5#7¸.# &;6/($8":¹"! )("'#&'#`),A(`%3º""5%7»/I#3¼""5%7½./ &3¾""5"7¿.# &;6/($8":À"! )("'#&'#`),A(`%3Á""5'7Â/1#;/($8":Ã"! )("'#&'#`),A(`%3Ä""5$7Å/1#;ð/($8":Æ"! )("'#&'#`),A(`%3Ç""5&7È/1#;T/($8":É"! )("'#&'#`),A(`%3Ê""5"7Ë/N#%2>""6>7?/,#;6/#$+")("'#&'#." &"/'$8":Ì" )("'#&'#`),A(`%;h/P#%2>""6>7?/,#;i/#$+")("'#&'#." &"/)$8":Í""! )("'#&'#`),A('%$;j/�#*;j&&&#/"!&,)'),A('%$;j/�#*;j&&&#/"!&,)'),A(";k.) &;+.# &;-"),A('2l""6l7m.e &2n""6n7o.Y &24""6475.M &28""6879.A &2<""6<7=.5 &2@""6@7A.) &2B""6B7C'),A(`%26""6677/n#;m/e$$%2<""6<7=/,#;m/#$+")("'#&'#0<*%2<""6<7=/,#;m/#$+")("'#&'#&/#$+#)(#'#("'#&'#`),A(`%;n/A#2>""6>7?/2$;o/)$8#:Î#"" )(#'#("'#&'#`),A("$;p.) &;+.# &;-/2#0/*;p.) &;+.# &;-&&&#"),A("$;p.) &;+.# &;-0/*;p.) &;+.# &;-&"),A('2l""6l7m.e &2n""6n7o.Y &24""6475.M &26""6677.A &28""6879.5 &2@""6@7A.) &2B""6B7C'),A(";.# &;r"),A(`%;/G#;'/>$;s/5$;'/,$;/#$+%)(%'#($'#(#'#("'#&'#`),A(";M.# &;t"),A(`%;/E#28""6879/6$;u.# &;x/'$8#:Ï# )(#'#("'#&'#`),A(`%;v.# &;w/J#%26""6677/,#;/#$+")("'#&'#." &"/#$+")("'#&'#`),A(`%2Ð""6Ð7Ñ/:#;/1$;w." &"/#$+#)(#'#("'#&'#`),A(`%24""6475/,#;{/#$+")("'#&'#`),A(`%;z/3#$;y0#*;y&/#$+")("'#&'#`),A(";*.) &;+.# &;-"),A(';+. &;-. &22""6273.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),A(`%;|/e#$%24""6475/,#;|/#$+")("'#&'#0<*%24""6475/,#;|/#$+")("'#&'#&/#$+")("'#&'#`),A(`%$;~0#*;~&/e#$%22""6273/,#;}/#$+")("'#&'#0<*%22""6273/,#;}/#$+")("'#&'#&/#$+")("'#&'#`),A("$;~0#*;~&"),A(';+.w &;-.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),A(`%%;"/#$;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K0M*;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K&/#$+")("'#&'#/& 8!:Ò! )`),A(";.# &;"),A(`%%;O/2#2:""6:7;/#$+")("'#&'#." &"/,#;S/#$+")("'#&'#." &"`),A('$;+. &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A/#0*;+. &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A&&&#'),A("$;y0#*;y&"),A(`%3""5#7Ó/q#24""6475/b$$;!/�#*;!&&&#/L$2J""6J7K/=$$;!/�#*;!&&&#/'$8%:Ô% )(%'#($'#(#'#("'#&'#`),A('2Õ""6Õ7Ö'),A('2×""6×7Ø'),A('2Ù""6Ù7Ú'),A('2Û""6Û7Ü'),A('2Ý""6Ý7Þ'),A('2ß""6ß7à'),A('2á""6á7â'),A('2ã""6ã7ä'),A('2å""6å7æ'),A('2ç""6ç7è'),A('2é""6é7ê'),A("%;
.Y &;.S &;.M &;.G &;.A &;.; &;.5 &;./ &;.) &;.# &;6/& 8!:ë! )"),A(`%;/G#;'/>$;/5$;'/,$;/#$+%)(%'#($'#(#'#("'#&'#`),A("%;/' 8!:ì!! )"),A(`%;!/5#;!/,$;!/#$+#)(#'#("'#&'#`),A("%$;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(0G*;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(&/& 8!:í! )"),A(`%;¶/Y#$%;A/,#;¶/#$+")("'#&'#06*%;A/,#;¶/#$+")("'#&'#&/#$+")("'#&'#`),A(`%;9/N#%2:""6:7;/,#;9/#$+")("'#&'#." &"/'$8":î" )("'#&'#`),A(`%;:.c &%;/Y#$%;A/,#;/#$+")("'#&'#06*%;A/,#;/#$+")("'#&'#&/#$+")("'#&'#/& 8!:ï! )`),A(`%;L.# &;/]#$%;B/,#;/#$+")("'#&'#06*%;B/,#;/#$+")("'#&'#&/'$8":ð" )("'#&'#`),A(`%;." &"/>#;@/5$;M/,$;?/#$+$)($'#(#'#("'#&'#`),A(`%%;6/Y#$%;./,#;6/#$+")("'#&'#06*%;./,#;6/#$+")("'#&'#&/#$+")("'#&'#.# &;H/' 8!:ñ!! )`),A(";.) &;.# &; "),A(`%3ò""5!7ó/:#;</1$;/($8#:ô#! )(#'#("'#&'#`),A(`%3õ""5'7ö/:#;</1$;/($8#:÷#! )(#'#("'#&'#`),A("%$;!/�#*;!&&&#/' 8!:ø!! )"),A(`%2ù""6ù7ú/o#%2J""6J7K/M#;!." &"/?$;!." &"/1$;!." &"/#$+$)($'#(#'#("'#&'#." &"/'$8":û" )("'#&'#`),A(`%;6/J#%;</,#;¡/#$+")("'#&'#." &"/)$8":ü""! )("'#&'#`),A(";6.) &;T.# &;H"),A(`%;£/Y#$%;B/,#;¤/#$+")("'#&'#06*%;B/,#;¤/#$+")("'#&'#&/#$+")("'#&'#`),A(`%3ý""5&7þ.G &3ÿ""5'7Ā.; &3ā""5$7Ă./ &3ă""5%7Ą.# &;6/& 8!:ą! )`),A(";¥.# &; "),A(`%3Ć""5(7ć/M#;</D$3Ĉ""5(7ĉ./ &3Ċ""5(7ċ.# &;6/#$+#)(#'#("'#&'#`),A(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),A("%$;!/�#*;!&&&#/' 8!:Č!! )"),A("%;©/& 8!:č! )"),A(`%;ª/k#;;/b$;¯/Y$$%;B/,#;°/#$+")("'#&'#06*%;B/,#;°/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),A(";«.# &;¬"),A('3Ď""5$7ď.S &3Đ""5%7đ.G &3Ē""5%7ē.; &3Ĕ""5%7ĕ./ &3Ė""5+7ė.# &;'),A(`3Ę""5'7ę./ &3Ě""5)7ě.# &;`),A(";6.# &;®"),A(`%3Ĝ""5"7ĝ/,#;6/#$+")("'#&'#`),A(";.# &;6"),A(`%;6/5#;</,$;±/#$+#)(#'#("'#&'#`),A(";6.# &;H"),A(`%;³/5#;./,$;/#$+#)(#'#("'#&'#`),A("%$;!/�#*;!&&&#/' 8!:Ğ!! )"),A("%;/' 8!:ğ!! )"),A(`%;¶/^#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/($8":Ġ"!!)("'#&'#`),A(`%%;7/e#$%2J""6J7K/,#;7/#$+")("'#&'#0<*%2J""6J7K/,#;7/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),A(`%;L.# &;/]#$%;B/,#;¸/#$+")("'#&'#06*%;B/,#;¸/#$+")("'#&'#&/'$8":ġ" )("'#&'#`),A(";¹.# &; "),A(`%3Ģ""5#7ģ/:#;</1$;6/($8#:Ĥ#! )(#'#("'#&'#`),A("%$;!/�#*;!&&&#/' 8!:ĥ!! )"),A("%;/' 8!:Ħ!! )"),A(`%$;0#*;&/x#;@/o$;M/f$;?/]$$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8%:ħ% )(%'#($'#(#'#("'#&'#`),A(";¾"),A(`%3Ĩ""5&7ĩ/k#;./b$;Á/Y$$%;A/,#;Á/#$+")("'#&'#06*%;A/,#;Á/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#.# &;¿`),A(`%;6/k#;./b$;À/Y$$%;A/,#;À/#$+")("'#&'#06*%;A/,#;À/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),A(`%;6/;#;</2$;6.# &;H/#$+#)(#'#("'#&'#`),A(";Â.G &;Ä.A &;Æ.; &;È.5 &;É./ &;Ê.) &;Ë.# &;À"),A(`%3Ī""5%7ī/5#;</,$;Ã/#$+#)(#'#("'#&'#`),A("%;I/' 8!:Ĭ!! )"),A(`%3ĭ""5&7Į/#;</$;D/
$;Å/|$$%$;'/�#*;'&&&#/,#;Å/#$+")("'#&'#0C*%$;'/�#*;'&&&#/,#;Å/#$+")("'#&'#&/,$;E/#$+&)(&'#(%'#($'#(#'#("'#&'#`),A(";t.# &;w"),A(`%3į""5%7İ/5#;</,$;Ç/#$+#)(#'#("'#&'#`),A("%;I/' 8!:ı!! )"),A(`%3IJ""5&7ij/:#;</1$;I/($8#:Ĵ#! )(#'#("'#&'#`),A(`%3ĵ""5%7Ķ/]#;</T$%3ķ""5$7ĸ/& 8!:Ĺ! ).4 &%3ĺ""5%7Ļ/& 8!:ļ! )/#$+#)(#'#("'#&'#`),A(`%3Ľ""5)7ľ/R#;</I$3Ŀ""5#7ŀ./ &3Ł""5(7ł.# &;6/($8#:Ń#! )(#'#("'#&'#`),A(`%3ń""5#7Ņ/#;</$;D/$%;Ì/e#$%2D""6D7E/,#;Ì/#$+")("'#&'#0<*%2D""6D7E/,#;Ì/#$+")("'#&'#&/#$+")("'#&'#/,$;E/#$+%)(%'#($'#(#'#("'#&'#`),A(`%3ņ""5(7Ň./ &3ň""5$7ʼn.# &;6/' 8!:Ŋ!! )`),A(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),A(`%;Ï/G#;./>$;Ï/5$;./,$;/#$+%)(%'#($'#(#'#("'#&'#`),A("%$;!/�#*;!&&&#/' 8!:ŋ!! )"),A(`%;Ñ/]#$%;A/,#;Ñ/#$+")("'#&'#06*%;A/,#;Ñ/#$+")("'#&'#&/'$8":Ō" )("'#&'#`),A(`%;/]#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8":ō" )("'#&'#`),A(`%;L.O &;.I &%;@." &"/:#;t/1$;?." &"/#$+#)(#'#("'#&'#/]#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8":Ŏ" )("'#&'#`),A(`%;Ô/]#$%;B/,#;Õ/#$+")("'#&'#06*%;B/,#;Õ/#$+")("'#&'#&/'$8":ŏ" )("'#&'#`),A("%;/& 8!:Ő! )"),A(`%3ő""5(7Œ/:#;</1$;6/($8#:œ#! )(#'#("'#&'#.g &%3Ŕ""5&7ŕ/:#;</1$;6/($8#:Ŗ#! )(#'#("'#&'#.: &%3ŗ""5*7Ř/& 8!:ř! ).# &; `),A(`%%;6/k#$%;A/2#;6/)$8":Ś""$ )("'#&'#0<*%;A/2#;6/)$8":Ś""$ )("'#&'#&/)$8":ś""! )("'#&'#." &"/' 8!:Ŝ!! )`),A(`%;Ø/Y#$%;A/,#;Ø/#$+")("'#&'#06*%;A/,#;Ø/#$+")("'#&'#&/#$+")("'#&'#`),A(`%;/Y#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/#$+")("'#&'#`),A("%$;!/�#*;!&&&#/' 8!:ŝ!! )"),A(`%;Û/Y#$%;B/,#;Ü/#$+")("'#&'#06*%;B/,#;Ü/#$+")("'#&'#&/#$+")("'#&'#`),A(`%3Ş""5&7ş.; &3Š""5'7š./ &3Ţ""5*7ţ.# &;6/& 8!:Ť! )`),A(`%3ť""5&7Ŧ/:#;</1$;Ý/($8#:ŧ#! )(#'#("'#&'#.} &%3õ""5'7ö/:#;</1$;/($8#:Ũ#! )(#'#("'#&'#.P &%3ũ""5+7Ū/:#;</1$;/($8#:ū#! )(#'#("'#&'#.# &; `),A(`3Ŭ""5+7ŭ.k &3Ů""5)7ů._ &3Ű""5(7ű.S &3Ų""5'7ų.G &3Ŵ""5&7ŵ.; &3Ŷ""5*7ŷ./ &3Ÿ""5)7Ź.# &;6`),A(';1." &"'),A(`%%;6/k#$%;A/2#;6/)$8":Ś""$ )("'#&'#0<*%;A/2#;6/)$8":Ś""$ )("'#&'#&/)$8":ś""! )("'#&'#." &"/' 8!:ź!! )`),A(`%;L.# &;/]#$%;B/,#;á/#$+")("'#&'#06*%;B/,#;á/#$+")("'#&'#&/'$8":Ż" )("'#&'#`),A(";¹.# &; "),A(`%;ã/Y#$%;A/,#;ã/#$+")("'#&'#06*%;A/,#;ã/#$+")("'#&'#&/#$+")("'#&'#`),A(`%;ê/k#;./b$;í/Y$$%;B/,#;ä/#$+")("'#&'#06*%;B/,#;ä/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),A(";å.; &;æ.5 &;ç./ &;è.) &;é.# &; "),A(`%3ż""5#7Ž/:#;</1$;ð/($8#:ž#! )(#'#("'#&'#`),A(`%3ſ""5%7ƀ/:#;</1$;T/($8#:Ɓ#! )(#'#("'#&'#`),A(`%3Ƃ""5(7ƃ/F#;</=$;\\.) &;Y.# &;X/($8#:Ƅ#! )(#'#("'#&'#`),A(`%3ƅ""5&7Ɔ/:#;</1$;6/($8#:Ƈ#! )(#'#("'#&'#`),A(`%3ƈ""5%7Ɖ/A#;</8$$;!0#*;!&/($8#:Ɗ#! )(#'#("'#&'#`),A(`%;ë/G#;;/>$;6/5$;;/,$;ì/#$+%)(%'#($'#(#'#("'#&'#`),A(`%3""5#7Ó.# &;6/' 8!:Ƌ!! )`),A(`%3±""5#7ƌ.G &3³""5#7ƍ.; &3·""5#7Ǝ./ &3µ""5$7Ə.# &;6/' 8!:Ɛ!! )`),A(`%;î/D#%;C/,#;ï/#$+")("'#&'#." &"/#$+")("'#&'#`),A("%;U.) &;\\.# &;X/& 8!:Ƒ! )"),A(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:ƒ!! )`),A(`%%;!/?#;!." &"/1$;!." &"/#$+#)(#'#("'#&'#/' 8!:Ɠ!! )`),A(";¾"),A(`%;/^#$%;B/,#;ó/#$+")("'#&'#06*%;B/,#;ó/#$+")("'#&'#&/($8":Ɣ"!!)("'#&'#`),A(";ô.# &; "),A(`%2ƕ""6ƕ7Ɩ/L#;</C$2Ɨ""6Ɨ7Ƙ.) &2ƙ""6ƙ7ƚ/($8#:ƛ#! )(#'#("'#&'#`),A(`%;/^#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/($8":Ɯ"!!)("'#&'#`),A(`%;6/5#;0/,$;÷/#$+#)(#'#("'#&'#`),A("$;2.) &;4.# &;.0/*;2.) &;4.# &;.&"),A("$;%0#*;%&"),A(`%;ú/;#28""6879/,$;û/#$+#)(#'#("'#&'#`),A(`%3Ɲ""5%7ƞ.) &3Ɵ""5$7Ơ/' 8!:ơ!! )`),A(`%;ü/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),A("%;\\.) &;X.# &;/' 8!:Ƣ!! )"),A(';".S &;!.M &2F""6F7G.A &2J""6J7K.5 &2H""6H7I.) &2N""6N7O'),A('2L""6L7M. &2B""6B7C. &2<""6<7=.} &2R""6R7S.q &2T""6T7U.e &2V""6V7W.Y &2P""6P7Q.M &2@""6@7A.A &2D""6D7E.5 &22""6273.) &2>""6>7?'),A(`%;Ā/b#28""6879/S$;û/J$%2ƣ""6ƣ7Ƥ/,#;ì/#$+")("'#&'#." &"/#$+$)($'#(#'#("'#&'#`),A(`%3ƥ""5%7Ʀ.) &3Ƨ""5$7ƨ/' 8!:ơ!! )`),A(`%3±""5#7².6 &3³""5#7´.* &$;+0#*;+&/' 8!:Ʃ!! )`),A(`%;Ą/#2F""6F7G/x$;ă/o$2F""6F7G/\`$;ă/W$2F""6F7G/H$;ă/?$2F""6F7G/0$;ą/'$8):ƪ) )()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#`),A(`%;#/>#;#/5$;#/,$;#/#$+$)($'#(#'#("'#&'#`),A(`%;ă/,#;ă/#$+")("'#&'#`),A(`%;ă/5#;ă/,$;ă/#$+#)(#'#("'#&'#`),A(`%;q/T#$;m0#*;m&/D$%; /,#;ø/#$+")("'#&'#." &"/#$+#)(#'#("'#&'#`),A(`%2ƫ""6ƫ7Ƭ.) &2ƭ""6ƭ7Ʈ/w#;0/n$;Ĉ/e$$%;B/2#;ĉ.# &; /#$+")("'#&'#0<*%;B/2#;ĉ.# &; /#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),A(";.# &;L"),A(`%2Ư""6Ư7ư/5#;</,$;Ċ/#$+#)(#'#("'#&'#`),A(`%;D/S#;,/J$2:""6:7;/;$;,.# &;T/,$;E/#$+%)(%'#($'#(#'#("'#&'#`)];let w=0,C=0;const b=[{line:1,column:1}];let R=0,T=[],H=0,P;if(r.startRule!==void 0){if(!(r.startRule in f))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');p=f[r.startRule]}function j(){return o.substring(C,w)}function z(){return K(C,w)}function B(F,L){return{type:"literal",text:F,ignoreCase:L}}function M(F,L,N){return{type:"class",parts:F,inverted:L,ignoreCase:N}}function U(){return{type:"end"}}function q(F){let L=b[F],N;if(L)return L;for(N=F-1;!b[N];)N--;for(L=b[N],L={line:L.line,column:L.column};N<F;)o.charCodeAt(N)===10?(L.line++,L.column=1):L.column++,N++;return b[F]=L,L}function K(F,L){const N=q(F),De=q(L);return{source:l,start:{offset:F,line:N.line,column:N.column},end:{offset:L,line:De.line,column:De.column}}}function X(F){w<R||(w>R&&(R=w,T=[]),T.push(F))}function ee(F,L,N){return new Kf(Kf.buildMessage(F,L),F,L,N)}function A(F){return F.split("").map(L=>L.charCodeAt(0)-32)}function Ee(F){const L=S[F];let N=0;const De=[];let be=L.length;const $e=[],ge=[];let Ce;for(;;){for(;N<be;)switch(L[N]){case 0:ge.push(v[L[N+1]]),N+=2;break;case 1:ge.push(void 0),N++;break;case 2:ge.push(null),N++;break;case 3:ge.push(i),N++;break;case 4:ge.push([]),N++;break;case 5:ge.push(w),N++;break;case 6:ge.pop(),N++;break;case 7:w=ge.pop(),N++;break;case 8:ge.length-=L[N+1],N+=2;break;case 9:ge.splice(-2,1),N++;break;case 10:ge[ge.length-2].push(ge.pop()),N++;break;case 11:ge.push(ge.splice(ge.length-L[N+1],L[N+1])),N+=2;break;case 12:ge.push(o.substring(ge.pop(),w)),N++;break;case 13:$e.push(be),De.push(N+3+L[N+1]+L[N+2]),ge[ge.length-1]?(be=N+3+L[N+1],N+=3):(be=N+3+L[N+1]+L[N+2],N+=3+L[N+1]);break;case 14:$e.push(be),De.push(N+3+L[N+1]+L[N+2]),ge[ge.length-1]===i?(be=N+3+L[N+1],N+=3):(be=N+3+L[N+1]+L[N+2],N+=3+L[N+1]);break;case 15:$e.push(be),De.push(N+3+L[N+1]+L[N+2]),ge[ge.length-1]!==i?(be=N+3+L[N+1],N+=3):(be=N+3+L[N+1]+L[N+2],N+=3+L[N+1]);break;case 16:ge[ge.length-1]!==i?($e.push(be),De.push(N),be=N+2+L[N+1],N+=2):N+=2+L[N+1];break;case 17:$e.push(be),De.push(N+3+L[N+1]+L[N+2]),o.length>w?(be=N+3+L[N+1],N+=3):(be=N+3+L[N+1]+L[N+2],N+=3+L[N+1]);break;case 18:$e.push(be),De.push(N+4+L[N+2]+L[N+3]),o.substr(w,v[L[N+1]].length)===v[L[N+1]]?(be=N+4+L[N+2],N+=4):(be=N+4+L[N+2]+L[N+3],N+=4+L[N+2]);break;case 19:$e.push(be),De.push(N+4+L[N+2]+L[N+3]),o.substr(w,v[L[N+1]].length).toLowerCase()===v[L[N+1]]?(be=N+4+L[N+2],N+=4):(be=N+4+L[N+2]+L[N+3],N+=4+L[N+2]);break;case 20:$e.push(be),De.push(N+4+L[N+2]+L[N+3]),v[L[N+1]].test(o.charAt(w))?(be=N+4+L[N+2],N+=4):(be=N+4+L[N+2]+L[N+3],N+=4+L[N+2]);break;case 21:ge.push(o.substr(w,L[N+1])),w+=L[N+1],N+=2;break;case 22:ge.push(v[L[N+1]]),w+=v[L[N+1]].length,N+=2;break;case 23:ge.push(i),H===0&&X(v[L[N+1]]),N+=2;break;case 24:C=ge[ge.length-1-L[N+1]],N+=2;break;case 25:C=w,N++;break;case 26:Ce=L.slice(N+4,N+4+L[N+3]).map(function(He){return ge[ge.length-1-He]}),ge.splice(ge.length-L[N+2],L[N+2],v[L[N+1]].apply(null,Ce)),N+=4+L[N+3];break;case 27:ge.push(Ee(L[N+1])),N+=2;break;case 28:H++,N++;break;case 29:H--,N++;break;default:throw new Error("Invalid opcode: "+L[N]+".")}if($e.length>0)be=$e.pop(),N=De.pop();else break}return ge[0]}r.data={};function Z(F,L){return[F].concat(L)}if(P=Ee(p),P!==i&&w===o.length)return P;throw P!==i&&w<o.length&&X(U()),ee(T,R<o.length?o.charAt(R):null,R<o.length?K(R,R+1):K(R,R))}const YR=qR;var zn;(function(o){function r(f,p){const v={startRule:p};try{YR(f,v)}catch{v.data=-1}return v.data}o.parse=r;function i(f){const p=o.parse(f,"Name_Addr_Header");return p!==-1?p:void 0}o.nameAddrHeaderParse=i;function l(f){const p=o.parse(f,"SIP_URI");return p!==-1?p:void 0}o.URIParse=l})(zn=zn||(zn={}));const VR={100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"};function _c(o,r=32){let i="";for(let l=0;l<o;l++){const f=Math.floor(Math.random()*r);i+=f.toString(r)}return i}function Sv(o){return VR[o]||""}function wv(){return _c(10)}function Eo(o){const r={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},i=o.toLowerCase().replace(/_/g,"-").split("-"),l=i.length;let f="";for(let p=0;p<l;p++)p!==0&&(f+="-"),f+=i[p].charAt(0).toUpperCase()+i[p].substring(1);return r[f]&&(f=r[f]),f}function Jh(o){return encodeURIComponent(o).replace(/%[A-F\d]{2}/g,"U").length}class US{constructor(){this.headers={}}addHeader(r,i){const l={raw:i};r=Eo(r),this.headers[r]?this.headers[r].push(l):this.headers[r]=[l]}getHeader(r){const i=this.headers[Eo(r)];if(i){if(i[0])return i[0].raw}else return}getHeaders(r){const i=this.headers[Eo(r)],l=[];if(!i)return[];for(const f of i)l.push(f.raw);return l}hasHeader(r){return!!this.headers[Eo(r)]}parseHeader(r,i=0){if(r=Eo(r),this.headers[r]){if(i>=this.headers[r].length)return}else return;const l=this.headers[r][i],f=l.raw;if(l.parsed)return l.parsed;const p=zn.parse(f,r.replace(/-/g,"_"));if(p===-1){this.headers[r].splice(i,1);return}else return l.parsed=p,p}s(r,i=0){return this.parseHeader(r,i)}setHeader(r,i){this.headers[Eo(r)]=[{raw:i}]}toString(){return this.data}}class Qf extends US{constructor(){super()}}class vu extends US{constructor(){super()}}class Dc{constructor(r,i,l,f,p,v,S){this.headers={},this.extraHeaders=[],this.options=Dc.getDefaultOptions(),p&&(this.options=Object.assign(Object.assign({},this.options),p),this.options.optionTags&&this.options.optionTags.length&&(this.options.optionTags=this.options.optionTags.slice()),this.options.routeSet&&this.options.routeSet.length&&(this.options.routeSet=this.options.routeSet.slice())),v&&v.length&&(this.extraHeaders=v.slice()),S&&(this.body={body:S.content,contentType:S.contentType}),this.method=r,this.ruri=i.clone(),this.fromURI=l.clone(),this.fromTag=this.options.fromTag?this.options.fromTag:wv(),this.from=Dc.makeNameAddrHeader(this.fromURI,this.options.fromDisplayName,this.fromTag),this.toURI=f.clone(),this.toTag=this.options.toTag,this.to=Dc.makeNameAddrHeader(this.toURI,this.options.toDisplayName,this.toTag),this.callId=this.options.callId?this.options.callId:this.options.callIdPrefix+_c(15),this.cseq=this.options.cseq,this.setHeader("route",this.options.routeSet),this.setHeader("via",""),this.setHeader("to",this.to.toString()),this.setHeader("from",this.from.toString()),this.setHeader("cseq",this.cseq+" "+this.method),this.setHeader("call-id",this.callId),this.setHeader("max-forwards","70")}static getDefaultOptions(){return{callId:"",callIdPrefix:"",cseq:1,toDisplayName:"",toTag:"",fromDisplayName:"",fromTag:"",forceRport:!1,hackViaTcp:!1,optionTags:["outbound"],routeSet:[],userAgentString:"sip.js",viaHost:""}}static makeNameAddrHeader(r,i,l){const f={};return l&&(f.tag=l),new ma(r,i,f)}getHeader(r){const i=this.headers[Eo(r)];if(i){if(i[0])return i[0]}else{const l=new RegExp("^\\s*"+r+"\\s*:","i");for(const f of this.extraHeaders)if(l.test(f))return f.substring(f.indexOf(":")+1).trim()}}getHeaders(r){const i=[],l=this.headers[Eo(r)];if(l)for(const f of l)i.push(f);else{const f=new RegExp("^\\s*"+r+"\\s*:","i");for(const p of this.extraHeaders)f.test(p)&&i.push(p.substring(p.indexOf(":")+1).trim())}return i}hasHeader(r){if(this.headers[Eo(r)])return!0;{const i=new RegExp("^\\s*"+r+"\\s*:","i");for(const l of this.extraHeaders)if(i.test(l))return!0}return!1}setHeader(r,i){this.headers[Eo(r)]=i instanceof Array?i:[i]}setViaHeader(r,i){this.options.hackViaTcp&&(i="TCP");let l="SIP/2.0/"+i;l+=" "+this.options.viaHost+";branch="+r,this.options.forceRport&&(l+=";rport"),this.setHeader("via",l),this.branch=r}toString(){let r="";r+=this.method+" "+this.ruri.toRaw()+` SIP/2.0\r
|
|
375
|
+
`,!1),/^[0-9]/,M([["0","9"]],!1,!1),/^[a-zA-Z]/,M([["a","z"],["A","Z"]],!1,!1),/^[0-9a-fA-F]/,M([["0","9"],["a","f"],["A","F"]],!1,!1),/^[\0-\xFF]/,M([["\0","ÿ"]],!1,!1),/^["]/,M(['"'],!1,!1)," ",B(" ",!1)," ",B(" ",!1),/^[a-zA-Z0-9]/,M([["a","z"],["A","Z"],["0","9"]],!1,!1),";",B(";",!1),"/",B("/",!1),"?",B("?",!1),":",B(":",!1),"@",B("@",!1),"&",B("&",!1),"=",B("=",!1),"+",B("+",!1),"$",B("$",!1),",",B(",",!1),"-",B("-",!1),"_",B("_",!1),".",B(".",!1),"!",B("!",!1),"~",B("~",!1),"*",B("*",!1),"'",B("'",!1),"(",B("(",!1),")",B(")",!1),"%",B("%",!1),function(){return" "},function(){return":"},/^[!-~]/,M([["!","~"]],!1,!1),/^[\x80-\uFFFF]/,M([["",""]],!1,!1),/^[\x80-\xBF]/,M([["","¿"]],!1,!1),/^[a-f]/,M([["a","f"]],!1,!1),"`",B("`",!1),"<",B("<",!1),">",B(">",!1),"\\",B("\\",!1),"[",B("[",!1),"]",B("]",!1),"{",B("{",!1),"}",B("}",!1),function(){return"*"},function(){return"/"},function(){return"="},function(){return"("},function(){return")"},function(){return">"},function(){return"<"},function(){return","},function(){return";"},function(){return":"},function(){return'"'},/^[!-']/,M([["!","'"]],!1,!1),/^[*-[]/,M([["*","["]],!1,!1),/^[\]-~]/,M([["]","~"]],!1,!1),function(F){return F},/^[#-[]/,M([["#","["]],!1,!1),/^[\0-\t]/,M([["\0"," "]],!1,!1),/^[\v-\f]/,M([["\v","\f"]],!1,!1),/^[\x0E-\x7F]/,M([["",""]],!1,!1),function(){r=r||{data:{}},r.data.uri=new xo(r.data.scheme,r.data.user,r.data.host,r.data.port),delete r.data.scheme,delete r.data.user,delete r.data.host,delete r.data.host_type,delete r.data.port},function(){r=r||{data:{}},r.data.uri=new xo(r.data.scheme,r.data.user,r.data.host,r.data.port,r.data.uri_params,r.data.uri_headers),delete r.data.scheme,delete r.data.user,delete r.data.host,delete r.data.host_type,delete r.data.port,delete r.data.uri_params,r.startRule==="SIP_URI"&&(r.data=r.data.uri)},"sips",B("sips",!0),"sip",B("sip",!0),function(F){r=r||{data:{}},r.data.scheme=F},function(){r=r||{data:{}},r.data.user=decodeURIComponent(j().slice(0,-1))},function(){r=r||{data:{}},r.data.password=j()},function(){return r=r||{data:{}},r.data.host=j(),r.data.host},function(){return r=r||{data:{}},r.data.host_type="domain",j()},/^[a-zA-Z0-9_\-]/,M([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),/^[a-zA-Z0-9\-]/,M([["a","z"],["A","Z"],["0","9"],"-"],!1,!1),function(){return r=r||{data:{}},r.data.host_type="IPv6",j()},"::",B("::",!1),function(){return r=r||{data:{}},r.data.host_type="IPv6",j()},function(){return r=r||{data:{}},r.data.host_type="IPv4",j()},"25",B("25",!1),/^[0-5]/,M([["0","5"]],!1,!1),"2",B("2",!1),/^[0-4]/,M([["0","4"]],!1,!1),"1",B("1",!1),/^[1-9]/,M([["1","9"]],!1,!1),function(F){return r=r||{data:{}},F=parseInt(F.join("")),r.data.port=F,F},"transport=",B("transport=",!0),"udp",B("udp",!0),"tcp",B("tcp",!0),"sctp",B("sctp",!0),"tls",B("tls",!0),function(F){r=r||{data:{}},r.data.uri_params||(r.data.uri_params={}),r.data.uri_params.transport=F.toLowerCase()},"user=",B("user=",!0),"phone",B("phone",!0),"ip",B("ip",!0),function(F){r=r||{data:{}},r.data.uri_params||(r.data.uri_params={}),r.data.uri_params.user=F.toLowerCase()},"method=",B("method=",!0),function(F){r=r||{data:{}},r.data.uri_params||(r.data.uri_params={}),r.data.uri_params.method=F},"ttl=",B("ttl=",!0),function(F){r=r||{data:{}},r.data.params||(r.data.params={}),r.data.params.ttl=F},"maddr=",B("maddr=",!0),function(F){r=r||{data:{}},r.data.uri_params||(r.data.uri_params={}),r.data.uri_params.maddr=F},"lr",B("lr",!0),function(){r=r||{data:{}},r.data.uri_params||(r.data.uri_params={}),r.data.uri_params.lr=void 0},function(F,L){r=r||{data:{}},r.data.uri_params||(r.data.uri_params={}),L===null?L=void 0:L=L[1],r.data.uri_params[F.toLowerCase()]=L},function(F,L){F=F.join("").toLowerCase(),L=L.join(""),r=r||{data:{}},r.data.uri_headers||(r.data.uri_headers={}),r.data.uri_headers[F]?r.data.uri_headers[F].push(L):r.data.uri_headers[F]=[L]},function(){r=r||{data:{}},r.startRule==="Refer_To"&&(r.data.uri=new xo(r.data.scheme,r.data.user,r.data.host,r.data.port,r.data.uri_params,r.data.uri_headers),delete r.data.scheme,delete r.data.user,delete r.data.host,delete r.data.host_type,delete r.data.port,delete r.data.uri_params)},"//",B("//",!1),function(){r=r||{data:{}},r.data.scheme=j()},B("SIP",!0),function(){r=r||{data:{}},r.data.sip_version=j()},"INVITE",B("INVITE",!1),"ACK",B("ACK",!1),"VXACH",B("VXACH",!1),"OPTIONS",B("OPTIONS",!1),"BYE",B("BYE",!1),"CANCEL",B("CANCEL",!1),"REGISTER",B("REGISTER",!1),"SUBSCRIBE",B("SUBSCRIBE",!1),"NOTIFY",B("NOTIFY",!1),"REFER",B("REFER",!1),"PUBLISH",B("PUBLISH",!1),function(){return r=r||{data:{}},r.data.method=j(),r.data.method},function(F){r=r||{data:{}},r.data.status_code=parseInt(F.join(""))},function(){r=r||{data:{}},r.data.reason_phrase=j()},function(){r=r||{data:{}},r.data=j()},function(){var F,L;for(r=r||{data:{}},L=r.data.multi_header.length,F=0;F<L;F++)if(r.data.multi_header[F].parsed===null){r.data=null;break}r.data!==null?r.data=r.data.multi_header:r.data=-1},function(){var F;r=r||{data:{}},r.data.multi_header||(r.data.multi_header=[]);try{F=new ma(r.data.uri,r.data.displayName,r.data.params),delete r.data.uri,delete r.data.displayName,delete r.data.params}catch{F=null}r.data.multi_header.push({position:b,offset:z().start.offset,parsed:F})},function(F){F=j().trim(),F[0]==='"'&&(F=F.substring(1,F.length-1)),r=r||{data:{}},r.data.displayName=F},"q",B("q",!0),function(F){r=r||{data:{}},r.data.params||(r.data.params={}),r.data.params.q=F},"expires",B("expires",!0),function(F){r=r||{data:{}},r.data.params||(r.data.params={}),r.data.params.expires=F},function(F){return parseInt(F.join(""))},"0",B("0",!1),function(){return parseFloat(j())},function(F,L){r=r||{data:{}},r.data.params||(r.data.params={}),L===null?L=void 0:L=L[1],r.data.params[F.toLowerCase()]=L},"render",B("render",!0),"session",B("session",!0),"icon",B("icon",!0),"alert",B("alert",!0),function(){r=r||{data:{}},r.startRule==="Content_Disposition"&&(r.data.type=j().toLowerCase())},"handling",B("handling",!0),"optional",B("optional",!0),"required",B("required",!0),function(F){r=r||{data:{}},r.data=parseInt(F.join(""))},function(){r=r||{data:{}},r.data=j()},"text",B("text",!0),"image",B("image",!0),"audio",B("audio",!0),"video",B("video",!0),"application",B("application",!0),"message",B("message",!0),"multipart",B("multipart",!0),"x-",B("x-",!0),function(F){r=r||{data:{}},r.data.value=parseInt(F.join(""))},function(F){r=r||{data:{}},r.data=F},function(F){r=r||{data:{}},r.data.event=F.toLowerCase()},function(){r=r||{data:{}};var F=r.data.tag;r.data=new ma(r.data.uri,r.data.displayName,r.data.params),F&&r.data.setParam("tag",F)},"tag",B("tag",!0),function(F){r=r||{data:{}},r.data.tag=F},function(F){r=r||{data:{}},r.data=parseInt(F.join(""))},function(F){r=r||{data:{}},r.data=F},function(){r=r||{data:{}},r.data=new ma(r.data.uri,r.data.displayName,r.data.params)},"digest",B("Digest",!0),"realm",B("realm",!0),function(F){r=r||{data:{}},r.data.realm=F},"domain",B("domain",!0),"nonce",B("nonce",!0),function(F){r=r||{data:{}},r.data.nonce=F},"opaque",B("opaque",!0),function(F){r=r||{data:{}},r.data.opaque=F},"stale",B("stale",!0),"true",B("true",!0),function(){r=r||{data:{}},r.data.stale=!0},"false",B("false",!0),function(){r=r||{data:{}},r.data.stale=!1},"algorithm",B("algorithm",!0),"md5",B("MD5",!0),"md5-sess",B("MD5-sess",!0),function(F){r=r||{data:{}},r.data.algorithm=F.toUpperCase()},"qop",B("qop",!0),"auth-int",B("auth-int",!0),"auth",B("auth",!0),function(F){r=r||{data:{}},r.data.qop||(r.data.qop=[]),r.data.qop.push(F.toLowerCase())},function(F){r=r||{data:{}},r.data.value=parseInt(F.join(""))},function(){var F,L;for(r=r||{data:{}},L=r.data.multi_header.length,F=0;F<L;F++)if(r.data.multi_header[F].parsed===null){r.data=null;break}r.data!==null?r.data=r.data.multi_header:r.data=-1},function(){var F;r=r||{data:{}},r.data.multi_header||(r.data.multi_header=[]);try{F=new ma(r.data.uri,r.data.displayName,r.data.params),delete r.data.uri,delete r.data.displayName,delete r.data.params}catch{F=null}r.data.multi_header.push({position:b,offset:z().start.offset,parsed:F})},function(){r=r||{data:{}},r.data=new ma(r.data.uri,r.data.displayName,r.data.params)},function(){r=r||{data:{}},r.data.replaces_from_tag&&r.data.replaces_to_tag||(r.data=-1)},function(){r=r||{data:{}},r.data={call_id:r.data}},"from-tag",B("from-tag",!0),function(F){r=r||{data:{}},r.data.replaces_from_tag=F},"to-tag",B("to-tag",!0),function(F){r=r||{data:{}},r.data.replaces_to_tag=F},"early-only",B("early-only",!0),function(){r=r||{data:{}},r.data.early_only=!0},function(F,L){return L},function(F,L){return Z(F,L)},function(F){r=r||{data:{}},r.startRule==="Require"&&(r.data=F||[])},function(F){r=r||{data:{}},r.data.value=parseInt(F.join(""))},"active",B("active",!0),"pending",B("pending",!0),"terminated",B("terminated",!0),function(){r=r||{data:{}},r.data.state=j()},"reason",B("reason",!0),function(F){r=r||{data:{}},typeof F<"u"&&(r.data.reason=F)},function(F){r=r||{data:{}},typeof F<"u"&&(r.data.expires=F)},"retry_after",B("retry_after",!0),function(F){r=r||{data:{}},typeof F<"u"&&(r.data.retry_after=F)},"deactivated",B("deactivated",!0),"probation",B("probation",!0),"rejected",B("rejected",!0),"timeout",B("timeout",!0),"giveup",B("giveup",!0),"noresource",B("noresource",!0),"invariant",B("invariant",!0),function(F){r=r||{data:{}},r.startRule==="Supported"&&(r.data=F||[])},function(){r=r||{data:{}};var F=r.data.tag;r.data=new ma(r.data.uri,r.data.displayName,r.data.params),F&&r.data.setParam("tag",F)},"ttl",B("ttl",!0),function(F){r=r||{data:{}},r.data.ttl=F},"maddr",B("maddr",!0),function(F){r=r||{data:{}},r.data.maddr=F},"received",B("received",!0),function(F){r=r||{data:{}},r.data.received=F},"branch",B("branch",!0),function(F){r=r||{data:{}},r.data.branch=F},"rport",B("rport",!0),function(F){r=r||{data:{}},typeof F<"u"&&(r.data.rport=F.join(""))},function(F){r=r||{data:{}},r.data.protocol=F},B("UDP",!0),B("TCP",!0),B("TLS",!0),B("SCTP",!0),function(F){r=r||{data:{}},r.data.transport=F},function(){r=r||{data:{}},r.data.host=j()},function(F){r=r||{data:{}},r.data.port=parseInt(F.join(""))},function(F){return parseInt(F.join(""))},function(F){r=r||{data:{}},r.startRule==="Session_Expires"&&(r.data.deltaSeconds=F)},"refresher",B("refresher",!1),"uas",B("uas",!1),"uac",B("uac",!1),function(F){r=r||{data:{}},r.startRule==="Session_Expires"&&(r.data.refresher=F)},function(F){r=r||{data:{}},r.startRule==="Min_SE"&&(r.data=F)},"stuns",B("stuns",!0),"stun",B("stun",!0),function(F){r=r||{data:{}},r.data.scheme=F},function(F){r=r||{data:{}},r.data.host=F},"?transport=",B("?transport=",!1),"turns",B("turns",!0),"turn",B("turn",!0),function(F){r=r||{data:{}},r.data.transport=F},function(){r=r||{data:{}},r.data=j()},"Referred-By",B("Referred-By",!1),"b",B("b",!1),"cid",B("cid",!1)],S=[R('2 ""6 7!'),R('4"""5!7#'),R('4$""5!7%'),R(`4&""5!7'`),R(";'.# &;("),R('4(""5!7)'),R('4*""5!7+'),R('2,""6,7-'),R('2.""6.7/'),R('40""5!71'),R('22""6273. &24""6475.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),R(";).# &;,"),R('2F""6F7G.} &2H""6H7I.q &2J""6J7K.e &2L""6L7M.Y &2N""6N7O.M &2P""6P7Q.A &2R""6R7S.5 &2T""6T7U.) &2V""6V7W'),R(`%%2X""6X7Y/5#;#/,$;#/#$+#)(#'#("'#&'#/"!&,)`),R(`%%$;$0#*;$&/,#; /#$+")("'#&'#." &"/=#$;$/�#*;$&&&#/'$8":Z" )("'#&'#`),R(';.." &"'),R(`%$;'.# &;(0)*;'.# &;(&/?#28""6879/0$;//'$8#:[# )(#'#("'#&'#`),R(`%%$;2/�#*;2&&&#/g#$%$;.0#*;.&/,#;2/#$+")("'#&'#0=*%$;.0#*;.&/,#;2/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),R('4\\""5!7].# &;3'),R('4^""5!7_'),R('4`""5!7a'),R(';!.) &4b""5!7c'),R('%$;). &2F""6F7G. &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/#0*;). &2F""6F7G. &2J""6J7K.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),R('%$;). &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O/#0*;). &2F""6F7G.} &2L""6L7M.q &2X""6X7Y.e &2P""6P7Q.Y &2H""6H7I.M &2@""6@7A.A &2d""6d7e.5 &2R""6R7S.) &2N""6N7O&&&#/"!&,)'),R(`2T""6T7U.ã &2V""6V7W.× &2f""6f7g.Ë &2h""6h7i.¿ &2:""6:7;.³ &2D""6D7E.§ &22""6273. &28""6879. &2j""6j7k. &;&.} &24""6475.q &2l""6l7m.e &2n""6n7o.Y &26""6677.M &2>""6>7?.A &2p""6p7q.5 &2r""6r7s.) &;'.# &;(`),R('%$;).ī &2F""6F7G.ğ &2J""6J7K.ē &2L""6L7M.ć &2X""6X7Y.û &2P""6P7Q.ï &2H""6H7I.ã &2@""6@7A.× &2d""6d7e.Ë &2R""6R7S.¿ &2N""6N7O.³ &2T""6T7U.§ &2V""6V7W. &2f""6f7g. &2h""6h7i. &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s/Ĵ#0ı*;).ī &2F""6F7G.ğ &2J""6J7K.ē &2L""6L7M.ć &2X""6X7Y.û &2P""6P7Q.ï &2H""6H7I.ã &2@""6@7A.× &2d""6d7e.Ë &2R""6R7S.¿ &2N""6N7O.³ &2T""6T7U.§ &2V""6V7W. &2f""6f7g. &2h""6h7i. &28""6879.w &2j""6j7k.k &;&.e &24""6475.Y &2l""6l7m.M &2n""6n7o.A &26""6677.5 &2p""6p7q.) &2r""6r7s&&&#/"!&,)'),R(`%;//?#2P""6P7Q/0$;//'$8#:t# )(#'#("'#&'#`),R(`%;//?#24""6475/0$;//'$8#:u# )(#'#("'#&'#`),R(`%;//?#2>""6>7?/0$;//'$8#:v# )(#'#("'#&'#`),R(`%;//?#2T""6T7U/0$;//'$8#:w# )(#'#("'#&'#`),R(`%;//?#2V""6V7W/0$;//'$8#:x# )(#'#("'#&'#`),R(`%2h""6h7i/0#;//'$8":y" )("'#&'#`),R(`%;//6#2f""6f7g/'$8":z" )("'#&'#`),R(`%;//?#2D""6D7E/0$;//'$8#:{# )(#'#("'#&'#`),R(`%;//?#22""6273/0$;//'$8#:|# )(#'#("'#&'#`),R(`%;//?#28""6879/0$;//'$8#:}# )(#'#("'#&'#`),R(`%;//0#;&/'$8":~" )("'#&'#`),R(`%;&/0#;//'$8":~" )("'#&'#`),R(`%;=/T#$;G.) &;K.# &;F0/*;G.) &;K.# &;F&/,$;>/#$+#)(#'#("'#&'#`),R('4""5!7.A &4""5!7.5 &4""5!7.) &;3.# &;.'),R(`%%;//Q#;&/H$$;J.# &;K0)*;J.# &;K&/,$;&/#$+$)($'#(#'#("'#&'#/"!&,)`),R(`%;//]#;&/T$%$;J.# &;K0)*;J.# &;K&/"!&,)/1$;&/($8$:
$!!)($'#(#'#("'#&'#`),R(';..G &2L""6L7M.; &4""5!7./ &4""5!7.# &;3'),R(`%2j""6j7k/J#4""5!7.5 &4""5!7.) &4""5!7/#$+")("'#&'#`),R(`%;N/M#28""6879/>$;O." &"/0$;S/'$8$:$ )($'#(#'#("'#&'#`),R(`%;N/d#28""6879/U$;O." &"/G$;S/>$;_/5$;l." &"/'$8&:& )(&'#(%'#($'#(#'#("'#&'#`),R(`%3""5$7.) &3""5#7/' 8!:!! )`),R(`%;P/]#%28""6879/,#;R/#$+")("'#&'#." &"/6$2:""6:7;/'$8#:# )(#'#("'#&'#`),R("$;+.) &;-.# &;Q/2#0/*;+.) &;-.# &;Q&&&#"),R('2<""6<7=.q &2>""6>7?.e &2@""6@7A.Y &2B""6B7C.M &2D""6D7E.A &22""6273.5 &26""6677.) &24""6475'),R('%$;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E0e*;+._ &;-.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E&/& 8!:! )'),R(`%;T/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),R("%;U.) &;\\.# &;X/& 8!:! )"),R(`%$%;V/2#2J""6J7K/#$+")("'#&'#0<*%;V/2#2J""6J7K/#$+")("'#&'#&/D#;W/;$2J""6J7K." &"/'$8#:# )(#'#("'#&'#`),R('$4""5!7/,#0)*4""5!7&&&#'),R(`%4$""5!7%/?#$4""5!70)*4""5!7&/#$+")("'#&'#`),R(`%2l""6l7m/?#;Y/6$2n""6n7o/'$8#:# )(#'#("'#&'#`),R(`%%;Z/³#28""6879/¤$;Z/$28""6879/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+-)(-'#(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.ސ &%2""67/¤#;Z/$28""6879/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+,)(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.۹ &%2""67/#;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.ٺ &%2""67/t#;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.ؓ &%2""67/\\#;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+&)(&'#(%'#($'#(#'#("'#&'#.ׄ &%2""67/D#;Z/;$28""6879/,$;[/#$+$)($'#(#'#("'#&'#.֍ &%2""67/,#;[/#$+")("'#&'#.ծ &%2""67/,#;Z/#$+")("'#&'#.Տ &%;Z/#2""67/$;Z/$28""6879/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$++)(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ӈ &%;Z/ª#%28""6879/,#;Z/#$+")("'#&'#." &"/$2""67/t$;Z/k$28""6879/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+*)(*'#()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.а &%;Z/¹#%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/k$2""67/\\$;Z/S$28""6879/D$;Z/;$28""6879/,$;[/#$+))()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ί &%;Z/È#%28""6879/,#;Z/#$+")("'#&'#." &"/¡$%28""6879/,#;Z/#$+")("'#&'#." &"/z$%28""6879/,#;Z/#$+")("'#&'#." &"/S$2""67/D$;Z/;$28""6879/,$;[/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.˕ &%;Z/×#%28""6879/,#;Z/#$+")("'#&'#." &"/°$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2""67/,$;[/#$+')(''#(&'#(%'#($'#(#'#("'#&'#.ȑ &%;Z/þ#%28""6879/,#;Z/#$+")("'#&'#." &"/×$%28""6879/,#;Z/#$+")("'#&'#." &"/°$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/b$%28""6879/,#;Z/#$+")("'#&'#." &"/;$2""67/,$;Z/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#.Ħ &%;Z/Ĝ#%28""6879/,#;Z/#$+")("'#&'#." &"/õ$%28""6879/,#;Z/#$+")("'#&'#." &"/Î$%28""6879/,#;Z/#$+")("'#&'#." &"/§$%28""6879/,#;Z/#$+")("'#&'#." &"/$%28""6879/,#;Z/#$+")("'#&'#." &"/Y$%28""6879/,#;Z/#$+")("'#&'#." &"/2$2""67/#$+()(('#(''#(&'#(%'#($'#(#'#("'#&'#/& 8!: ! )`),R(`%;#/M#;#." &"/?$;#." &"/1$;#." &"/#$+$)($'#(#'#("'#&'#`),R(`%;Z/;#28""6879/,$;Z/#$+#)(#'#("'#&'#.# &;\\`),R(`%;]/o#2J""6J7K/\`$;]/W$2J""6J7K/H$;]/?$2J""6J7K/0$;]/'$8':¡' )(''#(&'#(%'#($'#(#'#("'#&'#`),R(`%2¢""6¢7£/2#4¤""5!7¥/#$+")("'#&'#. &%2¦""6¦7§/;#4¨""5!7©/,$;!/#$+#)(#'#("'#&'#.j &%2ª""6ª7«/5#;!/,$;!/#$+#)(#'#("'#&'#.B &%4¬""5!7/,#;!/#$+")("'#&'#.# &;!`),R(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:®!! )`),R(`$%22""6273/,#;\`/#$+")("'#&'#0<*%22""6273/,#;\`/#$+")("'#&'#&`),R(";a.A &;b.; &;c.5 &;d./ &;e.) &;f.# &;g"),R(`%3¯""5*7°/a#3±""5#7².G &3³""5#7´.; &3µ""5$7¶./ &3·""5#7¸.# &;6/($8":¹"! )("'#&'#`),R(`%3º""5%7»/I#3¼""5%7½./ &3¾""5"7¿.# &;6/($8":À"! )("'#&'#`),R(`%3Á""5'7Â/1#;/($8":Ã"! )("'#&'#`),R(`%3Ä""5$7Å/1#;ð/($8":Æ"! )("'#&'#`),R(`%3Ç""5&7È/1#;T/($8":É"! )("'#&'#`),R(`%3Ê""5"7Ë/N#%2>""6>7?/,#;6/#$+")("'#&'#." &"/'$8":Ì" )("'#&'#`),R(`%;h/P#%2>""6>7?/,#;i/#$+")("'#&'#." &"/)$8":Í""! )("'#&'#`),R('%$;j/�#*;j&&&#/"!&,)'),R('%$;j/�#*;j&&&#/"!&,)'),R(";k.) &;+.# &;-"),R('2l""6l7m.e &2n""6n7o.Y &24""6475.M &28""6879.A &2<""6<7=.5 &2@""6@7A.) &2B""6B7C'),R(`%26""6677/n#;m/e$$%2<""6<7=/,#;m/#$+")("'#&'#0<*%2<""6<7=/,#;m/#$+")("'#&'#&/#$+#)(#'#("'#&'#`),R(`%;n/A#2>""6>7?/2$;o/)$8#:Î#"" )(#'#("'#&'#`),R("$;p.) &;+.# &;-/2#0/*;p.) &;+.# &;-&&&#"),R("$;p.) &;+.# &;-0/*;p.) &;+.# &;-&"),R('2l""6l7m.e &2n""6n7o.Y &24""6475.M &26""6677.A &28""6879.5 &2@""6@7A.) &2B""6B7C'),R(";.# &;r"),R(`%;/G#;'/>$;s/5$;'/,$;/#$+%)(%'#($'#(#'#("'#&'#`),R(";M.# &;t"),R(`%;/E#28""6879/6$;u.# &;x/'$8#:Ï# )(#'#("'#&'#`),R(`%;v.# &;w/J#%26""6677/,#;/#$+")("'#&'#." &"/#$+")("'#&'#`),R(`%2Ð""6Ð7Ñ/:#;/1$;w." &"/#$+#)(#'#("'#&'#`),R(`%24""6475/,#;{/#$+")("'#&'#`),R(`%;z/3#$;y0#*;y&/#$+")("'#&'#`),R(";*.) &;+.# &;-"),R(';+. &;-. &22""6273.} &26""6677.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),R(`%;|/e#$%24""6475/,#;|/#$+")("'#&'#0<*%24""6475/,#;|/#$+")("'#&'#&/#$+")("'#&'#`),R(`%$;~0#*;~&/e#$%22""6273/,#;}/#$+")("'#&'#0<*%22""6273/,#;}/#$+")("'#&'#&/#$+")("'#&'#`),R("$;~0#*;~&"),R(';+.w &;-.q &28""6879.e &2:""6:7;.Y &2<""6<7=.M &2>""6>7?.A &2@""6@7A.5 &2B""6B7C.) &2D""6D7E'),R(`%%;"/#$;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K0M*;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K&/#$+")("'#&'#/& 8!:Ò! )`),R(";.# &;"),R(`%%;O/2#2:""6:7;/#$+")("'#&'#." &"/,#;S/#$+")("'#&'#." &"`),R('$;+. &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A/#0*;+. &;-.} &2B""6B7C.q &2D""6D7E.e &22""6273.Y &28""6879.M &2:""6:7;.A &2<""6<7=.5 &2>""6>7?.) &2@""6@7A&&&#'),R("$;y0#*;y&"),R(`%3""5#7Ó/q#24""6475/b$$;!/�#*;!&&&#/L$2J""6J7K/=$$;!/�#*;!&&&#/'$8%:Ô% )(%'#($'#(#'#("'#&'#`),R('2Õ""6Õ7Ö'),R('2×""6×7Ø'),R('2Ù""6Ù7Ú'),R('2Û""6Û7Ü'),R('2Ý""6Ý7Þ'),R('2ß""6ß7à'),R('2á""6á7â'),R('2ã""6ã7ä'),R('2å""6å7æ'),R('2ç""6ç7è'),R('2é""6é7ê'),R("%;
.Y &;.S &;.M &;.G &;.A &;.; &;.5 &;./ &;.) &;.# &;6/& 8!:ë! )"),R(`%;/G#;'/>$;/5$;'/,$;/#$+%)(%'#($'#(#'#("'#&'#`),R("%;/' 8!:ì!! )"),R(`%;!/5#;!/,$;!/#$+#)(#'#("'#&'#`),R("%$;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(0G*;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(&/& 8!:í! )"),R(`%;¶/Y#$%;A/,#;¶/#$+")("'#&'#06*%;A/,#;¶/#$+")("'#&'#&/#$+")("'#&'#`),R(`%;9/N#%2:""6:7;/,#;9/#$+")("'#&'#." &"/'$8":î" )("'#&'#`),R(`%;:.c &%;/Y#$%;A/,#;/#$+")("'#&'#06*%;A/,#;/#$+")("'#&'#&/#$+")("'#&'#/& 8!:ï! )`),R(`%;L.# &;/]#$%;B/,#;/#$+")("'#&'#06*%;B/,#;/#$+")("'#&'#&/'$8":ð" )("'#&'#`),R(`%;." &"/>#;@/5$;M/,$;?/#$+$)($'#(#'#("'#&'#`),R(`%%;6/Y#$%;./,#;6/#$+")("'#&'#06*%;./,#;6/#$+")("'#&'#&/#$+")("'#&'#.# &;H/' 8!:ñ!! )`),R(";.) &;.# &; "),R(`%3ò""5!7ó/:#;</1$;/($8#:ô#! )(#'#("'#&'#`),R(`%3õ""5'7ö/:#;</1$;/($8#:÷#! )(#'#("'#&'#`),R("%$;!/�#*;!&&&#/' 8!:ø!! )"),R(`%2ù""6ù7ú/o#%2J""6J7K/M#;!." &"/?$;!." &"/1$;!." &"/#$+$)($'#(#'#("'#&'#." &"/'$8":û" )("'#&'#`),R(`%;6/J#%;</,#;¡/#$+")("'#&'#." &"/)$8":ü""! )("'#&'#`),R(";6.) &;T.# &;H"),R(`%;£/Y#$%;B/,#;¤/#$+")("'#&'#06*%;B/,#;¤/#$+")("'#&'#&/#$+")("'#&'#`),R(`%3ý""5&7þ.G &3ÿ""5'7Ā.; &3ā""5$7Ă./ &3ă""5%7Ą.# &;6/& 8!:ą! )`),R(";¥.# &; "),R(`%3Ć""5(7ć/M#;</D$3Ĉ""5(7ĉ./ &3Ċ""5(7ċ.# &;6/#$+#)(#'#("'#&'#`),R(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),R("%$;!/�#*;!&&&#/' 8!:Č!! )"),R("%;©/& 8!:č! )"),R(`%;ª/k#;;/b$;¯/Y$$%;B/,#;°/#$+")("'#&'#06*%;B/,#;°/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),R(";«.# &;¬"),R('3Ď""5$7ď.S &3Đ""5%7đ.G &3Ē""5%7ē.; &3Ĕ""5%7ĕ./ &3Ė""5+7ė.# &;'),R(`3Ę""5'7ę./ &3Ě""5)7ě.# &;`),R(";6.# &;®"),R(`%3Ĝ""5"7ĝ/,#;6/#$+")("'#&'#`),R(";.# &;6"),R(`%;6/5#;</,$;±/#$+#)(#'#("'#&'#`),R(";6.# &;H"),R(`%;³/5#;./,$;/#$+#)(#'#("'#&'#`),R("%$;!/�#*;!&&&#/' 8!:Ğ!! )"),R("%;/' 8!:ğ!! )"),R(`%;¶/^#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/($8":Ġ"!!)("'#&'#`),R(`%%;7/e#$%2J""6J7K/,#;7/#$+")("'#&'#0<*%2J""6J7K/,#;7/#$+")("'#&'#&/#$+")("'#&'#/"!&,)`),R(`%;L.# &;/]#$%;B/,#;¸/#$+")("'#&'#06*%;B/,#;¸/#$+")("'#&'#&/'$8":ġ" )("'#&'#`),R(";¹.# &; "),R(`%3Ģ""5#7ģ/:#;</1$;6/($8#:Ĥ#! )(#'#("'#&'#`),R("%$;!/�#*;!&&&#/' 8!:ĥ!! )"),R("%;/' 8!:Ħ!! )"),R(`%$;0#*;&/x#;@/o$;M/f$;?/]$$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8%:ħ% )(%'#($'#(#'#("'#&'#`),R(";¾"),R(`%3Ĩ""5&7ĩ/k#;./b$;Á/Y$$%;A/,#;Á/#$+")("'#&'#06*%;A/,#;Á/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#.# &;¿`),R(`%;6/k#;./b$;À/Y$$%;A/,#;À/#$+")("'#&'#06*%;A/,#;À/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),R(`%;6/;#;</2$;6.# &;H/#$+#)(#'#("'#&'#`),R(";Â.G &;Ä.A &;Æ.; &;È.5 &;É./ &;Ê.) &;Ë.# &;À"),R(`%3Ī""5%7ī/5#;</,$;Ã/#$+#)(#'#("'#&'#`),R("%;I/' 8!:Ĭ!! )"),R(`%3ĭ""5&7Į/#;</$;D/
$;Å/|$$%$;'/�#*;'&&&#/,#;Å/#$+")("'#&'#0C*%$;'/�#*;'&&&#/,#;Å/#$+")("'#&'#&/,$;E/#$+&)(&'#(%'#($'#(#'#("'#&'#`),R(";t.# &;w"),R(`%3į""5%7İ/5#;</,$;Ç/#$+#)(#'#("'#&'#`),R("%;I/' 8!:ı!! )"),R(`%3IJ""5&7ij/:#;</1$;I/($8#:Ĵ#! )(#'#("'#&'#`),R(`%3ĵ""5%7Ķ/]#;</T$%3ķ""5$7ĸ/& 8!:Ĺ! ).4 &%3ĺ""5%7Ļ/& 8!:ļ! )/#$+#)(#'#("'#&'#`),R(`%3Ľ""5)7ľ/R#;</I$3Ŀ""5#7ŀ./ &3Ł""5(7ł.# &;6/($8#:Ń#! )(#'#("'#&'#`),R(`%3ń""5#7Ņ/#;</$;D/$%;Ì/e#$%2D""6D7E/,#;Ì/#$+")("'#&'#0<*%2D""6D7E/,#;Ì/#$+")("'#&'#&/#$+")("'#&'#/,$;E/#$+%)(%'#($'#(#'#("'#&'#`),R(`%3ņ""5(7Ň./ &3ň""5$7ʼn.# &;6/' 8!:Ŋ!! )`),R(`%;6/Y#$%;A/,#;6/#$+")("'#&'#06*%;A/,#;6/#$+")("'#&'#&/#$+")("'#&'#`),R(`%;Ï/G#;./>$;Ï/5$;./,$;/#$+%)(%'#($'#(#'#("'#&'#`),R("%$;!/�#*;!&&&#/' 8!:ŋ!! )"),R(`%;Ñ/]#$%;A/,#;Ñ/#$+")("'#&'#06*%;A/,#;Ñ/#$+")("'#&'#&/'$8":Ō" )("'#&'#`),R(`%;/]#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8":ō" )("'#&'#`),R(`%;L.O &;.I &%;@." &"/:#;t/1$;?." &"/#$+#)(#'#("'#&'#/]#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/'$8":Ŏ" )("'#&'#`),R(`%;Ô/]#$%;B/,#;Õ/#$+")("'#&'#06*%;B/,#;Õ/#$+")("'#&'#&/'$8":ŏ" )("'#&'#`),R("%;/& 8!:Ő! )"),R(`%3ő""5(7Œ/:#;</1$;6/($8#:œ#! )(#'#("'#&'#.g &%3Ŕ""5&7ŕ/:#;</1$;6/($8#:Ŗ#! )(#'#("'#&'#.: &%3ŗ""5*7Ř/& 8!:ř! ).# &; `),R(`%%;6/k#$%;A/2#;6/)$8":Ś""$ )("'#&'#0<*%;A/2#;6/)$8":Ś""$ )("'#&'#&/)$8":ś""! )("'#&'#." &"/' 8!:Ŝ!! )`),R(`%;Ø/Y#$%;A/,#;Ø/#$+")("'#&'#06*%;A/,#;Ø/#$+")("'#&'#&/#$+")("'#&'#`),R(`%;/Y#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/#$+")("'#&'#`),R("%$;!/�#*;!&&&#/' 8!:ŝ!! )"),R(`%;Û/Y#$%;B/,#;Ü/#$+")("'#&'#06*%;B/,#;Ü/#$+")("'#&'#&/#$+")("'#&'#`),R(`%3Ş""5&7ş.; &3Š""5'7š./ &3Ţ""5*7ţ.# &;6/& 8!:Ť! )`),R(`%3ť""5&7Ŧ/:#;</1$;Ý/($8#:ŧ#! )(#'#("'#&'#.} &%3õ""5'7ö/:#;</1$;/($8#:Ũ#! )(#'#("'#&'#.P &%3ũ""5+7Ū/:#;</1$;/($8#:ū#! )(#'#("'#&'#.# &; `),R(`3Ŭ""5+7ŭ.k &3Ů""5)7ů._ &3Ű""5(7ű.S &3Ų""5'7ų.G &3Ŵ""5&7ŵ.; &3Ŷ""5*7ŷ./ &3Ÿ""5)7Ź.# &;6`),R(';1." &"'),R(`%%;6/k#$%;A/2#;6/)$8":Ś""$ )("'#&'#0<*%;A/2#;6/)$8":Ś""$ )("'#&'#&/)$8":ś""! )("'#&'#." &"/' 8!:ź!! )`),R(`%;L.# &;/]#$%;B/,#;á/#$+")("'#&'#06*%;B/,#;á/#$+")("'#&'#&/'$8":Ż" )("'#&'#`),R(";¹.# &; "),R(`%;ã/Y#$%;A/,#;ã/#$+")("'#&'#06*%;A/,#;ã/#$+")("'#&'#&/#$+")("'#&'#`),R(`%;ê/k#;./b$;í/Y$$%;B/,#;ä/#$+")("'#&'#06*%;B/,#;ä/#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),R(";å.; &;æ.5 &;ç./ &;è.) &;é.# &; "),R(`%3ż""5#7Ž/:#;</1$;ð/($8#:ž#! )(#'#("'#&'#`),R(`%3ſ""5%7ƀ/:#;</1$;T/($8#:Ɓ#! )(#'#("'#&'#`),R(`%3Ƃ""5(7ƃ/F#;</=$;\\.) &;Y.# &;X/($8#:Ƅ#! )(#'#("'#&'#`),R(`%3ƅ""5&7Ɔ/:#;</1$;6/($8#:Ƈ#! )(#'#("'#&'#`),R(`%3ƈ""5%7Ɖ/A#;</8$$;!0#*;!&/($8#:Ɗ#! )(#'#("'#&'#`),R(`%;ë/G#;;/>$;6/5$;;/,$;ì/#$+%)(%'#($'#(#'#("'#&'#`),R(`%3""5#7Ó.# &;6/' 8!:Ƌ!! )`),R(`%3±""5#7ƌ.G &3³""5#7ƍ.; &3·""5#7Ǝ./ &3µ""5$7Ə.# &;6/' 8!:Ɛ!! )`),R(`%;î/D#%;C/,#;ï/#$+")("'#&'#." &"/#$+")("'#&'#`),R("%;U.) &;\\.# &;X/& 8!:Ƒ! )"),R(`%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%'#($'#(#'#("'#&'#/' 8!:ƒ!! )`),R(`%%;!/?#;!." &"/1$;!." &"/#$+#)(#'#("'#&'#/' 8!:Ɠ!! )`),R(";¾"),R(`%;/^#$%;B/,#;ó/#$+")("'#&'#06*%;B/,#;ó/#$+")("'#&'#&/($8":Ɣ"!!)("'#&'#`),R(";ô.# &; "),R(`%2ƕ""6ƕ7Ɩ/L#;</C$2Ɨ""6Ɨ7Ƙ.) &2ƙ""6ƙ7ƚ/($8#:ƛ#! )(#'#("'#&'#`),R(`%;/^#$%;B/,#; /#$+")("'#&'#06*%;B/,#; /#$+")("'#&'#&/($8":Ɯ"!!)("'#&'#`),R(`%;6/5#;0/,$;÷/#$+#)(#'#("'#&'#`),R("$;2.) &;4.# &;.0/*;2.) &;4.# &;.&"),R("$;%0#*;%&"),R(`%;ú/;#28""6879/,$;û/#$+#)(#'#("'#&'#`),R(`%3Ɲ""5%7ƞ.) &3Ɵ""5$7Ơ/' 8!:ơ!! )`),R(`%;ü/J#%28""6879/,#;^/#$+")("'#&'#." &"/#$+")("'#&'#`),R("%;\\.) &;X.# &;/' 8!:Ƣ!! )"),R(';".S &;!.M &2F""6F7G.A &2J""6J7K.5 &2H""6H7I.) &2N""6N7O'),R('2L""6L7M. &2B""6B7C. &2<""6<7=.} &2R""6R7S.q &2T""6T7U.e &2V""6V7W.Y &2P""6P7Q.M &2@""6@7A.A &2D""6D7E.5 &22""6273.) &2>""6>7?'),R(`%;Ā/b#28""6879/S$;û/J$%2ƣ""6ƣ7Ƥ/,#;ì/#$+")("'#&'#." &"/#$+$)($'#(#'#("'#&'#`),R(`%3ƥ""5%7Ʀ.) &3Ƨ""5$7ƨ/' 8!:ơ!! )`),R(`%3±""5#7².6 &3³""5#7´.* &$;+0#*;+&/' 8!:Ʃ!! )`),R(`%;Ą/#2F""6F7G/x$;ă/o$2F""6F7G/\`$;ă/W$2F""6F7G/H$;ă/?$2F""6F7G/0$;ą/'$8):ƪ) )()'#(('#(''#(&'#(%'#($'#(#'#("'#&'#`),R(`%;#/>#;#/5$;#/,$;#/#$+$)($'#(#'#("'#&'#`),R(`%;ă/,#;ă/#$+")("'#&'#`),R(`%;ă/5#;ă/,$;ă/#$+#)(#'#("'#&'#`),R(`%;q/T#$;m0#*;m&/D$%; /,#;ø/#$+")("'#&'#." &"/#$+#)(#'#("'#&'#`),R(`%2ƫ""6ƫ7Ƭ.) &2ƭ""6ƭ7Ʈ/w#;0/n$;Ĉ/e$$%;B/2#;ĉ.# &; /#$+")("'#&'#0<*%;B/2#;ĉ.# &; /#$+")("'#&'#&/#$+$)($'#(#'#("'#&'#`),R(";.# &;L"),R(`%2Ư""6Ư7ư/5#;</,$;Ċ/#$+#)(#'#("'#&'#`),R(`%;D/S#;,/J$2:""6:7;/;$;,.# &;T/,$;E/#$+%)(%'#($'#(#'#("'#&'#`)];let b=0,C=0;const w=[{line:1,column:1}];let T=0,A=[],H=0,P;if(r.startRule!==void 0){if(!(r.startRule in f))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');p=f[r.startRule]}function j(){return o.substring(C,b)}function z(){return K(C,b)}function B(F,L){return{type:"literal",text:F,ignoreCase:L}}function M(F,L,N){return{type:"class",parts:F,inverted:L,ignoreCase:N}}function U(){return{type:"end"}}function q(F){let L=w[F],N;if(L)return L;for(N=F-1;!w[N];)N--;for(L=w[N],L={line:L.line,column:L.column};N<F;)o.charCodeAt(N)===10?(L.line++,L.column=1):L.column++,N++;return w[F]=L,L}function K(F,L){const N=q(F),De=q(L);return{source:l,start:{offset:F,line:N.line,column:N.column},end:{offset:L,line:De.line,column:De.column}}}function X(F){b<T||(b>T&&(T=b,A=[]),A.push(F))}function ee(F,L,N){return new Kf(Kf.buildMessage(F,L),F,L,N)}function R(F){return F.split("").map(L=>L.charCodeAt(0)-32)}function Ee(F){const L=S[F];let N=0;const De=[];let be=L.length;const $e=[],ge=[];let Ce;for(;;){for(;N<be;)switch(L[N]){case 0:ge.push(v[L[N+1]]),N+=2;break;case 1:ge.push(void 0),N++;break;case 2:ge.push(null),N++;break;case 3:ge.push(i),N++;break;case 4:ge.push([]),N++;break;case 5:ge.push(b),N++;break;case 6:ge.pop(),N++;break;case 7:b=ge.pop(),N++;break;case 8:ge.length-=L[N+1],N+=2;break;case 9:ge.splice(-2,1),N++;break;case 10:ge[ge.length-2].push(ge.pop()),N++;break;case 11:ge.push(ge.splice(ge.length-L[N+1],L[N+1])),N+=2;break;case 12:ge.push(o.substring(ge.pop(),b)),N++;break;case 13:$e.push(be),De.push(N+3+L[N+1]+L[N+2]),ge[ge.length-1]?(be=N+3+L[N+1],N+=3):(be=N+3+L[N+1]+L[N+2],N+=3+L[N+1]);break;case 14:$e.push(be),De.push(N+3+L[N+1]+L[N+2]),ge[ge.length-1]===i?(be=N+3+L[N+1],N+=3):(be=N+3+L[N+1]+L[N+2],N+=3+L[N+1]);break;case 15:$e.push(be),De.push(N+3+L[N+1]+L[N+2]),ge[ge.length-1]!==i?(be=N+3+L[N+1],N+=3):(be=N+3+L[N+1]+L[N+2],N+=3+L[N+1]);break;case 16:ge[ge.length-1]!==i?($e.push(be),De.push(N),be=N+2+L[N+1],N+=2):N+=2+L[N+1];break;case 17:$e.push(be),De.push(N+3+L[N+1]+L[N+2]),o.length>b?(be=N+3+L[N+1],N+=3):(be=N+3+L[N+1]+L[N+2],N+=3+L[N+1]);break;case 18:$e.push(be),De.push(N+4+L[N+2]+L[N+3]),o.substr(b,v[L[N+1]].length)===v[L[N+1]]?(be=N+4+L[N+2],N+=4):(be=N+4+L[N+2]+L[N+3],N+=4+L[N+2]);break;case 19:$e.push(be),De.push(N+4+L[N+2]+L[N+3]),o.substr(b,v[L[N+1]].length).toLowerCase()===v[L[N+1]]?(be=N+4+L[N+2],N+=4):(be=N+4+L[N+2]+L[N+3],N+=4+L[N+2]);break;case 20:$e.push(be),De.push(N+4+L[N+2]+L[N+3]),v[L[N+1]].test(o.charAt(b))?(be=N+4+L[N+2],N+=4):(be=N+4+L[N+2]+L[N+3],N+=4+L[N+2]);break;case 21:ge.push(o.substr(b,L[N+1])),b+=L[N+1],N+=2;break;case 22:ge.push(v[L[N+1]]),b+=v[L[N+1]].length,N+=2;break;case 23:ge.push(i),H===0&&X(v[L[N+1]]),N+=2;break;case 24:C=ge[ge.length-1-L[N+1]],N+=2;break;case 25:C=b,N++;break;case 26:Ce=L.slice(N+4,N+4+L[N+3]).map(function(He){return ge[ge.length-1-He]}),ge.splice(ge.length-L[N+2],L[N+2],v[L[N+1]].apply(null,Ce)),N+=4+L[N+3];break;case 27:ge.push(Ee(L[N+1])),N+=2;break;case 28:H++,N++;break;case 29:H--,N++;break;default:throw new Error("Invalid opcode: "+L[N]+".")}if($e.length>0)be=$e.pop(),N=De.pop();else break}return ge[0]}r.data={};function Z(F,L){return[F].concat(L)}if(P=Ee(p),P!==i&&b===o.length)return P;throw P!==i&&b<o.length&&X(U()),ee(A,T<o.length?o.charAt(T):null,T<o.length?K(T,T+1):K(T,T))}const YR=qR;var zn;(function(o){function r(f,p){const v={startRule:p};try{YR(f,v)}catch{v.data=-1}return v.data}o.parse=r;function i(f){const p=o.parse(f,"Name_Addr_Header");return p!==-1?p:void 0}o.nameAddrHeaderParse=i;function l(f){const p=o.parse(f,"SIP_URI");return p!==-1?p:void 0}o.URIParse=l})(zn=zn||(zn={}));const VR={100:"Trying",180:"Ringing",181:"Call Is Being Forwarded",182:"Queued",183:"Session Progress",199:"Early Dialog Terminated",200:"OK",202:"Accepted",204:"No Notification",300:"Multiple Choices",301:"Moved Permanently",302:"Moved Temporarily",305:"Use Proxy",380:"Alternative Service",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",410:"Gone",412:"Conditional Request Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Unsupported URI Scheme",417:"Unknown Resource-Priority",420:"Bad Extension",421:"Extension Required",422:"Session Interval Too Small",423:"Interval Too Brief",428:"Use Identity Header",429:"Provide Referrer Identity",430:"Flow Failed",433:"Anonymity Disallowed",436:"Bad Identity-Info",437:"Unsupported Certificate",438:"Invalid Identity Header",439:"First Hop Lacks Outbound Support",440:"Max-Breadth Exceeded",469:"Bad Info Package",470:"Consent Needed",478:"Unresolvable Destination",480:"Temporarily Unavailable",481:"Call/Transaction Does Not Exist",482:"Loop Detected",483:"Too Many Hops",484:"Address Incomplete",485:"Ambiguous",486:"Busy Here",487:"Request Terminated",488:"Not Acceptable Here",489:"Bad Event",491:"Request Pending",493:"Undecipherable",494:"Security Agreement Required",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Server Time-out",505:"Version Not Supported",513:"Message Too Large",580:"Precondition Failure",600:"Busy Everywhere",603:"Decline",604:"Does Not Exist Anywhere",606:"Not Acceptable"};function _c(o,r=32){let i="";for(let l=0;l<o;l++){const f=Math.floor(Math.random()*r);i+=f.toString(r)}return i}function Sv(o){return VR[o]||""}function wv(){return _c(10)}function Eo(o){const r={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},i=o.toLowerCase().replace(/_/g,"-").split("-"),l=i.length;let f="";for(let p=0;p<l;p++)p!==0&&(f+="-"),f+=i[p].charAt(0).toUpperCase()+i[p].substring(1);return r[f]&&(f=r[f]),f}function Jh(o){return encodeURIComponent(o).replace(/%[A-F\d]{2}/g,"U").length}class US{constructor(){this.headers={}}addHeader(r,i){const l={raw:i};r=Eo(r),this.headers[r]?this.headers[r].push(l):this.headers[r]=[l]}getHeader(r){const i=this.headers[Eo(r)];if(i){if(i[0])return i[0].raw}else return}getHeaders(r){const i=this.headers[Eo(r)],l=[];if(!i)return[];for(const f of i)l.push(f.raw);return l}hasHeader(r){return!!this.headers[Eo(r)]}parseHeader(r,i=0){if(r=Eo(r),this.headers[r]){if(i>=this.headers[r].length)return}else return;const l=this.headers[r][i],f=l.raw;if(l.parsed)return l.parsed;const p=zn.parse(f,r.replace(/-/g,"_"));if(p===-1){this.headers[r].splice(i,1);return}else return l.parsed=p,p}s(r,i=0){return this.parseHeader(r,i)}setHeader(r,i){this.headers[Eo(r)]=[{raw:i}]}toString(){return this.data}}class Qf extends US{constructor(){super()}}class vu extends US{constructor(){super()}}class Dc{constructor(r,i,l,f,p,v,S){this.headers={},this.extraHeaders=[],this.options=Dc.getDefaultOptions(),p&&(this.options=Object.assign(Object.assign({},this.options),p),this.options.optionTags&&this.options.optionTags.length&&(this.options.optionTags=this.options.optionTags.slice()),this.options.routeSet&&this.options.routeSet.length&&(this.options.routeSet=this.options.routeSet.slice())),v&&v.length&&(this.extraHeaders=v.slice()),S&&(this.body={body:S.content,contentType:S.contentType}),this.method=r,this.ruri=i.clone(),this.fromURI=l.clone(),this.fromTag=this.options.fromTag?this.options.fromTag:wv(),this.from=Dc.makeNameAddrHeader(this.fromURI,this.options.fromDisplayName,this.fromTag),this.toURI=f.clone(),this.toTag=this.options.toTag,this.to=Dc.makeNameAddrHeader(this.toURI,this.options.toDisplayName,this.toTag),this.callId=this.options.callId?this.options.callId:this.options.callIdPrefix+_c(15),this.cseq=this.options.cseq,this.setHeader("route",this.options.routeSet),this.setHeader("via",""),this.setHeader("to",this.to.toString()),this.setHeader("from",this.from.toString()),this.setHeader("cseq",this.cseq+" "+this.method),this.setHeader("call-id",this.callId),this.setHeader("max-forwards","70")}static getDefaultOptions(){return{callId:"",callIdPrefix:"",cseq:1,toDisplayName:"",toTag:"",fromDisplayName:"",fromTag:"",forceRport:!1,hackViaTcp:!1,optionTags:["outbound"],routeSet:[],userAgentString:"sip.js",viaHost:""}}static makeNameAddrHeader(r,i,l){const f={};return l&&(f.tag=l),new ma(r,i,f)}getHeader(r){const i=this.headers[Eo(r)];if(i){if(i[0])return i[0]}else{const l=new RegExp("^\\s*"+r+"\\s*:","i");for(const f of this.extraHeaders)if(l.test(f))return f.substring(f.indexOf(":")+1).trim()}}getHeaders(r){const i=[],l=this.headers[Eo(r)];if(l)for(const f of l)i.push(f);else{const f=new RegExp("^\\s*"+r+"\\s*:","i");for(const p of this.extraHeaders)f.test(p)&&i.push(p.substring(p.indexOf(":")+1).trim())}return i}hasHeader(r){if(this.headers[Eo(r)])return!0;{const i=new RegExp("^\\s*"+r+"\\s*:","i");for(const l of this.extraHeaders)if(i.test(l))return!0}return!1}setHeader(r,i){this.headers[Eo(r)]=i instanceof Array?i:[i]}setViaHeader(r,i){this.options.hackViaTcp&&(i="TCP");let l="SIP/2.0/"+i;l+=" "+this.options.viaHost+";branch="+r,this.options.forceRport&&(l+=";rport"),this.setHeader("via",l),this.branch=r}toString(){let r="";r+=this.method+" "+this.ruri.toRaw()+` SIP/2.0\r
|
|
376
376
|
`;for(const i in this.headers)if(this.headers[i])for(const l of this.headers[i])r+=i+": "+l+`\r
|
|
377
377
|
`;for(const i of this.extraHeaders)r+=i.trim()+`\r
|
|
378
378
|
`;return r+="Supported: "+this.options.optionTags.join(", ")+`\r
|
|
@@ -386,11 +386,11 @@ React keys must be passed directly to JSX without using spread:
|
|
|
386
386
|
\r
|
|
387
387
|
`:r+=`Content-Length: 0\r
|
|
388
388
|
\r
|
|
389
|
-
`,r}}function jS(o){return o==="application/sdp"?"session":"render"}function bv(o){const r=typeof o=="string"?o:o.body,i=typeof o=="string"?"application/sdp":o.contentType;return{contentDisposition:jS(i),contentType:i,content:r}}function zS(o){return o&&typeof o.content=="string"&&typeof o.contentType=="string"&&o.contentDisposition===void 0?!0:typeof o.contentDisposition=="string"}function e0(o){let r,i,l;if(o instanceof Qf&&o.body){const f=o.parseHeader("Content-Disposition");r=f?f.type:void 0,i=o.parseHeader("Content-Type"),l=o.body}if(o instanceof vu&&o.body){const f=o.parseHeader("Content-Disposition");r=f?f.type:void 0,i=o.parseHeader("Content-Type"),l=o.body}if(o instanceof Dc&&o.body)if(r=o.getHeader("Content-Disposition"),i=o.getHeader("Content-Type"),typeof o.body=="string"){if(!i)throw new Error("Header content type header does not equal body content type.");l=o.body}else{if(i&&i!==o.body.contentType)throw new Error("Header content type header does not equal body content type.");i=o.body.contentType,l=o.body.body}if(zS(o)&&(r=o.contentDisposition,i=o.contentType,l=o.content),!!l){if(i&&!r&&(r=jS(i)),!r)throw new Error("Content disposition undefined.");if(!i)throw new Error("Content type undefined.");return{contentDisposition:r,contentType:i,content:l}}}var as;(function(o){o.Initial="Initial",o.Early="Early",o.AckWait="AckWait",o.Confirmed="Confirmed",o.Terminated="Terminated"})(as=as||(as={}));var Ye;(function(o){o.Initial="Initial",o.HaveLocalOffer="HaveLocalOffer",o.HaveRemoteOffer="HaveRemoteOffer",o.Stable="Stable",o.Closed="Closed"})(Ye=Ye||(Ye={}));const dl=500,WR=4e3,qS=5e3,oi={T1:dl,T2:WR,TIMER_B:64*dl,TIMER_D:0*dl,TIMER_F:64*dl,TIMER_H:64*dl,TIMER_I:0*qS,TIMER_J:0*dl,TIMER_K:0*qS,TIMER_L:64*dl,TIMER_M:64*dl,TIMER_N:64*dl,PROVISIONAL_RESPONSE_INTERVAL:6e4};class gu extends bc{constructor(r){super(r||"Transaction state error.")}}var tt;(function(o){o.ACK="ACK",o.BYE="BYE",o.CANCEL="CANCEL",o.INFO="INFO",o.INVITE="INVITE",o.MESSAGE="MESSAGE",o.NOTIFY="NOTIFY",o.OPTIONS="OPTIONS",o.REGISTER="REGISTER",o.UPDATE="UPDATE",o.SUBSCRIBE="SUBSCRIBE",o.PUBLISH="PUBLISH",o.REFER="REFER",o.PRACK="PRACK"})(tt=tt||(tt={}));const mu=[tt.ACK,tt.BYE,tt.CANCEL,tt.INFO,tt.INVITE,tt.MESSAGE,tt.NOTIFY,tt.OPTIONS,tt.PRACK,tt.REFER,tt.REGISTER,tt.SUBSCRIBE];class YS{constructor(r){this.incomingMessageRequest=r}get request(){return this.incomingMessageRequest.message}accept(r){return this.incomingMessageRequest.accept(r),Promise.resolve()}reject(r){return this.incomingMessageRequest.reject(r),Promise.resolve()}}class Px{constructor(r){this.incomingNotifyRequest=r}get request(){return this.incomingNotifyRequest.message}accept(r){return this.incomingNotifyRequest.accept(r),Promise.resolve()}reject(r){return this.incomingNotifyRequest.reject(r),Promise.resolve()}}class GR{constructor(r,i){this.incomingReferRequest=r,this.session=i}get referTo(){const r=this.incomingReferRequest.message.parseHeader("refer-to");if(!(r instanceof ma))throw new Error("Failed to parse Refer-To header.");return r}get referredBy(){return this.incomingReferRequest.message.getHeader("referred-by")}get replaces(){const r=this.referTo.uri.getHeader("replaces");return r instanceof Array?r[0]:r}get request(){return this.incomingReferRequest.message}accept(r={statusCode:202}){return this.incomingReferRequest.accept(r),Promise.resolve()}reject(r){return this.incomingReferRequest.reject(r),Promise.resolve()}makeInviter(r){if(this.inviter)return this.inviter;const i=this.referTo.uri.clone();i.clearHeaders(),r=r||{};const l=(r.extraHeaders||[]).slice(),f=this.replaces;f&&l.push("Replaces: "+decodeURIComponent(f));const p=this.referredBy;return p&&l.push("Referred-By: "+p),r.extraHeaders=l,this.inviter=this.session.userAgent._makeInviter(i,r),this.inviter._referred=this.session,this.session._referral=this.inviter,this.inviter}}var xe;(function(o){o.Initial="Initial",o.Establishing="Establishing",o.Established="Established",o.Terminating="Terminating",o.Terminated="Terminated"})(xe=xe||(xe={}));class t0{constructor(r,i={}){this.pendingReinvite=!1,this.pendingReinviteAck=!1,this._state=xe.Initial,this.delegate=i.delegate,this._stateEventEmitter=new Xh,this._userAgent=r}dispose(){switch(this.logger.log(`Session ${this.id} in state ${this._state} is being disposed`),delete this.userAgent._sessions[this.id],this._sessionDescriptionHandler&&this._sessionDescriptionHandler.close(),this.state){case xe.Initial:break;case xe.Establishing:break;case xe.Established:return new Promise(r=>{this._bye({onAccept:()=>r(),onRedirect:()=>r(),onReject:()=>r()})});case xe.Terminating:break;case xe.Terminated:break;default:throw new Error("Unknown state.")}return Promise.resolve()}get assertedIdentity(){return this._assertedIdentity}get dialog(){return this._dialog}get id(){return this._id}get replacee(){return this._replacee}get sessionDescriptionHandler(){return this._sessionDescriptionHandler}get sessionDescriptionHandlerFactory(){return this.userAgent.configuration.sessionDescriptionHandlerFactory}get sessionDescriptionHandlerModifiers(){return this._sessionDescriptionHandlerModifiers||[]}set sessionDescriptionHandlerModifiers(r){this._sessionDescriptionHandlerModifiers=r.slice()}get sessionDescriptionHandlerOptions(){return this._sessionDescriptionHandlerOptions||{}}set sessionDescriptionHandlerOptions(r){this._sessionDescriptionHandlerOptions=Object.assign({},r)}get sessionDescriptionHandlerModifiersReInvite(){return this._sessionDescriptionHandlerModifiersReInvite||[]}set sessionDescriptionHandlerModifiersReInvite(r){this._sessionDescriptionHandlerModifiersReInvite=r.slice()}get sessionDescriptionHandlerOptionsReInvite(){return this._sessionDescriptionHandlerOptionsReInvite||{}}set sessionDescriptionHandlerOptionsReInvite(r){this._sessionDescriptionHandlerOptionsReInvite=Object.assign({},r)}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get userAgent(){return this._userAgent}bye(r={}){let i="Session.bye() may only be called if established session.";switch(this.state){case xe.Initial:typeof this.cancel=="function"?(i+=" However Inviter.invite() has not yet been called.",i+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(i+=" However Invitation.accept() has not yet been called.",i+=" Perhaps you should have called Invitation.reject()?");break;case xe.Establishing:typeof this.cancel=="function"?(i+=" However a dialog does not yet exist.",i+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(i+=" However Invitation.accept() has not yet been called (or not yet resolved).",i+=" Perhaps you should have called Invitation.reject()?");break;case xe.Established:{const l=r.requestDelegate,f=this.copyRequestOptions(r.requestOptions);return this._bye(l,f)}case xe.Terminating:i+=" However this session is already terminating.",typeof this.cancel=="function"?i+=" Perhaps you have already called Inviter.cancel()?":typeof this.reject=="function"&&(i+=" Perhaps you have already called Session.bye()?");break;case xe.Terminated:i+=" However this session is already terminated.";break;default:throw new Error("Unknown state")}return this.logger.error(i),Promise.reject(new Error(`Invalid session state ${this.state}`))}info(r={}){if(this.state!==xe.Established)return this.logger.error("Session.info() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));const i=r.requestDelegate,l=this.copyRequestOptions(r.requestOptions);return this._info(i,l)}invite(r={}){if(this.logger.log("Session.invite"),this.state!==xe.Established)return Promise.reject(new Error(`Invalid session state ${this.state}`));if(this.pendingReinvite)return Promise.reject(new Hx("Reinvite in progress. Please wait until complete, then try again."));this.pendingReinvite=!0,r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiersReInvite=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptionsReInvite=r.sessionDescriptionHandlerOptions);const i={onAccept:p=>{const v=e0(p.message);if(!v){this.logger.error("Received 2xx response to re-INVITE without a session description"),this.ackAndBye(p,400,"Missing session description"),this.stateTransition(xe.Terminated),this.pendingReinvite=!1;return}if(r.withoutSdp){const S={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setOfferAndGetAnswer(v,S).then(w=>{p.ack({body:w})}).catch(w=>{this.logger.error("Failed to handle offer in 2xx response to re-INVITE"),this.logger.error(w.message),this.state===xe.Terminated?p.ack():(this.ackAndBye(p,488,"Bad Media Description"),this.stateTransition(xe.Terminated))}).then(()=>{this.pendingReinvite=!1,r.requestDelegate&&r.requestDelegate.onAccept&&r.requestDelegate.onAccept(p)})}else{const S={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setAnswer(v,S).then(()=>{p.ack()}).catch(w=>{this.logger.error("Failed to handle answer in 2xx response to re-INVITE"),this.logger.error(w.message),this.state!==xe.Terminated?(this.ackAndBye(p,488,"Bad Media Description"),this.stateTransition(xe.Terminated)):p.ack()}).then(()=>{this.pendingReinvite=!1,r.requestDelegate&&r.requestDelegate.onAccept&&r.requestDelegate.onAccept(p)})}},onProgress:p=>{},onRedirect:p=>{},onReject:p=>{this.logger.warn("Received a non-2xx response to re-INVITE"),this.pendingReinvite=!1,r.withoutSdp?r.requestDelegate&&r.requestDelegate.onReject&&r.requestDelegate.onReject(p):this.rollbackOffer().catch(v=>{if(this.logger.error("Failed to rollback offer on non-2xx response to re-INVITE"),this.logger.error(v.message),this.state!==xe.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const S=[];S.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:S}),this.stateTransition(xe.Terminated)}}).then(()=>{r.requestDelegate&&r.requestDelegate.onReject&&r.requestDelegate.onReject(p)})},onTrying:p=>{}},l=r.requestOptions||{};if(l.extraHeaders=(l.extraHeaders||[]).slice(),l.extraHeaders.push("Allow: "+mu.toString()),l.extraHeaders.push("Contact: "+this._contact),r.withoutSdp){if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return Promise.resolve(this.dialog.invite(i,l))}const f={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};return this.getOffer(f).then(p=>{if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return l.body=p,this.dialog.invite(i,l)}).catch(p=>{throw this.logger.error(p.message),this.logger.error("Failed to send re-INVITE"),this.pendingReinvite=!1,p})}message(r={}){if(this.state!==xe.Established)return this.logger.error("Session.message() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));const i=r.requestDelegate,l=this.copyRequestOptions(r.requestOptions);return this._message(i,l)}refer(r,i={}){if(this.state!==xe.Established)return this.logger.error("Session.refer() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));if(r instanceof t0&&!r.dialog)return this.logger.error("Session.refer() may only be called with session which is established. You are perhaps attempting to attended transfer to a target for which there is not dialog yet established. Perhaps you are attempting a 'semi-attended' tansfer? Regardless, this is not supported. The recommended approached is to check to see if the target Session is in the Established state before calling refer(); if the state is not Established you may proceed by falling back using a URI as the target (blind transfer)."),Promise.reject(new Error(`Invalid session state ${this.state}`));const l=i.requestDelegate,f=this.copyRequestOptions(i.requestOptions);return f.extraHeaders=f.extraHeaders?f.extraHeaders.concat(this.referExtraHeaders(this.referToString(r))):this.referExtraHeaders(this.referToString(r)),this._refer(i.onNotify,l,f)}_bye(r,i){if(!this.dialog)return Promise.reject(new Error("Session dialog undefined."));const l=this.dialog;switch(l.sessionState){case as.Initial:throw new Error(`Invalid dialog state ${l.sessionState}`);case as.Early:throw new Error(`Invalid dialog state ${l.sessionState}`);case as.AckWait:return this.stateTransition(xe.Terminating),new Promise(f=>{l.delegate={onAck:()=>{const p=l.bye(r,i);return this.stateTransition(xe.Terminated),f(p),Promise.resolve()},onAckTimeout:()=>{const p=l.bye(r,i);this.stateTransition(xe.Terminated),f(p)}}});case as.Confirmed:{const f=l.bye(r,i);return this.stateTransition(xe.Terminated),Promise.resolve(f)}case as.Terminated:throw new Error(`Invalid dialog state ${l.sessionState}`);default:throw new Error("Unrecognized state.")}}_info(r,i){return this.dialog?Promise.resolve(this.dialog.info(r,i)):Promise.reject(new Error("Session dialog undefined."))}_message(r,i){return this.dialog?Promise.resolve(this.dialog.message(r,i)):Promise.reject(new Error("Session dialog undefined."))}_refer(r,i,l){return this.dialog?(this.onNotify=r,Promise.resolve(this.dialog.refer(i,l))):Promise.reject(new Error("Session dialog undefined."))}ackAndBye(r,i,l){r.ack();const f=[];i&&f.push("Reason: "+this.getReasonHeaderValue(i,l)),r.session.bye(void 0,{extraHeaders:f})}onAckRequest(r){if(this.logger.log("Session.onAckRequest"),this.state!==xe.Established&&this.state!==xe.Terminating)return this.logger.error(`ACK received while in state ${this.state}, dropping request`),Promise.resolve();const i=this.dialog;if(!i)throw new Error("Dialog undefined.");const l={sessionDescriptionHandlerOptions:this.pendingReinviteAck?this.sessionDescriptionHandlerOptionsReInvite:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.pendingReinviteAck?this._sessionDescriptionHandlerModifiersReInvite:this._sessionDescriptionHandlerModifiers};if(this.delegate&&this.delegate.onAck){const f=new LR(r);this.delegate.onAck(f)}switch(this.pendingReinviteAck=!1,i.signalingState){case Ye.Initial:{this.logger.error(`Invalid signaling state ${i.signalingState}.`);const f=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return i.bye(void 0,{extraHeaders:f}),this.stateTransition(xe.Terminated),Promise.resolve()}case Ye.Stable:{const f=e0(r.message);return f?f.contentDisposition==="render"?(this._renderbody=f.content,this._rendertype=f.contentType,Promise.resolve()):f.contentDisposition!=="session"?Promise.resolve():this.setAnswer(f,l).catch(p=>{this.logger.error(p.message);const v=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];i.bye(void 0,{extraHeaders:v}),this.stateTransition(xe.Terminated)}):Promise.resolve()}case Ye.HaveLocalOffer:{this.logger.error(`Invalid signaling state ${i.signalingState}.`);const f=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return i.bye(void 0,{extraHeaders:f}),this.stateTransition(xe.Terminated),Promise.resolve()}case Ye.HaveRemoteOffer:{this.logger.error(`Invalid signaling state ${i.signalingState}.`);const f=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return i.bye(void 0,{extraHeaders:f}),this.stateTransition(xe.Terminated),Promise.resolve()}case Ye.Closed:throw new Error(`Invalid signaling state ${i.signalingState}.`);default:throw new Error(`Invalid signaling state ${i.signalingState}.`)}}onByeRequest(r){if(this.logger.log("Session.onByeRequest"),this.state!==xe.Established){this.logger.error(`BYE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onBye){const i=new UR(r);this.delegate.onBye(i)}else r.accept();this.stateTransition(xe.Terminated)}onInfoRequest(r){if(this.logger.log("Session.onInfoRequest"),this.state!==xe.Established){this.logger.error(`INFO received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onInfo){const i=new zR(r);this.delegate.onInfo(i)}else r.accept()}onInviteRequest(r){if(this.logger.log("Session.onInviteRequest"),this.state!==xe.Established){this.logger.error(`INVITE received while in state ${this.state}, dropping request`);return}this.pendingReinviteAck=!0;const i=["Contact: "+this._contact];if(r.message.hasHeader("P-Asserted-Identity")){const f=r.message.getHeader("P-Asserted-Identity");if(!f)throw new Error("Header undefined.");this._assertedIdentity=zn.nameAddrHeaderParse(f)}const l={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.generateResponseOfferAnswerInDialog(l).then(f=>{const p=r.accept({statusCode:200,extraHeaders:i,body:f});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(r.message,p.message,200)}).catch(f=>{if(this.logger.error(f.message),this.logger.error("Failed to handle to re-INVITE request"),!this.dialog)throw new Error("Dialog undefined.");if(this.logger.error(this.dialog.signalingState),this.dialog.signalingState===Ye.Stable){const p=r.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(r.message,p.message,488);return}this.rollbackOffer().then(()=>{const p=r.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(r.message,p.message,488)}).catch(p=>{this.logger.error(p.message),this.logger.error("Failed to rollback offer on re-INVITE request");const v=r.reject({statusCode:488});if(this.state!==xe.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const S=[];S.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:S}),this.stateTransition(xe.Terminated)}this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(r.message,v.message,488)})})}onMessageRequest(r){if(this.logger.log("Session.onMessageRequest"),this.state!==xe.Established){this.logger.error(`MESSAGE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onMessage){const i=new YS(r);this.delegate.onMessage(i)}else r.accept()}onNotifyRequest(r){if(this.logger.log("Session.onNotifyRequest"),this.state!==xe.Established){this.logger.error(`NOTIFY received while in state ${this.state}, dropping request`);return}if(this.onNotify){const i=new Px(r);this.onNotify(i);return}if(this.delegate&&this.delegate.onNotify){const i=new Px(r);this.delegate.onNotify(i)}else r.accept()}onPrackRequest(r){if(this.logger.log("Session.onPrackRequest"),this.state!==xe.Established){this.logger.error(`PRACK received while in state ${this.state}, dropping request`);return}throw new Error("Unimplemented.")}onReferRequest(r){if(this.logger.log("Session.onReferRequest"),this.state!==xe.Established){this.logger.error(`REFER received while in state ${this.state}, dropping request`);return}if(!r.message.hasHeader("refer-to")){this.logger.warn("Invalid REFER packet. A refer-to header is required. Rejecting."),r.reject();return}const i=new GR(r,this);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(i):(this.logger.log("No delegate available to handle REFER, automatically accepting and following."),i.accept().then(()=>i.makeInviter(this._referralInviterOptions).invite()).catch(l=>{this.logger.error(l.message)}))}generateResponseOfferAnswer(r,i){if(this.dialog)return this.generateResponseOfferAnswerInDialog(i);const l=e0(r.message);return!l||l.contentDisposition!=="session"?this.getOffer(i):this.setOfferAndGetAnswer(l,i)}generateResponseOfferAnswerInDialog(r){if(!this.dialog)throw new Error("Dialog undefined.");switch(this.dialog.signalingState){case Ye.Initial:return this.getOffer(r);case Ye.HaveLocalOffer:return Promise.resolve(void 0);case Ye.HaveRemoteOffer:if(!this.dialog.offer)throw new Error(`Session offer undefined in signaling state ${this.dialog.signalingState}.`);return this.setOfferAndGetAnswer(this.dialog.offer,r);case Ye.Stable:return this.state!==xe.Established?Promise.resolve(void 0):this.getOffer(r);case Ye.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}getOffer(r){const i=this.setupSessionDescriptionHandler(),l=r.sessionDescriptionHandlerOptions,f=r.sessionDescriptionHandlerModifiers;try{return i.getDescription(l,f).then(p=>bv(p)).catch(p=>{this.logger.error("Session.getOffer: SDH getDescription rejected...");const v=p instanceof Error?p:new Error("Session.getOffer unknown error.");throw this.logger.error(v.message),v})}catch(p){this.logger.error("Session.getOffer: SDH getDescription threw...");const v=p instanceof Error?p:new Error(p);return this.logger.error(v.message),Promise.reject(v)}}rollbackOffer(){const r=this.setupSessionDescriptionHandler();if(r.rollbackDescription===void 0)return Promise.resolve();try{return r.rollbackDescription().catch(i=>{this.logger.error("Session.rollbackOffer: SDH rollbackDescription rejected...");const l=i instanceof Error?i:new Error("Session.rollbackOffer unknown error.");throw this.logger.error(l.message),l})}catch(i){this.logger.error("Session.rollbackOffer: SDH rollbackDescription threw...");const l=i instanceof Error?i:new Error(i);return this.logger.error(l.message),Promise.reject(l)}}setAnswer(r,i){const l=this.setupSessionDescriptionHandler(),f=i.sessionDescriptionHandlerOptions,p=i.sessionDescriptionHandlerModifiers;try{if(!l.hasDescription(r.contentType))return Promise.reject(new Nx)}catch(v){this.logger.error("Session.setAnswer: SDH hasDescription threw...");const S=v instanceof Error?v:new Error(v);return this.logger.error(S.message),Promise.reject(S)}try{return l.setDescription(r.content,f,p).catch(v=>{this.logger.error("Session.setAnswer: SDH setDescription rejected...");const S=v instanceof Error?v:new Error("Session.setAnswer unknown error.");throw this.logger.error(S.message),S})}catch(v){this.logger.error("Session.setAnswer: SDH setDescription threw...");const S=v instanceof Error?v:new Error(v);return this.logger.error(S.message),Promise.reject(S)}}setOfferAndGetAnswer(r,i){const l=this.setupSessionDescriptionHandler(),f=i.sessionDescriptionHandlerOptions,p=i.sessionDescriptionHandlerModifiers;try{if(!l.hasDescription(r.contentType))return Promise.reject(new Nx)}catch(v){this.logger.error("Session.setOfferAndGetAnswer: SDH hasDescription threw...");const S=v instanceof Error?v:new Error(v);return this.logger.error(S.message),Promise.reject(S)}try{return l.setDescription(r.content,f,p).then(()=>l.getDescription(f,p)).then(v=>bv(v)).catch(v=>{this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription rejected...");const S=v instanceof Error?v:new Error("Session.setOfferAndGetAnswer unknown error.");throw this.logger.error(S.message),S})}catch(v){this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription threw...");const S=v instanceof Error?v:new Error(v);return this.logger.error(S.message),Promise.reject(S)}}setSessionDescriptionHandler(r){if(this._sessionDescriptionHandler)throw new Error("Session description handler defined.");this._sessionDescriptionHandler=r}setupSessionDescriptionHandler(){var r;return this._sessionDescriptionHandler?this._sessionDescriptionHandler:(this._sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions),!((r=this.delegate)===null||r===void 0)&&r.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(this._sessionDescriptionHandler,!1),this._sessionDescriptionHandler)}stateTransition(r){const i=()=>{throw new Error(`Invalid state transition from ${this._state} to ${r}`)};switch(this._state){case xe.Initial:r!==xe.Establishing&&r!==xe.Established&&r!==xe.Terminating&&r!==xe.Terminated&&i();break;case xe.Establishing:r!==xe.Established&&r!==xe.Terminating&&r!==xe.Terminated&&i();break;case xe.Established:r!==xe.Terminating&&r!==xe.Terminated&&i();break;case xe.Terminating:r!==xe.Terminated&&i();break;case xe.Terminated:i();break;default:throw new Error("Unrecognized state.")}this._state=r,this.logger.log(`Session ${this.id} transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),r===xe.Terminated&&this.dispose()}copyRequestOptions(r={}){const i=r.extraHeaders?r.extraHeaders.slice():void 0,l=r.body?{contentDisposition:r.body.contentDisposition||"render",contentType:r.body.contentType||"text/plain",content:r.body.content||""}:void 0;return{extraHeaders:i,body:l}}getReasonHeaderValue(r,i){const l=r;let f=Sv(r);return!f&&i&&(f=i),"SIP;cause="+l+';text="'+f+'"'}referExtraHeaders(r){const i=[];return i.push("Referred-By: <"+this.userAgent.configuration.uri+">"),i.push("Contact: "+this._contact),i.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),i.push("Refer-To: "+r),i}referToString(r){let i;if(r instanceof xo)i=r.toString();else{if(!r.dialog)throw new Error("Dialog undefined.");const l=r.remoteIdentity.friendlyName,f=r.dialog.remoteTarget.toString(),p=r.dialog.callId,v=r.dialog.remoteTag,S=r.dialog.localTag,w=encodeURIComponent(`${p};to-tag=${v};from-tag=${S}`);i=`"${l}" <${f}?Replaces=${w}>`}return i}}var Ps;(function(o){o.Required="Required",o.Supported="Supported",o.Unsupported="Unsupported"})(Ps=Ps||(Ps={}));const KR={"100rel":!0,199:!0,answermode:!0,"early-session":!0,eventlist:!0,explicitsub:!0,"from-change":!0,"geolocation-http":!0,"geolocation-sip":!0,gin:!0,gruu:!0,histinfo:!0,ice:!0,join:!0,"multiple-refer":!0,norefersub:!0,nosub:!0,outbound:!0,path:!0,policy:!0,precondition:!0,pref:!0,privacy:!0,"recipient-list-invite":!0,"recipient-list-message":!0,"recipient-list-subscribe":!0,replaces:!0,"resource-priority":!0,"sdp-anat":!0,"sec-agree":!0,tdialog:!0,timer:!0,uui:!0};class QR extends t0{constructor(r,i){super(r),this.incomingInviteRequest=i,this.disposed=!1,this.expiresTimer=void 0,this.isCanceled=!1,this.rel100="none",this.rseq=Math.floor(Math.random()*1e4),this.userNoAnswerTimer=void 0,this.waitingForPrack=!1,this.logger=r.getLogger("sip.Invitation");const l=this.incomingInviteRequest.message,f=l.getHeader("require");f&&f.toLowerCase().includes("100rel")&&(this.rel100="required");const p=l.getHeader("supported");if(p&&p.toLowerCase().includes("100rel")&&(this.rel100="supported"),l.toTag=i.toTag,typeof l.toTag!="string")throw new TypeError("toTag should have been a string.");if(this.userNoAnswerTimer=setTimeout(()=>{i.reject({statusCode:480}),this.stateTransition(xe.Terminated)},this.userAgent.configuration.noAnswerTimeout?this.userAgent.configuration.noAnswerTimeout*1e3:6e4),l.hasHeader("expires")){const w=Number(l.getHeader("expires")||0)*1e3;this.expiresTimer=setTimeout(()=>{this.state===xe.Initial&&(i.reject({statusCode:487}),this.stateTransition(xe.Terminated))},w)}const v=this.request.getHeader("P-Asserted-Identity");v&&(this._assertedIdentity=zn.nameAddrHeaderParse(v)),this._contact=this.userAgent.contact.toString();const S=l.parseHeader("Content-Disposition");S&&S.type==="render"&&(this._renderbody=l.body,this._rendertype=l.getHeader("Content-Type")),this._id=l.callId+l.fromTag,this.userAgent._sessions[this._id]=this}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=!0,this.expiresTimer&&(clearTimeout(this.expiresTimer),this.expiresTimer=void 0),this.userNoAnswerTimer&&(clearTimeout(this.userNoAnswerTimer),this.userNoAnswerTimer=void 0),this.prackNeverArrived(),this.state){case xe.Initial:return this.reject().then(()=>super.dispose());case xe.Establishing:return this.reject().then(()=>super.dispose());case xe.Established:return super.dispose();case xe.Terminating:return super.dispose();case xe.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get autoSendAnInitialProvisionalResponse(){return this.rel100!=="required"&&this.userAgent.configuration.sendInitialProvisionalResponse}get body(){return this.incomingInviteRequest.message.body}get localIdentity(){return this.request.to}get remoteIdentity(){return this.request.from}get request(){return this.incomingInviteRequest.message}accept(r={}){if(this.logger.log("Invitation.accept"),this.state!==xe.Initial){const i=new Error(`Invalid session state ${this.state}`);return this.logger.error(i.message),Promise.reject(i)}return r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=r.sessionDescriptionHandlerOptions),this.stateTransition(xe.Establishing),this.sendAccept(r).then(({message:i,session:l})=>{l.delegate={onAck:f=>this.onAckRequest(f),onAckTimeout:()=>this.onAckTimeout(),onBye:f=>this.onByeRequest(f),onInfo:f=>this.onInfoRequest(f),onInvite:f=>this.onInviteRequest(f),onMessage:f=>this.onMessageRequest(f),onNotify:f=>this.onNotifyRequest(f),onPrack:f=>this.onPrackRequest(f),onRefer:f=>this.onReferRequest(f)},this._dialog=l,this.stateTransition(xe.Established),this._replacee&&this._replacee._bye()}).catch(i=>this.handleResponseError(i))}progress(r={}){if(this.logger.log("Invitation.progress"),this.state!==xe.Initial){const l=new Error(`Invalid session state ${this.state}`);return this.logger.error(l.message),Promise.reject(l)}const i=r.statusCode||180;if(i<100||i>199)throw new TypeError("Invalid statusCode: "+i);return r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=r.sessionDescriptionHandlerOptions),this.waitingForPrack?(this.logger.warn("Unexpected call for progress while waiting for prack, ignoring"),Promise.resolve()):r.statusCode===100?this.sendProgressTrying().then(()=>{}).catch(l=>this.handleResponseError(l)):this.rel100!=="required"&&!(this.rel100==="supported"&&r.rel100)&&!(this.rel100==="supported"&&this.userAgent.configuration.sipExtension100rel===Ps.Required)?this.sendProgress(r).then(()=>{}).catch(l=>this.handleResponseError(l)):this.sendProgressReliableWaitForPrack(r).then(()=>{}).catch(l=>this.handleResponseError(l))}reject(r={}){if(this.logger.log("Invitation.reject"),this.state!==xe.Initial&&this.state!==xe.Establishing){const v=new Error(`Invalid session state ${this.state}`);return this.logger.error(v.message),Promise.reject(v)}const i=r.statusCode||480,l=r.reasonPhrase?r.reasonPhrase:Sv(i),f=r.extraHeaders||[];if(i<300||i>699)throw new TypeError("Invalid statusCode: "+i);const p=r.body?bv(r.body):void 0;return i<400?this.incomingInviteRequest.redirect([],{statusCode:i,reasonPhrase:l,extraHeaders:f,body:p}):this.incomingInviteRequest.reject({statusCode:i,reasonPhrase:l,extraHeaders:f,body:p}),this.stateTransition(xe.Terminated),Promise.resolve()}_onCancel(r){if(this.logger.log("Invitation._onCancel"),this.state!==xe.Initial&&this.state!==xe.Establishing){this.logger.error(`CANCEL received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onCancel){const i=new jR(r);this.delegate.onCancel(i)}this.isCanceled=!0,this.incomingInviteRequest.reject({statusCode:487}),this.stateTransition(xe.Terminated)}handlePrackOfferAnswer(r){if(!this.dialog)throw new Error("Dialog undefined.");const i=e0(r.message);if(!i||i.contentDisposition!=="session")return Promise.resolve(void 0);const l={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers};switch(this.dialog.signalingState){case Ye.Initial:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case Ye.Stable:return this.setAnswer(i,l).then(()=>{});case Ye.HaveLocalOffer:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case Ye.HaveRemoteOffer:return this.setOfferAndGetAnswer(i,l);case Ye.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}handleResponseError(r){let i=480;if(r instanceof Error?this.logger.error(r.message):this.logger.error(r),r instanceof Nx?(this.logger.error("A session description handler occurred while sending response (content type unsupported"),i=415):r instanceof PR?this.logger.error("A session description handler occurred while sending response"):r instanceof Ix?this.logger.error("Session ended before response could be formulated and sent (while waiting for PRACK)"):r instanceof gu&&this.logger.error("Session changed state before response could be formulated and sent"),this.state===xe.Initial||this.state===xe.Establishing)try{this.incomingInviteRequest.reject({statusCode:i}),this.stateTransition(xe.Terminated)}catch(l){throw this.logger.error("An error occurred attempting to reject the request while handling another error"),l}if(this.isCanceled){this.logger.warn("An error occurred while attempting to formulate and send a response to an incoming INVITE. However a CANCEL was received and processed while doing so which can (and often does) result in errors occurring as the session terminates in the meantime. Said error is being ignored.");return}throw r}onAckTimeout(){if(this.logger.log("Invitation.onAckTimeout"),!this.dialog)throw new Error("Dialog undefined.");this.logger.log("No ACK received for an extended period of time, terminating session"),this.dialog.bye(),this.stateTransition(xe.Terminated)}sendAccept(r={}){const i={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},l=r.extraHeaders||[];return this.waitingForPrack?this.waitForArrivalOfPrack().then(()=>clearTimeout(this.userNoAnswerTimer)).then(()=>this.generateResponseOfferAnswer(this.incomingInviteRequest,i)).then(f=>this.incomingInviteRequest.accept({statusCode:200,body:f,extraHeaders:l})):(clearTimeout(this.userNoAnswerTimer),this.generateResponseOfferAnswer(this.incomingInviteRequest,i).then(f=>this.incomingInviteRequest.accept({statusCode:200,body:f,extraHeaders:l})))}sendProgress(r={}){const i=r.statusCode||180,l=r.reasonPhrase,f=(r.extraHeaders||[]).slice(),p=r.body?bv(r.body):void 0;if(i===183&&!p)return this.sendProgressWithSDP(r);try{const v=this.incomingInviteRequest.progress({statusCode:i,reasonPhrase:l,extraHeaders:f,body:p});return this._dialog=v.session,Promise.resolve(v)}catch(v){return Promise.reject(v)}}sendProgressWithSDP(r={}){const i={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},l=r.statusCode||183,f=r.reasonPhrase,p=(r.extraHeaders||[]).slice();return this.generateResponseOfferAnswer(this.incomingInviteRequest,i).then(v=>this.incomingInviteRequest.progress({statusCode:l,reasonPhrase:f,extraHeaders:p,body:v})).then(v=>(this._dialog=v.session,v))}sendProgressReliable(r={}){return r.extraHeaders=(r.extraHeaders||[]).slice(),r.extraHeaders.push("Require: 100rel"),r.extraHeaders.push("RSeq: "+Math.floor(Math.random()*1e4)),this.sendProgressWithSDP(r)}sendProgressReliableWaitForPrack(r={}){const i={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},l=r.statusCode||183,f=r.reasonPhrase,p=(r.extraHeaders||[]).slice();p.push("Require: 100rel"),p.push("RSeq: "+this.rseq++);let v;return new Promise((S,w)=>{this.waitingForPrack=!0,this.generateResponseOfferAnswer(this.incomingInviteRequest,i).then(C=>(v=C,this.incomingInviteRequest.progress({statusCode:l,reasonPhrase:f,extraHeaders:p,body:v}))).then(C=>{this._dialog=C.session;let b,R;C.session.delegate={onPrack:B=>{b=B,clearTimeout(H),clearTimeout(z),this.waitingForPrack&&(this.waitingForPrack=!1,this.handlePrackOfferAnswer(b).then(M=>{try{R=b.accept({statusCode:200,body:M}),this.prackArrived(),S({prackRequest:b,prackResponse:R,progressResponse:C})}catch(U){w(U)}}).catch(M=>w(M)))}};const H=setTimeout(()=>{this.waitingForPrack&&(this.waitingForPrack=!1,this.logger.warn("No PRACK received, rejecting INVITE."),clearTimeout(z),this.reject({statusCode:504}).then(()=>w(new Ix)).catch(B=>w(B)))},oi.T1*64),P=()=>{try{this.incomingInviteRequest.progress({statusCode:l,reasonPhrase:f,extraHeaders:p,body:v})}catch(B){this.waitingForPrack=!1,w(B);return}z=setTimeout(P,j*=2)};let j=oi.T1,z=setTimeout(P,j)}).catch(C=>{this.waitingForPrack=!1,w(C)})})}sendProgressTrying(){try{const r=this.incomingInviteRequest.trying();return Promise.resolve(r)}catch(r){return Promise.reject(r)}}waitForArrivalOfPrack(){if(this.waitingForPrackPromise)throw new Error("Already waiting for PRACK");return this.waitingForPrackPromise=new Promise((r,i)=>{this.waitingForPrackResolve=r,this.waitingForPrackReject=i}),this.waitingForPrackPromise}prackArrived(){this.waitingForPrackResolve&&this.waitingForPrackResolve(),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}prackNeverArrived(){this.waitingForPrackReject&&this.waitingForPrackReject(new Ix),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}}class VS extends t0{constructor(r,i,l={}){super(r,l),this.disposed=!1,this.earlyMedia=!1,this.earlyMediaSessionDescriptionHandlers=new Map,this.isCanceled=!1,this.inviteWithoutSdp=!1,this.logger=r.getLogger("sip.Inviter"),this.earlyMedia=l.earlyMedia!==void 0?l.earlyMedia:this.earlyMedia,this.fromTag=wv(),this.inviteWithoutSdp=l.inviteWithoutSdp!==void 0?l.inviteWithoutSdp:this.inviteWithoutSdp;const f=Object.assign({},l);f.params=Object.assign({},l.params);const p=l.anonymous||!1,v=r.contact.toString({anonymous:p,outbound:p?!r.contact.tempGruu:!r.contact.pubGruu});p&&r.configuration.uri&&(f.params.fromDisplayName="Anonymous",f.params.fromUri="sip:anonymous@anonymous.invalid");let S=r.userAgentCore.configuration.aor;if(f.params.fromUri&&(S=typeof f.params.fromUri=="string"?zn.URIParse(f.params.fromUri):f.params.fromUri),!S)throw new TypeError("Invalid from URI: "+f.params.fromUri);let w=i;if(f.params.toUri&&(w=typeof f.params.toUri=="string"?zn.URIParse(f.params.toUri):f.params.toUri),!w)throw new TypeError("Invalid to URI: "+f.params.toUri);const C=Object.assign({},f.params);C.fromTag=this.fromTag;const b=(f.extraHeaders||[]).slice();p&&r.configuration.uri&&(b.push("P-Preferred-Identity: "+r.configuration.uri.toString()),b.push("Privacy: id")),b.push("Contact: "+v),b.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),r.configuration.sipExtension100rel===Ps.Required&&b.push("Require: 100rel"),r.configuration.sipExtensionReplaces===Ps.Required&&b.push("Require: replaces"),f.extraHeaders=b;const R=void 0;this.outgoingRequestMessage=r.userAgentCore.makeOutgoingRequestMessage(tt.INVITE,i,S,w,C,b,R),this._contact=v,this._referralInviterOptions=f,this._renderbody=l.renderbody,this._rendertype=l.rendertype,l.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=l.sessionDescriptionHandlerModifiers),l.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=l.sessionDescriptionHandlerOptions),l.sessionDescriptionHandlerModifiersReInvite&&(this.sessionDescriptionHandlerModifiersReInvite=l.sessionDescriptionHandlerModifiersReInvite),l.sessionDescriptionHandlerOptionsReInvite&&(this.sessionDescriptionHandlerOptionsReInvite=l.sessionDescriptionHandlerOptionsReInvite),this._id=this.outgoingRequestMessage.callId+this.fromTag,this.userAgent._sessions[this._id]=this}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=!0,this.disposeEarlyMedia(),this.state){case xe.Initial:return this.cancel().then(()=>super.dispose());case xe.Establishing:return this.cancel().then(()=>super.dispose());case xe.Established:return super.dispose();case xe.Terminating:return super.dispose();case xe.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get body(){return this.outgoingRequestMessage.body}get localIdentity(){return this.outgoingRequestMessage.from}get remoteIdentity(){return this.outgoingRequestMessage.to}get request(){return this.outgoingRequestMessage}cancel(r={}){if(this.logger.log("Inviter.cancel"),this.state!==xe.Initial&&this.state!==xe.Establishing){const l=new Error(`Invalid session state ${this.state}`);return this.logger.error(l.message),Promise.reject(l)}this.isCanceled=!0,this.stateTransition(xe.Terminating);function i(l,f){if(l&&l<200||l>699)throw new TypeError("Invalid statusCode: "+l);if(l){const p=l,v=Sv(l)||f;return"SIP;cause="+p+';text="'+v+'"'}}if(this.outgoingInviteRequest){let l;r.statusCode&&r.reasonPhrase&&(l=i(r.statusCode,r.reasonPhrase)),this.outgoingInviteRequest.cancel(l,r)}else this.logger.warn("Canceled session before INVITE was sent"),this.stateTransition(xe.Terminated);return Promise.resolve()}invite(r={}){if(this.logger.log("Inviter.invite"),this.state!==xe.Initial)return super.invite(r);if(r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=r.sessionDescriptionHandlerOptions),r.withoutSdp||this.inviteWithoutSdp)return this._renderbody&&this._rendertype&&(this.outgoingRequestMessage.body={contentType:this._rendertype,body:this._renderbody}),this.stateTransition(xe.Establishing),Promise.resolve(this.sendInvite(r));const i={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.getOffer(i).then(l=>(this.outgoingRequestMessage.body={body:l.content,contentType:l.contentType},this.stateTransition(xe.Establishing),this.sendInvite(r))).catch(l=>{throw this.logger.log(l.message),this.state!==xe.Terminated&&this.stateTransition(xe.Terminated),l})}sendInvite(r={}){return this.outgoingInviteRequest=this.userAgent.userAgentCore.invite(this.outgoingRequestMessage,{onAccept:i=>{if(this.dialog){this.logger.log("Additional confirmed dialog, sending ACK and BYE"),this.ackAndBye(i);return}if(this.isCanceled){this.logger.log("Canceled session accepted, sending ACK and BYE"),this.ackAndBye(i),this.stateTransition(xe.Terminated);return}this.notifyReferer(i),this.onAccept(i).then(()=>{this.disposeEarlyMedia()}).catch(()=>{this.disposeEarlyMedia()}).then(()=>{r.requestDelegate&&r.requestDelegate.onAccept&&r.requestDelegate.onAccept(i)})},onProgress:i=>{this.isCanceled||(this.notifyReferer(i),this.onProgress(i).catch(()=>{this.disposeEarlyMedia()}).then(()=>{r.requestDelegate&&r.requestDelegate.onProgress&&r.requestDelegate.onProgress(i)}))},onRedirect:i=>{this.notifyReferer(i),this.onRedirect(i),r.requestDelegate&&r.requestDelegate.onRedirect&&r.requestDelegate.onRedirect(i)},onReject:i=>{this.notifyReferer(i),this.onReject(i),r.requestDelegate&&r.requestDelegate.onReject&&r.requestDelegate.onReject(i)},onTrying:i=>{this.notifyReferer(i),this.onTrying(i),r.requestDelegate&&r.requestDelegate.onTrying&&r.requestDelegate.onTrying(i)}}),this.outgoingInviteRequest}disposeEarlyMedia(){this.earlyMediaSessionDescriptionHandlers.forEach(r=>{r.close()}),this.earlyMediaSessionDescriptionHandlers.clear()}notifyReferer(r){if(!this._referred)return;if(!(this._referred instanceof t0))throw new Error("Referred session not instance of session");if(!this._referred.dialog)return;if(!r.message.statusCode)throw new Error("Status code undefined.");if(!r.message.reasonPhrase)throw new Error("Reason phrase undefined.");const i=r.message.statusCode,l=r.message.reasonPhrase,f=`SIP/2.0 ${i} ${l}`.trim(),p=this._referred.dialog.notify(void 0,{extraHeaders:["Event: refer","Subscription-State: terminated"],body:{contentDisposition:"render",contentType:"message/sipfrag",content:f}});p.delegate={onReject:()=>{this._referred=void 0}}}onAccept(r){if(this.logger.log("Inviter.onAccept"),this.state!==xe.Establishing)return this.logger.error(`Accept received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));const i=r.message,l=r.session;switch(i.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=zn.nameAddrHeaderParse(i.getHeader("P-Asserted-Identity"))),l.delegate={onAck:f=>this.onAckRequest(f),onBye:f=>this.onByeRequest(f),onInfo:f=>this.onInfoRequest(f),onInvite:f=>this.onInviteRequest(f),onMessage:f=>this.onMessageRequest(f),onNotify:f=>this.onNotifyRequest(f),onPrack:f=>this.onPrackRequest(f),onRefer:f=>this.onReferRequest(f)},this._dialog=l,l.signalingState){case Ye.Initial:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(r,400,"Missing session description"),this.stateTransition(xe.Terminated),Promise.reject(new Error("Bad Media Description"));case Ye.HaveLocalOffer:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(r,400,"Missing session description"),this.stateTransition(xe.Terminated),Promise.reject(new Error("Bad Media Description"));case Ye.HaveRemoteOffer:{if(!this._dialog.offer)throw new Error(`Session offer undefined in signaling state ${this._dialog.signalingState}.`);const f={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setOfferAndGetAnswer(this._dialog.offer,f).then(p=>{r.ack({body:p}),this.stateTransition(xe.Established)}).catch(p=>{throw this.ackAndBye(r,488,"Invalid session description"),this.stateTransition(xe.Terminated),p})}case Ye.Stable:{if(this.earlyMediaSessionDescriptionHandlers.size>0){const v=this.earlyMediaSessionDescriptionHandlers.get(l.id);if(!v)throw new Error("Session description handler undefined.");return this.setSessionDescriptionHandler(v),this.earlyMediaSessionDescriptionHandlers.delete(l.id),r.ack(),this.stateTransition(xe.Established),Promise.resolve()}if(this.earlyMediaDialog){if(this.earlyMediaDialog!==l){this.earlyMedia&&this.logger.error("You have set the 'earlyMedia' option to 'true' which requires that your INVITE requests do not fork and yet this INVITE request did in fact fork. Consequentially and not surprisingly the end point which accepted the INVITE (confirmed dialog) does not match the end point with which early media has been setup (early dialog) and thus this session is unable to proceed. In accordance with the SIP specifications, the SIP servers your end point is connected to determine if an INVITE forks and the forking behavior of those servers cannot be controlled by this library. If you wish to use early media with this library you must configure those servers accordingly. Alternatively you may set the 'earlyMedia' to 'false' which will allow this library to function with any INVITE requests which do fork.");const v=new Error("Early media dialog does not equal confirmed dialog, terminating session");return this.logger.error(v.message),this.ackAndBye(r,488,"Not Acceptable Here"),this.stateTransition(xe.Terminated),Promise.reject(v)}return r.ack(),this.stateTransition(xe.Established),Promise.resolve()}const f=l.answer;if(!f)throw new Error("Answer is undefined.");const p={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(f,p).then(()=>{let v;this._renderbody&&this._rendertype&&(v={body:{contentDisposition:"render",contentType:this._rendertype,content:this._renderbody}}),r.ack(v),this.stateTransition(xe.Established)}).catch(v=>{throw this.logger.error(v.message),this.ackAndBye(r,488,"Not Acceptable Here"),this.stateTransition(xe.Terminated),v})}case Ye.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onProgress(r){var i;if(this.logger.log("Inviter.onProgress"),this.state!==xe.Establishing)return this.logger.error(`Progress received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));if(!this.outgoingInviteRequest)throw new Error("Outgoing INVITE request undefined.");const l=r.message,f=r.session;l.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=zn.nameAddrHeaderParse(l.getHeader("P-Asserted-Identity")));const p=l.getHeader("require"),v=l.getHeader("rseq"),w=!!(p&&p.includes("100rel")&&v?Number(v):void 0),C=[];switch(w&&C.push("RAck: "+l.getHeader("rseq")+" "+l.getHeader("cseq")),f.signalingState){case Ye.Initial:return w&&(this.logger.warn("First reliable provisional response received MUST contain an offer when INVITE does not contain an offer."),r.prack({extraHeaders:C})),Promise.resolve();case Ye.HaveLocalOffer:return w&&r.prack({extraHeaders:C}),Promise.resolve();case Ye.HaveRemoteOffer:if(!w)return this.logger.warn("Non-reliable provisional response MUST NOT contain an initial offer, discarding response."),Promise.resolve();{const b=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions||{});return!((i=this.delegate)===null||i===void 0)&&i.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(b,!0),this.earlyMediaSessionDescriptionHandlers.set(f.id,b),b.setDescription(l.body,this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers).then(()=>b.getDescription(this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers)).then(R=>{const T={contentDisposition:"session",contentType:R.contentType,content:R.body};r.prack({extraHeaders:C,body:T})}).catch(R=>{throw this.stateTransition(xe.Terminated),R})}case Ye.Stable:if(w&&r.prack({extraHeaders:C}),this.earlyMedia&&!this.earlyMediaDialog){this.earlyMediaDialog=f;const b=f.answer;if(!b)throw new Error("Answer is undefined.");const R={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(b,R).catch(T=>{throw this.stateTransition(xe.Terminated),T})}return Promise.resolve();case Ye.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onRedirect(r){if(this.logger.log("Inviter.onRedirect"),this.state!==xe.Establishing&&this.state!==xe.Terminating){this.logger.error(`Redirect received while in state ${this.state}, dropping response`);return}this.stateTransition(xe.Terminated)}onReject(r){if(this.logger.log("Inviter.onReject"),this.state!==xe.Establishing&&this.state!==xe.Terminating){this.logger.error(`Reject received while in state ${this.state}, dropping response`);return}this.stateTransition(xe.Terminated)}onTrying(r){if(this.logger.log("Inviter.onTrying"),this.state!==xe.Establishing){this.logger.error(`Trying received while in state ${this.state}, dropping response`);return}}}var Cr;(function(o){o.Initial="Initial",o.Registered="Registered",o.Unregistered="Unregistered",o.Terminated="Terminated"})(Cr=Cr||(Cr={}));class Co{constructor(r,i={}){this.disposed=!1,this._contacts=[],this._retryAfter=void 0,this._state=Cr.Initial,this._waiting=!1,this._stateEventEmitter=new Xh,this._waitingEventEmitter=new Xh,this.userAgent=r;const l=r.configuration.uri.clone();if(l.user=void 0,this.options=Object.assign(Object.assign(Object.assign({},Co.defaultOptions()),{registrar:l}),Co.stripUndefinedProperties(i)),this.options.extraContactHeaderParams=(this.options.extraContactHeaderParams||[]).slice(),this.options.extraHeaders=(this.options.extraHeaders||[]).slice(),!this.options.registrar)throw new Error("Registrar undefined.");if(this.options.registrar=this.options.registrar.clone(),this.options.regId&&!this.options.instanceId?this.options.instanceId=this.userAgent.instanceId:!this.options.regId&&this.options.instanceId&&(this.options.regId=1),this.options.instanceId&&zn.parse(this.options.instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");if(this.options.regId&&this.options.regId<0)throw new Error("Invalid regId.");const f=this.options.registrar,p=this.options.params&&this.options.params.fromUri||r.userAgentCore.configuration.aor,v=this.options.params&&this.options.params.toUri||r.configuration.uri,S=this.options.params||{},w=(i.extraHeaders||[]).slice();if(this.request=r.userAgentCore.makeOutgoingRequestMessage(tt.REGISTER,f,p,v,S,w,void 0),this.expires=this.options.expires||Co.defaultExpires,this.expires<0)throw new Error("Invalid expires.");if(this.refreshFrequency=this.options.refreshFrequency||Co.defaultRefreshFrequency,this.refreshFrequency<50||this.refreshFrequency>99)throw new Error("Invalid refresh frequency. The value represents a percentage of the expiration time and should be between 50 and 99.");this.logger=r.getLogger("sip.Registerer"),this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(C=>{const b=this.options[C];switch(C){case"registrar":this.logger.log("· "+C+": "+b);break;default:this.logger.log("· "+C+": "+JSON.stringify(b))}})),this.id=this.request.callId+this.request.from.parameters.tag,this.userAgent._registerers[this.id]=this}static defaultOptions(){return{expires:Co.defaultExpires,extraContactHeaderParams:[],extraHeaders:[],logConfiguration:!0,instanceId:"",params:{},regId:0,registrar:new xo("sip","anonymous","anonymous.invalid"),refreshFrequency:Co.defaultRefreshFrequency}}static stripUndefinedProperties(r){return Object.keys(r).reduce((i,l)=>(r[l]!==void 0&&(i[l]=r[l]),i),{})}get contacts(){return this._contacts.slice()}get retryAfter(){return this._retryAfter}get state(){return this._state}get stateChange(){return this._stateEventEmitter}dispose(){return this.disposed?Promise.resolve():(this.disposed=!0,this.logger.log(`Registerer ${this.id} in state ${this.state} is being disposed`),delete this.userAgent._registerers[this.id],new Promise(r=>{const i=()=>{if(!this.waiting&&this._state===Cr.Registered){this.stateChange.addListener(()=>{this.terminated(),r()},{once:!0}),this.unregister();return}this.terminated(),r()};this.waiting?this.waitingChange.addListener(()=>{i()},{once:!0}):i()}))}register(r={}){if(this.state===Cr.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const f=new Hx("REGISTER request already in progress, waiting for final response");return Promise.reject(f)}r.requestOptions&&(this.options=Object.assign(Object.assign({},this.options),r.requestOptions));const i=(this.options.extraHeaders||[]).slice();i.push("Contact: "+this.generateContactHeader(this.expires)),i.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.request.extraHeaders=i,this.waitingToggle(!0);const l=this.userAgent.userAgentCore.register(this.request,{onAccept:f=>{let p;f.message.hasHeader("expires")&&(p=Number(f.message.getHeader("expires"))),this._contacts=f.message.getHeaders("contact");let v=this._contacts.length;if(!v){this.logger.error("No Contact header in response to REGISTER, dropping response."),this.unregistered();return}let S;for(;v--;){if(S=f.message.parseHeader("contact",v),!S)throw new Error("Contact undefined");if(this.userAgent.contact.pubGruu&&LS(S.uri,this.userAgent.contact.pubGruu)){p=Number(S.getParam("expires"));break}if(this.userAgent.configuration.contactName===""){if(S.uri.user===this.userAgent.contact.uri.user){p=Number(S.getParam("expires"));break}}else if(LS(S.uri,this.userAgent.contact.uri)){p=Number(S.getParam("expires"));break}S=void 0}if(S===void 0){this.logger.error("No Contact header pointing to us, dropping response"),this.unregistered(),this.waitingToggle(!1);return}if(p===void 0){this.logger.error("Contact pointing to us is missing expires parameter, dropping response"),this.unregistered(),this.waitingToggle(!1);return}if(S.hasParam("temp-gruu")){const w=S.getParam("temp-gruu");w&&(this.userAgent.contact.tempGruu=zn.URIParse(w.replace(/"/g,"")))}if(S.hasParam("pub-gruu")){const w=S.getParam("pub-gruu");w&&(this.userAgent.contact.pubGruu=zn.URIParse(w.replace(/"/g,"")))}this.registered(p),r.requestDelegate&&r.requestDelegate.onAccept&&r.requestDelegate.onAccept(f),this.waitingToggle(!1)},onProgress:f=>{r.requestDelegate&&r.requestDelegate.onProgress&&r.requestDelegate.onProgress(f)},onRedirect:f=>{this.logger.error("Redirect received. Not supported."),this.unregistered(),r.requestDelegate&&r.requestDelegate.onRedirect&&r.requestDelegate.onRedirect(f),this.waitingToggle(!1)},onReject:f=>{if(f.message.statusCode===423){if(!f.message.hasHeader("min-expires")){this.logger.error("423 response received for REGISTER without Min-Expires, dropping response"),this.unregistered(),this.waitingToggle(!1);return}this.expires=Number(f.message.getHeader("min-expires")),this.waitingToggle(!1),this.register();return}this.logger.warn(`Failed to register, status code ${f.message.statusCode}`);let p=NaN;if(f.message.statusCode===500||f.message.statusCode===503){const v=f.message.getHeader("retry-after");v&&(p=Number.parseInt(v,void 0))}this._retryAfter=isNaN(p)?void 0:p,this.unregistered(),r.requestDelegate&&r.requestDelegate.onReject&&r.requestDelegate.onReject(f),this._retryAfter=void 0,this.waitingToggle(!1)},onTrying:f=>{r.requestDelegate&&r.requestDelegate.onTrying&&r.requestDelegate.onTrying(f)}});return Promise.resolve(l)}unregister(r={}){if(this.state===Cr.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed&&this.state!==Cr.Registered)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const f=new Hx("REGISTER request already in progress, waiting for final response");return Promise.reject(f)}this._state!==Cr.Registered&&!r.all&&this.logger.warn("Not currently registered, but sending an unregister anyway.");const i=(r.requestOptions&&r.requestOptions.extraHeaders||[]).slice();this.request.extraHeaders=i,r.all?(i.push("Contact: *"),i.push("Expires: 0")):i.push("Contact: "+this.generateContactHeader(0)),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.waitingToggle(!0);const l=this.userAgent.userAgentCore.register(this.request,{onAccept:f=>{this._contacts=f.message.getHeaders("contact"),this.unregistered(),r.requestDelegate&&r.requestDelegate.onAccept&&r.requestDelegate.onAccept(f),this.waitingToggle(!1)},onProgress:f=>{r.requestDelegate&&r.requestDelegate.onProgress&&r.requestDelegate.onProgress(f)},onRedirect:f=>{this.logger.error("Unregister redirected. Not currently supported."),this.unregistered(),r.requestDelegate&&r.requestDelegate.onRedirect&&r.requestDelegate.onRedirect(f),this.waitingToggle(!1)},onReject:f=>{this.logger.error(`Unregister rejected with status code ${f.message.statusCode}`),this.unregistered(),r.requestDelegate&&r.requestDelegate.onReject&&r.requestDelegate.onReject(f),this.waitingToggle(!1)},onTrying:f=>{r.requestDelegate&&r.requestDelegate.onTrying&&r.requestDelegate.onTrying(f)}});return Promise.resolve(l)}clearTimers(){this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.registrationExpiredTimer!==void 0&&(clearTimeout(this.registrationExpiredTimer),this.registrationExpiredTimer=void 0)}generateContactHeader(r){let i=this.userAgent.contact.toString({register:!0});return this.options.regId&&this.options.instanceId&&(i+=";reg-id="+this.options.regId,i+=';+sip.instance="<urn:uuid:'+this.options.instanceId+'>"'),this.options.extraContactHeaderParams&&this.options.extraContactHeaderParams.forEach(l=>{i+=";"+l}),i+=";expires="+r,i}registered(r){this.clearTimers(),this.registrationTimer=setTimeout(()=>{this.registrationTimer=void 0,this.register()},this.refreshFrequency/100*r*1e3),this.registrationExpiredTimer=setTimeout(()=>{this.logger.warn("Registration expired"),this.unregistered()},r*1e3),this._state!==Cr.Registered&&this.stateTransition(Cr.Registered)}unregistered(){this.clearTimers(),this._state!==Cr.Unregistered&&this.stateTransition(Cr.Unregistered)}terminated(){this.clearTimers(),this._state!==Cr.Terminated&&this.stateTransition(Cr.Terminated)}stateTransition(r){const i=()=>{throw new Error(`Invalid state transition from ${this._state} to ${r}`)};switch(this._state){case Cr.Initial:r!==Cr.Registered&&r!==Cr.Unregistered&&r!==Cr.Terminated&&i();break;case Cr.Registered:r!==Cr.Unregistered&&r!==Cr.Terminated&&i();break;case Cr.Unregistered:r!==Cr.Registered&&r!==Cr.Terminated&&i();break;case Cr.Terminated:i();break;default:throw new Error("Unrecognized state.")}this._state=r,this.logger.log(`Registration transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),r===Cr.Terminated&&this.dispose()}get waiting(){return this._waiting}get waitingChange(){return this._waitingEventEmitter}waitingToggle(r){if(this._waiting===r)throw new Error(`Invalid waiting transition from ${this._waiting} to ${r}`);this._waiting=r,this.logger.log(`Waiting toggled to ${this._waiting}`),this._waitingEventEmitter.emit(this._waiting)}waitingWarning(){let r="An attempt was made to send a REGISTER request while a prior one was still in progress.";r+=" RFC 3261 requires UAs MUST NOT send a new registration until they have received a final response",r+=" from the registrar for the previous one or the previous REGISTER request has timed out.",r+=" Note that if the transport disconnects, you still must wait for the prior request to time out before",r+=" sending a new REGISTER request or alternatively dispose of the current Registerer and create a new Registerer.",this.logger.warn(r)}stateError(){let i=`An attempt was made to send a REGISTER request when the Registerer ${this.state===Cr.Terminated?"is in 'Terminated' state":"has been disposed"}.`;i+=" The Registerer transitions to 'Terminated' when Registerer.dispose() is called.",i+=" Perhaps you called UserAgent.stop() which dipsoses of all Registerers?",this.logger.error(i)}}Co.defaultExpires=600,Co.defaultRefreshFrequency=99;var vr;(function(o){o.Initial="Initial",o.NotifyWait="NotifyWait",o.Pending="Pending",o.Active="Active",o.Terminated="Terminated"})(vr=vr||(vr={}));var Rt;(function(o){o.Connecting="Connecting",o.Connected="Connected",o.Disconnecting="Disconnecting",o.Disconnected="Disconnected"})(Rt=Rt||(Rt={}));var pi;(function(o){o.Started="Started",o.Stopped="Stopped"})(pi=pi||(pi={}));class Hn{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(r,i=!1){return this.onePassHasher.start().appendStr(r).end(i)}static hashAsciiStr(r,i=!1){return this.onePassHasher.start().appendAsciiStr(r).end(i)}static _hex(r){const i=Hn.hexChars,l=Hn.hexOut;let f,p,v,S;for(S=0;S<4;S+=1)for(p=S*8,f=r[S],v=0;v<8;v+=2)l[p+1+v]=i.charAt(f&15),f>>>=4,l[p+0+v]=i.charAt(f&15),f>>>=4;return l.join("")}static _md5cycle(r,i){let l=r[0],f=r[1],p=r[2],v=r[3];l+=(f&p|~f&v)+i[0]-680876936|0,l=(l<<7|l>>>25)+f|0,v+=(l&f|~l&p)+i[1]-389564586|0,v=(v<<12|v>>>20)+l|0,p+=(v&l|~v&f)+i[2]+606105819|0,p=(p<<17|p>>>15)+v|0,f+=(p&v|~p&l)+i[3]-1044525330|0,f=(f<<22|f>>>10)+p|0,l+=(f&p|~f&v)+i[4]-176418897|0,l=(l<<7|l>>>25)+f|0,v+=(l&f|~l&p)+i[5]+1200080426|0,v=(v<<12|v>>>20)+l|0,p+=(v&l|~v&f)+i[6]-1473231341|0,p=(p<<17|p>>>15)+v|0,f+=(p&v|~p&l)+i[7]-45705983|0,f=(f<<22|f>>>10)+p|0,l+=(f&p|~f&v)+i[8]+1770035416|0,l=(l<<7|l>>>25)+f|0,v+=(l&f|~l&p)+i[9]-1958414417|0,v=(v<<12|v>>>20)+l|0,p+=(v&l|~v&f)+i[10]-42063|0,p=(p<<17|p>>>15)+v|0,f+=(p&v|~p&l)+i[11]-1990404162|0,f=(f<<22|f>>>10)+p|0,l+=(f&p|~f&v)+i[12]+1804603682|0,l=(l<<7|l>>>25)+f|0,v+=(l&f|~l&p)+i[13]-40341101|0,v=(v<<12|v>>>20)+l|0,p+=(v&l|~v&f)+i[14]-1502002290|0,p=(p<<17|p>>>15)+v|0,f+=(p&v|~p&l)+i[15]+1236535329|0,f=(f<<22|f>>>10)+p|0,l+=(f&v|p&~v)+i[1]-165796510|0,l=(l<<5|l>>>27)+f|0,v+=(l&p|f&~p)+i[6]-1069501632|0,v=(v<<9|v>>>23)+l|0,p+=(v&f|l&~f)+i[11]+643717713|0,p=(p<<14|p>>>18)+v|0,f+=(p&l|v&~l)+i[0]-373897302|0,f=(f<<20|f>>>12)+p|0,l+=(f&v|p&~v)+i[5]-701558691|0,l=(l<<5|l>>>27)+f|0,v+=(l&p|f&~p)+i[10]+38016083|0,v=(v<<9|v>>>23)+l|0,p+=(v&f|l&~f)+i[15]-660478335|0,p=(p<<14|p>>>18)+v|0,f+=(p&l|v&~l)+i[4]-405537848|0,f=(f<<20|f>>>12)+p|0,l+=(f&v|p&~v)+i[9]+568446438|0,l=(l<<5|l>>>27)+f|0,v+=(l&p|f&~p)+i[14]-1019803690|0,v=(v<<9|v>>>23)+l|0,p+=(v&f|l&~f)+i[3]-187363961|0,p=(p<<14|p>>>18)+v|0,f+=(p&l|v&~l)+i[8]+1163531501|0,f=(f<<20|f>>>12)+p|0,l+=(f&v|p&~v)+i[13]-1444681467|0,l=(l<<5|l>>>27)+f|0,v+=(l&p|f&~p)+i[2]-51403784|0,v=(v<<9|v>>>23)+l|0,p+=(v&f|l&~f)+i[7]+1735328473|0,p=(p<<14|p>>>18)+v|0,f+=(p&l|v&~l)+i[12]-1926607734|0,f=(f<<20|f>>>12)+p|0,l+=(f^p^v)+i[5]-378558|0,l=(l<<4|l>>>28)+f|0,v+=(l^f^p)+i[8]-2022574463|0,v=(v<<11|v>>>21)+l|0,p+=(v^l^f)+i[11]+1839030562|0,p=(p<<16|p>>>16)+v|0,f+=(p^v^l)+i[14]-35309556|0,f=(f<<23|f>>>9)+p|0,l+=(f^p^v)+i[1]-1530992060|0,l=(l<<4|l>>>28)+f|0,v+=(l^f^p)+i[4]+1272893353|0,v=(v<<11|v>>>21)+l|0,p+=(v^l^f)+i[7]-155497632|0,p=(p<<16|p>>>16)+v|0,f+=(p^v^l)+i[10]-1094730640|0,f=(f<<23|f>>>9)+p|0,l+=(f^p^v)+i[13]+681279174|0,l=(l<<4|l>>>28)+f|0,v+=(l^f^p)+i[0]-358537222|0,v=(v<<11|v>>>21)+l|0,p+=(v^l^f)+i[3]-722521979|0,p=(p<<16|p>>>16)+v|0,f+=(p^v^l)+i[6]+76029189|0,f=(f<<23|f>>>9)+p|0,l+=(f^p^v)+i[9]-640364487|0,l=(l<<4|l>>>28)+f|0,v+=(l^f^p)+i[12]-421815835|0,v=(v<<11|v>>>21)+l|0,p+=(v^l^f)+i[15]+530742520|0,p=(p<<16|p>>>16)+v|0,f+=(p^v^l)+i[2]-995338651|0,f=(f<<23|f>>>9)+p|0,l+=(p^(f|~v))+i[0]-198630844|0,l=(l<<6|l>>>26)+f|0,v+=(f^(l|~p))+i[7]+1126891415|0,v=(v<<10|v>>>22)+l|0,p+=(l^(v|~f))+i[14]-1416354905|0,p=(p<<15|p>>>17)+v|0,f+=(v^(p|~l))+i[5]-57434055|0,f=(f<<21|f>>>11)+p|0,l+=(p^(f|~v))+i[12]+1700485571|0,l=(l<<6|l>>>26)+f|0,v+=(f^(l|~p))+i[3]-1894986606|0,v=(v<<10|v>>>22)+l|0,p+=(l^(v|~f))+i[10]-1051523|0,p=(p<<15|p>>>17)+v|0,f+=(v^(p|~l))+i[1]-2054922799|0,f=(f<<21|f>>>11)+p|0,l+=(p^(f|~v))+i[8]+1873313359|0,l=(l<<6|l>>>26)+f|0,v+=(f^(l|~p))+i[15]-30611744|0,v=(v<<10|v>>>22)+l|0,p+=(l^(v|~f))+i[6]-1560198380|0,p=(p<<15|p>>>17)+v|0,f+=(v^(p|~l))+i[13]+1309151649|0,f=(f<<21|f>>>11)+p|0,l+=(p^(f|~v))+i[4]-145523070|0,l=(l<<6|l>>>26)+f|0,v+=(f^(l|~p))+i[11]-1120210379|0,v=(v<<10|v>>>22)+l|0,p+=(l^(v|~f))+i[2]+718787259|0,p=(p<<15|p>>>17)+v|0,f+=(v^(p|~l))+i[9]-343485551|0,f=(f<<21|f>>>11)+p|0,r[0]=l+r[0]|0,r[1]=f+r[1]|0,r[2]=p+r[2]|0,r[3]=v+r[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(Hn.stateIdentity),this}appendStr(r){const i=this._buffer8,l=this._buffer32;let f=this._bufferLength,p,v;for(v=0;v<r.length;v+=1){if(p=r.charCodeAt(v),p<128)i[f++]=p;else if(p<2048)i[f++]=(p>>>6)+192,i[f++]=p&63|128;else if(p<55296||p>56319)i[f++]=(p>>>12)+224,i[f++]=p>>>6&63|128,i[f++]=p&63|128;else{if(p=(p-55296)*1024+(r.charCodeAt(++v)-56320)+65536,p>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");i[f++]=(p>>>18)+240,i[f++]=p>>>12&63|128,i[f++]=p>>>6&63|128,i[f++]=p&63|128}f>=64&&(this._dataLength+=64,Hn._md5cycle(this._state,l),f-=64,l[0]=l[16])}return this._bufferLength=f,this}appendAsciiStr(r){const i=this._buffer8,l=this._buffer32;let f=this._bufferLength,p,v=0;for(;;){for(p=Math.min(r.length-v,64-f);p--;)i[f++]=r.charCodeAt(v++);if(f<64)break;this._dataLength+=64,Hn._md5cycle(this._state,l),f=0}return this._bufferLength=f,this}appendByteArray(r){const i=this._buffer8,l=this._buffer32;let f=this._bufferLength,p,v=0;for(;;){for(p=Math.min(r.length-v,64-f);p--;)i[f++]=r[v++];if(f<64)break;this._dataLength+=64,Hn._md5cycle(this._state,l),f=0}return this._bufferLength=f,this}getState(){const r=this,i=r._state;return{buffer:String.fromCharCode.apply(null,r._buffer8),buflen:r._bufferLength,length:r._dataLength,state:[i[0],i[1],i[2],i[3]]}}setState(r){const i=r.buffer,l=r.state,f=this._state;let p;for(this._dataLength=r.length,this._bufferLength=r.buflen,f[0]=l[0],f[1]=l[1],f[2]=l[2],f[3]=l[3],p=0;p<i.length;p+=1)this._buffer8[p]=i.charCodeAt(p)}end(r=!1){const i=this._bufferLength,l=this._buffer8,f=this._buffer32,p=(i>>2)+1;let v;if(this._dataLength+=i,l[i]=128,l[i+1]=l[i+2]=l[i+3]=0,f.set(Hn.buffer32Identity.subarray(p),p),i>55&&(Hn._md5cycle(this._state,f),f.set(Hn.buffer32Identity)),v=this._dataLength*8,v<=4294967295)f[14]=v;else{const S=v.toString(16).match(/(.*?)(.{0,8})$/);if(S===null)return;const w=parseInt(S[2],16),C=parseInt(S[1],16)||0;f[14]=w,f[15]=C}return Hn._md5cycle(this._state,f),r?this._state:Hn._hex(this._state)}}Hn.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),Hn.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Hn.hexChars="0123456789abcdef",Hn.hexOut=[],Hn.onePassHasher=new Hn,Hn.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592"&&console.error("Md5 self test failed.");function yu(o){return Hn.hashStr(o)}class ZR{constructor(r,i,l,f){this.logger=r.getLogger("sipjs.digestauthentication"),this.username=l,this.password=f,this.ha1=i,this.nc=0,this.ncHex="00000000"}authenticate(r,i,l){if(this.algorithm=i.algorithm,this.realm=i.realm,this.nonce=i.nonce,this.opaque=i.opaque,this.stale=i.stale,this.algorithm){if(this.algorithm!=="MD5")return this.logger.warn("challenge with Digest algorithm different than 'MD5', authentication aborted"),!1}else this.algorithm="MD5";if(!this.realm)return this.logger.warn("challenge without Digest realm, authentication aborted"),!1;if(!this.nonce)return this.logger.warn("challenge without Digest nonce, authentication aborted"),!1;if(i.qop)if(i.qop.indexOf("auth")>-1)this.qop="auth";else if(i.qop.indexOf("auth-int")>-1)this.qop="auth-int";else return this.logger.warn("challenge without Digest qop different than 'auth' or 'auth-int', authentication aborted"),!1;else this.qop=void 0;return this.method=r.method,this.uri=r.ruri,this.cnonce=_c(12),this.nc+=1,this.updateNcHex(),this.nc===4294967296&&(this.nc=1,this.ncHex="00000001"),this.calculateResponse(l),!0}toString(){const r=[];if(!this.response)throw new Error("response field does not exist, cannot generate Authorization header");return r.push("algorithm="+this.algorithm),r.push('username="'+this.username+'"'),r.push('realm="'+this.realm+'"'),r.push('nonce="'+this.nonce+'"'),r.push('uri="'+this.uri+'"'),r.push('response="'+this.response+'"'),this.opaque&&r.push('opaque="'+this.opaque+'"'),this.qop&&(r.push("qop="+this.qop),r.push('cnonce="'+this.cnonce+'"'),r.push("nc="+this.ncHex)),"Digest "+r.join(", ")}updateNcHex(){const r=Number(this.nc).toString(16);this.ncHex="00000000".substr(0,8-r.length)+r}calculateResponse(r){let i,l;i=this.ha1,(i===""||i===void 0)&&(i=yu(this.username+":"+this.realm+":"+this.password)),this.qop==="auth"?(l=yu(this.method+":"+this.uri),this.response=yu(i+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth:"+l)):this.qop==="auth-int"?(l=yu(this.method+":"+this.uri+":"+yu(r||"")),this.response=yu(i+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth-int:"+l)):this.qop===void 0&&(l=yu(this.method+":"+this.uri),this.response=yu(i+":"+this.nonce+":"+l))}}var li;(function(o){o[o.error=0]="error",o[o.warn=1]="warn",o[o.log=2]="log",o[o.debug=3]="debug"})(li=li||(li={}));class WS{constructor(r,i,l){this.logger=r,this.category=i,this.label=l}error(r){this.genericLog(li.error,r)}warn(r){this.genericLog(li.warn,r)}log(r){this.genericLog(li.log,r)}debug(r){this.genericLog(li.debug,r)}genericLog(r,i){this.logger.genericLog(r,this.category,this.label,i)}get level(){return this.logger.level}set level(r){this.logger.level=r}}class XR{constructor(){this.builtinEnabled=!0,this._level=li.log,this.loggers={},this.logger=this.getLogger("sip:loggerfactory")}get level(){return this._level}set level(r){r>=0&&r<=3?this._level=r:r>3?this._level=3:li.hasOwnProperty(r)?this._level=r:this.logger.error("invalid 'level' parameter value: "+JSON.stringify(r))}get connector(){return this._connector}set connector(r){r?typeof r=="function"?this._connector=r:this.logger.error("invalid 'connector' parameter value: "+JSON.stringify(r)):this._connector=void 0}getLogger(r,i){if(i&&this.level===3)return new WS(this,r,i);if(this.loggers[r])return this.loggers[r];{const l=new WS(this,r);return this.loggers[r]=l,l}}genericLog(r,i,l,f){this.level>=r&&this.builtinEnabled&&this.print(r,i,l,f),this.connector&&this.connector(li[r],i,l,f)}print(r,i,l,f){if(typeof f=="string"){const p=[new Date,i];l&&p.push(l),f=p.concat(f).join(" | ")}switch(r){case li.error:console.error(f);break;case li.warn:console.warn(f);break;case li.log:console.log(f);break;case li.debug:console.debug(f);break}}}var _v;(function(o){function r(f,p){let v=p,S=0,w=0;if(f.substring(v,v+2).match(/(^\r\n)/))return-2;for(;S===0;){if(w=f.indexOf(`\r
|
|
390
|
-
`,v),
|
|
391
|
-
`);if(S===-1){p.warn("no CRLF found, not a SIP message, discarded");return}const
|
|
392
|
-
`;if(r.statusCode<100||r.statusCode>699)throw new TypeError("Invalid statusCode: "+r.statusCode);const l=r.reasonPhrase?r.reasonPhrase:Sv(r.statusCode);let f="SIP/2.0 "+r.statusCode+" "+l+i;r.statusCode>=100&&r.statusCode<200,r.statusCode;const p="From: "+o.getHeader("From")+i,v="Call-ID: "+o.callId+i,S="CSeq: "+o.cseq+" "+o.method+i,w=o.getHeaders("via").reduce((H,P)=>H+"Via: "+P+i,"");let C="To: "+o.getHeader("to");if(r.statusCode>100&&!o.parseHeader("to").hasParam("tag")){let H=r.toTag;H||(H=wv()),C+=";tag="+H}C+=i;let b="";r.supported&&(b="Supported: "+r.supported.join(", ")+i);let R="";r.userAgent&&(R="User-Agent: "+r.userAgent+i);let T="";return r.extraHeaders&&(T=r.extraHeaders.reduce((H,P)=>H+P.trim()+i,"")),f+=w,f+=p,f+=C,f+=S,f+=v,f+=b,f+=R,f+=T,r.body?(f+="Content-Type: "+r.body.contentType+i,f+="Content-Length: "+Jh(r.body.content)+i+i,f+=r.body.content):f+="Content-Length: 0"+i+i,{message:f}}class Lx extends bc{constructor(r){super(r||"Unspecified transport error.")}}class KS{constructor(r,i,l,f,p){this._transport=r,this._user=i,this._id=l,this._state=f,this.listeners=new Array,this.logger=i.loggerFactory.getLogger(p,l),this.logger.debug(`Constructing ${this.typeToString()} with id ${this.id}.`)}dispose(){this.logger.debug(`Destroyed ${this.typeToString()} with id ${this.id}.`)}get id(){return this._id}get kind(){throw new Error("Invalid kind.")}get state(){return this._state}get transport(){return this._transport}addStateChangeListener(r,i){const l=()=>{this.removeStateChangeListener(l),r()};(i==null?void 0:i.once)===!0?this.listeners.push(l):this.listeners.push(r)}notifyStateChangeListeners(){this.listeners.slice().forEach(r=>r())}removeStateChangeListener(r){this.listeners=this.listeners.filter(i=>i!==r)}logTransportError(r,i){this.logger.error(r.message),this.logger.error(`Transport error occurred in ${this.typeToString()} with id ${this.id}.`),this.logger.error(i)}send(r){return this.transport.send(r).catch(i=>{if(i instanceof Lx)throw this.onTransportError(i),i;let l;throw i&&typeof i.message=="string"?l=new Lx(i.message):l=new Lx,this.onTransportError(l),l})}setState(r){this.logger.debug(`State change to "${r}" on ${this.typeToString()} with id ${this.id}.`),this._state=r,this._user.onStateChange&&this._user.onStateChange(r),this.notifyStateChangeListeners()}typeToString(){return"UnknownType"}}class QS extends KS{constructor(r,i,l,f,p){super(i,l,r.viaBranch,f,p),this._request=r,this.user=l}get request(){return this._request}}var pe;(function(o){o.Accepted="Accepted",o.Calling="Calling",o.Completed="Completed",o.Confirmed="Confirmed",o.Proceeding="Proceeding",o.Terminated="Terminated",o.Trying="Trying"})(pe=pe||(pe={}));class ya extends QS{constructor(r,i,l){super(r,i,l,pe.Proceeding,"sip.transaction.ist")}dispose(){this.stopProgressExtensionTimer(),this.H&&(clearTimeout(this.H),this.H=void 0),this.I&&(clearTimeout(this.I),this.I=void 0),this.L&&(clearTimeout(this.L),this.L=void 0),super.dispose()}get kind(){return"ist"}receiveRequest(r){switch(this.state){case pe.Proceeding:if(r.method===tt.INVITE){this.lastProvisionalResponse&&this.send(this.lastProvisionalResponse).catch(l=>{this.logTransportError(l,"Failed to send retransmission of provisional response.")});return}break;case pe.Accepted:if(r.method===tt.INVITE)return;break;case pe.Completed:if(r.method===tt.INVITE){if(!this.lastFinalResponse)throw new Error("Last final response undefined.");this.send(this.lastFinalResponse).catch(l=>{this.logTransportError(l,"Failed to send retransmission of final response.")});return}if(r.method===tt.ACK){this.stateTransition(pe.Confirmed);return}break;case pe.Confirmed:if(r.method===tt.INVITE||r.method===tt.ACK)return;break;case pe.Terminated:if(r.method===tt.INVITE||r.method===tt.ACK)return;break;default:throw new Error(`Invalid state ${this.state}`)}const i=`INVITE server transaction received unexpected ${r.method} request while in state ${this.state}.`;this.logger.warn(i)}receiveResponse(r,i){if(r<100||r>699)throw new Error(`Invalid status code ${r}`);switch(this.state){case pe.Proceeding:if(r>=100&&r<=199){this.lastProvisionalResponse=i,r>100&&this.startProgressExtensionTimer(),this.send(i).catch(f=>{this.logTransportError(f,"Failed to send 1xx response.")});return}if(r>=200&&r<=299){this.lastFinalResponse=i,this.stateTransition(pe.Accepted),this.send(i).catch(f=>{this.logTransportError(f,"Failed to send 2xx response.")});return}if(r>=300&&r<=699){this.lastFinalResponse=i,this.stateTransition(pe.Completed),this.send(i).catch(f=>{this.logTransportError(f,"Failed to send non-2xx final response.")});return}break;case pe.Accepted:if(r>=200&&r<=299){this.send(i).catch(f=>{this.logTransportError(f,"Failed to send 2xx response.")});return}break;case pe.Completed:break;case pe.Confirmed:break;case pe.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const l=`INVITE server transaction received unexpected ${r} response from TU while in state ${this.state}.`;throw this.logger.error(l),new Error(l)}retransmitAcceptedResponse(){this.state===pe.Accepted&&this.lastFinalResponse&&this.send(this.lastFinalResponse).catch(r=>{this.logTransportError(r,"Failed to send 2xx response.")})}onTransportError(r){this.user.onTransportError&&this.user.onTransportError(r)}typeToString(){return"INVITE server transaction"}stateTransition(r){const i=()=>{throw new Error(`Invalid state transition from ${this.state} to ${r}`)};switch(r){case pe.Proceeding:i();break;case pe.Accepted:case pe.Completed:this.state!==pe.Proceeding&&i();break;case pe.Confirmed:this.state!==pe.Completed&&i();break;case pe.Terminated:this.state!==pe.Accepted&&this.state!==pe.Completed&&this.state!==pe.Confirmed&&i();break;default:i()}this.stopProgressExtensionTimer(),r===pe.Accepted&&(this.L=setTimeout(()=>this.timerL(),oi.TIMER_L)),r===pe.Completed&&(this.H=setTimeout(()=>this.timerH(),oi.TIMER_H)),r===pe.Confirmed&&(this.I=setTimeout(()=>this.timerI(),oi.TIMER_I)),r===pe.Terminated&&this.dispose(),this.setState(r)}startProgressExtensionTimer(){this.progressExtensionTimer===void 0&&(this.progressExtensionTimer=setInterval(()=>{if(this.logger.debug(`Progress extension timer expired for INVITE server transaction ${this.id}.`),!this.lastProvisionalResponse)throw new Error("Last provisional response undefined.");this.send(this.lastProvisionalResponse).catch(r=>{this.logTransportError(r,"Failed to send retransmission of provisional response.")})},oi.PROVISIONAL_RESPONSE_INTERVAL))}stopProgressExtensionTimer(){this.progressExtensionTimer!==void 0&&(clearInterval(this.progressExtensionTimer),this.progressExtensionTimer=void 0)}timerG(){}timerH(){this.logger.debug(`Timer H expired for INVITE server transaction ${this.id}.`),this.state===pe.Completed&&(this.logger.warn("ACK to negative final response was never received, terminating transaction."),this.stateTransition(pe.Terminated))}timerI(){this.logger.debug(`Timer I expired for INVITE server transaction ${this.id}.`),this.stateTransition(pe.Terminated)}timerL(){this.logger.debug(`Timer L expired for INVITE server transaction ${this.id}.`),this.state===pe.Accepted&&this.stateTransition(pe.Terminated)}}class Dv extends KS{constructor(r,i,l,f,p){super(i,l,Dv.makeId(r),f,p),this._request=r,this.user=l,r.setViaHeader(this.id,i.protocol)}static makeId(r){if(r.method==="CANCEL"){if(!r.branch)throw new Error("Outgoing CANCEL request without a branch.");return r.branch}else return"z9hG4bK"+Math.floor(Math.random()*1e7)}get request(){return this._request}onRequestTimeout(){this.user.onRequestTimeout&&this.user.onRequestTimeout()}}class Pa extends Dv{constructor(r,i,l){super(r,i,l,pe.Trying,"sip.transaction.nict"),this.F=setTimeout(()=>this.timerF(),oi.TIMER_F),this.send(r.toString()).catch(f=>{this.logTransportError(f,"Failed to send initial outgoing request.")})}dispose(){this.F&&(clearTimeout(this.F),this.F=void 0),this.K&&(clearTimeout(this.K),this.K=void 0),super.dispose()}get kind(){return"nict"}receiveResponse(r){const i=r.statusCode;if(!i||i<100||i>699)throw new Error(`Invalid status code ${i}`);switch(this.state){case pe.Trying:if(i>=100&&i<=199){this.stateTransition(pe.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(r);return}if(i>=200&&i<=699){if(this.stateTransition(pe.Completed),i===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(r);return}break;case pe.Proceeding:if(i>=100&&i<=199&&this.user.receiveResponse)return this.user.receiveResponse(r);if(i>=200&&i<=699){if(this.stateTransition(pe.Completed),i===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(r);return}break;case pe.Completed:return;case pe.Terminated:return;default:throw new Error(`Invalid state ${this.state}`)}const l=`Non-INVITE client transaction received unexpected ${i} response while in state ${this.state}.`;this.logger.warn(l)}onTransportError(r){this.user.onTransportError&&this.user.onTransportError(r),this.stateTransition(pe.Terminated,!0)}typeToString(){return"non-INVITE client transaction"}stateTransition(r,i=!1){const l=()=>{throw new Error(`Invalid state transition from ${this.state} to ${r}`)};switch(r){case pe.Trying:l();break;case pe.Proceeding:this.state!==pe.Trying&&l();break;case pe.Completed:this.state!==pe.Trying&&this.state!==pe.Proceeding&&l();break;case pe.Terminated:this.state!==pe.Trying&&this.state!==pe.Proceeding&&this.state!==pe.Completed&&(i||l());break;default:l()}r===pe.Completed&&(this.F&&(clearTimeout(this.F),this.F=void 0),this.K=setTimeout(()=>this.timerK(),oi.TIMER_K)),r===pe.Terminated&&this.dispose(),this.setState(r)}timerF(){this.logger.debug(`Timer F expired for non-INVITE client transaction ${this.id}.`),(this.state===pe.Trying||this.state===pe.Proceeding)&&(this.onRequestTimeout(),this.stateTransition(pe.Terminated))}timerK(){this.state===pe.Completed&&this.stateTransition(pe.Terminated)}}class Zf{constructor(r,i){this.core=r,this.dialogState=i,this.core.dialogs.set(this.id,this)}static initialDialogStateForUserAgentClient(r,i){const f=i.getHeaders("record-route").reverse(),p=i.parseHeader("contact");if(!p)throw new Error("Contact undefined.");if(!(p instanceof ma))throw new Error("Contact not instance of NameAddrHeader.");const v=p.uri,S=r.cseq,w=void 0,C=r.callId,b=r.fromTag,R=i.toTag;if(!C)throw new Error("Call id undefined.");if(!b)throw new Error("From tag undefined.");if(!R)throw new Error("To tag undefined.");if(!r.from)throw new Error("From undefined.");if(!r.to)throw new Error("To undefined.");const T=r.from.uri,H=r.to.uri;if(!i.statusCode)throw new Error("Incoming response status code undefined.");const P=i.statusCode<200;return{id:C+b+R,early:P,callId:C,localTag:b,remoteTag:R,localSequenceNumber:S,remoteSequenceNumber:w,localURI:T,remoteURI:H,remoteTarget:v,routeSet:f,secure:!1}}static initialDialogStateForUserAgentServer(r,i,l=!1){const p=r.getHeaders("record-route"),v=r.parseHeader("contact");if(!v)throw new Error("Contact undefined.");if(!(v instanceof ma))throw new Error("Contact not instance of NameAddrHeader.");const S=v.uri,w=r.cseq,C=void 0,b=r.callId,R=i,T=r.fromTag,H=r.from.uri,P=r.to.uri;return{id:b+R+T,early:l,callId:b,localTag:R,remoteTag:T,localSequenceNumber:C,remoteSequenceNumber:w,localURI:P,remoteURI:H,remoteTarget:S,routeSet:p,secure:!1}}dispose(){this.core.dialogs.delete(this.id)}get id(){return this.dialogState.id}get early(){return this.dialogState.early}get callId(){return this.dialogState.callId}get localTag(){return this.dialogState.localTag}get remoteTag(){return this.dialogState.remoteTag}get localSequenceNumber(){return this.dialogState.localSequenceNumber}get remoteSequenceNumber(){return this.dialogState.remoteSequenceNumber}get localURI(){return this.dialogState.localURI}get remoteURI(){return this.dialogState.remoteURI}get remoteTarget(){return this.dialogState.remoteTarget}get routeSet(){return this.dialogState.routeSet}get secure(){return this.dialogState.secure}get userAgentCore(){return this.core}confirm(){this.dialogState.early=!1}receiveRequest(r){if(r.method!==tt.ACK){if(this.remoteSequenceNumber){if(r.cseq<=this.remoteSequenceNumber)throw new Error("Out of sequence in dialog request. Did you forget to call sequenceGuard()?");this.dialogState.remoteSequenceNumber=r.cseq}this.remoteSequenceNumber||(this.dialogState.remoteSequenceNumber=r.cseq)}}recomputeRouteSet(r){this.dialogState.routeSet=r.getHeaders("record-route").reverse()}createOutgoingRequestMessage(r,i){const l=this.remoteURI,f=this.remoteTag,p=this.localURI,v=this.localTag,S=this.callId;let w;i&&i.cseq?w=i.cseq:this.dialogState.localSequenceNumber?w=this.dialogState.localSequenceNumber+=1:w=this.dialogState.localSequenceNumber=1;const C=this.remoteTarget,b=this.routeSet,R=i&&i.extraHeaders,T=i&&i.body;return this.userAgentCore.makeOutgoingRequestMessage(r,C,p,l,{callId:S,cseq:w,fromTag:v,toTag:f,routeSet:b},R,T)}incrementLocalSequenceNumber(){if(!this.dialogState.localSequenceNumber)throw new Error("Local sequence number undefined.");this.dialogState.localSequenceNumber+=1}sequenceGuard(r){return r.method===tt.ACK?!0:this.remoteSequenceNumber&&r.cseq<=this.remoteSequenceNumber?(this.core.replyStateless(r,{statusCode:500}),!1):!0}}class xu extends Dv{constructor(r,i,l){super(r,i,l,pe.Calling,"sip.transaction.ict"),this.ackRetransmissionCache=new Map,this.B=setTimeout(()=>this.timerB(),oi.TIMER_B),this.send(r.toString()).catch(f=>{this.logTransportError(f,"Failed to send initial outgoing request.")})}dispose(){this.B&&(clearTimeout(this.B),this.B=void 0),this.D&&(clearTimeout(this.D),this.D=void 0),this.M&&(clearTimeout(this.M),this.M=void 0),super.dispose()}get kind(){return"ict"}ackResponse(r){const i=r.toTag;if(!i)throw new Error("To tag undefined.");const l="z9hG4bK"+Math.floor(Math.random()*1e7);r.setViaHeader(l,this.transport.protocol),this.ackRetransmissionCache.set(i,r),this.send(r.toString()).catch(f=>{this.logTransportError(f,"Failed to send ACK to 2xx response.")})}receiveResponse(r){const i=r.statusCode;if(!i||i<100||i>699)throw new Error(`Invalid status code ${i}`);switch(this.state){case pe.Calling:if(i>=100&&i<=199){this.stateTransition(pe.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(r);return}if(i>=200&&i<=299){this.ackRetransmissionCache.set(r.toTag,void 0),this.stateTransition(pe.Accepted),this.user.receiveResponse&&this.user.receiveResponse(r);return}if(i>=300&&i<=699){this.stateTransition(pe.Completed),this.ack(r),this.user.receiveResponse&&this.user.receiveResponse(r);return}break;case pe.Proceeding:if(i>=100&&i<=199){this.user.receiveResponse&&this.user.receiveResponse(r);return}if(i>=200&&i<=299){this.ackRetransmissionCache.set(r.toTag,void 0),this.stateTransition(pe.Accepted),this.user.receiveResponse&&this.user.receiveResponse(r);return}if(i>=300&&i<=699){this.stateTransition(pe.Completed),this.ack(r),this.user.receiveResponse&&this.user.receiveResponse(r);return}break;case pe.Accepted:if(i>=200&&i<=299){if(!this.ackRetransmissionCache.has(r.toTag)){this.ackRetransmissionCache.set(r.toTag,void 0),this.user.receiveResponse&&this.user.receiveResponse(r);return}const f=this.ackRetransmissionCache.get(r.toTag);if(f){this.send(f.toString()).catch(p=>{this.logTransportError(p,"Failed to send retransmission of ACK to 2xx response.")});return}return}break;case pe.Completed:if(i>=300&&i<=699){this.ack(r);return}break;case pe.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const l=`Received unexpected ${i} response while in state ${this.state}.`;this.logger.warn(l)}onTransportError(r){this.user.onTransportError&&this.user.onTransportError(r),this.stateTransition(pe.Terminated,!0)}typeToString(){return"INVITE client transaction"}ack(r){const i=this.request.ruri,l=this.request.callId,f=this.request.cseq,p=this.request.getHeader("from"),v=r.getHeader("to"),S=this.request.getHeader("via"),w=this.request.getHeader("route");if(!p)throw new Error("From undefined.");if(!v)throw new Error("To undefined.");if(!S)throw new Error("Via undefined.");let C=`ACK ${i} SIP/2.0\r
|
|
393
|
-
`;
|
|
389
|
+
`,r}}function jS(o){return o==="application/sdp"?"session":"render"}function bv(o){const r=typeof o=="string"?o:o.body,i=typeof o=="string"?"application/sdp":o.contentType;return{contentDisposition:jS(i),contentType:i,content:r}}function zS(o){return o&&typeof o.content=="string"&&typeof o.contentType=="string"&&o.contentDisposition===void 0?!0:typeof o.contentDisposition=="string"}function e0(o){let r,i,l;if(o instanceof Qf&&o.body){const f=o.parseHeader("Content-Disposition");r=f?f.type:void 0,i=o.parseHeader("Content-Type"),l=o.body}if(o instanceof vu&&o.body){const f=o.parseHeader("Content-Disposition");r=f?f.type:void 0,i=o.parseHeader("Content-Type"),l=o.body}if(o instanceof Dc&&o.body)if(r=o.getHeader("Content-Disposition"),i=o.getHeader("Content-Type"),typeof o.body=="string"){if(!i)throw new Error("Header content type header does not equal body content type.");l=o.body}else{if(i&&i!==o.body.contentType)throw new Error("Header content type header does not equal body content type.");i=o.body.contentType,l=o.body.body}if(zS(o)&&(r=o.contentDisposition,i=o.contentType,l=o.content),!!l){if(i&&!r&&(r=jS(i)),!r)throw new Error("Content disposition undefined.");if(!i)throw new Error("Content type undefined.");return{contentDisposition:r,contentType:i,content:l}}}var as;(function(o){o.Initial="Initial",o.Early="Early",o.AckWait="AckWait",o.Confirmed="Confirmed",o.Terminated="Terminated"})(as=as||(as={}));var Ye;(function(o){o.Initial="Initial",o.HaveLocalOffer="HaveLocalOffer",o.HaveRemoteOffer="HaveRemoteOffer",o.Stable="Stable",o.Closed="Closed"})(Ye=Ye||(Ye={}));const dl=500,WR=4e3,qS=5e3,oi={T1:dl,T2:WR,TIMER_B:64*dl,TIMER_D:0*dl,TIMER_F:64*dl,TIMER_H:64*dl,TIMER_I:0*qS,TIMER_J:0*dl,TIMER_K:0*qS,TIMER_L:64*dl,TIMER_M:64*dl,TIMER_N:64*dl,PROVISIONAL_RESPONSE_INTERVAL:6e4};class gu extends bc{constructor(r){super(r||"Transaction state error.")}}var tt;(function(o){o.ACK="ACK",o.BYE="BYE",o.CANCEL="CANCEL",o.INFO="INFO",o.INVITE="INVITE",o.MESSAGE="MESSAGE",o.NOTIFY="NOTIFY",o.OPTIONS="OPTIONS",o.REGISTER="REGISTER",o.UPDATE="UPDATE",o.SUBSCRIBE="SUBSCRIBE",o.PUBLISH="PUBLISH",o.REFER="REFER",o.PRACK="PRACK"})(tt=tt||(tt={}));const mu=[tt.ACK,tt.BYE,tt.CANCEL,tt.INFO,tt.INVITE,tt.MESSAGE,tt.NOTIFY,tt.OPTIONS,tt.PRACK,tt.REFER,tt.REGISTER,tt.SUBSCRIBE];class YS{constructor(r){this.incomingMessageRequest=r}get request(){return this.incomingMessageRequest.message}accept(r){return this.incomingMessageRequest.accept(r),Promise.resolve()}reject(r){return this.incomingMessageRequest.reject(r),Promise.resolve()}}class Px{constructor(r){this.incomingNotifyRequest=r}get request(){return this.incomingNotifyRequest.message}accept(r){return this.incomingNotifyRequest.accept(r),Promise.resolve()}reject(r){return this.incomingNotifyRequest.reject(r),Promise.resolve()}}class GR{constructor(r,i){this.incomingReferRequest=r,this.session=i}get referTo(){const r=this.incomingReferRequest.message.parseHeader("refer-to");if(!(r instanceof ma))throw new Error("Failed to parse Refer-To header.");return r}get referredBy(){return this.incomingReferRequest.message.getHeader("referred-by")}get replaces(){const r=this.referTo.uri.getHeader("replaces");return r instanceof Array?r[0]:r}get request(){return this.incomingReferRequest.message}accept(r={statusCode:202}){return this.incomingReferRequest.accept(r),Promise.resolve()}reject(r){return this.incomingReferRequest.reject(r),Promise.resolve()}makeInviter(r){if(this.inviter)return this.inviter;const i=this.referTo.uri.clone();i.clearHeaders(),r=r||{};const l=(r.extraHeaders||[]).slice(),f=this.replaces;f&&l.push("Replaces: "+decodeURIComponent(f));const p=this.referredBy;return p&&l.push("Referred-By: "+p),r.extraHeaders=l,this.inviter=this.session.userAgent._makeInviter(i,r),this.inviter._referred=this.session,this.session._referral=this.inviter,this.inviter}}var xe;(function(o){o.Initial="Initial",o.Establishing="Establishing",o.Established="Established",o.Terminating="Terminating",o.Terminated="Terminated"})(xe=xe||(xe={}));class t0{constructor(r,i={}){this.pendingReinvite=!1,this.pendingReinviteAck=!1,this._state=xe.Initial,this.delegate=i.delegate,this._stateEventEmitter=new Xh,this._userAgent=r}dispose(){switch(this.logger.log(`Session ${this.id} in state ${this._state} is being disposed`),delete this.userAgent._sessions[this.id],this._sessionDescriptionHandler&&this._sessionDescriptionHandler.close(),this.state){case xe.Initial:break;case xe.Establishing:break;case xe.Established:return new Promise(r=>{this._bye({onAccept:()=>r(),onRedirect:()=>r(),onReject:()=>r()})});case xe.Terminating:break;case xe.Terminated:break;default:throw new Error("Unknown state.")}return Promise.resolve()}get assertedIdentity(){return this._assertedIdentity}get dialog(){return this._dialog}get id(){return this._id}get replacee(){return this._replacee}get sessionDescriptionHandler(){return this._sessionDescriptionHandler}get sessionDescriptionHandlerFactory(){return this.userAgent.configuration.sessionDescriptionHandlerFactory}get sessionDescriptionHandlerModifiers(){return this._sessionDescriptionHandlerModifiers||[]}set sessionDescriptionHandlerModifiers(r){this._sessionDescriptionHandlerModifiers=r.slice()}get sessionDescriptionHandlerOptions(){return this._sessionDescriptionHandlerOptions||{}}set sessionDescriptionHandlerOptions(r){this._sessionDescriptionHandlerOptions=Object.assign({},r)}get sessionDescriptionHandlerModifiersReInvite(){return this._sessionDescriptionHandlerModifiersReInvite||[]}set sessionDescriptionHandlerModifiersReInvite(r){this._sessionDescriptionHandlerModifiersReInvite=r.slice()}get sessionDescriptionHandlerOptionsReInvite(){return this._sessionDescriptionHandlerOptionsReInvite||{}}set sessionDescriptionHandlerOptionsReInvite(r){this._sessionDescriptionHandlerOptionsReInvite=Object.assign({},r)}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get userAgent(){return this._userAgent}bye(r={}){let i="Session.bye() may only be called if established session.";switch(this.state){case xe.Initial:typeof this.cancel=="function"?(i+=" However Inviter.invite() has not yet been called.",i+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(i+=" However Invitation.accept() has not yet been called.",i+=" Perhaps you should have called Invitation.reject()?");break;case xe.Establishing:typeof this.cancel=="function"?(i+=" However a dialog does not yet exist.",i+=" Perhaps you should have called Inviter.cancel()?"):typeof this.reject=="function"&&(i+=" However Invitation.accept() has not yet been called (or not yet resolved).",i+=" Perhaps you should have called Invitation.reject()?");break;case xe.Established:{const l=r.requestDelegate,f=this.copyRequestOptions(r.requestOptions);return this._bye(l,f)}case xe.Terminating:i+=" However this session is already terminating.",typeof this.cancel=="function"?i+=" Perhaps you have already called Inviter.cancel()?":typeof this.reject=="function"&&(i+=" Perhaps you have already called Session.bye()?");break;case xe.Terminated:i+=" However this session is already terminated.";break;default:throw new Error("Unknown state")}return this.logger.error(i),Promise.reject(new Error(`Invalid session state ${this.state}`))}info(r={}){if(this.state!==xe.Established)return this.logger.error("Session.info() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));const i=r.requestDelegate,l=this.copyRequestOptions(r.requestOptions);return this._info(i,l)}invite(r={}){if(this.logger.log("Session.invite"),this.state!==xe.Established)return Promise.reject(new Error(`Invalid session state ${this.state}`));if(this.pendingReinvite)return Promise.reject(new Hx("Reinvite in progress. Please wait until complete, then try again."));this.pendingReinvite=!0,r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiersReInvite=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptionsReInvite=r.sessionDescriptionHandlerOptions);const i={onAccept:p=>{const v=e0(p.message);if(!v){this.logger.error("Received 2xx response to re-INVITE without a session description"),this.ackAndBye(p,400,"Missing session description"),this.stateTransition(xe.Terminated),this.pendingReinvite=!1;return}if(r.withoutSdp){const S={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setOfferAndGetAnswer(v,S).then(b=>{p.ack({body:b})}).catch(b=>{this.logger.error("Failed to handle offer in 2xx response to re-INVITE"),this.logger.error(b.message),this.state===xe.Terminated?p.ack():(this.ackAndBye(p,488,"Bad Media Description"),this.stateTransition(xe.Terminated))}).then(()=>{this.pendingReinvite=!1,r.requestDelegate&&r.requestDelegate.onAccept&&r.requestDelegate.onAccept(p)})}else{const S={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setAnswer(v,S).then(()=>{p.ack()}).catch(b=>{this.logger.error("Failed to handle answer in 2xx response to re-INVITE"),this.logger.error(b.message),this.state!==xe.Terminated?(this.ackAndBye(p,488,"Bad Media Description"),this.stateTransition(xe.Terminated)):p.ack()}).then(()=>{this.pendingReinvite=!1,r.requestDelegate&&r.requestDelegate.onAccept&&r.requestDelegate.onAccept(p)})}},onProgress:p=>{},onRedirect:p=>{},onReject:p=>{this.logger.warn("Received a non-2xx response to re-INVITE"),this.pendingReinvite=!1,r.withoutSdp?r.requestDelegate&&r.requestDelegate.onReject&&r.requestDelegate.onReject(p):this.rollbackOffer().catch(v=>{if(this.logger.error("Failed to rollback offer on non-2xx response to re-INVITE"),this.logger.error(v.message),this.state!==xe.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const S=[];S.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:S}),this.stateTransition(xe.Terminated)}}).then(()=>{r.requestDelegate&&r.requestDelegate.onReject&&r.requestDelegate.onReject(p)})},onTrying:p=>{}},l=r.requestOptions||{};if(l.extraHeaders=(l.extraHeaders||[]).slice(),l.extraHeaders.push("Allow: "+mu.toString()),l.extraHeaders.push("Contact: "+this._contact),r.withoutSdp){if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return Promise.resolve(this.dialog.invite(i,l))}const f={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};return this.getOffer(f).then(p=>{if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return l.body=p,this.dialog.invite(i,l)}).catch(p=>{throw this.logger.error(p.message),this.logger.error("Failed to send re-INVITE"),this.pendingReinvite=!1,p})}message(r={}){if(this.state!==xe.Established)return this.logger.error("Session.message() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));const i=r.requestDelegate,l=this.copyRequestOptions(r.requestOptions);return this._message(i,l)}refer(r,i={}){if(this.state!==xe.Established)return this.logger.error("Session.refer() may only be called if established session."),Promise.reject(new Error(`Invalid session state ${this.state}`));if(r instanceof t0&&!r.dialog)return this.logger.error("Session.refer() may only be called with session which is established. You are perhaps attempting to attended transfer to a target for which there is not dialog yet established. Perhaps you are attempting a 'semi-attended' tansfer? Regardless, this is not supported. The recommended approached is to check to see if the target Session is in the Established state before calling refer(); if the state is not Established you may proceed by falling back using a URI as the target (blind transfer)."),Promise.reject(new Error(`Invalid session state ${this.state}`));const l=i.requestDelegate,f=this.copyRequestOptions(i.requestOptions);return f.extraHeaders=f.extraHeaders?f.extraHeaders.concat(this.referExtraHeaders(this.referToString(r))):this.referExtraHeaders(this.referToString(r)),this._refer(i.onNotify,l,f)}_bye(r,i){if(!this.dialog)return Promise.reject(new Error("Session dialog undefined."));const l=this.dialog;switch(l.sessionState){case as.Initial:throw new Error(`Invalid dialog state ${l.sessionState}`);case as.Early:throw new Error(`Invalid dialog state ${l.sessionState}`);case as.AckWait:return this.stateTransition(xe.Terminating),new Promise(f=>{l.delegate={onAck:()=>{const p=l.bye(r,i);return this.stateTransition(xe.Terminated),f(p),Promise.resolve()},onAckTimeout:()=>{const p=l.bye(r,i);this.stateTransition(xe.Terminated),f(p)}}});case as.Confirmed:{const f=l.bye(r,i);return this.stateTransition(xe.Terminated),Promise.resolve(f)}case as.Terminated:throw new Error(`Invalid dialog state ${l.sessionState}`);default:throw new Error("Unrecognized state.")}}_info(r,i){return this.dialog?Promise.resolve(this.dialog.info(r,i)):Promise.reject(new Error("Session dialog undefined."))}_message(r,i){return this.dialog?Promise.resolve(this.dialog.message(r,i)):Promise.reject(new Error("Session dialog undefined."))}_refer(r,i,l){return this.dialog?(this.onNotify=r,Promise.resolve(this.dialog.refer(i,l))):Promise.reject(new Error("Session dialog undefined."))}ackAndBye(r,i,l){r.ack();const f=[];i&&f.push("Reason: "+this.getReasonHeaderValue(i,l)),r.session.bye(void 0,{extraHeaders:f})}onAckRequest(r){if(this.logger.log("Session.onAckRequest"),this.state!==xe.Established&&this.state!==xe.Terminating)return this.logger.error(`ACK received while in state ${this.state}, dropping request`),Promise.resolve();const i=this.dialog;if(!i)throw new Error("Dialog undefined.");const l={sessionDescriptionHandlerOptions:this.pendingReinviteAck?this.sessionDescriptionHandlerOptionsReInvite:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.pendingReinviteAck?this._sessionDescriptionHandlerModifiersReInvite:this._sessionDescriptionHandlerModifiers};if(this.delegate&&this.delegate.onAck){const f=new LR(r);this.delegate.onAck(f)}switch(this.pendingReinviteAck=!1,i.signalingState){case Ye.Initial:{this.logger.error(`Invalid signaling state ${i.signalingState}.`);const f=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return i.bye(void 0,{extraHeaders:f}),this.stateTransition(xe.Terminated),Promise.resolve()}case Ye.Stable:{const f=e0(r.message);return f?f.contentDisposition==="render"?(this._renderbody=f.content,this._rendertype=f.contentType,Promise.resolve()):f.contentDisposition!=="session"?Promise.resolve():this.setAnswer(f,l).catch(p=>{this.logger.error(p.message);const v=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];i.bye(void 0,{extraHeaders:v}),this.stateTransition(xe.Terminated)}):Promise.resolve()}case Ye.HaveLocalOffer:{this.logger.error(`Invalid signaling state ${i.signalingState}.`);const f=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return i.bye(void 0,{extraHeaders:f}),this.stateTransition(xe.Terminated),Promise.resolve()}case Ye.HaveRemoteOffer:{this.logger.error(`Invalid signaling state ${i.signalingState}.`);const f=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return i.bye(void 0,{extraHeaders:f}),this.stateTransition(xe.Terminated),Promise.resolve()}case Ye.Closed:throw new Error(`Invalid signaling state ${i.signalingState}.`);default:throw new Error(`Invalid signaling state ${i.signalingState}.`)}}onByeRequest(r){if(this.logger.log("Session.onByeRequest"),this.state!==xe.Established){this.logger.error(`BYE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onBye){const i=new UR(r);this.delegate.onBye(i)}else r.accept();this.stateTransition(xe.Terminated)}onInfoRequest(r){if(this.logger.log("Session.onInfoRequest"),this.state!==xe.Established){this.logger.error(`INFO received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onInfo){const i=new zR(r);this.delegate.onInfo(i)}else r.accept()}onInviteRequest(r){if(this.logger.log("Session.onInviteRequest"),this.state!==xe.Established){this.logger.error(`INVITE received while in state ${this.state}, dropping request`);return}this.pendingReinviteAck=!0;const i=["Contact: "+this._contact];if(r.message.hasHeader("P-Asserted-Identity")){const f=r.message.getHeader("P-Asserted-Identity");if(!f)throw new Error("Header undefined.");this._assertedIdentity=zn.nameAddrHeaderParse(f)}const l={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.generateResponseOfferAnswerInDialog(l).then(f=>{const p=r.accept({statusCode:200,extraHeaders:i,body:f});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(r.message,p.message,200)}).catch(f=>{if(this.logger.error(f.message),this.logger.error("Failed to handle to re-INVITE request"),!this.dialog)throw new Error("Dialog undefined.");if(this.logger.error(this.dialog.signalingState),this.dialog.signalingState===Ye.Stable){const p=r.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(r.message,p.message,488);return}this.rollbackOffer().then(()=>{const p=r.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(r.message,p.message,488)}).catch(p=>{this.logger.error(p.message),this.logger.error("Failed to rollback offer on re-INVITE request");const v=r.reject({statusCode:488});if(this.state!==xe.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const S=[];S.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:S}),this.stateTransition(xe.Terminated)}this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(r.message,v.message,488)})})}onMessageRequest(r){if(this.logger.log("Session.onMessageRequest"),this.state!==xe.Established){this.logger.error(`MESSAGE received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onMessage){const i=new YS(r);this.delegate.onMessage(i)}else r.accept()}onNotifyRequest(r){if(this.logger.log("Session.onNotifyRequest"),this.state!==xe.Established){this.logger.error(`NOTIFY received while in state ${this.state}, dropping request`);return}if(this.onNotify){const i=new Px(r);this.onNotify(i);return}if(this.delegate&&this.delegate.onNotify){const i=new Px(r);this.delegate.onNotify(i)}else r.accept()}onPrackRequest(r){if(this.logger.log("Session.onPrackRequest"),this.state!==xe.Established){this.logger.error(`PRACK received while in state ${this.state}, dropping request`);return}throw new Error("Unimplemented.")}onReferRequest(r){if(this.logger.log("Session.onReferRequest"),this.state!==xe.Established){this.logger.error(`REFER received while in state ${this.state}, dropping request`);return}if(!r.message.hasHeader("refer-to")){this.logger.warn("Invalid REFER packet. A refer-to header is required. Rejecting."),r.reject();return}const i=new GR(r,this);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(i):(this.logger.log("No delegate available to handle REFER, automatically accepting and following."),i.accept().then(()=>i.makeInviter(this._referralInviterOptions).invite()).catch(l=>{this.logger.error(l.message)}))}generateResponseOfferAnswer(r,i){if(this.dialog)return this.generateResponseOfferAnswerInDialog(i);const l=e0(r.message);return!l||l.contentDisposition!=="session"?this.getOffer(i):this.setOfferAndGetAnswer(l,i)}generateResponseOfferAnswerInDialog(r){if(!this.dialog)throw new Error("Dialog undefined.");switch(this.dialog.signalingState){case Ye.Initial:return this.getOffer(r);case Ye.HaveLocalOffer:return Promise.resolve(void 0);case Ye.HaveRemoteOffer:if(!this.dialog.offer)throw new Error(`Session offer undefined in signaling state ${this.dialog.signalingState}.`);return this.setOfferAndGetAnswer(this.dialog.offer,r);case Ye.Stable:return this.state!==xe.Established?Promise.resolve(void 0):this.getOffer(r);case Ye.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}getOffer(r){const i=this.setupSessionDescriptionHandler(),l=r.sessionDescriptionHandlerOptions,f=r.sessionDescriptionHandlerModifiers;try{return i.getDescription(l,f).then(p=>bv(p)).catch(p=>{this.logger.error("Session.getOffer: SDH getDescription rejected...");const v=p instanceof Error?p:new Error("Session.getOffer unknown error.");throw this.logger.error(v.message),v})}catch(p){this.logger.error("Session.getOffer: SDH getDescription threw...");const v=p instanceof Error?p:new Error(p);return this.logger.error(v.message),Promise.reject(v)}}rollbackOffer(){const r=this.setupSessionDescriptionHandler();if(r.rollbackDescription===void 0)return Promise.resolve();try{return r.rollbackDescription().catch(i=>{this.logger.error("Session.rollbackOffer: SDH rollbackDescription rejected...");const l=i instanceof Error?i:new Error("Session.rollbackOffer unknown error.");throw this.logger.error(l.message),l})}catch(i){this.logger.error("Session.rollbackOffer: SDH rollbackDescription threw...");const l=i instanceof Error?i:new Error(i);return this.logger.error(l.message),Promise.reject(l)}}setAnswer(r,i){const l=this.setupSessionDescriptionHandler(),f=i.sessionDescriptionHandlerOptions,p=i.sessionDescriptionHandlerModifiers;try{if(!l.hasDescription(r.contentType))return Promise.reject(new Nx)}catch(v){this.logger.error("Session.setAnswer: SDH hasDescription threw...");const S=v instanceof Error?v:new Error(v);return this.logger.error(S.message),Promise.reject(S)}try{return l.setDescription(r.content,f,p).catch(v=>{this.logger.error("Session.setAnswer: SDH setDescription rejected...");const S=v instanceof Error?v:new Error("Session.setAnswer unknown error.");throw this.logger.error(S.message),S})}catch(v){this.logger.error("Session.setAnswer: SDH setDescription threw...");const S=v instanceof Error?v:new Error(v);return this.logger.error(S.message),Promise.reject(S)}}setOfferAndGetAnswer(r,i){const l=this.setupSessionDescriptionHandler(),f=i.sessionDescriptionHandlerOptions,p=i.sessionDescriptionHandlerModifiers;try{if(!l.hasDescription(r.contentType))return Promise.reject(new Nx)}catch(v){this.logger.error("Session.setOfferAndGetAnswer: SDH hasDescription threw...");const S=v instanceof Error?v:new Error(v);return this.logger.error(S.message),Promise.reject(S)}try{return l.setDescription(r.content,f,p).then(()=>l.getDescription(f,p)).then(v=>bv(v)).catch(v=>{this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription rejected...");const S=v instanceof Error?v:new Error("Session.setOfferAndGetAnswer unknown error.");throw this.logger.error(S.message),S})}catch(v){this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription threw...");const S=v instanceof Error?v:new Error(v);return this.logger.error(S.message),Promise.reject(S)}}setSessionDescriptionHandler(r){if(this._sessionDescriptionHandler)throw new Error("Session description handler defined.");this._sessionDescriptionHandler=r}setupSessionDescriptionHandler(){var r;return this._sessionDescriptionHandler?this._sessionDescriptionHandler:(this._sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions),!((r=this.delegate)===null||r===void 0)&&r.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(this._sessionDescriptionHandler,!1),this._sessionDescriptionHandler)}stateTransition(r){const i=()=>{throw new Error(`Invalid state transition from ${this._state} to ${r}`)};switch(this._state){case xe.Initial:r!==xe.Establishing&&r!==xe.Established&&r!==xe.Terminating&&r!==xe.Terminated&&i();break;case xe.Establishing:r!==xe.Established&&r!==xe.Terminating&&r!==xe.Terminated&&i();break;case xe.Established:r!==xe.Terminating&&r!==xe.Terminated&&i();break;case xe.Terminating:r!==xe.Terminated&&i();break;case xe.Terminated:i();break;default:throw new Error("Unrecognized state.")}this._state=r,this.logger.log(`Session ${this.id} transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),r===xe.Terminated&&this.dispose()}copyRequestOptions(r={}){const i=r.extraHeaders?r.extraHeaders.slice():void 0,l=r.body?{contentDisposition:r.body.contentDisposition||"render",contentType:r.body.contentType||"text/plain",content:r.body.content||""}:void 0;return{extraHeaders:i,body:l}}getReasonHeaderValue(r,i){const l=r;let f=Sv(r);return!f&&i&&(f=i),"SIP;cause="+l+';text="'+f+'"'}referExtraHeaders(r){const i=[];return i.push("Referred-By: <"+this.userAgent.configuration.uri+">"),i.push("Contact: "+this._contact),i.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),i.push("Refer-To: "+r),i}referToString(r){let i;if(r instanceof xo)i=r.toString();else{if(!r.dialog)throw new Error("Dialog undefined.");const l=r.remoteIdentity.friendlyName,f=r.dialog.remoteTarget.toString(),p=r.dialog.callId,v=r.dialog.remoteTag,S=r.dialog.localTag,b=encodeURIComponent(`${p};to-tag=${v};from-tag=${S}`);i=`"${l}" <${f}?Replaces=${b}>`}return i}}var Ps;(function(o){o.Required="Required",o.Supported="Supported",o.Unsupported="Unsupported"})(Ps=Ps||(Ps={}));const KR={"100rel":!0,199:!0,answermode:!0,"early-session":!0,eventlist:!0,explicitsub:!0,"from-change":!0,"geolocation-http":!0,"geolocation-sip":!0,gin:!0,gruu:!0,histinfo:!0,ice:!0,join:!0,"multiple-refer":!0,norefersub:!0,nosub:!0,outbound:!0,path:!0,policy:!0,precondition:!0,pref:!0,privacy:!0,"recipient-list-invite":!0,"recipient-list-message":!0,"recipient-list-subscribe":!0,replaces:!0,"resource-priority":!0,"sdp-anat":!0,"sec-agree":!0,tdialog:!0,timer:!0,uui:!0};class QR extends t0{constructor(r,i){super(r),this.incomingInviteRequest=i,this.disposed=!1,this.expiresTimer=void 0,this.isCanceled=!1,this.rel100="none",this.rseq=Math.floor(Math.random()*1e4),this.userNoAnswerTimer=void 0,this.waitingForPrack=!1,this.logger=r.getLogger("sip.Invitation");const l=this.incomingInviteRequest.message,f=l.getHeader("require");f&&f.toLowerCase().includes("100rel")&&(this.rel100="required");const p=l.getHeader("supported");if(p&&p.toLowerCase().includes("100rel")&&(this.rel100="supported"),l.toTag=i.toTag,typeof l.toTag!="string")throw new TypeError("toTag should have been a string.");if(this.userNoAnswerTimer=setTimeout(()=>{i.reject({statusCode:480}),this.stateTransition(xe.Terminated)},this.userAgent.configuration.noAnswerTimeout?this.userAgent.configuration.noAnswerTimeout*1e3:6e4),l.hasHeader("expires")){const b=Number(l.getHeader("expires")||0)*1e3;this.expiresTimer=setTimeout(()=>{this.state===xe.Initial&&(i.reject({statusCode:487}),this.stateTransition(xe.Terminated))},b)}const v=this.request.getHeader("P-Asserted-Identity");v&&(this._assertedIdentity=zn.nameAddrHeaderParse(v)),this._contact=this.userAgent.contact.toString();const S=l.parseHeader("Content-Disposition");S&&S.type==="render"&&(this._renderbody=l.body,this._rendertype=l.getHeader("Content-Type")),this._id=l.callId+l.fromTag,this.userAgent._sessions[this._id]=this}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=!0,this.expiresTimer&&(clearTimeout(this.expiresTimer),this.expiresTimer=void 0),this.userNoAnswerTimer&&(clearTimeout(this.userNoAnswerTimer),this.userNoAnswerTimer=void 0),this.prackNeverArrived(),this.state){case xe.Initial:return this.reject().then(()=>super.dispose());case xe.Establishing:return this.reject().then(()=>super.dispose());case xe.Established:return super.dispose();case xe.Terminating:return super.dispose();case xe.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get autoSendAnInitialProvisionalResponse(){return this.rel100!=="required"&&this.userAgent.configuration.sendInitialProvisionalResponse}get body(){return this.incomingInviteRequest.message.body}get localIdentity(){return this.request.to}get remoteIdentity(){return this.request.from}get request(){return this.incomingInviteRequest.message}accept(r={}){if(this.logger.log("Invitation.accept"),this.state!==xe.Initial){const i=new Error(`Invalid session state ${this.state}`);return this.logger.error(i.message),Promise.reject(i)}return r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=r.sessionDescriptionHandlerOptions),this.stateTransition(xe.Establishing),this.sendAccept(r).then(({message:i,session:l})=>{l.delegate={onAck:f=>this.onAckRequest(f),onAckTimeout:()=>this.onAckTimeout(),onBye:f=>this.onByeRequest(f),onInfo:f=>this.onInfoRequest(f),onInvite:f=>this.onInviteRequest(f),onMessage:f=>this.onMessageRequest(f),onNotify:f=>this.onNotifyRequest(f),onPrack:f=>this.onPrackRequest(f),onRefer:f=>this.onReferRequest(f)},this._dialog=l,this.stateTransition(xe.Established),this._replacee&&this._replacee._bye()}).catch(i=>this.handleResponseError(i))}progress(r={}){if(this.logger.log("Invitation.progress"),this.state!==xe.Initial){const l=new Error(`Invalid session state ${this.state}`);return this.logger.error(l.message),Promise.reject(l)}const i=r.statusCode||180;if(i<100||i>199)throw new TypeError("Invalid statusCode: "+i);return r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=r.sessionDescriptionHandlerOptions),this.waitingForPrack?(this.logger.warn("Unexpected call for progress while waiting for prack, ignoring"),Promise.resolve()):r.statusCode===100?this.sendProgressTrying().then(()=>{}).catch(l=>this.handleResponseError(l)):this.rel100!=="required"&&!(this.rel100==="supported"&&r.rel100)&&!(this.rel100==="supported"&&this.userAgent.configuration.sipExtension100rel===Ps.Required)?this.sendProgress(r).then(()=>{}).catch(l=>this.handleResponseError(l)):this.sendProgressReliableWaitForPrack(r).then(()=>{}).catch(l=>this.handleResponseError(l))}reject(r={}){if(this.logger.log("Invitation.reject"),this.state!==xe.Initial&&this.state!==xe.Establishing){const v=new Error(`Invalid session state ${this.state}`);return this.logger.error(v.message),Promise.reject(v)}const i=r.statusCode||480,l=r.reasonPhrase?r.reasonPhrase:Sv(i),f=r.extraHeaders||[];if(i<300||i>699)throw new TypeError("Invalid statusCode: "+i);const p=r.body?bv(r.body):void 0;return i<400?this.incomingInviteRequest.redirect([],{statusCode:i,reasonPhrase:l,extraHeaders:f,body:p}):this.incomingInviteRequest.reject({statusCode:i,reasonPhrase:l,extraHeaders:f,body:p}),this.stateTransition(xe.Terminated),Promise.resolve()}_onCancel(r){if(this.logger.log("Invitation._onCancel"),this.state!==xe.Initial&&this.state!==xe.Establishing){this.logger.error(`CANCEL received while in state ${this.state}, dropping request`);return}if(this.delegate&&this.delegate.onCancel){const i=new jR(r);this.delegate.onCancel(i)}this.isCanceled=!0,this.incomingInviteRequest.reject({statusCode:487}),this.stateTransition(xe.Terminated)}handlePrackOfferAnswer(r){if(!this.dialog)throw new Error("Dialog undefined.");const i=e0(r.message);if(!i||i.contentDisposition!=="session")return Promise.resolve(void 0);const l={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers};switch(this.dialog.signalingState){case Ye.Initial:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case Ye.Stable:return this.setAnswer(i,l).then(()=>{});case Ye.HaveLocalOffer:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case Ye.HaveRemoteOffer:return this.setOfferAndGetAnswer(i,l);case Ye.Closed:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}handleResponseError(r){let i=480;if(r instanceof Error?this.logger.error(r.message):this.logger.error(r),r instanceof Nx?(this.logger.error("A session description handler occurred while sending response (content type unsupported"),i=415):r instanceof PR?this.logger.error("A session description handler occurred while sending response"):r instanceof Ix?this.logger.error("Session ended before response could be formulated and sent (while waiting for PRACK)"):r instanceof gu&&this.logger.error("Session changed state before response could be formulated and sent"),this.state===xe.Initial||this.state===xe.Establishing)try{this.incomingInviteRequest.reject({statusCode:i}),this.stateTransition(xe.Terminated)}catch(l){throw this.logger.error("An error occurred attempting to reject the request while handling another error"),l}if(this.isCanceled){this.logger.warn("An error occurred while attempting to formulate and send a response to an incoming INVITE. However a CANCEL was received and processed while doing so which can (and often does) result in errors occurring as the session terminates in the meantime. Said error is being ignored.");return}throw r}onAckTimeout(){if(this.logger.log("Invitation.onAckTimeout"),!this.dialog)throw new Error("Dialog undefined.");this.logger.log("No ACK received for an extended period of time, terminating session"),this.dialog.bye(),this.stateTransition(xe.Terminated)}sendAccept(r={}){const i={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},l=r.extraHeaders||[];return this.waitingForPrack?this.waitForArrivalOfPrack().then(()=>clearTimeout(this.userNoAnswerTimer)).then(()=>this.generateResponseOfferAnswer(this.incomingInviteRequest,i)).then(f=>this.incomingInviteRequest.accept({statusCode:200,body:f,extraHeaders:l})):(clearTimeout(this.userNoAnswerTimer),this.generateResponseOfferAnswer(this.incomingInviteRequest,i).then(f=>this.incomingInviteRequest.accept({statusCode:200,body:f,extraHeaders:l})))}sendProgress(r={}){const i=r.statusCode||180,l=r.reasonPhrase,f=(r.extraHeaders||[]).slice(),p=r.body?bv(r.body):void 0;if(i===183&&!p)return this.sendProgressWithSDP(r);try{const v=this.incomingInviteRequest.progress({statusCode:i,reasonPhrase:l,extraHeaders:f,body:p});return this._dialog=v.session,Promise.resolve(v)}catch(v){return Promise.reject(v)}}sendProgressWithSDP(r={}){const i={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},l=r.statusCode||183,f=r.reasonPhrase,p=(r.extraHeaders||[]).slice();return this.generateResponseOfferAnswer(this.incomingInviteRequest,i).then(v=>this.incomingInviteRequest.progress({statusCode:l,reasonPhrase:f,extraHeaders:p,body:v})).then(v=>(this._dialog=v.session,v))}sendProgressReliable(r={}){return r.extraHeaders=(r.extraHeaders||[]).slice(),r.extraHeaders.push("Require: 100rel"),r.extraHeaders.push("RSeq: "+Math.floor(Math.random()*1e4)),this.sendProgressWithSDP(r)}sendProgressReliableWaitForPrack(r={}){const i={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},l=r.statusCode||183,f=r.reasonPhrase,p=(r.extraHeaders||[]).slice();p.push("Require: 100rel"),p.push("RSeq: "+this.rseq++);let v;return new Promise((S,b)=>{this.waitingForPrack=!0,this.generateResponseOfferAnswer(this.incomingInviteRequest,i).then(C=>(v=C,this.incomingInviteRequest.progress({statusCode:l,reasonPhrase:f,extraHeaders:p,body:v}))).then(C=>{this._dialog=C.session;let w,T;C.session.delegate={onPrack:B=>{w=B,clearTimeout(H),clearTimeout(z),this.waitingForPrack&&(this.waitingForPrack=!1,this.handlePrackOfferAnswer(w).then(M=>{try{T=w.accept({statusCode:200,body:M}),this.prackArrived(),S({prackRequest:w,prackResponse:T,progressResponse:C})}catch(U){b(U)}}).catch(M=>b(M)))}};const H=setTimeout(()=>{this.waitingForPrack&&(this.waitingForPrack=!1,this.logger.warn("No PRACK received, rejecting INVITE."),clearTimeout(z),this.reject({statusCode:504}).then(()=>b(new Ix)).catch(B=>b(B)))},oi.T1*64),P=()=>{try{this.incomingInviteRequest.progress({statusCode:l,reasonPhrase:f,extraHeaders:p,body:v})}catch(B){this.waitingForPrack=!1,b(B);return}z=setTimeout(P,j*=2)};let j=oi.T1,z=setTimeout(P,j)}).catch(C=>{this.waitingForPrack=!1,b(C)})})}sendProgressTrying(){try{const r=this.incomingInviteRequest.trying();return Promise.resolve(r)}catch(r){return Promise.reject(r)}}waitForArrivalOfPrack(){if(this.waitingForPrackPromise)throw new Error("Already waiting for PRACK");return this.waitingForPrackPromise=new Promise((r,i)=>{this.waitingForPrackResolve=r,this.waitingForPrackReject=i}),this.waitingForPrackPromise}prackArrived(){this.waitingForPrackResolve&&this.waitingForPrackResolve(),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}prackNeverArrived(){this.waitingForPrackReject&&this.waitingForPrackReject(new Ix),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}}class VS extends t0{constructor(r,i,l={}){super(r,l),this.disposed=!1,this.earlyMedia=!1,this.earlyMediaSessionDescriptionHandlers=new Map,this.isCanceled=!1,this.inviteWithoutSdp=!1,this.logger=r.getLogger("sip.Inviter"),this.earlyMedia=l.earlyMedia!==void 0?l.earlyMedia:this.earlyMedia,this.fromTag=wv(),this.inviteWithoutSdp=l.inviteWithoutSdp!==void 0?l.inviteWithoutSdp:this.inviteWithoutSdp;const f=Object.assign({},l);f.params=Object.assign({},l.params);const p=l.anonymous||!1,v=r.contact.toString({anonymous:p,outbound:p?!r.contact.tempGruu:!r.contact.pubGruu});p&&r.configuration.uri&&(f.params.fromDisplayName="Anonymous",f.params.fromUri="sip:anonymous@anonymous.invalid");let S=r.userAgentCore.configuration.aor;if(f.params.fromUri&&(S=typeof f.params.fromUri=="string"?zn.URIParse(f.params.fromUri):f.params.fromUri),!S)throw new TypeError("Invalid from URI: "+f.params.fromUri);let b=i;if(f.params.toUri&&(b=typeof f.params.toUri=="string"?zn.URIParse(f.params.toUri):f.params.toUri),!b)throw new TypeError("Invalid to URI: "+f.params.toUri);const C=Object.assign({},f.params);C.fromTag=this.fromTag;const w=(f.extraHeaders||[]).slice();p&&r.configuration.uri&&(w.push("P-Preferred-Identity: "+r.configuration.uri.toString()),w.push("Privacy: id")),w.push("Contact: "+v),w.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),r.configuration.sipExtension100rel===Ps.Required&&w.push("Require: 100rel"),r.configuration.sipExtensionReplaces===Ps.Required&&w.push("Require: replaces"),f.extraHeaders=w;const T=void 0;this.outgoingRequestMessage=r.userAgentCore.makeOutgoingRequestMessage(tt.INVITE,i,S,b,C,w,T),this._contact=v,this._referralInviterOptions=f,this._renderbody=l.renderbody,this._rendertype=l.rendertype,l.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=l.sessionDescriptionHandlerModifiers),l.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=l.sessionDescriptionHandlerOptions),l.sessionDescriptionHandlerModifiersReInvite&&(this.sessionDescriptionHandlerModifiersReInvite=l.sessionDescriptionHandlerModifiersReInvite),l.sessionDescriptionHandlerOptionsReInvite&&(this.sessionDescriptionHandlerOptionsReInvite=l.sessionDescriptionHandlerOptionsReInvite),this._id=this.outgoingRequestMessage.callId+this.fromTag,this.userAgent._sessions[this._id]=this}dispose(){if(this.disposed)return Promise.resolve();switch(this.disposed=!0,this.disposeEarlyMedia(),this.state){case xe.Initial:return this.cancel().then(()=>super.dispose());case xe.Establishing:return this.cancel().then(()=>super.dispose());case xe.Established:return super.dispose();case xe.Terminating:return super.dispose();case xe.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get body(){return this.outgoingRequestMessage.body}get localIdentity(){return this.outgoingRequestMessage.from}get remoteIdentity(){return this.outgoingRequestMessage.to}get request(){return this.outgoingRequestMessage}cancel(r={}){if(this.logger.log("Inviter.cancel"),this.state!==xe.Initial&&this.state!==xe.Establishing){const l=new Error(`Invalid session state ${this.state}`);return this.logger.error(l.message),Promise.reject(l)}this.isCanceled=!0,this.stateTransition(xe.Terminating);function i(l,f){if(l&&l<200||l>699)throw new TypeError("Invalid statusCode: "+l);if(l){const p=l,v=Sv(l)||f;return"SIP;cause="+p+';text="'+v+'"'}}if(this.outgoingInviteRequest){let l;r.statusCode&&r.reasonPhrase&&(l=i(r.statusCode,r.reasonPhrase)),this.outgoingInviteRequest.cancel(l,r)}else this.logger.warn("Canceled session before INVITE was sent"),this.stateTransition(xe.Terminated);return Promise.resolve()}invite(r={}){if(this.logger.log("Inviter.invite"),this.state!==xe.Initial)return super.invite(r);if(r.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=r.sessionDescriptionHandlerModifiers),r.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=r.sessionDescriptionHandlerOptions),r.withoutSdp||this.inviteWithoutSdp)return this._renderbody&&this._rendertype&&(this.outgoingRequestMessage.body={contentType:this._rendertype,body:this._renderbody}),this.stateTransition(xe.Establishing),Promise.resolve(this.sendInvite(r));const i={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.getOffer(i).then(l=>(this.outgoingRequestMessage.body={body:l.content,contentType:l.contentType},this.stateTransition(xe.Establishing),this.sendInvite(r))).catch(l=>{throw this.logger.log(l.message),this.state!==xe.Terminated&&this.stateTransition(xe.Terminated),l})}sendInvite(r={}){return this.outgoingInviteRequest=this.userAgent.userAgentCore.invite(this.outgoingRequestMessage,{onAccept:i=>{if(this.dialog){this.logger.log("Additional confirmed dialog, sending ACK and BYE"),this.ackAndBye(i);return}if(this.isCanceled){this.logger.log("Canceled session accepted, sending ACK and BYE"),this.ackAndBye(i),this.stateTransition(xe.Terminated);return}this.notifyReferer(i),this.onAccept(i).then(()=>{this.disposeEarlyMedia()}).catch(()=>{this.disposeEarlyMedia()}).then(()=>{r.requestDelegate&&r.requestDelegate.onAccept&&r.requestDelegate.onAccept(i)})},onProgress:i=>{this.isCanceled||(this.notifyReferer(i),this.onProgress(i).catch(()=>{this.disposeEarlyMedia()}).then(()=>{r.requestDelegate&&r.requestDelegate.onProgress&&r.requestDelegate.onProgress(i)}))},onRedirect:i=>{this.notifyReferer(i),this.onRedirect(i),r.requestDelegate&&r.requestDelegate.onRedirect&&r.requestDelegate.onRedirect(i)},onReject:i=>{this.notifyReferer(i),this.onReject(i),r.requestDelegate&&r.requestDelegate.onReject&&r.requestDelegate.onReject(i)},onTrying:i=>{this.notifyReferer(i),this.onTrying(i),r.requestDelegate&&r.requestDelegate.onTrying&&r.requestDelegate.onTrying(i)}}),this.outgoingInviteRequest}disposeEarlyMedia(){this.earlyMediaSessionDescriptionHandlers.forEach(r=>{r.close()}),this.earlyMediaSessionDescriptionHandlers.clear()}notifyReferer(r){if(!this._referred)return;if(!(this._referred instanceof t0))throw new Error("Referred session not instance of session");if(!this._referred.dialog)return;if(!r.message.statusCode)throw new Error("Status code undefined.");if(!r.message.reasonPhrase)throw new Error("Reason phrase undefined.");const i=r.message.statusCode,l=r.message.reasonPhrase,f=`SIP/2.0 ${i} ${l}`.trim(),p=this._referred.dialog.notify(void 0,{extraHeaders:["Event: refer","Subscription-State: terminated"],body:{contentDisposition:"render",contentType:"message/sipfrag",content:f}});p.delegate={onReject:()=>{this._referred=void 0}}}onAccept(r){if(this.logger.log("Inviter.onAccept"),this.state!==xe.Establishing)return this.logger.error(`Accept received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));const i=r.message,l=r.session;switch(i.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=zn.nameAddrHeaderParse(i.getHeader("P-Asserted-Identity"))),l.delegate={onAck:f=>this.onAckRequest(f),onBye:f=>this.onByeRequest(f),onInfo:f=>this.onInfoRequest(f),onInvite:f=>this.onInviteRequest(f),onMessage:f=>this.onMessageRequest(f),onNotify:f=>this.onNotifyRequest(f),onPrack:f=>this.onPrackRequest(f),onRefer:f=>this.onReferRequest(f)},this._dialog=l,l.signalingState){case Ye.Initial:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(r,400,"Missing session description"),this.stateTransition(xe.Terminated),Promise.reject(new Error("Bad Media Description"));case Ye.HaveLocalOffer:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(r,400,"Missing session description"),this.stateTransition(xe.Terminated),Promise.reject(new Error("Bad Media Description"));case Ye.HaveRemoteOffer:{if(!this._dialog.offer)throw new Error(`Session offer undefined in signaling state ${this._dialog.signalingState}.`);const f={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setOfferAndGetAnswer(this._dialog.offer,f).then(p=>{r.ack({body:p}),this.stateTransition(xe.Established)}).catch(p=>{throw this.ackAndBye(r,488,"Invalid session description"),this.stateTransition(xe.Terminated),p})}case Ye.Stable:{if(this.earlyMediaSessionDescriptionHandlers.size>0){const v=this.earlyMediaSessionDescriptionHandlers.get(l.id);if(!v)throw new Error("Session description handler undefined.");return this.setSessionDescriptionHandler(v),this.earlyMediaSessionDescriptionHandlers.delete(l.id),r.ack(),this.stateTransition(xe.Established),Promise.resolve()}if(this.earlyMediaDialog){if(this.earlyMediaDialog!==l){this.earlyMedia&&this.logger.error("You have set the 'earlyMedia' option to 'true' which requires that your INVITE requests do not fork and yet this INVITE request did in fact fork. Consequentially and not surprisingly the end point which accepted the INVITE (confirmed dialog) does not match the end point with which early media has been setup (early dialog) and thus this session is unable to proceed. In accordance with the SIP specifications, the SIP servers your end point is connected to determine if an INVITE forks and the forking behavior of those servers cannot be controlled by this library. If you wish to use early media with this library you must configure those servers accordingly. Alternatively you may set the 'earlyMedia' to 'false' which will allow this library to function with any INVITE requests which do fork.");const v=new Error("Early media dialog does not equal confirmed dialog, terminating session");return this.logger.error(v.message),this.ackAndBye(r,488,"Not Acceptable Here"),this.stateTransition(xe.Terminated),Promise.reject(v)}return r.ack(),this.stateTransition(xe.Established),Promise.resolve()}const f=l.answer;if(!f)throw new Error("Answer is undefined.");const p={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(f,p).then(()=>{let v;this._renderbody&&this._rendertype&&(v={body:{contentDisposition:"render",contentType:this._rendertype,content:this._renderbody}}),r.ack(v),this.stateTransition(xe.Established)}).catch(v=>{throw this.logger.error(v.message),this.ackAndBye(r,488,"Not Acceptable Here"),this.stateTransition(xe.Terminated),v})}case Ye.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onProgress(r){var i;if(this.logger.log("Inviter.onProgress"),this.state!==xe.Establishing)return this.logger.error(`Progress received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));if(!this.outgoingInviteRequest)throw new Error("Outgoing INVITE request undefined.");const l=r.message,f=r.session;l.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=zn.nameAddrHeaderParse(l.getHeader("P-Asserted-Identity")));const p=l.getHeader("require"),v=l.getHeader("rseq"),b=!!(p&&p.includes("100rel")&&v?Number(v):void 0),C=[];switch(b&&C.push("RAck: "+l.getHeader("rseq")+" "+l.getHeader("cseq")),f.signalingState){case Ye.Initial:return b&&(this.logger.warn("First reliable provisional response received MUST contain an offer when INVITE does not contain an offer."),r.prack({extraHeaders:C})),Promise.resolve();case Ye.HaveLocalOffer:return b&&r.prack({extraHeaders:C}),Promise.resolve();case Ye.HaveRemoteOffer:if(!b)return this.logger.warn("Non-reliable provisional response MUST NOT contain an initial offer, discarding response."),Promise.resolve();{const w=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions||{});return!((i=this.delegate)===null||i===void 0)&&i.onSessionDescriptionHandler&&this.delegate.onSessionDescriptionHandler(w,!0),this.earlyMediaSessionDescriptionHandlers.set(f.id,w),w.setDescription(l.body,this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers).then(()=>w.getDescription(this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers)).then(T=>{const A={contentDisposition:"session",contentType:T.contentType,content:T.body};r.prack({extraHeaders:C,body:A})}).catch(T=>{throw this.stateTransition(xe.Terminated),T})}case Ye.Stable:if(b&&r.prack({extraHeaders:C}),this.earlyMedia&&!this.earlyMediaDialog){this.earlyMediaDialog=f;const w=f.answer;if(!w)throw new Error("Answer is undefined.");const T={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(w,T).catch(A=>{throw this.stateTransition(xe.Terminated),A})}return Promise.resolve();case Ye.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onRedirect(r){if(this.logger.log("Inviter.onRedirect"),this.state!==xe.Establishing&&this.state!==xe.Terminating){this.logger.error(`Redirect received while in state ${this.state}, dropping response`);return}this.stateTransition(xe.Terminated)}onReject(r){if(this.logger.log("Inviter.onReject"),this.state!==xe.Establishing&&this.state!==xe.Terminating){this.logger.error(`Reject received while in state ${this.state}, dropping response`);return}this.stateTransition(xe.Terminated)}onTrying(r){if(this.logger.log("Inviter.onTrying"),this.state!==xe.Establishing){this.logger.error(`Trying received while in state ${this.state}, dropping response`);return}}}var Cr;(function(o){o.Initial="Initial",o.Registered="Registered",o.Unregistered="Unregistered",o.Terminated="Terminated"})(Cr=Cr||(Cr={}));class Co{constructor(r,i={}){this.disposed=!1,this._contacts=[],this._retryAfter=void 0,this._state=Cr.Initial,this._waiting=!1,this._stateEventEmitter=new Xh,this._waitingEventEmitter=new Xh,this.userAgent=r;const l=r.configuration.uri.clone();if(l.user=void 0,this.options=Object.assign(Object.assign(Object.assign({},Co.defaultOptions()),{registrar:l}),Co.stripUndefinedProperties(i)),this.options.extraContactHeaderParams=(this.options.extraContactHeaderParams||[]).slice(),this.options.extraHeaders=(this.options.extraHeaders||[]).slice(),!this.options.registrar)throw new Error("Registrar undefined.");if(this.options.registrar=this.options.registrar.clone(),this.options.regId&&!this.options.instanceId?this.options.instanceId=this.userAgent.instanceId:!this.options.regId&&this.options.instanceId&&(this.options.regId=1),this.options.instanceId&&zn.parse(this.options.instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");if(this.options.regId&&this.options.regId<0)throw new Error("Invalid regId.");const f=this.options.registrar,p=this.options.params&&this.options.params.fromUri||r.userAgentCore.configuration.aor,v=this.options.params&&this.options.params.toUri||r.configuration.uri,S=this.options.params||{},b=(i.extraHeaders||[]).slice();if(this.request=r.userAgentCore.makeOutgoingRequestMessage(tt.REGISTER,f,p,v,S,b,void 0),this.expires=this.options.expires||Co.defaultExpires,this.expires<0)throw new Error("Invalid expires.");if(this.refreshFrequency=this.options.refreshFrequency||Co.defaultRefreshFrequency,this.refreshFrequency<50||this.refreshFrequency>99)throw new Error("Invalid refresh frequency. The value represents a percentage of the expiration time and should be between 50 and 99.");this.logger=r.getLogger("sip.Registerer"),this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(C=>{const w=this.options[C];switch(C){case"registrar":this.logger.log("· "+C+": "+w);break;default:this.logger.log("· "+C+": "+JSON.stringify(w))}})),this.id=this.request.callId+this.request.from.parameters.tag,this.userAgent._registerers[this.id]=this}static defaultOptions(){return{expires:Co.defaultExpires,extraContactHeaderParams:[],extraHeaders:[],logConfiguration:!0,instanceId:"",params:{},regId:0,registrar:new xo("sip","anonymous","anonymous.invalid"),refreshFrequency:Co.defaultRefreshFrequency}}static stripUndefinedProperties(r){return Object.keys(r).reduce((i,l)=>(r[l]!==void 0&&(i[l]=r[l]),i),{})}get contacts(){return this._contacts.slice()}get retryAfter(){return this._retryAfter}get state(){return this._state}get stateChange(){return this._stateEventEmitter}dispose(){return this.disposed?Promise.resolve():(this.disposed=!0,this.logger.log(`Registerer ${this.id} in state ${this.state} is being disposed`),delete this.userAgent._registerers[this.id],new Promise(r=>{const i=()=>{if(!this.waiting&&this._state===Cr.Registered){this.stateChange.addListener(()=>{this.terminated(),r()},{once:!0}),this.unregister();return}this.terminated(),r()};this.waiting?this.waitingChange.addListener(()=>{i()},{once:!0}):i()}))}register(r={}){if(this.state===Cr.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const f=new Hx("REGISTER request already in progress, waiting for final response");return Promise.reject(f)}r.requestOptions&&(this.options=Object.assign(Object.assign({},this.options),r.requestOptions));const i=(this.options.extraHeaders||[]).slice();i.push("Contact: "+this.generateContactHeader(this.expires)),i.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.request.extraHeaders=i,this.waitingToggle(!0);const l=this.userAgent.userAgentCore.register(this.request,{onAccept:f=>{let p;f.message.hasHeader("expires")&&(p=Number(f.message.getHeader("expires"))),this._contacts=f.message.getHeaders("contact");let v=this._contacts.length;if(!v){this.logger.error("No Contact header in response to REGISTER, dropping response."),this.unregistered();return}let S;for(;v--;){if(S=f.message.parseHeader("contact",v),!S)throw new Error("Contact undefined");if(this.userAgent.contact.pubGruu&&LS(S.uri,this.userAgent.contact.pubGruu)){p=Number(S.getParam("expires"));break}if(this.userAgent.configuration.contactName===""){if(S.uri.user===this.userAgent.contact.uri.user){p=Number(S.getParam("expires"));break}}else if(LS(S.uri,this.userAgent.contact.uri)){p=Number(S.getParam("expires"));break}S=void 0}if(S===void 0){this.logger.error("No Contact header pointing to us, dropping response"),this.unregistered(),this.waitingToggle(!1);return}if(p===void 0){this.logger.error("Contact pointing to us is missing expires parameter, dropping response"),this.unregistered(),this.waitingToggle(!1);return}if(S.hasParam("temp-gruu")){const b=S.getParam("temp-gruu");b&&(this.userAgent.contact.tempGruu=zn.URIParse(b.replace(/"/g,"")))}if(S.hasParam("pub-gruu")){const b=S.getParam("pub-gruu");b&&(this.userAgent.contact.pubGruu=zn.URIParse(b.replace(/"/g,"")))}this.registered(p),r.requestDelegate&&r.requestDelegate.onAccept&&r.requestDelegate.onAccept(f),this.waitingToggle(!1)},onProgress:f=>{r.requestDelegate&&r.requestDelegate.onProgress&&r.requestDelegate.onProgress(f)},onRedirect:f=>{this.logger.error("Redirect received. Not supported."),this.unregistered(),r.requestDelegate&&r.requestDelegate.onRedirect&&r.requestDelegate.onRedirect(f),this.waitingToggle(!1)},onReject:f=>{if(f.message.statusCode===423){if(!f.message.hasHeader("min-expires")){this.logger.error("423 response received for REGISTER without Min-Expires, dropping response"),this.unregistered(),this.waitingToggle(!1);return}this.expires=Number(f.message.getHeader("min-expires")),this.waitingToggle(!1),this.register();return}this.logger.warn(`Failed to register, status code ${f.message.statusCode}`);let p=NaN;if(f.message.statusCode===500||f.message.statusCode===503){const v=f.message.getHeader("retry-after");v&&(p=Number.parseInt(v,void 0))}this._retryAfter=isNaN(p)?void 0:p,this.unregistered(),r.requestDelegate&&r.requestDelegate.onReject&&r.requestDelegate.onReject(f),this._retryAfter=void 0,this.waitingToggle(!1)},onTrying:f=>{r.requestDelegate&&r.requestDelegate.onTrying&&r.requestDelegate.onTrying(f)}});return Promise.resolve(l)}unregister(r={}){if(this.state===Cr.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed&&this.state!==Cr.Registered)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const f=new Hx("REGISTER request already in progress, waiting for final response");return Promise.reject(f)}this._state!==Cr.Registered&&!r.all&&this.logger.warn("Not currently registered, but sending an unregister anyway.");const i=(r.requestOptions&&r.requestOptions.extraHeaders||[]).slice();this.request.extraHeaders=i,r.all?(i.push("Contact: *"),i.push("Expires: 0")):i.push("Contact: "+this.generateContactHeader(0)),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.waitingToggle(!0);const l=this.userAgent.userAgentCore.register(this.request,{onAccept:f=>{this._contacts=f.message.getHeaders("contact"),this.unregistered(),r.requestDelegate&&r.requestDelegate.onAccept&&r.requestDelegate.onAccept(f),this.waitingToggle(!1)},onProgress:f=>{r.requestDelegate&&r.requestDelegate.onProgress&&r.requestDelegate.onProgress(f)},onRedirect:f=>{this.logger.error("Unregister redirected. Not currently supported."),this.unregistered(),r.requestDelegate&&r.requestDelegate.onRedirect&&r.requestDelegate.onRedirect(f),this.waitingToggle(!1)},onReject:f=>{this.logger.error(`Unregister rejected with status code ${f.message.statusCode}`),this.unregistered(),r.requestDelegate&&r.requestDelegate.onReject&&r.requestDelegate.onReject(f),this.waitingToggle(!1)},onTrying:f=>{r.requestDelegate&&r.requestDelegate.onTrying&&r.requestDelegate.onTrying(f)}});return Promise.resolve(l)}clearTimers(){this.registrationTimer!==void 0&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.registrationExpiredTimer!==void 0&&(clearTimeout(this.registrationExpiredTimer),this.registrationExpiredTimer=void 0)}generateContactHeader(r){let i=this.userAgent.contact.toString({register:!0});return this.options.regId&&this.options.instanceId&&(i+=";reg-id="+this.options.regId,i+=';+sip.instance="<urn:uuid:'+this.options.instanceId+'>"'),this.options.extraContactHeaderParams&&this.options.extraContactHeaderParams.forEach(l=>{i+=";"+l}),i+=";expires="+r,i}registered(r){this.clearTimers(),this.registrationTimer=setTimeout(()=>{this.registrationTimer=void 0,this.register()},this.refreshFrequency/100*r*1e3),this.registrationExpiredTimer=setTimeout(()=>{this.logger.warn("Registration expired"),this.unregistered()},r*1e3),this._state!==Cr.Registered&&this.stateTransition(Cr.Registered)}unregistered(){this.clearTimers(),this._state!==Cr.Unregistered&&this.stateTransition(Cr.Unregistered)}terminated(){this.clearTimers(),this._state!==Cr.Terminated&&this.stateTransition(Cr.Terminated)}stateTransition(r){const i=()=>{throw new Error(`Invalid state transition from ${this._state} to ${r}`)};switch(this._state){case Cr.Initial:r!==Cr.Registered&&r!==Cr.Unregistered&&r!==Cr.Terminated&&i();break;case Cr.Registered:r!==Cr.Unregistered&&r!==Cr.Terminated&&i();break;case Cr.Unregistered:r!==Cr.Registered&&r!==Cr.Terminated&&i();break;case Cr.Terminated:i();break;default:throw new Error("Unrecognized state.")}this._state=r,this.logger.log(`Registration transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),r===Cr.Terminated&&this.dispose()}get waiting(){return this._waiting}get waitingChange(){return this._waitingEventEmitter}waitingToggle(r){if(this._waiting===r)throw new Error(`Invalid waiting transition from ${this._waiting} to ${r}`);this._waiting=r,this.logger.log(`Waiting toggled to ${this._waiting}`),this._waitingEventEmitter.emit(this._waiting)}waitingWarning(){let r="An attempt was made to send a REGISTER request while a prior one was still in progress.";r+=" RFC 3261 requires UAs MUST NOT send a new registration until they have received a final response",r+=" from the registrar for the previous one or the previous REGISTER request has timed out.",r+=" Note that if the transport disconnects, you still must wait for the prior request to time out before",r+=" sending a new REGISTER request or alternatively dispose of the current Registerer and create a new Registerer.",this.logger.warn(r)}stateError(){let i=`An attempt was made to send a REGISTER request when the Registerer ${this.state===Cr.Terminated?"is in 'Terminated' state":"has been disposed"}.`;i+=" The Registerer transitions to 'Terminated' when Registerer.dispose() is called.",i+=" Perhaps you called UserAgent.stop() which dipsoses of all Registerers?",this.logger.error(i)}}Co.defaultExpires=600,Co.defaultRefreshFrequency=99;var vr;(function(o){o.Initial="Initial",o.NotifyWait="NotifyWait",o.Pending="Pending",o.Active="Active",o.Terminated="Terminated"})(vr=vr||(vr={}));var Rt;(function(o){o.Connecting="Connecting",o.Connected="Connected",o.Disconnecting="Disconnecting",o.Disconnected="Disconnected"})(Rt=Rt||(Rt={}));var pi;(function(o){o.Started="Started",o.Stopped="Stopped"})(pi=pi||(pi={}));class Hn{constructor(){this._dataLength=0,this._bufferLength=0,this._state=new Int32Array(4),this._buffer=new ArrayBuffer(68),this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(r,i=!1){return this.onePassHasher.start().appendStr(r).end(i)}static hashAsciiStr(r,i=!1){return this.onePassHasher.start().appendAsciiStr(r).end(i)}static _hex(r){const i=Hn.hexChars,l=Hn.hexOut;let f,p,v,S;for(S=0;S<4;S+=1)for(p=S*8,f=r[S],v=0;v<8;v+=2)l[p+1+v]=i.charAt(f&15),f>>>=4,l[p+0+v]=i.charAt(f&15),f>>>=4;return l.join("")}static _md5cycle(r,i){let l=r[0],f=r[1],p=r[2],v=r[3];l+=(f&p|~f&v)+i[0]-680876936|0,l=(l<<7|l>>>25)+f|0,v+=(l&f|~l&p)+i[1]-389564586|0,v=(v<<12|v>>>20)+l|0,p+=(v&l|~v&f)+i[2]+606105819|0,p=(p<<17|p>>>15)+v|0,f+=(p&v|~p&l)+i[3]-1044525330|0,f=(f<<22|f>>>10)+p|0,l+=(f&p|~f&v)+i[4]-176418897|0,l=(l<<7|l>>>25)+f|0,v+=(l&f|~l&p)+i[5]+1200080426|0,v=(v<<12|v>>>20)+l|0,p+=(v&l|~v&f)+i[6]-1473231341|0,p=(p<<17|p>>>15)+v|0,f+=(p&v|~p&l)+i[7]-45705983|0,f=(f<<22|f>>>10)+p|0,l+=(f&p|~f&v)+i[8]+1770035416|0,l=(l<<7|l>>>25)+f|0,v+=(l&f|~l&p)+i[9]-1958414417|0,v=(v<<12|v>>>20)+l|0,p+=(v&l|~v&f)+i[10]-42063|0,p=(p<<17|p>>>15)+v|0,f+=(p&v|~p&l)+i[11]-1990404162|0,f=(f<<22|f>>>10)+p|0,l+=(f&p|~f&v)+i[12]+1804603682|0,l=(l<<7|l>>>25)+f|0,v+=(l&f|~l&p)+i[13]-40341101|0,v=(v<<12|v>>>20)+l|0,p+=(v&l|~v&f)+i[14]-1502002290|0,p=(p<<17|p>>>15)+v|0,f+=(p&v|~p&l)+i[15]+1236535329|0,f=(f<<22|f>>>10)+p|0,l+=(f&v|p&~v)+i[1]-165796510|0,l=(l<<5|l>>>27)+f|0,v+=(l&p|f&~p)+i[6]-1069501632|0,v=(v<<9|v>>>23)+l|0,p+=(v&f|l&~f)+i[11]+643717713|0,p=(p<<14|p>>>18)+v|0,f+=(p&l|v&~l)+i[0]-373897302|0,f=(f<<20|f>>>12)+p|0,l+=(f&v|p&~v)+i[5]-701558691|0,l=(l<<5|l>>>27)+f|0,v+=(l&p|f&~p)+i[10]+38016083|0,v=(v<<9|v>>>23)+l|0,p+=(v&f|l&~f)+i[15]-660478335|0,p=(p<<14|p>>>18)+v|0,f+=(p&l|v&~l)+i[4]-405537848|0,f=(f<<20|f>>>12)+p|0,l+=(f&v|p&~v)+i[9]+568446438|0,l=(l<<5|l>>>27)+f|0,v+=(l&p|f&~p)+i[14]-1019803690|0,v=(v<<9|v>>>23)+l|0,p+=(v&f|l&~f)+i[3]-187363961|0,p=(p<<14|p>>>18)+v|0,f+=(p&l|v&~l)+i[8]+1163531501|0,f=(f<<20|f>>>12)+p|0,l+=(f&v|p&~v)+i[13]-1444681467|0,l=(l<<5|l>>>27)+f|0,v+=(l&p|f&~p)+i[2]-51403784|0,v=(v<<9|v>>>23)+l|0,p+=(v&f|l&~f)+i[7]+1735328473|0,p=(p<<14|p>>>18)+v|0,f+=(p&l|v&~l)+i[12]-1926607734|0,f=(f<<20|f>>>12)+p|0,l+=(f^p^v)+i[5]-378558|0,l=(l<<4|l>>>28)+f|0,v+=(l^f^p)+i[8]-2022574463|0,v=(v<<11|v>>>21)+l|0,p+=(v^l^f)+i[11]+1839030562|0,p=(p<<16|p>>>16)+v|0,f+=(p^v^l)+i[14]-35309556|0,f=(f<<23|f>>>9)+p|0,l+=(f^p^v)+i[1]-1530992060|0,l=(l<<4|l>>>28)+f|0,v+=(l^f^p)+i[4]+1272893353|0,v=(v<<11|v>>>21)+l|0,p+=(v^l^f)+i[7]-155497632|0,p=(p<<16|p>>>16)+v|0,f+=(p^v^l)+i[10]-1094730640|0,f=(f<<23|f>>>9)+p|0,l+=(f^p^v)+i[13]+681279174|0,l=(l<<4|l>>>28)+f|0,v+=(l^f^p)+i[0]-358537222|0,v=(v<<11|v>>>21)+l|0,p+=(v^l^f)+i[3]-722521979|0,p=(p<<16|p>>>16)+v|0,f+=(p^v^l)+i[6]+76029189|0,f=(f<<23|f>>>9)+p|0,l+=(f^p^v)+i[9]-640364487|0,l=(l<<4|l>>>28)+f|0,v+=(l^f^p)+i[12]-421815835|0,v=(v<<11|v>>>21)+l|0,p+=(v^l^f)+i[15]+530742520|0,p=(p<<16|p>>>16)+v|0,f+=(p^v^l)+i[2]-995338651|0,f=(f<<23|f>>>9)+p|0,l+=(p^(f|~v))+i[0]-198630844|0,l=(l<<6|l>>>26)+f|0,v+=(f^(l|~p))+i[7]+1126891415|0,v=(v<<10|v>>>22)+l|0,p+=(l^(v|~f))+i[14]-1416354905|0,p=(p<<15|p>>>17)+v|0,f+=(v^(p|~l))+i[5]-57434055|0,f=(f<<21|f>>>11)+p|0,l+=(p^(f|~v))+i[12]+1700485571|0,l=(l<<6|l>>>26)+f|0,v+=(f^(l|~p))+i[3]-1894986606|0,v=(v<<10|v>>>22)+l|0,p+=(l^(v|~f))+i[10]-1051523|0,p=(p<<15|p>>>17)+v|0,f+=(v^(p|~l))+i[1]-2054922799|0,f=(f<<21|f>>>11)+p|0,l+=(p^(f|~v))+i[8]+1873313359|0,l=(l<<6|l>>>26)+f|0,v+=(f^(l|~p))+i[15]-30611744|0,v=(v<<10|v>>>22)+l|0,p+=(l^(v|~f))+i[6]-1560198380|0,p=(p<<15|p>>>17)+v|0,f+=(v^(p|~l))+i[13]+1309151649|0,f=(f<<21|f>>>11)+p|0,l+=(p^(f|~v))+i[4]-145523070|0,l=(l<<6|l>>>26)+f|0,v+=(f^(l|~p))+i[11]-1120210379|0,v=(v<<10|v>>>22)+l|0,p+=(l^(v|~f))+i[2]+718787259|0,p=(p<<15|p>>>17)+v|0,f+=(v^(p|~l))+i[9]-343485551|0,f=(f<<21|f>>>11)+p|0,r[0]=l+r[0]|0,r[1]=f+r[1]|0,r[2]=p+r[2]|0,r[3]=v+r[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(Hn.stateIdentity),this}appendStr(r){const i=this._buffer8,l=this._buffer32;let f=this._bufferLength,p,v;for(v=0;v<r.length;v+=1){if(p=r.charCodeAt(v),p<128)i[f++]=p;else if(p<2048)i[f++]=(p>>>6)+192,i[f++]=p&63|128;else if(p<55296||p>56319)i[f++]=(p>>>12)+224,i[f++]=p>>>6&63|128,i[f++]=p&63|128;else{if(p=(p-55296)*1024+(r.charCodeAt(++v)-56320)+65536,p>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");i[f++]=(p>>>18)+240,i[f++]=p>>>12&63|128,i[f++]=p>>>6&63|128,i[f++]=p&63|128}f>=64&&(this._dataLength+=64,Hn._md5cycle(this._state,l),f-=64,l[0]=l[16])}return this._bufferLength=f,this}appendAsciiStr(r){const i=this._buffer8,l=this._buffer32;let f=this._bufferLength,p,v=0;for(;;){for(p=Math.min(r.length-v,64-f);p--;)i[f++]=r.charCodeAt(v++);if(f<64)break;this._dataLength+=64,Hn._md5cycle(this._state,l),f=0}return this._bufferLength=f,this}appendByteArray(r){const i=this._buffer8,l=this._buffer32;let f=this._bufferLength,p,v=0;for(;;){for(p=Math.min(r.length-v,64-f);p--;)i[f++]=r[v++];if(f<64)break;this._dataLength+=64,Hn._md5cycle(this._state,l),f=0}return this._bufferLength=f,this}getState(){const r=this,i=r._state;return{buffer:String.fromCharCode.apply(null,r._buffer8),buflen:r._bufferLength,length:r._dataLength,state:[i[0],i[1],i[2],i[3]]}}setState(r){const i=r.buffer,l=r.state,f=this._state;let p;for(this._dataLength=r.length,this._bufferLength=r.buflen,f[0]=l[0],f[1]=l[1],f[2]=l[2],f[3]=l[3],p=0;p<i.length;p+=1)this._buffer8[p]=i.charCodeAt(p)}end(r=!1){const i=this._bufferLength,l=this._buffer8,f=this._buffer32,p=(i>>2)+1;let v;if(this._dataLength+=i,l[i]=128,l[i+1]=l[i+2]=l[i+3]=0,f.set(Hn.buffer32Identity.subarray(p),p),i>55&&(Hn._md5cycle(this._state,f),f.set(Hn.buffer32Identity)),v=this._dataLength*8,v<=4294967295)f[14]=v;else{const S=v.toString(16).match(/(.*?)(.{0,8})$/);if(S===null)return;const b=parseInt(S[2],16),C=parseInt(S[1],16)||0;f[14]=b,f[15]=C}return Hn._md5cycle(this._state,f),r?this._state:Hn._hex(this._state)}}Hn.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),Hn.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Hn.hexChars="0123456789abcdef",Hn.hexOut=[],Hn.onePassHasher=new Hn,Hn.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592"&&console.error("Md5 self test failed.");function yu(o){return Hn.hashStr(o)}class ZR{constructor(r,i,l,f){this.logger=r.getLogger("sipjs.digestauthentication"),this.username=l,this.password=f,this.ha1=i,this.nc=0,this.ncHex="00000000"}authenticate(r,i,l){if(this.algorithm=i.algorithm,this.realm=i.realm,this.nonce=i.nonce,this.opaque=i.opaque,this.stale=i.stale,this.algorithm){if(this.algorithm!=="MD5")return this.logger.warn("challenge with Digest algorithm different than 'MD5', authentication aborted"),!1}else this.algorithm="MD5";if(!this.realm)return this.logger.warn("challenge without Digest realm, authentication aborted"),!1;if(!this.nonce)return this.logger.warn("challenge without Digest nonce, authentication aborted"),!1;if(i.qop)if(i.qop.indexOf("auth")>-1)this.qop="auth";else if(i.qop.indexOf("auth-int")>-1)this.qop="auth-int";else return this.logger.warn("challenge without Digest qop different than 'auth' or 'auth-int', authentication aborted"),!1;else this.qop=void 0;return this.method=r.method,this.uri=r.ruri,this.cnonce=_c(12),this.nc+=1,this.updateNcHex(),this.nc===4294967296&&(this.nc=1,this.ncHex="00000001"),this.calculateResponse(l),!0}toString(){const r=[];if(!this.response)throw new Error("response field does not exist, cannot generate Authorization header");return r.push("algorithm="+this.algorithm),r.push('username="'+this.username+'"'),r.push('realm="'+this.realm+'"'),r.push('nonce="'+this.nonce+'"'),r.push('uri="'+this.uri+'"'),r.push('response="'+this.response+'"'),this.opaque&&r.push('opaque="'+this.opaque+'"'),this.qop&&(r.push("qop="+this.qop),r.push('cnonce="'+this.cnonce+'"'),r.push("nc="+this.ncHex)),"Digest "+r.join(", ")}updateNcHex(){const r=Number(this.nc).toString(16);this.ncHex="00000000".substr(0,8-r.length)+r}calculateResponse(r){let i,l;i=this.ha1,(i===""||i===void 0)&&(i=yu(this.username+":"+this.realm+":"+this.password)),this.qop==="auth"?(l=yu(this.method+":"+this.uri),this.response=yu(i+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth:"+l)):this.qop==="auth-int"?(l=yu(this.method+":"+this.uri+":"+yu(r||"")),this.response=yu(i+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth-int:"+l)):this.qop===void 0&&(l=yu(this.method+":"+this.uri),this.response=yu(i+":"+this.nonce+":"+l))}}var li;(function(o){o[o.error=0]="error",o[o.warn=1]="warn",o[o.log=2]="log",o[o.debug=3]="debug"})(li=li||(li={}));class WS{constructor(r,i,l){this.logger=r,this.category=i,this.label=l}error(r){this.genericLog(li.error,r)}warn(r){this.genericLog(li.warn,r)}log(r){this.genericLog(li.log,r)}debug(r){this.genericLog(li.debug,r)}genericLog(r,i){this.logger.genericLog(r,this.category,this.label,i)}get level(){return this.logger.level}set level(r){this.logger.level=r}}class XR{constructor(){this.builtinEnabled=!0,this._level=li.log,this.loggers={},this.logger=this.getLogger("sip:loggerfactory")}get level(){return this._level}set level(r){r>=0&&r<=3?this._level=r:r>3?this._level=3:li.hasOwnProperty(r)?this._level=r:this.logger.error("invalid 'level' parameter value: "+JSON.stringify(r))}get connector(){return this._connector}set connector(r){r?typeof r=="function"?this._connector=r:this.logger.error("invalid 'connector' parameter value: "+JSON.stringify(r)):this._connector=void 0}getLogger(r,i){if(i&&this.level===3)return new WS(this,r,i);if(this.loggers[r])return this.loggers[r];{const l=new WS(this,r);return this.loggers[r]=l,l}}genericLog(r,i,l,f){this.level>=r&&this.builtinEnabled&&this.print(r,i,l,f),this.connector&&this.connector(li[r],i,l,f)}print(r,i,l,f){if(typeof f=="string"){const p=[new Date,i];l&&p.push(l),f=p.concat(f).join(" | ")}switch(r){case li.error:console.error(f);break;case li.warn:console.warn(f);break;case li.log:console.log(f);break;case li.debug:console.debug(f);break}}}var _v;(function(o){function r(f,p){let v=p,S=0,b=0;if(f.substring(v,v+2).match(/(^\r\n)/))return-2;for(;S===0;){if(b=f.indexOf(`\r
|
|
390
|
+
`,v),b===-1)return b;!f.substring(b+2,b+4).match(/(^\r\n)/)&&f.charAt(b+2).match(/(^\s+)/)?v=b+2:S=b}return S}o.getHeader=r;function i(f,p,v,S){const b=p.indexOf(":",v),C=p.substring(v,b).trim(),w=p.substring(b+1,S).trim();let T;switch(C.toLowerCase()){case"via":case"v":f.addHeader("via",w),f.getHeaders("via").length===1?(T=f.parseHeader("Via"),T&&(f.via=T,f.viaBranch=T.branch)):T=0;break;case"from":case"f":f.setHeader("from",w),T=f.parseHeader("from"),T&&(f.from=T,f.fromTag=T.getParam("tag"));break;case"to":case"t":f.setHeader("to",w),T=f.parseHeader("to"),T&&(f.to=T,f.toTag=T.getParam("tag"));break;case"record-route":if(T=zn.parse(w,"Record_Route"),T===-1){T=void 0;break}if(!(T instanceof Array)){T=void 0;break}T.forEach(A=>{f.addHeader("record-route",w.substring(A.position,A.offset)),f.headers["Record-Route"][f.getHeaders("record-route").length-1].parsed=A.parsed});break;case"call-id":case"i":f.setHeader("call-id",w),T=f.parseHeader("call-id"),T&&(f.callId=w);break;case"contact":case"m":if(T=zn.parse(w,"Contact"),T===-1){T=void 0;break}if(!(T instanceof Array)){T=void 0;break}T.forEach(A=>{f.addHeader("contact",w.substring(A.position,A.offset)),f.headers.Contact[f.getHeaders("contact").length-1].parsed=A.parsed});break;case"content-length":case"l":f.setHeader("content-length",w),T=f.parseHeader("content-length");break;case"content-type":case"c":f.setHeader("content-type",w),T=f.parseHeader("content-type");break;case"cseq":f.setHeader("cseq",w),T=f.parseHeader("cseq"),T&&(f.cseq=T.value),f instanceof vu&&(f.method=T.method);break;case"max-forwards":f.setHeader("max-forwards",w),T=f.parseHeader("max-forwards");break;case"www-authenticate":f.setHeader("www-authenticate",w),T=f.parseHeader("www-authenticate");break;case"proxy-authenticate":f.setHeader("proxy-authenticate",w),T=f.parseHeader("proxy-authenticate");break;case"refer-to":case"r":f.setHeader("refer-to",w),T=f.parseHeader("refer-to"),T&&(f.referTo=T);break;default:f.addHeader(C.toLowerCase(),w),T=0}return T===void 0?{error:"error parsing header '"+C+"'"}:!0}o.parseHeader=i;function l(f,p){let v=0,S=f.indexOf(`\r
|
|
391
|
+
`);if(S===-1){p.warn("no CRLF found, not a SIP message, discarded");return}const b=f.substring(0,S),C=zn.parse(b,"Request_Response");let w;if(C===-1){p.warn('error parsing first line of SIP message: "'+b+'"');return}else C.status_code?(w=new vu,w.statusCode=C.status_code,w.reasonPhrase=C.reason_phrase):(w=new Qf,w.method=C.method,w.ruri=C.uri);w.data=f,v=S+2;let T;for(;;){if(S=r(f,v),S===-2){T=v+2;break}else if(S===-1){p.error("malformed message");return}const A=i(w,f,v,S);if(A&&A!==!0){p.error(A.error);return}v=S+2}return w.hasHeader("content-length")?w.body=f.substr(T,Number(w.getHeader("content-length"))):w.body=f.substring(T),w}o.parseMessage=l})(_v=_v||(_v={}));function GS(o,r){const i=`\r
|
|
392
|
+
`;if(r.statusCode<100||r.statusCode>699)throw new TypeError("Invalid statusCode: "+r.statusCode);const l=r.reasonPhrase?r.reasonPhrase:Sv(r.statusCode);let f="SIP/2.0 "+r.statusCode+" "+l+i;r.statusCode>=100&&r.statusCode<200,r.statusCode;const p="From: "+o.getHeader("From")+i,v="Call-ID: "+o.callId+i,S="CSeq: "+o.cseq+" "+o.method+i,b=o.getHeaders("via").reduce((H,P)=>H+"Via: "+P+i,"");let C="To: "+o.getHeader("to");if(r.statusCode>100&&!o.parseHeader("to").hasParam("tag")){let H=r.toTag;H||(H=wv()),C+=";tag="+H}C+=i;let w="";r.supported&&(w="Supported: "+r.supported.join(", ")+i);let T="";r.userAgent&&(T="User-Agent: "+r.userAgent+i);let A="";return r.extraHeaders&&(A=r.extraHeaders.reduce((H,P)=>H+P.trim()+i,"")),f+=b,f+=p,f+=C,f+=S,f+=v,f+=w,f+=T,f+=A,r.body?(f+="Content-Type: "+r.body.contentType+i,f+="Content-Length: "+Jh(r.body.content)+i+i,f+=r.body.content):f+="Content-Length: 0"+i+i,{message:f}}class Lx extends bc{constructor(r){super(r||"Unspecified transport error.")}}class KS{constructor(r,i,l,f,p){this._transport=r,this._user=i,this._id=l,this._state=f,this.listeners=new Array,this.logger=i.loggerFactory.getLogger(p,l),this.logger.debug(`Constructing ${this.typeToString()} with id ${this.id}.`)}dispose(){this.logger.debug(`Destroyed ${this.typeToString()} with id ${this.id}.`)}get id(){return this._id}get kind(){throw new Error("Invalid kind.")}get state(){return this._state}get transport(){return this._transport}addStateChangeListener(r,i){const l=()=>{this.removeStateChangeListener(l),r()};(i==null?void 0:i.once)===!0?this.listeners.push(l):this.listeners.push(r)}notifyStateChangeListeners(){this.listeners.slice().forEach(r=>r())}removeStateChangeListener(r){this.listeners=this.listeners.filter(i=>i!==r)}logTransportError(r,i){this.logger.error(r.message),this.logger.error(`Transport error occurred in ${this.typeToString()} with id ${this.id}.`),this.logger.error(i)}send(r){return this.transport.send(r).catch(i=>{if(i instanceof Lx)throw this.onTransportError(i),i;let l;throw i&&typeof i.message=="string"?l=new Lx(i.message):l=new Lx,this.onTransportError(l),l})}setState(r){this.logger.debug(`State change to "${r}" on ${this.typeToString()} with id ${this.id}.`),this._state=r,this._user.onStateChange&&this._user.onStateChange(r),this.notifyStateChangeListeners()}typeToString(){return"UnknownType"}}class QS extends KS{constructor(r,i,l,f,p){super(i,l,r.viaBranch,f,p),this._request=r,this.user=l}get request(){return this._request}}var pe;(function(o){o.Accepted="Accepted",o.Calling="Calling",o.Completed="Completed",o.Confirmed="Confirmed",o.Proceeding="Proceeding",o.Terminated="Terminated",o.Trying="Trying"})(pe=pe||(pe={}));class ya extends QS{constructor(r,i,l){super(r,i,l,pe.Proceeding,"sip.transaction.ist")}dispose(){this.stopProgressExtensionTimer(),this.H&&(clearTimeout(this.H),this.H=void 0),this.I&&(clearTimeout(this.I),this.I=void 0),this.L&&(clearTimeout(this.L),this.L=void 0),super.dispose()}get kind(){return"ist"}receiveRequest(r){switch(this.state){case pe.Proceeding:if(r.method===tt.INVITE){this.lastProvisionalResponse&&this.send(this.lastProvisionalResponse).catch(l=>{this.logTransportError(l,"Failed to send retransmission of provisional response.")});return}break;case pe.Accepted:if(r.method===tt.INVITE)return;break;case pe.Completed:if(r.method===tt.INVITE){if(!this.lastFinalResponse)throw new Error("Last final response undefined.");this.send(this.lastFinalResponse).catch(l=>{this.logTransportError(l,"Failed to send retransmission of final response.")});return}if(r.method===tt.ACK){this.stateTransition(pe.Confirmed);return}break;case pe.Confirmed:if(r.method===tt.INVITE||r.method===tt.ACK)return;break;case pe.Terminated:if(r.method===tt.INVITE||r.method===tt.ACK)return;break;default:throw new Error(`Invalid state ${this.state}`)}const i=`INVITE server transaction received unexpected ${r.method} request while in state ${this.state}.`;this.logger.warn(i)}receiveResponse(r,i){if(r<100||r>699)throw new Error(`Invalid status code ${r}`);switch(this.state){case pe.Proceeding:if(r>=100&&r<=199){this.lastProvisionalResponse=i,r>100&&this.startProgressExtensionTimer(),this.send(i).catch(f=>{this.logTransportError(f,"Failed to send 1xx response.")});return}if(r>=200&&r<=299){this.lastFinalResponse=i,this.stateTransition(pe.Accepted),this.send(i).catch(f=>{this.logTransportError(f,"Failed to send 2xx response.")});return}if(r>=300&&r<=699){this.lastFinalResponse=i,this.stateTransition(pe.Completed),this.send(i).catch(f=>{this.logTransportError(f,"Failed to send non-2xx final response.")});return}break;case pe.Accepted:if(r>=200&&r<=299){this.send(i).catch(f=>{this.logTransportError(f,"Failed to send 2xx response.")});return}break;case pe.Completed:break;case pe.Confirmed:break;case pe.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const l=`INVITE server transaction received unexpected ${r} response from TU while in state ${this.state}.`;throw this.logger.error(l),new Error(l)}retransmitAcceptedResponse(){this.state===pe.Accepted&&this.lastFinalResponse&&this.send(this.lastFinalResponse).catch(r=>{this.logTransportError(r,"Failed to send 2xx response.")})}onTransportError(r){this.user.onTransportError&&this.user.onTransportError(r)}typeToString(){return"INVITE server transaction"}stateTransition(r){const i=()=>{throw new Error(`Invalid state transition from ${this.state} to ${r}`)};switch(r){case pe.Proceeding:i();break;case pe.Accepted:case pe.Completed:this.state!==pe.Proceeding&&i();break;case pe.Confirmed:this.state!==pe.Completed&&i();break;case pe.Terminated:this.state!==pe.Accepted&&this.state!==pe.Completed&&this.state!==pe.Confirmed&&i();break;default:i()}this.stopProgressExtensionTimer(),r===pe.Accepted&&(this.L=setTimeout(()=>this.timerL(),oi.TIMER_L)),r===pe.Completed&&(this.H=setTimeout(()=>this.timerH(),oi.TIMER_H)),r===pe.Confirmed&&(this.I=setTimeout(()=>this.timerI(),oi.TIMER_I)),r===pe.Terminated&&this.dispose(),this.setState(r)}startProgressExtensionTimer(){this.progressExtensionTimer===void 0&&(this.progressExtensionTimer=setInterval(()=>{if(this.logger.debug(`Progress extension timer expired for INVITE server transaction ${this.id}.`),!this.lastProvisionalResponse)throw new Error("Last provisional response undefined.");this.send(this.lastProvisionalResponse).catch(r=>{this.logTransportError(r,"Failed to send retransmission of provisional response.")})},oi.PROVISIONAL_RESPONSE_INTERVAL))}stopProgressExtensionTimer(){this.progressExtensionTimer!==void 0&&(clearInterval(this.progressExtensionTimer),this.progressExtensionTimer=void 0)}timerG(){}timerH(){this.logger.debug(`Timer H expired for INVITE server transaction ${this.id}.`),this.state===pe.Completed&&(this.logger.warn("ACK to negative final response was never received, terminating transaction."),this.stateTransition(pe.Terminated))}timerI(){this.logger.debug(`Timer I expired for INVITE server transaction ${this.id}.`),this.stateTransition(pe.Terminated)}timerL(){this.logger.debug(`Timer L expired for INVITE server transaction ${this.id}.`),this.state===pe.Accepted&&this.stateTransition(pe.Terminated)}}class Dv extends KS{constructor(r,i,l,f,p){super(i,l,Dv.makeId(r),f,p),this._request=r,this.user=l,r.setViaHeader(this.id,i.protocol)}static makeId(r){if(r.method==="CANCEL"){if(!r.branch)throw new Error("Outgoing CANCEL request without a branch.");return r.branch}else return"z9hG4bK"+Math.floor(Math.random()*1e7)}get request(){return this._request}onRequestTimeout(){this.user.onRequestTimeout&&this.user.onRequestTimeout()}}class Pa extends Dv{constructor(r,i,l){super(r,i,l,pe.Trying,"sip.transaction.nict"),this.F=setTimeout(()=>this.timerF(),oi.TIMER_F),this.send(r.toString()).catch(f=>{this.logTransportError(f,"Failed to send initial outgoing request.")})}dispose(){this.F&&(clearTimeout(this.F),this.F=void 0),this.K&&(clearTimeout(this.K),this.K=void 0),super.dispose()}get kind(){return"nict"}receiveResponse(r){const i=r.statusCode;if(!i||i<100||i>699)throw new Error(`Invalid status code ${i}`);switch(this.state){case pe.Trying:if(i>=100&&i<=199){this.stateTransition(pe.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(r);return}if(i>=200&&i<=699){if(this.stateTransition(pe.Completed),i===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(r);return}break;case pe.Proceeding:if(i>=100&&i<=199&&this.user.receiveResponse)return this.user.receiveResponse(r);if(i>=200&&i<=699){if(this.stateTransition(pe.Completed),i===408){this.onRequestTimeout();return}this.user.receiveResponse&&this.user.receiveResponse(r);return}break;case pe.Completed:return;case pe.Terminated:return;default:throw new Error(`Invalid state ${this.state}`)}const l=`Non-INVITE client transaction received unexpected ${i} response while in state ${this.state}.`;this.logger.warn(l)}onTransportError(r){this.user.onTransportError&&this.user.onTransportError(r),this.stateTransition(pe.Terminated,!0)}typeToString(){return"non-INVITE client transaction"}stateTransition(r,i=!1){const l=()=>{throw new Error(`Invalid state transition from ${this.state} to ${r}`)};switch(r){case pe.Trying:l();break;case pe.Proceeding:this.state!==pe.Trying&&l();break;case pe.Completed:this.state!==pe.Trying&&this.state!==pe.Proceeding&&l();break;case pe.Terminated:this.state!==pe.Trying&&this.state!==pe.Proceeding&&this.state!==pe.Completed&&(i||l());break;default:l()}r===pe.Completed&&(this.F&&(clearTimeout(this.F),this.F=void 0),this.K=setTimeout(()=>this.timerK(),oi.TIMER_K)),r===pe.Terminated&&this.dispose(),this.setState(r)}timerF(){this.logger.debug(`Timer F expired for non-INVITE client transaction ${this.id}.`),(this.state===pe.Trying||this.state===pe.Proceeding)&&(this.onRequestTimeout(),this.stateTransition(pe.Terminated))}timerK(){this.state===pe.Completed&&this.stateTransition(pe.Terminated)}}class Zf{constructor(r,i){this.core=r,this.dialogState=i,this.core.dialogs.set(this.id,this)}static initialDialogStateForUserAgentClient(r,i){const f=i.getHeaders("record-route").reverse(),p=i.parseHeader("contact");if(!p)throw new Error("Contact undefined.");if(!(p instanceof ma))throw new Error("Contact not instance of NameAddrHeader.");const v=p.uri,S=r.cseq,b=void 0,C=r.callId,w=r.fromTag,T=i.toTag;if(!C)throw new Error("Call id undefined.");if(!w)throw new Error("From tag undefined.");if(!T)throw new Error("To tag undefined.");if(!r.from)throw new Error("From undefined.");if(!r.to)throw new Error("To undefined.");const A=r.from.uri,H=r.to.uri;if(!i.statusCode)throw new Error("Incoming response status code undefined.");const P=i.statusCode<200;return{id:C+w+T,early:P,callId:C,localTag:w,remoteTag:T,localSequenceNumber:S,remoteSequenceNumber:b,localURI:A,remoteURI:H,remoteTarget:v,routeSet:f,secure:!1}}static initialDialogStateForUserAgentServer(r,i,l=!1){const p=r.getHeaders("record-route"),v=r.parseHeader("contact");if(!v)throw new Error("Contact undefined.");if(!(v instanceof ma))throw new Error("Contact not instance of NameAddrHeader.");const S=v.uri,b=r.cseq,C=void 0,w=r.callId,T=i,A=r.fromTag,H=r.from.uri,P=r.to.uri;return{id:w+T+A,early:l,callId:w,localTag:T,remoteTag:A,localSequenceNumber:C,remoteSequenceNumber:b,localURI:P,remoteURI:H,remoteTarget:S,routeSet:p,secure:!1}}dispose(){this.core.dialogs.delete(this.id)}get id(){return this.dialogState.id}get early(){return this.dialogState.early}get callId(){return this.dialogState.callId}get localTag(){return this.dialogState.localTag}get remoteTag(){return this.dialogState.remoteTag}get localSequenceNumber(){return this.dialogState.localSequenceNumber}get remoteSequenceNumber(){return this.dialogState.remoteSequenceNumber}get localURI(){return this.dialogState.localURI}get remoteURI(){return this.dialogState.remoteURI}get remoteTarget(){return this.dialogState.remoteTarget}get routeSet(){return this.dialogState.routeSet}get secure(){return this.dialogState.secure}get userAgentCore(){return this.core}confirm(){this.dialogState.early=!1}receiveRequest(r){if(r.method!==tt.ACK){if(this.remoteSequenceNumber){if(r.cseq<=this.remoteSequenceNumber)throw new Error("Out of sequence in dialog request. Did you forget to call sequenceGuard()?");this.dialogState.remoteSequenceNumber=r.cseq}this.remoteSequenceNumber||(this.dialogState.remoteSequenceNumber=r.cseq)}}recomputeRouteSet(r){this.dialogState.routeSet=r.getHeaders("record-route").reverse()}createOutgoingRequestMessage(r,i){const l=this.remoteURI,f=this.remoteTag,p=this.localURI,v=this.localTag,S=this.callId;let b;i&&i.cseq?b=i.cseq:this.dialogState.localSequenceNumber?b=this.dialogState.localSequenceNumber+=1:b=this.dialogState.localSequenceNumber=1;const C=this.remoteTarget,w=this.routeSet,T=i&&i.extraHeaders,A=i&&i.body;return this.userAgentCore.makeOutgoingRequestMessage(r,C,p,l,{callId:S,cseq:b,fromTag:v,toTag:f,routeSet:w},T,A)}incrementLocalSequenceNumber(){if(!this.dialogState.localSequenceNumber)throw new Error("Local sequence number undefined.");this.dialogState.localSequenceNumber+=1}sequenceGuard(r){return r.method===tt.ACK?!0:this.remoteSequenceNumber&&r.cseq<=this.remoteSequenceNumber?(this.core.replyStateless(r,{statusCode:500}),!1):!0}}class xu extends Dv{constructor(r,i,l){super(r,i,l,pe.Calling,"sip.transaction.ict"),this.ackRetransmissionCache=new Map,this.B=setTimeout(()=>this.timerB(),oi.TIMER_B),this.send(r.toString()).catch(f=>{this.logTransportError(f,"Failed to send initial outgoing request.")})}dispose(){this.B&&(clearTimeout(this.B),this.B=void 0),this.D&&(clearTimeout(this.D),this.D=void 0),this.M&&(clearTimeout(this.M),this.M=void 0),super.dispose()}get kind(){return"ict"}ackResponse(r){const i=r.toTag;if(!i)throw new Error("To tag undefined.");const l="z9hG4bK"+Math.floor(Math.random()*1e7);r.setViaHeader(l,this.transport.protocol),this.ackRetransmissionCache.set(i,r),this.send(r.toString()).catch(f=>{this.logTransportError(f,"Failed to send ACK to 2xx response.")})}receiveResponse(r){const i=r.statusCode;if(!i||i<100||i>699)throw new Error(`Invalid status code ${i}`);switch(this.state){case pe.Calling:if(i>=100&&i<=199){this.stateTransition(pe.Proceeding),this.user.receiveResponse&&this.user.receiveResponse(r);return}if(i>=200&&i<=299){this.ackRetransmissionCache.set(r.toTag,void 0),this.stateTransition(pe.Accepted),this.user.receiveResponse&&this.user.receiveResponse(r);return}if(i>=300&&i<=699){this.stateTransition(pe.Completed),this.ack(r),this.user.receiveResponse&&this.user.receiveResponse(r);return}break;case pe.Proceeding:if(i>=100&&i<=199){this.user.receiveResponse&&this.user.receiveResponse(r);return}if(i>=200&&i<=299){this.ackRetransmissionCache.set(r.toTag,void 0),this.stateTransition(pe.Accepted),this.user.receiveResponse&&this.user.receiveResponse(r);return}if(i>=300&&i<=699){this.stateTransition(pe.Completed),this.ack(r),this.user.receiveResponse&&this.user.receiveResponse(r);return}break;case pe.Accepted:if(i>=200&&i<=299){if(!this.ackRetransmissionCache.has(r.toTag)){this.ackRetransmissionCache.set(r.toTag,void 0),this.user.receiveResponse&&this.user.receiveResponse(r);return}const f=this.ackRetransmissionCache.get(r.toTag);if(f){this.send(f.toString()).catch(p=>{this.logTransportError(p,"Failed to send retransmission of ACK to 2xx response.")});return}return}break;case pe.Completed:if(i>=300&&i<=699){this.ack(r);return}break;case pe.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const l=`Received unexpected ${i} response while in state ${this.state}.`;this.logger.warn(l)}onTransportError(r){this.user.onTransportError&&this.user.onTransportError(r),this.stateTransition(pe.Terminated,!0)}typeToString(){return"INVITE client transaction"}ack(r){const i=this.request.ruri,l=this.request.callId,f=this.request.cseq,p=this.request.getHeader("from"),v=r.getHeader("to"),S=this.request.getHeader("via"),b=this.request.getHeader("route");if(!p)throw new Error("From undefined.");if(!v)throw new Error("To undefined.");if(!S)throw new Error("Via undefined.");let C=`ACK ${i} SIP/2.0\r
|
|
393
|
+
`;b&&(C+=`Route: ${b}\r
|
|
394
394
|
`),C+=`Via: ${S}\r
|
|
395
395
|
`,C+=`To: ${v}\r
|
|
396
396
|
`,C+=`From: ${p}\r
|
|
@@ -399,7 +399,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
399
399
|
`,C+=`Max-Forwards: 70\r
|
|
400
400
|
`,C+=`Content-Length: 0\r
|
|
401
401
|
\r
|
|
402
|
-
`,this.send(C).catch(b=>{this.logTransportError(b,"Failed to send ACK to non-2xx response.")})}stateTransition(r,i=!1){const l=()=>{throw new Error(`Invalid state transition from ${this.state} to ${r}`)};switch(r){case pe.Calling:l();break;case pe.Proceeding:this.state!==pe.Calling&&l();break;case pe.Accepted:case pe.Completed:this.state!==pe.Calling&&this.state!==pe.Proceeding&&l();break;case pe.Terminated:this.state!==pe.Calling&&this.state!==pe.Accepted&&this.state!==pe.Completed&&(i||l());break;default:l()}this.B&&(clearTimeout(this.B),this.B=void 0),pe.Proceeding,r===pe.Completed&&(this.D=setTimeout(()=>this.timerD(),oi.TIMER_D)),r===pe.Accepted&&(this.M=setTimeout(()=>this.timerM(),oi.TIMER_M)),r===pe.Terminated&&this.dispose(),this.setState(r)}timerA(){}timerB(){this.logger.debug(`Timer B expired for INVITE client transaction ${this.id}.`),this.state===pe.Calling&&(this.onRequestTimeout(),this.stateTransition(pe.Terminated))}timerD(){this.logger.debug(`Timer D expired for INVITE client transaction ${this.id}.`),this.state===pe.Completed&&this.stateTransition(pe.Terminated)}timerM(){this.logger.debug(`Timer M expired for INVITE client transaction ${this.id}.`),this.state===pe.Accepted&&this.stateTransition(pe.Terminated)}}class Bi{constructor(r,i,l,f){this.transactionConstructor=r,this.core=i,this.message=l,this.delegate=f,this.challenged=!1,this.stale=!1,this.logger=this.loggerFactory.getLogger("sip.user-agent-client"),this.init()}dispose(){this.transaction.dispose()}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}cancel(r,i={}){if(!this.transaction)throw new Error("Transaction undefined.");if(!this.message.to)throw new Error("To undefined.");if(!this.message.from)throw new Error("From undefined.");const l=this.core.makeOutgoingRequestMessage(tt.CANCEL,this.message.ruri,this.message.from.uri,this.message.to.uri,{toTag:this.message.toTag,fromTag:this.message.fromTag,callId:this.message.callId,cseq:this.message.cseq},i.extraHeaders);return l.branch=this.message.branch,this.message.headers.Route&&(l.headers.Route=this.message.headers.Route),r&&l.setHeader("Reason",r),this.transaction.state===pe.Proceeding?new Bi(Pa,this.core,l):this.transaction.addStateChangeListener(()=>{this.transaction&&this.transaction.state===pe.Proceeding&&new Bi(Pa,this.core,l)},{once:!0}),l}authenticationGuard(r,i){const l=r.statusCode;if(!l)throw new Error("Response status code undefined.");if(l!==401&&l!==407)return!0;let f,p;if(l===401?(f=r.parseHeader("www-authenticate"),p="authorization"):(f=r.parseHeader("proxy-authenticate"),p="proxy-authorization"),!f)return this.logger.warn(l+" with wrong or missing challenge, cannot authenticate"),!0;if(this.challenged&&(this.stale||f.stale!==!0))return this.logger.warn(l+" apparently in authentication loop, cannot authenticate"),!0;if(!this.credentials&&(this.credentials=this.core.configuration.authenticationFactory(),!this.credentials))return this.logger.warn("Unable to obtain credentials, cannot authenticate"),!0;if(!this.credentials.authenticate(this.message,f))return!0;this.challenged=!0,f.stale&&(this.stale=!0);let v=this.message.cseq+=1;return i&&i.localSequenceNumber&&(i.incrementLocalSequenceNumber(),v=this.message.cseq=i.localSequenceNumber),this.message.setHeader("cseq",v+" "+this.message.method),this.message.setHeader(p,this.credentials.toString()),this.init(),!1}onRequestTimeout(){this.logger.warn("User agent client request timed out. Generating internal 408 Request Timeout.");const r=new vu;r.statusCode=408,r.reasonPhrase="Request Timeout",this.receiveResponse(r)}onTransportError(r){this.logger.error(r.message),this.logger.error("User agent client request transport error. Generating internal 503 Service Unavailable.");const i=new vu;i.statusCode=503,i.reasonPhrase="Service Unavailable",this.receiveResponse(i)}receiveResponse(r){if(!this.authenticationGuard(r))return;const i=r.statusCode?r.statusCode.toString():"";if(!i)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(i):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:r});break;case/^1[0-9]{2}$/.test(i):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:r});break;case/^2[0-9]{2}$/.test(i):this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:r});break;case/^3[0-9]{2}$/.test(i):this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:r});break;case/^[4-6][0-9]{2}$/.test(i):this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:r});break;default:throw new Error(`Invalid status code ${i}`)}}init(){const r={loggerFactory:this.loggerFactory,onRequestTimeout:()=>this.onRequestTimeout(),onStateChange:f=>{f===pe.Terminated&&(this.core.userAgentClients.delete(l),i===this._transaction&&this.dispose())},onTransportError:f=>this.onTransportError(f),receiveResponse:f=>this.receiveResponse(f)},i=new this.transactionConstructor(this.message,this.core.transport,r);this._transaction=i;const l=i.id+i.request.method;this.core.userAgentClients.set(l,this)}}class JR extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.BYE,l);super(Pa,r.userAgentCore,f,i),r.dispose()}}class La extends QS{constructor(r,i,l){super(r,i,l,pe.Trying,"sip.transaction.nist")}dispose(){this.J&&(clearTimeout(this.J),this.J=void 0),super.dispose()}get kind(){return"nist"}receiveRequest(r){switch(this.state){case pe.Trying:break;case pe.Proceeding:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(i=>{this.logTransportError(i,"Failed to send retransmission of provisional response.")});break;case pe.Completed:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(i=>{this.logTransportError(i,"Failed to send retransmission of final response.")});break;case pe.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}}receiveResponse(r,i){if(r<100||r>699)throw new Error(`Invalid status code ${r}`);if(r>100&&r<=199)throw new Error("Provisional response other than 100 not allowed.");switch(this.state){case pe.Trying:if(this.lastResponse=i,r>=100&&r<200){this.stateTransition(pe.Proceeding),this.send(i).catch(f=>{this.logTransportError(f,"Failed to send provisional response.")});return}if(r>=200&&r<=699){this.stateTransition(pe.Completed),this.send(i).catch(f=>{this.logTransportError(f,"Failed to send final response.")});return}break;case pe.Proceeding:if(this.lastResponse=i,r>=200&&r<=699){this.stateTransition(pe.Completed),this.send(i).catch(f=>{this.logTransportError(f,"Failed to send final response.")});return}break;case pe.Completed:return;case pe.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const l=`Non-INVITE server transaction received unexpected ${r} response from TU while in state ${this.state}.`;throw this.logger.error(l),new Error(l)}onTransportError(r){this.user.onTransportError&&this.user.onTransportError(r),this.stateTransition(pe.Terminated,!0)}typeToString(){return"non-INVITE server transaction"}stateTransition(r,i=!1){const l=()=>{throw new Error(`Invalid state transition from ${this.state} to ${r}`)};switch(r){case pe.Trying:l();break;case pe.Proceeding:this.state!==pe.Trying&&l();break;case pe.Completed:this.state!==pe.Trying&&this.state!==pe.Proceeding&&l();break;case pe.Terminated:this.state!==pe.Proceeding&&this.state!==pe.Completed&&(i||l());break;default:l()}r===pe.Completed&&(this.J=setTimeout(()=>this.timerJ(),oi.TIMER_J)),r===pe.Terminated&&this.dispose(),this.setState(r)}timerJ(){this.logger.debug(`Timer J expired for NON-INVITE server transaction ${this.id}.`),this.state===pe.Completed&&this.stateTransition(pe.Terminated)}}class So{constructor(r,i,l,f){this.transactionConstructor=r,this.core=i,this.message=l,this.delegate=f,this.logger=this.loggerFactory.getLogger("sip.user-agent-server"),this.toTag=l.toTag?l.toTag:wv(),this.init()}dispose(){this.transaction.dispose()}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}accept(r={statusCode:200}){if(!this.acceptable)throw new gu(`${this.message.method} not acceptable in state ${this.transaction.state}.`);const i=r.statusCode;if(i<200||i>299)throw new TypeError(`Invalid statusCode: ${i}`);return this.reply(r)}progress(r={statusCode:180}){if(!this.progressable)throw new gu(`${this.message.method} not progressable in state ${this.transaction.state}.`);const i=r.statusCode;if(i<101||i>199)throw new TypeError(`Invalid statusCode: ${i}`);return this.reply(r)}redirect(r,i={statusCode:302}){if(!this.redirectable)throw new gu(`${this.message.method} not redirectable in state ${this.transaction.state}.`);const l=i.statusCode;if(l<300||l>399)throw new TypeError(`Invalid statusCode: ${l}`);const f=new Array;return r.forEach(v=>f.push(`Contact: ${v.toString()}`)),i.extraHeaders=(i.extraHeaders||[]).concat(f),this.reply(i)}reject(r={statusCode:480}){if(!this.rejectable)throw new gu(`${this.message.method} not rejectable in state ${this.transaction.state}.`);const i=r.statusCode;if(i<400||i>699)throw new TypeError(`Invalid statusCode: ${i}`);return this.reply(r)}trying(r){if(!this.tryingable)throw new gu(`${this.message.method} not tryingable in state ${this.transaction.state}.`);return this.reply({statusCode:100})}receiveCancel(r){this.delegate&&this.delegate.onCancel&&this.delegate.onCancel(r)}get acceptable(){if(this.transaction instanceof ya)return this.transaction.state===pe.Proceeding||this.transaction.state===pe.Accepted;if(this.transaction instanceof La)return this.transaction.state===pe.Trying||this.transaction.state===pe.Proceeding;throw new Error("Unknown transaction type.")}get progressable(){if(this.transaction instanceof ya)return this.transaction.state===pe.Proceeding;if(this.transaction instanceof La)return!1;throw new Error("Unknown transaction type.")}get redirectable(){if(this.transaction instanceof ya)return this.transaction.state===pe.Proceeding;if(this.transaction instanceof La)return this.transaction.state===pe.Trying||this.transaction.state===pe.Proceeding;throw new Error("Unknown transaction type.")}get rejectable(){if(this.transaction instanceof ya)return this.transaction.state===pe.Proceeding;if(this.transaction instanceof La)return this.transaction.state===pe.Trying||this.transaction.state===pe.Proceeding;throw new Error("Unknown transaction type.")}get tryingable(){if(this.transaction instanceof ya)return this.transaction.state===pe.Proceeding;if(this.transaction instanceof La)return this.transaction.state===pe.Trying;throw new Error("Unknown transaction type.")}reply(r){!r.toTag&&r.statusCode!==100&&(r.toTag=this.toTag),r.userAgent=r.userAgent||this.core.configuration.userAgentHeaderFieldValue,r.supported=r.supported||this.core.configuration.supportedOptionTagsResponse;const i=GS(this.message,r);return this.transaction.receiveResponse(r.statusCode,i.message),i}init(){const r={loggerFactory:this.loggerFactory,onStateChange:f=>{f===pe.Terminated&&(this.core.userAgentServers.delete(l),this.dispose())},onTransportError:f=>{this.logger.error(f.message),this.delegate&&this.delegate.onTransportError?this.delegate.onTransportError(f):this.logger.error("User agent server response transport error.")}},i=new this.transactionConstructor(this.message,this.core.transport,r);this._transaction=i;const l=i.id;this.core.userAgentServers.set(i.id,this)}}class e8 extends So{constructor(r,i,l){super(La,r.userAgentCore,i,l)}}class t8 extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.INFO,l);super(Pa,r.userAgentCore,f,i)}}class r8 extends So{constructor(r,i,l){super(La,r.userAgentCore,i,l)}}class ZS extends Bi{constructor(r,i,l){super(Pa,r,i,l)}}class XS extends So{constructor(r,i,l){super(La,r,i,l)}}class n8 extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.NOTIFY,l);super(Pa,r.userAgentCore,f,i)}}function i8(o){return o.userAgentCore!==void 0}class Tv extends So{constructor(r,i,l){const f=i8(r)?r.userAgentCore:r;super(La,f,i,l)}}class a8 extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.PRACK,l);super(Pa,r.userAgentCore,f,i),r.signalingStateTransition(f)}}class s8 extends So{constructor(r,i,l){super(La,r.userAgentCore,i,l),r.signalingStateTransition(i),this.dialog=r}accept(r={statusCode:200}){return r.body&&this.dialog.signalingStateTransition(r.body),super.accept(r)}}class o8 extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.INVITE,l);super(xu,r.userAgentCore,f,i),this.delegate=i,r.signalingStateTransition(f),r.reinviteUserAgentClient=this,this.dialog=r}receiveResponse(r){if(!this.authenticationGuard(r,this.dialog))return;const i=r.statusCode?r.statusCode.toString():"";if(!i)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(i):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:r});break;case/^1[0-9]{2}$/.test(i):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:r,session:this.dialog,prack:l=>{throw new Error("Unimplemented.")}});break;case/^2[0-9]{2}$/.test(i):this.dialog.signalingStateTransition(r),this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:r,session:this.dialog,ack:l=>this.dialog.ack(l)});break;case/^3[0-9]{2}$/.test(i):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:r});break;case/^[4-6][0-9]{2}$/.test(i):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:r});break;default:throw new Error(`Invalid status code ${i}`)}}}class l8 extends So{constructor(r,i,l){super(ya,r.userAgentCore,i,l),r.reinviteUserAgentServer=this,this.dialog=r}accept(r={statusCode:200}){r.extraHeaders=r.extraHeaders||[],r.extraHeaders=r.extraHeaders.concat(this.dialog.routeSet.map(p=>`Record-Route: ${p}`));const i=super.accept(r),l=this.dialog,f=Object.assign(Object.assign({},i),{session:l});return r.body&&this.dialog.signalingStateTransition(r.body),this.dialog.reConfirm(),f}progress(r={statusCode:180}){const i=super.progress(r),l=this.dialog,f=Object.assign(Object.assign({},i),{session:l});return r.body&&this.dialog.signalingStateTransition(r.body),f}redirect(r,i={statusCode:302}){throw this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,new Error("Unimplemented.")}reject(r={statusCode:488}){return this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,super.reject(r)}}class u8 extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.REFER,l);super(Pa,r.userAgentCore,f,i)}}function c8(o){return o.userAgentCore!==void 0}class JS extends So{constructor(r,i,l){const f=c8(r)?r.userAgentCore:r;super(La,f,i,l)}}class Rv extends Zf{constructor(r,i,l,f){super(i,l),this.initialTransaction=r,this._signalingState=Ye.Initial,this.ackWait=!1,this.ackProcessing=!1,this.delegate=f,r instanceof ya&&(this.ackWait=!0),this.early||this.start2xxRetransmissionTimer(),this.signalingStateTransition(r.request),this.logger=i.loggerFactory.getLogger("sip.invite-dialog"),this.logger.log(`INVITE dialog ${this.id} constructed`)}dispose(){super.dispose(),this._signalingState=Ye.Closed,this._offer=void 0,this._answer=void 0,this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.logger.log(`INVITE dialog ${this.id} destroyed`)}get sessionState(){return this.early?as.Early:this.ackWait?as.AckWait:this._signalingState===Ye.Closed?as.Terminated:as.Confirmed}get signalingState(){return this._signalingState}get offer(){return this._offer}get answer(){return this._answer}confirm(){this.early&&this.start2xxRetransmissionTimer(),super.confirm()}reConfirm(){this.reinviteUserAgentServer&&this.startReInvite2xxRetransmissionTimer()}ack(r={}){this.logger.log(`INVITE dialog ${this.id} sending ACK request`);let i;if(this.reinviteUserAgentClient){if(!(this.reinviteUserAgentClient.transaction instanceof xu))throw new Error("Transaction not instance of InviteClientTransaction.");i=this.reinviteUserAgentClient.transaction,this.reinviteUserAgentClient=void 0}else{if(!(this.initialTransaction instanceof xu))throw new Error("Initial transaction not instance of InviteClientTransaction.");i=this.initialTransaction}const l=this.createOutgoingRequestMessage(tt.ACK,{cseq:i.request.cseq,extraHeaders:r.extraHeaders,body:r.body});return i.ackResponse(l),this.signalingStateTransition(l),{message:l}}bye(r,i){if(this.logger.log(`INVITE dialog ${this.id} sending BYE request`),this.initialTransaction instanceof ya){if(this.early)throw new Error("UAS MUST NOT send a BYE on early dialogs.");if(this.ackWait&&this.initialTransaction.state!==pe.Terminated)throw new Error("UAS MUST NOT send a BYE on a confirmed dialog until it has received an ACK for its 2xx response or until the server transaction times out.")}return new JR(this,r,i)}info(r,i){if(this.logger.log(`INVITE dialog ${this.id} sending INFO request`),this.early)throw new Error("Dialog not confirmed.");return new t8(this,r,i)}invite(r,i){if(this.logger.log(`INVITE dialog ${this.id} sending INVITE request`),this.early)throw new Error("Dialog not confirmed.");if(this.reinviteUserAgentClient)throw new Error("There is an ongoing re-INVITE client transaction.");if(this.reinviteUserAgentServer)throw new Error("There is an ongoing re-INVITE server transaction.");return new o8(this,r,i)}message(r,i){if(this.logger.log(`INVITE dialog ${this.id} sending MESSAGE request`),this.early)throw new Error("Dialog not confirmed.");const l=this.createOutgoingRequestMessage(tt.MESSAGE,i);return new ZS(this.core,l,r)}notify(r,i){if(this.logger.log(`INVITE dialog ${this.id} sending NOTIFY request`),this.early)throw new Error("Dialog not confirmed.");return new n8(this,r,i)}prack(r,i){return this.logger.log(`INVITE dialog ${this.id} sending PRACK request`),new a8(this,r,i)}refer(r,i){if(this.logger.log(`INVITE dialog ${this.id} sending REFER request`),this.early)throw new Error("Dialog not confirmed.");return new u8(this,r,i)}receiveRequest(r){if(this.logger.log(`INVITE dialog ${this.id} received ${r.method} request`),r.method===tt.ACK){if(this.ackWait){if(this.initialTransaction instanceof xu){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${r.method} request, dropping.`);return}if(this.initialTransaction.request.cseq!==r.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${r.method} request, dropping.`);return}this.ackWait=!1}else{if(!this.reinviteUserAgentServer){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${r.method} request, dropping.`);return}if(this.reinviteUserAgentServer.transaction.request.cseq!==r.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${r.method} request, dropping.`);return}this.reinviteUserAgentServer=void 0}if(this.signalingStateTransition(r),this.delegate&&this.delegate.onAck){const i=this.delegate.onAck({message:r});i instanceof Promise&&(this.ackProcessing=!0,i.then(()=>this.ackProcessing=!1).catch(()=>this.ackProcessing=!1))}return}if(!this.sequenceGuard(r)){this.logger.log(`INVITE dialog ${this.id} rejected out of order ${r.method} request.`);return}if(super.receiveRequest(r),r.method===tt.INVITE){const i=()=>{const p=this.ackWait?"waiting for initial ACK":"processing initial ACK";this.logger.warn(`INVITE dialog ${this.id} received re-INVITE while ${p}`);let v="RFC 5407 suggests the following to avoid this race condition... ";v+=" Note: Implementation issues are outside the scope of this document,",v+=" but the following tip is provided for avoiding race conditions of",v+=" this type. The caller can delay sending re-INVITE F6 for some period",v+=" of time (2 seconds, perhaps), after which the caller can reasonably",v+=" assume that its ACK has been received. Implementors can decouple the",v+=" actions of the user (e.g., pressing the hold button) from the actions",v+=" of the protocol (the sending of re-INVITE F6), so that the UA can",v+=" behave like this. In this case, it is the implementor's choice as to",v+=" how long to wait. In most cases, such an implementation may be",v+=" useful to prevent the type of race condition shown in this section.",v+=" This document expresses no preference about whether or not they",v+=" should wait for an ACK to be delivered. After considering the impact",v+=" on user experience, implementors should decide whether or not to wait",v+=" for a while, because the user experience depends on the",v+=" implementation and has no direct bearing on protocol behavior.",this.logger.warn(v)},f=[`Retry-After: ${Math.floor(Math.random()*10)+1}`];if(this.ackProcessing){this.core.replyStateless(r,{statusCode:500,extraHeaders:f}),i();return}if(this.ackWait&&this.signalingState!==Ye.Stable){this.core.replyStateless(r,{statusCode:500,extraHeaders:f}),i();return}if(this.reinviteUserAgentServer){this.core.replyStateless(r,{statusCode:500,extraHeaders:f});return}if(this.reinviteUserAgentClient){this.core.replyStateless(r,{statusCode:491});return}}if(r.method===tt.INVITE){const i=r.parseHeader("contact");if(!i)throw new Error("Contact undefined.");if(!(i instanceof ma))throw new Error("Contact not instance of NameAddrHeader.");this.dialogState.remoteTarget=i.uri}switch(r.method){case tt.BYE:{const i=new e8(this,r);this.delegate&&this.delegate.onBye?this.delegate.onBye(i):i.accept(),this.dispose()}break;case tt.INFO:{const i=new r8(this,r);this.delegate&&this.delegate.onInfo?this.delegate.onInfo(i):i.reject({statusCode:469,extraHeaders:["Recv-Info:"]})}break;case tt.INVITE:{const i=new l8(this,r);this.signalingStateTransition(r),this.delegate&&this.delegate.onInvite?this.delegate.onInvite(i):i.reject({statusCode:488})}break;case tt.MESSAGE:{const i=new XS(this.core,r);this.delegate&&this.delegate.onMessage?this.delegate.onMessage(i):i.accept()}break;case tt.NOTIFY:{const i=new Tv(this,r);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(i):i.accept()}break;case tt.PRACK:{const i=new s8(this,r);this.delegate&&this.delegate.onPrack?this.delegate.onPrack(i):i.accept()}break;case tt.REFER:{const i=new JS(this,r);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(i):i.reject()}break;default:this.logger.log(`INVITE dialog ${this.id} received unimplemented ${r.method} request`),this.core.replyStateless(r,{statusCode:501});break}}reliableSequenceGuard(r){const i=r.statusCode;if(!i)throw new Error("Status code undefined");if(i>100&&i<200){const l=r.getHeader("require"),f=r.getHeader("rseq"),p=l&&l.includes("100rel")&&f?Number(f):void 0;if(p){if(this.rseq&&this.rseq+1!==p)return!1;this.rseq=this.rseq?this.rseq+1:p}}return!0}signalingStateRollback(){(this._signalingState===Ye.HaveLocalOffer||this.signalingState===Ye.HaveRemoteOffer)&&this._rollbackOffer&&this._rollbackAnswer&&(this._signalingState=Ye.Stable,this._offer=this._rollbackOffer,this._answer=this._rollbackAnswer)}signalingStateTransition(r){const i=e0(r);if(!(!i||i.contentDisposition!=="session")){if(this._signalingState===Ye.Stable&&(this._rollbackOffer=this._offer,this._rollbackAnswer=this._answer),r instanceof Qf)switch(this._signalingState){case Ye.Initial:case Ye.Stable:this._signalingState=Ye.HaveRemoteOffer,this._offer=i,this._answer=void 0;break;case Ye.HaveLocalOffer:this._signalingState=Ye.Stable,this._answer=i;break;case Ye.HaveRemoteOffer:break;case Ye.Closed:break;default:throw new Error("Unexpected signaling state.")}if(r instanceof vu)switch(this._signalingState){case Ye.Initial:case Ye.Stable:this._signalingState=Ye.HaveRemoteOffer,this._offer=i,this._answer=void 0;break;case Ye.HaveLocalOffer:this._signalingState=Ye.Stable,this._answer=i;break;case Ye.HaveRemoteOffer:break;case Ye.Closed:break;default:throw new Error("Unexpected signaling state.")}if(r instanceof Dc)switch(this._signalingState){case Ye.Initial:case Ye.Stable:this._signalingState=Ye.HaveLocalOffer,this._offer=i,this._answer=void 0;break;case Ye.HaveLocalOffer:break;case Ye.HaveRemoteOffer:this._signalingState=Ye.Stable,this._answer=i;break;case Ye.Closed:break;default:throw new Error("Unexpected signaling state.")}if(zS(r))switch(this._signalingState){case Ye.Initial:case Ye.Stable:this._signalingState=Ye.HaveLocalOffer,this._offer=i,this._answer=void 0;break;case Ye.HaveLocalOffer:break;case Ye.HaveRemoteOffer:this._signalingState=Ye.Stable,this._answer=i;break;case Ye.Closed:break;default:throw new Error("Unexpected signaling state.")}}}start2xxRetransmissionTimer(){if(this.initialTransaction instanceof ya){const r=this.initialTransaction;let i=oi.T1;const l=()=>{if(!this.ackWait){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),r.retransmitAcceptedResponse(),i=Math.min(i*2,oi.T2),this.invite2xxTimer=setTimeout(l,i)};this.invite2xxTimer=setTimeout(l,i);const f=()=>{r.state===pe.Terminated&&(r.removeStateChangeListener(f),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.ackWait&&(this.delegate&&this.delegate.onAckTimeout?this.delegate.onAckTimeout():this.bye()))};r.addStateChangeListener(f)}}startReInvite2xxRetransmissionTimer(){if(this.reinviteUserAgentServer&&this.reinviteUserAgentServer.transaction instanceof ya){const r=this.reinviteUserAgentServer.transaction;let i=oi.T1;const l=()=>{if(!this.reinviteUserAgentServer){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),r.retransmitAcceptedResponse(),i=Math.min(i*2,oi.T2),this.invite2xxTimer=setTimeout(l,i)};this.invite2xxTimer=setTimeout(l,i);const f=()=>{r.state===pe.Terminated&&(r.removeStateChangeListener(f),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.reinviteUserAgentServer)};r.addStateChangeListener(f)}}}class f8 extends Bi{constructor(r,i,l){super(xu,r,i,l),this.confirmedDialogAcks=new Map,this.confirmedDialogs=new Map,this.earlyDialogs=new Map,this.delegate=l}dispose(){this.earlyDialogs.forEach(r=>r.dispose()),this.earlyDialogs.clear(),super.dispose()}onTransportError(r){if(this.transaction.state===pe.Calling)return super.onTransportError(r);this.logger.error(r.message),this.logger.error("User agent client request transport error while sending ACK.")}receiveResponse(r){if(!this.authenticationGuard(r))return;const i=r.statusCode?r.statusCode.toString():"";if(!i)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(i):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:r});return;case/^1[0-9]{2}$/.test(i):{if(!r.toTag){this.logger.warn("Non-100 1xx INVITE response received without a to tag, dropping.");return}if(!r.parseHeader("contact")){this.logger.error("Non-100 1xx INVITE response received without a Contact header field, dropping.");return}const f=Zf.initialDialogStateForUserAgentClient(this.message,r);let p=this.earlyDialogs.get(f.id);if(!p){const S=this.transaction;if(!(S instanceof xu))throw new Error("Transaction not instance of InviteClientTransaction.");p=new Rv(S,this.core,f),this.earlyDialogs.set(p.id,p)}if(!p.reliableSequenceGuard(r)){this.logger.warn("1xx INVITE reliable response received out of order or is a retransmission, dropping.");return}(p.signalingState===Ye.Initial||p.signalingState===Ye.HaveLocalOffer)&&p.signalingStateTransition(r);const v=p;this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:r,session:v,prack:S=>v.prack(void 0,S)})}return;case/^2[0-9]{2}$/.test(i):{if(!r.toTag){this.logger.error("2xx INVITE response received without a to tag, dropping.");return}if(!r.parseHeader("contact")){this.logger.error("2xx INVITE response received without a Contact header field, dropping.");return}const f=Zf.initialDialogStateForUserAgentClient(this.message,r);let p=this.confirmedDialogs.get(f.id);if(p){const S=this.confirmedDialogAcks.get(f.id);if(S){const w=this.transaction;if(!(w instanceof xu))throw new Error("Client transaction not instance of InviteClientTransaction.");w.ackResponse(S.message)}return}if(p=this.earlyDialogs.get(f.id),p)p.confirm(),p.recomputeRouteSet(r),this.earlyDialogs.delete(p.id),this.confirmedDialogs.set(p.id,p);else{const S=this.transaction;if(!(S instanceof xu))throw new Error("Transaction not instance of InviteClientTransaction.");p=new Rv(S,this.core,f),this.confirmedDialogs.set(p.id,p)}(p.signalingState===Ye.Initial||p.signalingState===Ye.HaveLocalOffer)&&p.signalingStateTransition(r);const v=p;if(this.delegate&&this.delegate.onAccept)this.delegate.onAccept({message:r,session:v,ack:S=>{const w=v.ack(S);return this.confirmedDialogAcks.set(v.id,w),w}});else{const S=v.ack();this.confirmedDialogAcks.set(v.id,S)}}return;case/^3[0-9]{2}$/.test(i):this.earlyDialogs.forEach(l=>l.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:r});return;case/^[4-6][0-9]{2}$/.test(i):this.earlyDialogs.forEach(l=>l.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:r});return;default:throw new Error(`Invalid status code ${i}`)}}}class Ux extends So{constructor(r,i,l){super(ya,r,i,l),this.core=r}dispose(){this.earlyDialog&&this.earlyDialog.dispose(),super.dispose()}accept(r={statusCode:200}){if(!this.acceptable)throw new gu(`${this.message.method} not acceptable in state ${this.transaction.state}.`);if(!this.confirmedDialog)if(this.earlyDialog)this.earlyDialog.confirm(),this.confirmedDialog=this.earlyDialog,this.earlyDialog=void 0;else{const w=this.transaction;if(!(w instanceof ya))throw new Error("Transaction not instance of InviteClientTransaction.");const C=Zf.initialDialogStateForUserAgentServer(this.message,this.toTag);this.confirmedDialog=new Rv(w,this.core,C)}const i=this.message.getHeaders("record-route").map(w=>`Record-Route: ${w}`),l=`Contact: ${this.core.configuration.contact.toString()}`,f="Allow: "+mu.toString();if(!r.body){if(this.confirmedDialog.signalingState===Ye.Stable)r.body=this.confirmedDialog.answer;else if(this.confirmedDialog.signalingState===Ye.Initial||this.confirmedDialog.signalingState===Ye.HaveRemoteOffer)throw new Error("Response must have a body.")}r.statusCode=r.statusCode||200,r.extraHeaders=r.extraHeaders||[],r.extraHeaders=r.extraHeaders.concat(i),r.extraHeaders.push(f),r.extraHeaders.push(l);const p=super.accept(r),v=this.confirmedDialog,S=Object.assign(Object.assign({},p),{session:v});return r.body&&this.confirmedDialog.signalingState!==Ye.Stable&&this.confirmedDialog.signalingStateTransition(r.body),S}progress(r={statusCode:180}){if(!this.progressable)throw new gu(`${this.message.method} not progressable in state ${this.transaction.state}.`);if(!this.earlyDialog){const S=this.transaction;if(!(S instanceof ya))throw new Error("Transaction not instance of InviteClientTransaction.");const w=Zf.initialDialogStateForUserAgentServer(this.message,this.toTag,!0);this.earlyDialog=new Rv(S,this.core,w)}const i=this.message.getHeaders("record-route").map(S=>`Record-Route: ${S}`),l=`Contact: ${this.core.configuration.contact}`;r.extraHeaders=r.extraHeaders||[],r.extraHeaders=r.extraHeaders.concat(i),r.extraHeaders.push(l);const f=super.progress(r),p=this.earlyDialog,v=Object.assign(Object.assign({},f),{session:p});return r.body&&this.earlyDialog.signalingState!==Ye.Stable&&this.earlyDialog.signalingStateTransition(r.body),v}redirect(r,i={statusCode:302}){return super.redirect(r,i)}reject(r={statusCode:486}){return super.reject(r)}}class d8 extends Bi{constructor(r,i,l){super(Pa,r,i,l)}}class h8 extends Bi{constructor(r,i,l){super(Pa,r,i,l)}}class p8 extends So{constructor(r,i,l){super(La,r,i,l),this.core=r}}class v8 extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.SUBSCRIBE,l);super(Pa,r.userAgentCore,f,i),this.dialog=r}waitNotifyStop(){}receiveResponse(r){if(r.statusCode&&r.statusCode>=200&&r.statusCode<300){const i=r.getHeader("Expires");if(!i)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else{const l=Number(i);this.dialog.subscriptionExpires>l&&(this.dialog.subscriptionExpires=l)}}r.statusCode&&r.statusCode>=400&&r.statusCode<700&&[404,405,410,416,480,481,482,483,484,485,489,501,604].includes(r.statusCode)&&this.dialog.terminate(),super.receiveResponse(r)}}class ew extends Zf{constructor(r,i,l,f,p,v){super(f,p),this.delegate=v,this._autoRefresh=!1,this._subscriptionEvent=r,this._subscriptionExpires=i,this._subscriptionExpiresInitial=i,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this._subscriptionState=l,this.logger=f.loggerFactory.getLogger("sip.subscribe-dialog"),this.logger.log(`SUBSCRIBE dialog ${this.id} constructed`)}static initialDialogStateForSubscription(r,i){const f=i.getHeaders("record-route"),p=i.parseHeader("contact");if(!p)throw new Error("Contact undefined.");if(!(p instanceof ma))throw new Error("Contact not instance of NameAddrHeader.");const v=p.uri,S=r.cseq,w=void 0,C=r.callId,b=r.fromTag,R=i.fromTag;if(!C)throw new Error("Call id undefined.");if(!b)throw new Error("From tag undefined.");if(!R)throw new Error("To tag undefined.");if(!r.from)throw new Error("From undefined.");if(!r.to)throw new Error("To undefined.");const T=r.from.uri,H=r.to.uri;return{id:C+b+R,early:!1,callId:C,localTag:b,remoteTag:R,localSequenceNumber:S,remoteSequenceNumber:w,localURI:T,remoteURI:H,remoteTarget:v,routeSet:f,secure:!1}}dispose(){super.dispose(),this.N&&(clearTimeout(this.N),this.N=void 0),this.refreshTimerClear(),this.logger.log(`SUBSCRIBE dialog ${this.id} destroyed`)}get autoRefresh(){return this._autoRefresh}set autoRefresh(r){this._autoRefresh=!0,this.refreshTimerSet()}get subscriptionEvent(){return this._subscriptionEvent}get subscriptionExpires(){const r=Math.floor(Date.now()/1e3)-this._subscriptionExpiresLastSet,i=this._subscriptionExpires-r;return Math.max(i,0)}set subscriptionExpires(r){if(r<0)throw new Error("Expires must be greater than or equal to zero.");if(this._subscriptionExpires=r,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this.autoRefresh){const i=this.subscriptionRefresh;(i===void 0||i>=r)&&this.refreshTimerSet()}}get subscriptionExpiresInitial(){return this._subscriptionExpiresInitial}get subscriptionRefresh(){if(this._subscriptionRefresh===void 0||this._subscriptionRefreshLastSet===void 0)return;const r=Math.floor(Date.now()/1e3)-this._subscriptionRefreshLastSet,i=this._subscriptionRefresh-r;return Math.max(i,0)}get subscriptionState(){return this._subscriptionState}receiveRequest(r){if(this.logger.log(`SUBSCRIBE dialog ${this.id} received ${r.method} request`),!this.sequenceGuard(r)){this.logger.log(`SUBSCRIBE dialog ${this.id} rejected out of order ${r.method} request.`);return}switch(super.receiveRequest(r),r.method){case tt.NOTIFY:this.onNotify(r);break;default:this.logger.log(`SUBSCRIBE dialog ${this.id} received unimplemented ${r.method} request`),this.core.replyStateless(r,{statusCode:501});break}}refresh(){const r="Allow: "+mu.toString(),i={};return i.extraHeaders=(i.extraHeaders||[]).slice(),i.extraHeaders.push(r),i.extraHeaders.push("Event: "+this.subscriptionEvent),i.extraHeaders.push("Expires: "+this.subscriptionExpiresInitial),i.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,i)}subscribe(r,i={}){var l;if(this.subscriptionState!==vr.Pending&&this.subscriptionState!==vr.Active)throw new Error(`Invalid state ${this.subscriptionState}. May only re-subscribe while in state "pending" or "active".`);this.logger.log(`SUBSCRIBE dialog ${this.id} sending SUBSCRIBE request`);const f=new v8(this,r,i);return this.N&&(clearTimeout(this.N),this.N=void 0),!((l=i.extraHeaders)===null||l===void 0)&&l.includes("Expires: 0")||(this.N=setTimeout(()=>this.timerN(),oi.TIMER_N)),f}terminate(){this.stateTransition(vr.Terminated),this.onTerminated()}unsubscribe(){const r="Allow: "+mu.toString(),i={};return i.extraHeaders=(i.extraHeaders||[]).slice(),i.extraHeaders.push(r),i.extraHeaders.push("Event: "+this.subscriptionEvent),i.extraHeaders.push("Expires: 0"),i.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,i)}onNotify(r){const i=r.parseHeader("Event").event;if(!i||i!==this.subscriptionEvent){this.core.replyStateless(r,{statusCode:489});return}this.N&&(clearTimeout(this.N),this.N=void 0);const l=r.parseHeader("Subscription-State");if(!l||!l.state){this.core.replyStateless(r,{statusCode:489});return}const f=l.state,p=l.expires?Math.max(l.expires,0):void 0;switch(f){case"pending":this.stateTransition(vr.Pending,p);break;case"active":this.stateTransition(vr.Active,p);break;case"terminated":this.stateTransition(vr.Terminated,p);break;default:this.logger.warn("Unrecognized subscription state.");break}const v=new Tv(this,r);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(v):v.accept()}onRefresh(r){this.delegate&&this.delegate.onRefresh&&this.delegate.onRefresh(r)}onTerminated(){this.delegate&&this.delegate.onTerminated&&this.delegate.onTerminated()}refreshTimerClear(){this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=void 0)}refreshTimerSet(){if(this.refreshTimerClear(),this.autoRefresh&&this.subscriptionExpires>0){const r=this.subscriptionExpires*900;this._subscriptionRefresh=Math.floor(r/1e3),this._subscriptionRefreshLastSet=Math.floor(Date.now()/1e3),this.refreshTimer=setTimeout(()=>{this.refreshTimer=void 0,this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this.onRefresh(this.refresh())},r)}}stateTransition(r,i){const l=()=>{this.logger.warn(`Invalid subscription state transition from ${this.subscriptionState} to ${r}`)};switch(r){case vr.Initial:l();return;case vr.NotifyWait:l();return;case vr.Pending:if(this.subscriptionState!==vr.NotifyWait&&this.subscriptionState!==vr.Pending){l();return}break;case vr.Active:if(this.subscriptionState!==vr.NotifyWait&&this.subscriptionState!==vr.Pending&&this.subscriptionState!==vr.Active){l();return}break;case vr.Terminated:if(this.subscriptionState!==vr.NotifyWait&&this.subscriptionState!==vr.Pending&&this.subscriptionState!==vr.Active){l();return}break;default:l();return}r===vr.Pending&&i&&(this.subscriptionExpires=i),r===vr.Active&&i&&(this.subscriptionExpires=i),r===vr.Terminated&&this.dispose(),this._subscriptionState=r}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE dialog. Timed out waiting for NOTIFY."),this.subscriptionState!==vr.Terminated&&(this.stateTransition(vr.Terminated),this.onTerminated())}}class g8 extends Bi{constructor(r,i,l){const f=i.getHeader("Event");if(!f)throw new Error("Event undefined");const p=i.getHeader("Expires");if(!p)throw new Error("Expires undefined");super(Pa,r,i,l),this.delegate=l,this.subscriberId=i.callId+i.fromTag+f,this.subscriptionExpiresRequested=this.subscriptionExpires=Number(p),this.subscriptionEvent=f,this.subscriptionState=vr.NotifyWait,this.waitNotifyStart()}dispose(){super.dispose()}onNotify(r){const i=r.message.parseHeader("Event").event;if(!i||i!==this.subscriptionEvent){this.logger.warn("Failed to parse event."),r.reject({statusCode:489});return}const l=r.message.parseHeader("Subscription-State");if(!l||!l.state){this.logger.warn("Failed to parse subscription state."),r.reject({statusCode:489});return}const f=l.state;switch(f){case"pending":break;case"active":break;case"terminated":break;default:this.logger.warn(`Invalid subscription state ${f}`),r.reject({statusCode:489});return}if(f!=="terminated"&&!r.message.parseHeader("contact")){this.logger.warn("Failed to parse contact."),r.reject({statusCode:489});return}if(this.dialog)throw new Error("Dialog already created. This implementation only supports install of single subscriptions.");switch(this.waitNotifyStop(),this.subscriptionExpires=l.expires?Math.min(this.subscriptionExpires,Math.max(l.expires,0)):this.subscriptionExpires,f){case"pending":this.subscriptionState=vr.Pending;break;case"active":this.subscriptionState=vr.Active;break;case"terminated":this.subscriptionState=vr.Terminated;break;default:throw new Error(`Unrecognized state ${f}.`)}if(this.subscriptionState!==vr.Terminated){const p=ew.initialDialogStateForSubscription(this.message,r.message);this.dialog=new ew(this.subscriptionEvent,this.subscriptionExpires,this.subscriptionState,this.core,p)}if(this.delegate&&this.delegate.onNotify){const p=r,v=this.dialog;this.delegate.onNotify({request:p,subscription:v})}else r.accept()}waitNotifyStart(){this.N||(this.core.subscribers.set(this.subscriberId,this),this.N=setTimeout(()=>this.timerN(),oi.TIMER_N))}waitNotifyStop(){this.N&&(this.core.subscribers.delete(this.subscriberId),clearTimeout(this.N),this.N=void 0)}receiveResponse(r){if(this.authenticationGuard(r)){if(r.statusCode&&r.statusCode>=200&&r.statusCode<300){const i=r.getHeader("Expires");if(!i)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else{const l=Number(i);l>this.subscriptionExpiresRequested&&this.logger.warn("Expires header in a 200-class response to SUBSCRIBE with a higher value than the one in the request"),l<this.subscriptionExpires&&(this.subscriptionExpires=l)}this.dialog&&this.dialog.subscriptionExpires>this.subscriptionExpires&&(this.dialog.subscriptionExpires=this.subscriptionExpires)}r.statusCode&&r.statusCode>=300&&r.statusCode<700&&this.waitNotifyStop(),super.receiveResponse(r)}}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE user agent client. Timed out waiting for NOTIFY."),this.waitNotifyStop(),this.delegate&&this.delegate.onNotifyTimeout&&this.delegate.onNotifyTimeout()}}class m8 extends So{constructor(r,i,l){super(La,r,i,l),this.core=r}}const tw=["application/sdp","application/dtmf-relay"];class y8{constructor(r,i={}){this.userAgentClients=new Map,this.userAgentServers=new Map,this.configuration=r,this.delegate=i,this.dialogs=new Map,this.subscribers=new Map,this.logger=r.loggerFactory.getLogger("sip.user-agent-core")}dispose(){this.reset()}reset(){this.dialogs.forEach(r=>r.dispose()),this.dialogs.clear(),this.subscribers.forEach(r=>r.dispose()),this.subscribers.clear(),this.userAgentClients.forEach(r=>r.dispose()),this.userAgentClients.clear(),this.userAgentServers.forEach(r=>r.dispose()),this.userAgentServers.clear()}get loggerFactory(){return this.configuration.loggerFactory}get transport(){const r=this.configuration.transportAccessor();if(!r)throw new Error("Transport undefined.");return r}invite(r,i){return new f8(this,r,i)}message(r,i){return new ZS(this,r,i)}publish(r,i){return new d8(this,r,i)}register(r,i){return new h8(this,r,i)}subscribe(r,i){return new g8(this,r,i)}request(r,i){return new Bi(Pa,this,r,i)}makeOutgoingRequestMessage(r,i,l,f,p,v,S){const w=this.configuration.sipjsId,C=this.configuration.displayName,b=this.configuration.viaForceRport,R=this.configuration.hackViaTcp,T=this.configuration.supportedOptionTags.slice();r===tt.REGISTER&&T.push("path","gruu"),r===tt.INVITE&&(this.configuration.contact.pubGruu||this.configuration.contact.tempGruu)&&T.push("gruu");const H=this.configuration.routeSet,P=this.configuration.userAgentHeaderFieldValue,j=this.configuration.viaHost,B=Object.assign(Object.assign({},{callIdPrefix:w,forceRport:b,fromDisplayName:C,hackViaTcp:R,optionTags:T,routeSet:H,userAgentString:P,viaHost:j}),p);return new Dc(r,i,l,f,B,v,S)}receiveIncomingRequestFromTransport(r){this.receiveRequestFromTransport(r)}receiveIncomingResponseFromTransport(r){this.receiveResponseFromTransport(r)}replyStateless(r,i){const l=this.configuration.userAgentHeaderFieldValue,f=this.configuration.supportedOptionTagsResponse;i=Object.assign(Object.assign({},i),{userAgent:l,supported:f});const p=GS(r,i);return this.transport.send(p.message).catch(v=>{v instanceof Error&&this.logger.error(v.message),this.logger.error(`Transport error occurred sending stateless reply to ${r.method} request.`)}),p}receiveRequestFromTransport(r){const i=r.viaBranch,l=this.userAgentServers.get(i);if(r.method===tt.ACK&&l&&l.transaction.state===pe.Accepted&&l instanceof Ux){this.logger.warn(`Discarding out of dialog ACK after 2xx response sent on transaction ${i}.`);return}if(r.method===tt.CANCEL){l?(this.replyStateless(r,{statusCode:200}),l.transaction instanceof ya&&l.transaction.state===pe.Proceeding&&l instanceof Ux&&l.receiveCancel(r)):this.replyStateless(r,{statusCode:481});return}if(l){l.transaction.receiveRequest(r);return}this.receiveRequest(r)}receiveRequest(r){if(!mu.includes(r.method)){const f="Allow: "+mu.toString();this.replyStateless(r,{statusCode:405,extraHeaders:[f]});return}if(!r.ruri)throw new Error("Request-URI undefined.");if(r.ruri.scheme!=="sip"){this.replyStateless(r,{statusCode:416});return}const i=r.ruri,l=f=>!!f&&f.user===i.user;if(!l(this.configuration.aor)&&!(l(this.configuration.contact.uri)||l(this.configuration.contact.pubGruu)||l(this.configuration.contact.tempGruu))){this.logger.warn("Request-URI does not point to us."),r.method!==tt.ACK&&this.replyStateless(r,{statusCode:404});return}if(r.method===tt.INVITE&&!r.hasHeader("Contact")){this.replyStateless(r,{statusCode:400,reasonPhrase:"Missing Contact Header"});return}if(!r.toTag){const f=r.viaBranch;if(!this.userAgentServers.has(f)&&Array.from(this.userAgentServers.values()).some(v=>v.transaction.request.fromTag===r.fromTag&&v.transaction.request.callId===r.callId&&v.transaction.request.cseq===r.cseq)){this.replyStateless(r,{statusCode:482});return}}r.toTag?this.receiveInsideDialogRequest(r):this.receiveOutsideDialogRequest(r)}receiveInsideDialogRequest(r){if(r.method===tt.NOTIFY){const f=r.parseHeader("Event");if(!f||!f.event){this.replyStateless(r,{statusCode:489});return}const p=r.callId+r.toTag+f.event,v=this.subscribers.get(p);if(v){const S=new Tv(this,r);v.onNotify(S);return}}const i=r.callId+r.toTag+r.fromTag,l=this.dialogs.get(i);if(l){if(r.method===tt.OPTIONS){const f="Allow: "+mu.toString(),p="Accept: "+tw.toString();this.replyStateless(r,{statusCode:200,extraHeaders:[f,p]});return}l.receiveRequest(r);return}r.method!==tt.ACK&&this.replyStateless(r,{statusCode:481})}receiveOutsideDialogRequest(r){switch(r.method){case tt.ACK:break;case tt.BYE:this.replyStateless(r,{statusCode:481});break;case tt.CANCEL:throw new Error(`Unexpected out of dialog request method ${r.method}.`);case tt.INFO:this.replyStateless(r,{statusCode:405});break;case tt.INVITE:{const i=new Ux(this,r);this.delegate.onInvite?this.delegate.onInvite(i):i.reject()}break;case tt.MESSAGE:{const i=new XS(this,r);this.delegate.onMessage?this.delegate.onMessage(i):i.accept()}break;case tt.NOTIFY:{const i=new Tv(this,r);this.delegate.onNotify?this.delegate.onNotify(i):i.reject({statusCode:405})}break;case tt.OPTIONS:{const i="Allow: "+mu.toString(),l="Accept: "+tw.toString();this.replyStateless(r,{statusCode:200,extraHeaders:[i,l]})}break;case tt.REFER:{const i=new JS(this,r);this.delegate.onRefer?this.delegate.onRefer(i):i.reject({statusCode:405})}break;case tt.REGISTER:{const i=new p8(this,r);this.delegate.onRegister?this.delegate.onRegister(i):i.reject({statusCode:405})}break;case tt.SUBSCRIBE:{const i=new m8(this,r);this.delegate.onSubscribe?this.delegate.onSubscribe(i):i.reject({statusCode:480})}break;default:throw new Error(`Unexpected out of dialog request method ${r.method}.`)}}receiveResponseFromTransport(r){if(r.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response, dropping");return}const i=r.viaBranch+r.method,l=this.userAgentClients.get(i);l?l.transaction.receiveResponse(r):this.logger.warn(`Discarding unmatched ${r.statusCode} response to ${r.method} ${i}.`)}}function x8(){return o=>!o.audio&&!o.video?Promise.resolve(new MediaStream):navigator.mediaDevices===void 0?Promise.reject(new Error("Media devices not available in insecure contexts.")):navigator.mediaDevices.getUserMedia.call(navigator.mediaDevices,o)}function E8(){return{bundlePolicy:"balanced",certificates:void 0,iceCandidatePoolSize:0,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require"}}class hl{constructor(r,i,l){r.debug("SessionDescriptionHandler.constructor"),this.logger=r,this.mediaStreamFactory=i,this.sessionDescriptionHandlerConfiguration=l,this._localMediaStream=new MediaStream,this._remoteMediaStream=new MediaStream,this._peerConnection=new RTCPeerConnection(l==null?void 0:l.peerConnectionConfiguration),this.initPeerConnectionEventHandlers()}get localMediaStream(){return this._localMediaStream}get remoteMediaStream(){return this._remoteMediaStream}get dataChannel(){return this._dataChannel}get peerConnection(){return this._peerConnection}get peerConnectionDelegate(){return this._peerConnectionDelegate}set peerConnectionDelegate(r){this._peerConnectionDelegate=r}static dispatchAddTrackEvent(r,i){r.dispatchEvent(new MediaStreamTrackEvent("addtrack",{track:i}))}static dispatchRemoveTrackEvent(r,i){r.dispatchEvent(new MediaStreamTrackEvent("removetrack",{track:i}))}close(){this.logger.debug("SessionDescriptionHandler.close"),this._peerConnection!==void 0&&(this._peerConnection.getReceivers().forEach(r=>{r.track&&r.track.stop()}),this._peerConnection.getSenders().forEach(r=>{r.track&&r.track.stop()}),this._dataChannel&&this._dataChannel.close(),this._peerConnection.close(),this._peerConnection=void 0)}enableReceiverTracks(r){const i=this.peerConnection;if(!i)throw new Error("Peer connection closed.");i.getReceivers().forEach(l=>{l.track&&(l.track.enabled=r)})}enableSenderTracks(r){const i=this.peerConnection;if(!i)throw new Error("Peer connection closed.");i.getSenders().forEach(l=>{l.track&&(l.track.enabled=r)})}getDescription(r,i){var l,f;if(this.logger.debug("SessionDescriptionHandler.getDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=r==null?void 0:r.onDataChannel;const p=(l=r==null?void 0:r.offerOptions)===null||l===void 0?void 0:l.iceRestart,v=(r==null?void 0:r.iceGatheringTimeout)===void 0?(f=this.sessionDescriptionHandlerConfiguration)===null||f===void 0?void 0:f.iceGatheringTimeout:r==null?void 0:r.iceGatheringTimeout;return this.getLocalMediaStream(r).then(()=>this.updateDirection(r)).then(()=>this.createDataChannel(r)).then(()=>this.createLocalOfferOrAnswer(r)).then(S=>this.applyModifiers(S,i)).then(S=>this.setLocalSessionDescription(S)).then(()=>this.waitForIceGatheringComplete(p,v)).then(()=>this.getLocalSessionDescription()).then(S=>({body:S.sdp,contentType:"application/sdp"})).catch(S=>{throw this.logger.error("SessionDescriptionHandler.getDescription failed - "+S),S})}hasDescription(r){return this.logger.debug("SessionDescriptionHandler.hasDescription"),r==="application/sdp"}iceGatheringComplete(){this.logger.debug("SessionDescriptionHandler.iceGatheringComplete"),this.iceGatheringCompleteTimeoutId!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - clearing timeout"),clearTimeout(this.iceGatheringCompleteTimeoutId),this.iceGatheringCompleteTimeoutId=void 0),this.iceGatheringCompletePromise!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - resolving promise"),this.iceGatheringCompleteResolve&&this.iceGatheringCompleteResolve(),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0)}sendDtmf(r,i){if(this.logger.debug("SessionDescriptionHandler.sendDtmf"),this._peerConnection===void 0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - peer connection closed"),!1;const l=this._peerConnection.getSenders();if(l.length===0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no senders"),!1;const f=l[0].dtmf;if(!f)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no DTMF sender"),!1;const p=i==null?void 0:i.duration,v=i==null?void 0:i.interToneGap;try{f.insertDTMF(r,p,v)}catch(S){return this.logger.error(S.toString()),!1}return this.logger.log("SessionDescriptionHandler.sendDtmf sent via RTP: "+r.toString()),!0}setDescription(r,i,l){if(this.logger.debug("SessionDescriptionHandler.setDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=i==null?void 0:i.onDataChannel;const f=this._peerConnection.signalingState==="have-local-offer"?"answer":"offer";return this.getLocalMediaStream(i).then(()=>this.applyModifiers({sdp:r,type:f},l)).then(p=>this.setRemoteSessionDescription(p)).catch(p=>{throw this.logger.error("SessionDescriptionHandler.setDescription failed - "+p),p})}applyModifiers(r,i){return this.logger.debug("SessionDescriptionHandler.applyModifiers"),!i||i.length===0?Promise.resolve(r):i.reduce((l,f)=>l.then(f),Promise.resolve(r)).then(l=>{if(this.logger.debug("SessionDescriptionHandler.applyModifiers - modified sdp"),!l.sdp||!l.type)throw new Error("Invalid SDP.");return{sdp:l.sdp,type:l.type}})}createDataChannel(r){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));if((r==null?void 0:r.dataChannel)!==!0||this._dataChannel)return Promise.resolve();switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.createDataChannel - creating data channel");try{return this._dataChannel=this._peerConnection.createDataChannel((r==null?void 0:r.dataChannelLabel)||"",r==null?void 0:r.dataChannelOptions),this.onDataChannel&&this.onDataChannel(this._dataChannel),Promise.resolve()}catch(i){return Promise.reject(i)}case"have-remote-offer":return Promise.resolve();case"have-local-offer":case"have-local-pranswer":case"have-remote-pranswer":case"closed":default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}createLocalOfferOrAnswer(r){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP offer"),this._peerConnection.createOffer(r==null?void 0:r.offerOptions);case"have-remote-offer":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP answer"),this._peerConnection.createAnswer(r==null?void 0:r.answerOptions);case"have-local-offer":case"have-local-pranswer":case"have-remote-pranswer":case"closed":default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}getLocalMediaStream(r){if(this.logger.debug("SessionDescriptionHandler.getLocalMediaStream"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));let i=Object.assign({},r==null?void 0:r.constraints);if(this.localMediaStreamConstraints){if(i.audio=i.audio||this.localMediaStreamConstraints.audio,i.video=i.video||this.localMediaStreamConstraints.video,JSON.stringify(this.localMediaStreamConstraints.audio)===JSON.stringify(i.audio)&&JSON.stringify(this.localMediaStreamConstraints.video)===JSON.stringify(i.video))return Promise.resolve()}else i.audio===void 0&&i.video===void 0&&(i={audio:!0});return this.localMediaStreamConstraints=i,this.mediaStreamFactory(i,this,r).then(l=>this.setLocalMediaStream(l))}setLocalMediaStream(r){if(this.logger.debug("SessionDescriptionHandler.setLocalMediaStream"),!this._peerConnection)throw new Error("Peer connection undefined.");const i=this._peerConnection,l=this._localMediaStream,f=[],p=w=>{const C=w.kind;if(C!=="audio"&&C!=="video")throw new Error(`Unknown new track kind ${C}.`);const b=i.getSenders().find(R=>R.track&&R.track.kind===C);b?f.push(new Promise(R=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - replacing sender ${C} track`),R()}).then(()=>b.replaceTrack(w).then(()=>{const R=l.getTracks().find(T=>T.kind===C);R&&(R.stop(),l.removeTrack(R),hl.dispatchRemoveTrackEvent(l,R)),l.addTrack(w),hl.dispatchAddTrackEvent(l,w)}).catch(R=>{throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to replace sender ${C} track`),R}))):f.push(new Promise(R=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - adding sender ${C} track`),R()}).then(()=>{try{i.addTrack(w,l)}catch(R){throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to add sender ${C} track`),R}l.addTrack(w),hl.dispatchAddTrackEvent(l,w)}))},v=r.getAudioTracks();v.length&&p(v[0]);const S=r.getVideoTracks();return S.length&&p(S[0]),f.reduce((w,C)=>w.then(()=>C),Promise.resolve())}getLocalSessionDescription(){if(this.logger.debug("SessionDescriptionHandler.getLocalSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));const r=this._peerConnection.localDescription;return r?Promise.resolve(r):Promise.reject(new Error("Failed to get local session description"))}setLocalSessionDescription(r){return this.logger.debug("SessionDescriptionHandler.setLocalSessionDescription"),this._peerConnection===void 0?Promise.reject(new Error("Peer connection closed.")):this._peerConnection.setLocalDescription(r)}setRemoteSessionDescription(r){if(this.logger.debug("SessionDescriptionHandler.setRemoteSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));const i=r.sdp;let l;switch(this._peerConnection.signalingState){case"stable":l="offer";break;case"have-local-offer":l="answer";break;case"have-local-pranswer":case"have-remote-offer":case"have-remote-pranswer":case"closed":default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return i?this._peerConnection.setRemoteDescription({sdp:i,type:l}):(this.logger.error("SessionDescriptionHandler.setRemoteSessionDescription failed - cannot set null sdp"),Promise.reject(new Error("SDP is undefined")))}setRemoteTrack(r){this.logger.debug("SessionDescriptionHandler.setRemoteTrack");const i=this._remoteMediaStream;i.getTrackById(r.id)?this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - have remote ${r.kind} track`):r.kind==="audio"?(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${r.kind} track`),i.getAudioTracks().forEach(l=>{l.stop(),i.removeTrack(l),hl.dispatchRemoveTrackEvent(i,l)}),i.addTrack(r),hl.dispatchAddTrackEvent(i,r)):r.kind==="video"&&(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${r.kind} track`),i.getVideoTracks().forEach(l=>{l.stop(),i.removeTrack(l),hl.dispatchRemoveTrackEvent(i,l)}),i.addTrack(r),hl.dispatchAddTrackEvent(i,r))}updateDirection(r){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.updateDirection - setting offer direction");{const i=l=>{switch(l){case"inactive":return r!=null&&r.hold?"inactive":"recvonly";case"recvonly":return r!=null&&r.hold?"inactive":"recvonly";case"sendonly":return r!=null&&r.hold?"sendonly":"sendrecv";case"sendrecv":return r!=null&&r.hold?"sendonly":"sendrecv";case"stopped":return"stopped";default:throw new Error("Should never happen")}};this._peerConnection.getTransceivers().forEach(l=>{if(l.direction){const f=i(l.direction);l.direction!==f&&(l.direction=f)}})}break;case"have-remote-offer":this.logger.debug("SessionDescriptionHandler.updateDirection - setting answer direction");{const i=(()=>{const f=this._peerConnection.remoteDescription;if(!f)throw new Error("Failed to read remote offer");const p=/a=sendrecv\r\n|a=sendonly\r\n|a=recvonly\r\n|a=inactive\r\n/.exec(f.sdp);if(p)switch(p[0]){case`a=inactive\r
|
|
402
|
+
`,this.send(C).catch(w=>{this.logTransportError(w,"Failed to send ACK to non-2xx response.")})}stateTransition(r,i=!1){const l=()=>{throw new Error(`Invalid state transition from ${this.state} to ${r}`)};switch(r){case pe.Calling:l();break;case pe.Proceeding:this.state!==pe.Calling&&l();break;case pe.Accepted:case pe.Completed:this.state!==pe.Calling&&this.state!==pe.Proceeding&&l();break;case pe.Terminated:this.state!==pe.Calling&&this.state!==pe.Accepted&&this.state!==pe.Completed&&(i||l());break;default:l()}this.B&&(clearTimeout(this.B),this.B=void 0),pe.Proceeding,r===pe.Completed&&(this.D=setTimeout(()=>this.timerD(),oi.TIMER_D)),r===pe.Accepted&&(this.M=setTimeout(()=>this.timerM(),oi.TIMER_M)),r===pe.Terminated&&this.dispose(),this.setState(r)}timerA(){}timerB(){this.logger.debug(`Timer B expired for INVITE client transaction ${this.id}.`),this.state===pe.Calling&&(this.onRequestTimeout(),this.stateTransition(pe.Terminated))}timerD(){this.logger.debug(`Timer D expired for INVITE client transaction ${this.id}.`),this.state===pe.Completed&&this.stateTransition(pe.Terminated)}timerM(){this.logger.debug(`Timer M expired for INVITE client transaction ${this.id}.`),this.state===pe.Accepted&&this.stateTransition(pe.Terminated)}}class Bi{constructor(r,i,l,f){this.transactionConstructor=r,this.core=i,this.message=l,this.delegate=f,this.challenged=!1,this.stale=!1,this.logger=this.loggerFactory.getLogger("sip.user-agent-client"),this.init()}dispose(){this.transaction.dispose()}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}cancel(r,i={}){if(!this.transaction)throw new Error("Transaction undefined.");if(!this.message.to)throw new Error("To undefined.");if(!this.message.from)throw new Error("From undefined.");const l=this.core.makeOutgoingRequestMessage(tt.CANCEL,this.message.ruri,this.message.from.uri,this.message.to.uri,{toTag:this.message.toTag,fromTag:this.message.fromTag,callId:this.message.callId,cseq:this.message.cseq},i.extraHeaders);return l.branch=this.message.branch,this.message.headers.Route&&(l.headers.Route=this.message.headers.Route),r&&l.setHeader("Reason",r),this.transaction.state===pe.Proceeding?new Bi(Pa,this.core,l):this.transaction.addStateChangeListener(()=>{this.transaction&&this.transaction.state===pe.Proceeding&&new Bi(Pa,this.core,l)},{once:!0}),l}authenticationGuard(r,i){const l=r.statusCode;if(!l)throw new Error("Response status code undefined.");if(l!==401&&l!==407)return!0;let f,p;if(l===401?(f=r.parseHeader("www-authenticate"),p="authorization"):(f=r.parseHeader("proxy-authenticate"),p="proxy-authorization"),!f)return this.logger.warn(l+" with wrong or missing challenge, cannot authenticate"),!0;if(this.challenged&&(this.stale||f.stale!==!0))return this.logger.warn(l+" apparently in authentication loop, cannot authenticate"),!0;if(!this.credentials&&(this.credentials=this.core.configuration.authenticationFactory(),!this.credentials))return this.logger.warn("Unable to obtain credentials, cannot authenticate"),!0;if(!this.credentials.authenticate(this.message,f))return!0;this.challenged=!0,f.stale&&(this.stale=!0);let v=this.message.cseq+=1;return i&&i.localSequenceNumber&&(i.incrementLocalSequenceNumber(),v=this.message.cseq=i.localSequenceNumber),this.message.setHeader("cseq",v+" "+this.message.method),this.message.setHeader(p,this.credentials.toString()),this.init(),!1}onRequestTimeout(){this.logger.warn("User agent client request timed out. Generating internal 408 Request Timeout.");const r=new vu;r.statusCode=408,r.reasonPhrase="Request Timeout",this.receiveResponse(r)}onTransportError(r){this.logger.error(r.message),this.logger.error("User agent client request transport error. Generating internal 503 Service Unavailable.");const i=new vu;i.statusCode=503,i.reasonPhrase="Service Unavailable",this.receiveResponse(i)}receiveResponse(r){if(!this.authenticationGuard(r))return;const i=r.statusCode?r.statusCode.toString():"";if(!i)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(i):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:r});break;case/^1[0-9]{2}$/.test(i):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:r});break;case/^2[0-9]{2}$/.test(i):this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:r});break;case/^3[0-9]{2}$/.test(i):this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:r});break;case/^[4-6][0-9]{2}$/.test(i):this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:r});break;default:throw new Error(`Invalid status code ${i}`)}}init(){const r={loggerFactory:this.loggerFactory,onRequestTimeout:()=>this.onRequestTimeout(),onStateChange:f=>{f===pe.Terminated&&(this.core.userAgentClients.delete(l),i===this._transaction&&this.dispose())},onTransportError:f=>this.onTransportError(f),receiveResponse:f=>this.receiveResponse(f)},i=new this.transactionConstructor(this.message,this.core.transport,r);this._transaction=i;const l=i.id+i.request.method;this.core.userAgentClients.set(l,this)}}class JR extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.BYE,l);super(Pa,r.userAgentCore,f,i),r.dispose()}}class La extends QS{constructor(r,i,l){super(r,i,l,pe.Trying,"sip.transaction.nist")}dispose(){this.J&&(clearTimeout(this.J),this.J=void 0),super.dispose()}get kind(){return"nist"}receiveRequest(r){switch(this.state){case pe.Trying:break;case pe.Proceeding:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(i=>{this.logTransportError(i,"Failed to send retransmission of provisional response.")});break;case pe.Completed:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(i=>{this.logTransportError(i,"Failed to send retransmission of final response.")});break;case pe.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}}receiveResponse(r,i){if(r<100||r>699)throw new Error(`Invalid status code ${r}`);if(r>100&&r<=199)throw new Error("Provisional response other than 100 not allowed.");switch(this.state){case pe.Trying:if(this.lastResponse=i,r>=100&&r<200){this.stateTransition(pe.Proceeding),this.send(i).catch(f=>{this.logTransportError(f,"Failed to send provisional response.")});return}if(r>=200&&r<=699){this.stateTransition(pe.Completed),this.send(i).catch(f=>{this.logTransportError(f,"Failed to send final response.")});return}break;case pe.Proceeding:if(this.lastResponse=i,r>=200&&r<=699){this.stateTransition(pe.Completed),this.send(i).catch(f=>{this.logTransportError(f,"Failed to send final response.")});return}break;case pe.Completed:return;case pe.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const l=`Non-INVITE server transaction received unexpected ${r} response from TU while in state ${this.state}.`;throw this.logger.error(l),new Error(l)}onTransportError(r){this.user.onTransportError&&this.user.onTransportError(r),this.stateTransition(pe.Terminated,!0)}typeToString(){return"non-INVITE server transaction"}stateTransition(r,i=!1){const l=()=>{throw new Error(`Invalid state transition from ${this.state} to ${r}`)};switch(r){case pe.Trying:l();break;case pe.Proceeding:this.state!==pe.Trying&&l();break;case pe.Completed:this.state!==pe.Trying&&this.state!==pe.Proceeding&&l();break;case pe.Terminated:this.state!==pe.Proceeding&&this.state!==pe.Completed&&(i||l());break;default:l()}r===pe.Completed&&(this.J=setTimeout(()=>this.timerJ(),oi.TIMER_J)),r===pe.Terminated&&this.dispose(),this.setState(r)}timerJ(){this.logger.debug(`Timer J expired for NON-INVITE server transaction ${this.id}.`),this.state===pe.Completed&&this.stateTransition(pe.Terminated)}}class So{constructor(r,i,l,f){this.transactionConstructor=r,this.core=i,this.message=l,this.delegate=f,this.logger=this.loggerFactory.getLogger("sip.user-agent-server"),this.toTag=l.toTag?l.toTag:wv(),this.init()}dispose(){this.transaction.dispose()}get loggerFactory(){return this.core.loggerFactory}get transaction(){if(!this._transaction)throw new Error("Transaction undefined.");return this._transaction}accept(r={statusCode:200}){if(!this.acceptable)throw new gu(`${this.message.method} not acceptable in state ${this.transaction.state}.`);const i=r.statusCode;if(i<200||i>299)throw new TypeError(`Invalid statusCode: ${i}`);return this.reply(r)}progress(r={statusCode:180}){if(!this.progressable)throw new gu(`${this.message.method} not progressable in state ${this.transaction.state}.`);const i=r.statusCode;if(i<101||i>199)throw new TypeError(`Invalid statusCode: ${i}`);return this.reply(r)}redirect(r,i={statusCode:302}){if(!this.redirectable)throw new gu(`${this.message.method} not redirectable in state ${this.transaction.state}.`);const l=i.statusCode;if(l<300||l>399)throw new TypeError(`Invalid statusCode: ${l}`);const f=new Array;return r.forEach(v=>f.push(`Contact: ${v.toString()}`)),i.extraHeaders=(i.extraHeaders||[]).concat(f),this.reply(i)}reject(r={statusCode:480}){if(!this.rejectable)throw new gu(`${this.message.method} not rejectable in state ${this.transaction.state}.`);const i=r.statusCode;if(i<400||i>699)throw new TypeError(`Invalid statusCode: ${i}`);return this.reply(r)}trying(r){if(!this.tryingable)throw new gu(`${this.message.method} not tryingable in state ${this.transaction.state}.`);return this.reply({statusCode:100})}receiveCancel(r){this.delegate&&this.delegate.onCancel&&this.delegate.onCancel(r)}get acceptable(){if(this.transaction instanceof ya)return this.transaction.state===pe.Proceeding||this.transaction.state===pe.Accepted;if(this.transaction instanceof La)return this.transaction.state===pe.Trying||this.transaction.state===pe.Proceeding;throw new Error("Unknown transaction type.")}get progressable(){if(this.transaction instanceof ya)return this.transaction.state===pe.Proceeding;if(this.transaction instanceof La)return!1;throw new Error("Unknown transaction type.")}get redirectable(){if(this.transaction instanceof ya)return this.transaction.state===pe.Proceeding;if(this.transaction instanceof La)return this.transaction.state===pe.Trying||this.transaction.state===pe.Proceeding;throw new Error("Unknown transaction type.")}get rejectable(){if(this.transaction instanceof ya)return this.transaction.state===pe.Proceeding;if(this.transaction instanceof La)return this.transaction.state===pe.Trying||this.transaction.state===pe.Proceeding;throw new Error("Unknown transaction type.")}get tryingable(){if(this.transaction instanceof ya)return this.transaction.state===pe.Proceeding;if(this.transaction instanceof La)return this.transaction.state===pe.Trying;throw new Error("Unknown transaction type.")}reply(r){!r.toTag&&r.statusCode!==100&&(r.toTag=this.toTag),r.userAgent=r.userAgent||this.core.configuration.userAgentHeaderFieldValue,r.supported=r.supported||this.core.configuration.supportedOptionTagsResponse;const i=GS(this.message,r);return this.transaction.receiveResponse(r.statusCode,i.message),i}init(){const r={loggerFactory:this.loggerFactory,onStateChange:f=>{f===pe.Terminated&&(this.core.userAgentServers.delete(l),this.dispose())},onTransportError:f=>{this.logger.error(f.message),this.delegate&&this.delegate.onTransportError?this.delegate.onTransportError(f):this.logger.error("User agent server response transport error.")}},i=new this.transactionConstructor(this.message,this.core.transport,r);this._transaction=i;const l=i.id;this.core.userAgentServers.set(i.id,this)}}class e8 extends So{constructor(r,i,l){super(La,r.userAgentCore,i,l)}}class t8 extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.INFO,l);super(Pa,r.userAgentCore,f,i)}}class r8 extends So{constructor(r,i,l){super(La,r.userAgentCore,i,l)}}class ZS extends Bi{constructor(r,i,l){super(Pa,r,i,l)}}class XS extends So{constructor(r,i,l){super(La,r,i,l)}}class n8 extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.NOTIFY,l);super(Pa,r.userAgentCore,f,i)}}function i8(o){return o.userAgentCore!==void 0}class Tv extends So{constructor(r,i,l){const f=i8(r)?r.userAgentCore:r;super(La,f,i,l)}}class a8 extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.PRACK,l);super(Pa,r.userAgentCore,f,i),r.signalingStateTransition(f)}}class s8 extends So{constructor(r,i,l){super(La,r.userAgentCore,i,l),r.signalingStateTransition(i),this.dialog=r}accept(r={statusCode:200}){return r.body&&this.dialog.signalingStateTransition(r.body),super.accept(r)}}class o8 extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.INVITE,l);super(xu,r.userAgentCore,f,i),this.delegate=i,r.signalingStateTransition(f),r.reinviteUserAgentClient=this,this.dialog=r}receiveResponse(r){if(!this.authenticationGuard(r,this.dialog))return;const i=r.statusCode?r.statusCode.toString():"";if(!i)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(i):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:r});break;case/^1[0-9]{2}$/.test(i):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:r,session:this.dialog,prack:l=>{throw new Error("Unimplemented.")}});break;case/^2[0-9]{2}$/.test(i):this.dialog.signalingStateTransition(r),this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:r,session:this.dialog,ack:l=>this.dialog.ack(l)});break;case/^3[0-9]{2}$/.test(i):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:r});break;case/^[4-6][0-9]{2}$/.test(i):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:r});break;default:throw new Error(`Invalid status code ${i}`)}}}class l8 extends So{constructor(r,i,l){super(ya,r.userAgentCore,i,l),r.reinviteUserAgentServer=this,this.dialog=r}accept(r={statusCode:200}){r.extraHeaders=r.extraHeaders||[],r.extraHeaders=r.extraHeaders.concat(this.dialog.routeSet.map(p=>`Record-Route: ${p}`));const i=super.accept(r),l=this.dialog,f=Object.assign(Object.assign({},i),{session:l});return r.body&&this.dialog.signalingStateTransition(r.body),this.dialog.reConfirm(),f}progress(r={statusCode:180}){const i=super.progress(r),l=this.dialog,f=Object.assign(Object.assign({},i),{session:l});return r.body&&this.dialog.signalingStateTransition(r.body),f}redirect(r,i={statusCode:302}){throw this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,new Error("Unimplemented.")}reject(r={statusCode:488}){return this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,super.reject(r)}}class u8 extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.REFER,l);super(Pa,r.userAgentCore,f,i)}}function c8(o){return o.userAgentCore!==void 0}class JS extends So{constructor(r,i,l){const f=c8(r)?r.userAgentCore:r;super(La,f,i,l)}}class Rv extends Zf{constructor(r,i,l,f){super(i,l),this.initialTransaction=r,this._signalingState=Ye.Initial,this.ackWait=!1,this.ackProcessing=!1,this.delegate=f,r instanceof ya&&(this.ackWait=!0),this.early||this.start2xxRetransmissionTimer(),this.signalingStateTransition(r.request),this.logger=i.loggerFactory.getLogger("sip.invite-dialog"),this.logger.log(`INVITE dialog ${this.id} constructed`)}dispose(){super.dispose(),this._signalingState=Ye.Closed,this._offer=void 0,this._answer=void 0,this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.logger.log(`INVITE dialog ${this.id} destroyed`)}get sessionState(){return this.early?as.Early:this.ackWait?as.AckWait:this._signalingState===Ye.Closed?as.Terminated:as.Confirmed}get signalingState(){return this._signalingState}get offer(){return this._offer}get answer(){return this._answer}confirm(){this.early&&this.start2xxRetransmissionTimer(),super.confirm()}reConfirm(){this.reinviteUserAgentServer&&this.startReInvite2xxRetransmissionTimer()}ack(r={}){this.logger.log(`INVITE dialog ${this.id} sending ACK request`);let i;if(this.reinviteUserAgentClient){if(!(this.reinviteUserAgentClient.transaction instanceof xu))throw new Error("Transaction not instance of InviteClientTransaction.");i=this.reinviteUserAgentClient.transaction,this.reinviteUserAgentClient=void 0}else{if(!(this.initialTransaction instanceof xu))throw new Error("Initial transaction not instance of InviteClientTransaction.");i=this.initialTransaction}const l=this.createOutgoingRequestMessage(tt.ACK,{cseq:i.request.cseq,extraHeaders:r.extraHeaders,body:r.body});return i.ackResponse(l),this.signalingStateTransition(l),{message:l}}bye(r,i){if(this.logger.log(`INVITE dialog ${this.id} sending BYE request`),this.initialTransaction instanceof ya){if(this.early)throw new Error("UAS MUST NOT send a BYE on early dialogs.");if(this.ackWait&&this.initialTransaction.state!==pe.Terminated)throw new Error("UAS MUST NOT send a BYE on a confirmed dialog until it has received an ACK for its 2xx response or until the server transaction times out.")}return new JR(this,r,i)}info(r,i){if(this.logger.log(`INVITE dialog ${this.id} sending INFO request`),this.early)throw new Error("Dialog not confirmed.");return new t8(this,r,i)}invite(r,i){if(this.logger.log(`INVITE dialog ${this.id} sending INVITE request`),this.early)throw new Error("Dialog not confirmed.");if(this.reinviteUserAgentClient)throw new Error("There is an ongoing re-INVITE client transaction.");if(this.reinviteUserAgentServer)throw new Error("There is an ongoing re-INVITE server transaction.");return new o8(this,r,i)}message(r,i){if(this.logger.log(`INVITE dialog ${this.id} sending MESSAGE request`),this.early)throw new Error("Dialog not confirmed.");const l=this.createOutgoingRequestMessage(tt.MESSAGE,i);return new ZS(this.core,l,r)}notify(r,i){if(this.logger.log(`INVITE dialog ${this.id} sending NOTIFY request`),this.early)throw new Error("Dialog not confirmed.");return new n8(this,r,i)}prack(r,i){return this.logger.log(`INVITE dialog ${this.id} sending PRACK request`),new a8(this,r,i)}refer(r,i){if(this.logger.log(`INVITE dialog ${this.id} sending REFER request`),this.early)throw new Error("Dialog not confirmed.");return new u8(this,r,i)}receiveRequest(r){if(this.logger.log(`INVITE dialog ${this.id} received ${r.method} request`),r.method===tt.ACK){if(this.ackWait){if(this.initialTransaction instanceof xu){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${r.method} request, dropping.`);return}if(this.initialTransaction.request.cseq!==r.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${r.method} request, dropping.`);return}this.ackWait=!1}else{if(!this.reinviteUserAgentServer){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${r.method} request, dropping.`);return}if(this.reinviteUserAgentServer.transaction.request.cseq!==r.cseq){this.logger.warn(`INVITE dialog ${this.id} received unexpected ${r.method} request, dropping.`);return}this.reinviteUserAgentServer=void 0}if(this.signalingStateTransition(r),this.delegate&&this.delegate.onAck){const i=this.delegate.onAck({message:r});i instanceof Promise&&(this.ackProcessing=!0,i.then(()=>this.ackProcessing=!1).catch(()=>this.ackProcessing=!1))}return}if(!this.sequenceGuard(r)){this.logger.log(`INVITE dialog ${this.id} rejected out of order ${r.method} request.`);return}if(super.receiveRequest(r),r.method===tt.INVITE){const i=()=>{const p=this.ackWait?"waiting for initial ACK":"processing initial ACK";this.logger.warn(`INVITE dialog ${this.id} received re-INVITE while ${p}`);let v="RFC 5407 suggests the following to avoid this race condition... ";v+=" Note: Implementation issues are outside the scope of this document,",v+=" but the following tip is provided for avoiding race conditions of",v+=" this type. The caller can delay sending re-INVITE F6 for some period",v+=" of time (2 seconds, perhaps), after which the caller can reasonably",v+=" assume that its ACK has been received. Implementors can decouple the",v+=" actions of the user (e.g., pressing the hold button) from the actions",v+=" of the protocol (the sending of re-INVITE F6), so that the UA can",v+=" behave like this. In this case, it is the implementor's choice as to",v+=" how long to wait. In most cases, such an implementation may be",v+=" useful to prevent the type of race condition shown in this section.",v+=" This document expresses no preference about whether or not they",v+=" should wait for an ACK to be delivered. After considering the impact",v+=" on user experience, implementors should decide whether or not to wait",v+=" for a while, because the user experience depends on the",v+=" implementation and has no direct bearing on protocol behavior.",this.logger.warn(v)},f=[`Retry-After: ${Math.floor(Math.random()*10)+1}`];if(this.ackProcessing){this.core.replyStateless(r,{statusCode:500,extraHeaders:f}),i();return}if(this.ackWait&&this.signalingState!==Ye.Stable){this.core.replyStateless(r,{statusCode:500,extraHeaders:f}),i();return}if(this.reinviteUserAgentServer){this.core.replyStateless(r,{statusCode:500,extraHeaders:f});return}if(this.reinviteUserAgentClient){this.core.replyStateless(r,{statusCode:491});return}}if(r.method===tt.INVITE){const i=r.parseHeader("contact");if(!i)throw new Error("Contact undefined.");if(!(i instanceof ma))throw new Error("Contact not instance of NameAddrHeader.");this.dialogState.remoteTarget=i.uri}switch(r.method){case tt.BYE:{const i=new e8(this,r);this.delegate&&this.delegate.onBye?this.delegate.onBye(i):i.accept(),this.dispose()}break;case tt.INFO:{const i=new r8(this,r);this.delegate&&this.delegate.onInfo?this.delegate.onInfo(i):i.reject({statusCode:469,extraHeaders:["Recv-Info:"]})}break;case tt.INVITE:{const i=new l8(this,r);this.signalingStateTransition(r),this.delegate&&this.delegate.onInvite?this.delegate.onInvite(i):i.reject({statusCode:488})}break;case tt.MESSAGE:{const i=new XS(this.core,r);this.delegate&&this.delegate.onMessage?this.delegate.onMessage(i):i.accept()}break;case tt.NOTIFY:{const i=new Tv(this,r);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(i):i.accept()}break;case tt.PRACK:{const i=new s8(this,r);this.delegate&&this.delegate.onPrack?this.delegate.onPrack(i):i.accept()}break;case tt.REFER:{const i=new JS(this,r);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(i):i.reject()}break;default:this.logger.log(`INVITE dialog ${this.id} received unimplemented ${r.method} request`),this.core.replyStateless(r,{statusCode:501});break}}reliableSequenceGuard(r){const i=r.statusCode;if(!i)throw new Error("Status code undefined");if(i>100&&i<200){const l=r.getHeader("require"),f=r.getHeader("rseq"),p=l&&l.includes("100rel")&&f?Number(f):void 0;if(p){if(this.rseq&&this.rseq+1!==p)return!1;this.rseq=this.rseq?this.rseq+1:p}}return!0}signalingStateRollback(){(this._signalingState===Ye.HaveLocalOffer||this.signalingState===Ye.HaveRemoteOffer)&&this._rollbackOffer&&this._rollbackAnswer&&(this._signalingState=Ye.Stable,this._offer=this._rollbackOffer,this._answer=this._rollbackAnswer)}signalingStateTransition(r){const i=e0(r);if(!(!i||i.contentDisposition!=="session")){if(this._signalingState===Ye.Stable&&(this._rollbackOffer=this._offer,this._rollbackAnswer=this._answer),r instanceof Qf)switch(this._signalingState){case Ye.Initial:case Ye.Stable:this._signalingState=Ye.HaveRemoteOffer,this._offer=i,this._answer=void 0;break;case Ye.HaveLocalOffer:this._signalingState=Ye.Stable,this._answer=i;break;case Ye.HaveRemoteOffer:break;case Ye.Closed:break;default:throw new Error("Unexpected signaling state.")}if(r instanceof vu)switch(this._signalingState){case Ye.Initial:case Ye.Stable:this._signalingState=Ye.HaveRemoteOffer,this._offer=i,this._answer=void 0;break;case Ye.HaveLocalOffer:this._signalingState=Ye.Stable,this._answer=i;break;case Ye.HaveRemoteOffer:break;case Ye.Closed:break;default:throw new Error("Unexpected signaling state.")}if(r instanceof Dc)switch(this._signalingState){case Ye.Initial:case Ye.Stable:this._signalingState=Ye.HaveLocalOffer,this._offer=i,this._answer=void 0;break;case Ye.HaveLocalOffer:break;case Ye.HaveRemoteOffer:this._signalingState=Ye.Stable,this._answer=i;break;case Ye.Closed:break;default:throw new Error("Unexpected signaling state.")}if(zS(r))switch(this._signalingState){case Ye.Initial:case Ye.Stable:this._signalingState=Ye.HaveLocalOffer,this._offer=i,this._answer=void 0;break;case Ye.HaveLocalOffer:break;case Ye.HaveRemoteOffer:this._signalingState=Ye.Stable,this._answer=i;break;case Ye.Closed:break;default:throw new Error("Unexpected signaling state.")}}}start2xxRetransmissionTimer(){if(this.initialTransaction instanceof ya){const r=this.initialTransaction;let i=oi.T1;const l=()=>{if(!this.ackWait){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),r.retransmitAcceptedResponse(),i=Math.min(i*2,oi.T2),this.invite2xxTimer=setTimeout(l,i)};this.invite2xxTimer=setTimeout(l,i);const f=()=>{r.state===pe.Terminated&&(r.removeStateChangeListener(f),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.ackWait&&(this.delegate&&this.delegate.onAckTimeout?this.delegate.onAckTimeout():this.bye()))};r.addStateChangeListener(f)}}startReInvite2xxRetransmissionTimer(){if(this.reinviteUserAgentServer&&this.reinviteUserAgentServer.transaction instanceof ya){const r=this.reinviteUserAgentServer.transaction;let i=oi.T1;const l=()=>{if(!this.reinviteUserAgentServer){this.invite2xxTimer=void 0;return}this.logger.log("No ACK for 2xx response received, attempting retransmission"),r.retransmitAcceptedResponse(),i=Math.min(i*2,oi.T2),this.invite2xxTimer=setTimeout(l,i)};this.invite2xxTimer=setTimeout(l,i);const f=()=>{r.state===pe.Terminated&&(r.removeStateChangeListener(f),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.reinviteUserAgentServer)};r.addStateChangeListener(f)}}}class f8 extends Bi{constructor(r,i,l){super(xu,r,i,l),this.confirmedDialogAcks=new Map,this.confirmedDialogs=new Map,this.earlyDialogs=new Map,this.delegate=l}dispose(){this.earlyDialogs.forEach(r=>r.dispose()),this.earlyDialogs.clear(),super.dispose()}onTransportError(r){if(this.transaction.state===pe.Calling)return super.onTransportError(r);this.logger.error(r.message),this.logger.error("User agent client request transport error while sending ACK.")}receiveResponse(r){if(!this.authenticationGuard(r))return;const i=r.statusCode?r.statusCode.toString():"";if(!i)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(i):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:r});return;case/^1[0-9]{2}$/.test(i):{if(!r.toTag){this.logger.warn("Non-100 1xx INVITE response received without a to tag, dropping.");return}if(!r.parseHeader("contact")){this.logger.error("Non-100 1xx INVITE response received without a Contact header field, dropping.");return}const f=Zf.initialDialogStateForUserAgentClient(this.message,r);let p=this.earlyDialogs.get(f.id);if(!p){const S=this.transaction;if(!(S instanceof xu))throw new Error("Transaction not instance of InviteClientTransaction.");p=new Rv(S,this.core,f),this.earlyDialogs.set(p.id,p)}if(!p.reliableSequenceGuard(r)){this.logger.warn("1xx INVITE reliable response received out of order or is a retransmission, dropping.");return}(p.signalingState===Ye.Initial||p.signalingState===Ye.HaveLocalOffer)&&p.signalingStateTransition(r);const v=p;this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:r,session:v,prack:S=>v.prack(void 0,S)})}return;case/^2[0-9]{2}$/.test(i):{if(!r.toTag){this.logger.error("2xx INVITE response received without a to tag, dropping.");return}if(!r.parseHeader("contact")){this.logger.error("2xx INVITE response received without a Contact header field, dropping.");return}const f=Zf.initialDialogStateForUserAgentClient(this.message,r);let p=this.confirmedDialogs.get(f.id);if(p){const S=this.confirmedDialogAcks.get(f.id);if(S){const b=this.transaction;if(!(b instanceof xu))throw new Error("Client transaction not instance of InviteClientTransaction.");b.ackResponse(S.message)}return}if(p=this.earlyDialogs.get(f.id),p)p.confirm(),p.recomputeRouteSet(r),this.earlyDialogs.delete(p.id),this.confirmedDialogs.set(p.id,p);else{const S=this.transaction;if(!(S instanceof xu))throw new Error("Transaction not instance of InviteClientTransaction.");p=new Rv(S,this.core,f),this.confirmedDialogs.set(p.id,p)}(p.signalingState===Ye.Initial||p.signalingState===Ye.HaveLocalOffer)&&p.signalingStateTransition(r);const v=p;if(this.delegate&&this.delegate.onAccept)this.delegate.onAccept({message:r,session:v,ack:S=>{const b=v.ack(S);return this.confirmedDialogAcks.set(v.id,b),b}});else{const S=v.ack();this.confirmedDialogAcks.set(v.id,S)}}return;case/^3[0-9]{2}$/.test(i):this.earlyDialogs.forEach(l=>l.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:r});return;case/^[4-6][0-9]{2}$/.test(i):this.earlyDialogs.forEach(l=>l.dispose()),this.earlyDialogs.clear(),this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:r});return;default:throw new Error(`Invalid status code ${i}`)}}}class Ux extends So{constructor(r,i,l){super(ya,r,i,l),this.core=r}dispose(){this.earlyDialog&&this.earlyDialog.dispose(),super.dispose()}accept(r={statusCode:200}){if(!this.acceptable)throw new gu(`${this.message.method} not acceptable in state ${this.transaction.state}.`);if(!this.confirmedDialog)if(this.earlyDialog)this.earlyDialog.confirm(),this.confirmedDialog=this.earlyDialog,this.earlyDialog=void 0;else{const b=this.transaction;if(!(b instanceof ya))throw new Error("Transaction not instance of InviteClientTransaction.");const C=Zf.initialDialogStateForUserAgentServer(this.message,this.toTag);this.confirmedDialog=new Rv(b,this.core,C)}const i=this.message.getHeaders("record-route").map(b=>`Record-Route: ${b}`),l=`Contact: ${this.core.configuration.contact.toString()}`,f="Allow: "+mu.toString();if(!r.body){if(this.confirmedDialog.signalingState===Ye.Stable)r.body=this.confirmedDialog.answer;else if(this.confirmedDialog.signalingState===Ye.Initial||this.confirmedDialog.signalingState===Ye.HaveRemoteOffer)throw new Error("Response must have a body.")}r.statusCode=r.statusCode||200,r.extraHeaders=r.extraHeaders||[],r.extraHeaders=r.extraHeaders.concat(i),r.extraHeaders.push(f),r.extraHeaders.push(l);const p=super.accept(r),v=this.confirmedDialog,S=Object.assign(Object.assign({},p),{session:v});return r.body&&this.confirmedDialog.signalingState!==Ye.Stable&&this.confirmedDialog.signalingStateTransition(r.body),S}progress(r={statusCode:180}){if(!this.progressable)throw new gu(`${this.message.method} not progressable in state ${this.transaction.state}.`);if(!this.earlyDialog){const S=this.transaction;if(!(S instanceof ya))throw new Error("Transaction not instance of InviteClientTransaction.");const b=Zf.initialDialogStateForUserAgentServer(this.message,this.toTag,!0);this.earlyDialog=new Rv(S,this.core,b)}const i=this.message.getHeaders("record-route").map(S=>`Record-Route: ${S}`),l=`Contact: ${this.core.configuration.contact}`;r.extraHeaders=r.extraHeaders||[],r.extraHeaders=r.extraHeaders.concat(i),r.extraHeaders.push(l);const f=super.progress(r),p=this.earlyDialog,v=Object.assign(Object.assign({},f),{session:p});return r.body&&this.earlyDialog.signalingState!==Ye.Stable&&this.earlyDialog.signalingStateTransition(r.body),v}redirect(r,i={statusCode:302}){return super.redirect(r,i)}reject(r={statusCode:486}){return super.reject(r)}}class d8 extends Bi{constructor(r,i,l){super(Pa,r,i,l)}}class h8 extends Bi{constructor(r,i,l){super(Pa,r,i,l)}}class p8 extends So{constructor(r,i,l){super(La,r,i,l),this.core=r}}class v8 extends Bi{constructor(r,i,l){const f=r.createOutgoingRequestMessage(tt.SUBSCRIBE,l);super(Pa,r.userAgentCore,f,i),this.dialog=r}waitNotifyStop(){}receiveResponse(r){if(r.statusCode&&r.statusCode>=200&&r.statusCode<300){const i=r.getHeader("Expires");if(!i)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else{const l=Number(i);this.dialog.subscriptionExpires>l&&(this.dialog.subscriptionExpires=l)}}r.statusCode&&r.statusCode>=400&&r.statusCode<700&&[404,405,410,416,480,481,482,483,484,485,489,501,604].includes(r.statusCode)&&this.dialog.terminate(),super.receiveResponse(r)}}class ew extends Zf{constructor(r,i,l,f,p,v){super(f,p),this.delegate=v,this._autoRefresh=!1,this._subscriptionEvent=r,this._subscriptionExpires=i,this._subscriptionExpiresInitial=i,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this._subscriptionState=l,this.logger=f.loggerFactory.getLogger("sip.subscribe-dialog"),this.logger.log(`SUBSCRIBE dialog ${this.id} constructed`)}static initialDialogStateForSubscription(r,i){const f=i.getHeaders("record-route"),p=i.parseHeader("contact");if(!p)throw new Error("Contact undefined.");if(!(p instanceof ma))throw new Error("Contact not instance of NameAddrHeader.");const v=p.uri,S=r.cseq,b=void 0,C=r.callId,w=r.fromTag,T=i.fromTag;if(!C)throw new Error("Call id undefined.");if(!w)throw new Error("From tag undefined.");if(!T)throw new Error("To tag undefined.");if(!r.from)throw new Error("From undefined.");if(!r.to)throw new Error("To undefined.");const A=r.from.uri,H=r.to.uri;return{id:C+w+T,early:!1,callId:C,localTag:w,remoteTag:T,localSequenceNumber:S,remoteSequenceNumber:b,localURI:A,remoteURI:H,remoteTarget:v,routeSet:f,secure:!1}}dispose(){super.dispose(),this.N&&(clearTimeout(this.N),this.N=void 0),this.refreshTimerClear(),this.logger.log(`SUBSCRIBE dialog ${this.id} destroyed`)}get autoRefresh(){return this._autoRefresh}set autoRefresh(r){this._autoRefresh=!0,this.refreshTimerSet()}get subscriptionEvent(){return this._subscriptionEvent}get subscriptionExpires(){const r=Math.floor(Date.now()/1e3)-this._subscriptionExpiresLastSet,i=this._subscriptionExpires-r;return Math.max(i,0)}set subscriptionExpires(r){if(r<0)throw new Error("Expires must be greater than or equal to zero.");if(this._subscriptionExpires=r,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this.autoRefresh){const i=this.subscriptionRefresh;(i===void 0||i>=r)&&this.refreshTimerSet()}}get subscriptionExpiresInitial(){return this._subscriptionExpiresInitial}get subscriptionRefresh(){if(this._subscriptionRefresh===void 0||this._subscriptionRefreshLastSet===void 0)return;const r=Math.floor(Date.now()/1e3)-this._subscriptionRefreshLastSet,i=this._subscriptionRefresh-r;return Math.max(i,0)}get subscriptionState(){return this._subscriptionState}receiveRequest(r){if(this.logger.log(`SUBSCRIBE dialog ${this.id} received ${r.method} request`),!this.sequenceGuard(r)){this.logger.log(`SUBSCRIBE dialog ${this.id} rejected out of order ${r.method} request.`);return}switch(super.receiveRequest(r),r.method){case tt.NOTIFY:this.onNotify(r);break;default:this.logger.log(`SUBSCRIBE dialog ${this.id} received unimplemented ${r.method} request`),this.core.replyStateless(r,{statusCode:501});break}}refresh(){const r="Allow: "+mu.toString(),i={};return i.extraHeaders=(i.extraHeaders||[]).slice(),i.extraHeaders.push(r),i.extraHeaders.push("Event: "+this.subscriptionEvent),i.extraHeaders.push("Expires: "+this.subscriptionExpiresInitial),i.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,i)}subscribe(r,i={}){var l;if(this.subscriptionState!==vr.Pending&&this.subscriptionState!==vr.Active)throw new Error(`Invalid state ${this.subscriptionState}. May only re-subscribe while in state "pending" or "active".`);this.logger.log(`SUBSCRIBE dialog ${this.id} sending SUBSCRIBE request`);const f=new v8(this,r,i);return this.N&&(clearTimeout(this.N),this.N=void 0),!((l=i.extraHeaders)===null||l===void 0)&&l.includes("Expires: 0")||(this.N=setTimeout(()=>this.timerN(),oi.TIMER_N)),f}terminate(){this.stateTransition(vr.Terminated),this.onTerminated()}unsubscribe(){const r="Allow: "+mu.toString(),i={};return i.extraHeaders=(i.extraHeaders||[]).slice(),i.extraHeaders.push(r),i.extraHeaders.push("Event: "+this.subscriptionEvent),i.extraHeaders.push("Expires: 0"),i.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,i)}onNotify(r){const i=r.parseHeader("Event").event;if(!i||i!==this.subscriptionEvent){this.core.replyStateless(r,{statusCode:489});return}this.N&&(clearTimeout(this.N),this.N=void 0);const l=r.parseHeader("Subscription-State");if(!l||!l.state){this.core.replyStateless(r,{statusCode:489});return}const f=l.state,p=l.expires?Math.max(l.expires,0):void 0;switch(f){case"pending":this.stateTransition(vr.Pending,p);break;case"active":this.stateTransition(vr.Active,p);break;case"terminated":this.stateTransition(vr.Terminated,p);break;default:this.logger.warn("Unrecognized subscription state.");break}const v=new Tv(this,r);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(v):v.accept()}onRefresh(r){this.delegate&&this.delegate.onRefresh&&this.delegate.onRefresh(r)}onTerminated(){this.delegate&&this.delegate.onTerminated&&this.delegate.onTerminated()}refreshTimerClear(){this.refreshTimer&&(clearTimeout(this.refreshTimer),this.refreshTimer=void 0)}refreshTimerSet(){if(this.refreshTimerClear(),this.autoRefresh&&this.subscriptionExpires>0){const r=this.subscriptionExpires*900;this._subscriptionRefresh=Math.floor(r/1e3),this._subscriptionRefreshLastSet=Math.floor(Date.now()/1e3),this.refreshTimer=setTimeout(()=>{this.refreshTimer=void 0,this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this.onRefresh(this.refresh())},r)}}stateTransition(r,i){const l=()=>{this.logger.warn(`Invalid subscription state transition from ${this.subscriptionState} to ${r}`)};switch(r){case vr.Initial:l();return;case vr.NotifyWait:l();return;case vr.Pending:if(this.subscriptionState!==vr.NotifyWait&&this.subscriptionState!==vr.Pending){l();return}break;case vr.Active:if(this.subscriptionState!==vr.NotifyWait&&this.subscriptionState!==vr.Pending&&this.subscriptionState!==vr.Active){l();return}break;case vr.Terminated:if(this.subscriptionState!==vr.NotifyWait&&this.subscriptionState!==vr.Pending&&this.subscriptionState!==vr.Active){l();return}break;default:l();return}r===vr.Pending&&i&&(this.subscriptionExpires=i),r===vr.Active&&i&&(this.subscriptionExpires=i),r===vr.Terminated&&this.dispose(),this._subscriptionState=r}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE dialog. Timed out waiting for NOTIFY."),this.subscriptionState!==vr.Terminated&&(this.stateTransition(vr.Terminated),this.onTerminated())}}class g8 extends Bi{constructor(r,i,l){const f=i.getHeader("Event");if(!f)throw new Error("Event undefined");const p=i.getHeader("Expires");if(!p)throw new Error("Expires undefined");super(Pa,r,i,l),this.delegate=l,this.subscriberId=i.callId+i.fromTag+f,this.subscriptionExpiresRequested=this.subscriptionExpires=Number(p),this.subscriptionEvent=f,this.subscriptionState=vr.NotifyWait,this.waitNotifyStart()}dispose(){super.dispose()}onNotify(r){const i=r.message.parseHeader("Event").event;if(!i||i!==this.subscriptionEvent){this.logger.warn("Failed to parse event."),r.reject({statusCode:489});return}const l=r.message.parseHeader("Subscription-State");if(!l||!l.state){this.logger.warn("Failed to parse subscription state."),r.reject({statusCode:489});return}const f=l.state;switch(f){case"pending":break;case"active":break;case"terminated":break;default:this.logger.warn(`Invalid subscription state ${f}`),r.reject({statusCode:489});return}if(f!=="terminated"&&!r.message.parseHeader("contact")){this.logger.warn("Failed to parse contact."),r.reject({statusCode:489});return}if(this.dialog)throw new Error("Dialog already created. This implementation only supports install of single subscriptions.");switch(this.waitNotifyStop(),this.subscriptionExpires=l.expires?Math.min(this.subscriptionExpires,Math.max(l.expires,0)):this.subscriptionExpires,f){case"pending":this.subscriptionState=vr.Pending;break;case"active":this.subscriptionState=vr.Active;break;case"terminated":this.subscriptionState=vr.Terminated;break;default:throw new Error(`Unrecognized state ${f}.`)}if(this.subscriptionState!==vr.Terminated){const p=ew.initialDialogStateForSubscription(this.message,r.message);this.dialog=new ew(this.subscriptionEvent,this.subscriptionExpires,this.subscriptionState,this.core,p)}if(this.delegate&&this.delegate.onNotify){const p=r,v=this.dialog;this.delegate.onNotify({request:p,subscription:v})}else r.accept()}waitNotifyStart(){this.N||(this.core.subscribers.set(this.subscriberId,this),this.N=setTimeout(()=>this.timerN(),oi.TIMER_N))}waitNotifyStop(){this.N&&(this.core.subscribers.delete(this.subscriberId),clearTimeout(this.N),this.N=void 0)}receiveResponse(r){if(this.authenticationGuard(r)){if(r.statusCode&&r.statusCode>=200&&r.statusCode<300){const i=r.getHeader("Expires");if(!i)this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");else{const l=Number(i);l>this.subscriptionExpiresRequested&&this.logger.warn("Expires header in a 200-class response to SUBSCRIBE with a higher value than the one in the request"),l<this.subscriptionExpires&&(this.subscriptionExpires=l)}this.dialog&&this.dialog.subscriptionExpires>this.subscriptionExpires&&(this.dialog.subscriptionExpires=this.subscriptionExpires)}r.statusCode&&r.statusCode>=300&&r.statusCode<700&&this.waitNotifyStop(),super.receiveResponse(r)}}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE user agent client. Timed out waiting for NOTIFY."),this.waitNotifyStop(),this.delegate&&this.delegate.onNotifyTimeout&&this.delegate.onNotifyTimeout()}}class m8 extends So{constructor(r,i,l){super(La,r,i,l),this.core=r}}const tw=["application/sdp","application/dtmf-relay"];class y8{constructor(r,i={}){this.userAgentClients=new Map,this.userAgentServers=new Map,this.configuration=r,this.delegate=i,this.dialogs=new Map,this.subscribers=new Map,this.logger=r.loggerFactory.getLogger("sip.user-agent-core")}dispose(){this.reset()}reset(){this.dialogs.forEach(r=>r.dispose()),this.dialogs.clear(),this.subscribers.forEach(r=>r.dispose()),this.subscribers.clear(),this.userAgentClients.forEach(r=>r.dispose()),this.userAgentClients.clear(),this.userAgentServers.forEach(r=>r.dispose()),this.userAgentServers.clear()}get loggerFactory(){return this.configuration.loggerFactory}get transport(){const r=this.configuration.transportAccessor();if(!r)throw new Error("Transport undefined.");return r}invite(r,i){return new f8(this,r,i)}message(r,i){return new ZS(this,r,i)}publish(r,i){return new d8(this,r,i)}register(r,i){return new h8(this,r,i)}subscribe(r,i){return new g8(this,r,i)}request(r,i){return new Bi(Pa,this,r,i)}makeOutgoingRequestMessage(r,i,l,f,p,v,S){const b=this.configuration.sipjsId,C=this.configuration.displayName,w=this.configuration.viaForceRport,T=this.configuration.hackViaTcp,A=this.configuration.supportedOptionTags.slice();r===tt.REGISTER&&A.push("path","gruu"),r===tt.INVITE&&(this.configuration.contact.pubGruu||this.configuration.contact.tempGruu)&&A.push("gruu");const H=this.configuration.routeSet,P=this.configuration.userAgentHeaderFieldValue,j=this.configuration.viaHost,B=Object.assign(Object.assign({},{callIdPrefix:b,forceRport:w,fromDisplayName:C,hackViaTcp:T,optionTags:A,routeSet:H,userAgentString:P,viaHost:j}),p);return new Dc(r,i,l,f,B,v,S)}receiveIncomingRequestFromTransport(r){this.receiveRequestFromTransport(r)}receiveIncomingResponseFromTransport(r){this.receiveResponseFromTransport(r)}replyStateless(r,i){const l=this.configuration.userAgentHeaderFieldValue,f=this.configuration.supportedOptionTagsResponse;i=Object.assign(Object.assign({},i),{userAgent:l,supported:f});const p=GS(r,i);return this.transport.send(p.message).catch(v=>{v instanceof Error&&this.logger.error(v.message),this.logger.error(`Transport error occurred sending stateless reply to ${r.method} request.`)}),p}receiveRequestFromTransport(r){const i=r.viaBranch,l=this.userAgentServers.get(i);if(r.method===tt.ACK&&l&&l.transaction.state===pe.Accepted&&l instanceof Ux){this.logger.warn(`Discarding out of dialog ACK after 2xx response sent on transaction ${i}.`);return}if(r.method===tt.CANCEL){l?(this.replyStateless(r,{statusCode:200}),l.transaction instanceof ya&&l.transaction.state===pe.Proceeding&&l instanceof Ux&&l.receiveCancel(r)):this.replyStateless(r,{statusCode:481});return}if(l){l.transaction.receiveRequest(r);return}this.receiveRequest(r)}receiveRequest(r){if(!mu.includes(r.method)){const f="Allow: "+mu.toString();this.replyStateless(r,{statusCode:405,extraHeaders:[f]});return}if(!r.ruri)throw new Error("Request-URI undefined.");if(r.ruri.scheme!=="sip"){this.replyStateless(r,{statusCode:416});return}const i=r.ruri,l=f=>!!f&&f.user===i.user;if(!l(this.configuration.aor)&&!(l(this.configuration.contact.uri)||l(this.configuration.contact.pubGruu)||l(this.configuration.contact.tempGruu))){this.logger.warn("Request-URI does not point to us."),r.method!==tt.ACK&&this.replyStateless(r,{statusCode:404});return}if(r.method===tt.INVITE&&!r.hasHeader("Contact")){this.replyStateless(r,{statusCode:400,reasonPhrase:"Missing Contact Header"});return}if(!r.toTag){const f=r.viaBranch;if(!this.userAgentServers.has(f)&&Array.from(this.userAgentServers.values()).some(v=>v.transaction.request.fromTag===r.fromTag&&v.transaction.request.callId===r.callId&&v.transaction.request.cseq===r.cseq)){this.replyStateless(r,{statusCode:482});return}}r.toTag?this.receiveInsideDialogRequest(r):this.receiveOutsideDialogRequest(r)}receiveInsideDialogRequest(r){if(r.method===tt.NOTIFY){const f=r.parseHeader("Event");if(!f||!f.event){this.replyStateless(r,{statusCode:489});return}const p=r.callId+r.toTag+f.event,v=this.subscribers.get(p);if(v){const S=new Tv(this,r);v.onNotify(S);return}}const i=r.callId+r.toTag+r.fromTag,l=this.dialogs.get(i);if(l){if(r.method===tt.OPTIONS){const f="Allow: "+mu.toString(),p="Accept: "+tw.toString();this.replyStateless(r,{statusCode:200,extraHeaders:[f,p]});return}l.receiveRequest(r);return}r.method!==tt.ACK&&this.replyStateless(r,{statusCode:481})}receiveOutsideDialogRequest(r){switch(r.method){case tt.ACK:break;case tt.BYE:this.replyStateless(r,{statusCode:481});break;case tt.CANCEL:throw new Error(`Unexpected out of dialog request method ${r.method}.`);case tt.INFO:this.replyStateless(r,{statusCode:405});break;case tt.INVITE:{const i=new Ux(this,r);this.delegate.onInvite?this.delegate.onInvite(i):i.reject()}break;case tt.MESSAGE:{const i=new XS(this,r);this.delegate.onMessage?this.delegate.onMessage(i):i.accept()}break;case tt.NOTIFY:{const i=new Tv(this,r);this.delegate.onNotify?this.delegate.onNotify(i):i.reject({statusCode:405})}break;case tt.OPTIONS:{const i="Allow: "+mu.toString(),l="Accept: "+tw.toString();this.replyStateless(r,{statusCode:200,extraHeaders:[i,l]})}break;case tt.REFER:{const i=new JS(this,r);this.delegate.onRefer?this.delegate.onRefer(i):i.reject({statusCode:405})}break;case tt.REGISTER:{const i=new p8(this,r);this.delegate.onRegister?this.delegate.onRegister(i):i.reject({statusCode:405})}break;case tt.SUBSCRIBE:{const i=new m8(this,r);this.delegate.onSubscribe?this.delegate.onSubscribe(i):i.reject({statusCode:480})}break;default:throw new Error(`Unexpected out of dialog request method ${r.method}.`)}}receiveResponseFromTransport(r){if(r.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response, dropping");return}const i=r.viaBranch+r.method,l=this.userAgentClients.get(i);l?l.transaction.receiveResponse(r):this.logger.warn(`Discarding unmatched ${r.statusCode} response to ${r.method} ${i}.`)}}function x8(){return o=>!o.audio&&!o.video?Promise.resolve(new MediaStream):navigator.mediaDevices===void 0?Promise.reject(new Error("Media devices not available in insecure contexts.")):navigator.mediaDevices.getUserMedia.call(navigator.mediaDevices,o)}function E8(){return{bundlePolicy:"balanced",certificates:void 0,iceCandidatePoolSize:0,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require"}}class hl{constructor(r,i,l){r.debug("SessionDescriptionHandler.constructor"),this.logger=r,this.mediaStreamFactory=i,this.sessionDescriptionHandlerConfiguration=l,this._localMediaStream=new MediaStream,this._remoteMediaStream=new MediaStream,this._peerConnection=new RTCPeerConnection(l==null?void 0:l.peerConnectionConfiguration),this.initPeerConnectionEventHandlers()}get localMediaStream(){return this._localMediaStream}get remoteMediaStream(){return this._remoteMediaStream}get dataChannel(){return this._dataChannel}get peerConnection(){return this._peerConnection}get peerConnectionDelegate(){return this._peerConnectionDelegate}set peerConnectionDelegate(r){this._peerConnectionDelegate=r}static dispatchAddTrackEvent(r,i){r.dispatchEvent(new MediaStreamTrackEvent("addtrack",{track:i}))}static dispatchRemoveTrackEvent(r,i){r.dispatchEvent(new MediaStreamTrackEvent("removetrack",{track:i}))}close(){this.logger.debug("SessionDescriptionHandler.close"),this._peerConnection!==void 0&&(this._peerConnection.getReceivers().forEach(r=>{r.track&&r.track.stop()}),this._peerConnection.getSenders().forEach(r=>{r.track&&r.track.stop()}),this._dataChannel&&this._dataChannel.close(),this._peerConnection.close(),this._peerConnection=void 0)}enableReceiverTracks(r){const i=this.peerConnection;if(!i)throw new Error("Peer connection closed.");i.getReceivers().forEach(l=>{l.track&&(l.track.enabled=r)})}enableSenderTracks(r){const i=this.peerConnection;if(!i)throw new Error("Peer connection closed.");i.getSenders().forEach(l=>{l.track&&(l.track.enabled=r)})}getDescription(r,i){var l,f;if(this.logger.debug("SessionDescriptionHandler.getDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=r==null?void 0:r.onDataChannel;const p=(l=r==null?void 0:r.offerOptions)===null||l===void 0?void 0:l.iceRestart,v=(r==null?void 0:r.iceGatheringTimeout)===void 0?(f=this.sessionDescriptionHandlerConfiguration)===null||f===void 0?void 0:f.iceGatheringTimeout:r==null?void 0:r.iceGatheringTimeout;return this.getLocalMediaStream(r).then(()=>this.updateDirection(r)).then(()=>this.createDataChannel(r)).then(()=>this.createLocalOfferOrAnswer(r)).then(S=>this.applyModifiers(S,i)).then(S=>this.setLocalSessionDescription(S)).then(()=>this.waitForIceGatheringComplete(p,v)).then(()=>this.getLocalSessionDescription()).then(S=>({body:S.sdp,contentType:"application/sdp"})).catch(S=>{throw this.logger.error("SessionDescriptionHandler.getDescription failed - "+S),S})}hasDescription(r){return this.logger.debug("SessionDescriptionHandler.hasDescription"),r==="application/sdp"}iceGatheringComplete(){this.logger.debug("SessionDescriptionHandler.iceGatheringComplete"),this.iceGatheringCompleteTimeoutId!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - clearing timeout"),clearTimeout(this.iceGatheringCompleteTimeoutId),this.iceGatheringCompleteTimeoutId=void 0),this.iceGatheringCompletePromise!==void 0&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - resolving promise"),this.iceGatheringCompleteResolve&&this.iceGatheringCompleteResolve(),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0)}sendDtmf(r,i){if(this.logger.debug("SessionDescriptionHandler.sendDtmf"),this._peerConnection===void 0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - peer connection closed"),!1;const l=this._peerConnection.getSenders();if(l.length===0)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no senders"),!1;const f=l[0].dtmf;if(!f)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no DTMF sender"),!1;const p=i==null?void 0:i.duration,v=i==null?void 0:i.interToneGap;try{f.insertDTMF(r,p,v)}catch(S){return this.logger.error(S.toString()),!1}return this.logger.log("SessionDescriptionHandler.sendDtmf sent via RTP: "+r.toString()),!0}setDescription(r,i,l){if(this.logger.debug("SessionDescriptionHandler.setDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=i==null?void 0:i.onDataChannel;const f=this._peerConnection.signalingState==="have-local-offer"?"answer":"offer";return this.getLocalMediaStream(i).then(()=>this.applyModifiers({sdp:r,type:f},l)).then(p=>this.setRemoteSessionDescription(p)).catch(p=>{throw this.logger.error("SessionDescriptionHandler.setDescription failed - "+p),p})}applyModifiers(r,i){return this.logger.debug("SessionDescriptionHandler.applyModifiers"),!i||i.length===0?Promise.resolve(r):i.reduce((l,f)=>l.then(f),Promise.resolve(r)).then(l=>{if(this.logger.debug("SessionDescriptionHandler.applyModifiers - modified sdp"),!l.sdp||!l.type)throw new Error("Invalid SDP.");return{sdp:l.sdp,type:l.type}})}createDataChannel(r){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));if((r==null?void 0:r.dataChannel)!==!0||this._dataChannel)return Promise.resolve();switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.createDataChannel - creating data channel");try{return this._dataChannel=this._peerConnection.createDataChannel((r==null?void 0:r.dataChannelLabel)||"",r==null?void 0:r.dataChannelOptions),this.onDataChannel&&this.onDataChannel(this._dataChannel),Promise.resolve()}catch(i){return Promise.reject(i)}case"have-remote-offer":return Promise.resolve();case"have-local-offer":case"have-local-pranswer":case"have-remote-pranswer":case"closed":default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}createLocalOfferOrAnswer(r){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP offer"),this._peerConnection.createOffer(r==null?void 0:r.offerOptions);case"have-remote-offer":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP answer"),this._peerConnection.createAnswer(r==null?void 0:r.answerOptions);case"have-local-offer":case"have-local-pranswer":case"have-remote-pranswer":case"closed":default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}getLocalMediaStream(r){if(this.logger.debug("SessionDescriptionHandler.getLocalMediaStream"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));let i=Object.assign({},r==null?void 0:r.constraints);if(this.localMediaStreamConstraints){if(i.audio=i.audio||this.localMediaStreamConstraints.audio,i.video=i.video||this.localMediaStreamConstraints.video,JSON.stringify(this.localMediaStreamConstraints.audio)===JSON.stringify(i.audio)&&JSON.stringify(this.localMediaStreamConstraints.video)===JSON.stringify(i.video))return Promise.resolve()}else i.audio===void 0&&i.video===void 0&&(i={audio:!0});return this.localMediaStreamConstraints=i,this.mediaStreamFactory(i,this,r).then(l=>this.setLocalMediaStream(l))}setLocalMediaStream(r){if(this.logger.debug("SessionDescriptionHandler.setLocalMediaStream"),!this._peerConnection)throw new Error("Peer connection undefined.");const i=this._peerConnection,l=this._localMediaStream,f=[],p=b=>{const C=b.kind;if(C!=="audio"&&C!=="video")throw new Error(`Unknown new track kind ${C}.`);const w=i.getSenders().find(T=>T.track&&T.track.kind===C);w?f.push(new Promise(T=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - replacing sender ${C} track`),T()}).then(()=>w.replaceTrack(b).then(()=>{const T=l.getTracks().find(A=>A.kind===C);T&&(T.stop(),l.removeTrack(T),hl.dispatchRemoveTrackEvent(l,T)),l.addTrack(b),hl.dispatchAddTrackEvent(l,b)}).catch(T=>{throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to replace sender ${C} track`),T}))):f.push(new Promise(T=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - adding sender ${C} track`),T()}).then(()=>{try{i.addTrack(b,l)}catch(T){throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to add sender ${C} track`),T}l.addTrack(b),hl.dispatchAddTrackEvent(l,b)}))},v=r.getAudioTracks();v.length&&p(v[0]);const S=r.getVideoTracks();return S.length&&p(S[0]),f.reduce((b,C)=>b.then(()=>C),Promise.resolve())}getLocalSessionDescription(){if(this.logger.debug("SessionDescriptionHandler.getLocalSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));const r=this._peerConnection.localDescription;return r?Promise.resolve(r):Promise.reject(new Error("Failed to get local session description"))}setLocalSessionDescription(r){return this.logger.debug("SessionDescriptionHandler.setLocalSessionDescription"),this._peerConnection===void 0?Promise.reject(new Error("Peer connection closed.")):this._peerConnection.setLocalDescription(r)}setRemoteSessionDescription(r){if(this.logger.debug("SessionDescriptionHandler.setRemoteSessionDescription"),this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));const i=r.sdp;let l;switch(this._peerConnection.signalingState){case"stable":l="offer";break;case"have-local-offer":l="answer";break;case"have-local-pranswer":case"have-remote-offer":case"have-remote-pranswer":case"closed":default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return i?this._peerConnection.setRemoteDescription({sdp:i,type:l}):(this.logger.error("SessionDescriptionHandler.setRemoteSessionDescription failed - cannot set null sdp"),Promise.reject(new Error("SDP is undefined")))}setRemoteTrack(r){this.logger.debug("SessionDescriptionHandler.setRemoteTrack");const i=this._remoteMediaStream;i.getTrackById(r.id)?this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - have remote ${r.kind} track`):r.kind==="audio"?(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${r.kind} track`),i.getAudioTracks().forEach(l=>{l.stop(),i.removeTrack(l),hl.dispatchRemoveTrackEvent(i,l)}),i.addTrack(r),hl.dispatchAddTrackEvent(i,r)):r.kind==="video"&&(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${r.kind} track`),i.getVideoTracks().forEach(l=>{l.stop(),i.removeTrack(l),hl.dispatchRemoveTrackEvent(i,l)}),i.addTrack(r),hl.dispatchAddTrackEvent(i,r))}updateDirection(r){if(this._peerConnection===void 0)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.updateDirection - setting offer direction");{const i=l=>{switch(l){case"inactive":return r!=null&&r.hold?"inactive":"recvonly";case"recvonly":return r!=null&&r.hold?"inactive":"recvonly";case"sendonly":return r!=null&&r.hold?"sendonly":"sendrecv";case"sendrecv":return r!=null&&r.hold?"sendonly":"sendrecv";case"stopped":return"stopped";default:throw new Error("Should never happen")}};this._peerConnection.getTransceivers().forEach(l=>{if(l.direction){const f=i(l.direction);l.direction!==f&&(l.direction=f)}})}break;case"have-remote-offer":this.logger.debug("SessionDescriptionHandler.updateDirection - setting answer direction");{const i=(()=>{const f=this._peerConnection.remoteDescription;if(!f)throw new Error("Failed to read remote offer");const p=/a=sendrecv\r\n|a=sendonly\r\n|a=recvonly\r\n|a=inactive\r\n/.exec(f.sdp);if(p)switch(p[0]){case`a=inactive\r
|
|
403
403
|
`:return"inactive";case`a=recvonly\r
|
|
404
404
|
`:return"recvonly";case`a=sendonly\r
|
|
405
405
|
`:return"sendonly";case`a=sendrecv\r
|
|
@@ -412,9 +412,9 @@ React keys must be passed directly to JSX without using spread:
|
|
|
412
412
|
`)}else f=l,this.configuration.traceSip===!0&&this.logger.log(`Received WebSocket text message:
|
|
413
413
|
|
|
414
414
|
`+f+`
|
|
415
|
-
`);if(this.state!==Rt.Connected){this.logger.warn("Received message while not connected, discarding...");return}if(this.onMessage)try{this.onMessage(f)}catch(p){throw this.logger.error(p.toString()),this.logger.error("Exception thrown by onMessage callback"),p}}onWebSocketOpen(r,i){i===this._ws&&this._state===Rt.Connecting&&(this.logger.log(`WebSocket opened ${this.server}`),this.transitionState(Rt.Connected))}transitionLoopDetectedError(r){let i="A state transition loop has been detected.";return i+=` An attempt to transition from ${this._state} to ${r} before the prior transition completed.`,i+=" Perhaps you are synchronously calling connect() or disconnect() from a callback or state change handler?",this.logger.error(i),new Zh("Loop detected.")}transitionState(r,i){const l=()=>{throw new Error(`Invalid state transition from ${this._state} to ${r}`)};if(this.transitioningState)throw this.transitionLoopDetectedError(r);switch(this.transitioningState=!0,this._state){case Rt.Connecting:r!==Rt.Connected&&r!==Rt.Disconnecting&&r!==Rt.Disconnected&&l();break;case Rt.Connected:r!==Rt.Disconnecting&&r!==Rt.Disconnected&&l();break;case Rt.Disconnecting:r!==Rt.Connecting&&r!==Rt.Disconnected&&l();break;case Rt.Disconnected:r!==Rt.Connecting&&l();break;default:throw new Error("Unknown state.")}const f=this._state;this._state=r;const p=this.connectResolve,v=this.connectReject;f===Rt.Connecting&&(this.connectPromise=void 0,this.connectResolve=void 0,this.connectReject=void 0);const S=this.disconnectResolve,
|
|
415
|
+
`);if(this.state!==Rt.Connected){this.logger.warn("Received message while not connected, discarding...");return}if(this.onMessage)try{this.onMessage(f)}catch(p){throw this.logger.error(p.toString()),this.logger.error("Exception thrown by onMessage callback"),p}}onWebSocketOpen(r,i){i===this._ws&&this._state===Rt.Connecting&&(this.logger.log(`WebSocket opened ${this.server}`),this.transitionState(Rt.Connected))}transitionLoopDetectedError(r){let i="A state transition loop has been detected.";return i+=` An attempt to transition from ${this._state} to ${r} before the prior transition completed.`,i+=" Perhaps you are synchronously calling connect() or disconnect() from a callback or state change handler?",this.logger.error(i),new Zh("Loop detected.")}transitionState(r,i){const l=()=>{throw new Error(`Invalid state transition from ${this._state} to ${r}`)};if(this.transitioningState)throw this.transitionLoopDetectedError(r);switch(this.transitioningState=!0,this._state){case Rt.Connecting:r!==Rt.Connected&&r!==Rt.Disconnecting&&r!==Rt.Disconnected&&l();break;case Rt.Connected:r!==Rt.Disconnecting&&r!==Rt.Disconnected&&l();break;case Rt.Disconnecting:r!==Rt.Connecting&&r!==Rt.Disconnected&&l();break;case Rt.Disconnected:r!==Rt.Connecting&&l();break;default:throw new Error("Unknown state.")}const f=this._state;this._state=r;const p=this.connectResolve,v=this.connectReject;f===Rt.Connecting&&(this.connectPromise=void 0,this.connectResolve=void 0,this.connectReject=void 0);const S=this.disconnectResolve,b=this.disconnectReject;if(f===Rt.Disconnecting&&(this.disconnectPromise=void 0,this.disconnectResolve=void 0,this.disconnectReject=void 0),this.connectTimeout&&(clearTimeout(this.connectTimeout),this.connectTimeout=void 0),this.logger.log(`Transitioned from ${f} to ${this._state}`),this._stateEventEmitter.emit(this._state),r===Rt.Connected&&(this.startSendingKeepAlives(),this.onConnect))try{this.onConnect()}catch(C){throw this.logger.error(C.toString()),this.logger.error("Exception thrown by onConnect callback"),C}if(f===Rt.Connected&&(this.stopSendingKeepAlives(),this.onDisconnect))try{i?this.onDisconnect(i):this.onDisconnect()}catch(C){throw this.logger.error(C.toString()),this.logger.error("Exception thrown by onDisconnect callback"),C}if(f===Rt.Connecting){if(!p)throw new Error("Connect resolve undefined.");if(!v)throw new Error("Connect reject undefined.");r===Rt.Connected?p():v(i||new Error("Connect aborted."))}if(f===Rt.Disconnecting){if(!S)throw new Error("Disconnect resolve undefined.");if(!b)throw new Error("Disconnect reject undefined.");r===Rt.Disconnected?S():b(i||new Error("Disconnect aborted."))}this.transitioningState=!1}clearKeepAliveTimeout(){this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveDebounceTimeout=void 0}sendKeepAlive(){return this.keepAliveDebounceTimeout?Promise.resolve():(this.keepAliveDebounceTimeout=setTimeout(()=>{this.clearKeepAliveTimeout()},this.configuration.keepAliveDebounce*1e3),this.send(`\r
|
|
416
416
|
\r
|
|
417
|
-
`))}startSendingKeepAlives(){const r=i=>{const l=i*.8;return 1e3*(Math.random()*(i-l)+l)};this.configuration.keepAliveInterval&&!this.keepAliveInterval&&(this.keepAliveInterval=setInterval(()=>{this.sendKeepAlive(),this.startSendingKeepAlives()},r(this.configuration.keepAliveInterval)))}stopSendingKeepAlives(){this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveInterval=void 0,this.keepAliveDebounceTimeout=void 0}}Av.defaultOptions={server:"",connectionTimeout:5,keepAliveInterval:0,keepAliveDebounce:10,traceSip:!0};class Tc{constructor(r={}){if(this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this._state=pi.Stopped,this._stateEventEmitter=new Xh,this.delegate=r.delegate,this.options=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tc.defaultOptions()),{sipjsId:_c(5)}),{uri:new xo("sip","anonymous."+_c(6),"anonymous.invalid")}),{viaHost:_c(12)+".invalid"}),Tc.stripUndefinedProperties(r)),this.options.hackIpInContact)if(typeof this.options.hackIpInContact=="boolean"&&this.options.hackIpInContact){const f=Math.floor(Math.random()*254+1);this.options.viaHost="192.0.2."+f}else this.options.hackIpInContact&&(this.options.viaHost=this.options.hackIpInContact);switch(this.loggerFactory=new XR,this.logger=this.loggerFactory.getLogger("sip.UserAgent"),this.loggerFactory.builtinEnabled=this.options.logBuiltinEnabled,this.loggerFactory.connector=this.options.logConnector,this.options.logLevel){case"error":this.loggerFactory.level=li.error;break;case"warn":this.loggerFactory.level=li.warn;break;case"log":this.loggerFactory.level=li.log;break;case"debug":this.loggerFactory.level=li.debug;break}if(this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(i=>{const l=this.options[i];switch(i){case"uri":case"sessionDescriptionHandlerFactory":this.logger.log("· "+i+": "+l);break;case"authorizationPassword":this.logger.log("· "+i+": NOT SHOWN");break;case"transportConstructor":this.logger.log("· "+i+": "+l.name);break;default:this.logger.log("· "+i+": "+JSON.stringify(l))}})),this.options.transportOptions){const i=this.options.transportOptions,l=i.maxReconnectionAttempts,f=i.reconnectionTimeout;l!==void 0&&this.logger.warn('The transport option "maxReconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),f!==void 0&&this.logger.warn('The transport option "reconnectionTimeout" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),r.reconnectionDelay===void 0&&f!==void 0&&(this.options.reconnectionDelay=f),r.reconnectionAttempts===void 0&&l!==void 0&&(this.options.reconnectionAttempts=l)}if(r.reconnectionDelay!==void 0&&this.logger.warn('The user agent option "reconnectionDelay" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),r.reconnectionAttempts!==void 0&&this.logger.warn('The user agent option "reconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),this._transport=new this.options.transportConstructor(this.getLogger("sip.Transport"),this.options.transportOptions),this.initTransportCallbacks(),this._contact=this.initContact(),this._instanceId=this.options.instanceId?this.options.instanceId:Tc.newUUID(),zn.parse(this._instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");this._userAgentCore=this.initCore()}static makeURI(r){return zn.URIParse(r)}static defaultOptions(){return{allowLegacyNotifications:!1,authorizationHa1:"",authorizationPassword:"",authorizationUsername:"",delegate:{},contactName:"",contactParams:{transport:"ws"},displayName:"",forceRport:!1,gracefulShutdown:!0,hackAllowUnregisteredOptionTags:!1,hackIpInContact:!1,hackViaTcp:!1,instanceId:"",instanceIdAlwaysAdded:!1,logBuiltinEnabled:!0,logConfiguration:!0,logConnector:()=>{},logLevel:"log",noAnswerTimeout:60,preloadedRouteSet:[],reconnectionAttempts:0,reconnectionDelay:4,sendInitialProvisionalResponse:!0,sessionDescriptionHandlerFactory:C8(),sessionDescriptionHandlerFactoryOptions:{},sipExtension100rel:Ps.Unsupported,sipExtensionReplaces:Ps.Unsupported,sipExtensionExtraSupported:[],sipjsId:"",transportConstructor:Av,transportOptions:{},uri:new xo("sip","anonymous","anonymous.invalid"),userAgentString:"SIP.js/"+$R,viaHost:""}}static newUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{const l=Math.floor(Math.random()*16);return(i==="x"?l:l%4+8).toString(16)})}static stripUndefinedProperties(r){return Object.keys(r).reduce((i,l)=>(r[l]!==void 0&&(i[l]=r[l]),i),{})}get configuration(){return this.options}get contact(){return this._contact}get instanceId(){return this._instanceId}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get transport(){return this._transport}get userAgentCore(){return this._userAgentCore}getLogger(r,i){return this.loggerFactory.getLogger(r,i)}getLoggerFactory(){return this.loggerFactory}isConnected(){return this.transport.isConnected()}reconnect(){return this.state===pi.Stopped?Promise.reject(new Error("User agent stopped.")):Promise.resolve().then(()=>this.transport.connect())}start(){return this.state===pi.Started?(this.logger.warn("User agent already started"),Promise.resolve()):(this.logger.log(`Starting ${this.configuration.uri}`),this.transitionState(pi.Started),this.transport.connect())}async stop(){if(this.state===pi.Stopped)return this.logger.warn("User agent already stopped"),Promise.resolve();if(this.logger.log(`Stopping ${this.configuration.uri}`),!this.options.gracefulShutdown)return this.logger.log("Dispose of transport"),this.transport.dispose().catch(S=>{throw this.logger.error(S.message),S}),this.logger.log("Dispose of core"),this.userAgentCore.dispose(),this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this.transitionState(pi.Stopped),Promise.resolve();const r=Object.assign({},this._publishers),i=Object.assign({},this._registerers),l=Object.assign({},this._sessions),f=Object.assign({},this._subscriptions),p=this.transport,v=this.userAgentCore;this.logger.log("Dispose of registerers");for(const S in i)i[S]&&await i[S].dispose().catch(w=>{throw this.logger.error(w.message),delete this._registerers[S],w});this.logger.log("Dispose of sessions");for(const S in l)l[S]&&await l[S].dispose().catch(w=>{throw this.logger.error(w.message),delete this._sessions[S],w});this.logger.log("Dispose of subscriptions");for(const S in f)f[S]&&await f[S].dispose().catch(w=>{throw this.logger.error(w.message),delete this._subscriptions[S],w});this.logger.log("Dispose of publishers");for(const S in r)r[S]&&await r[S].dispose().catch(w=>{throw this.logger.error(w.message),delete this._publishers[S],w});this.logger.log("Dispose of transport"),await p.dispose().catch(S=>{throw this.logger.error(S.message),S}),this.logger.log("Dispose of core"),v.dispose(),this.transitionState(pi.Stopped)}_makeInviter(r,i){return new VS(this,r,i)}attemptReconnection(r=1){const i=this.options.reconnectionAttempts,l=this.options.reconnectionDelay;if(r>i){this.logger.log("Maximum reconnection attempts reached");return}this.logger.log(`Reconnection attempt ${r} of ${i} - trying`),setTimeout(()=>{this.reconnect().then(()=>{this.logger.log(`Reconnection attempt ${r} of ${i} - succeeded`)}).catch(f=>{this.logger.error(f.message),this.logger.log(`Reconnection attempt ${r} of ${i} - failed`),this.attemptReconnection(++r)})},r===1?0:l*1e3)}initContact(){const r=this.options.contactName!==""?this.options.contactName:_c(8),i=this.options.contactParams;return{pubGruu:void 0,tempGruu:void 0,uri:new xo("sip",r,this.options.viaHost,void 0,i),toString:(f={})=>{const p=f.anonymous||!1,v=f.outbound||!1,S=f.register||!1;let w="<";return p?w+=this.contact.tempGruu||`sip:anonymous@anonymous.invalid;transport=${i.transport?i.transport:"ws"}`:S?w+=this.contact.uri:w+=this.contact.pubGruu||this.contact.uri,v&&(w+=";ob"),w+=">",this.options.instanceIdAlwaysAdded&&(w+=';+sip.instance="<urn:uuid:'+this._instanceId+'>"'),w}}}initCore(){let r=[];r.push("outbound"),this.options.sipExtension100rel===Ps.Supported&&r.push("100rel"),this.options.sipExtensionReplaces===Ps.Supported&&r.push("replaces"),this.options.sipExtensionExtraSupported&&r.push(...this.options.sipExtensionExtraSupported),this.options.hackAllowUnregisteredOptionTags||(r=r.filter(p=>KR[p])),r=Array.from(new Set(r));const i=r.slice();(this.contact.pubGruu||this.contact.tempGruu)&&i.push("gruu");const l={aor:this.options.uri,contact:this.contact,displayName:this.options.displayName,loggerFactory:this.loggerFactory,hackViaTcp:this.options.hackViaTcp,routeSet:this.options.preloadedRouteSet,supportedOptionTags:r,supportedOptionTagsResponse:i,sipjsId:this.options.sipjsId,userAgentHeaderFieldValue:this.options.userAgentString,viaForceRport:this.options.forceRport,viaHost:this.options.viaHost,authenticationFactory:()=>{const p=this.options.authorizationUsername?this.options.authorizationUsername:this.options.uri.user,v=this.options.authorizationPassword?this.options.authorizationPassword:void 0,S=this.options.authorizationHa1?this.options.authorizationHa1:void 0;return new ZR(this.getLoggerFactory(),S,p,v)},transportAccessor:()=>this.transport},f={onInvite:p=>{var v;const S=new QR(this,p);if(p.delegate={onCancel:w=>{S._onCancel(w)},onTransportError:w=>{this.logger.error("A transport error has occurred while handling an incoming INVITE request.")}},p.trying(),this.options.sipExtensionReplaces!==Ps.Unsupported){const C=p.message.parseHeader("replaces");if(C){const b=C.call_id;if(typeof b!="string")throw new Error("Type of call id is not string");const R=C.replaces_to_tag;if(typeof R!="string")throw new Error("Type of to tag is not string");const T=C.replaces_from_tag;if(typeof T!="string")throw new Error("type of from tag is not string");const H=b+R+T,P=this.userAgentCore.dialogs.get(H);if(!P){S.reject({statusCode:481});return}if(!P.early&&C.early_only===!0){S.reject({statusCode:486});return}const j=this._sessions[b+T]||this._sessions[b+R]||void 0;if(!j)throw new Error("Session does not exist.");S._replacee=j}}if(!((v=this.delegate)===null||v===void 0)&&v.onInvite){if(S.autoSendAnInitialProvisionalResponse){S.progress().then(()=>{var w;if(((w=this.delegate)===null||w===void 0?void 0:w.onInvite)===void 0)throw new Error("onInvite undefined.");this.delegate.onInvite(S)});return}this.delegate.onInvite(S);return}S.reject({statusCode:486})},onMessage:p=>{if(this.delegate&&this.delegate.onMessage){const v=new YS(p);this.delegate.onMessage(v)}else p.accept()},onNotify:p=>{if(this.delegate&&this.delegate.onNotify){const v=new Px(p);this.delegate.onNotify(v)}else this.options.allowLegacyNotifications?p.accept():p.reject({statusCode:481})},onRefer:p=>{this.logger.warn("Received an out of dialog REFER request"),this.delegate&&this.delegate.onReferRequest?this.delegate.onReferRequest(p):p.reject({statusCode:405})},onRegister:p=>{this.logger.warn("Received an out of dialog REGISTER request"),this.delegate&&this.delegate.onRegisterRequest?this.delegate.onRegisterRequest(p):p.reject({statusCode:405})},onSubscribe:p=>{this.logger.warn("Received an out of dialog SUBSCRIBE request"),this.delegate&&this.delegate.onSubscribeRequest?this.delegate.onSubscribeRequest(p):p.reject({statusCode:405})}};return new y8(l,f)}initTransportCallbacks(){this.transport.onConnect=()=>this.onTransportConnect(),this.transport.onDisconnect=r=>this.onTransportDisconnect(r),this.transport.onMessage=r=>this.onTransportMessage(r)}onTransportConnect(){this.state!==pi.Stopped&&this.delegate&&this.delegate.onConnect&&this.delegate.onConnect()}onTransportDisconnect(r){this.state!==pi.Stopped&&(this.delegate&&this.delegate.onDisconnect&&this.delegate.onDisconnect(r),r&&this.options.reconnectionAttempts>0&&this.attemptReconnection())}onTransportMessage(r){const i=_v.parseMessage(r,this.getLogger("sip.Parser"));if(!i){this.logger.warn("Failed to parse incoming message. Dropping.");return}if(this.state===pi.Stopped&&i instanceof Qf){this.logger.warn(`Received ${i.method} request while stopped. Dropping.`);return}const l=()=>{const f=["from","to","call_id","cseq","via"];for(const p of f)if(!i.hasHeader(p))return this.logger.warn(`Missing mandatory header field : ${p}.`),!1;return!0};if(i instanceof Qf){if(!l()){this.logger.warn("Request missing mandatory header field. Dropping.");return}if(!i.toTag&&i.callId.substr(0,5)===this.options.sipjsId){this.userAgentCore.replyStateless(i,{statusCode:482});return}const f=Jh(i.body),p=i.getHeader("content-length");if(p&&f<Number(p)){this.userAgentCore.replyStateless(i,{statusCode:400});return}}if(i instanceof vu){if(!l()){this.logger.warn("Response missing mandatory header field. Dropping.");return}if(i.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response. Dropping.");return}if(i.via.host!==this.options.viaHost||i.via.port!==void 0){this.logger.warn("Via sent-by in the response does not match UA Via host value. Dropping.");return}const f=Jh(i.body),p=i.getHeader("content-length");if(p&&f<Number(p)){this.logger.warn("Message body length is lower than the value in Content-Length header field. Dropping.");return}}if(i instanceof Qf){this.userAgentCore.receiveIncomingRequestFromTransport(i);return}if(i instanceof vu){this.userAgentCore.receiveIncomingResponseFromTransport(i);return}throw new Error("Invalid message type.")}transitionState(r,i){const l=()=>{throw new Error(`Invalid state transition from ${this._state} to ${r}`)};switch(this._state){case pi.Started:r!==pi.Stopped&&l();break;case pi.Stopped:r!==pi.Started&&l();break;default:throw new Error("Unknown state.")}this.logger.log(`Transitioned from ${this._state} to ${r}`),this._state=r,this._stateEventEmitter.emit(this._state)}}//! moment.js
|
|
417
|
+
`))}startSendingKeepAlives(){const r=i=>{const l=i*.8;return 1e3*(Math.random()*(i-l)+l)};this.configuration.keepAliveInterval&&!this.keepAliveInterval&&(this.keepAliveInterval=setInterval(()=>{this.sendKeepAlive(),this.startSendingKeepAlives()},r(this.configuration.keepAliveInterval)))}stopSendingKeepAlives(){this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveInterval=void 0,this.keepAliveDebounceTimeout=void 0}}Av.defaultOptions={server:"",connectionTimeout:5,keepAliveInterval:0,keepAliveDebounce:10,traceSip:!0};class Tc{constructor(r={}){if(this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this._state=pi.Stopped,this._stateEventEmitter=new Xh,this.delegate=r.delegate,this.options=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Tc.defaultOptions()),{sipjsId:_c(5)}),{uri:new xo("sip","anonymous."+_c(6),"anonymous.invalid")}),{viaHost:_c(12)+".invalid"}),Tc.stripUndefinedProperties(r)),this.options.hackIpInContact)if(typeof this.options.hackIpInContact=="boolean"&&this.options.hackIpInContact){const f=Math.floor(Math.random()*254+1);this.options.viaHost="192.0.2."+f}else this.options.hackIpInContact&&(this.options.viaHost=this.options.hackIpInContact);switch(this.loggerFactory=new XR,this.logger=this.loggerFactory.getLogger("sip.UserAgent"),this.loggerFactory.builtinEnabled=this.options.logBuiltinEnabled,this.loggerFactory.connector=this.options.logConnector,this.options.logLevel){case"error":this.loggerFactory.level=li.error;break;case"warn":this.loggerFactory.level=li.warn;break;case"log":this.loggerFactory.level=li.log;break;case"debug":this.loggerFactory.level=li.debug;break}if(this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(i=>{const l=this.options[i];switch(i){case"uri":case"sessionDescriptionHandlerFactory":this.logger.log("· "+i+": "+l);break;case"authorizationPassword":this.logger.log("· "+i+": NOT SHOWN");break;case"transportConstructor":this.logger.log("· "+i+": "+l.name);break;default:this.logger.log("· "+i+": "+JSON.stringify(l))}})),this.options.transportOptions){const i=this.options.transportOptions,l=i.maxReconnectionAttempts,f=i.reconnectionTimeout;l!==void 0&&this.logger.warn('The transport option "maxReconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),f!==void 0&&this.logger.warn('The transport option "reconnectionTimeout" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),r.reconnectionDelay===void 0&&f!==void 0&&(this.options.reconnectionDelay=f),r.reconnectionAttempts===void 0&&l!==void 0&&(this.options.reconnectionAttempts=l)}if(r.reconnectionDelay!==void 0&&this.logger.warn('The user agent option "reconnectionDelay" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),r.reconnectionAttempts!==void 0&&this.logger.warn('The user agent option "reconnectionAttempts" as has apparently been specified and has been deprecated. It will no longer be available starting with SIP.js release 0.16.0. Please update accordingly.'),this._transport=new this.options.transportConstructor(this.getLogger("sip.Transport"),this.options.transportOptions),this.initTransportCallbacks(),this._contact=this.initContact(),this._instanceId=this.options.instanceId?this.options.instanceId:Tc.newUUID(),zn.parse(this._instanceId,"uuid")===-1)throw new Error("Invalid instanceId.");this._userAgentCore=this.initCore()}static makeURI(r){return zn.URIParse(r)}static defaultOptions(){return{allowLegacyNotifications:!1,authorizationHa1:"",authorizationPassword:"",authorizationUsername:"",delegate:{},contactName:"",contactParams:{transport:"ws"},displayName:"",forceRport:!1,gracefulShutdown:!0,hackAllowUnregisteredOptionTags:!1,hackIpInContact:!1,hackViaTcp:!1,instanceId:"",instanceIdAlwaysAdded:!1,logBuiltinEnabled:!0,logConfiguration:!0,logConnector:()=>{},logLevel:"log",noAnswerTimeout:60,preloadedRouteSet:[],reconnectionAttempts:0,reconnectionDelay:4,sendInitialProvisionalResponse:!0,sessionDescriptionHandlerFactory:C8(),sessionDescriptionHandlerFactoryOptions:{},sipExtension100rel:Ps.Unsupported,sipExtensionReplaces:Ps.Unsupported,sipExtensionExtraSupported:[],sipjsId:"",transportConstructor:Av,transportOptions:{},uri:new xo("sip","anonymous","anonymous.invalid"),userAgentString:"SIP.js/"+$R,viaHost:""}}static newUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{const l=Math.floor(Math.random()*16);return(i==="x"?l:l%4+8).toString(16)})}static stripUndefinedProperties(r){return Object.keys(r).reduce((i,l)=>(r[l]!==void 0&&(i[l]=r[l]),i),{})}get configuration(){return this.options}get contact(){return this._contact}get instanceId(){return this._instanceId}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get transport(){return this._transport}get userAgentCore(){return this._userAgentCore}getLogger(r,i){return this.loggerFactory.getLogger(r,i)}getLoggerFactory(){return this.loggerFactory}isConnected(){return this.transport.isConnected()}reconnect(){return this.state===pi.Stopped?Promise.reject(new Error("User agent stopped.")):Promise.resolve().then(()=>this.transport.connect())}start(){return this.state===pi.Started?(this.logger.warn("User agent already started"),Promise.resolve()):(this.logger.log(`Starting ${this.configuration.uri}`),this.transitionState(pi.Started),this.transport.connect())}async stop(){if(this.state===pi.Stopped)return this.logger.warn("User agent already stopped"),Promise.resolve();if(this.logger.log(`Stopping ${this.configuration.uri}`),!this.options.gracefulShutdown)return this.logger.log("Dispose of transport"),this.transport.dispose().catch(S=>{throw this.logger.error(S.message),S}),this.logger.log("Dispose of core"),this.userAgentCore.dispose(),this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this.transitionState(pi.Stopped),Promise.resolve();const r=Object.assign({},this._publishers),i=Object.assign({},this._registerers),l=Object.assign({},this._sessions),f=Object.assign({},this._subscriptions),p=this.transport,v=this.userAgentCore;this.logger.log("Dispose of registerers");for(const S in i)i[S]&&await i[S].dispose().catch(b=>{throw this.logger.error(b.message),delete this._registerers[S],b});this.logger.log("Dispose of sessions");for(const S in l)l[S]&&await l[S].dispose().catch(b=>{throw this.logger.error(b.message),delete this._sessions[S],b});this.logger.log("Dispose of subscriptions");for(const S in f)f[S]&&await f[S].dispose().catch(b=>{throw this.logger.error(b.message),delete this._subscriptions[S],b});this.logger.log("Dispose of publishers");for(const S in r)r[S]&&await r[S].dispose().catch(b=>{throw this.logger.error(b.message),delete this._publishers[S],b});this.logger.log("Dispose of transport"),await p.dispose().catch(S=>{throw this.logger.error(S.message),S}),this.logger.log("Dispose of core"),v.dispose(),this.transitionState(pi.Stopped)}_makeInviter(r,i){return new VS(this,r,i)}attemptReconnection(r=1){const i=this.options.reconnectionAttempts,l=this.options.reconnectionDelay;if(r>i){this.logger.log("Maximum reconnection attempts reached");return}this.logger.log(`Reconnection attempt ${r} of ${i} - trying`),setTimeout(()=>{this.reconnect().then(()=>{this.logger.log(`Reconnection attempt ${r} of ${i} - succeeded`)}).catch(f=>{this.logger.error(f.message),this.logger.log(`Reconnection attempt ${r} of ${i} - failed`),this.attemptReconnection(++r)})},r===1?0:l*1e3)}initContact(){const r=this.options.contactName!==""?this.options.contactName:_c(8),i=this.options.contactParams;return{pubGruu:void 0,tempGruu:void 0,uri:new xo("sip",r,this.options.viaHost,void 0,i),toString:(f={})=>{const p=f.anonymous||!1,v=f.outbound||!1,S=f.register||!1;let b="<";return p?b+=this.contact.tempGruu||`sip:anonymous@anonymous.invalid;transport=${i.transport?i.transport:"ws"}`:S?b+=this.contact.uri:b+=this.contact.pubGruu||this.contact.uri,v&&(b+=";ob"),b+=">",this.options.instanceIdAlwaysAdded&&(b+=';+sip.instance="<urn:uuid:'+this._instanceId+'>"'),b}}}initCore(){let r=[];r.push("outbound"),this.options.sipExtension100rel===Ps.Supported&&r.push("100rel"),this.options.sipExtensionReplaces===Ps.Supported&&r.push("replaces"),this.options.sipExtensionExtraSupported&&r.push(...this.options.sipExtensionExtraSupported),this.options.hackAllowUnregisteredOptionTags||(r=r.filter(p=>KR[p])),r=Array.from(new Set(r));const i=r.slice();(this.contact.pubGruu||this.contact.tempGruu)&&i.push("gruu");const l={aor:this.options.uri,contact:this.contact,displayName:this.options.displayName,loggerFactory:this.loggerFactory,hackViaTcp:this.options.hackViaTcp,routeSet:this.options.preloadedRouteSet,supportedOptionTags:r,supportedOptionTagsResponse:i,sipjsId:this.options.sipjsId,userAgentHeaderFieldValue:this.options.userAgentString,viaForceRport:this.options.forceRport,viaHost:this.options.viaHost,authenticationFactory:()=>{const p=this.options.authorizationUsername?this.options.authorizationUsername:this.options.uri.user,v=this.options.authorizationPassword?this.options.authorizationPassword:void 0,S=this.options.authorizationHa1?this.options.authorizationHa1:void 0;return new ZR(this.getLoggerFactory(),S,p,v)},transportAccessor:()=>this.transport},f={onInvite:p=>{var v;const S=new QR(this,p);if(p.delegate={onCancel:b=>{S._onCancel(b)},onTransportError:b=>{this.logger.error("A transport error has occurred while handling an incoming INVITE request.")}},p.trying(),this.options.sipExtensionReplaces!==Ps.Unsupported){const C=p.message.parseHeader("replaces");if(C){const w=C.call_id;if(typeof w!="string")throw new Error("Type of call id is not string");const T=C.replaces_to_tag;if(typeof T!="string")throw new Error("Type of to tag is not string");const A=C.replaces_from_tag;if(typeof A!="string")throw new Error("type of from tag is not string");const H=w+T+A,P=this.userAgentCore.dialogs.get(H);if(!P){S.reject({statusCode:481});return}if(!P.early&&C.early_only===!0){S.reject({statusCode:486});return}const j=this._sessions[w+A]||this._sessions[w+T]||void 0;if(!j)throw new Error("Session does not exist.");S._replacee=j}}if(!((v=this.delegate)===null||v===void 0)&&v.onInvite){if(S.autoSendAnInitialProvisionalResponse){S.progress().then(()=>{var b;if(((b=this.delegate)===null||b===void 0?void 0:b.onInvite)===void 0)throw new Error("onInvite undefined.");this.delegate.onInvite(S)});return}this.delegate.onInvite(S);return}S.reject({statusCode:486})},onMessage:p=>{if(this.delegate&&this.delegate.onMessage){const v=new YS(p);this.delegate.onMessage(v)}else p.accept()},onNotify:p=>{if(this.delegate&&this.delegate.onNotify){const v=new Px(p);this.delegate.onNotify(v)}else this.options.allowLegacyNotifications?p.accept():p.reject({statusCode:481})},onRefer:p=>{this.logger.warn("Received an out of dialog REFER request"),this.delegate&&this.delegate.onReferRequest?this.delegate.onReferRequest(p):p.reject({statusCode:405})},onRegister:p=>{this.logger.warn("Received an out of dialog REGISTER request"),this.delegate&&this.delegate.onRegisterRequest?this.delegate.onRegisterRequest(p):p.reject({statusCode:405})},onSubscribe:p=>{this.logger.warn("Received an out of dialog SUBSCRIBE request"),this.delegate&&this.delegate.onSubscribeRequest?this.delegate.onSubscribeRequest(p):p.reject({statusCode:405})}};return new y8(l,f)}initTransportCallbacks(){this.transport.onConnect=()=>this.onTransportConnect(),this.transport.onDisconnect=r=>this.onTransportDisconnect(r),this.transport.onMessage=r=>this.onTransportMessage(r)}onTransportConnect(){this.state!==pi.Stopped&&this.delegate&&this.delegate.onConnect&&this.delegate.onConnect()}onTransportDisconnect(r){this.state!==pi.Stopped&&(this.delegate&&this.delegate.onDisconnect&&this.delegate.onDisconnect(r),r&&this.options.reconnectionAttempts>0&&this.attemptReconnection())}onTransportMessage(r){const i=_v.parseMessage(r,this.getLogger("sip.Parser"));if(!i){this.logger.warn("Failed to parse incoming message. Dropping.");return}if(this.state===pi.Stopped&&i instanceof Qf){this.logger.warn(`Received ${i.method} request while stopped. Dropping.`);return}const l=()=>{const f=["from","to","call_id","cseq","via"];for(const p of f)if(!i.hasHeader(p))return this.logger.warn(`Missing mandatory header field : ${p}.`),!1;return!0};if(i instanceof Qf){if(!l()){this.logger.warn("Request missing mandatory header field. Dropping.");return}if(!i.toTag&&i.callId.substr(0,5)===this.options.sipjsId){this.userAgentCore.replyStateless(i,{statusCode:482});return}const f=Jh(i.body),p=i.getHeader("content-length");if(p&&f<Number(p)){this.userAgentCore.replyStateless(i,{statusCode:400});return}}if(i instanceof vu){if(!l()){this.logger.warn("Response missing mandatory header field. Dropping.");return}if(i.getHeaders("via").length>1){this.logger.warn("More than one Via header field present in the response. Dropping.");return}if(i.via.host!==this.options.viaHost||i.via.port!==void 0){this.logger.warn("Via sent-by in the response does not match UA Via host value. Dropping.");return}const f=Jh(i.body),p=i.getHeader("content-length");if(p&&f<Number(p)){this.logger.warn("Message body length is lower than the value in Content-Length header field. Dropping.");return}}if(i instanceof Qf){this.userAgentCore.receiveIncomingRequestFromTransport(i);return}if(i instanceof vu){this.userAgentCore.receiveIncomingResponseFromTransport(i);return}throw new Error("Invalid message type.")}transitionState(r,i){const l=()=>{throw new Error(`Invalid state transition from ${this._state} to ${r}`)};switch(this._state){case pi.Started:r!==pi.Stopped&&l();break;case pi.Stopped:r!==pi.Started&&l();break;default:throw new Error("Unknown state.")}this.logger.log(`Transitioned from ${this._state} to ${r}`),this._state=r,this._stateEventEmitter.emit(this._state)}}//! moment.js
|
|
418
418
|
//! version : 2.30.1
|
|
419
419
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
420
420
|
//! license : MIT
|
|
@@ -422,8 +422,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
422
422
|
var rw;function Ve(){return rw.apply(null,arguments)}function S8(o){rw=o}function Ls(o){return o instanceof Array||Object.prototype.toString.call(o)==="[object Array]"}function Rc(o){return o!=null&&Object.prototype.toString.call(o)==="[object Object]"}function gr(o,r){return Object.prototype.hasOwnProperty.call(o,r)}function jx(o){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(o).length===0;var r;for(r in o)if(gr(o,r))return!1;return!0}function xa(o){return o===void 0}function pl(o){return typeof o=="number"||Object.prototype.toString.call(o)==="[object Number]"}function r0(o){return o instanceof Date||Object.prototype.toString.call(o)==="[object Date]"}function nw(o,r){var i=[],l,f=o.length;for(l=0;l<f;++l)i.push(r(o[l],l));return i}function Eu(o,r){for(var i in r)gr(r,i)&&(o[i]=r[i]);return gr(r,"toString")&&(o.toString=r.toString),gr(r,"valueOf")&&(o.valueOf=r.valueOf),o}function wo(o,r,i,l){return kw(o,r,i,l,!0).utc()}function w8(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function It(o){return o._pf==null&&(o._pf=w8()),o._pf}var zx;Array.prototype.some?zx=Array.prototype.some:zx=function(o){var r=Object(this),i=r.length>>>0,l;for(l=0;l<i;l++)if(l in r&&o.call(this,r[l],l,r))return!0;return!1};function qx(o){var r=null,i=!1,l=o._d&&!isNaN(o._d.getTime());if(l&&(r=It(o),i=zx.call(r.parsedDateParts,function(f){return f!=null}),l=r.overflow<0&&!r.empty&&!r.invalidEra&&!r.invalidMonth&&!r.invalidWeekday&&!r.weekdayMismatch&&!r.nullInput&&!r.invalidFormat&&!r.userInvalidated&&(!r.meridiem||r.meridiem&&i),o._strict&&(l=l&&r.charsLeftOver===0&&r.unusedTokens.length===0&&r.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(o))o._isValid=l;else return l;return o._isValid}function kv(o){var r=wo(NaN);return o!=null?Eu(It(r),o):It(r).userInvalidated=!0,r}var iw=Ve.momentProperties=[],Yx=!1;function Vx(o,r){var i,l,f,p=iw.length;if(xa(r._isAMomentObject)||(o._isAMomentObject=r._isAMomentObject),xa(r._i)||(o._i=r._i),xa(r._f)||(o._f=r._f),xa(r._l)||(o._l=r._l),xa(r._strict)||(o._strict=r._strict),xa(r._tzm)||(o._tzm=r._tzm),xa(r._isUTC)||(o._isUTC=r._isUTC),xa(r._offset)||(o._offset=r._offset),xa(r._pf)||(o._pf=It(r)),xa(r._locale)||(o._locale=r._locale),p>0)for(i=0;i<p;i++)l=iw[i],f=r[l],xa(f)||(o[l]=f);return o}function n0(o){Vx(this,o),this._d=new Date(o._d!=null?o._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),Yx===!1&&(Yx=!0,Ve.updateOffset(this),Yx=!1)}function Us(o){return o instanceof n0||o!=null&&o._isAMomentObject!=null}function aw(o){Ve.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+o)}function ss(o,r){var i=!0;return Eu(function(){if(Ve.deprecationHandler!=null&&Ve.deprecationHandler(null,o),i){var l=[],f,p,v,S=arguments.length;for(p=0;p<S;p++){if(f="",typeof arguments[p]=="object"){f+=`
|
|
423
423
|
[`+p+"] ";for(v in arguments[0])gr(arguments[0],v)&&(f+=v+": "+arguments[0][v]+", ");f=f.slice(0,-2)}else f=arguments[p];l.push(f)}aw(o+`
|
|
424
424
|
Arguments: `+Array.prototype.slice.call(l).join("")+`
|
|
425
|
-
`+new Error().stack),i=!1}return r.apply(this,arguments)},r)}var sw={};function ow(o,r){Ve.deprecationHandler!=null&&Ve.deprecationHandler(o,r),sw[o]||(aw(r),sw[o]=!0)}Ve.suppressDeprecationWarnings=!1,Ve.deprecationHandler=null;function bo(o){return typeof Function<"u"&&o instanceof Function||Object.prototype.toString.call(o)==="[object Function]"}function b8(o){var r,i;for(i in o)gr(o,i)&&(r=o[i],bo(r)?this[i]=r:this["_"+i]=r);this._config=o,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Wx(o,r){var i=Eu({},o),l;for(l in r)gr(r,l)&&(Rc(o[l])&&Rc(r[l])?(i[l]={},Eu(i[l],o[l]),Eu(i[l],r[l])):r[l]!=null?i[l]=r[l]:delete i[l]);for(l in o)gr(o,l)&&!gr(r,l)&&Rc(o[l])&&(i[l]=Eu({},i[l]));return i}function Gx(o){o!=null&&this.set(o)}var Kx;Object.keys?Kx=Object.keys:Kx=function(o){var r,i=[];for(r in o)gr(o,r)&&i.push(r);return i};var _8={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function D8(o,r,i){var l=this._calendar[o]||this._calendar.sameElse;return bo(l)?l.call(r,i):l}function _o(o,r,i){var l=""+Math.abs(o),f=r-l.length,p=o>=0;return(p?i?"+":"":"-")+Math.pow(10,Math.max(0,f)).toString().substr(1)+l}var Qx=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Fv=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Zx={},Xf={};function gt(o,r,i,l){var f=l;typeof l=="string"&&(f=function(){return this[l]()}),o&&(Xf[o]=f),r&&(Xf[r[0]]=function(){return _o(f.apply(this,arguments),r[1],r[2])}),i&&(Xf[i]=function(){return this.localeData().ordinal(f.apply(this,arguments),o)})}function T8(o){return o.match(/\[[\s\S]/)?o.replace(/^\[|\]$/g,""):o.replace(/\\/g,"")}function R8(o){var r=o.match(Qx),i,l;for(i=0,l=r.length;i<l;i++)Xf[r[i]]?r[i]=Xf[r[i]]:r[i]=T8(r[i]);return function(f){var p="",v;for(v=0;v<l;v++)p+=bo(r[v])?r[v].call(f,o):r[v];return p}}function Ov(o,r){return o.isValid()?(r=lw(r,o.localeData()),Zx[r]=Zx[r]||R8(r),Zx[r](o)):o.localeData().invalidDate()}function lw(o,r){var i=5;function l(f){return r.longDateFormat(f)||f}for(Fv.lastIndex=0;i>=0&&Fv.test(o);)o=o.replace(Fv,l),Fv.lastIndex=0,i-=1;return o}var A8={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function k8(o){var r=this._longDateFormat[o],i=this._longDateFormat[o.toUpperCase()];return r||!i?r:(this._longDateFormat[o]=i.match(Qx).map(function(l){return l==="MMMM"||l==="MM"||l==="DD"||l==="dddd"?l.slice(1):l}).join(""),this._longDateFormat[o])}var F8="Invalid date";function O8(){return this._invalidDate}var B8="%d",M8=/\d{1,2}/;function N8(o){return this._ordinal.replace("%d",o)}var H8={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function I8(o,r,i,l){var f=this._relativeTime[i];return bo(f)?f(o,r,i,l):f.replace(/%d/i,o)}function $8(o,r){var i=this._relativeTime[o>0?"future":"past"];return bo(i)?i(r):i.replace(/%s/i,r)}var uw={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function os(o){return typeof o=="string"?uw[o]||uw[o.toLowerCase()]:void 0}function Xx(o){var r={},i,l;for(l in o)gr(o,l)&&(i=os(l),i&&(r[i]=o[l]));return r}var P8={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function L8(o){var r=[],i;for(i in o)gr(o,i)&&r.push({unit:i,priority:P8[i]});return r.sort(function(l,f){return l.priority-f.priority}),r}var cw=/\d/,Ua=/\d\d/,fw=/\d{3}/,Jx=/\d{4}/,Bv=/[+-]?\d{6}/,Wr=/\d\d?/,dw=/\d\d\d\d?/,hw=/\d\d\d\d\d\d?/,Mv=/\d{1,3}/,e1=/\d{1,4}/,Nv=/[+-]?\d{1,6}/,Jf=/\d+/,Hv=/[+-]?\d+/,U8=/Z|[+-]\d\d:?\d\d/gi,Iv=/Z|[+-]\d\d(?::?\d\d)?/gi,j8=/[+-]?\d+(\.\d{1,3})?/,i0=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ed=/^[1-9]\d?/,t1=/^([1-9]\d|\d)/,$v;$v={};function nt(o,r,i){$v[o]=bo(r)?r:function(l,f){return l&&i?i:r}}function z8(o,r){return gr($v,o)?$v[o](r._strict,r._locale):new RegExp(q8(o))}function q8(o){return vl(o.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(r,i,l,f,p){return i||l||f||p}))}function vl(o){return o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ls(o){return o<0?Math.ceil(o)||0:Math.floor(o)}function Kt(o){var r=+o,i=0;return r!==0&&isFinite(r)&&(i=ls(r)),i}var r1={};function Mr(o,r){var i,l=r,f;for(typeof o=="string"&&(o=[o]),pl(r)&&(l=function(p,v){v[r]=Kt(p)}),f=o.length,i=0;i<f;i++)r1[o[i]]=l}function a0(o,r){Mr(o,function(i,l,f,p){f._w=f._w||{},r(i,f._w,f,p)})}function Y8(o,r,i){r!=null&&gr(r1,o)&&r1[o](r,i._a,i,o)}function Pv(o){return o%4===0&&o%100!==0||o%400===0}var Mi=0,gl=1,Do=2,qn=3,js=4,ml=5,Ac=6,V8=7,W8=8;gt("Y",0,0,function(){var o=this.year();return o<=9999?_o(o,4):"+"+o}),gt(0,["YY",2],0,function(){return this.year()%100}),gt(0,["YYYY",4],0,"year"),gt(0,["YYYYY",5],0,"year"),gt(0,["YYYYYY",6,!0],0,"year"),nt("Y",Hv),nt("YY",Wr,Ua),nt("YYYY",e1,Jx),nt("YYYYY",Nv,Bv),nt("YYYYYY",Nv,Bv),Mr(["YYYYY","YYYYYY"],Mi),Mr("YYYY",function(o,r){r[Mi]=o.length===2?Ve.parseTwoDigitYear(o):Kt(o)}),Mr("YY",function(o,r){r[Mi]=Ve.parseTwoDigitYear(o)}),Mr("Y",function(o,r){r[Mi]=parseInt(o,10)});function s0(o){return Pv(o)?366:365}Ve.parseTwoDigitYear=function(o){return Kt(o)+(Kt(o)>68?1900:2e3)};var pw=td("FullYear",!0);function G8(){return Pv(this.year())}function td(o,r){return function(i){return i!=null?(vw(this,o,i),Ve.updateOffset(this,r),this):o0(this,o)}}function o0(o,r){if(!o.isValid())return NaN;var i=o._d,l=o._isUTC;switch(r){case"Milliseconds":return l?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return l?i.getUTCSeconds():i.getSeconds();case"Minutes":return l?i.getUTCMinutes():i.getMinutes();case"Hours":return l?i.getUTCHours():i.getHours();case"Date":return l?i.getUTCDate():i.getDate();case"Day":return l?i.getUTCDay():i.getDay();case"Month":return l?i.getUTCMonth():i.getMonth();case"FullYear":return l?i.getUTCFullYear():i.getFullYear();default:return NaN}}function vw(o,r,i){var l,f,p,v,S;if(!(!o.isValid()||isNaN(i))){switch(l=o._d,f=o._isUTC,r){case"Milliseconds":return void(f?l.setUTCMilliseconds(i):l.setMilliseconds(i));case"Seconds":return void(f?l.setUTCSeconds(i):l.setSeconds(i));case"Minutes":return void(f?l.setUTCMinutes(i):l.setMinutes(i));case"Hours":return void(f?l.setUTCHours(i):l.setHours(i));case"Date":return void(f?l.setUTCDate(i):l.setDate(i));case"FullYear":break;default:return}p=i,v=o.month(),S=o.date(),S=S===29&&v===1&&!Pv(p)?28:S,f?l.setUTCFullYear(p,v,S):l.setFullYear(p,v,S)}}function K8(o){return o=os(o),bo(this[o])?this[o]():this}function Q8(o,r){if(typeof o=="object"){o=Xx(o);var i=L8(o),l,f=i.length;for(l=0;l<f;l++)this[i[l].unit](o[i[l].unit])}else if(o=os(o),bo(this[o]))return this[o](r);return this}function Z8(o,r){return(o%r+r)%r}var Dn;Array.prototype.indexOf?Dn=Array.prototype.indexOf:Dn=function(o){var r;for(r=0;r<this.length;++r)if(this[r]===o)return r;return-1};function n1(o,r){if(isNaN(o)||isNaN(r))return NaN;var i=Z8(r,12);return o+=(r-i)/12,i===1?Pv(o)?29:28:31-i%7%2}gt("M",["MM",2],"Mo",function(){return this.month()+1}),gt("MMM",0,0,function(o){return this.localeData().monthsShort(this,o)}),gt("MMMM",0,0,function(o){return this.localeData().months(this,o)}),nt("M",Wr,ed),nt("MM",Wr,Ua),nt("MMM",function(o,r){return r.monthsShortRegex(o)}),nt("MMMM",function(o,r){return r.monthsRegex(o)}),Mr(["M","MM"],function(o,r){r[gl]=Kt(o)-1}),Mr(["MMM","MMMM"],function(o,r,i,l){var f=i._locale.monthsParse(o,l,i._strict);f!=null?r[gl]=f:It(i).invalidMonth=o});var X8="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),gw="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),mw=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,J8=i0,e4=i0;function t4(o,r){return o?Ls(this._months)?this._months[o.month()]:this._months[(this._months.isFormat||mw).test(r)?"format":"standalone"][o.month()]:Ls(this._months)?this._months:this._months.standalone}function r4(o,r){return o?Ls(this._monthsShort)?this._monthsShort[o.month()]:this._monthsShort[mw.test(r)?"format":"standalone"][o.month()]:Ls(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function n4(o,r,i){var l,f,p,v=o.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],l=0;l<12;++l)p=wo([2e3,l]),this._shortMonthsParse[l]=this.monthsShort(p,"").toLocaleLowerCase(),this._longMonthsParse[l]=this.months(p,"").toLocaleLowerCase();return i?r==="MMM"?(f=Dn.call(this._shortMonthsParse,v),f!==-1?f:null):(f=Dn.call(this._longMonthsParse,v),f!==-1?f:null):r==="MMM"?(f=Dn.call(this._shortMonthsParse,v),f!==-1?f:(f=Dn.call(this._longMonthsParse,v),f!==-1?f:null)):(f=Dn.call(this._longMonthsParse,v),f!==-1?f:(f=Dn.call(this._shortMonthsParse,v),f!==-1?f:null))}function i4(o,r,i){var l,f,p;if(this._monthsParseExact)return n4.call(this,o,r,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),l=0;l<12;l++){if(f=wo([2e3,l]),i&&!this._longMonthsParse[l]&&(this._longMonthsParse[l]=new RegExp("^"+this.months(f,"").replace(".","")+"$","i"),this._shortMonthsParse[l]=new RegExp("^"+this.monthsShort(f,"").replace(".","")+"$","i")),!i&&!this._monthsParse[l]&&(p="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[l]=new RegExp(p.replace(".",""),"i")),i&&r==="MMMM"&&this._longMonthsParse[l].test(o))return l;if(i&&r==="MMM"&&this._shortMonthsParse[l].test(o))return l;if(!i&&this._monthsParse[l].test(o))return l}}function yw(o,r){if(!o.isValid())return o;if(typeof r=="string"){if(/^\d+$/.test(r))r=Kt(r);else if(r=o.localeData().monthsParse(r),!pl(r))return o}var i=r,l=o.date();return l=l<29?l:Math.min(l,n1(o.year(),i)),o._isUTC?o._d.setUTCMonth(i,l):o._d.setMonth(i,l),o}function xw(o){return o!=null?(yw(this,o),Ve.updateOffset(this,!0),this):o0(this,"Month")}function a4(){return n1(this.year(),this.month())}function s4(o){return this._monthsParseExact?(gr(this,"_monthsRegex")||Ew.call(this),o?this._monthsShortStrictRegex:this._monthsShortRegex):(gr(this,"_monthsShortRegex")||(this._monthsShortRegex=J8),this._monthsShortStrictRegex&&o?this._monthsShortStrictRegex:this._monthsShortRegex)}function o4(o){return this._monthsParseExact?(gr(this,"_monthsRegex")||Ew.call(this),o?this._monthsStrictRegex:this._monthsRegex):(gr(this,"_monthsRegex")||(this._monthsRegex=e4),this._monthsStrictRegex&&o?this._monthsStrictRegex:this._monthsRegex)}function Ew(){function o(w,C){return C.length-w.length}var r=[],i=[],l=[],f,p,v,S;for(f=0;f<12;f++)p=wo([2e3,f]),v=vl(this.monthsShort(p,"")),S=vl(this.months(p,"")),r.push(v),i.push(S),l.push(S),l.push(v);r.sort(o),i.sort(o),l.sort(o),this._monthsRegex=new RegExp("^("+l.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function l4(o,r,i,l,f,p,v){var S;return o<100&&o>=0?(S=new Date(o+400,r,i,l,f,p,v),isFinite(S.getFullYear())&&S.setFullYear(o)):S=new Date(o,r,i,l,f,p,v),S}function l0(o){var r,i;return o<100&&o>=0?(i=Array.prototype.slice.call(arguments),i[0]=o+400,r=new Date(Date.UTC.apply(null,i)),isFinite(r.getUTCFullYear())&&r.setUTCFullYear(o)):r=new Date(Date.UTC.apply(null,arguments)),r}function Lv(o,r,i){var l=7+r-i,f=(7+l0(o,0,l).getUTCDay()-r)%7;return-f+l-1}function Cw(o,r,i,l,f){var p=(7+i-l)%7,v=Lv(o,l,f),S=1+7*(r-1)+p+v,w,C;return S<=0?(w=o-1,C=s0(w)+S):S>s0(o)?(w=o+1,C=S-s0(o)):(w=o,C=S),{year:w,dayOfYear:C}}function u0(o,r,i){var l=Lv(o.year(),r,i),f=Math.floor((o.dayOfYear()-l-1)/7)+1,p,v;return f<1?(v=o.year()-1,p=f+yl(v,r,i)):f>yl(o.year(),r,i)?(p=f-yl(o.year(),r,i),v=o.year()+1):(v=o.year(),p=f),{week:p,year:v}}function yl(o,r,i){var l=Lv(o,r,i),f=Lv(o+1,r,i);return(s0(o)-l+f)/7}gt("w",["ww",2],"wo","week"),gt("W",["WW",2],"Wo","isoWeek"),nt("w",Wr,ed),nt("ww",Wr,Ua),nt("W",Wr,ed),nt("WW",Wr,Ua),a0(["w","ww","W","WW"],function(o,r,i,l){r[l.substr(0,1)]=Kt(o)});function u4(o){return u0(o,this._week.dow,this._week.doy).week}var c4={dow:0,doy:6};function f4(){return this._week.dow}function d4(){return this._week.doy}function h4(o){var r=this.localeData().week(this);return o==null?r:this.add((o-r)*7,"d")}function p4(o){var r=u0(this,1,4).week;return o==null?r:this.add((o-r)*7,"d")}gt("d",0,"do","day"),gt("dd",0,0,function(o){return this.localeData().weekdaysMin(this,o)}),gt("ddd",0,0,function(o){return this.localeData().weekdaysShort(this,o)}),gt("dddd",0,0,function(o){return this.localeData().weekdays(this,o)}),gt("e",0,0,"weekday"),gt("E",0,0,"isoWeekday"),nt("d",Wr),nt("e",Wr),nt("E",Wr),nt("dd",function(o,r){return r.weekdaysMinRegex(o)}),nt("ddd",function(o,r){return r.weekdaysShortRegex(o)}),nt("dddd",function(o,r){return r.weekdaysRegex(o)}),a0(["dd","ddd","dddd"],function(o,r,i,l){var f=i._locale.weekdaysParse(o,l,i._strict);f!=null?r.d=f:It(i).invalidWeekday=o}),a0(["d","e","E"],function(o,r,i,l){r[l]=Kt(o)});function v4(o,r){return typeof o!="string"?o:isNaN(o)?(o=r.weekdaysParse(o),typeof o=="number"?o:null):parseInt(o,10)}function g4(o,r){return typeof o=="string"?r.weekdaysParse(o)%7||7:isNaN(o)?null:o}function i1(o,r){return o.slice(r,7).concat(o.slice(0,r))}var m4="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Sw="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),y4="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),x4=i0,E4=i0,C4=i0;function S4(o,r){var i=Ls(this._weekdays)?this._weekdays:this._weekdays[o&&o!==!0&&this._weekdays.isFormat.test(r)?"format":"standalone"];return o===!0?i1(i,this._week.dow):o?i[o.day()]:i}function w4(o){return o===!0?i1(this._weekdaysShort,this._week.dow):o?this._weekdaysShort[o.day()]:this._weekdaysShort}function b4(o){return o===!0?i1(this._weekdaysMin,this._week.dow):o?this._weekdaysMin[o.day()]:this._weekdaysMin}function _4(o,r,i){var l,f,p,v=o.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],l=0;l<7;++l)p=wo([2e3,1]).day(l),this._minWeekdaysParse[l]=this.weekdaysMin(p,"").toLocaleLowerCase(),this._shortWeekdaysParse[l]=this.weekdaysShort(p,"").toLocaleLowerCase(),this._weekdaysParse[l]=this.weekdays(p,"").toLocaleLowerCase();return i?r==="dddd"?(f=Dn.call(this._weekdaysParse,v),f!==-1?f:null):r==="ddd"?(f=Dn.call(this._shortWeekdaysParse,v),f!==-1?f:null):(f=Dn.call(this._minWeekdaysParse,v),f!==-1?f:null):r==="dddd"?(f=Dn.call(this._weekdaysParse,v),f!==-1||(f=Dn.call(this._shortWeekdaysParse,v),f!==-1)?f:(f=Dn.call(this._minWeekdaysParse,v),f!==-1?f:null)):r==="ddd"?(f=Dn.call(this._shortWeekdaysParse,v),f!==-1||(f=Dn.call(this._weekdaysParse,v),f!==-1)?f:(f=Dn.call(this._minWeekdaysParse,v),f!==-1?f:null)):(f=Dn.call(this._minWeekdaysParse,v),f!==-1||(f=Dn.call(this._weekdaysParse,v),f!==-1)?f:(f=Dn.call(this._shortWeekdaysParse,v),f!==-1?f:null))}function D4(o,r,i){var l,f,p;if(this._weekdaysParseExact)return _4.call(this,o,r,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),l=0;l<7;l++){if(f=wo([2e3,1]).day(l),i&&!this._fullWeekdaysParse[l]&&(this._fullWeekdaysParse[l]=new RegExp("^"+this.weekdays(f,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[l]=new RegExp("^"+this.weekdaysShort(f,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[l]=new RegExp("^"+this.weekdaysMin(f,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[l]||(p="^"+this.weekdays(f,"")+"|^"+this.weekdaysShort(f,"")+"|^"+this.weekdaysMin(f,""),this._weekdaysParse[l]=new RegExp(p.replace(".",""),"i")),i&&r==="dddd"&&this._fullWeekdaysParse[l].test(o))return l;if(i&&r==="ddd"&&this._shortWeekdaysParse[l].test(o))return l;if(i&&r==="dd"&&this._minWeekdaysParse[l].test(o))return l;if(!i&&this._weekdaysParse[l].test(o))return l}}function T4(o){if(!this.isValid())return o!=null?this:NaN;var r=o0(this,"Day");return o!=null?(o=v4(o,this.localeData()),this.add(o-r,"d")):r}function R4(o){if(!this.isValid())return o!=null?this:NaN;var r=(this.day()+7-this.localeData()._week.dow)%7;return o==null?r:this.add(o-r,"d")}function A4(o){if(!this.isValid())return o!=null?this:NaN;if(o!=null){var r=g4(o,this.localeData());return this.day(this.day()%7?r:r-7)}else return this.day()||7}function k4(o){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||a1.call(this),o?this._weekdaysStrictRegex:this._weekdaysRegex):(gr(this,"_weekdaysRegex")||(this._weekdaysRegex=x4),this._weekdaysStrictRegex&&o?this._weekdaysStrictRegex:this._weekdaysRegex)}function F4(o){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||a1.call(this),o?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(gr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=E4),this._weekdaysShortStrictRegex&&o?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function O4(o){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||a1.call(this),o?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(gr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=C4),this._weekdaysMinStrictRegex&&o?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function a1(){function o(b,R){return R.length-b.length}var r=[],i=[],l=[],f=[],p,v,S,w,C;for(p=0;p<7;p++)v=wo([2e3,1]).day(p),S=vl(this.weekdaysMin(v,"")),w=vl(this.weekdaysShort(v,"")),C=vl(this.weekdays(v,"")),r.push(S),i.push(w),l.push(C),f.push(S),f.push(w),f.push(C);r.sort(o),i.sort(o),l.sort(o),f.sort(o),this._weekdaysRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function s1(){return this.hours()%12||12}function B4(){return this.hours()||24}gt("H",["HH",2],0,"hour"),gt("h",["hh",2],0,s1),gt("k",["kk",2],0,B4),gt("hmm",0,0,function(){return""+s1.apply(this)+_o(this.minutes(),2)}),gt("hmmss",0,0,function(){return""+s1.apply(this)+_o(this.minutes(),2)+_o(this.seconds(),2)}),gt("Hmm",0,0,function(){return""+this.hours()+_o(this.minutes(),2)}),gt("Hmmss",0,0,function(){return""+this.hours()+_o(this.minutes(),2)+_o(this.seconds(),2)});function ww(o,r){gt(o,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),r)})}ww("a",!0),ww("A",!1);function bw(o,r){return r._meridiemParse}nt("a",bw),nt("A",bw),nt("H",Wr,t1),nt("h",Wr,ed),nt("k",Wr,ed),nt("HH",Wr,Ua),nt("hh",Wr,Ua),nt("kk",Wr,Ua),nt("hmm",dw),nt("hmmss",hw),nt("Hmm",dw),nt("Hmmss",hw),Mr(["H","HH"],qn),Mr(["k","kk"],function(o,r,i){var l=Kt(o);r[qn]=l===24?0:l}),Mr(["a","A"],function(o,r,i){i._isPm=i._locale.isPM(o),i._meridiem=o}),Mr(["h","hh"],function(o,r,i){r[qn]=Kt(o),It(i).bigHour=!0}),Mr("hmm",function(o,r,i){var l=o.length-2;r[qn]=Kt(o.substr(0,l)),r[js]=Kt(o.substr(l)),It(i).bigHour=!0}),Mr("hmmss",function(o,r,i){var l=o.length-4,f=o.length-2;r[qn]=Kt(o.substr(0,l)),r[js]=Kt(o.substr(l,2)),r[ml]=Kt(o.substr(f)),It(i).bigHour=!0}),Mr("Hmm",function(o,r,i){var l=o.length-2;r[qn]=Kt(o.substr(0,l)),r[js]=Kt(o.substr(l))}),Mr("Hmmss",function(o,r,i){var l=o.length-4,f=o.length-2;r[qn]=Kt(o.substr(0,l)),r[js]=Kt(o.substr(l,2)),r[ml]=Kt(o.substr(f))});function M4(o){return(o+"").toLowerCase().charAt(0)==="p"}var N4=/[ap]\.?m?\.?/i,H4=td("Hours",!0);function I4(o,r,i){return o>11?i?"pm":"PM":i?"am":"AM"}var _w={calendar:_8,longDateFormat:A8,invalidDate:F8,ordinal:B8,dayOfMonthOrdinalParse:M8,relativeTime:H8,months:X8,monthsShort:gw,week:c4,weekdays:m4,weekdaysMin:y4,weekdaysShort:Sw,meridiemParse:N4},rn={},c0={},f0;function $4(o,r){var i,l=Math.min(o.length,r.length);for(i=0;i<l;i+=1)if(o[i]!==r[i])return i;return l}function Dw(o){return o&&o.toLowerCase().replace("_","-")}function P4(o){for(var r=0,i,l,f,p;r<o.length;){for(p=Dw(o[r]).split("-"),i=p.length,l=Dw(o[r+1]),l=l?l.split("-"):null;i>0;){if(f=Uv(p.slice(0,i).join("-")),f)return f;if(l&&l.length>=i&&$4(p,l)>=i-1)break;i--}r++}return f0}function L4(o){return!!(o&&o.match("^[^/\\\\]*$"))}function Uv(o){var r=null,i;if(rn[o]===void 0&&typeof module<"u"&&module&&module.exports&&L4(o))try{r=f0._abbr,i=require,i("./locale/"+o),Cu(r)}catch{rn[o]=null}return rn[o]}function Cu(o,r){var i;return o&&(xa(r)?i=xl(o):i=o1(o,r),i?f0=i:typeof console<"u"&&console.warn&&console.warn("Locale "+o+" not found. Did you forget to load it?")),f0._abbr}function o1(o,r){if(r!==null){var i,l=_w;if(r.abbr=o,rn[o]!=null)ow("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),l=rn[o]._config;else if(r.parentLocale!=null)if(rn[r.parentLocale]!=null)l=rn[r.parentLocale]._config;else if(i=Uv(r.parentLocale),i!=null)l=i._config;else return c0[r.parentLocale]||(c0[r.parentLocale]=[]),c0[r.parentLocale].push({name:o,config:r}),null;return rn[o]=new Gx(Wx(l,r)),c0[o]&&c0[o].forEach(function(f){o1(f.name,f.config)}),Cu(o),rn[o]}else return delete rn[o],null}function U4(o,r){if(r!=null){var i,l,f=_w;rn[o]!=null&&rn[o].parentLocale!=null?rn[o].set(Wx(rn[o]._config,r)):(l=Uv(o),l!=null&&(f=l._config),r=Wx(f,r),l==null&&(r.abbr=o),i=new Gx(r),i.parentLocale=rn[o],rn[o]=i),Cu(o)}else rn[o]!=null&&(rn[o].parentLocale!=null?(rn[o]=rn[o].parentLocale,o===Cu()&&Cu(o)):rn[o]!=null&&delete rn[o]);return rn[o]}function xl(o){var r;if(o&&o._locale&&o._locale._abbr&&(o=o._locale._abbr),!o)return f0;if(!Ls(o)){if(r=Uv(o),r)return r;o=[o]}return P4(o)}function j4(){return Kx(rn)}function l1(o){var r,i=o._a;return i&&It(o).overflow===-2&&(r=i[gl]<0||i[gl]>11?gl:i[Do]<1||i[Do]>n1(i[Mi],i[gl])?Do:i[qn]<0||i[qn]>24||i[qn]===24&&(i[js]!==0||i[ml]!==0||i[Ac]!==0)?qn:i[js]<0||i[js]>59?js:i[ml]<0||i[ml]>59?ml:i[Ac]<0||i[Ac]>999?Ac:-1,It(o)._overflowDayOfYear&&(r<Mi||r>Do)&&(r=Do),It(o)._overflowWeeks&&r===-1&&(r=V8),It(o)._overflowWeekday&&r===-1&&(r=W8),It(o).overflow=r),o}var z4=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,q4=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Y4=/Z|[+-]\d\d(?::?\d\d)?/,jv=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],u1=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],V4=/^\/?Date\((-?\d+)/i,W4=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,G4={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Tw(o){var r,i,l=o._i,f=z4.exec(l)||q4.exec(l),p,v,S,w,C=jv.length,b=u1.length;if(f){for(It(o).iso=!0,r=0,i=C;r<i;r++)if(jv[r][1].exec(f[1])){v=jv[r][0],p=jv[r][2]!==!1;break}if(v==null){o._isValid=!1;return}if(f[3]){for(r=0,i=b;r<i;r++)if(u1[r][1].exec(f[3])){S=(f[2]||" ")+u1[r][0];break}if(S==null){o._isValid=!1;return}}if(!p&&S!=null){o._isValid=!1;return}if(f[4])if(Y4.exec(f[4]))w="Z";else{o._isValid=!1;return}o._f=v+(S||"")+(w||""),f1(o)}else o._isValid=!1}function K4(o,r,i,l,f,p){var v=[Q4(o),gw.indexOf(r),parseInt(i,10),parseInt(l,10),parseInt(f,10)];return p&&v.push(parseInt(p,10)),v}function Q4(o){var r=parseInt(o,10);return r<=49?2e3+r:r<=999?1900+r:r}function Z4(o){return o.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function X4(o,r,i){if(o){var l=Sw.indexOf(o),f=new Date(r[0],r[1],r[2]).getDay();if(l!==f)return It(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function J4(o,r,i){if(o)return G4[o];if(r)return 0;var l=parseInt(i,10),f=l%100,p=(l-f)/100;return p*60+f}function Rw(o){var r=W4.exec(Z4(o._i)),i;if(r){if(i=K4(r[4],r[3],r[2],r[5],r[6],r[7]),!X4(r[1],i,o))return;o._a=i,o._tzm=J4(r[8],r[9],r[10]),o._d=l0.apply(null,o._a),o._d.setUTCMinutes(o._d.getUTCMinutes()-o._tzm),It(o).rfc2822=!0}else o._isValid=!1}function e6(o){var r=V4.exec(o._i);if(r!==null){o._d=new Date(+r[1]);return}if(Tw(o),o._isValid===!1)delete o._isValid;else return;if(Rw(o),o._isValid===!1)delete o._isValid;else return;o._strict?o._isValid=!1:Ve.createFromInputFallback(o)}Ve.createFromInputFallback=ss("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(o){o._d=new Date(o._i+(o._useUTC?" UTC":""))});function rd(o,r,i){return o??r??i}function t6(o){var r=new Date(Ve.now());return o._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()]}function c1(o){var r,i,l=[],f,p,v;if(!o._d){for(f=t6(o),o._w&&o._a[Do]==null&&o._a[gl]==null&&r6(o),o._dayOfYear!=null&&(v=rd(o._a[Mi],f[Mi]),(o._dayOfYear>s0(v)||o._dayOfYear===0)&&(It(o)._overflowDayOfYear=!0),i=l0(v,0,o._dayOfYear),o._a[gl]=i.getUTCMonth(),o._a[Do]=i.getUTCDate()),r=0;r<3&&o._a[r]==null;++r)o._a[r]=l[r]=f[r];for(;r<7;r++)o._a[r]=l[r]=o._a[r]==null?r===2?1:0:o._a[r];o._a[qn]===24&&o._a[js]===0&&o._a[ml]===0&&o._a[Ac]===0&&(o._nextDay=!0,o._a[qn]=0),o._d=(o._useUTC?l0:l4).apply(null,l),p=o._useUTC?o._d.getUTCDay():o._d.getDay(),o._tzm!=null&&o._d.setUTCMinutes(o._d.getUTCMinutes()-o._tzm),o._nextDay&&(o._a[qn]=24),o._w&&typeof o._w.d<"u"&&o._w.d!==p&&(It(o).weekdayMismatch=!0)}}function r6(o){var r,i,l,f,p,v,S,w,C;r=o._w,r.GG!=null||r.W!=null||r.E!=null?(p=1,v=4,i=rd(r.GG,o._a[Mi],u0(Gr(),1,4).year),l=rd(r.W,1),f=rd(r.E,1),(f<1||f>7)&&(w=!0)):(p=o._locale._week.dow,v=o._locale._week.doy,C=u0(Gr(),p,v),i=rd(r.gg,o._a[Mi],C.year),l=rd(r.w,C.week),r.d!=null?(f=r.d,(f<0||f>6)&&(w=!0)):r.e!=null?(f=r.e+p,(r.e<0||r.e>6)&&(w=!0)):f=p),l<1||l>yl(i,p,v)?It(o)._overflowWeeks=!0:w!=null?It(o)._overflowWeekday=!0:(S=Cw(i,l,f,p,v),o._a[Mi]=S.year,o._dayOfYear=S.dayOfYear)}Ve.ISO_8601=function(){},Ve.RFC_2822=function(){};function f1(o){if(o._f===Ve.ISO_8601){Tw(o);return}if(o._f===Ve.RFC_2822){Rw(o);return}o._a=[],It(o).empty=!0;var r=""+o._i,i,l,f,p,v,S=r.length,w=0,C,b;for(f=lw(o._f,o._locale).match(Qx)||[],b=f.length,i=0;i<b;i++)p=f[i],l=(r.match(z8(p,o))||[])[0],l&&(v=r.substr(0,r.indexOf(l)),v.length>0&&It(o).unusedInput.push(v),r=r.slice(r.indexOf(l)+l.length),w+=l.length),Xf[p]?(l?It(o).empty=!1:It(o).unusedTokens.push(p),Y8(p,l,o)):o._strict&&!l&&It(o).unusedTokens.push(p);It(o).charsLeftOver=S-w,r.length>0&&It(o).unusedInput.push(r),o._a[qn]<=12&&It(o).bigHour===!0&&o._a[qn]>0&&(It(o).bigHour=void 0),It(o).parsedDateParts=o._a.slice(0),It(o).meridiem=o._meridiem,o._a[qn]=n6(o._locale,o._a[qn],o._meridiem),C=It(o).era,C!==null&&(o._a[Mi]=o._locale.erasConvertYear(C,o._a[Mi])),c1(o),l1(o)}function n6(o,r,i){var l;return i==null?r:o.meridiemHour!=null?o.meridiemHour(r,i):(o.isPM!=null&&(l=o.isPM(i),l&&r<12&&(r+=12),!l&&r===12&&(r=0)),r)}function i6(o){var r,i,l,f,p,v,S=!1,w=o._f.length;if(w===0){It(o).invalidFormat=!0,o._d=new Date(NaN);return}for(f=0;f<w;f++)p=0,v=!1,r=Vx({},o),o._useUTC!=null&&(r._useUTC=o._useUTC),r._f=o._f[f],f1(r),qx(r)&&(v=!0),p+=It(r).charsLeftOver,p+=It(r).unusedTokens.length*10,It(r).score=p,S?p<l&&(l=p,i=r):(l==null||p<l||v)&&(l=p,i=r,v&&(S=!0));Eu(o,i||r)}function a6(o){if(!o._d){var r=Xx(o._i),i=r.day===void 0?r.date:r.day;o._a=nw([r.year,r.month,i,r.hour,r.minute,r.second,r.millisecond],function(l){return l&&parseInt(l,10)}),c1(o)}}function s6(o){var r=new n0(l1(Aw(o)));return r._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function Aw(o){var r=o._i,i=o._f;return o._locale=o._locale||xl(o._l),r===null||i===void 0&&r===""?kv({nullInput:!0}):(typeof r=="string"&&(o._i=r=o._locale.preparse(r)),Us(r)?new n0(l1(r)):(r0(r)?o._d=r:Ls(i)?i6(o):i?f1(o):o6(o),qx(o)||(o._d=null),o))}function o6(o){var r=o._i;xa(r)?o._d=new Date(Ve.now()):r0(r)?o._d=new Date(r.valueOf()):typeof r=="string"?e6(o):Ls(r)?(o._a=nw(r.slice(0),function(i){return parseInt(i,10)}),c1(o)):Rc(r)?a6(o):pl(r)?o._d=new Date(r):Ve.createFromInputFallback(o)}function kw(o,r,i,l,f){var p={};return(r===!0||r===!1)&&(l=r,r=void 0),(i===!0||i===!1)&&(l=i,i=void 0),(Rc(o)&&jx(o)||Ls(o)&&o.length===0)&&(o=void 0),p._isAMomentObject=!0,p._useUTC=p._isUTC=f,p._l=i,p._i=o,p._f=r,p._strict=l,s6(p)}function Gr(o,r,i,l){return kw(o,r,i,l,!1)}var l6=ss("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var o=Gr.apply(null,arguments);return this.isValid()&&o.isValid()?o<this?this:o:kv()}),u6=ss("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var o=Gr.apply(null,arguments);return this.isValid()&&o.isValid()?o>this?this:o:kv()});function Fw(o,r){var i,l;if(r.length===1&&Ls(r[0])&&(r=r[0]),!r.length)return Gr();for(i=r[0],l=1;l<r.length;++l)(!r[l].isValid()||r[l][o](i))&&(i=r[l]);return i}function c6(){var o=[].slice.call(arguments,0);return Fw("isBefore",o)}function f6(){var o=[].slice.call(arguments,0);return Fw("isAfter",o)}var d6=function(){return Date.now?Date.now():+new Date},d0=["year","quarter","month","week","day","hour","minute","second","millisecond"];function h6(o){var r,i=!1,l,f=d0.length;for(r in o)if(gr(o,r)&&!(Dn.call(d0,r)!==-1&&(o[r]==null||!isNaN(o[r]))))return!1;for(l=0;l<f;++l)if(o[d0[l]]){if(i)return!1;parseFloat(o[d0[l]])!==Kt(o[d0[l]])&&(i=!0)}return!0}function p6(){return this._isValid}function v6(){return zs(NaN)}function zv(o){var r=Xx(o),i=r.year||0,l=r.quarter||0,f=r.month||0,p=r.week||r.isoWeek||0,v=r.day||0,S=r.hour||0,w=r.minute||0,C=r.second||0,b=r.millisecond||0;this._isValid=h6(r),this._milliseconds=+b+C*1e3+w*6e4+S*1e3*60*60,this._days=+v+p*7,this._months=+f+l*3+i*12,this._data={},this._locale=xl(),this._bubble()}function qv(o){return o instanceof zv}function d1(o){return o<0?Math.round(-1*o)*-1:Math.round(o)}function g6(o,r,i){var l=Math.min(o.length,r.length),f=Math.abs(o.length-r.length),p=0,v;for(v=0;v<l;v++)Kt(o[v])!==Kt(r[v])&&p++;return p+f}function Ow(o,r){gt(o,0,0,function(){var i=this.utcOffset(),l="+";return i<0&&(i=-i,l="-"),l+_o(~~(i/60),2)+r+_o(~~i%60,2)})}Ow("Z",":"),Ow("ZZ",""),nt("Z",Iv),nt("ZZ",Iv),Mr(["Z","ZZ"],function(o,r,i){i._useUTC=!0,i._tzm=h1(Iv,o)});var m6=/([\+\-]|\d\d)/gi;function h1(o,r){var i=(r||"").match(o),l,f,p;return i===null?null:(l=i[i.length-1]||[],f=(l+"").match(m6)||["-",0,0],p=+(f[1]*60)+Kt(f[2]),p===0?0:f[0]==="+"?p:-p)}function p1(o,r){var i,l;return r._isUTC?(i=r.clone(),l=(Us(o)||r0(o)?o.valueOf():Gr(o).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+l),Ve.updateOffset(i,!1),i):Gr(o).local()}function v1(o){return-Math.round(o._d.getTimezoneOffset())}Ve.updateOffset=function(){};function y6(o,r,i){var l=this._offset||0,f;if(!this.isValid())return o!=null?this:NaN;if(o!=null){if(typeof o=="string"){if(o=h1(Iv,o),o===null)return this}else Math.abs(o)<16&&!i&&(o=o*60);return!this._isUTC&&r&&(f=v1(this)),this._offset=o,this._isUTC=!0,f!=null&&this.add(f,"m"),l!==o&&(!r||this._changeInProgress?Hw(this,zs(o-l,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Ve.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?l:v1(this)}function x6(o,r){return o!=null?(typeof o!="string"&&(o=-o),this.utcOffset(o,r),this):-this.utcOffset()}function E6(o){return this.utcOffset(0,o)}function C6(o){return this._isUTC&&(this.utcOffset(0,o),this._isUTC=!1,o&&this.subtract(v1(this),"m")),this}function S6(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var o=h1(U8,this._i);o!=null?this.utcOffset(o):this.utcOffset(0,!0)}return this}function w6(o){return this.isValid()?(o=o?Gr(o).utcOffset():0,(this.utcOffset()-o)%60===0):!1}function b6(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _6(){if(!xa(this._isDSTShifted))return this._isDSTShifted;var o={},r;return Vx(o,this),o=Aw(o),o._a?(r=o._isUTC?wo(o._a):Gr(o._a),this._isDSTShifted=this.isValid()&&g6(o._a,r.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function D6(){return this.isValid()?!this._isUTC:!1}function T6(){return this.isValid()?this._isUTC:!1}function Bw(){return this.isValid()?this._isUTC&&this._offset===0:!1}var R6=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,A6=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zs(o,r){var i=o,l=null,f,p,v;return qv(o)?i={ms:o._milliseconds,d:o._days,M:o._months}:pl(o)||!isNaN(+o)?(i={},r?i[r]=+o:i.milliseconds=+o):(l=R6.exec(o))?(f=l[1]==="-"?-1:1,i={y:0,d:Kt(l[Do])*f,h:Kt(l[qn])*f,m:Kt(l[js])*f,s:Kt(l[ml])*f,ms:Kt(d1(l[Ac]*1e3))*f}):(l=A6.exec(o))?(f=l[1]==="-"?-1:1,i={y:kc(l[2],f),M:kc(l[3],f),w:kc(l[4],f),d:kc(l[5],f),h:kc(l[6],f),m:kc(l[7],f),s:kc(l[8],f)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(v=k6(Gr(i.from),Gr(i.to)),i={},i.ms=v.milliseconds,i.M=v.months),p=new zv(i),qv(o)&&gr(o,"_locale")&&(p._locale=o._locale),qv(o)&&gr(o,"_isValid")&&(p._isValid=o._isValid),p}zs.fn=zv.prototype,zs.invalid=v6;function kc(o,r){var i=o&&parseFloat(o.replace(",","."));return(isNaN(i)?0:i)*r}function Mw(o,r){var i={};return i.months=r.month()-o.month()+(r.year()-o.year())*12,o.clone().add(i.months,"M").isAfter(r)&&--i.months,i.milliseconds=+r-+o.clone().add(i.months,"M"),i}function k6(o,r){var i;return o.isValid()&&r.isValid()?(r=p1(r,o),o.isBefore(r)?i=Mw(o,r):(i=Mw(r,o),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function Nw(o,r){return function(i,l){var f,p;return l!==null&&!isNaN(+l)&&(ow(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),p=i,i=l,l=p),f=zs(i,l),Hw(this,f,o),this}}function Hw(o,r,i,l){var f=r._milliseconds,p=d1(r._days),v=d1(r._months);o.isValid()&&(l=l??!0,v&&yw(o,o0(o,"Month")+v*i),p&&vw(o,"Date",o0(o,"Date")+p*i),f&&o._d.setTime(o._d.valueOf()+f*i),l&&Ve.updateOffset(o,p||v))}var F6=Nw(1,"add"),O6=Nw(-1,"subtract");function Iw(o){return typeof o=="string"||o instanceof String}function B6(o){return Us(o)||r0(o)||Iw(o)||pl(o)||N6(o)||M6(o)||o===null||o===void 0}function M6(o){var r=Rc(o)&&!jx(o),i=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],f,p,v=l.length;for(f=0;f<v;f+=1)p=l[f],i=i||gr(o,p);return r&&i}function N6(o){var r=Ls(o),i=!1;return r&&(i=o.filter(function(l){return!pl(l)&&Iw(o)}).length===0),r&&i}function H6(o){var r=Rc(o)&&!jx(o),i=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],f,p;for(f=0;f<l.length;f+=1)p=l[f],i=i||gr(o,p);return r&&i}function I6(o,r){var i=o.diff(r,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function $6(o,r){arguments.length===1&&(arguments[0]?B6(arguments[0])?(o=arguments[0],r=void 0):H6(arguments[0])&&(r=arguments[0],o=void 0):(o=void 0,r=void 0));var i=o||Gr(),l=p1(i,this).startOf("day"),f=Ve.calendarFormat(this,l)||"sameElse",p=r&&(bo(r[f])?r[f].call(this,i):r[f]);return this.format(p||this.localeData().calendar(f,this,Gr(i)))}function P6(){return new n0(this)}function L6(o,r){var i=Us(o)?o:Gr(o);return this.isValid()&&i.isValid()?(r=os(r)||"millisecond",r==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(r).valueOf()):!1}function U6(o,r){var i=Us(o)?o:Gr(o);return this.isValid()&&i.isValid()?(r=os(r)||"millisecond",r==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(r).valueOf()<i.valueOf()):!1}function j6(o,r,i,l){var f=Us(o)?o:Gr(o),p=Us(r)?r:Gr(r);return this.isValid()&&f.isValid()&&p.isValid()?(l=l||"()",(l[0]==="("?this.isAfter(f,i):!this.isBefore(f,i))&&(l[1]===")"?this.isBefore(p,i):!this.isAfter(p,i))):!1}function z6(o,r){var i=Us(o)?o:Gr(o),l;return this.isValid()&&i.isValid()?(r=os(r)||"millisecond",r==="millisecond"?this.valueOf()===i.valueOf():(l=i.valueOf(),this.clone().startOf(r).valueOf()<=l&&l<=this.clone().endOf(r).valueOf())):!1}function q6(o,r){return this.isSame(o,r)||this.isAfter(o,r)}function Y6(o,r){return this.isSame(o,r)||this.isBefore(o,r)}function V6(o,r,i){var l,f,p;if(!this.isValid())return NaN;if(l=p1(o,this),!l.isValid())return NaN;switch(f=(l.utcOffset()-this.utcOffset())*6e4,r=os(r),r){case"year":p=Yv(this,l)/12;break;case"month":p=Yv(this,l);break;case"quarter":p=Yv(this,l)/3;break;case"second":p=(this-l)/1e3;break;case"minute":p=(this-l)/6e4;break;case"hour":p=(this-l)/36e5;break;case"day":p=(this-l-f)/864e5;break;case"week":p=(this-l-f)/6048e5;break;default:p=this-l}return i?p:ls(p)}function Yv(o,r){if(o.date()<r.date())return-Yv(r,o);var i=(r.year()-o.year())*12+(r.month()-o.month()),l=o.clone().add(i,"months"),f,p;return r-l<0?(f=o.clone().add(i-1,"months"),p=(r-l)/(l-f)):(f=o.clone().add(i+1,"months"),p=(r-l)/(f-l)),-(i+p)||0}Ve.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Ve.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function W6(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function G6(o){if(!this.isValid())return null;var r=o!==!0,i=r?this.clone().utc():this;return i.year()<0||i.year()>9999?Ov(i,r?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):bo(Date.prototype.toISOString)?r?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ov(i,"Z")):Ov(i,r?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function K6(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var o="moment",r="",i,l,f,p;return this.isLocal()||(o=this.utcOffset()===0?"moment.utc":"moment.parseZone",r="Z"),i="["+o+'("]',l=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",f="-MM-DD[T]HH:mm:ss.SSS",p=r+'[")]',this.format(i+l+f+p)}function Q6(o){o||(o=this.isUtc()?Ve.defaultFormatUtc:Ve.defaultFormat);var r=Ov(this,o);return this.localeData().postformat(r)}function Z6(o,r){return this.isValid()&&(Us(o)&&o.isValid()||Gr(o).isValid())?zs({to:this,from:o}).locale(this.locale()).humanize(!r):this.localeData().invalidDate()}function X6(o){return this.from(Gr(),o)}function J6(o,r){return this.isValid()&&(Us(o)&&o.isValid()||Gr(o).isValid())?zs({from:this,to:o}).locale(this.locale()).humanize(!r):this.localeData().invalidDate()}function eA(o){return this.to(Gr(),o)}function $w(o){var r;return o===void 0?this._locale._abbr:(r=xl(o),r!=null&&(this._locale=r),this)}var Pw=ss("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(o){return o===void 0?this.localeData():this.locale(o)});function Lw(){return this._locale}var Vv=1e3,nd=60*Vv,Wv=60*nd,Uw=(365*400+97)*24*Wv;function id(o,r){return(o%r+r)%r}function jw(o,r,i){return o<100&&o>=0?new Date(o+400,r,i)-Uw:new Date(o,r,i).valueOf()}function zw(o,r,i){return o<100&&o>=0?Date.UTC(o+400,r,i)-Uw:Date.UTC(o,r,i)}function tA(o){var r,i;if(o=os(o),o===void 0||o==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?zw:jw,o){case"year":r=i(this.year(),0,1);break;case"quarter":r=i(this.year(),this.month()-this.month()%3,1);break;case"month":r=i(this.year(),this.month(),1);break;case"week":r=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":r=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":r=i(this.year(),this.month(),this.date());break;case"hour":r=this._d.valueOf(),r-=id(r+(this._isUTC?0:this.utcOffset()*nd),Wv);break;case"minute":r=this._d.valueOf(),r-=id(r,nd);break;case"second":r=this._d.valueOf(),r-=id(r,Vv);break}return this._d.setTime(r),Ve.updateOffset(this,!0),this}function rA(o){var r,i;if(o=os(o),o===void 0||o==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?zw:jw,o){case"year":r=i(this.year()+1,0,1)-1;break;case"quarter":r=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":r=i(this.year(),this.month()+1,1)-1;break;case"week":r=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":r=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":r=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":r=this._d.valueOf(),r+=Wv-id(r+(this._isUTC?0:this.utcOffset()*nd),Wv)-1;break;case"minute":r=this._d.valueOf(),r+=nd-id(r,nd)-1;break;case"second":r=this._d.valueOf(),r+=Vv-id(r,Vv)-1;break}return this._d.setTime(r),Ve.updateOffset(this,!0),this}function nA(){return this._d.valueOf()-(this._offset||0)*6e4}function iA(){return Math.floor(this.valueOf()/1e3)}function aA(){return new Date(this.valueOf())}function sA(){var o=this;return[o.year(),o.month(),o.date(),o.hour(),o.minute(),o.second(),o.millisecond()]}function oA(){var o=this;return{years:o.year(),months:o.month(),date:o.date(),hours:o.hours(),minutes:o.minutes(),seconds:o.seconds(),milliseconds:o.milliseconds()}}function lA(){return this.isValid()?this.toISOString():null}function uA(){return qx(this)}function cA(){return Eu({},It(this))}function fA(){return It(this).overflow}function dA(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}gt("N",0,0,"eraAbbr"),gt("NN",0,0,"eraAbbr"),gt("NNN",0,0,"eraAbbr"),gt("NNNN",0,0,"eraName"),gt("NNNNN",0,0,"eraNarrow"),gt("y",["y",1],"yo","eraYear"),gt("y",["yy",2],0,"eraYear"),gt("y",["yyy",3],0,"eraYear"),gt("y",["yyyy",4],0,"eraYear"),nt("N",g1),nt("NN",g1),nt("NNN",g1),nt("NNNN",wA),nt("NNNNN",bA),Mr(["N","NN","NNN","NNNN","NNNNN"],function(o,r,i,l){var f=i._locale.erasParse(o,l,i._strict);f?It(i).era=f:It(i).invalidEra=o}),nt("y",Jf),nt("yy",Jf),nt("yyy",Jf),nt("yyyy",Jf),nt("yo",_A),Mr(["y","yy","yyy","yyyy"],Mi),Mr(["yo"],function(o,r,i,l){var f;i._locale._eraYearOrdinalRegex&&(f=o.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?r[Mi]=i._locale.eraYearOrdinalParse(o,f):r[Mi]=parseInt(o,10)});function hA(o,r){var i,l,f,p=this._eras||xl("en")._eras;for(i=0,l=p.length;i<l;++i){switch(typeof p[i].since){case"string":f=Ve(p[i].since).startOf("day"),p[i].since=f.valueOf();break}switch(typeof p[i].until){case"undefined":p[i].until=1/0;break;case"string":f=Ve(p[i].until).startOf("day").valueOf(),p[i].until=f.valueOf();break}}return p}function pA(o,r,i){var l,f,p=this.eras(),v,S,w;for(o=o.toUpperCase(),l=0,f=p.length;l<f;++l)if(v=p[l].name.toUpperCase(),S=p[l].abbr.toUpperCase(),w=p[l].narrow.toUpperCase(),i)switch(r){case"N":case"NN":case"NNN":if(S===o)return p[l];break;case"NNNN":if(v===o)return p[l];break;case"NNNNN":if(w===o)return p[l];break}else if([v,S,w].indexOf(o)>=0)return p[l]}function vA(o,r){var i=o.since<=o.until?1:-1;return r===void 0?Ve(o.since).year():Ve(o.since).year()+(r-o.offset)*i}function gA(){var o,r,i,l=this.localeData().eras();for(o=0,r=l.length;o<r;++o)if(i=this.clone().startOf("day").valueOf(),l[o].since<=i&&i<=l[o].until||l[o].until<=i&&i<=l[o].since)return l[o].name;return""}function mA(){var o,r,i,l=this.localeData().eras();for(o=0,r=l.length;o<r;++o)if(i=this.clone().startOf("day").valueOf(),l[o].since<=i&&i<=l[o].until||l[o].until<=i&&i<=l[o].since)return l[o].narrow;return""}function yA(){var o,r,i,l=this.localeData().eras();for(o=0,r=l.length;o<r;++o)if(i=this.clone().startOf("day").valueOf(),l[o].since<=i&&i<=l[o].until||l[o].until<=i&&i<=l[o].since)return l[o].abbr;return""}function xA(){var o,r,i,l,f=this.localeData().eras();for(o=0,r=f.length;o<r;++o)if(i=f[o].since<=f[o].until?1:-1,l=this.clone().startOf("day").valueOf(),f[o].since<=l&&l<=f[o].until||f[o].until<=l&&l<=f[o].since)return(this.year()-Ve(f[o].since).year())*i+f[o].offset;return this.year()}function EA(o){return gr(this,"_erasNameRegex")||m1.call(this),o?this._erasNameRegex:this._erasRegex}function CA(o){return gr(this,"_erasAbbrRegex")||m1.call(this),o?this._erasAbbrRegex:this._erasRegex}function SA(o){return gr(this,"_erasNarrowRegex")||m1.call(this),o?this._erasNarrowRegex:this._erasRegex}function g1(o,r){return r.erasAbbrRegex(o)}function wA(o,r){return r.erasNameRegex(o)}function bA(o,r){return r.erasNarrowRegex(o)}function _A(o,r){return r._eraYearOrdinalRegex||Jf}function m1(){var o=[],r=[],i=[],l=[],f,p,v,S,w,C=this.eras();for(f=0,p=C.length;f<p;++f)v=vl(C[f].name),S=vl(C[f].abbr),w=vl(C[f].narrow),r.push(v),o.push(S),i.push(w),l.push(v),l.push(S),l.push(w);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}gt(0,["gg",2],0,function(){return this.weekYear()%100}),gt(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Gv(o,r){gt(0,[o,o.length],0,r)}Gv("gggg","weekYear"),Gv("ggggg","weekYear"),Gv("GGGG","isoWeekYear"),Gv("GGGGG","isoWeekYear"),nt("G",Hv),nt("g",Hv),nt("GG",Wr,Ua),nt("gg",Wr,Ua),nt("GGGG",e1,Jx),nt("gggg",e1,Jx),nt("GGGGG",Nv,Bv),nt("ggggg",Nv,Bv),a0(["gggg","ggggg","GGGG","GGGGG"],function(o,r,i,l){r[l.substr(0,2)]=Kt(o)}),a0(["gg","GG"],function(o,r,i,l){r[l]=Ve.parseTwoDigitYear(o)});function DA(o){return qw.call(this,o,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function TA(o){return qw.call(this,o,this.isoWeek(),this.isoWeekday(),1,4)}function RA(){return yl(this.year(),1,4)}function AA(){return yl(this.isoWeekYear(),1,4)}function kA(){var o=this.localeData()._week;return yl(this.year(),o.dow,o.doy)}function FA(){var o=this.localeData()._week;return yl(this.weekYear(),o.dow,o.doy)}function qw(o,r,i,l,f){var p;return o==null?u0(this,l,f).year:(p=yl(o,l,f),r>p&&(r=p),OA.call(this,o,r,i,l,f))}function OA(o,r,i,l,f){var p=Cw(o,r,i,l,f),v=l0(p.year,0,p.dayOfYear);return this.year(v.getUTCFullYear()),this.month(v.getUTCMonth()),this.date(v.getUTCDate()),this}gt("Q",0,"Qo","quarter"),nt("Q",cw),Mr("Q",function(o,r){r[gl]=(Kt(o)-1)*3});function BA(o){return o==null?Math.ceil((this.month()+1)/3):this.month((o-1)*3+this.month()%3)}gt("D",["DD",2],"Do","date"),nt("D",Wr,ed),nt("DD",Wr,Ua),nt("Do",function(o,r){return o?r._dayOfMonthOrdinalParse||r._ordinalParse:r._dayOfMonthOrdinalParseLenient}),Mr(["D","DD"],Do),Mr("Do",function(o,r){r[Do]=Kt(o.match(Wr)[0])});var Yw=td("Date",!0);gt("DDD",["DDDD",3],"DDDo","dayOfYear"),nt("DDD",Mv),nt("DDDD",fw),Mr(["DDD","DDDD"],function(o,r,i){i._dayOfYear=Kt(o)});function MA(o){var r=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return o==null?r:this.add(o-r,"d")}gt("m",["mm",2],0,"minute"),nt("m",Wr,t1),nt("mm",Wr,Ua),Mr(["m","mm"],js);var NA=td("Minutes",!1);gt("s",["ss",2],0,"second"),nt("s",Wr,t1),nt("ss",Wr,Ua),Mr(["s","ss"],ml);var HA=td("Seconds",!1);gt("S",0,0,function(){return~~(this.millisecond()/100)}),gt(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),gt(0,["SSS",3],0,"millisecond"),gt(0,["SSSS",4],0,function(){return this.millisecond()*10}),gt(0,["SSSSS",5],0,function(){return this.millisecond()*100}),gt(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),gt(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),gt(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),gt(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),nt("S",Mv,cw),nt("SS",Mv,Ua),nt("SSS",Mv,fw);var Su,Vw;for(Su="SSSS";Su.length<=9;Su+="S")nt(Su,Jf);function IA(o,r){r[Ac]=Kt(("0."+o)*1e3)}for(Su="S";Su.length<=9;Su+="S")Mr(Su,IA);Vw=td("Milliseconds",!1),gt("z",0,0,"zoneAbbr"),gt("zz",0,0,"zoneName");function $A(){return this._isUTC?"UTC":""}function PA(){return this._isUTC?"Coordinated Universal Time":""}var Ne=n0.prototype;Ne.add=F6,Ne.calendar=$6,Ne.clone=P6,Ne.diff=V6,Ne.endOf=rA,Ne.format=Q6,Ne.from=Z6,Ne.fromNow=X6,Ne.to=J6,Ne.toNow=eA,Ne.get=K8,Ne.invalidAt=fA,Ne.isAfter=L6,Ne.isBefore=U6,Ne.isBetween=j6,Ne.isSame=z6,Ne.isSameOrAfter=q6,Ne.isSameOrBefore=Y6,Ne.isValid=uA,Ne.lang=Pw,Ne.locale=$w,Ne.localeData=Lw,Ne.max=u6,Ne.min=l6,Ne.parsingFlags=cA,Ne.set=Q8,Ne.startOf=tA,Ne.subtract=O6,Ne.toArray=sA,Ne.toObject=oA,Ne.toDate=aA,Ne.toISOString=G6,Ne.inspect=K6,typeof Symbol<"u"&&Symbol.for!=null&&(Ne[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ne.toJSON=lA,Ne.toString=W6,Ne.unix=iA,Ne.valueOf=nA,Ne.creationData=dA,Ne.eraName=gA,Ne.eraNarrow=mA,Ne.eraAbbr=yA,Ne.eraYear=xA,Ne.year=pw,Ne.isLeapYear=G8,Ne.weekYear=DA,Ne.isoWeekYear=TA,Ne.quarter=Ne.quarters=BA,Ne.month=xw,Ne.daysInMonth=a4,Ne.week=Ne.weeks=h4,Ne.isoWeek=Ne.isoWeeks=p4,Ne.weeksInYear=kA,Ne.weeksInWeekYear=FA,Ne.isoWeeksInYear=RA,Ne.isoWeeksInISOWeekYear=AA,Ne.date=Yw,Ne.day=Ne.days=T4,Ne.weekday=R4,Ne.isoWeekday=A4,Ne.dayOfYear=MA,Ne.hour=Ne.hours=H4,Ne.minute=Ne.minutes=NA,Ne.second=Ne.seconds=HA,Ne.millisecond=Ne.milliseconds=Vw,Ne.utcOffset=y6,Ne.utc=E6,Ne.local=C6,Ne.parseZone=S6,Ne.hasAlignedHourOffset=w6,Ne.isDST=b6,Ne.isLocal=D6,Ne.isUtcOffset=T6,Ne.isUtc=Bw,Ne.isUTC=Bw,Ne.zoneAbbr=$A,Ne.zoneName=PA,Ne.dates=ss("dates accessor is deprecated. Use date instead.",Yw),Ne.months=ss("months accessor is deprecated. Use month instead",xw),Ne.years=ss("years accessor is deprecated. Use year instead",pw),Ne.zone=ss("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",x6),Ne.isDSTShifted=ss("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_6);function LA(o){return Gr(o*1e3)}function UA(){return Gr.apply(null,arguments).parseZone()}function Ww(o){return o}var mr=Gx.prototype;mr.calendar=D8,mr.longDateFormat=k8,mr.invalidDate=O8,mr.ordinal=N8,mr.preparse=Ww,mr.postformat=Ww,mr.relativeTime=I8,mr.pastFuture=$8,mr.set=b8,mr.eras=hA,mr.erasParse=pA,mr.erasConvertYear=vA,mr.erasAbbrRegex=CA,mr.erasNameRegex=EA,mr.erasNarrowRegex=SA,mr.months=t4,mr.monthsShort=r4,mr.monthsParse=i4,mr.monthsRegex=o4,mr.monthsShortRegex=s4,mr.week=u4,mr.firstDayOfYear=d4,mr.firstDayOfWeek=f4,mr.weekdays=S4,mr.weekdaysMin=b4,mr.weekdaysShort=w4,mr.weekdaysParse=D4,mr.weekdaysRegex=k4,mr.weekdaysShortRegex=F4,mr.weekdaysMinRegex=O4,mr.isPM=M4,mr.meridiem=I4;function Kv(o,r,i,l){var f=xl(),p=wo().set(l,r);return f[i](p,o)}function Gw(o,r,i){if(pl(o)&&(r=o,o=void 0),o=o||"",r!=null)return Kv(o,r,i,"month");var l,f=[];for(l=0;l<12;l++)f[l]=Kv(o,l,i,"month");return f}function y1(o,r,i,l){typeof o=="boolean"?(pl(r)&&(i=r,r=void 0),r=r||""):(r=o,i=r,o=!1,pl(r)&&(i=r,r=void 0),r=r||"");var f=xl(),p=o?f._week.dow:0,v,S=[];if(i!=null)return Kv(r,(i+p)%7,l,"day");for(v=0;v<7;v++)S[v]=Kv(r,(v+p)%7,l,"day");return S}function jA(o,r){return Gw(o,r,"months")}function zA(o,r){return Gw(o,r,"monthsShort")}function qA(o,r,i){return y1(o,r,i,"weekdays")}function YA(o,r,i){return y1(o,r,i,"weekdaysShort")}function VA(o,r,i){return y1(o,r,i,"weekdaysMin")}Cu("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(o){var r=o%10,i=Kt(o%100/10)===1?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return o+i}}),Ve.lang=ss("moment.lang is deprecated. Use moment.locale instead.",Cu),Ve.langData=ss("moment.langData is deprecated. Use moment.localeData instead.",xl);var El=Math.abs;function WA(){var o=this._data;return this._milliseconds=El(this._milliseconds),this._days=El(this._days),this._months=El(this._months),o.milliseconds=El(o.milliseconds),o.seconds=El(o.seconds),o.minutes=El(o.minutes),o.hours=El(o.hours),o.months=El(o.months),o.years=El(o.years),this}function Kw(o,r,i,l){var f=zs(r,i);return o._milliseconds+=l*f._milliseconds,o._days+=l*f._days,o._months+=l*f._months,o._bubble()}function GA(o,r){return Kw(this,o,r,1)}function KA(o,r){return Kw(this,o,r,-1)}function Qw(o){return o<0?Math.floor(o):Math.ceil(o)}function QA(){var o=this._milliseconds,r=this._days,i=this._months,l=this._data,f,p,v,S,w;return o>=0&&r>=0&&i>=0||o<=0&&r<=0&&i<=0||(o+=Qw(x1(i)+r)*864e5,r=0,i=0),l.milliseconds=o%1e3,f=ls(o/1e3),l.seconds=f%60,p=ls(f/60),l.minutes=p%60,v=ls(p/60),l.hours=v%24,r+=ls(v/24),w=ls(Zw(r)),i+=w,r-=Qw(x1(w)),S=ls(i/12),i%=12,l.days=r,l.months=i,l.years=S,this}function Zw(o){return o*4800/146097}function x1(o){return o*146097/4800}function ZA(o){if(!this.isValid())return NaN;var r,i,l=this._milliseconds;if(o=os(o),o==="month"||o==="quarter"||o==="year")switch(r=this._days+l/864e5,i=this._months+Zw(r),o){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(r=this._days+Math.round(x1(this._months)),o){case"week":return r/7+l/6048e5;case"day":return r+l/864e5;case"hour":return r*24+l/36e5;case"minute":return r*1440+l/6e4;case"second":return r*86400+l/1e3;case"millisecond":return Math.floor(r*864e5)+l;default:throw new Error("Unknown unit "+o)}}function Cl(o){return function(){return this.as(o)}}var Xw=Cl("ms"),XA=Cl("s"),JA=Cl("m"),ek=Cl("h"),tk=Cl("d"),rk=Cl("w"),nk=Cl("M"),ik=Cl("Q"),ak=Cl("y"),sk=Xw;function ok(){return zs(this)}function lk(o){return o=os(o),this.isValid()?this[o+"s"]():NaN}function Fc(o){return function(){return this.isValid()?this._data[o]:NaN}}var uk=Fc("milliseconds"),ck=Fc("seconds"),fk=Fc("minutes"),dk=Fc("hours"),hk=Fc("days"),pk=Fc("months"),vk=Fc("years");function gk(){return ls(this.days()/7)}var Sl=Math.round,ad={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function mk(o,r,i,l,f){return f.relativeTime(r||1,!!i,o,l)}function yk(o,r,i,l){var f=zs(o).abs(),p=Sl(f.as("s")),v=Sl(f.as("m")),S=Sl(f.as("h")),w=Sl(f.as("d")),C=Sl(f.as("M")),b=Sl(f.as("w")),R=Sl(f.as("y")),T=p<=i.ss&&["s",p]||p<i.s&&["ss",p]||v<=1&&["m"]||v<i.m&&["mm",v]||S<=1&&["h"]||S<i.h&&["hh",S]||w<=1&&["d"]||w<i.d&&["dd",w];return i.w!=null&&(T=T||b<=1&&["w"]||b<i.w&&["ww",b]),T=T||C<=1&&["M"]||C<i.M&&["MM",C]||R<=1&&["y"]||["yy",R],T[2]=r,T[3]=+o>0,T[4]=l,mk.apply(null,T)}function xk(o){return o===void 0?Sl:typeof o=="function"?(Sl=o,!0):!1}function Ek(o,r){return ad[o]===void 0?!1:r===void 0?ad[o]:(ad[o]=r,o==="s"&&(ad.ss=r-1),!0)}function Ck(o,r){if(!this.isValid())return this.localeData().invalidDate();var i=!1,l=ad,f,p;return typeof o=="object"&&(r=o,o=!1),typeof o=="boolean"&&(i=o),typeof r=="object"&&(l=Object.assign({},ad,r),r.s!=null&&r.ss==null&&(l.ss=r.s-1)),f=this.localeData(),p=yk(this,!i,l,f),i&&(p=f.pastFuture(+this,p)),f.postformat(p)}var E1=Math.abs;function sd(o){return(o>0)-(o<0)||+o}function Qv(){if(!this.isValid())return this.localeData().invalidDate();var o=E1(this._milliseconds)/1e3,r=E1(this._days),i=E1(this._months),l,f,p,v,S=this.asSeconds(),w,C,b,R;return S?(l=ls(o/60),f=ls(l/60),o%=60,l%=60,p=ls(i/12),i%=12,v=o?o.toFixed(3).replace(/\.?0+$/,""):"",w=S<0?"-":"",C=sd(this._months)!==sd(S)?"-":"",b=sd(this._days)!==sd(S)?"-":"",R=sd(this._milliseconds)!==sd(S)?"-":"",w+"P"+(p?C+p+"Y":"")+(i?C+i+"M":"")+(r?b+r+"D":"")+(f||l||o?"T":"")+(f?R+f+"H":"")+(l?R+l+"M":"")+(o?R+v+"S":"")):"P0D"}var ir=zv.prototype;ir.isValid=p6,ir.abs=WA,ir.add=GA,ir.subtract=KA,ir.as=ZA,ir.asMilliseconds=Xw,ir.asSeconds=XA,ir.asMinutes=JA,ir.asHours=ek,ir.asDays=tk,ir.asWeeks=rk,ir.asMonths=nk,ir.asQuarters=ik,ir.asYears=ak,ir.valueOf=sk,ir._bubble=QA,ir.clone=ok,ir.get=lk,ir.milliseconds=uk,ir.seconds=ck,ir.minutes=fk,ir.hours=dk,ir.days=hk,ir.weeks=gk,ir.months=pk,ir.years=vk,ir.humanize=Ck,ir.toISOString=Qv,ir.toString=Qv,ir.toJSON=Qv,ir.locale=$w,ir.localeData=Lw,ir.toIsoString=ss("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qv),ir.lang=Pw,gt("X",0,0,"unix"),gt("x",0,0,"valueOf"),nt("x",Hv),nt("X",j8),Mr("X",function(o,r,i){i._d=new Date(parseFloat(o)*1e3)}),Mr("x",function(o,r,i){i._d=new Date(Kt(o))});//! moment.js
|
|
426
|
-
Ve.version="2.30.1",S8(Gr),Ve.fn=Ne,Ve.min=c6,Ve.max=f6,Ve.now=d6,Ve.utc=wo,Ve.unix=LA,Ve.months=jA,Ve.isDate=r0,Ve.locale=Cu,Ve.invalid=kv,Ve.duration=zs,Ve.isMoment=Us,Ve.weekdays=qA,Ve.parseZone=UA,Ve.localeData=xl,Ve.isDuration=qv,Ve.monthsShort=zA,Ve.weekdaysMin=VA,Ve.defineLocale=o1,Ve.updateLocale=U4,Ve.locales=j4,Ve.weekdaysShort=YA,Ve.normalizeUnits=os,Ve.relativeTimeRounding=xk,Ve.relativeTimeThreshold=Ek,Ve.calendarFormat=I6,Ve.prototype=Ne,Ve.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let Zv=null,on=null,Jw=null,To=null;function Sk(o,r){if(!o||!o.sessionDescriptionHandler)return;const i=o.sessionDescriptionHandler.peerConnection;i&&i.getSenders().forEach(l=>{l.track&&l.track.kind==="audio"&&(l.track.enabled=r)})}function eb(o){To||(To=document.createElement("audio"),To.id="voxnix-remote-audio",To.autoplay=!0,document.body.appendChild(To));const r=new MediaStream;if(o.sessionDescriptionHandler&&o.sessionDescriptionHandler.peerConnection){o.sessionDescriptionHandler.peerConnection.getReceivers().forEach(l=>{l.track&&r.addTrack(l.track)});const i=o.sessionDescriptionHandler.peerConnection;if(!i._isSetRemoteDescPatched){const l=i.setRemoteDescription.bind(i);i.setRemoteDescription=function(f){if(f&&f.sdp&&f.type==="answer"){const v=(((i.localDescription||{}).sdp||"").match(/^m=/gm)||[]).length,S=(f.sdp.match(/^m=/gm)||[]).length;if(console.log("[RTC Patch] local offer m-lines:",v,"| remote answer m-lines:",S),v>0&&S>v){const
|
|
427
|
-
`);
|
|
428
|
-
`)||(
|
|
429
|
-
`),console.log("[RTC Patch] filtered to",(
|
|
425
|
+
`+new Error().stack),i=!1}return r.apply(this,arguments)},r)}var sw={};function ow(o,r){Ve.deprecationHandler!=null&&Ve.deprecationHandler(o,r),sw[o]||(aw(r),sw[o]=!0)}Ve.suppressDeprecationWarnings=!1,Ve.deprecationHandler=null;function bo(o){return typeof Function<"u"&&o instanceof Function||Object.prototype.toString.call(o)==="[object Function]"}function b8(o){var r,i;for(i in o)gr(o,i)&&(r=o[i],bo(r)?this[i]=r:this["_"+i]=r);this._config=o,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Wx(o,r){var i=Eu({},o),l;for(l in r)gr(r,l)&&(Rc(o[l])&&Rc(r[l])?(i[l]={},Eu(i[l],o[l]),Eu(i[l],r[l])):r[l]!=null?i[l]=r[l]:delete i[l]);for(l in o)gr(o,l)&&!gr(r,l)&&Rc(o[l])&&(i[l]=Eu({},i[l]));return i}function Gx(o){o!=null&&this.set(o)}var Kx;Object.keys?Kx=Object.keys:Kx=function(o){var r,i=[];for(r in o)gr(o,r)&&i.push(r);return i};var _8={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function D8(o,r,i){var l=this._calendar[o]||this._calendar.sameElse;return bo(l)?l.call(r,i):l}function _o(o,r,i){var l=""+Math.abs(o),f=r-l.length,p=o>=0;return(p?i?"+":"":"-")+Math.pow(10,Math.max(0,f)).toString().substr(1)+l}var Qx=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Fv=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Zx={},Xf={};function gt(o,r,i,l){var f=l;typeof l=="string"&&(f=function(){return this[l]()}),o&&(Xf[o]=f),r&&(Xf[r[0]]=function(){return _o(f.apply(this,arguments),r[1],r[2])}),i&&(Xf[i]=function(){return this.localeData().ordinal(f.apply(this,arguments),o)})}function T8(o){return o.match(/\[[\s\S]/)?o.replace(/^\[|\]$/g,""):o.replace(/\\/g,"")}function R8(o){var r=o.match(Qx),i,l;for(i=0,l=r.length;i<l;i++)Xf[r[i]]?r[i]=Xf[r[i]]:r[i]=T8(r[i]);return function(f){var p="",v;for(v=0;v<l;v++)p+=bo(r[v])?r[v].call(f,o):r[v];return p}}function Ov(o,r){return o.isValid()?(r=lw(r,o.localeData()),Zx[r]=Zx[r]||R8(r),Zx[r](o)):o.localeData().invalidDate()}function lw(o,r){var i=5;function l(f){return r.longDateFormat(f)||f}for(Fv.lastIndex=0;i>=0&&Fv.test(o);)o=o.replace(Fv,l),Fv.lastIndex=0,i-=1;return o}var A8={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function k8(o){var r=this._longDateFormat[o],i=this._longDateFormat[o.toUpperCase()];return r||!i?r:(this._longDateFormat[o]=i.match(Qx).map(function(l){return l==="MMMM"||l==="MM"||l==="DD"||l==="dddd"?l.slice(1):l}).join(""),this._longDateFormat[o])}var F8="Invalid date";function O8(){return this._invalidDate}var B8="%d",M8=/\d{1,2}/;function N8(o){return this._ordinal.replace("%d",o)}var H8={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function I8(o,r,i,l){var f=this._relativeTime[i];return bo(f)?f(o,r,i,l):f.replace(/%d/i,o)}function $8(o,r){var i=this._relativeTime[o>0?"future":"past"];return bo(i)?i(r):i.replace(/%s/i,r)}var uw={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function os(o){return typeof o=="string"?uw[o]||uw[o.toLowerCase()]:void 0}function Xx(o){var r={},i,l;for(l in o)gr(o,l)&&(i=os(l),i&&(r[i]=o[l]));return r}var P8={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function L8(o){var r=[],i;for(i in o)gr(o,i)&&r.push({unit:i,priority:P8[i]});return r.sort(function(l,f){return l.priority-f.priority}),r}var cw=/\d/,Ua=/\d\d/,fw=/\d{3}/,Jx=/\d{4}/,Bv=/[+-]?\d{6}/,Wr=/\d\d?/,dw=/\d\d\d\d?/,hw=/\d\d\d\d\d\d?/,Mv=/\d{1,3}/,e1=/\d{1,4}/,Nv=/[+-]?\d{1,6}/,Jf=/\d+/,Hv=/[+-]?\d+/,U8=/Z|[+-]\d\d:?\d\d/gi,Iv=/Z|[+-]\d\d(?::?\d\d)?/gi,j8=/[+-]?\d+(\.\d{1,3})?/,i0=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ed=/^[1-9]\d?/,t1=/^([1-9]\d|\d)/,$v;$v={};function nt(o,r,i){$v[o]=bo(r)?r:function(l,f){return l&&i?i:r}}function z8(o,r){return gr($v,o)?$v[o](r._strict,r._locale):new RegExp(q8(o))}function q8(o){return vl(o.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(r,i,l,f,p){return i||l||f||p}))}function vl(o){return o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ls(o){return o<0?Math.ceil(o)||0:Math.floor(o)}function Kt(o){var r=+o,i=0;return r!==0&&isFinite(r)&&(i=ls(r)),i}var r1={};function Mr(o,r){var i,l=r,f;for(typeof o=="string"&&(o=[o]),pl(r)&&(l=function(p,v){v[r]=Kt(p)}),f=o.length,i=0;i<f;i++)r1[o[i]]=l}function a0(o,r){Mr(o,function(i,l,f,p){f._w=f._w||{},r(i,f._w,f,p)})}function Y8(o,r,i){r!=null&&gr(r1,o)&&r1[o](r,i._a,i,o)}function Pv(o){return o%4===0&&o%100!==0||o%400===0}var Mi=0,gl=1,Do=2,qn=3,js=4,ml=5,Ac=6,V8=7,W8=8;gt("Y",0,0,function(){var o=this.year();return o<=9999?_o(o,4):"+"+o}),gt(0,["YY",2],0,function(){return this.year()%100}),gt(0,["YYYY",4],0,"year"),gt(0,["YYYYY",5],0,"year"),gt(0,["YYYYYY",6,!0],0,"year"),nt("Y",Hv),nt("YY",Wr,Ua),nt("YYYY",e1,Jx),nt("YYYYY",Nv,Bv),nt("YYYYYY",Nv,Bv),Mr(["YYYYY","YYYYYY"],Mi),Mr("YYYY",function(o,r){r[Mi]=o.length===2?Ve.parseTwoDigitYear(o):Kt(o)}),Mr("YY",function(o,r){r[Mi]=Ve.parseTwoDigitYear(o)}),Mr("Y",function(o,r){r[Mi]=parseInt(o,10)});function s0(o){return Pv(o)?366:365}Ve.parseTwoDigitYear=function(o){return Kt(o)+(Kt(o)>68?1900:2e3)};var pw=td("FullYear",!0);function G8(){return Pv(this.year())}function td(o,r){return function(i){return i!=null?(vw(this,o,i),Ve.updateOffset(this,r),this):o0(this,o)}}function o0(o,r){if(!o.isValid())return NaN;var i=o._d,l=o._isUTC;switch(r){case"Milliseconds":return l?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return l?i.getUTCSeconds():i.getSeconds();case"Minutes":return l?i.getUTCMinutes():i.getMinutes();case"Hours":return l?i.getUTCHours():i.getHours();case"Date":return l?i.getUTCDate():i.getDate();case"Day":return l?i.getUTCDay():i.getDay();case"Month":return l?i.getUTCMonth():i.getMonth();case"FullYear":return l?i.getUTCFullYear():i.getFullYear();default:return NaN}}function vw(o,r,i){var l,f,p,v,S;if(!(!o.isValid()||isNaN(i))){switch(l=o._d,f=o._isUTC,r){case"Milliseconds":return void(f?l.setUTCMilliseconds(i):l.setMilliseconds(i));case"Seconds":return void(f?l.setUTCSeconds(i):l.setSeconds(i));case"Minutes":return void(f?l.setUTCMinutes(i):l.setMinutes(i));case"Hours":return void(f?l.setUTCHours(i):l.setHours(i));case"Date":return void(f?l.setUTCDate(i):l.setDate(i));case"FullYear":break;default:return}p=i,v=o.month(),S=o.date(),S=S===29&&v===1&&!Pv(p)?28:S,f?l.setUTCFullYear(p,v,S):l.setFullYear(p,v,S)}}function K8(o){return o=os(o),bo(this[o])?this[o]():this}function Q8(o,r){if(typeof o=="object"){o=Xx(o);var i=L8(o),l,f=i.length;for(l=0;l<f;l++)this[i[l].unit](o[i[l].unit])}else if(o=os(o),bo(this[o]))return this[o](r);return this}function Z8(o,r){return(o%r+r)%r}var Dn;Array.prototype.indexOf?Dn=Array.prototype.indexOf:Dn=function(o){var r;for(r=0;r<this.length;++r)if(this[r]===o)return r;return-1};function n1(o,r){if(isNaN(o)||isNaN(r))return NaN;var i=Z8(r,12);return o+=(r-i)/12,i===1?Pv(o)?29:28:31-i%7%2}gt("M",["MM",2],"Mo",function(){return this.month()+1}),gt("MMM",0,0,function(o){return this.localeData().monthsShort(this,o)}),gt("MMMM",0,0,function(o){return this.localeData().months(this,o)}),nt("M",Wr,ed),nt("MM",Wr,Ua),nt("MMM",function(o,r){return r.monthsShortRegex(o)}),nt("MMMM",function(o,r){return r.monthsRegex(o)}),Mr(["M","MM"],function(o,r){r[gl]=Kt(o)-1}),Mr(["MMM","MMMM"],function(o,r,i,l){var f=i._locale.monthsParse(o,l,i._strict);f!=null?r[gl]=f:It(i).invalidMonth=o});var X8="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),gw="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),mw=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,J8=i0,e4=i0;function t4(o,r){return o?Ls(this._months)?this._months[o.month()]:this._months[(this._months.isFormat||mw).test(r)?"format":"standalone"][o.month()]:Ls(this._months)?this._months:this._months.standalone}function r4(o,r){return o?Ls(this._monthsShort)?this._monthsShort[o.month()]:this._monthsShort[mw.test(r)?"format":"standalone"][o.month()]:Ls(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function n4(o,r,i){var l,f,p,v=o.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],l=0;l<12;++l)p=wo([2e3,l]),this._shortMonthsParse[l]=this.monthsShort(p,"").toLocaleLowerCase(),this._longMonthsParse[l]=this.months(p,"").toLocaleLowerCase();return i?r==="MMM"?(f=Dn.call(this._shortMonthsParse,v),f!==-1?f:null):(f=Dn.call(this._longMonthsParse,v),f!==-1?f:null):r==="MMM"?(f=Dn.call(this._shortMonthsParse,v),f!==-1?f:(f=Dn.call(this._longMonthsParse,v),f!==-1?f:null)):(f=Dn.call(this._longMonthsParse,v),f!==-1?f:(f=Dn.call(this._shortMonthsParse,v),f!==-1?f:null))}function i4(o,r,i){var l,f,p;if(this._monthsParseExact)return n4.call(this,o,r,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),l=0;l<12;l++){if(f=wo([2e3,l]),i&&!this._longMonthsParse[l]&&(this._longMonthsParse[l]=new RegExp("^"+this.months(f,"").replace(".","")+"$","i"),this._shortMonthsParse[l]=new RegExp("^"+this.monthsShort(f,"").replace(".","")+"$","i")),!i&&!this._monthsParse[l]&&(p="^"+this.months(f,"")+"|^"+this.monthsShort(f,""),this._monthsParse[l]=new RegExp(p.replace(".",""),"i")),i&&r==="MMMM"&&this._longMonthsParse[l].test(o))return l;if(i&&r==="MMM"&&this._shortMonthsParse[l].test(o))return l;if(!i&&this._monthsParse[l].test(o))return l}}function yw(o,r){if(!o.isValid())return o;if(typeof r=="string"){if(/^\d+$/.test(r))r=Kt(r);else if(r=o.localeData().monthsParse(r),!pl(r))return o}var i=r,l=o.date();return l=l<29?l:Math.min(l,n1(o.year(),i)),o._isUTC?o._d.setUTCMonth(i,l):o._d.setMonth(i,l),o}function xw(o){return o!=null?(yw(this,o),Ve.updateOffset(this,!0),this):o0(this,"Month")}function a4(){return n1(this.year(),this.month())}function s4(o){return this._monthsParseExact?(gr(this,"_monthsRegex")||Ew.call(this),o?this._monthsShortStrictRegex:this._monthsShortRegex):(gr(this,"_monthsShortRegex")||(this._monthsShortRegex=J8),this._monthsShortStrictRegex&&o?this._monthsShortStrictRegex:this._monthsShortRegex)}function o4(o){return this._monthsParseExact?(gr(this,"_monthsRegex")||Ew.call(this),o?this._monthsStrictRegex:this._monthsRegex):(gr(this,"_monthsRegex")||(this._monthsRegex=e4),this._monthsStrictRegex&&o?this._monthsStrictRegex:this._monthsRegex)}function Ew(){function o(b,C){return C.length-b.length}var r=[],i=[],l=[],f,p,v,S;for(f=0;f<12;f++)p=wo([2e3,f]),v=vl(this.monthsShort(p,"")),S=vl(this.months(p,"")),r.push(v),i.push(S),l.push(S),l.push(v);r.sort(o),i.sort(o),l.sort(o),this._monthsRegex=new RegExp("^("+l.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function l4(o,r,i,l,f,p,v){var S;return o<100&&o>=0?(S=new Date(o+400,r,i,l,f,p,v),isFinite(S.getFullYear())&&S.setFullYear(o)):S=new Date(o,r,i,l,f,p,v),S}function l0(o){var r,i;return o<100&&o>=0?(i=Array.prototype.slice.call(arguments),i[0]=o+400,r=new Date(Date.UTC.apply(null,i)),isFinite(r.getUTCFullYear())&&r.setUTCFullYear(o)):r=new Date(Date.UTC.apply(null,arguments)),r}function Lv(o,r,i){var l=7+r-i,f=(7+l0(o,0,l).getUTCDay()-r)%7;return-f+l-1}function Cw(o,r,i,l,f){var p=(7+i-l)%7,v=Lv(o,l,f),S=1+7*(r-1)+p+v,b,C;return S<=0?(b=o-1,C=s0(b)+S):S>s0(o)?(b=o+1,C=S-s0(o)):(b=o,C=S),{year:b,dayOfYear:C}}function u0(o,r,i){var l=Lv(o.year(),r,i),f=Math.floor((o.dayOfYear()-l-1)/7)+1,p,v;return f<1?(v=o.year()-1,p=f+yl(v,r,i)):f>yl(o.year(),r,i)?(p=f-yl(o.year(),r,i),v=o.year()+1):(v=o.year(),p=f),{week:p,year:v}}function yl(o,r,i){var l=Lv(o,r,i),f=Lv(o+1,r,i);return(s0(o)-l+f)/7}gt("w",["ww",2],"wo","week"),gt("W",["WW",2],"Wo","isoWeek"),nt("w",Wr,ed),nt("ww",Wr,Ua),nt("W",Wr,ed),nt("WW",Wr,Ua),a0(["w","ww","W","WW"],function(o,r,i,l){r[l.substr(0,1)]=Kt(o)});function u4(o){return u0(o,this._week.dow,this._week.doy).week}var c4={dow:0,doy:6};function f4(){return this._week.dow}function d4(){return this._week.doy}function h4(o){var r=this.localeData().week(this);return o==null?r:this.add((o-r)*7,"d")}function p4(o){var r=u0(this,1,4).week;return o==null?r:this.add((o-r)*7,"d")}gt("d",0,"do","day"),gt("dd",0,0,function(o){return this.localeData().weekdaysMin(this,o)}),gt("ddd",0,0,function(o){return this.localeData().weekdaysShort(this,o)}),gt("dddd",0,0,function(o){return this.localeData().weekdays(this,o)}),gt("e",0,0,"weekday"),gt("E",0,0,"isoWeekday"),nt("d",Wr),nt("e",Wr),nt("E",Wr),nt("dd",function(o,r){return r.weekdaysMinRegex(o)}),nt("ddd",function(o,r){return r.weekdaysShortRegex(o)}),nt("dddd",function(o,r){return r.weekdaysRegex(o)}),a0(["dd","ddd","dddd"],function(o,r,i,l){var f=i._locale.weekdaysParse(o,l,i._strict);f!=null?r.d=f:It(i).invalidWeekday=o}),a0(["d","e","E"],function(o,r,i,l){r[l]=Kt(o)});function v4(o,r){return typeof o!="string"?o:isNaN(o)?(o=r.weekdaysParse(o),typeof o=="number"?o:null):parseInt(o,10)}function g4(o,r){return typeof o=="string"?r.weekdaysParse(o)%7||7:isNaN(o)?null:o}function i1(o,r){return o.slice(r,7).concat(o.slice(0,r))}var m4="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Sw="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),y4="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),x4=i0,E4=i0,C4=i0;function S4(o,r){var i=Ls(this._weekdays)?this._weekdays:this._weekdays[o&&o!==!0&&this._weekdays.isFormat.test(r)?"format":"standalone"];return o===!0?i1(i,this._week.dow):o?i[o.day()]:i}function w4(o){return o===!0?i1(this._weekdaysShort,this._week.dow):o?this._weekdaysShort[o.day()]:this._weekdaysShort}function b4(o){return o===!0?i1(this._weekdaysMin,this._week.dow):o?this._weekdaysMin[o.day()]:this._weekdaysMin}function _4(o,r,i){var l,f,p,v=o.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],l=0;l<7;++l)p=wo([2e3,1]).day(l),this._minWeekdaysParse[l]=this.weekdaysMin(p,"").toLocaleLowerCase(),this._shortWeekdaysParse[l]=this.weekdaysShort(p,"").toLocaleLowerCase(),this._weekdaysParse[l]=this.weekdays(p,"").toLocaleLowerCase();return i?r==="dddd"?(f=Dn.call(this._weekdaysParse,v),f!==-1?f:null):r==="ddd"?(f=Dn.call(this._shortWeekdaysParse,v),f!==-1?f:null):(f=Dn.call(this._minWeekdaysParse,v),f!==-1?f:null):r==="dddd"?(f=Dn.call(this._weekdaysParse,v),f!==-1||(f=Dn.call(this._shortWeekdaysParse,v),f!==-1)?f:(f=Dn.call(this._minWeekdaysParse,v),f!==-1?f:null)):r==="ddd"?(f=Dn.call(this._shortWeekdaysParse,v),f!==-1||(f=Dn.call(this._weekdaysParse,v),f!==-1)?f:(f=Dn.call(this._minWeekdaysParse,v),f!==-1?f:null)):(f=Dn.call(this._minWeekdaysParse,v),f!==-1||(f=Dn.call(this._weekdaysParse,v),f!==-1)?f:(f=Dn.call(this._shortWeekdaysParse,v),f!==-1?f:null))}function D4(o,r,i){var l,f,p;if(this._weekdaysParseExact)return _4.call(this,o,r,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),l=0;l<7;l++){if(f=wo([2e3,1]).day(l),i&&!this._fullWeekdaysParse[l]&&(this._fullWeekdaysParse[l]=new RegExp("^"+this.weekdays(f,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[l]=new RegExp("^"+this.weekdaysShort(f,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[l]=new RegExp("^"+this.weekdaysMin(f,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[l]||(p="^"+this.weekdays(f,"")+"|^"+this.weekdaysShort(f,"")+"|^"+this.weekdaysMin(f,""),this._weekdaysParse[l]=new RegExp(p.replace(".",""),"i")),i&&r==="dddd"&&this._fullWeekdaysParse[l].test(o))return l;if(i&&r==="ddd"&&this._shortWeekdaysParse[l].test(o))return l;if(i&&r==="dd"&&this._minWeekdaysParse[l].test(o))return l;if(!i&&this._weekdaysParse[l].test(o))return l}}function T4(o){if(!this.isValid())return o!=null?this:NaN;var r=o0(this,"Day");return o!=null?(o=v4(o,this.localeData()),this.add(o-r,"d")):r}function R4(o){if(!this.isValid())return o!=null?this:NaN;var r=(this.day()+7-this.localeData()._week.dow)%7;return o==null?r:this.add(o-r,"d")}function A4(o){if(!this.isValid())return o!=null?this:NaN;if(o!=null){var r=g4(o,this.localeData());return this.day(this.day()%7?r:r-7)}else return this.day()||7}function k4(o){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||a1.call(this),o?this._weekdaysStrictRegex:this._weekdaysRegex):(gr(this,"_weekdaysRegex")||(this._weekdaysRegex=x4),this._weekdaysStrictRegex&&o?this._weekdaysStrictRegex:this._weekdaysRegex)}function F4(o){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||a1.call(this),o?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(gr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=E4),this._weekdaysShortStrictRegex&&o?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function O4(o){return this._weekdaysParseExact?(gr(this,"_weekdaysRegex")||a1.call(this),o?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(gr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=C4),this._weekdaysMinStrictRegex&&o?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function a1(){function o(w,T){return T.length-w.length}var r=[],i=[],l=[],f=[],p,v,S,b,C;for(p=0;p<7;p++)v=wo([2e3,1]).day(p),S=vl(this.weekdaysMin(v,"")),b=vl(this.weekdaysShort(v,"")),C=vl(this.weekdays(v,"")),r.push(S),i.push(b),l.push(C),f.push(S),f.push(b),f.push(C);r.sort(o),i.sort(o),l.sort(o),f.sort(o),this._weekdaysRegex=new RegExp("^("+f.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function s1(){return this.hours()%12||12}function B4(){return this.hours()||24}gt("H",["HH",2],0,"hour"),gt("h",["hh",2],0,s1),gt("k",["kk",2],0,B4),gt("hmm",0,0,function(){return""+s1.apply(this)+_o(this.minutes(),2)}),gt("hmmss",0,0,function(){return""+s1.apply(this)+_o(this.minutes(),2)+_o(this.seconds(),2)}),gt("Hmm",0,0,function(){return""+this.hours()+_o(this.minutes(),2)}),gt("Hmmss",0,0,function(){return""+this.hours()+_o(this.minutes(),2)+_o(this.seconds(),2)});function ww(o,r){gt(o,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),r)})}ww("a",!0),ww("A",!1);function bw(o,r){return r._meridiemParse}nt("a",bw),nt("A",bw),nt("H",Wr,t1),nt("h",Wr,ed),nt("k",Wr,ed),nt("HH",Wr,Ua),nt("hh",Wr,Ua),nt("kk",Wr,Ua),nt("hmm",dw),nt("hmmss",hw),nt("Hmm",dw),nt("Hmmss",hw),Mr(["H","HH"],qn),Mr(["k","kk"],function(o,r,i){var l=Kt(o);r[qn]=l===24?0:l}),Mr(["a","A"],function(o,r,i){i._isPm=i._locale.isPM(o),i._meridiem=o}),Mr(["h","hh"],function(o,r,i){r[qn]=Kt(o),It(i).bigHour=!0}),Mr("hmm",function(o,r,i){var l=o.length-2;r[qn]=Kt(o.substr(0,l)),r[js]=Kt(o.substr(l)),It(i).bigHour=!0}),Mr("hmmss",function(o,r,i){var l=o.length-4,f=o.length-2;r[qn]=Kt(o.substr(0,l)),r[js]=Kt(o.substr(l,2)),r[ml]=Kt(o.substr(f)),It(i).bigHour=!0}),Mr("Hmm",function(o,r,i){var l=o.length-2;r[qn]=Kt(o.substr(0,l)),r[js]=Kt(o.substr(l))}),Mr("Hmmss",function(o,r,i){var l=o.length-4,f=o.length-2;r[qn]=Kt(o.substr(0,l)),r[js]=Kt(o.substr(l,2)),r[ml]=Kt(o.substr(f))});function M4(o){return(o+"").toLowerCase().charAt(0)==="p"}var N4=/[ap]\.?m?\.?/i,H4=td("Hours",!0);function I4(o,r,i){return o>11?i?"pm":"PM":i?"am":"AM"}var _w={calendar:_8,longDateFormat:A8,invalidDate:F8,ordinal:B8,dayOfMonthOrdinalParse:M8,relativeTime:H8,months:X8,monthsShort:gw,week:c4,weekdays:m4,weekdaysMin:y4,weekdaysShort:Sw,meridiemParse:N4},rn={},c0={},f0;function $4(o,r){var i,l=Math.min(o.length,r.length);for(i=0;i<l;i+=1)if(o[i]!==r[i])return i;return l}function Dw(o){return o&&o.toLowerCase().replace("_","-")}function P4(o){for(var r=0,i,l,f,p;r<o.length;){for(p=Dw(o[r]).split("-"),i=p.length,l=Dw(o[r+1]),l=l?l.split("-"):null;i>0;){if(f=Uv(p.slice(0,i).join("-")),f)return f;if(l&&l.length>=i&&$4(p,l)>=i-1)break;i--}r++}return f0}function L4(o){return!!(o&&o.match("^[^/\\\\]*$"))}function Uv(o){var r=null,i;if(rn[o]===void 0&&typeof module<"u"&&module&&module.exports&&L4(o))try{r=f0._abbr,i=require,i("./locale/"+o),Cu(r)}catch{rn[o]=null}return rn[o]}function Cu(o,r){var i;return o&&(xa(r)?i=xl(o):i=o1(o,r),i?f0=i:typeof console<"u"&&console.warn&&console.warn("Locale "+o+" not found. Did you forget to load it?")),f0._abbr}function o1(o,r){if(r!==null){var i,l=_w;if(r.abbr=o,rn[o]!=null)ow("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),l=rn[o]._config;else if(r.parentLocale!=null)if(rn[r.parentLocale]!=null)l=rn[r.parentLocale]._config;else if(i=Uv(r.parentLocale),i!=null)l=i._config;else return c0[r.parentLocale]||(c0[r.parentLocale]=[]),c0[r.parentLocale].push({name:o,config:r}),null;return rn[o]=new Gx(Wx(l,r)),c0[o]&&c0[o].forEach(function(f){o1(f.name,f.config)}),Cu(o),rn[o]}else return delete rn[o],null}function U4(o,r){if(r!=null){var i,l,f=_w;rn[o]!=null&&rn[o].parentLocale!=null?rn[o].set(Wx(rn[o]._config,r)):(l=Uv(o),l!=null&&(f=l._config),r=Wx(f,r),l==null&&(r.abbr=o),i=new Gx(r),i.parentLocale=rn[o],rn[o]=i),Cu(o)}else rn[o]!=null&&(rn[o].parentLocale!=null?(rn[o]=rn[o].parentLocale,o===Cu()&&Cu(o)):rn[o]!=null&&delete rn[o]);return rn[o]}function xl(o){var r;if(o&&o._locale&&o._locale._abbr&&(o=o._locale._abbr),!o)return f0;if(!Ls(o)){if(r=Uv(o),r)return r;o=[o]}return P4(o)}function j4(){return Kx(rn)}function l1(o){var r,i=o._a;return i&&It(o).overflow===-2&&(r=i[gl]<0||i[gl]>11?gl:i[Do]<1||i[Do]>n1(i[Mi],i[gl])?Do:i[qn]<0||i[qn]>24||i[qn]===24&&(i[js]!==0||i[ml]!==0||i[Ac]!==0)?qn:i[js]<0||i[js]>59?js:i[ml]<0||i[ml]>59?ml:i[Ac]<0||i[Ac]>999?Ac:-1,It(o)._overflowDayOfYear&&(r<Mi||r>Do)&&(r=Do),It(o)._overflowWeeks&&r===-1&&(r=V8),It(o)._overflowWeekday&&r===-1&&(r=W8),It(o).overflow=r),o}var z4=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,q4=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Y4=/Z|[+-]\d\d(?::?\d\d)?/,jv=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],u1=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],V4=/^\/?Date\((-?\d+)/i,W4=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,G4={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Tw(o){var r,i,l=o._i,f=z4.exec(l)||q4.exec(l),p,v,S,b,C=jv.length,w=u1.length;if(f){for(It(o).iso=!0,r=0,i=C;r<i;r++)if(jv[r][1].exec(f[1])){v=jv[r][0],p=jv[r][2]!==!1;break}if(v==null){o._isValid=!1;return}if(f[3]){for(r=0,i=w;r<i;r++)if(u1[r][1].exec(f[3])){S=(f[2]||" ")+u1[r][0];break}if(S==null){o._isValid=!1;return}}if(!p&&S!=null){o._isValid=!1;return}if(f[4])if(Y4.exec(f[4]))b="Z";else{o._isValid=!1;return}o._f=v+(S||"")+(b||""),f1(o)}else o._isValid=!1}function K4(o,r,i,l,f,p){var v=[Q4(o),gw.indexOf(r),parseInt(i,10),parseInt(l,10),parseInt(f,10)];return p&&v.push(parseInt(p,10)),v}function Q4(o){var r=parseInt(o,10);return r<=49?2e3+r:r<=999?1900+r:r}function Z4(o){return o.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function X4(o,r,i){if(o){var l=Sw.indexOf(o),f=new Date(r[0],r[1],r[2]).getDay();if(l!==f)return It(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function J4(o,r,i){if(o)return G4[o];if(r)return 0;var l=parseInt(i,10),f=l%100,p=(l-f)/100;return p*60+f}function Rw(o){var r=W4.exec(Z4(o._i)),i;if(r){if(i=K4(r[4],r[3],r[2],r[5],r[6],r[7]),!X4(r[1],i,o))return;o._a=i,o._tzm=J4(r[8],r[9],r[10]),o._d=l0.apply(null,o._a),o._d.setUTCMinutes(o._d.getUTCMinutes()-o._tzm),It(o).rfc2822=!0}else o._isValid=!1}function e6(o){var r=V4.exec(o._i);if(r!==null){o._d=new Date(+r[1]);return}if(Tw(o),o._isValid===!1)delete o._isValid;else return;if(Rw(o),o._isValid===!1)delete o._isValid;else return;o._strict?o._isValid=!1:Ve.createFromInputFallback(o)}Ve.createFromInputFallback=ss("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(o){o._d=new Date(o._i+(o._useUTC?" UTC":""))});function rd(o,r,i){return o??r??i}function t6(o){var r=new Date(Ve.now());return o._useUTC?[r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate()]:[r.getFullYear(),r.getMonth(),r.getDate()]}function c1(o){var r,i,l=[],f,p,v;if(!o._d){for(f=t6(o),o._w&&o._a[Do]==null&&o._a[gl]==null&&r6(o),o._dayOfYear!=null&&(v=rd(o._a[Mi],f[Mi]),(o._dayOfYear>s0(v)||o._dayOfYear===0)&&(It(o)._overflowDayOfYear=!0),i=l0(v,0,o._dayOfYear),o._a[gl]=i.getUTCMonth(),o._a[Do]=i.getUTCDate()),r=0;r<3&&o._a[r]==null;++r)o._a[r]=l[r]=f[r];for(;r<7;r++)o._a[r]=l[r]=o._a[r]==null?r===2?1:0:o._a[r];o._a[qn]===24&&o._a[js]===0&&o._a[ml]===0&&o._a[Ac]===0&&(o._nextDay=!0,o._a[qn]=0),o._d=(o._useUTC?l0:l4).apply(null,l),p=o._useUTC?o._d.getUTCDay():o._d.getDay(),o._tzm!=null&&o._d.setUTCMinutes(o._d.getUTCMinutes()-o._tzm),o._nextDay&&(o._a[qn]=24),o._w&&typeof o._w.d<"u"&&o._w.d!==p&&(It(o).weekdayMismatch=!0)}}function r6(o){var r,i,l,f,p,v,S,b,C;r=o._w,r.GG!=null||r.W!=null||r.E!=null?(p=1,v=4,i=rd(r.GG,o._a[Mi],u0(Gr(),1,4).year),l=rd(r.W,1),f=rd(r.E,1),(f<1||f>7)&&(b=!0)):(p=o._locale._week.dow,v=o._locale._week.doy,C=u0(Gr(),p,v),i=rd(r.gg,o._a[Mi],C.year),l=rd(r.w,C.week),r.d!=null?(f=r.d,(f<0||f>6)&&(b=!0)):r.e!=null?(f=r.e+p,(r.e<0||r.e>6)&&(b=!0)):f=p),l<1||l>yl(i,p,v)?It(o)._overflowWeeks=!0:b!=null?It(o)._overflowWeekday=!0:(S=Cw(i,l,f,p,v),o._a[Mi]=S.year,o._dayOfYear=S.dayOfYear)}Ve.ISO_8601=function(){},Ve.RFC_2822=function(){};function f1(o){if(o._f===Ve.ISO_8601){Tw(o);return}if(o._f===Ve.RFC_2822){Rw(o);return}o._a=[],It(o).empty=!0;var r=""+o._i,i,l,f,p,v,S=r.length,b=0,C,w;for(f=lw(o._f,o._locale).match(Qx)||[],w=f.length,i=0;i<w;i++)p=f[i],l=(r.match(z8(p,o))||[])[0],l&&(v=r.substr(0,r.indexOf(l)),v.length>0&&It(o).unusedInput.push(v),r=r.slice(r.indexOf(l)+l.length),b+=l.length),Xf[p]?(l?It(o).empty=!1:It(o).unusedTokens.push(p),Y8(p,l,o)):o._strict&&!l&&It(o).unusedTokens.push(p);It(o).charsLeftOver=S-b,r.length>0&&It(o).unusedInput.push(r),o._a[qn]<=12&&It(o).bigHour===!0&&o._a[qn]>0&&(It(o).bigHour=void 0),It(o).parsedDateParts=o._a.slice(0),It(o).meridiem=o._meridiem,o._a[qn]=n6(o._locale,o._a[qn],o._meridiem),C=It(o).era,C!==null&&(o._a[Mi]=o._locale.erasConvertYear(C,o._a[Mi])),c1(o),l1(o)}function n6(o,r,i){var l;return i==null?r:o.meridiemHour!=null?o.meridiemHour(r,i):(o.isPM!=null&&(l=o.isPM(i),l&&r<12&&(r+=12),!l&&r===12&&(r=0)),r)}function i6(o){var r,i,l,f,p,v,S=!1,b=o._f.length;if(b===0){It(o).invalidFormat=!0,o._d=new Date(NaN);return}for(f=0;f<b;f++)p=0,v=!1,r=Vx({},o),o._useUTC!=null&&(r._useUTC=o._useUTC),r._f=o._f[f],f1(r),qx(r)&&(v=!0),p+=It(r).charsLeftOver,p+=It(r).unusedTokens.length*10,It(r).score=p,S?p<l&&(l=p,i=r):(l==null||p<l||v)&&(l=p,i=r,v&&(S=!0));Eu(o,i||r)}function a6(o){if(!o._d){var r=Xx(o._i),i=r.day===void 0?r.date:r.day;o._a=nw([r.year,r.month,i,r.hour,r.minute,r.second,r.millisecond],function(l){return l&&parseInt(l,10)}),c1(o)}}function s6(o){var r=new n0(l1(Aw(o)));return r._nextDay&&(r.add(1,"d"),r._nextDay=void 0),r}function Aw(o){var r=o._i,i=o._f;return o._locale=o._locale||xl(o._l),r===null||i===void 0&&r===""?kv({nullInput:!0}):(typeof r=="string"&&(o._i=r=o._locale.preparse(r)),Us(r)?new n0(l1(r)):(r0(r)?o._d=r:Ls(i)?i6(o):i?f1(o):o6(o),qx(o)||(o._d=null),o))}function o6(o){var r=o._i;xa(r)?o._d=new Date(Ve.now()):r0(r)?o._d=new Date(r.valueOf()):typeof r=="string"?e6(o):Ls(r)?(o._a=nw(r.slice(0),function(i){return parseInt(i,10)}),c1(o)):Rc(r)?a6(o):pl(r)?o._d=new Date(r):Ve.createFromInputFallback(o)}function kw(o,r,i,l,f){var p={};return(r===!0||r===!1)&&(l=r,r=void 0),(i===!0||i===!1)&&(l=i,i=void 0),(Rc(o)&&jx(o)||Ls(o)&&o.length===0)&&(o=void 0),p._isAMomentObject=!0,p._useUTC=p._isUTC=f,p._l=i,p._i=o,p._f=r,p._strict=l,s6(p)}function Gr(o,r,i,l){return kw(o,r,i,l,!1)}var l6=ss("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var o=Gr.apply(null,arguments);return this.isValid()&&o.isValid()?o<this?this:o:kv()}),u6=ss("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var o=Gr.apply(null,arguments);return this.isValid()&&o.isValid()?o>this?this:o:kv()});function Fw(o,r){var i,l;if(r.length===1&&Ls(r[0])&&(r=r[0]),!r.length)return Gr();for(i=r[0],l=1;l<r.length;++l)(!r[l].isValid()||r[l][o](i))&&(i=r[l]);return i}function c6(){var o=[].slice.call(arguments,0);return Fw("isBefore",o)}function f6(){var o=[].slice.call(arguments,0);return Fw("isAfter",o)}var d6=function(){return Date.now?Date.now():+new Date},d0=["year","quarter","month","week","day","hour","minute","second","millisecond"];function h6(o){var r,i=!1,l,f=d0.length;for(r in o)if(gr(o,r)&&!(Dn.call(d0,r)!==-1&&(o[r]==null||!isNaN(o[r]))))return!1;for(l=0;l<f;++l)if(o[d0[l]]){if(i)return!1;parseFloat(o[d0[l]])!==Kt(o[d0[l]])&&(i=!0)}return!0}function p6(){return this._isValid}function v6(){return zs(NaN)}function zv(o){var r=Xx(o),i=r.year||0,l=r.quarter||0,f=r.month||0,p=r.week||r.isoWeek||0,v=r.day||0,S=r.hour||0,b=r.minute||0,C=r.second||0,w=r.millisecond||0;this._isValid=h6(r),this._milliseconds=+w+C*1e3+b*6e4+S*1e3*60*60,this._days=+v+p*7,this._months=+f+l*3+i*12,this._data={},this._locale=xl(),this._bubble()}function qv(o){return o instanceof zv}function d1(o){return o<0?Math.round(-1*o)*-1:Math.round(o)}function g6(o,r,i){var l=Math.min(o.length,r.length),f=Math.abs(o.length-r.length),p=0,v;for(v=0;v<l;v++)Kt(o[v])!==Kt(r[v])&&p++;return p+f}function Ow(o,r){gt(o,0,0,function(){var i=this.utcOffset(),l="+";return i<0&&(i=-i,l="-"),l+_o(~~(i/60),2)+r+_o(~~i%60,2)})}Ow("Z",":"),Ow("ZZ",""),nt("Z",Iv),nt("ZZ",Iv),Mr(["Z","ZZ"],function(o,r,i){i._useUTC=!0,i._tzm=h1(Iv,o)});var m6=/([\+\-]|\d\d)/gi;function h1(o,r){var i=(r||"").match(o),l,f,p;return i===null?null:(l=i[i.length-1]||[],f=(l+"").match(m6)||["-",0,0],p=+(f[1]*60)+Kt(f[2]),p===0?0:f[0]==="+"?p:-p)}function p1(o,r){var i,l;return r._isUTC?(i=r.clone(),l=(Us(o)||r0(o)?o.valueOf():Gr(o).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+l),Ve.updateOffset(i,!1),i):Gr(o).local()}function v1(o){return-Math.round(o._d.getTimezoneOffset())}Ve.updateOffset=function(){};function y6(o,r,i){var l=this._offset||0,f;if(!this.isValid())return o!=null?this:NaN;if(o!=null){if(typeof o=="string"){if(o=h1(Iv,o),o===null)return this}else Math.abs(o)<16&&!i&&(o=o*60);return!this._isUTC&&r&&(f=v1(this)),this._offset=o,this._isUTC=!0,f!=null&&this.add(f,"m"),l!==o&&(!r||this._changeInProgress?Hw(this,zs(o-l,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Ve.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?l:v1(this)}function x6(o,r){return o!=null?(typeof o!="string"&&(o=-o),this.utcOffset(o,r),this):-this.utcOffset()}function E6(o){return this.utcOffset(0,o)}function C6(o){return this._isUTC&&(this.utcOffset(0,o),this._isUTC=!1,o&&this.subtract(v1(this),"m")),this}function S6(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var o=h1(U8,this._i);o!=null?this.utcOffset(o):this.utcOffset(0,!0)}return this}function w6(o){return this.isValid()?(o=o?Gr(o).utcOffset():0,(this.utcOffset()-o)%60===0):!1}function b6(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _6(){if(!xa(this._isDSTShifted))return this._isDSTShifted;var o={},r;return Vx(o,this),o=Aw(o),o._a?(r=o._isUTC?wo(o._a):Gr(o._a),this._isDSTShifted=this.isValid()&&g6(o._a,r.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function D6(){return this.isValid()?!this._isUTC:!1}function T6(){return this.isValid()?this._isUTC:!1}function Bw(){return this.isValid()?this._isUTC&&this._offset===0:!1}var R6=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,A6=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function zs(o,r){var i=o,l=null,f,p,v;return qv(o)?i={ms:o._milliseconds,d:o._days,M:o._months}:pl(o)||!isNaN(+o)?(i={},r?i[r]=+o:i.milliseconds=+o):(l=R6.exec(o))?(f=l[1]==="-"?-1:1,i={y:0,d:Kt(l[Do])*f,h:Kt(l[qn])*f,m:Kt(l[js])*f,s:Kt(l[ml])*f,ms:Kt(d1(l[Ac]*1e3))*f}):(l=A6.exec(o))?(f=l[1]==="-"?-1:1,i={y:kc(l[2],f),M:kc(l[3],f),w:kc(l[4],f),d:kc(l[5],f),h:kc(l[6],f),m:kc(l[7],f),s:kc(l[8],f)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(v=k6(Gr(i.from),Gr(i.to)),i={},i.ms=v.milliseconds,i.M=v.months),p=new zv(i),qv(o)&&gr(o,"_locale")&&(p._locale=o._locale),qv(o)&&gr(o,"_isValid")&&(p._isValid=o._isValid),p}zs.fn=zv.prototype,zs.invalid=v6;function kc(o,r){var i=o&&parseFloat(o.replace(",","."));return(isNaN(i)?0:i)*r}function Mw(o,r){var i={};return i.months=r.month()-o.month()+(r.year()-o.year())*12,o.clone().add(i.months,"M").isAfter(r)&&--i.months,i.milliseconds=+r-+o.clone().add(i.months,"M"),i}function k6(o,r){var i;return o.isValid()&&r.isValid()?(r=p1(r,o),o.isBefore(r)?i=Mw(o,r):(i=Mw(r,o),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function Nw(o,r){return function(i,l){var f,p;return l!==null&&!isNaN(+l)&&(ow(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),p=i,i=l,l=p),f=zs(i,l),Hw(this,f,o),this}}function Hw(o,r,i,l){var f=r._milliseconds,p=d1(r._days),v=d1(r._months);o.isValid()&&(l=l??!0,v&&yw(o,o0(o,"Month")+v*i),p&&vw(o,"Date",o0(o,"Date")+p*i),f&&o._d.setTime(o._d.valueOf()+f*i),l&&Ve.updateOffset(o,p||v))}var F6=Nw(1,"add"),O6=Nw(-1,"subtract");function Iw(o){return typeof o=="string"||o instanceof String}function B6(o){return Us(o)||r0(o)||Iw(o)||pl(o)||N6(o)||M6(o)||o===null||o===void 0}function M6(o){var r=Rc(o)&&!jx(o),i=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],f,p,v=l.length;for(f=0;f<v;f+=1)p=l[f],i=i||gr(o,p);return r&&i}function N6(o){var r=Ls(o),i=!1;return r&&(i=o.filter(function(l){return!pl(l)&&Iw(o)}).length===0),r&&i}function H6(o){var r=Rc(o)&&!jx(o),i=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],f,p;for(f=0;f<l.length;f+=1)p=l[f],i=i||gr(o,p);return r&&i}function I6(o,r){var i=o.diff(r,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function $6(o,r){arguments.length===1&&(arguments[0]?B6(arguments[0])?(o=arguments[0],r=void 0):H6(arguments[0])&&(r=arguments[0],o=void 0):(o=void 0,r=void 0));var i=o||Gr(),l=p1(i,this).startOf("day"),f=Ve.calendarFormat(this,l)||"sameElse",p=r&&(bo(r[f])?r[f].call(this,i):r[f]);return this.format(p||this.localeData().calendar(f,this,Gr(i)))}function P6(){return new n0(this)}function L6(o,r){var i=Us(o)?o:Gr(o);return this.isValid()&&i.isValid()?(r=os(r)||"millisecond",r==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(r).valueOf()):!1}function U6(o,r){var i=Us(o)?o:Gr(o);return this.isValid()&&i.isValid()?(r=os(r)||"millisecond",r==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(r).valueOf()<i.valueOf()):!1}function j6(o,r,i,l){var f=Us(o)?o:Gr(o),p=Us(r)?r:Gr(r);return this.isValid()&&f.isValid()&&p.isValid()?(l=l||"()",(l[0]==="("?this.isAfter(f,i):!this.isBefore(f,i))&&(l[1]===")"?this.isBefore(p,i):!this.isAfter(p,i))):!1}function z6(o,r){var i=Us(o)?o:Gr(o),l;return this.isValid()&&i.isValid()?(r=os(r)||"millisecond",r==="millisecond"?this.valueOf()===i.valueOf():(l=i.valueOf(),this.clone().startOf(r).valueOf()<=l&&l<=this.clone().endOf(r).valueOf())):!1}function q6(o,r){return this.isSame(o,r)||this.isAfter(o,r)}function Y6(o,r){return this.isSame(o,r)||this.isBefore(o,r)}function V6(o,r,i){var l,f,p;if(!this.isValid())return NaN;if(l=p1(o,this),!l.isValid())return NaN;switch(f=(l.utcOffset()-this.utcOffset())*6e4,r=os(r),r){case"year":p=Yv(this,l)/12;break;case"month":p=Yv(this,l);break;case"quarter":p=Yv(this,l)/3;break;case"second":p=(this-l)/1e3;break;case"minute":p=(this-l)/6e4;break;case"hour":p=(this-l)/36e5;break;case"day":p=(this-l-f)/864e5;break;case"week":p=(this-l-f)/6048e5;break;default:p=this-l}return i?p:ls(p)}function Yv(o,r){if(o.date()<r.date())return-Yv(r,o);var i=(r.year()-o.year())*12+(r.month()-o.month()),l=o.clone().add(i,"months"),f,p;return r-l<0?(f=o.clone().add(i-1,"months"),p=(r-l)/(l-f)):(f=o.clone().add(i+1,"months"),p=(r-l)/(f-l)),-(i+p)||0}Ve.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",Ve.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function W6(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function G6(o){if(!this.isValid())return null;var r=o!==!0,i=r?this.clone().utc():this;return i.year()<0||i.year()>9999?Ov(i,r?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):bo(Date.prototype.toISOString)?r?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ov(i,"Z")):Ov(i,r?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function K6(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var o="moment",r="",i,l,f,p;return this.isLocal()||(o=this.utcOffset()===0?"moment.utc":"moment.parseZone",r="Z"),i="["+o+'("]',l=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",f="-MM-DD[T]HH:mm:ss.SSS",p=r+'[")]',this.format(i+l+f+p)}function Q6(o){o||(o=this.isUtc()?Ve.defaultFormatUtc:Ve.defaultFormat);var r=Ov(this,o);return this.localeData().postformat(r)}function Z6(o,r){return this.isValid()&&(Us(o)&&o.isValid()||Gr(o).isValid())?zs({to:this,from:o}).locale(this.locale()).humanize(!r):this.localeData().invalidDate()}function X6(o){return this.from(Gr(),o)}function J6(o,r){return this.isValid()&&(Us(o)&&o.isValid()||Gr(o).isValid())?zs({from:this,to:o}).locale(this.locale()).humanize(!r):this.localeData().invalidDate()}function eA(o){return this.to(Gr(),o)}function $w(o){var r;return o===void 0?this._locale._abbr:(r=xl(o),r!=null&&(this._locale=r),this)}var Pw=ss("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(o){return o===void 0?this.localeData():this.locale(o)});function Lw(){return this._locale}var Vv=1e3,nd=60*Vv,Wv=60*nd,Uw=(365*400+97)*24*Wv;function id(o,r){return(o%r+r)%r}function jw(o,r,i){return o<100&&o>=0?new Date(o+400,r,i)-Uw:new Date(o,r,i).valueOf()}function zw(o,r,i){return o<100&&o>=0?Date.UTC(o+400,r,i)-Uw:Date.UTC(o,r,i)}function tA(o){var r,i;if(o=os(o),o===void 0||o==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?zw:jw,o){case"year":r=i(this.year(),0,1);break;case"quarter":r=i(this.year(),this.month()-this.month()%3,1);break;case"month":r=i(this.year(),this.month(),1);break;case"week":r=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":r=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":r=i(this.year(),this.month(),this.date());break;case"hour":r=this._d.valueOf(),r-=id(r+(this._isUTC?0:this.utcOffset()*nd),Wv);break;case"minute":r=this._d.valueOf(),r-=id(r,nd);break;case"second":r=this._d.valueOf(),r-=id(r,Vv);break}return this._d.setTime(r),Ve.updateOffset(this,!0),this}function rA(o){var r,i;if(o=os(o),o===void 0||o==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?zw:jw,o){case"year":r=i(this.year()+1,0,1)-1;break;case"quarter":r=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":r=i(this.year(),this.month()+1,1)-1;break;case"week":r=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":r=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":r=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":r=this._d.valueOf(),r+=Wv-id(r+(this._isUTC?0:this.utcOffset()*nd),Wv)-1;break;case"minute":r=this._d.valueOf(),r+=nd-id(r,nd)-1;break;case"second":r=this._d.valueOf(),r+=Vv-id(r,Vv)-1;break}return this._d.setTime(r),Ve.updateOffset(this,!0),this}function nA(){return this._d.valueOf()-(this._offset||0)*6e4}function iA(){return Math.floor(this.valueOf()/1e3)}function aA(){return new Date(this.valueOf())}function sA(){var o=this;return[o.year(),o.month(),o.date(),o.hour(),o.minute(),o.second(),o.millisecond()]}function oA(){var o=this;return{years:o.year(),months:o.month(),date:o.date(),hours:o.hours(),minutes:o.minutes(),seconds:o.seconds(),milliseconds:o.milliseconds()}}function lA(){return this.isValid()?this.toISOString():null}function uA(){return qx(this)}function cA(){return Eu({},It(this))}function fA(){return It(this).overflow}function dA(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}gt("N",0,0,"eraAbbr"),gt("NN",0,0,"eraAbbr"),gt("NNN",0,0,"eraAbbr"),gt("NNNN",0,0,"eraName"),gt("NNNNN",0,0,"eraNarrow"),gt("y",["y",1],"yo","eraYear"),gt("y",["yy",2],0,"eraYear"),gt("y",["yyy",3],0,"eraYear"),gt("y",["yyyy",4],0,"eraYear"),nt("N",g1),nt("NN",g1),nt("NNN",g1),nt("NNNN",wA),nt("NNNNN",bA),Mr(["N","NN","NNN","NNNN","NNNNN"],function(o,r,i,l){var f=i._locale.erasParse(o,l,i._strict);f?It(i).era=f:It(i).invalidEra=o}),nt("y",Jf),nt("yy",Jf),nt("yyy",Jf),nt("yyyy",Jf),nt("yo",_A),Mr(["y","yy","yyy","yyyy"],Mi),Mr(["yo"],function(o,r,i,l){var f;i._locale._eraYearOrdinalRegex&&(f=o.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?r[Mi]=i._locale.eraYearOrdinalParse(o,f):r[Mi]=parseInt(o,10)});function hA(o,r){var i,l,f,p=this._eras||xl("en")._eras;for(i=0,l=p.length;i<l;++i){switch(typeof p[i].since){case"string":f=Ve(p[i].since).startOf("day"),p[i].since=f.valueOf();break}switch(typeof p[i].until){case"undefined":p[i].until=1/0;break;case"string":f=Ve(p[i].until).startOf("day").valueOf(),p[i].until=f.valueOf();break}}return p}function pA(o,r,i){var l,f,p=this.eras(),v,S,b;for(o=o.toUpperCase(),l=0,f=p.length;l<f;++l)if(v=p[l].name.toUpperCase(),S=p[l].abbr.toUpperCase(),b=p[l].narrow.toUpperCase(),i)switch(r){case"N":case"NN":case"NNN":if(S===o)return p[l];break;case"NNNN":if(v===o)return p[l];break;case"NNNNN":if(b===o)return p[l];break}else if([v,S,b].indexOf(o)>=0)return p[l]}function vA(o,r){var i=o.since<=o.until?1:-1;return r===void 0?Ve(o.since).year():Ve(o.since).year()+(r-o.offset)*i}function gA(){var o,r,i,l=this.localeData().eras();for(o=0,r=l.length;o<r;++o)if(i=this.clone().startOf("day").valueOf(),l[o].since<=i&&i<=l[o].until||l[o].until<=i&&i<=l[o].since)return l[o].name;return""}function mA(){var o,r,i,l=this.localeData().eras();for(o=0,r=l.length;o<r;++o)if(i=this.clone().startOf("day").valueOf(),l[o].since<=i&&i<=l[o].until||l[o].until<=i&&i<=l[o].since)return l[o].narrow;return""}function yA(){var o,r,i,l=this.localeData().eras();for(o=0,r=l.length;o<r;++o)if(i=this.clone().startOf("day").valueOf(),l[o].since<=i&&i<=l[o].until||l[o].until<=i&&i<=l[o].since)return l[o].abbr;return""}function xA(){var o,r,i,l,f=this.localeData().eras();for(o=0,r=f.length;o<r;++o)if(i=f[o].since<=f[o].until?1:-1,l=this.clone().startOf("day").valueOf(),f[o].since<=l&&l<=f[o].until||f[o].until<=l&&l<=f[o].since)return(this.year()-Ve(f[o].since).year())*i+f[o].offset;return this.year()}function EA(o){return gr(this,"_erasNameRegex")||m1.call(this),o?this._erasNameRegex:this._erasRegex}function CA(o){return gr(this,"_erasAbbrRegex")||m1.call(this),o?this._erasAbbrRegex:this._erasRegex}function SA(o){return gr(this,"_erasNarrowRegex")||m1.call(this),o?this._erasNarrowRegex:this._erasRegex}function g1(o,r){return r.erasAbbrRegex(o)}function wA(o,r){return r.erasNameRegex(o)}function bA(o,r){return r.erasNarrowRegex(o)}function _A(o,r){return r._eraYearOrdinalRegex||Jf}function m1(){var o=[],r=[],i=[],l=[],f,p,v,S,b,C=this.eras();for(f=0,p=C.length;f<p;++f)v=vl(C[f].name),S=vl(C[f].abbr),b=vl(C[f].narrow),r.push(v),o.push(S),i.push(b),l.push(v),l.push(S),l.push(b);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}gt(0,["gg",2],0,function(){return this.weekYear()%100}),gt(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Gv(o,r){gt(0,[o,o.length],0,r)}Gv("gggg","weekYear"),Gv("ggggg","weekYear"),Gv("GGGG","isoWeekYear"),Gv("GGGGG","isoWeekYear"),nt("G",Hv),nt("g",Hv),nt("GG",Wr,Ua),nt("gg",Wr,Ua),nt("GGGG",e1,Jx),nt("gggg",e1,Jx),nt("GGGGG",Nv,Bv),nt("ggggg",Nv,Bv),a0(["gggg","ggggg","GGGG","GGGGG"],function(o,r,i,l){r[l.substr(0,2)]=Kt(o)}),a0(["gg","GG"],function(o,r,i,l){r[l]=Ve.parseTwoDigitYear(o)});function DA(o){return qw.call(this,o,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function TA(o){return qw.call(this,o,this.isoWeek(),this.isoWeekday(),1,4)}function RA(){return yl(this.year(),1,4)}function AA(){return yl(this.isoWeekYear(),1,4)}function kA(){var o=this.localeData()._week;return yl(this.year(),o.dow,o.doy)}function FA(){var o=this.localeData()._week;return yl(this.weekYear(),o.dow,o.doy)}function qw(o,r,i,l,f){var p;return o==null?u0(this,l,f).year:(p=yl(o,l,f),r>p&&(r=p),OA.call(this,o,r,i,l,f))}function OA(o,r,i,l,f){var p=Cw(o,r,i,l,f),v=l0(p.year,0,p.dayOfYear);return this.year(v.getUTCFullYear()),this.month(v.getUTCMonth()),this.date(v.getUTCDate()),this}gt("Q",0,"Qo","quarter"),nt("Q",cw),Mr("Q",function(o,r){r[gl]=(Kt(o)-1)*3});function BA(o){return o==null?Math.ceil((this.month()+1)/3):this.month((o-1)*3+this.month()%3)}gt("D",["DD",2],"Do","date"),nt("D",Wr,ed),nt("DD",Wr,Ua),nt("Do",function(o,r){return o?r._dayOfMonthOrdinalParse||r._ordinalParse:r._dayOfMonthOrdinalParseLenient}),Mr(["D","DD"],Do),Mr("Do",function(o,r){r[Do]=Kt(o.match(Wr)[0])});var Yw=td("Date",!0);gt("DDD",["DDDD",3],"DDDo","dayOfYear"),nt("DDD",Mv),nt("DDDD",fw),Mr(["DDD","DDDD"],function(o,r,i){i._dayOfYear=Kt(o)});function MA(o){var r=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return o==null?r:this.add(o-r,"d")}gt("m",["mm",2],0,"minute"),nt("m",Wr,t1),nt("mm",Wr,Ua),Mr(["m","mm"],js);var NA=td("Minutes",!1);gt("s",["ss",2],0,"second"),nt("s",Wr,t1),nt("ss",Wr,Ua),Mr(["s","ss"],ml);var HA=td("Seconds",!1);gt("S",0,0,function(){return~~(this.millisecond()/100)}),gt(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),gt(0,["SSS",3],0,"millisecond"),gt(0,["SSSS",4],0,function(){return this.millisecond()*10}),gt(0,["SSSSS",5],0,function(){return this.millisecond()*100}),gt(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),gt(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),gt(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),gt(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),nt("S",Mv,cw),nt("SS",Mv,Ua),nt("SSS",Mv,fw);var Su,Vw;for(Su="SSSS";Su.length<=9;Su+="S")nt(Su,Jf);function IA(o,r){r[Ac]=Kt(("0."+o)*1e3)}for(Su="S";Su.length<=9;Su+="S")Mr(Su,IA);Vw=td("Milliseconds",!1),gt("z",0,0,"zoneAbbr"),gt("zz",0,0,"zoneName");function $A(){return this._isUTC?"UTC":""}function PA(){return this._isUTC?"Coordinated Universal Time":""}var Ne=n0.prototype;Ne.add=F6,Ne.calendar=$6,Ne.clone=P6,Ne.diff=V6,Ne.endOf=rA,Ne.format=Q6,Ne.from=Z6,Ne.fromNow=X6,Ne.to=J6,Ne.toNow=eA,Ne.get=K8,Ne.invalidAt=fA,Ne.isAfter=L6,Ne.isBefore=U6,Ne.isBetween=j6,Ne.isSame=z6,Ne.isSameOrAfter=q6,Ne.isSameOrBefore=Y6,Ne.isValid=uA,Ne.lang=Pw,Ne.locale=$w,Ne.localeData=Lw,Ne.max=u6,Ne.min=l6,Ne.parsingFlags=cA,Ne.set=Q8,Ne.startOf=tA,Ne.subtract=O6,Ne.toArray=sA,Ne.toObject=oA,Ne.toDate=aA,Ne.toISOString=G6,Ne.inspect=K6,typeof Symbol<"u"&&Symbol.for!=null&&(Ne[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ne.toJSON=lA,Ne.toString=W6,Ne.unix=iA,Ne.valueOf=nA,Ne.creationData=dA,Ne.eraName=gA,Ne.eraNarrow=mA,Ne.eraAbbr=yA,Ne.eraYear=xA,Ne.year=pw,Ne.isLeapYear=G8,Ne.weekYear=DA,Ne.isoWeekYear=TA,Ne.quarter=Ne.quarters=BA,Ne.month=xw,Ne.daysInMonth=a4,Ne.week=Ne.weeks=h4,Ne.isoWeek=Ne.isoWeeks=p4,Ne.weeksInYear=kA,Ne.weeksInWeekYear=FA,Ne.isoWeeksInYear=RA,Ne.isoWeeksInISOWeekYear=AA,Ne.date=Yw,Ne.day=Ne.days=T4,Ne.weekday=R4,Ne.isoWeekday=A4,Ne.dayOfYear=MA,Ne.hour=Ne.hours=H4,Ne.minute=Ne.minutes=NA,Ne.second=Ne.seconds=HA,Ne.millisecond=Ne.milliseconds=Vw,Ne.utcOffset=y6,Ne.utc=E6,Ne.local=C6,Ne.parseZone=S6,Ne.hasAlignedHourOffset=w6,Ne.isDST=b6,Ne.isLocal=D6,Ne.isUtcOffset=T6,Ne.isUtc=Bw,Ne.isUTC=Bw,Ne.zoneAbbr=$A,Ne.zoneName=PA,Ne.dates=ss("dates accessor is deprecated. Use date instead.",Yw),Ne.months=ss("months accessor is deprecated. Use month instead",xw),Ne.years=ss("years accessor is deprecated. Use year instead",pw),Ne.zone=ss("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",x6),Ne.isDSTShifted=ss("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_6);function LA(o){return Gr(o*1e3)}function UA(){return Gr.apply(null,arguments).parseZone()}function Ww(o){return o}var mr=Gx.prototype;mr.calendar=D8,mr.longDateFormat=k8,mr.invalidDate=O8,mr.ordinal=N8,mr.preparse=Ww,mr.postformat=Ww,mr.relativeTime=I8,mr.pastFuture=$8,mr.set=b8,mr.eras=hA,mr.erasParse=pA,mr.erasConvertYear=vA,mr.erasAbbrRegex=CA,mr.erasNameRegex=EA,mr.erasNarrowRegex=SA,mr.months=t4,mr.monthsShort=r4,mr.monthsParse=i4,mr.monthsRegex=o4,mr.monthsShortRegex=s4,mr.week=u4,mr.firstDayOfYear=d4,mr.firstDayOfWeek=f4,mr.weekdays=S4,mr.weekdaysMin=b4,mr.weekdaysShort=w4,mr.weekdaysParse=D4,mr.weekdaysRegex=k4,mr.weekdaysShortRegex=F4,mr.weekdaysMinRegex=O4,mr.isPM=M4,mr.meridiem=I4;function Kv(o,r,i,l){var f=xl(),p=wo().set(l,r);return f[i](p,o)}function Gw(o,r,i){if(pl(o)&&(r=o,o=void 0),o=o||"",r!=null)return Kv(o,r,i,"month");var l,f=[];for(l=0;l<12;l++)f[l]=Kv(o,l,i,"month");return f}function y1(o,r,i,l){typeof o=="boolean"?(pl(r)&&(i=r,r=void 0),r=r||""):(r=o,i=r,o=!1,pl(r)&&(i=r,r=void 0),r=r||"");var f=xl(),p=o?f._week.dow:0,v,S=[];if(i!=null)return Kv(r,(i+p)%7,l,"day");for(v=0;v<7;v++)S[v]=Kv(r,(v+p)%7,l,"day");return S}function jA(o,r){return Gw(o,r,"months")}function zA(o,r){return Gw(o,r,"monthsShort")}function qA(o,r,i){return y1(o,r,i,"weekdays")}function YA(o,r,i){return y1(o,r,i,"weekdaysShort")}function VA(o,r,i){return y1(o,r,i,"weekdaysMin")}Cu("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(o){var r=o%10,i=Kt(o%100/10)===1?"th":r===1?"st":r===2?"nd":r===3?"rd":"th";return o+i}}),Ve.lang=ss("moment.lang is deprecated. Use moment.locale instead.",Cu),Ve.langData=ss("moment.langData is deprecated. Use moment.localeData instead.",xl);var El=Math.abs;function WA(){var o=this._data;return this._milliseconds=El(this._milliseconds),this._days=El(this._days),this._months=El(this._months),o.milliseconds=El(o.milliseconds),o.seconds=El(o.seconds),o.minutes=El(o.minutes),o.hours=El(o.hours),o.months=El(o.months),o.years=El(o.years),this}function Kw(o,r,i,l){var f=zs(r,i);return o._milliseconds+=l*f._milliseconds,o._days+=l*f._days,o._months+=l*f._months,o._bubble()}function GA(o,r){return Kw(this,o,r,1)}function KA(o,r){return Kw(this,o,r,-1)}function Qw(o){return o<0?Math.floor(o):Math.ceil(o)}function QA(){var o=this._milliseconds,r=this._days,i=this._months,l=this._data,f,p,v,S,b;return o>=0&&r>=0&&i>=0||o<=0&&r<=0&&i<=0||(o+=Qw(x1(i)+r)*864e5,r=0,i=0),l.milliseconds=o%1e3,f=ls(o/1e3),l.seconds=f%60,p=ls(f/60),l.minutes=p%60,v=ls(p/60),l.hours=v%24,r+=ls(v/24),b=ls(Zw(r)),i+=b,r-=Qw(x1(b)),S=ls(i/12),i%=12,l.days=r,l.months=i,l.years=S,this}function Zw(o){return o*4800/146097}function x1(o){return o*146097/4800}function ZA(o){if(!this.isValid())return NaN;var r,i,l=this._milliseconds;if(o=os(o),o==="month"||o==="quarter"||o==="year")switch(r=this._days+l/864e5,i=this._months+Zw(r),o){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(r=this._days+Math.round(x1(this._months)),o){case"week":return r/7+l/6048e5;case"day":return r+l/864e5;case"hour":return r*24+l/36e5;case"minute":return r*1440+l/6e4;case"second":return r*86400+l/1e3;case"millisecond":return Math.floor(r*864e5)+l;default:throw new Error("Unknown unit "+o)}}function Cl(o){return function(){return this.as(o)}}var Xw=Cl("ms"),XA=Cl("s"),JA=Cl("m"),ek=Cl("h"),tk=Cl("d"),rk=Cl("w"),nk=Cl("M"),ik=Cl("Q"),ak=Cl("y"),sk=Xw;function ok(){return zs(this)}function lk(o){return o=os(o),this.isValid()?this[o+"s"]():NaN}function Fc(o){return function(){return this.isValid()?this._data[o]:NaN}}var uk=Fc("milliseconds"),ck=Fc("seconds"),fk=Fc("minutes"),dk=Fc("hours"),hk=Fc("days"),pk=Fc("months"),vk=Fc("years");function gk(){return ls(this.days()/7)}var Sl=Math.round,ad={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function mk(o,r,i,l,f){return f.relativeTime(r||1,!!i,o,l)}function yk(o,r,i,l){var f=zs(o).abs(),p=Sl(f.as("s")),v=Sl(f.as("m")),S=Sl(f.as("h")),b=Sl(f.as("d")),C=Sl(f.as("M")),w=Sl(f.as("w")),T=Sl(f.as("y")),A=p<=i.ss&&["s",p]||p<i.s&&["ss",p]||v<=1&&["m"]||v<i.m&&["mm",v]||S<=1&&["h"]||S<i.h&&["hh",S]||b<=1&&["d"]||b<i.d&&["dd",b];return i.w!=null&&(A=A||w<=1&&["w"]||w<i.w&&["ww",w]),A=A||C<=1&&["M"]||C<i.M&&["MM",C]||T<=1&&["y"]||["yy",T],A[2]=r,A[3]=+o>0,A[4]=l,mk.apply(null,A)}function xk(o){return o===void 0?Sl:typeof o=="function"?(Sl=o,!0):!1}function Ek(o,r){return ad[o]===void 0?!1:r===void 0?ad[o]:(ad[o]=r,o==="s"&&(ad.ss=r-1),!0)}function Ck(o,r){if(!this.isValid())return this.localeData().invalidDate();var i=!1,l=ad,f,p;return typeof o=="object"&&(r=o,o=!1),typeof o=="boolean"&&(i=o),typeof r=="object"&&(l=Object.assign({},ad,r),r.s!=null&&r.ss==null&&(l.ss=r.s-1)),f=this.localeData(),p=yk(this,!i,l,f),i&&(p=f.pastFuture(+this,p)),f.postformat(p)}var E1=Math.abs;function sd(o){return(o>0)-(o<0)||+o}function Qv(){if(!this.isValid())return this.localeData().invalidDate();var o=E1(this._milliseconds)/1e3,r=E1(this._days),i=E1(this._months),l,f,p,v,S=this.asSeconds(),b,C,w,T;return S?(l=ls(o/60),f=ls(l/60),o%=60,l%=60,p=ls(i/12),i%=12,v=o?o.toFixed(3).replace(/\.?0+$/,""):"",b=S<0?"-":"",C=sd(this._months)!==sd(S)?"-":"",w=sd(this._days)!==sd(S)?"-":"",T=sd(this._milliseconds)!==sd(S)?"-":"",b+"P"+(p?C+p+"Y":"")+(i?C+i+"M":"")+(r?w+r+"D":"")+(f||l||o?"T":"")+(f?T+f+"H":"")+(l?T+l+"M":"")+(o?T+v+"S":"")):"P0D"}var ir=zv.prototype;ir.isValid=p6,ir.abs=WA,ir.add=GA,ir.subtract=KA,ir.as=ZA,ir.asMilliseconds=Xw,ir.asSeconds=XA,ir.asMinutes=JA,ir.asHours=ek,ir.asDays=tk,ir.asWeeks=rk,ir.asMonths=nk,ir.asQuarters=ik,ir.asYears=ak,ir.valueOf=sk,ir._bubble=QA,ir.clone=ok,ir.get=lk,ir.milliseconds=uk,ir.seconds=ck,ir.minutes=fk,ir.hours=dk,ir.days=hk,ir.weeks=gk,ir.months=pk,ir.years=vk,ir.humanize=Ck,ir.toISOString=Qv,ir.toString=Qv,ir.toJSON=Qv,ir.locale=$w,ir.localeData=Lw,ir.toIsoString=ss("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qv),ir.lang=Pw,gt("X",0,0,"unix"),gt("x",0,0,"valueOf"),nt("x",Hv),nt("X",j8),Mr("X",function(o,r,i){i._d=new Date(parseFloat(o)*1e3)}),Mr("x",function(o,r,i){i._d=new Date(Kt(o))});//! moment.js
|
|
426
|
+
Ve.version="2.30.1",S8(Gr),Ve.fn=Ne,Ve.min=c6,Ve.max=f6,Ve.now=d6,Ve.utc=wo,Ve.unix=LA,Ve.months=jA,Ve.isDate=r0,Ve.locale=Cu,Ve.invalid=kv,Ve.duration=zs,Ve.isMoment=Us,Ve.weekdays=qA,Ve.parseZone=UA,Ve.localeData=xl,Ve.isDuration=qv,Ve.monthsShort=zA,Ve.weekdaysMin=VA,Ve.defineLocale=o1,Ve.updateLocale=U4,Ve.locales=j4,Ve.weekdaysShort=YA,Ve.normalizeUnits=os,Ve.relativeTimeRounding=xk,Ve.relativeTimeThreshold=Ek,Ve.calendarFormat=I6,Ve.prototype=Ne,Ve.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};let Zv=null,on=null,Jw=null,To=null;function Sk(o,r){if(!o||!o.sessionDescriptionHandler)return;const i=o.sessionDescriptionHandler.peerConnection;i&&i.getSenders().forEach(l=>{l.track&&l.track.kind==="audio"&&(l.track.enabled=r)})}function eb(o){To||(To=document.createElement("audio"),To.id="voxnix-remote-audio",To.autoplay=!0,document.body.appendChild(To));const r=new MediaStream;if(o.sessionDescriptionHandler&&o.sessionDescriptionHandler.peerConnection){o.sessionDescriptionHandler.peerConnection.getReceivers().forEach(l=>{l.track&&r.addTrack(l.track)});const i=o.sessionDescriptionHandler.peerConnection;if(!i._isSetRemoteDescPatched){const l=i.setRemoteDescription.bind(i);i.setRemoteDescription=function(f){if(f&&f.sdp&&f.type==="answer"){const v=(((i.localDescription||{}).sdp||"").match(/^m=/gm)||[]).length,S=(f.sdp.match(/^m=/gm)||[]).length;if(console.log("[RTC Patch] local offer m-lines:",v,"| remote answer m-lines:",S),v>0&&S>v){const b=f.sdp.split(/\r?\n/);let C=0,w=!1;const T=[];for(const H of b)H.startsWith("m=")&&(C++,w=C>v),w||T.push(H);let A=T.join(`\r
|
|
427
|
+
`);A.endsWith(`\r
|
|
428
|
+
`)||(A+=`\r
|
|
429
|
+
`),console.log("[RTC Patch] filtered to",(A.match(/^m=/gm)||[]).length,"m-lines. Applying to Chrome."),f={type:"answer",sdp:A}}}return l(f)},i._isSetRemoteDescPatched=!0}}To.srcObject=r,To.play().catch(i=>console.error("Error playing media:",i))}function tb(){To&&(To.srcObject=null,To.pause())}const wk=()=>{it.on("incoming_call",()=>{ea.pushSound()}),it.on("local_dial",({number:o})=>{if(Zv){const r=Tc.makeURI(`sip:${o}@${Zv.configuration.uri.domain}`),i=new VS(Zv,r);i.stateChange.addListener(l=>{l===xe.Establishing?it.emitLocal("call_status","Calling..."):l===xe.Established?(eb(i),on=i,it.emitLocal("call_status","InCall")):l===xe.Terminated&&(tb(),it.emitLocal("call_status","Idle"),on=null)}),i.invite()}}),it.on("local_hangup",()=>{ea.stopSound(),on&&(on.state===xe.Established?on.bye():typeof on.reject=="function"?on.reject():on.cancel()),it.emitLocal("call_status","Idle"),it.emitLocal("call_duration","00:00"),it.emitToParent("sync_call_ended")}),it.on("local_reject",()=>{ea.stopSound(),on&&(typeof on.reject=="function"?on.reject():on.cancel()),it.emitLocal("call_status","Idle"),it.emitLocal("call_duration","00:00"),it.emitToParent("sync_call_ended")}),it.on("local_answer",()=>{ea.stopSound();const o={sessionDescriptionHandlerOptions:{constraints:{audio:!0,video:!1}}};on&&on.accept(o)}),it.on("local_toggle_mute",({muted:o})=>{on&&Sk(on,!o)}),it.on("local_toggle_hold",({isOnHold:o,setIsOnHold:r})=>{if(on)try{const i=!o,l={sessionDescriptionHandlerOptions:{hold:i}};on.invite(l).then(()=>{r(i),console.log(i?"Call successfully put on hold":"Call successfully resumed")}).catch(f=>{console.error("Hold/Unhold failed",f)})}catch(i){console.error("Gagal mengubah status hold:",i)}}),it.on("local_dtmf",({key:o})=>{on&&on.sessionDescriptionHandler&&on.sessionDescriptionHandler.sendDtmf(o)})},bk=async o=>{var p,v;window.__sipjsEventsBound||(wk(),window.__sipjsEventsBound=!0);const{auth:r}=o;if(!r)return;const i=r.user_pbx||r.username,l=r.pwd_pbx||r.secret,f=((v=(p=r.pabx_host)==null?void 0:p.replace("http://",""))==null?void 0:v.replace("https://",""))||r.pbxurl;if(r.port,!(!i||!f))try{const S=Tc.makeURI(`sip:${i}@${f}`);if(!S)throw new Error("Failed to create SIP URI");const b=new Tc({uri:S,transportOptions:{server:wssUrl},authorizationUsername:i,authorizationPassword:l,sessionDescriptionHandlerFactoryOptions:{peerConnectionConfiguration:{iceServers:[]},constraints:{audio:!0,video:!1}},logLevel:"warn"});Zv=b;const C=new Co(b);C.stateChange.addListener(async w=>{var T;w===Cr.Registered?((T=ea.getConfig())==null?void 0:T.autoReady)!==!1?await ea.updateExtensionStatus(i,"Ready","ready")?(it.emitLocal("register_status","REGISTERED"),it.emitLocal("agent_status","READY")):it.emitLocal("register_status",{status:"FAILED",reason:"Failed to hit extension ready API"}):(it.emitLocal("register_status","REGISTERED"),it.emitLocal("agent_status","NOT_READY")):(w===Cr.Unregistered||w===Cr.Terminated)&&it.emitLocal("register_status",{status:"FAILED",reason:"SIP Unregistered or Terminated"})}),b.delegate={onInvite(w){let T=!1;on=w,it.emitLocal("sipjsSession",w),ea.pushSound(),ea.pushNotification(`New incoming call from ${w.remoteIdentity.uri.user}`),it.emitLocal("incoming_call",w),it.emitToParent("sync_incoming_call",w),w.stateChange.addListener(A=>{if(A===xe.Established){eb(w),T=!0,it.emitLocal("call_status","InCall"),it.emitToParent("sync_call_answered",w);const H=Ve();Jw=setInterval(()=>{const P=Ve.duration(Ve().diff(H));it.emitLocal("call_duration",ea.toHHMMSS(P.asSeconds()))},1e3)}else A===xe.Terminated&&(tb(),clearInterval(Jw),ea.stopSound(),it.emitLocal("call_duration","00:00"),it.emitLocal("call_status","Idle"),T?it.emitToParent("sync_call_ended",w):it.emitToParent("sync_call_unanswered"),on=null)})}},await b.start(),await C.register()}catch(S){console.error("SipJS init error:",S),it.emitLocal("register_status",{status:"FAILED",reason:S.message||"Failed to connect to SIP server"})}},rb={"bottom-left":"bottom-6 left-3 items-start","bottom-right":"bottom-6 right-3 items-end","top-left":"top-6 left-3 items-start","top-right":"top-6 right-3 items-end"};function _k({config:o,placement:r="bottom-left",offset:i,onIncomingCall:l,onCallAnswered:f,onCallEnded:p,onCallUnanswered:v,onRegisterStatus:S,onAgentStatus:b}){const[C,w]=zt.useState(!1),[T,A]=zt.useState("CONNECTING"),[H,P]=zt.useState("NOT_READY"),[j,z]=zt.useState(!1),B=zt.useRef(!1),M=zt.useRef({}),U=(o==null?void 0:o.autoReady)!==!1,q=(o==null?void 0:o.showAuxButton)===!0,K=(o==null?void 0:o.auxOptions)||[];zt.useEffect(()=>{M.current={onIncomingCall:l,onCallAnswered:f,onCallEnded:p,onCallUnanswered:v,onRegisterStatus:S,onAgentStatus:b}}),zt.useEffect(()=>{var F;o&&ea.setConfig(o);const Z=(o==null?void 0:o.auth)||((F=o==null?void 0:o.pabxConfig)==null?void 0:F.auth)||{};!B.current&&(Z.username||Z.user_pbx)&&(Z.pwd_pbx||Z.secret)&&(Z.pabx_host||Z.pbxurl||Z.host)&&(B.current=!0,bk({auth:Z}))},[o]),zt.useEffect(()=>{const Z=[it.on("register_status",F=>{var N,De;const L=typeof F=="string"?F:(F==null?void 0:F.status)??"FAILED";A(L),L==="REGISTERED"&&w(!0),(De=(N=M.current).onRegisterStatus)==null||De.call(N,L==="FAILED"?F:L)}),it.on("agent_status",F=>{var L,N;P(F),(N=(L=M.current).onAgentStatus)==null||N.call(L,F)}),it.on("sync_incoming_call",F=>{var L,N;z(!0),w(!0),(N=(L=M.current).onIncomingCall)==null||N.call(L,F)}),it.on("sync_call_answered",F=>{var L,N;z(!1),(N=(L=M.current).onCallAnswered)==null||N.call(L,F)}),it.on("sync_call_ended",F=>{var L,N;z(!1),(N=(L=M.current).onCallEnded)==null||N.call(L,F)}),it.on("sync_call_unanswered",F=>{var L,N;z(!1),(N=(L=M.current).onCallUnanswered)==null||N.call(L,F)})];return()=>Z.forEach(F=>F())},[]);const X=rb[r]||rb["bottom-left"],ee=T!=="REGISTERED"?T==="FAILED"?"bg-red-500":"bg-blue-400":H==="READY"?"bg-green-500":H==="AUX"?"bg-amber-400":"bg-gray-400",R=i?{position:"fixed",zIndex:9999,...i}:void 0,Ee=r!=null&&r.includes("right")?"origin-bottom-right":"origin-bottom-left";return he.jsxs("div",{className:i?void 0:`fixed ${X} z-[9999] flex flex-col gap-3`,style:R,children:[he.jsxs("div",{className:`w-[360px] bg-white rounded-3xl overflow-hidden ${Ee} shadow-[0_20px_60px_rgba(0,0,0,0.18),0_4px_16px_rgba(0,0,0,0.08)] ${C?"animate-slideUp":"hidden"}`,children:[he.jsxs("div",{className:"flex items-center justify-between px-4 py-3.5 bg-gradient-to-r from-[#3f3192] to-[#5240c2]",children:[he.jsx("div",{className:"flex items-center gap-2.5",children:he.jsx("span",{className:"text-white font-semibold text-sm tracking-wide",children:"Voice Widget"})}),he.jsx("button",{onClick:()=>w(!1),className:"text-white/50 hover:text-white transition-colors p-1 rounded-lg",title:"Minimize",children:he.jsx(ZT,{className:"w-4 h-4"})})]}),he.jsx(HR,{initialRegisterStatus:T,autoReady:U,showAuxButton:q,auxOptions:K})]}),he.jsxs("button",{onClick:()=>w(Z=>!Z),className:"w-12 h-12 rounded-full bg-primary hover:bg-primary-hover text-white shadow-lg shadow-primary/30 flex items-center justify-center transition-all active:scale-95 relative",title:"Voice Widget",children:[he.jsx(Ev,{className:"w-5 h-5"}),j&&he.jsx("span",{className:"absolute -top-1 -right-1 w-4 h-4 rounded-full bg-green-500 border-2 border-white animate-ping"}),he.jsx("span",{className:`absolute -top-0.5 -right-0.5 w-3 h-3 rounded-full border-2 border-white ${ee}`})]})]})}let wu=null,us=null;function Dk(o,r){if(Wh.createRoot){const i=Wh.createRoot(r);return i.render(o),{render:l=>i.render(l),unmount:()=>i.unmount()}}return Wh.render(o,r),{render:i=>Wh.render(i,r),unmount:()=>Wh.unmountComponentAtNode(r)}}const Tk={init(o={}){const{container:r,placement:i="bottom-left",offset:l,platform:f="sipjs",auth:p,pabxConfig:v,autoReady:S=!0,showAuxButton:b=!1,auxOptions:C=[],onIncomingCall:w,onCallAnswered:T,onCallEnded:A,onCallUnanswered:H,onRegisterStatus:P,onAgentStatus:j,...z}=o;typeof r=="string"?us=document.querySelector(r):r instanceof HTMLElement&&(us=r),us||(us=document.createElement("div"),us.id="omnix-widget-root",document.body.appendChild(us)),wu&&(wu.unmount(),wu=null);const B=LT.createElement(_k,{config:{platform:f,auth:p,pabxConfig:v,autoReady:S,showAuxButton:b,auxOptions:C,...z},placement:i,offset:l,onIncomingCall:w,onCallAnswered:T,onCallEnded:A,onCallUnanswered:H,onRegisterStatus:P,onAgentStatus:j});return wu=Dk(B,us),{answer:()=>it.emitLocal("local_answer"),hangup:()=>it.emitLocal("local_hangup"),reject:()=>it.emitLocal("local_reject"),mute:M=>it.emitLocal("local_toggle_mute",{muted:M}),hold:M=>it.emitLocal("local_toggle_hold",{isOnHold:M,setIsOnHold:()=>{}}),dial:M=>it.emitLocal("local_dial",{number:M}),destroy:()=>{wu==null||wu.unmount(),wu=null,(us==null?void 0:us.id)==="omnix-widget-root"&&us.remove(),us=null}}}};return zy.OmnixWidget=Tk,Object.defineProperty(zy,Symbol.toStringTag,{value:"Module"}),zy}({});
|