Pedido do usuário: "vira a mão quando está sobre a letra e não sobre o retângulo inteiro". O FAB flutuante é rounded-full 56x56 — Chrome exclui os cantos cortados desse quadrado do hit-test de elementos com border-radius, então o mouse nos cantos caía pro <div> de posicionamento por trás (sem cursor:pointer) em vez do botão. Clique dentro do círculo real sempre funcionou; só o cursor ficava inconsistente. Confirmado com hover real via Playwright piercing o shadow DOM. Fix: cursor-pointer no wrapper. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BFaBaBSQGhyXGEgtTYZGV8
98 lines
934 KiB
JavaScript
98 lines
934 KiB
JavaScript
!function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,n={exports:{}},r={},i={exports:{}},o={};function a(){if(t)return o;t=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,m={};function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,g(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,k=Object.prototype.hasOwnProperty,S={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function E(t,n,r){var i,o={},a=null,s=null;if(null!=n)for(i in void 0!==n.ref&&(s=n.ref),void 0!==n.key&&(a=""+n.key),n)k.call(n,i)&&!T.hasOwnProperty(i)&&(o[i]=n[i]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:e,type:t,key:a,ref:s,props:o,_owner:S.current}}function C(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var R=/\/+/g;function P(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function _(t,r,i,o,a){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var l=!1;if(null===t)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case e:case n:l=!0}}if(l)return a=a(l=t),t=""===o?"."+P(l,0):o,x(a)?(i="",null!=t&&(i=t.replace(R,"$&/")+"/"),_(a,r,i,"",function(e){return e})):null!=a&&(C(a)&&(a=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(a,i+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(R,"$&/")+"/")+t)),r.push(a)),1;if(l=0,o=""===o?".":o+":",x(t))for(var c=0;c<t.length;c++){var u=o+P(s=t[c],c);l+=_(s,r,i,u,a)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(t),"function"==typeof u)for(t=u.call(t),c=0;!(s=t.next()).done;)l+=_(s=s.value,r,i,u=o+P(s,c++),a);else if("object"===s)throw r=String(t),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return l}function D(e,t,n){if(null==e)return e;var r=[],i=0;return _(e,r,"","",function(e){return t.call(n,e,i++)}),r}function I(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var A={current:null},N={transition:null},M={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:N,ReactCurrentOwner:S};function $(){throw Error("act(...) is not supported in production builds of React.")}return o.Children={map:D,forEach:function(e,t,n){D(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return D(e,function(){t++}),t},toArray:function(e){return D(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},o.Component=v,o.Fragment=r,o.Profiler=a,o.PureComponent=b,o.StrictMode=i,o.Suspense=u,o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,o.act=$,o.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var i=g({},t.props),o=t.key,a=t.ref,s=t._owner;if(null!=n){if(void 0!==n.ref&&(a=n.ref,s=S.current),void 0!==n.key&&(o=""+n.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in n)k.call(n,c)&&!T.hasOwnProperty(c)&&(i[c]=void 0===n[c]&&void 0!==l?l[c]:n[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];i.children=l}return{$$typeof:e,type:t.type,key:o,ref:a,props:i,_owner:s}},o.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},o.createElement=E,o.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},o.createRef=function(){return{current:null}},o.forwardRef=function(e){return{$$typeof:c,render:e}},o.isValidElement=C,o.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:I}},o.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},o.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},o.unstable_act=$,o.useCallback=function(e,t){return A.current.useCallback(e,t)},o.useContext=function(e){return A.current.useContext(e)},o.useDebugValue=function(){},o.useDeferredValue=function(e){return A.current.useDeferredValue(e)},o.useEffect=function(e,t){return A.current.useEffect(e,t)},o.useId=function(){return A.current.useId()},o.useImperativeHandle=function(e,t,n){return A.current.useImperativeHandle(e,t,n)},o.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},o.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},o.useMemo=function(e,t){return A.current.useMemo(e,t)},o.useReducer=function(e,t,n){return A.current.useReducer(e,t,n)},o.useRef=function(e){return A.current.useRef(e)},o.useState=function(e){return A.current.useState(e)},o.useSyncExternalStore=function(e,t,n){return A.current.useSyncExternalStore(e,t,n)},o.useTransition=function(){return A.current.useTransition()},o.version="18.3.1",o}var s,l,c,u={exports:{}};function d(){return s||(s=1,e=u,t=u.exports,
|
||
/**
|
||
* @license React
|
||
* react.development.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
"production"!=={}.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),g=Symbol.iterator;function m(e){if(null===e||"object"!=typeof e)return null;var t=g&&e[g]||e["@@iterator"];return"function"==typeof t?t:null}var v={current:null},y={transition:null},b={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},w={current:null},x={},k=null;function S(e){k=e}x.setExtraStackFrame=function(e){k=e},x.getCurrentStack=null,x.getStackAddendum=function(){var e="";k&&(e+=k);var t=x.getCurrentStack;return t&&(e+=t()||""),e};var T={ReactCurrentDispatcher:v,ReactCurrentBatchConfig:y,ReactCurrentOwner:w};function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];R("warn",e,n)}function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];R("error",e,n)}function R(e,t,n){var r=T.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map(function(e){return String(e)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}T.ReactDebugCurrentFrame=x,T.ReactCurrentActQueue=b;var P={};function _(e,t){var n=e.constructor,r=n&&(n.displayName||n.name)||"ReactClass",i=r+"."+t;P[i]||(C("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.",t,r),P[i]=!0)}var D={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){_(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,r){_(e,"replaceState")},enqueueSetState:function(e,t,n,r){_(e,"setState")}},I=Object.assign,A={};function N(e,t,n){this.props=e,this.context=t,this.refs=A,this.updater=n||D}Object.freeze(A),N.prototype.isReactComponent={},N.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)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,e,t,"setState")},N.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};var M={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)."]},$=function(e,t){Object.defineProperty(N.prototype,e,{get:function(){E("%s(...) is deprecated in plain JavaScript React classes. %s",t[0],t[1])}})};for(var O in M)M.hasOwnProperty(O)&&$(O,M[O]);function j(){}function L(e,t,n){this.props=e,this.context=t,this.refs=A,this.updater=n||D}j.prototype=N.prototype;var H=L.prototype=new j;H.constructor=L,I(H,N.prototype),H.isPureReactComponent=!0;var F=Array.isArray;function U(e){return F(e)}function z(e){return""+e}function q(e){if(function(e){try{return z(e),!1}catch(t){return!0}}(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),z(e)}function V(e){return e.displayName||"Context"}function B(e){if(null==e)return null;if("number"==typeof e.tag&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case i:return"Fragment";case r:return"Portal";case a:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case d:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case l:return V(e)+".Consumer";case s:return V(e._context)+".Provider";case c:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case h:var t=e.displayName||null;return null!==t?t:B(e.type)||"Memo";case f:var n=e,p=n._payload,g=n._init;try{return B(g(p))}catch(m){return null}}return null}var W,Y,G,K=Object.prototype.hasOwnProperty,Q={key:!0,ref:!0,__self:!0,__source:!0};function X(e){if(K.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}function Z(e){if(K.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}G={};var J=function(e,t,r,i,o,a,s){var l={$$typeof:n,type:e,key:t,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ee(e,t,n){var r,i={},o=null,a=null,s=null,l=null;if(null!=t)for(r in X(t)&&(a=t.ref,function(e){if("string"==typeof e.ref&&w.current&&e.__self&&w.current.stateNode!==e.__self){var t=B(w.current.type);G[t]||(C('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',t,e.ref),G[t]=!0)}}(t)),Z(t)&&(q(t.key),o=""+t.key),s=void 0===t.__self?null:t.__self,l=void 0===t.__source?null:t.__source,t)K.call(t,r)&&!Q.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(c>1){for(var u=Array(c),d=0;d<c;d++)u[d]=arguments[d+2];Object.freeze&&Object.freeze(u),i.children=u}if(e&&e.defaultProps){var h=e.defaultProps;for(r in h)void 0===i[r]&&(i[r]=h[r])}if(o||a){var f="function"==typeof e?e.displayName||e.name||"Unknown":e;o&&function(e,t){var n=function(){W||(W=!0,C("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(i,f),a&&function(e,t){var n=function(){Y||(Y=!0,C("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(i,f)}return J(e,o,a,s,l,w.current,i)}function te(e,t,n){if(null==e)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r,i,o=I({},e.props),a=e.key,s=e.ref,l=e._self,c=e._source,u=e._owner;if(null!=t)for(r in X(t)&&(s=t.ref,u=w.current),Z(t)&&(q(t.key),a=""+t.key),e.type&&e.type.defaultProps&&(i=e.type.defaultProps),t)K.call(t,r)&&!Q.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==i?o[r]=i[r]:o[r]=t[r]);var d=arguments.length-2;if(1===d)o.children=n;else if(d>1){for(var h=Array(d),f=0;f<d;f++)h[f]=arguments[f+2];o.children=h}return J(e.type,a,s,l,c,u,o)}function ne(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var re,ie=!1,oe=/\/+/g;function ae(e){return e.replace(oe,"$&/")}function se(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(q(e.key),n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function le(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,c,u,d=!1;if(null===e)d=!0;else switch(s){case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case r:d=!0}}if(d){var h=e,f=a(h),p=""===o?"."+se(h,0):o;if(U(f)){var g="";null!=p&&(g=ae(p)+"/"),le(f,t,g,"",function(e){return e})}else null!=f&&(ne(f)&&(!f.key||h&&h.key===f.key||q(f.key),l=f,c=i+(!f.key||h&&h.key===f.key?"":ae(""+f.key)+"/")+p,f=J(l.type,c,l.ref,l._self,l._source,l._owner,l.props)),t.push(f));return 1}var v=0,y=""===o?".":o+":";if(U(e))for(var b=0;b<e.length;b++)v+=le(u=e[b],t,i,y+se(u,b),a);else{var w=m(e);if("function"==typeof w){var x=e;w===x.entries&&(ie||E("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ie=!0);for(var k,S=w.call(x),T=0;!(k=S.next()).done;)v+=le(u=k.value,t,i,y+se(u,T++),a)}else if("object"===s){var C=String(e);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===C?"object with keys {"+Object.keys(e).join(", ")+"}":C)+"). If you meant to render a collection of children, use an array instead.")}}return v}function ce(e,t,n){if(null==e)return e;var r=[],i=0;return le(e,r,"","",function(e){return t.call(n,e,i++)}),r}function ue(e){if(-1===e._status){var t=(0,e._result)();if(t.then(function(t){if(0===e._status||-1===e._status){var n=e;n._status=1,n._result=t}},function(t){if(0===e._status||-1===e._status){var n=e;n._status=2,n._result=t}}),-1===e._status){var n=e;n._status=0,n._result=t}}if(1===e._status){var r=e._result;return void 0===r&&C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",r),"default"in r||C("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",r),r.default}throw e._result}function de(e){return"string"==typeof e||"function"==typeof e||e===i||e===a||e===o||e===u||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===c||e.$$typeof===re||void 0!==e.getModuleId)}function he(){var e=v.current;return null===e&&C("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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."),e}re=Symbol.for("react.module.reference");var fe,pe,ge,me,ve,ye,be,we=0;function xe(){}xe.__reactDisabledLog=!0;var ke,Se=T.ReactCurrentDispatcher;function Te(e,t,n){if(void 0===ke)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);ke=r&&r[1]||""}return"\n"+ke+e}var Ee,Ce=!1,Re="function"==typeof WeakMap?WeakMap:Map;function Pe(e,t){if(!e||Ce)return"";var n,r=Ee.get(e);if(void 0!==r)return r;Ce=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=Se.current,Se.current=null,function(){if(0===we){fe=console.log,pe=console.info,ge=console.warn,me=console.error,ve=console.group,ye=console.groupCollapsed,be=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}we++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(p){n=p}Reflect.construct(e,[],a)}else{try{a.call()}catch(p){n=p}e.call(a.prototype)}}else{try{throw Error()}catch(p){n=p}e()}}catch(g){if(g&&n&&"string"==typeof g.stack){for(var s=g.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&Ee.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{Ce=!1,Se.current=i,function(){if(0===--we){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},e,{value:fe}),info:I({},e,{value:pe}),warn:I({},e,{value:ge}),error:I({},e,{value:me}),group:I({},e,{value:ve}),groupCollapsed:I({},e,{value:ye}),groupEnd:I({},e,{value:be})})}we<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var h=e?e.displayName||e.name:"",f=h?Te(h):"";return"function"==typeof e&&Ee.set(e,f),f}function _e(e,t,n){if(null==e)return"";if("function"==typeof e)return Pe(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return Te(e);switch(e){case u:return Te("Suspense");case d:return Te("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case c:return Pe(e.render,!1);case h:return _e(e.type,t,n);case f:var i=e,o=i._payload,a=i._init;try{return _e(a(o),t,n)}catch(s){}}return""}Ee=new Re;var De,Ie={},Ae=T.ReactDebugCurrentFrame;function Ne(e){if(e){var t=e._owner,n=_e(e.type,e._source,t?t.type:null);Ae.setExtraStackFrame(n)}else Ae.setExtraStackFrame(null)}function Me(e){if(e){var t=e._owner;S(_e(e.type,e._source,t?t.type:null))}else S(null)}function $e(){if(w.current){var e=B(w.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}De=!1;var Oe={};function je(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=$e();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!Oe[n]){Oe[n]=!0;var r="";e&&e._owner&&e._owner!==w.current&&(r=" It was passed a child from "+B(e._owner.type)+"."),Me(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),Me(null)}}}function Le(e,t){if("object"==typeof e)if(U(e))for(var n=0;n<e.length;n++){var r=e[n];ne(r)&&je(r,t)}else if(ne(e))e._store&&(e._store.validated=!0);else if(e){var i=m(e);if("function"==typeof i&&i!==e.entries)for(var o,a=i.call(e);!(o=a.next()).done;)ne(o.value)&&je(o.value,t)}}function He(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==c&&n.$$typeof!==h)return;t=n.propTypes}if(t){var r=B(n);!function(e,t,n,r,i){var o=Function.call.bind(K);for(var a in e)if(o(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){s=c}!s||s instanceof Error||(Ne(i),C("%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).",r||"React class",n,a,typeof s),Ne(null)),s instanceof Error&&!(s.message in Ie)&&(Ie[s.message]=!0,Ne(i),C("Failed %s type: %s",n,s.message),Ne(null))}}(t,e.props,"prop",r,e)}else void 0===n.PropTypes||De||(De=!0,C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",B(n)||"Unknown"));"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Fe(e,t,r){var o,a,s=de(e);if(!s){var l="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(l+=" 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 c,u=null!=(o=t)&&void 0!==(a=o.__source)?"\n\nCheck your code at "+a.fileName.replace(/^.*[\\\/]/,"")+":"+a.lineNumber+".":"";l+=u||$e(),null===e?c="null":U(e)?c="array":void 0!==e&&e.$$typeof===n?(c="<"+(B(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):c=typeof e,C("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",c,l)}var d=ee.apply(this,arguments);if(null==d)return d;if(s)for(var h=2;h<arguments.length;h++)Le(arguments[h],e);return e===i?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){Me(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),Me(null);break}}null!==e.ref&&(Me(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),Me(null))}(d):He(d),d}var Ue=!1,ze=!1,qe=null,Ve=0,Be=!1;function We(e){var t=Ve;Ve++,null===b.current&&(b.current=[]);var n,r=b.isBatchingLegacy;try{if(b.isBatchingLegacy=!0,n=e(),!r&&b.didScheduleLegacyUpdate){var i=b.current;null!==i&&(b.didScheduleLegacyUpdate=!1,Qe(i))}}catch(u){throw Ye(t),u}finally{b.isBatchingLegacy=r}if(null!==n&&"object"==typeof n&&"function"==typeof n.then){var o=n,a=!1,s={then:function(e,n){a=!0,o.then(function(r){Ye(t),0===Ve?Ge(r,e,n):e(r)},function(e){Ye(t),n(e)})}};return Be||"undefined"==typeof Promise||Promise.resolve().then(function(){}).then(function(){a||(Be=!0,C("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 () => ...);"))}),s}var l=n;if(Ye(t),0===Ve){var c=b.current;return null!==c&&(Qe(c),b.current=null),{then:function(e,t){null===b.current?(b.current=[],Ge(l,e,t)):e(l)}}}return{then:function(e,t){e(l)}}}function Ye(e){e!==Ve-1&&C("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),Ve=e}function Ge(t,n,r){var i=b.current;if(null!==i)try{Qe(i),function(t){if(null===qe)try{var n=("require"+Math.random()).slice(0,7);qe=(e&&e[n]).call(e,"timers").setImmediate}catch(r){qe=function(e){!1===ze&&(ze=!0,"undefined"==typeof MessageChannel&&C("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 t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}qe(t)}(function(){0===i.length?(b.current=null,n(t)):Ge(t,n,r)})}catch(o){r(o)}else n(t)}var Ke=!1;function Qe(e){if(!Ke){Ke=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}e.length=0}catch(r){throw e=e.slice(t+1),r}finally{Ke=!1}}}var Xe=Fe,Ze=function(e,t,n){for(var r=te.apply(this,arguments),i=2;i<arguments.length;i++)Le(arguments[i],r.type);return He(r),r},Je=function(e){var t=Fe.bind(null,e);return t.type=e,Ue||(Ue=!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(t,"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:e}),e}}),t},et={map:ce,forEach:function(e,t,n){ce(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ce(e,function(){t++}),t},toArray:function(e){return ce(e,function(e){return e})||[]},only:function(e){if(!ne(e))throw new Error("React.Children.only expected to receive a single React element child.");return e}};t.Children=et,t.Component=N,t.Fragment=i,t.Profiler=a,t.PureComponent=L,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,t.act=We,t.cloneElement=Ze,t.createContext=function(e){var t={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};t.Provider={$$typeof:s,_context:t};var n=!1,r=!1,i=!1,o={$$typeof:l,_context:t};return Object.defineProperties(o,{Provider:{get:function(){return r||(r=!0,C("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),t.Provider},set:function(e){t.Provider=e}},_currentValue:{get:function(){return t._currentValue},set:function(e){t._currentValue=e}},_currentValue2:{get:function(){return t._currentValue2},set:function(e){t._currentValue2=e}},_threadCount:{get:function(){return t._threadCount},set:function(e){t._threadCount=e}},Consumer:{get:function(){return n||(n=!0,C("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),t.Consumer}},displayName:{get:function(){return t.displayName},set:function(e){i||(E("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",e),i=!0)}}}),t.Consumer=o,t._currentRenderer=null,t._currentRenderer2=null,t},t.createElement=Xe,t.createFactory=Je,t.createRef=function(){var e={current:null};return Object.seal(e),e},t.forwardRef=function(e){null!=e&&e.$$typeof===h?C("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):"function"!=typeof e?C("forwardRef requires a render function but was given %s.",null===e?"null":typeof e):0!==e.length&&2!==e.length&&C("forwardRef render functions accept exactly two parameters: props and ref. %s",1===e.length?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),null!=e&&(null==e.defaultProps&&null==e.propTypes||C("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"));var t,n={$$typeof:c,render:e};return Object.defineProperty(n,"displayName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(n){t=n,e.name||e.displayName||(e.displayName=n)}}),n},t.isValidElement=ne,t.lazy=function(e){var t,n,r={$$typeof:f,_payload:{_status:-1,_result:e},_init:ue};return Object.defineProperties(r,{defaultProps:{configurable:!0,get:function(){return t},set:function(e){C("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."),t=e,Object.defineProperty(r,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return n},set:function(e){C("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."),n=e,Object.defineProperty(r,"propTypes",{enumerable:!0})}}}),r},t.memo=function(e,t){de(e)||C("memo: The first argument must be a component. Instead received: %s",null===e?"null":typeof e);var n,r={$$typeof:h,type:e,compare:void 0===t?null:t};return Object.defineProperty(r,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(e.displayName=t)}}),r},t.startTransition=function(e,t){var n=y.transition;y.transition={};var r=y.transition;y.transition._updatedFibers=new Set;try{e()}finally{y.transition=n,null===n&&r._updatedFibers&&(r._updatedFibers.size>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."),r._updatedFibers.clear())}},t.unstable_act=We,t.useCallback=function(e,t){return he().useCallback(e,t)},t.useContext=function(e){var t=he();if(void 0!==e._context){var n=e._context;n.Consumer===e?C("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):n.Provider===e&&C("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return t.useContext(e)},t.useDebugValue=function(e,t){return he().useDebugValue(e,t)},t.useDeferredValue=function(e){return he().useDeferredValue(e)},t.useEffect=function(e,t){return he().useEffect(e,t)},t.useId=function(){return he().useId()},t.useImperativeHandle=function(e,t,n){return he().useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return he().useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return he().useLayoutEffect(e,t)},t.useMemo=function(e,t){return he().useMemo(e,t)},t.useReducer=function(e,t,n){return he().useReducer(e,t,n)},t.useRef=function(e){return he().useRef(e)},t.useState=function(e){return he().useState(e)},t.useSyncExternalStore=function(e,t,n){return he().useSyncExternalStore(e,t,n)},t.useTransition=function(){return he().useTransition()},t.version="18.3.1","undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),u.exports;var e,t}function h(){if(l)return i.exports;l=1;return i.exports="production"==={}.NODE_ENV?a():d(),i.exports}
|
||
/**
|
||
* @license React
|
||
* react-jsx-runtime.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var f,p,g={};function m(){if(f)return g;f=1;
|
||
/**
|
||
* @license React
|
||
* react-jsx-runtime.development.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
return"production"!=={}.NODE_ENV&&function(){var e=h(),t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),m=Symbol.iterator;var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];!function(e,t,n){var r=v.ReactDebugCurrentFrame.getStackAddendum();""!==r&&(t+="%s",n=n.concat([r]));var i=n.map(function(e){return String(e)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,n)}var b;function w(e){return e.displayName||"Context"}function x(e){if(null==e)return null;if("number"==typeof e.tag&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return w(e)+".Consumer";case a:return w(e._context)+".Provider";case l:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case d:var t=e.displayName||null;return null!==t?t:x(e.type)||"Memo";case f:var h=e,p=h._payload,g=h._init;try{return x(g(p))}catch(m){return null}}return null}b=Symbol.for("react.module.reference");var k,S,T,E,C,R,P,_=Object.assign,D=0;function I(){}I.__reactDisabledLog=!0;var A,N=v.ReactCurrentDispatcher;function M(e,t,n){if(void 0===A)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);A=r&&r[1]||""}return"\n"+A+e}var $,O=!1,j="function"==typeof WeakMap?WeakMap:Map;function L(e,t){if(!e||O)return"";var n,r=$.get(e);if(void 0!==r)return r;O=!0;var i,o=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=N.current,N.current=null,function(){if(0===D){k=console.log,S=console.info,T=console.warn,E=console.error,C=console.group,R=console.groupCollapsed,P=console.groupEnd;var e={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(p){n=p}Reflect.construct(e,[],a)}else{try{a.call()}catch(p){n=p}e.call(a.prototype)}}else{try{throw Error()}catch(p){n=p}e()}}catch(g){if(g&&n&&"string"==typeof g.stack){for(var s=g.stack.split("\n"),l=n.stack.split("\n"),c=s.length-1,u=l.length-1;c>=1&&u>=0&&s[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(s[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||s[c]!==l[u]){var d="\n"+s[c].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),"function"==typeof e&&$.set(e,d),d}}while(c>=1&&u>=0);break}}}finally{O=!1,N.current=i,function(){if(0===--D){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},e,{value:k}),info:_({},e,{value:S}),warn:_({},e,{value:T}),error:_({},e,{value:E}),group:_({},e,{value:C}),groupCollapsed:_({},e,{value:R}),groupEnd:_({},e,{value:P})})}D<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=o}var h=e?e.displayName||e.name:"",f=h?M(h):"";return"function"==typeof e&&$.set(e,f),f}function H(e,t,n){if(null==e)return"";if("function"==typeof e)return L(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return M(e);switch(e){case c:return M("Suspense");case u:return M("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case l:return L(e.render,!1);case d:return H(e.type,t,n);case f:var i=e,o=i._payload,a=i._init;try{return H(a(o),t,n)}catch(s){}}return""}$=new j;var F=Object.prototype.hasOwnProperty,U={},z=v.ReactDebugCurrentFrame;function q(e){if(e){var t=e._owner,n=H(e.type,e._source,t?t.type:null);z.setExtraStackFrame(n)}else z.setExtraStackFrame(null)}var V=Array.isArray;function B(e){return V(e)}function W(e){return""+e}function Y(e){if(function(e){try{return W(e),!1}catch(t){return!0}}(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),W(e)}var G,K,Q=v.ReactCurrentOwner,X={key:!0,ref:!0,__self:!0,__source:!0};function Z(e,n,r,i,o){var a,s={},l=null,c=null;for(a in void 0!==r&&(Y(r),l=""+r),function(e){if(F.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(n)&&(Y(n.key),l=""+n.key),function(e){if(F.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(n)&&(c=n.ref,function(e){"string"==typeof e.ref&&Q.current}(n)),n)F.call(n,a)&&!X.hasOwnProperty(a)&&(s[a]=n[a]);if(e&&e.defaultProps){var u=e.defaultProps;for(a in u)void 0===s[a]&&(s[a]=u[a])}if(l||c){var d="function"==typeof e?e.displayName||e.name||"Unknown":e;l&&function(e,t){var n=function(){G||(G=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}(s,d),c&&function(e,t){var n=function(){K||(K=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}(s,d)}return function(e,n,r,i,o,a,s){var l={$$typeof:t,type:e,key:n,ref:r,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(e,l,c,o,i,Q.current,s)}var J,ee=v.ReactCurrentOwner,te=v.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,n=H(e.type,e._source,t?t.type:null);te.setExtraStackFrame(n)}else te.setExtraStackFrame(null)}function re(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ie(){if(ee.current){var e=x(ee.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}J=!1;var oe={};function ae(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var n=function(e){var t=ie();if(!t){var n="string"==typeof e?e:e.displayName||e.name;n&&(t="\n\nCheck the top-level render call using <"+n+">.")}return t}(t);if(!oe[n]){oe[n]=!0;var r="";e&&e._owner&&e._owner!==ee.current&&(r=" It was passed a child from "+x(e._owner.type)+"."),ne(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,r),ne(null)}}}function se(e,t){if("object"==typeof e)if(B(e))for(var n=0;n<e.length;n++){var r=e[n];re(r)&&ae(r,t)}else if(re(e))e._store&&(e._store.validated=!0);else if(e){var i=function(e){if(null===e||"object"!=typeof e)return null;var t=m&&e[m]||e["@@iterator"];return"function"==typeof t?t:null}(e);if("function"==typeof i&&i!==e.entries)for(var o,a=i.call(e);!(o=a.next()).done;)re(o.value)&&ae(o.value,t)}}function le(e){var t,n=e.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)t=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==l&&n.$$typeof!==d)return;t=n.propTypes}if(t){var r=x(n);!function(e,t,n,r,i){var o=Function.call.bind(F);for(var a in e)if(o(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((r||"React class")+": "+n+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(c){s=c}!s||s instanceof Error||(q(i),y("%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).",r||"React class",n,a,typeof s),q(null)),s instanceof Error&&!(s.message in U)&&(U[s.message]=!0,q(i),y("Failed %s type: %s",n,s.message),q(null))}}(t,e.props,"prop",r,e)}else if(void 0!==n.PropTypes&&!J){J=!0,y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ce={};function ue(e,n,h,g,m,v){var w=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===i||e===c||e===u||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===a||e.$$typeof===s||e.$$typeof===l||e.$$typeof===b||void 0!==e.getModuleId)}(e);if(!w){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" 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 S;k+=ie(),null===e?S="null":B(e)?S="array":void 0!==e&&e.$$typeof===t?(S="<"+(x(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,k)}var T=Z(e,n,h,m,v);if(null==T)return T;if(w){var E=n.children;if(void 0!==E)if(g)if(B(E)){for(var C=0;C<E.length;C++)se(E[C],e);Object.freeze&&Object.freeze(E)}else y("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 se(E,e)}if(F.call(n,"key")){var R=x(e),P=Object.keys(n).filter(function(e){return"key"!==e}),_=P.length>0?"{key: someKey, "+P.join(": ..., ")+": ...}":"{key: someKey}";if(!ce[R+_])y('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',_,R,P.length>0?"{"+P.join(": ..., ")+": ...}":"{}",R),ce[R+_]=!0}return e===r?function(e){for(var t=Object.keys(e.props),n=0;n<t.length;n++){var r=t[n];if("children"!==r&&"key"!==r){ne(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",r),ne(null);break}}null!==e.ref&&(ne(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}(T):le(T),T}var de=function(e,t,n){return ue(e,t,n,!1)},he=function(e,t,n){return ue(e,t,n,!0)};g.Fragment=r,g.jsx=de,g.jsxs=he}(),g}var v=(p||(p=1,n.exports="production"==={}.NODE_ENV?function(){if(c)return r;c=1;var e=h(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function s(e,n,r){var s,l={},c=null,u=null;for(s in void 0!==r&&(c=""+r),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)i.call(n,s)&&!a.hasOwnProperty(s)&&(l[s]=n[s]);if(e&&e.defaultProps)for(s in n=e.defaultProps)void 0===l[s]&&(l[s]=n[s]);return{$$typeof:t,type:e,key:c,ref:u,props:l,_owner:o.current}}return r.Fragment=n,r.jsx=s,r.jsxs=s,r}():m()),n.exports),y=h();const b=e(y);var w,x={},k={exports:{}},S={},T={exports:{}},E={};var C,R,P,_={};function D(){return C||(C=1,e=_,
|
||
/**
|
||
* @license React
|
||
* scheduler.development.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
"production"!=={}.NODE_ENV&&function(){function t(e,t){var n=e.length;e.push(t),function(e,t,n){for(var r=n;r>0;){var o=r-1>>>1,a=e[o];if(!(i(a,t)>0))return;e[o]=t,e[r]=a,r=o}}(e,t,n)}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();return n!==t&&(e[0]=n,function(e,t,n){for(var r=n,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(i(l,t)<0)c<o&&i(u,l)<0?(e[r]=u,e[c]=t,r=c):(e[r]=l,e[s]=t,r=s);else{if(!(c<o&&i(u,t)<0))return;e[r]=u,e[c]=t,r=c}}}(e,n,0)),t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error),"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,h=3,f=!1,p=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var i=n(c);null!==i;){if(null===i.callback)r(c);else{if(!(i.startTime<=e))return;r(c),i.sortIndex=i.expirationTime,t(l,i)}i=n(c)}}function w(e){if(g=!1,b(e),!p)if(null!==n(l))p=!0,A(x);else{var t=n(c);null!==t&&N(w,t.startTime-e)}}function x(t,i){p=!1,g&&(g=!1,M()),f=!0;var o=h;try{return function(t,i){var o=i;for(b(o),d=n(l);null!==d&&(!(d.expirationTime>o)||t&&!R());){var a=d.callback;if("function"==typeof a){d.callback=null,h=d.priorityLevel;var s=a(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(o)}else r(l);d=n(l)}if(null!==d)return!0;var u=n(c);return null!==u&&N(w,u.startTime-o),!1}(t,i)}finally{d=null,h=o,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k=!1,S=null,T=-1,E=5,C=-1;function R(){return!(e.unstable_now()-C<E)}var P,_=function(){if(null!==S){var t=e.unstable_now();C=t;var n=!0;try{n=S(!0,t)}finally{n?P():(k=!1,S=null)}}else k=!1};if("function"==typeof y)P=function(){y(_)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,I=D.port2;D.port1.onmessage=_,P=function(){I.postMessage(null)}}else P=function(){m(_,0)};function A(e){S=e,k||(k=!0,P())}function N(t,n){T=m(function(){t(e.unstable_now())},n)}function M(){v(T),T=-1}var $=function(){};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){p||f||(p=!0,A(x))},e.unstable_forceFrameRate=function(e){e<0||e>125?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=e>0?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){var t;switch(h){case 1:case 2:case 3:t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=$,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},e.unstable_scheduleCallback=function(r,i,o){var a,s,d=e.unstable_now();if("object"==typeof o&&null!==o){var h=o.delay;a="number"==typeof h&&h>0?d+h:d}else a=d;switch(r){case 1:s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}var m=a+s,v={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:m,sortIndex:-1};return a>d?(v.sortIndex=a,t(c,v),null===n(l)&&v===n(c)&&(g?M():g=!0,N(w,a-d))):(v.sortIndex=m,t(l,v),p||f||(p=!0,A(x))),v},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),_;var e}function I(){if(R)return T.exports;R=1;return T.exports="production"==={}.NODE_ENV?(w||(w=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>i(l,n))c<o&&0>i(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<o&&0>i(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],u=1,d=null,h=3,f=!1,p=!1,g=!1,m="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,y="undefined"!=typeof setImmediate?setImmediate:null;function b(e){for(var i=n(c);null!==i;){if(null===i.callback)r(c);else{if(!(i.startTime<=e))break;r(c),i.sortIndex=i.expirationTime,t(l,i)}i=n(c)}}function w(e){if(g=!1,b(e),!p)if(null!==n(l))p=!0,A(x);else{var t=n(c);null!==t&&N(w,t.startTime-e)}}function x(t,i){p=!1,g&&(g=!1,v(E),E=-1),f=!0;var o=h;try{for(b(i),d=n(l);null!==d&&(!(d.expirationTime>i)||t&&!P());){var a=d.callback;if("function"==typeof a){d.callback=null,h=d.priorityLevel;var s=a(d.expirationTime<=i);i=e.unstable_now(),"function"==typeof s?d.callback=s:d===n(l)&&r(l),b(i)}else r(l);d=n(l)}if(null!==d)var u=!0;else{var m=n(c);null!==m&&N(w,m.startTime-i),u=!1}return u}finally{d=null,h=o,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,S=!1,T=null,E=-1,C=5,R=-1;function P(){return!(e.unstable_now()-R<C)}function _(){if(null!==T){var t=e.unstable_now();R=t;var n=!0;try{n=T(!0,t)}finally{n?k():(S=!1,T=null)}}else S=!1}if("function"==typeof y)k=function(){y(_)};else if("undefined"!=typeof MessageChannel){var D=new MessageChannel,I=D.port2;D.port1.onmessage=_,k=function(){I.postMessage(null)}}else k=function(){m(_,0)};function A(e){T=e,S||(S=!0,k())}function N(t,n){E=m(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){p||f||(p=!0,A(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},e.unstable_scheduleCallback=function(r,i,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:u++,callback:i,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(r.sortIndex=o,t(c,r),null===n(l)&&r===n(c)&&(g?(v(E),E=-1):g=!0,N(w,o-a))):(r.sortIndex=s,t(l,r),p||f||(p=!0,A(x))),r},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}}(E)),E):D(),T.exports}
|
||
/**
|
||
* @license React
|
||
* react-dom.production.min.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/function A(){if(P)return S;P=1;var e=h(),t=I();function n(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(i[e]=t,e=0;e<t.length;e++)r.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),l=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]*$/,u={},d={};function f(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var p={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){p[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];p[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){p[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){p[e]=new f(e,2,!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".split(" ").forEach(function(e){p[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){p[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){p[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){p[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){p[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var g=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function v(e,t,n,r){var i=p.hasOwnProperty(t)?p[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!l.call(d,e)||!l.call(u,e)&&(c.test(e)?d[e]=!0:(u[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(e){var t=e.replace(g,m);p[t]=new f(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(g,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(g,m);p[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),p.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){p[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),C=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),$=Symbol.iterator;function O(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=$&&e[$]||e["@@iterator"])?e:null}var j,L=Object.assign;function H(e){if(void 0===j)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);j=t&&t[1]||""}return"\n"+j+e}var F=!1;function U(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"==typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var l="\n"+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function z(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case w:return"Portal";case T:return"Profiler";case k:return"StrictMode";case _:return"Suspense";case D:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:q(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(t);case 8:return t===k?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function J(e,t){Z(e,t);var n=B(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?te(e,t.type,n):t.hasOwnProperty("defaultValue")&&te(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ee(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function te(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ne=Array.isArray;function re(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+B(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ie(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(ne(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:B(r)}}function ae(e,t){var n=B(t.value),r=B(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){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 ce(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,de,he=(de=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return de(e,t)})}:de);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={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},ge=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach(function(e){ge.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]})});var ye=L({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 be(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function we(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 xe=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,Te=null,Ee=null;function Ce(e){if(e=wi(e)){if("function"!=typeof Se)throw Error(n(280));var t=e.stateNode;t&&(t=ki(t),Se(e.stateNode,e.type,t))}}function Re(e){Te?Ee?Ee.push(e):Ee=[e]:Te=e}function Pe(){if(Te){var e=Te,t=Ee;if(Ee=Te=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function _e(e,t){return e(t)}function De(){}var Ie=!1;function Ae(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return _e(e,t,n)}finally{Ie=!1,(null!==Te||null!==Ee)&&(De(),Pe())}}function Ne(e,t){var r=e.stateNode;if(null===r)return null;var i=ki(r);if(null===i)return null;r=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!i;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var Me=!1;if(s)try{var $e={};Object.defineProperty($e,"passive",{get:function(){Me=!0}}),window.addEventListener("test",$e,$e),window.removeEventListener("test",$e,$e)}catch(de){Me=!1}function Oe(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var je=!1,Le=null,He=!1,Fe=null,Ue={onError:function(e){je=!0,Le=e}};function ze(e,t,n,r,i,o,a,s,l){je=!1,Le=null,Oe.apply(Ue,arguments)}function qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Be(e){if(qe(e)!==e)throw Error(n(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=qe(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,i=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(i=o.return)){r=i;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return Be(o),e;if(a===i)return Be(o),t;a=a.sibling}throw Error(n(188))}if(r.return!==i.return)r=o,i=a;else{for(var s=!1,l=o.child;l;){if(l===r){s=!0,r=o,i=a;break}if(l===i){s=!0,i=o,r=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===r){s=!0,r=a,i=o;break}if(l===i){s=!0,i=a,r=o;break}l=l.sibling}if(!s)throw Error(n(189))}}if(r.alternate!==i)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e))?Ye(e):null}function Ye(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ye(e);if(null!==t)return t;e=e.sibling}return null}var Ge=t.unstable_scheduleCallback,Ke=t.unstable_cancelCallback,Qe=t.unstable_shouldYield,Xe=t.unstable_requestPaint,Ze=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,et=t.unstable_ImmediatePriority,tt=t.unstable_UserBlockingPriority,nt=t.unstable_NormalPriority,rt=t.unstable_LowPriority,it=t.unstable_IdlePriority,ot=null,at=null;var st=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ct|0)|0},lt=Math.log,ct=Math.LN2;var ut=64,dt=4194304;function ht(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=ht(s):0!==(o&=a)&&(r=ht(o))}else 0!==(a=n&~i)?r=ht(a):0!==o&&(r=ht(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&4194240&o))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-st(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+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 t+5e3;default:return-1}}function gt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-st(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-st(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var wt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var kt,St,Tt,Et,Ct,Rt=!1,Pt=[],_t=null,Dt=null,It=null,At=new Map,Nt=new Map,Mt=[],$t="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 Ot(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":Dt=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nt.delete(t.pointerId)}}function jt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=wi(t))&&St(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=bi(e.target);if(null!==t){var n=qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void Ct(e.priority,function(){Tt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ht(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=wi(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Ft(e,t,n){Ht(e)&&n.delete(t)}function Ut(){Rt=!1,null!==_t&&Ht(_t)&&(_t=null),null!==Dt&&Ht(Dt)&&(Dt=null),null!==It&&Ht(It)&&(It=null),At.forEach(Ft),Nt.forEach(Ft)}function zt(e,n){e.blockedOn===n&&(e.blockedOn=null,Rt||(Rt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ut)))}function qt(e){function t(t){return zt(t,e)}if(0<Pt.length){zt(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==_t&&zt(_t,e),null!==Dt&&zt(Dt,e),null!==It&&zt(It,e),At.forEach(t),Nt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Mt.shift()}var Vt=y.ReactCurrentBatchConfig,Bt=!0;function Wt(e,t,n,r){var i=wt,o=Vt.transition;Vt.transition=null;try{wt=1,Gt(e,t,n,r)}finally{wt=i,Vt.transition=o}}function Yt(e,t,n,r){var i=wt,o=Vt.transition;Vt.transition=null;try{wt=4,Gt(e,t,n,r)}finally{wt=i,Vt.transition=o}}function Gt(e,t,n,r){if(Bt){var i=Qt(e,t,n,r);if(null===i)Br(e,t,r,Kt,n),Ot(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return _t=jt(_t,e,t,n,r,i),!0;case"dragenter":return Dt=jt(Dt,e,t,n,r,i),!0;case"mouseover":return It=jt(It,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return At.set(o,jt(At.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Nt.set(o,jt(Nt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Ot(e,r),4&t&&-1<$t.indexOf(e)){for(;null!==i;){var o=wi(i);if(null!==o&&kt(o),null===(o=Qt(e,t,n,r))&&Br(e,t,r,Kt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Br(e,t,r,null,n)}}var Kt=null;function Qt(e,t,n,r){if(Kt=null,null!==(e=bi(e=ke(r))))if(null===(t=qe(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Xt(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 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(Je()){case et:return 1;case tt:return 4;case nt:case rt:return 16;case it:return 536870912;default:return 16}default:return 16}}var Zt=null,Jt=null,en=null;function tn(){if(en)return en;var e,t,n=Jt,r=n.length,i="value"in Zt?Zt.value:Zt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return en=i.slice(e,1<t?1-t:void 0)}function nn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function rn(){return!0}function on(){return!1}function an(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?rn:on,this.isPropagationStopped=on,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=rn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rn)},persist:function(){},isPersistent:rn}),t}var sn,ln,cn,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=an(un),hn=L({},un,{view:0,detail:0}),fn=an(hn),pn=L({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(sn=e.screenX-cn.screenX,ln=e.screenY-cn.screenY):ln=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),gn=an(pn),mn=an(L({},pn,{dataTransfer:0})),vn=an(L({},hn,{relatedTarget:0})),yn=an(L({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=L({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wn=an(bn),xn=an(L({},un,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},Tn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Tn[e])&&!!t[e]}function Cn(){return En}var Rn=L({},hn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=nn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?nn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?nn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=an(Rn),_n=an(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Dn=an(L({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),In=an(L({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),An=L({},pn,{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}),Nn=an(An),Mn=[9,13,27,32],$n=s&&"CompositionEvent"in window,On=null;s&&"documentMode"in document&&(On=document.documentMode);var jn=s&&"TextEvent"in window&&!On,Ln=s&&(!$n||On&&8<On&&11>=On),Hn=String.fromCharCode(32),Fn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var qn=!1;var Vn={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 Bn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Wn(e,t,n,r){Re(r),0<(t=Yr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,Gn=null;function Kn(e){Hr(e,0)}function Qn(e){if(G(xi(e)))return e}function Xn(e,t){if("change"===e)return t}var Zn=!1;if(s){var Jn;if(s){var er="oninput"in document;if(!er){var tr=document.createElement("div");tr.setAttribute("oninput","return;"),er="function"==typeof tr.oninput}Jn=er}else Jn=!1;Zn=Jn&&(!document.documentMode||9<document.documentMode)}function nr(){Yn&&(Yn.detachEvent("onpropertychange",rr),Gn=Yn=null)}function rr(e){if("value"===e.propertyName&&Qn(Gn)){var t=[];Wn(t,Gn,e,ke(e)),Ae(Kn,t)}}function ir(e,t,n){"focusin"===e?(nr(),Gn=n,(Yn=t).attachEvent("onpropertychange",rr)):"focusout"===e&&nr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn(Gn)}function ar(e,t){if("click"===e)return Qn(t)}function sr(e,t){if("input"===e||"change"===e)return Qn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function cr(e,t){if(lr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!lr(e[i],t[i]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function gr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&hr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=dr(n,o);var a=dr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=s&&"documentMode"in document&&11>=document.documentMode,vr=null,yr=null,br=null,wr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;wr||null==vr||vr!==K(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&cr(br,r)||(br=r,0<(r=Yr(yr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},Tr={},Er={};function Cr(e){if(Tr[e])return Tr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return Tr[e]=n[t];return e}s&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var Rr=Cr("animationend"),Pr=Cr("animationiteration"),_r=Cr("animationstart"),Dr=Cr("transitionend"),Ir=new Map,Ar="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 Nr(e,t){Ir.set(e,t),o(t,[e])}for(var Mr=0;Mr<Ar.length;Mr++){var $r=Ar[Mr];Nr($r.toLowerCase(),"on"+($r[0].toUpperCase()+$r.slice(1)))}Nr(Rr,"onAnimationEnd"),Nr(Pr,"onAnimationIteration"),Nr(_r,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Dr,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="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(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Lr(e,t,r){var i=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,i,o,a,s,l,c){if(ze.apply(this,arguments),je){if(!je)throw Error(n(198));var u=Le;je=!1,Le=null,He||(He=!0,Fe=u)}}(i,t,void 0,e),e.currentTarget=null}function Hr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;Lr(i,s,c),o=l}}}if(He)throw e=Fe,He=!1,Fe=null,e}function Fr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[zr]){e[zr]=!0,r.forEach(function(t){"selectionchange"!==t&&(jr.has(t)||Ur(t,!1,e),Ur(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Ur("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Xt(t)){case 1:var i=Wt;break;case 4:i=Yt;break;default:i=Gt}n=i.bind(null,t,n,e),i=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Br(e,t,n,r,i){var o=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=bi(s)))return;if(5===(l=a.tag)||6===l){r=o=a;continue e}s=s.parentNode}}r=r.return}Ae(function(){var r=o,i=ke(n),a=[];e:{var s=Ir.get(e);if(void 0!==s){var l=dn,c=e;switch(e){case"keypress":if(0===nn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":c="focus",l=vn;break;case"focusout":c="blur",l=vn;break;case"beforeblur":case"afterblur":l=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Dn;break;case Rr:case Pr:case _r:l=yn;break;case Dr:l=In;break;case"scroll":l=fn;break;case"wheel":l=Nn;break;case"copy":case"cut":case"paste":l=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=_n}var u=!!(4&t),d=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var f,p=r;null!==p;){var g=(f=p).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==h&&(null!=(g=Ne(p,h))&&u.push(Wr(p,g,f)))),d)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),a.push({event:s,listeners:u}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!bi(c)&&!c[gi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?bi(c):null)&&(c!==(d=qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=gn,g="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=_n,g="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:xi(l),f=null==c?s:xi(c),(s=new u(g,p+"leave",l,n,i)).target=d,s.relatedTarget=f,g=null,bi(i)===r&&((u=new u(h,p+"enter",c,n,i)).target=f,u.relatedTarget=d,g=u),d=g,l&&c)e:{for(h=c,p=0,f=u=l;f;f=Gr(f))p++;for(f=0,g=h;g;g=Gr(g))f++;for(;0<p-f;)u=Gr(u),p--;for(;0<f-p;)h=Gr(h),f--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=Gr(u),h=Gr(h)}u=null}else u=null;null!==l&&Kr(a,s,l,u,!1),null!==c&&null!==d&&Kr(a,d,c,u,!0)}if("select"===(l=(s=r?xi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Xn;else if(Bn(s))if(Zn)m=sr;else{m=or;var v=ir}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ar);switch(m&&(m=m(e,r))?Wn(a,m,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&te(s,"number",s.value)),v=r?xi(r):window,e){case"focusin":(Bn(v)||"true"===v.contentEditable)&&(vr=v,yr=r,br=null);break;case"focusout":br=yr=vr=null;break;case"mousedown":wr=!0;break;case"contextmenu":case"mouseup":case"dragend":wr=!1,xr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,i)}var y;if($n)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else qn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Ln&&"ko"!==n.locale&&(qn||"onCompositionStart"!==b?"onCompositionEnd"===b&&qn&&(y=tn()):(Jt="value"in(Zt=i)?Zt.value:Zt.textContent,qn=!0)),0<(v=Yr(r,b)).length&&(b=new xn(b,e,null,n,i),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=zn(n))&&(b.data=y))),(y=jn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Fn=!0,Hn);case"textInput":return(e=t.data)===Hn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(qn)return"compositionend"===e||!$n&&Un(e,t)?(e=tn(),en=Jt=Zt=null,qn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Yr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}Hr(a,t)})}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ne(e,n))&&r.unshift(Wr(e,o,i)),null!=(o=Ne(e,t))&&r.push(Wr(e,o,i))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=Ne(n,o))&&a.unshift(Wr(n,l,s)):i||null!=(l=Ne(n,o))&&a.push(Wr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Qr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Zr(e){return("string"==typeof e?e:""+e).replace(Qr,"\n").replace(Xr,"")}function Jr(e,t,r){if(t=Zr(t),Zr(e)!==t&&r)throw Error(n(425))}function ei(){}var ti=null,ni=null;function ri(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ii="function"==typeof setTimeout?setTimeout:void 0,oi="function"==typeof clearTimeout?clearTimeout:void 0,ai="function"==typeof Promise?Promise:void 0,si="function"==typeof queueMicrotask?queueMicrotask:void 0!==ai?function(e){return ai.resolve(null).then(e).catch(li)}:ii;function li(e){setTimeout(function(){throw e})}function ci(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void qt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);qt(t)}function ui(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function di(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var hi=Math.random().toString(36).slice(2),fi="__reactFiber$"+hi,pi="__reactProps$"+hi,gi="__reactContainer$"+hi,mi="__reactEvents$"+hi,vi="__reactListeners$"+hi,yi="__reactHandles$"+hi;function bi(e){var t=e[fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gi]||n[fi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=di(e);null!==e;){if(n=e[fi])return n;e=di(e)}return t}n=(e=n).parentNode}return null}function wi(e){return!(e=e[fi]||e[gi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function ki(e){return e[pi]||null}var Si=[],Ti=-1;function Ei(e){return{current:e}}function Ci(e){0>Ti||(e.current=Si[Ti],Si[Ti]=null,Ti--)}function Ri(e,t){Ti++,Si[Ti]=e.current,e.current=t}var Pi={},_i=Ei(Pi),Di=Ei(!1),Ii=Pi;function Ai(e,t){var n=e.type.contextTypes;if(!n)return Pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ni(e){return null!=(e=e.childContextTypes)}function Mi(){Ci(Di),Ci(_i)}function $i(e,t,r){if(_i.current!==Pi)throw Error(n(168));Ri(_i,t),Ri(Di,r)}function Oi(e,t,r){var i=e.stateNode;if(t=t.childContextTypes,"function"!=typeof i.getChildContext)return r;for(var o in i=i.getChildContext())if(!(o in t))throw Error(n(108,V(e)||"Unknown",o));return L({},r,i)}function ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pi,Ii=_i.current,Ri(_i,e),Ri(Di,Di.current),!0}function Li(e,t,r){var i=e.stateNode;if(!i)throw Error(n(169));r?(e=Oi(e,t,Ii),i.__reactInternalMemoizedMergedChildContext=e,Ci(Di),Ci(_i),Ri(_i,e)):Ci(Di),Ri(Di,r)}var Hi=null,Fi=!1,Ui=!1;function zi(e){null===Hi?Hi=[e]:Hi.push(e)}function qi(){if(!Ui&&null!==Hi){Ui=!0;var e=0,t=wt;try{var n=Hi;for(wt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Hi=null,Fi=!1}catch(i){throw null!==Hi&&(Hi=Hi.slice(e+1)),Ge(et,qi),i}finally{wt=t,Ui=!1}}return null}var Vi=[],Bi=0,Wi=null,Yi=0,Gi=[],Ki=0,Qi=null,Xi=1,Zi="";function Ji(e,t){Vi[Bi++]=Yi,Vi[Bi++]=Wi,Wi=e,Yi=t}function eo(e,t,n){Gi[Ki++]=Xi,Gi[Ki++]=Zi,Gi[Ki++]=Qi,Qi=e;var r=Xi;e=Zi;var i=32-st(r)-1;r&=~(1<<i),n+=1;var o=32-st(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Xi=1<<32-st(t)+i|n<<i|r,Zi=o+e}else Xi=1<<o|n<<i|r,Zi=e}function to(e){null!==e.return&&(Ji(e,1),eo(e,1,0))}function no(e){for(;e===Wi;)Wi=Vi[--Bi],Vi[Bi]=null,Yi=Vi[--Bi],Vi[Bi]=null;for(;e===Qi;)Qi=Gi[--Ki],Gi[Ki]=null,Zi=Gi[--Ki],Gi[Ki]=null,Xi=Gi[--Ki],Gi[Ki]=null}var ro=null,io=null,oo=!1,ao=null;function so(e,t){var n=Ac(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function lo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ro=e,io=ui(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ro=e,io=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Qi?{id:Xi,overflow:Zi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ac(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ro=e,io=null,!0);default:return!1}}function co(e){return!(!(1&e.mode)||128&e.flags)}function uo(e){if(oo){var t=io;if(t){var r=t;if(!lo(e,t)){if(co(e))throw Error(n(418));t=ui(r.nextSibling);var i=ro;t&&lo(e,t)?so(i,r):(e.flags=-4097&e.flags|2,oo=!1,ro=e)}}else{if(co(e))throw Error(n(418));e.flags=-4097&e.flags|2,oo=!1,ro=e}}}function ho(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ro=e}function fo(e){if(e!==ro)return!1;if(!oo)return ho(e),oo=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ri(e.type,e.memoizedProps)),t&&(t=io)){if(co(e))throw po(),Error(n(418));for(;t;)so(e,t),t=ui(t.nextSibling)}if(ho(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){io=ui(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}io=null}}else io=ro?ui(e.stateNode.nextSibling):null;return!0}function po(){for(var e=io;e;)e=ui(e.nextSibling)}function go(){io=ro=null,oo=!1}function mo(e){null===ao?ao=[e]:ao.push(e)}var vo=y.ReactCurrentBatchConfig;function yo(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var i=r.stateNode}if(!i)throw Error(n(147,e));var o=i,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function bo(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function wo(e){return(0,e._init)(e._payload)}function xo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===x?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===N&&wo(i)===t.type)?((r=o(t,n.props)).ref=yo(e,t,n),r.return=e,r):((r=$c(n.type,n.key,n.props,null,e.mode,r)).ref=yo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Hc(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Oc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case b:return(n=$c(t.type,t.key,t.props,null,e.mode,n)).ref=yo(e,null,t),n.return=e,n;case w:return(t=Hc(t,e.mode,n)).return=e,t;case N:return h(e,(0,t._init)(t._payload),n)}if(ne(t)||O(t))return(t=Oc(t,e.mode,n,null)).return=e,t;bo(e,t)}return null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case b:return n.key===i?c(e,t,n,r):null;case w:return n.key===i?u(e,t,n,r):null;case N:return f(e,t,(i=n._init)(n._payload),r)}if(ne(n)||O(n))return null!==i?null:d(e,t,n,r,null);bo(e,n)}return null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case b:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case N:return p(e,t,n,(0,r._init)(r._payload),i)}if(ne(r)||O(r))return d(t,e=e.get(n)||null,r,i,null);bo(t,r)}return null}return function l(c,u,d,g){if("object"==typeof d&&null!==d&&d.type===x&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case b:e:{for(var m=d.key,v=u;null!==v;){if(v.key===m){if((m=d.type)===x){if(7===v.tag){r(c,v.sibling),(u=o(v,d.props.children)).return=c,c=u;break e}}else if(v.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===N&&wo(m)===v.type){r(c,v.sibling),(u=o(v,d.props)).ref=yo(c,v,d),u.return=c,c=u;break e}r(c,v);break}t(c,v),v=v.sibling}d.type===x?((u=Oc(d.props.children,c.mode,g,d.key)).return=c,c=u):((g=$c(d.type,d.key,d.props,null,c.mode,g)).ref=yo(c,u,d),g.return=c,c=g)}return s(c);case w:e:{for(v=d.key;null!==u;){if(u.key===v){if(4===u.tag&&u.stateNode.containerInfo===d.containerInfo&&u.stateNode.implementation===d.implementation){r(c,u.sibling),(u=o(u,d.children||[])).return=c,c=u;break e}r(c,u);break}t(c,u),u=u.sibling}(u=Hc(d,c.mode,g)).return=c,c=u}return s(c);case N:return l(c,u,(v=d._init)(d._payload),g)}if(ne(d))return function(n,o,s,l){for(var c=null,u=null,d=o,g=o=0,m=null;null!==d&&g<s.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=f(n,d,s[g],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(n,d),o=a(v,o,g),null===u?c=v:u.sibling=v,u=v,d=m}if(g===s.length)return r(n,d),oo&&Ji(n,g),c;if(null===d){for(;g<s.length;g++)null!==(d=h(n,s[g],l))&&(o=a(d,o,g),null===u?c=d:u.sibling=d,u=d);return oo&&Ji(n,g),c}for(d=i(n,d);g<s.length;g++)null!==(m=p(d,n,g,s[g],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),o=a(m,o,g),null===u?c=m:u.sibling=m,u=m);return e&&d.forEach(function(e){return t(n,e)}),oo&&Ji(n,g),c}(c,u,d,g);if(O(d))return function(o,s,l,c){var u=O(l);if("function"!=typeof u)throw Error(n(150));if(null==(l=u.call(l)))throw Error(n(151));for(var d=u=null,g=s,m=s=0,v=null,y=l.next();null!==g&&!y.done;m++,y=l.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=f(o,g,y.value,c);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),s=a(b,s,m),null===d?u=b:d.sibling=b,d=b,g=v}if(y.done)return r(o,g),oo&&Ji(o,m),u;if(null===g){for(;!y.done;m++,y=l.next())null!==(y=h(o,y.value,c))&&(s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return oo&&Ji(o,m),u}for(g=i(o,g);!y.done;m++,y=l.next())null!==(y=p(g,o,m,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?u=y:d.sibling=y,d=y);return e&&g.forEach(function(e){return t(o,e)}),oo&&Ji(o,m),u}(c,u,d,g);bo(c,d)}return"string"==typeof d&&""!==d||"number"==typeof d?(d=""+d,null!==u&&6===u.tag?(r(c,u.sibling),(u=o(u,d)).return=c,c=u):(r(c,u),(u=Lc(d,c.mode,g)).return=c,c=u),s(c)):r(c,u)}}var ko=xo(!0),So=xo(!1),To=Ei(null),Eo=null,Co=null,Ro=null;function Po(){Ro=Co=Eo=null}function _o(e){var t=To.current;Ci(To),e._currentValue=t}function Do(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Io(e,t){Eo=e,Ro=Co=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Ao(e){var t=e._currentValue;if(Ro!==e)if(e={context:e,memoizedValue:t,next:null},null===Co){if(null===Eo)throw Error(n(308));Co=e,Eo.dependencies={lanes:0,firstContext:e}}else Co=Co.next=e;return t}var No=null;function Mo(e){null===No?No=[e]:No.push(e)}function $o(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Mo(t)):(n.next=i.next,i.next=n),t.interleaved=n,Oo(e,r)}function Oo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var jo=!1;function Lo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ho(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Uo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&_l){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Oo(e,n)}return null===(i=r.interleaved)?(t.next=t,Mo(r)):(t.next=i.next,i.next=t),r.interleaved=t,Oo(e,n)}function zo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function qo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Vo(e,t,n,r){var i=e.updateQueue;jo=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==a&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=i.baseState;for(a=0,u=c=l=null,s=o;;){var h=s.lane,f=s.eventTime;if((r&h)===h){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(h=t,f=n,g.tag){case 1:if("function"==typeof(p=g.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=g.payload)?p.call(f,d,h):p))break e;d=L({},d,h);break e;case 2:jo=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,a|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===u&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);jl|=a,e.lanes=a,e.memoizedState=d}}function Bo(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var i=e[t],o=i.callback;if(null!==o){if(i.callback=null,i=r,"function"!=typeof o)throw Error(n(191,o));o.call(i)}}}var Wo={},Yo=Ei(Wo),Go=Ei(Wo),Ko=Ei(Wo);function Qo(e){if(e===Wo)throw Error(n(174));return e}function Xo(e,t){switch(Ri(Ko,t),Ri(Go,e),Ri(Yo,Wo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ce(null,"");break;default:t=ce(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ci(Yo),Ri(Yo,t)}function Zo(){Ci(Yo),Ci(Go),Ci(Ko)}function Jo(e){Qo(Ko.current);var t=Qo(Yo.current),n=ce(t,e.type);t!==n&&(Ri(Go,e),Ri(Yo,n))}function ea(e){Go.current===e&&(Ci(Yo),Ci(Go))}var ta=Ei(0);function na(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ra=[];function ia(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var oa=y.ReactCurrentDispatcher,aa=y.ReactCurrentBatchConfig,sa=0,la=null,ca=null,ua=null,da=!1,ha=!1,fa=0,pa=0;function ga(){throw Error(n(321))}function ma(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function va(e,t,r,i,o,a){if(sa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?es:ts,e=r(i,o),ha){a=0;do{if(ha=!1,fa=0,25<=a)throw Error(n(301));a+=1,ua=ca=null,t.updateQueue=null,oa.current=ns,e=r(i,o)}while(ha)}if(oa.current=Ja,t=null!==ca&&null!==ca.next,sa=0,ua=ca=la=null,da=!1,t)throw Error(n(300));return e}function ya(){var e=0!==fa;return fa=0,e}function ba(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ua?la.memoizedState=ua=e:ua=ua.next=e,ua}function wa(){if(null===ca){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ca.next;var t=null===ua?la.memoizedState:ua.next;if(null!==t)ua=t,ca=e;else{if(null===e)throw Error(n(310));e={memoizedState:(ca=e).memoizedState,baseState:ca.baseState,baseQueue:ca.baseQueue,queue:ca.queue,next:null},null===ua?la.memoizedState=ua=e:ua=ua.next=e}return ua}function xa(e,t){return"function"==typeof t?t(e):t}function ka(e){var t=wa(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=ca,o=i.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}i.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,i=i.baseState;var l=s=null,c=null,u=a;do{var d=u.lane;if((sa&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,s=i):c=c.next=h,la.lanes|=d,jl|=d}u=u.next}while(null!==u&&u!==a);null===c?s=i:c.next=l,lr(i,t.memoizedState)||(ws=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=c,r.lastRenderedState=i}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,la.lanes|=a,jl|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Sa(e){var t=wa(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);lr(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,i]}function Ta(){}function Ea(e,t){var r=la,i=wa(),o=t(),a=!lr(i.memoizedState,o);if(a&&(i.memoizedState=o,ws=!0),i=i.queue,ja(Pa.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||null!==ua&&1&ua.memoizedState.tag){if(r.flags|=2048,Aa(9,Ra.bind(null,r,i,o,t),void 0,null),null===Dl)throw Error(n(349));30&sa||Ca(r,t,o)}return o}function Ca(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ra(e,t,n,r){t.value=n,t.getSnapshot=r,_a(t)&&Da(e)}function Pa(e,t,n){return n(function(){_a(t)&&Da(e)})}function _a(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(r){return!0}}function Da(e){var t=Oo(e,1);null!==t&&rc(t,e,1,-1)}function Ia(e){var t=ba();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,la,e),[t.memoizedState,e]}function Aa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Na(){return wa().memoizedState}function Ma(e,t,n,r){var i=ba();la.flags|=e,i.memoizedState=Aa(1|t,n,void 0,void 0===r?null:r)}function $a(e,t,n,r){var i=wa();r=void 0===r?null:r;var o=void 0;if(null!==ca){var a=ca.memoizedState;if(o=a.destroy,null!==r&&ma(r,a.deps))return void(i.memoizedState=Aa(t,n,o,r))}la.flags|=e,i.memoizedState=Aa(1|t,n,o,r)}function Oa(e,t){return Ma(8390656,8,e,t)}function ja(e,t){return $a(2048,8,e,t)}function La(e,t){return $a(4,2,e,t)}function Ha(e,t){return $a(4,4,e,t)}function Fa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ua(e,t,n){return n=null!=n?n.concat([e]):null,$a(4,4,Fa.bind(null,t,e),n)}function za(){}function qa(e,t){var n=wa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Va(e,t){var n=wa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ma(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ba(e,t,n){return 21&sa?(lr(n,t)||(n=mt(),la.lanes|=n,jl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n)}function Wa(e,t){var n=wt;wt=0!==n&&4>n?n:4,e(!0);var r=aa.transition;aa.transition={};try{e(!1),t()}finally{wt=n,aa.transition=r}}function Ya(){return wa().memoizedState}function Ga(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Qa(e))Xa(t,n);else if(null!==(n=$o(e,t,n,r))){rc(n,e,r,tc()),Za(n,t,r)}}function Ka(e,t,n){var r=nc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qa(e))Xa(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,lr(s,a)){var l=t.interleaved;return null===l?(i.next=i,Mo(t)):(i.next=l.next,l.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=$o(e,t,i,r))&&(rc(n,e,r,i=tc()),Za(n,t,r))}}function Qa(e){var t=e.alternate;return e===la||null!==t&&t===la}function Xa(e,t){ha=da=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Za(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var Ja={readContext:Ao,useCallback:ga,useContext:ga,useEffect:ga,useImperativeHandle:ga,useInsertionEffect:ga,useLayoutEffect:ga,useMemo:ga,useReducer:ga,useRef:ga,useState:ga,useDebugValue:ga,useDeferredValue:ga,useTransition:ga,useMutableSource:ga,useSyncExternalStore:ga,useId:ga,unstable_isNewReconciler:!1},es={readContext:Ao,useCallback:function(e,t){return ba().memoizedState=[e,void 0===t?null:t],e},useContext:Ao,useEffect:Oa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ma(4194308,4,Fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=ba();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ba();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ga.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ba().memoizedState=e},useState:Ia,useDebugValue:za,useDeferredValue:function(e){return ba().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Wa.bind(null,e[1]),ba().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var i=la,o=ba();if(oo){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Dl)throw Error(n(349));30&sa||Ca(i,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,Oa(Pa.bind(null,i,a,e),[e]),i.flags|=2048,Aa(9,Ra.bind(null,i,a,r,t),void 0,null),r},useId:function(){var e=ba(),t=Dl.identifierPrefix;if(oo){var n=Zi;t=":"+t+"R"+(n=(Xi&~(1<<32-st(Xi)-1)).toString(32)+n),0<(n=fa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ts={readContext:Ao,useCallback:qa,useContext:Ao,useEffect:ja,useImperativeHandle:Ua,useInsertionEffect:La,useLayoutEffect:Ha,useMemo:Va,useReducer:ka,useRef:Na,useState:function(){return ka(xa)},useDebugValue:za,useDeferredValue:function(e){return Ba(wa(),ca.memoizedState,e)},useTransition:function(){return[ka(xa)[0],wa().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Ea,useId:Ya,unstable_isNewReconciler:!1},ns={readContext:Ao,useCallback:qa,useContext:Ao,useEffect:ja,useImperativeHandle:Ua,useInsertionEffect:La,useLayoutEffect:Ha,useMemo:Va,useReducer:Sa,useRef:Na,useState:function(){return Sa(xa)},useDebugValue:za,useDeferredValue:function(e){var t=wa();return null===ca?t.memoizedState=e:Ba(t,ca.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],wa().memoizedState]},useMutableSource:Ta,useSyncExternalStore:Ea,useId:Ya,unstable_isNewReconciler:!1};function rs(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function is(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var os={isMounted:function(e){return!!(e=e._reactInternals)&&qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Fo(r,i);o.payload=t,null!=n&&(o.callback=n),null!==(t=Uo(e,o,i))&&(rc(t,e,i,r),zo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Fo(r,i);o.tag=1,o.payload=t,null!=n&&(o.callback=n),null!==(t=Uo(e,o,i))&&(rc(t,e,i,r),zo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),i=Fo(n,r);i.tag=2,null!=t&&(i.callback=t),null!==(t=Uo(e,i,r))&&(rc(t,e,r,n),zo(t,e,r))}};function as(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(i,o))}function ss(e,t,n){var r=!1,i=Pi,o=t.contextType;return"object"==typeof o&&null!==o?o=Ao(o):(i=Ni(t)?Ii:_i.current,o=(r=null!=(r=t.contextTypes))?Ai(e,i):Pi),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=os,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function ls(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&os.enqueueReplaceState(t,t.state,null)}function cs(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Lo(e);var o=t.contextType;"object"==typeof o&&null!==o?i.context=Ao(o):(o=Ni(t)?Ii:_i.current,i.context=Ai(e,o)),i.state=e.memoizedState,"function"==typeof(o=t.getDerivedStateFromProps)&&(is(e,t,o,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&os.enqueueReplaceState(i,i.state,null),Vo(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function us(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function hs(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var fs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Fo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bl||(Bl=!0,Wl=r),hs(0,t)},n}function gs(e,t,n){(n=Fo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){hs(0,t)}}var o=e.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){hs(0,t),"function"!=typeof r&&(null===Yl?Yl=new Set([this]):Yl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,i){return 1&e.mode?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Fo(-1,1)).tag=2,Uo(n,t,1))),n.lanes|=1),e)}var bs=y.ReactCurrentOwner,ws=!1;function xs(e,t,n,r){t.child=null===e?So(t,null,n,r):ko(t,e.child,n,r)}function ks(e,t,n,r,i){n=n.render;var o=t.ref;return Io(t,i),r=va(e,t,n,r,o,i),n=ya(),null===e||ws?(oo&&n&&to(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function Ss(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Nc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$c(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ts(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:cr)(a,r)&&e.ref===t.ref)return Bs(e,t,i)}return t.flags|=1,(e=Mc(o,r)).ref=t.ref,e.return=t,t.child=e}function Ts(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(cr(o,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Bs(e,t,i);131072&e.flags&&(ws=!0)}}return Rs(e,t,n,r,i)}function Es(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ri(Ml,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Ri(Ml,Nl),Nl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ri(Ml,Nl),Nl|=n;else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Ri(Ml,Nl),Nl|=r;return xs(e,t,i,n),t.child}function Cs(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rs(e,t,n,r,i){var o=Ni(n)?Ii:_i.current;return o=Ai(t,o),Io(t,i),n=va(e,t,n,r,o,i),r=ya(),null===e||ws?(oo&&r&&to(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function Ps(e,t,n,r,i){if(Ni(n)){var o=!0;ji(t)}else o=!1;if(Io(t,i),null===t.stateNode)Vs(e,t),ss(t,n,r),cs(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"==typeof c&&null!==c?c=Ao(c):c=Ai(t,c=Ni(n)?Ii:_i.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==c)&&ls(t,a,r,c),jo=!1;var h=t.memoizedState;a.state=h,Vo(t,r,a,i),l=t.memoizedState,s!==r||h!==l||Di.current||jo?("function"==typeof u&&(is(t,n,u,r),l=t.memoizedState),(s=jo||as(t,n,s,r,h,l,c))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ho(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:rs(t.type,s),a.props=c,d=t.pendingProps,h=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Ao(l):l=Ai(t,l=Ni(n)?Ii:_i.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||h!==l)&&ls(t,a,r,l),jo=!1,h=t.memoizedState,a.state=h,Vo(t,r,a,i);var p=t.memoizedState;s!==d||h!==p||Di.current||jo?("function"==typeof f&&(is(t,n,f,r),p=t.memoizedState),(c=jo||as(t,n,c,r,h,p,l)||!1)?(u||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return _s(e,t,n,r,o,i)}function _s(e,t,n,r,i,o){Cs(e,t);var a=!!(128&t.flags);if(!r&&!a)return i&&Li(t,n,!1),Bs(e,t,o);r=t.stateNode,bs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ko(t,e.child,null,o),t.child=ko(t,null,s,o)):xs(e,t,s,o),t.memoizedState=r.state,i&&Li(t,n,!0),t.child}function Ds(e){var t=e.stateNode;t.pendingContext?$i(0,t.pendingContext,t.pendingContext!==t.context):t.context&&$i(0,t.context,!1),Xo(e,t.containerInfo)}function Is(e,t,n,r,i){return go(),mo(i),t.flags|=256,xs(e,t,n,r),t.child}var As,Ns,Ms,$s,Os={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,r){var i,o=t.pendingProps,a=ta.current,s=!1,l=!!(128&t.flags);if((i=l)||(i=(null===e||null!==e.memoizedState)&&!!(2&a)),i?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Ri(ta,1&a),null===e)return uo(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=jc(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Oc(e,o,r,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=js(r),t.memoizedState=Os,e):Hs(t,l));if(null!==(a=e.memoizedState)&&null!==(i=a.dehydrated))return function(e,t,r,i,o,a,s){if(r)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,i=ds(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=i.fallback,o=t.mode,i=jc({mode:"visible",children:i.children},o,0,null),(a=Oc(a,o,s,null)).flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,1&t.mode&&ko(t,e.child,null,s),t.child.memoizedState=js(s),t.memoizedState=Os,a);if(!(1&t.mode))return Fs(e,t,s,null);if("$!"===o.data){if(i=o.nextSibling&&o.nextSibling.dataset)var l=i.dgst;return i=l,Fs(e,t,s,i=ds(a=Error(n(419)),i,void 0))}if(l=0!==(s&e.childLanes),ws||l){if(null!==(i=Dl)){switch(s&-s){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(i.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Oo(e,o),rc(i,e,o,-1))}return mc(),Fs(e,t,s,i=ds(Error(n(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Pc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,io=ui(o.nextSibling),ro=t,oo=!0,ao=null,null!==e&&(Gi[Ki++]=Xi,Gi[Ki++]=Zi,Gi[Ki++]=Qi,Xi=e.id,Zi=e.overflow,Qi=t),t=Hs(t,i.children),t.flags|=4096,t)}(e,t,l,o,i,a,r);if(s){s=o.fallback,l=t.mode,i=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Mc(a,c)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null),null!==i?s=Mc(i,s):(s=Oc(s,l,r,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?js(r):{baseLanes:l.baseLanes|r,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~r,t.memoizedState=Os,o}return e=(s=e.child).sibling,o=Mc(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Hs(e,t){return(t=jc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&mo(r),ko(t,e.child,null,n),(e=Hs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Do(e.return,t,n)}function zs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function qs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xs(e,t,r.children,n),2&(r=ta.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ri(ta,r),1&t.mode)switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===na(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===na(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zs(t,!0,n,null,o);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Vs(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Bs(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),jl|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Mc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Mc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ws(e,t){if(!oo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ys(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gs(e,t,r){var o=t.pendingProps;switch(no(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(t),null;case 1:case 17:return Ni(t.type)&&Mi(),Ys(t),null;case 3:return o=t.stateNode,Zo(),Ci(Di),Ci(_i),ia(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ao&&(sc(ao),ao=null))),Ns(e,t),Ys(t),null;case 5:ea(t);var a=Qo(Ko.current);if(r=t.type,null!==e&&null!=t.stateNode)Ms(e,t,r,o,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!o){if(null===t.stateNode)throw Error(n(166));return Ys(t),null}if(e=Qo(Yo.current),fo(t)){o=t.stateNode,r=t.type;var s=t.memoizedProps;switch(o[fi]=t,o[pi]=s,e=!!(1&t.mode),r){case"dialog":Fr("cancel",o),Fr("close",o);break;case"iframe":case"object":case"embed":Fr("load",o);break;case"video":case"audio":for(a=0;a<Or.length;a++)Fr(Or[a],o);break;case"source":Fr("error",o);break;case"img":case"image":case"link":Fr("error",o),Fr("load",o);break;case"details":Fr("toggle",o);break;case"input":X(o,s),Fr("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Fr("invalid",o);break;case"textarea":oe(o,s),Fr("invalid",o)}for(var l in be(r,s),a=null,s)if(s.hasOwnProperty(l)){var c=s[l];"children"===l?"string"==typeof c?o.textContent!==c&&(!0!==s.suppressHydrationWarning&&Jr(o.textContent,c,e),a=["children",c]):"number"==typeof c&&o.textContent!==""+c&&(!0!==s.suppressHydrationWarning&&Jr(o.textContent,c,e),a=["children",""+c]):i.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Fr("scroll",o)}switch(r){case"input":Y(o),ee(o,s,!0);break;case"textarea":Y(o),se(o);break;case"select":case"option":break;default:"function"==typeof s.onClick&&(o.onclick=ei)}o=a,t.updateQueue=o,null!==o&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof o.is?e=l.createElement(r,{is:o.is}):(e=l.createElement(r),"select"===r&&(l=e,o.multiple?l.multiple=!0:o.size&&(l.size=o.size))):e=l.createElementNS(e,r),e[fi]=t,e[pi]=o,As(e,t,!1,!1),t.stateNode=e;e:{switch(l=we(r,o),r){case"dialog":Fr("cancel",e),Fr("close",e),a=o;break;case"iframe":case"object":case"embed":Fr("load",e),a=o;break;case"video":case"audio":for(a=0;a<Or.length;a++)Fr(Or[a],e);a=o;break;case"source":Fr("error",e),a=o;break;case"img":case"image":case"link":Fr("error",e),Fr("load",e),a=o;break;case"details":Fr("toggle",e),a=o;break;case"input":X(e,o),a=Q(e,o),Fr("invalid",e);break;case"option":default:a=o;break;case"select":e._wrapperState={wasMultiple:!!o.multiple},a=L({},o,{value:void 0}),Fr("invalid",e);break;case"textarea":oe(e,o),a=ie(e,o),Fr("invalid",e)}for(s in be(r,a),c=a)if(c.hasOwnProperty(s)){var u=c[s];"style"===s?ve(e,u):"dangerouslySetInnerHTML"===s?null!=(u=u?u.__html:void 0)&&he(e,u):"children"===s?"string"==typeof u?("textarea"!==r||""!==u)&&fe(e,u):"number"==typeof u&&fe(e,""+u):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(i.hasOwnProperty(s)?null!=u&&"onScroll"===s&&Fr("scroll",e):null!=u&&v(e,s,u,l))}switch(r){case"input":Y(e),ee(e,o,!1);break;case"textarea":Y(e),se(e);break;case"option":null!=o.value&&e.setAttribute("value",""+B(o.value));break;case"select":e.multiple=!!o.multiple,null!=(s=o.value)?re(e,!!o.multiple,s,!1):null!=o.defaultValue&&re(e,!!o.multiple,o.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=ei)}switch(r){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}}o&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ys(t),null;case 6:if(e&&null!=t.stateNode)$s(e,t,e.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw Error(n(166));if(r=Qo(Ko.current),Qo(Yo.current),fo(t)){if(o=t.stateNode,r=t.memoizedProps,o[fi]=t,(s=o.nodeValue!==r)&&null!==(e=ro))switch(e.tag){case 3:Jr(o.nodeValue,r,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(o.nodeValue,r,!!(1&e.mode))}s&&(t.flags|=4)}else(o=(9===r.nodeType?r:r.ownerDocument).createTextNode(o))[fi]=t,t.stateNode=o}return Ys(t),null;case 13:if(Ci(ta),o=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(oo&&null!==io&&1&t.mode&&!(128&t.flags))po(),go(),t.flags|=98560,s=!1;else if(s=fo(t),null!==o&&null!==o.dehydrated){if(null===e){if(!s)throw Error(n(318));if(!(s=null!==(s=t.memoizedState)?s.dehydrated:null))throw Error(n(317));s[fi]=t}else go(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ys(t),s=!1}else null!==ao&&(sc(ao),ao=null),s=!0;if(!s)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=r,t):((o=null!==o)!==(null!==e&&null!==e.memoizedState)&&o&&(t.child.flags|=8192,1&t.mode&&(null===e||1&ta.current?0===$l&&($l=3):mc())),null!==t.updateQueue&&(t.flags|=4),Ys(t),null);case 4:return Zo(),Ns(e,t),null===e&&qr(t.stateNode.containerInfo),Ys(t),null;case 10:return _o(t.type._context),Ys(t),null;case 19:if(Ci(ta),null===(s=t.memoizedState))return Ys(t),null;if(o=!!(128&t.flags),null===(l=s.rendering))if(o)Ws(s,!1);else{if(0!==$l||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=na(e))){for(t.flags|=128,Ws(s,!1),null!==(o=l.updateQueue)&&(t.updateQueue=o,t.flags|=4),t.subtreeFlags=0,o=r,r=t.child;null!==r;)e=o,(s=r).flags&=14680066,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ri(ta,1&ta.current|2),t.child}e=e.sibling}null!==s.tail&&Ze()>ql&&(t.flags|=128,o=!0,Ws(s,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=na(l))){if(t.flags|=128,o=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ws(s,!0),null===s.tail&&"hidden"===s.tailMode&&!l.alternate&&!oo)return Ys(t),null}else 2*Ze()-s.renderingStartTime>ql&&1073741824!==r&&(t.flags|=128,o=!0,Ws(s,!1),t.lanes=4194304);s.isBackwards?(l.sibling=t.child,t.child=l):(null!==(r=s.last)?r.sibling=l:t.child=l,s.last=l)}return null!==s.tail?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Ze(),t.sibling=null,r=ta.current,Ri(ta,o?1&r|2:1&r),t):(Ys(t),null);case 22:case 23:return hc(),o=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==o&&(t.flags|=8192),o&&1&t.mode?!!(1073741824&Nl)&&(Ys(t),6&t.subtreeFlags&&(t.flags|=8192)):Ys(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Ks(e,t){switch(no(t),t.tag){case 1:return Ni(t.type)&&Mi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zo(),Ci(Di),Ci(_i),ia(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ea(t),null;case 13:if(Ci(ta),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));go()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ci(ta),null;case 4:return Zo(),null;case 10:return _o(t.type._context),null;case 22:case 23:return hc(),null;default:return null}}As=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ns=function(){},Ms=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Qo(Yo.current);var a,s=null;switch(n){case"input":o=Q(e,o),r=Q(e,r),s=[];break;case"select":o=L({},o,{value:void 0}),r=L({},r,{value:void 0}),s=[];break;case"textarea":o=ie(e,o),r=ie(e,r),s=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=ei)}for(u in be(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(i.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(a in l)!l.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&l[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(s||(s=[]),s.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(s=s||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(s=s||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(i.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Fr("scroll",e),s||l===c||(s=[])):(s=s||[]).push(u,c))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}},$s=function(e,t,n,r){n!==r&&(t.flags|=4)};var Qs=!1,Xs=!1,Zs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(r){Ec(e,t,r)}else n.current=null}function tl(e,t,n){try{n()}catch(r){Ec(e,t,r)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tl(t,n,o)}i=i.next}while(i!==r)}}function il(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ol(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fi],delete t[pi],delete t[mi],delete t[vi],delete t[yi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=ei));else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}var dl=null,hl=!1;function fl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(s){}switch(n.tag){case 5:Xs||el(n,t);case 6:var r=dl,i=hl;dl=null,fl(e,t,n),hl=i,null!==(dl=r)&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(hl?(e=dl,n=n.stateNode,8===e.nodeType?ci(e.parentNode,n):1===e.nodeType&&ci(e,n),qt(e)):ci(dl,n.stateNode));break;case 4:r=dl,i=hl,dl=n.stateNode.containerInfo,hl=!0,fl(e,t,n),dl=r,hl=i;break;case 0:case 11:case 14:case 15:if(!Xs&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(2&o||4&o)&&tl(n,t,a),i=i.next}while(i!==r)}fl(e,t,n);break;case 1:if(!Xs&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ec(n,t,s)}fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:1&n.mode?(Xs=(r=Xs)||null!==n.memoizedState,fl(e,t,n),Xs=r):fl(e,t,n);break;default:fl(e,t,n)}}function gl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach(function(t){var r=_c.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function ml(e,t){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var o=r[i];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,hl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,hl=!0;break e}l=l.return}if(null===dl)throw Error(n(160));pl(a,s,o),dl=null,hl=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(u){Ec(o,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),yl(e),4&i){try{rl(3,e,e.return),il(3,e)}catch(m){Ec(e,e.return,m)}try{rl(5,e,e.return)}catch(m){Ec(e,e.return,m)}}break;case 1:ml(t,e),yl(e),512&i&&null!==r&&el(r,r.return);break;case 5:if(ml(t,e),yl(e),512&i&&null!==r&&el(r,r.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(m){Ec(e,e.return,m)}}if(4&i&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==r?r.memoizedProps:a,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===a.type&&null!=a.name&&Z(o,a),we(l,s);var u=we(l,a);for(s=0;s<c.length;s+=2){var d=c[s],h=c[s+1];"style"===d?ve(o,h):"dangerouslySetInnerHTML"===d?he(o,h):"children"===d?fe(o,h):v(o,d,h,u)}switch(l){case"input":J(o,a);break;case"textarea":ae(o,a);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?re(o,!!a.multiple,p,!1):f!==!!a.multiple&&(null!=a.defaultValue?re(o,!!a.multiple,a.defaultValue,!0):re(o,!!a.multiple,a.multiple?[]:"",!1))}o[pi]=a}catch(m){Ec(e,e.return,m)}}break;case 6:if(ml(t,e),yl(e),4&i){if(null===e.stateNode)throw Error(n(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(m){Ec(e,e.return,m)}}break;case 3:if(ml(t,e),yl(e),4&i&&null!==r&&r.memoizedState.isDehydrated)try{qt(t.containerInfo)}catch(m){Ec(e,e.return,m)}break;case 4:default:ml(t,e),yl(e);break;case 13:ml(t,e),yl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(zl=Ze())),4&i&&gl(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Xs=(u=Xs)||d,ml(t,e),Xs=u):ml(t,e),yl(e),8192&i){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(h=Js=d;null!==Js;){switch(p=(f=Js).child,f.tag){case 0:case 11:case 14:case 15:rl(4,f,f.return);break;case 1:el(f,f.return);var g=f.stateNode;if("function"==typeof g.componentWillUnmount){i=f,r=f.return;try{t=i,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(m){Ec(i,r,m)}}break;case 5:el(f,f.return);break;case 22:if(null!==f.memoizedState){kl(h);continue}}null!==p?(p.return=f,Js=p):kl(h)}d=d.sibling}e:for(d=null,h=e;;){if(5===h.tag){if(null===d){d=h;try{o=h.stateNode,u?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=h.stateNode,s=null!=(c=h.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,l.style.display=me("display",s))}catch(m){Ec(e,e.return,m)}}}else if(6===h.tag){if(null===d)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(m){Ec(e,e.return,m)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:ml(t,e),yl(e),4&i&&gl(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(sl(r)){var i=r;break e}r=r.return}throw Error(n(160))}switch(i.tag){case 5:var o=i.stateNode;32&i.flags&&(fe(o,""),i.flags&=-33),ul(e,ll(e),o);break;case 3:case 4:var a=i.stateNode.containerInfo;cl(e,ll(e),a);break;default:throw Error(n(161))}}catch(s){Ec(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Js=e,wl(e)}function wl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var i=Js,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Qs;if(!a){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Xs;s=Qs;var c=Xs;if(Qs=a,(Xs=l)&&!c)for(Js=i;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?Sl(i):null!==l?(l.return=a,Js=l):Sl(i);for(;null!==o;)Js=o,wl(o),o=o.sibling;Js=i,Qs=s,Xs=c}xl(e)}else 8772&i.subtreeFlags&&null!==o?(o.return=i,Js=o):xl(e)}}function xl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var r=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xs||il(5,t);break;case 1:var i=t.stateNode;if(4&t.flags&&!Xs)if(null===r)i.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:rs(t.type,r.memoizedProps);i.componentDidUpdate(o,r.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Bo(t,a,i);break;case 3:var s=t.updateQueue;if(null!==s){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Bo(t,s,r)}break;case 5:var l=t.stateNode;if(null===r&&4&t.flags){r=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var h=d.dehydrated;null!==h&&qt(h)}}}break;default:throw Error(n(163))}Xs||512&t.flags&&ol(t)}catch(f){Ec(t,t.return,f)}}if(t===e){Js=null;break}if(null!==(r=t.sibling)){r.return=t.return,Js=r;break}Js=t.return}}function kl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{il(4,t)}catch(l){Ec(t,n,l)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){Ec(t,i,l)}}var o=t.return;try{ol(t)}catch(l){Ec(t,o,l)}break;case 5:var a=t.return;try{ol(t)}catch(l){Ec(t,a,l)}}}catch(l){Ec(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Tl,El=Math.ceil,Cl=y.ReactCurrentDispatcher,Rl=y.ReactCurrentOwner,Pl=y.ReactCurrentBatchConfig,_l=0,Dl=null,Il=null,Al=0,Nl=0,Ml=Ei(0),$l=0,Ol=null,jl=0,Ll=0,Hl=0,Fl=null,Ul=null,zl=0,ql=1/0,Vl=null,Bl=!1,Wl=null,Yl=null,Gl=!1,Kl=null,Ql=0,Xl=0,Zl=null,Jl=-1,ec=0;function tc(){return 6&_l?Ze():-1!==Jl?Jl:Jl=Ze()}function nc(e){return 1&e.mode?2&_l&&0!==Al?Al&-Al:null!==vo.transition?(0===ec&&(ec=mt()),ec):0!==(e=wt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function rc(e,t,r,i){if(50<Xl)throw Xl=0,Zl=null,Error(n(185));yt(e,r,i),2&_l&&e===Dl||(e===Dl&&(!(2&_l)&&(Ll|=r),4===$l&&lc(e,Al)),ic(e,i),1===r&&0===_l&&!(1&t.mode)&&(ql=Ze()+500,Fi&&qi()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-st(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=pt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ft(e,e===Dl?Al:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Fi=!0,zi(e)}(cc.bind(null,e)):zi(cc.bind(null,e)),si(function(){!(6&_l)&&qi()}),n=null;else{switch(xt(r)){case 1:n=et;break;case 4:n=tt;break;case 16:default:n=nt;break;case 536870912:n=it}n=Dc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Jl=-1,ec=0,6&_l)throw Error(n(327));var r=e.callbackNode;if(Sc()&&e.callbackNode!==r)return null;var i=ft(e,e===Dl?Al:0);if(0===i)return null;if(30&i||0!==(i&e.expiredLanes)||t)t=vc(e,i);else{t=i;var o=_l;_l|=2;var a=gc();for(Dl===e&&Al===t||(Vl=null,ql=Ze()+500,fc(e,t));;)try{bc();break}catch(l){pc(e,l)}Po(),Cl.current=a,_l=o,null!==Il?t=0:(Dl=null,Al=0,t=$l)}if(0!==t){if(2===t&&(0!==(o=gt(e))&&(i=o,t=ac(e,o))),1===t)throw r=Ol,fc(e,0),lc(e,i),ic(e,Ze()),r;if(6===t)lc(e,i);else{if(o=e.current.alternate,!(30&i||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!lr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=vc(e,i),2===t&&(a=gt(e),0!==a&&(i=a,t=ac(e,a))),1!==t)))throw r=Ol,fc(e,0),lc(e,i),ic(e,Ze()),r;switch(e.finishedWork=o,e.finishedLanes=i,t){case 0:case 1:throw Error(n(345));case 2:case 5:kc(e,Ul,Vl);break;case 3:if(lc(e,i),(130023424&i)===i&&10<(t=zl+500-Ze())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&i)!==i){tc(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ii(kc.bind(null,e,Ul,Vl),t);break}kc(e,Ul,Vl);break;case 4:if(lc(e,i),(4194240&i)===i)break;for(t=e.eventTimes,o=-1;0<i;){var s=31-st(i);a=1<<s,(s=t[s])>o&&(o=s),i&=~a}if(i=o,10<(i=(120>(i=Ze()-i)?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*El(i/1960))-i)){e.timeoutHandle=ii(kc.bind(null,e,Ul,Vl),i);break}kc(e,Ul,Vl);break;default:throw Error(n(329))}}}return ic(e,Ze()),e.callbackNode===r?oc.bind(null,e):null}function ac(e,t){var n=Fl;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=vc(e,t))&&(t=Ul,Ul=n,null!==t&&sc(t)),e}function sc(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function lc(e,t){for(t&=~Hl,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-st(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(6&_l)throw Error(n(327));Sc();var t=ft(e,0);if(!(1&t))return ic(e,Ze()),null;var r=vc(e,t);if(0!==e.tag&&2===r){var i=gt(e);0!==i&&(t=i,r=ac(e,i))}if(1===r)throw r=Ol,fc(e,0),lc(e,t),ic(e,Ze()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,Ul,Vl),ic(e,Ze()),null}function uc(e,t){var n=_l;_l|=1;try{return e(t)}finally{0===(_l=n)&&(ql=Ze()+500,Fi&&qi())}}function dc(e){null!==Kl&&0===Kl.tag&&!(6&_l)&&Sc();var t=_l;_l|=1;var n=Pl.transition,r=wt;try{if(Pl.transition=null,wt=1,e)return e()}finally{wt=r,Pl.transition=n,!(6&(_l=t))&&qi()}}function hc(){Nl=Ml.current,Ci(Ml)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oi(n)),null!==Il)for(n=Il.return;null!==n;){var r=n;switch(no(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mi();break;case 3:Zo(),Ci(Di),Ci(_i),ia();break;case 5:ea(r);break;case 4:Zo();break;case 13:case 19:Ci(ta);break;case 10:_o(r.type._context);break;case 22:case 23:hc()}n=n.return}if(Dl=e,Il=e=Mc(e.current,null),Al=Nl=t,$l=0,Ol=null,Hl=Ll=jl=0,Ul=Fl=null,null!==No){for(t=0;t<No.length;t++)if(null!==(r=(n=No[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}No=null}return e}function pc(e,t){for(;;){var r=Il;try{if(Po(),oa.current=Ja,da){for(var i=la.memoizedState;null!==i;){var o=i.queue;null!==o&&(o.pending=null),i=i.next}da=!1}if(sa=0,ua=ca=la=null,ha=!1,fa=0,Rl.current=null,null===r||null===r.return){$l=1,Ol=t,Il=null;break}e:{var a=e,s=r.return,l=r,c=t;if(t=Al,l.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=l,h=d.tag;if(!(1&d.mode||0!==h&&11!==h&&15!==h)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=vs(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,t),1&p.mode&&ms(a,u,t),c=u;var g=(t=p).updateQueue;if(null===g){var m=new Set;m.add(c),t.updateQueue=m}else g.add(c);break e}if(!(1&t)){ms(a,u,t),mc();break e}c=Error(n(426))}else if(oo&&1&l.mode){var v=vs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),ys(v,s,l,0,t),mo(us(c,l));break e}}a=c=us(c,l),4!==$l&&($l=2),null===Fl?Fl=[a]:Fl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,qo(a,ps(0,c,t));break e;case 1:l=c;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Yl&&Yl.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,qo(a,gs(a,l,t));break e}}a=a.return}while(null!==a)}xc(r)}catch(w){t=w,Il===r&&null!==r&&(Il=r=r.return);continue}break}}function gc(){var e=Cl.current;return Cl.current=Ja,null===e?Ja:e}function mc(){0!==$l&&3!==$l&&2!==$l||($l=4),null===Dl||!(268435455&jl)&&!(268435455&Ll)||lc(Dl,Al)}function vc(e,t){var r=_l;_l|=2;var i=gc();for(Dl===e&&Al===t||(Vl=null,fc(e,t));;)try{yc();break}catch(o){pc(e,o)}if(Po(),_l=r,Cl.current=i,null!==Il)throw Error(n(261));return Dl=null,Al=0,$l}function yc(){for(;null!==Il;)wc(Il)}function bc(){for(;null!==Il&&!Qe();)wc(Il)}function wc(e){var t=Tl(e.alternate,e,Nl);e.memoizedProps=e.pendingProps,null===t?xc(e):Il=t,Rl.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Ks(n,t)))return n.flags&=32767,void(Il=n);if(null===e)return $l=6,void(Il=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Gs(n,t,Nl)))return void(Il=n);if(null!==(t=t.sibling))return void(Il=t);Il=t=e}while(null!==t);0===$l&&($l=5)}function kc(e,t,r){var i=wt,o=Pl.transition;try{Pl.transition=null,wt=1,function(e,t,r,i){do{Sc()}while(null!==Kl);if(6&_l)throw Error(n(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-st(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Dl&&(Il=Dl=null,Al=0),!(2064&r.subtreeFlags)&&!(2064&r.flags)||Gl||(Gl=!0,Dc(nt,function(){return Sc(),null})),a=!!(15990&r.flags),!!(15990&r.subtreeFlags)||a){a=Pl.transition,Pl.transition=null;var s=wt;wt=1;var l=_l;_l|=4,Rl.current=null,function(e,t){if(ti=Bt,pr(e=fr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var i=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(i&&0!==i.rangeCount){r=i.anchorNode;var o=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{r.nodeType,a.nodeType}catch(x){r=null;break e}var s=0,l=-1,c=-1,u=0,d=0,h=e,f=null;t:for(;;){for(var p;h!==r||0!==o&&3!==h.nodeType||(l=s+o),h!==a||0!==i&&3!==h.nodeType||(c=s+i),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)f=h,h=p;for(;;){if(h===e)break t;if(f===r&&++u===o&&(l=s),f===a&&++d===i&&(c=s),null!==(p=h.nextSibling))break;f=(h=f).parentNode}h=p}r=-1===l||-1===c?null:{start:l,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(ni={focusedElem:e,selectionRange:r},Bt=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var g=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==g){var m=g.memoizedProps,v=g.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:rs(t.type,m),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(n(163))}}catch(x){Ec(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}g=nl,nl=!1}(e,r),vl(r,e),gr(ni),Bt=!!ti,ni=ti=null,e.current=r,bl(r),Xe(),_l=l,wt=s,Pl.transition=a}else e.current=r;if(Gl&&(Gl=!1,Kl=e,Ql=o),a=e.pendingLanes,0===a&&(Yl=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(t){}}(r.stateNode),ic(e,Ze()),null!==t)for(i=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],i(o.value,{componentStack:o.stack,digest:o.digest});if(Bl)throw Bl=!1,e=Wl,Wl=null,e;!!(1&Ql)&&0!==e.tag&&Sc(),a=e.pendingLanes,1&a?e===Zl?Xl++:(Xl=0,Zl=e):Xl=0,qi()}(e,t,r,i)}finally{Pl.transition=o,wt=i}return null}function Sc(){if(null!==Kl){var e=xt(Ql),t=Pl.transition,r=wt;try{if(Pl.transition=null,wt=16>e?16:e,null===Kl)var i=!1;else{if(e=Kl,Kl=null,Ql=0,6&_l)throw Error(n(331));var o=_l;for(_l|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var h=d.child;if(null!==h)h.return=d,Js=h;else for(;null!==Js;){var f=(d=Js).sibling,p=d.return;if(al(d),d===u){Js=null;break}if(null!==f){f.return=p,Js=f;break}Js=p}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(2064&s.subtreeFlags&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:il(9,l)}}catch(k){Ec(l,l.return,k)}if(l===s){Js=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,Js=x;break e}Js=l.return}}if(_l=o,qi(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(k){}i=!0}return i}finally{wt=r,Pl.transition=t}}return!1}function Tc(e,t,n){e=Uo(e,t=ps(0,t=us(n,t),1),1),t=tc(),null!==e&&(yt(e,1,t),ic(e,t))}function Ec(e,t,n){if(3===e.tag)Tc(e,e,n);else for(;null!==t;){if(3===t.tag){Tc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Yl||!Yl.has(r))){t=Uo(t,e=gs(t,e=us(n,e),1),1),e=tc(),null!==t&&(yt(t,1,e),ic(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Dl===e&&(Al&n)===n&&(4===$l||3===$l&&(130023424&Al)===Al&&500>Ze()-zl?fc(e,0):Hl|=n),ic(e,t)}function Rc(e,t){0===t&&(1&e.mode?(t=dt,!(130023424&(dt<<=1))&&(dt=4194304)):t=1);var n=tc();null!==(e=Oo(e,t))&&(yt(e,t,n),ic(e,n))}function Pc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Rc(e,n)}function _c(e,t){var r=0;switch(e.tag){case 13:var i=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(n(314))}null!==i&&i.delete(t),Rc(e,r)}function Dc(e,t){return Ge(e,t)}function Ic(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ac(e,t,n,r){return new Ic(e,t,n,r)}function Nc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Ac(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $c(e,t,r,i,o,a){var s=2;if(i=e,"function"==typeof e)Nc(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case x:return Oc(r.children,o,a,t);case k:s=8,o|=8;break;case T:return(e=Ac(12,r,t,2|o)).elementType=T,e.lanes=a,e;case _:return(e=Ac(13,r,t,o)).elementType=_,e.lanes=a,e;case D:return(e=Ac(19,r,t,o)).elementType=D,e.lanes=a,e;case M:return jc(r,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case C:s=9;break e;case R:s=11;break e;case A:s=14;break e;case N:s=16,i=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Ac(s,r,t,o)).elementType=e,t.type=i,t.lanes=a,t}function Oc(e,t,n,r){return(e=Ac(7,e,r,t)).lanes=n,e}function jc(e,t,n,r){return(e=Ac(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Ac(6,e,null,t)).lanes=n,e}function Hc(e,t,n){return(t=Ac(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,i,o,a,s,l){return e=new Fc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Ac(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Lo(o),e}function zc(e){if(!e)return Pi;e:{if(qe(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ni(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Ni(r))return Oi(e,r,t)}return t}function qc(e,t,n,r,i,o,a,s,l){return(e=Uc(n,r,!0,e,0,o,0,s,l)).context=zc(null),n=e.current,(o=Fo(r=tc(),i=nc(n))).callback=null!=t?t:null,Uo(n,o,i),e.current.lanes=i,yt(e,i,r),ic(e,r),e}function Vc(e,t,n,r){var i=t.current,o=tc(),a=nc(i);return n=zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Fo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Uo(i,t,a))&&(rc(e,i,a,o),zo(e,i,a)),a}function Bc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Wc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Yc(e,t){Wc(e,t),(e=e.alternate)&&Wc(e,t)}Tl=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Di.current)ws=!0;else{if(0===(e.lanes&r)&&!(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:Ds(t),go();break;case 5:Jo(t);break;case 1:Ni(t.type)&&ji(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ri(To,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ri(ta,1&ta.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(Ri(ta,1&ta.current),null!==(e=Bs(e,t,n))?e.sibling:null);Ri(ta,1&ta.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return qs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ri(ta,ta.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Bs(e,t,n)}(e,t,r);ws=!!(131072&e.flags)}else ws=!1,oo&&1048576&t.flags&&eo(t,Yi,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Vs(e,t),e=t.pendingProps;var o=Ai(t,_i.current);Io(t,r),o=va(null,t,i,e,o,r);var a=ya();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ni(i)?(a=!0,ji(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Lo(t),o.updater=os,t.stateNode=o,o._reactInternals=t,cs(t,i,e,r),t=_s(null,t,i,!0,a,r)):(t.tag=0,oo&&a&&to(t),xs(null,t,o,r),t=t.child),t;case 16:i=t.elementType;e:{switch(Vs(e,t),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"==typeof e)return Nc(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===A)return 14}return 2}(i),e=rs(i,e),o){case 0:t=Rs(null,t,i,e,r);break e;case 1:t=Ps(null,t,i,e,r);break e;case 11:t=ks(null,t,i,e,r);break e;case 14:t=Ss(null,t,i,rs(i.type,e),r);break e}throw Error(n(306,i,""))}return t;case 0:return i=t.type,o=t.pendingProps,Rs(e,t,i,o=t.elementType===i?o:rs(i,o),r);case 1:return i=t.type,o=t.pendingProps,Ps(e,t,i,o=t.elementType===i?o:rs(i,o),r);case 3:e:{if(Ds(t),null===e)throw Error(n(387));i=t.pendingProps,o=(a=t.memoizedState).element,Ho(e,t),Vo(t,i,null,r);var s=t.memoizedState;if(i=s.element,a.isDehydrated){if(a={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Is(e,t,i,r,o=us(Error(n(423)),t));break e}if(i!==o){t=Is(e,t,i,r,o=us(Error(n(424)),t));break e}for(io=ui(t.stateNode.containerInfo.firstChild),ro=t,oo=!0,ao=null,r=So(t,null,i,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(go(),i===o){t=Bs(e,t,r);break e}xs(e,t,i,r)}t=t.child}return t;case 5:return Jo(t),null===e&&uo(t),i=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,ri(i,o)?s=null:null!==a&&ri(i,a)&&(t.flags|=32),Cs(e,t),xs(e,t,s,r),t.child;case 6:return null===e&&uo(t),null;case 13:return Ls(e,t,r);case 4:return Xo(t,t.stateNode.containerInfo),i=t.pendingProps,null===e?t.child=ko(t,null,i,r):xs(e,t,i,r),t.child;case 11:return i=t.type,o=t.pendingProps,ks(e,t,i,o=t.elementType===i?o:rs(i,o),r);case 7:return xs(e,t,t.pendingProps,r),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(i=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Ri(To,i._currentValue),i._currentValue=s,null!==a)if(lr(a.value,s)){if(a.children===o.children&&!Di.current){t=Bs(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var c=l.firstContext;null!==c;){if(c.context===i){if(1===a.tag){(c=Fo(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}a.lanes|=r,null!==(c=a.alternate)&&(c.lanes|=r),Do(a.return,r,t),l.lanes|=r;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(n(341));s.lanes|=r,null!==(l=s.alternate)&&(l.lanes|=r),Do(s,r,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps.children,Io(t,r),i=i(o=Ao(o)),t.flags|=1,xs(e,t,i,r),t.child;case 14:return o=rs(i=t.type,t.pendingProps),Ss(e,t,i,o=rs(i.type,o),r);case 15:return Ts(e,t,t.type,t.pendingProps,r);case 17:return i=t.type,o=t.pendingProps,o=t.elementType===i?o:rs(i,o),Vs(e,t),t.tag=1,Ni(i)?(e=!0,ji(t)):e=!1,Io(t,r),ss(t,i,o),cs(t,i,o,r),_s(null,t,i,!0,e,r);case 19:return qs(e,t,r);case 22:return Es(e,t,r)}throw Error(n(156,t.tag))};var Gc="function"==typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Qc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function eu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"==typeof i){var s=i;i=function(){var e=Bc(a);s.call(e)}}Vc(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=Bc(a);o.call(e)}}var a=qc(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=a,e[gi]=a.current,qr(8===e.nodeType?e.parentNode:e),dc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof r){var s=r;r=function(){var e=Bc(l);s.call(e)}}var l=Uc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[gi]=l.current,qr(8===e.nodeType?e.parentNode:e),dc(function(){Vc(t,l,n,r)}),l}(n,t,e,i,r);return Bc(a)}Qc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Vc(e,t,null,null)},Qc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc(function(){Vc(null,e,null,null)}),t[gi]=null}},Qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Lt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ht(t.pendingLanes);0!==n&&(bt(t,1|n),ic(t,Ze()),!(6&_l)&&(ql=Ze()+500,qi()))}break;case 13:dc(function(){var t=Oo(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}}),Yc(e,1)}},St=function(e){if(13===e.tag){var t=Oo(e,134217728);if(null!==t)rc(t,e,134217728,tc());Yc(e,134217728)}},Tt=function(e){if(13===e.tag){var t=nc(e),n=Oo(e,t);if(null!==n)rc(n,e,t,tc());Yc(e,t)}},Et=function(){return wt},Ct=function(e,t){var n=wt;try{return wt=e,t()}finally{wt=n}},Se=function(e,t,r){switch(t){case"input":if(J(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var i=r[t];if(i!==e&&i.form===e.form){var o=ki(i);if(!o)throw Error(n(90));G(i),J(i,o)}}}break;case"textarea":ae(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},_e=uc,De=dc;var tu={usingClientEntryPoint:!1,Events:[wi,xi,ki,Re,Pe,uc]},nu={findFiberByHostInstance:bi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{ot=iu.inject(ru),at=iu}catch(de){}}return S.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,S.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},S.createRoot=function(e,t){if(!Xc(e))throw Error(n(299));var r=!1,i="",o=Gc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(i=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Uc(e,1,!1,null,0,r,0,i,o),e[gi]=t.current,qr(8===e.nodeType?e.parentNode:e),new Kc(t)},S.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=We(t))?null:e.stateNode},S.flushSync=function(e){return dc(e)},S.hydrate=function(e,t,r){if(!Zc(t))throw Error(n(200));return eu(null,e,t,!0,r)},S.hydrateRoot=function(e,t,r){if(!Xc(e))throw Error(n(405));var i=null!=r&&r.hydratedSources||null,o=!1,a="",s=Gc;if(null!=r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(s=r.onRecoverableError)),t=qc(t,null,e,1,null!=r?r:null,o,0,a,s),e[gi]=t.current,qr(e),i)for(e=0;e<i.length;e++)o=(o=(r=i[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Qc(t)},S.render=function(e,t,r){if(!Zc(t))throw Error(n(200));return eu(null,e,t,!1,r)},S.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(n(40));return!!e._reactRootContainer&&(dc(function(){eu(null,null,e,!1,function(){e._reactRootContainer=null,e[gi]=null})}),!0)},S.unstable_batchedUpdates=uc,S.unstable_renderSubtreeIntoContainer=function(e,t,r,i){if(!Zc(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return eu(e,t,r,!1,i)},S.version="18.3.1-next-f1338f8080-20240426",S}var N,M,$,O={};function j(){if(N)return O;N=1;
|
||
/**
|
||
* @license React
|
||
* react-dom.development.js
|
||
*
|
||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/
|
||
return"production"!=={}.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=h(),t=I(),n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=!1;function i(e){if(!r){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];a("warn",e,n)}}function o(e){if(!r){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];a("error",e,n)}}function a(e,t,r){var i=n.ReactDebugCurrentFrame.getStackAddendum();""!==i&&(t+="%s",r=r.concat([i]));var o=r.map(function(e){return String(e)});o.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,o)}var s=10,l=11,c=12,u=13,d=14,f=15,p=17,g=18,m=19,v=21,y=22,b=23,w=!1,x=!1,k=new Set,S={},T={};function E(e,t){C(e,t),C(e+"Capture",t)}function C(e,t){S[e]&&o("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),S[e]=t;var n=e.toLowerCase();T[n]=e,"onDoubleClick"===e&&(T.ondblclick=e);for(var r=0;r<t.length;r++)k.add(t[r])}var R=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),P=Object.prototype.hasOwnProperty;function _(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function D(e){try{return A(e),!1}catch(t){return!0}}function A(e){return""+e}function N(e,t){if(D(e))return o("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,_(e)),A(e)}function M(e){if(D(e))return o("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.",_(e)),A(e)}var $=":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",j=$+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",L=new RegExp("^["+$+"]["+j+"]*$"),H={},F={};function U(e){return!!P.call(F,e)||!P.call(H,e)&&(L.test(e)?(F[e]=!0,!0):(H[e]=!0,o("Invalid attribute name: `%s`",e),!1))}function z(e,t,n){return null!==t?0===t.type:!n&&(e.length>2&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1]))}function q(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(r)return!1;if(null!==n)return!n.acceptsBooleans;var i=e.toLowerCase().slice(0,5);return"data-"!==i&&"aria-"!==i;default:return!1}}function V(e,t,n,r){if(null==t)return!0;if(q(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||t<1}return!1}function B(e){return Y.hasOwnProperty(e)?Y[e]:null}function W(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var Y={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(function(e){Y[e]=new W(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],n=e[1];Y[t]=new W(t,1,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Y[e]=new W(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Y[e]=new W(e,2,!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){Y[e]=new W(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Y[e]=new W(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Y[e]=new W(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Y[e]=new W(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Y[e]=new W(e,5,!1,e.toLowerCase(),null,!1,!1)});var G=/[\-\:]([a-z])/g,K=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(G,K);Y[t]=new W(t,1,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(G,K);Y[t]=new W(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(G,K);Y[t]=new W(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Y[e]=new W(e,1,!1,e.toLowerCase(),null,!1,!1)});Y.xlinkHref=new W("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Y[e]=new W(e,1,!1,e.toLowerCase(),null,!0,!0)});var Q=/^[\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,X=!1;function Z(e){!X&&Q.test(e)&&(X=!0,o("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 J(e,t,n,r){if(r.mustUseProperty)return e[r.propertyName];N(n,t),r.sanitizeURL&&Z(""+n);var i=r.attributeName,o=null;if(4===r.type){if(e.hasAttribute(i)){var a=e.getAttribute(i);return""===a||(V(t,n,r,!1)?a:a===""+n?n:a)}}else if(e.hasAttribute(i)){if(V(t,n,r,!1))return e.getAttribute(i);if(3===r.type)return n;o=e.getAttribute(i)}return V(t,n,r,!1)?null===o?n:o:o===""+n?n:o}function ee(e,t,n,r){if(U(t)){if(!e.hasAttribute(t))return void 0===n?void 0:null;var i=e.getAttribute(t);return N(n,t),i===""+n?n:i}}function te(e,t,n,r){var i=B(t);if(!z(t,i,r))if(V(t,n,i,r)&&(n=null),r||null===i){if(U(t)){var o=t;null===n?e.removeAttribute(o):(N(n,t),e.setAttribute(o,""+n))}}else if(i.mustUseProperty){var a=i.propertyName;if(null===n){var s=i.type;e[a]=3!==s&&""}else e[a]=n}else{var l=i.attributeName,c=i.attributeNamespace;if(null===n)e.removeAttribute(l);else{var u,d=i.type;3===d||4===d&&!0===n?u="":(N(n,l),u=""+n,i.sanitizeURL&&Z(u.toString())),c?e.setAttributeNS(c,l,u):e.setAttribute(l,u)}}}var ne=Symbol.for("react.element"),re=Symbol.for("react.portal"),ie=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),ae=Symbol.for("react.profiler"),se=Symbol.for("react.provider"),le=Symbol.for("react.context"),ce=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),de=Symbol.for("react.suspense_list"),he=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),pe=(Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode"),Symbol.for("react.offscreen")),ge=(Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker"),Symbol.iterator);function me(e){if(null===e||"object"!=typeof e)return null;var t=ge&&e[ge]||e["@@iterator"];return"function"==typeof t?t:null}var ve,ye,be,we,xe,ke,Se,Te=Object.assign,Ee=0;function Ce(){}Ce.__reactDisabledLog=!0;var Re,Pe=n.ReactCurrentDispatcher;function _e(e,t,n){if(void 0===Re)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);Re=r&&r[1]||""}return"\n"+Re+e}var De,Ie=!1,Ae="function"==typeof WeakMap?WeakMap:Map;function Ne(e,t){if(!e||Ie)return"";var n,r=De.get(e);if(void 0!==r)return r;Ie=!0;var i,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,i=Pe.current,Pe.current=null,function(){if(0===Ee){ve=console.log,ye=console.info,be=console.warn,we=console.error,xe=console.group,ke=console.groupCollapsed,Se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Ee++}();try{if(t){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(s,[])}catch(g){n=g}Reflect.construct(e,[],s)}else{try{s.call()}catch(g){n=g}e.call(s.prototype)}}else{try{throw Error()}catch(g){n=g}e()}}catch(m){if(m&&n&&"string"==typeof m.stack){for(var l=m.stack.split("\n"),c=n.stack.split("\n"),u=l.length-1,d=c.length-1;u>=1&&d>=0&&l[u]!==c[d];)d--;for(;u>=1&&d>=0;u--,d--)if(l[u]!==c[d]){if(1!==u||1!==d)do{if(u--,--d<0||l[u]!==c[d]){var h="\n"+l[u].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),"function"==typeof e&&De.set(e,h),h}}while(u>=1&&d>=0);break}}}finally{Ie=!1,Pe.current=i,function(){if(0===--Ee){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Te({},e,{value:ve}),info:Te({},e,{value:ye}),warn:Te({},e,{value:be}),error:Te({},e,{value:we}),group:Te({},e,{value:xe}),groupCollapsed:Te({},e,{value:ke}),groupEnd:Te({},e,{value:Se})})}Ee<0&&o("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var f=e?e.displayName||e.name:"",p=f?_e(f):"";return"function"==typeof e&&De.set(e,p),p}function Me(e,t,n){return Ne(e,!1)}function $e(e,t,n){if(null==e)return"";if("function"==typeof e)return Ne(e,!(!(r=e.prototype)||!r.isReactComponent));var r;if("string"==typeof e)return _e(e);switch(e){case ue:return _e("Suspense");case de:return _e("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case ce:return Me(e.render);case he:return $e(e.type,t,n);case fe:var i=e,o=i._payload,a=i._init;try{return $e(a(o),t,n)}catch(s){}}return""}function Oe(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case 5:return _e(e.type);case 16:return _e("Lazy");case u:return _e("Suspense");case m:return _e("SuspenseList");case 0:case 2:case f:return Me(e.type);case l:return Me(e.type.render);case 1:return Ne(e.type,!0);default:return""}}function je(e){try{var t="",n=e;do{t+=Oe(n),n=n.return}while(n);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}function Le(e){return e.displayName||"Context"}function He(e){if(null==e)return null;if("number"==typeof e.tag&&o("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case ie:return"Fragment";case re:return"Portal";case ae:return"Profiler";case oe:return"StrictMode";case ue:return"Suspense";case de:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case le:return Le(e)+".Consumer";case se:return Le(e._context)+".Provider";case ce:return function(e,t,n){var r=e.displayName;if(r)return r;var i=t.displayName||t.name||"";return""!==i?n+"("+i+")":n}(e,e.render,"ForwardRef");case he:var t=e.displayName||null;return null!==t?t:He(e.type)||"Memo";case fe:var n=e,r=n._payload,i=n._init;try{return He(i(r))}catch(a){return null}}return null}function Fe(e){return e.displayName||"Context"}function Ue(e){var t,n,r,i,o=e.tag,a=e.type;switch(o){case 24:return"Cache";case 9:return Fe(a)+".Consumer";case s:return Fe(a._context)+".Provider";case 18:return"DehydratedFragment";case l:return t=a,n=a.render,r="ForwardRef",i=n.displayName||n.name||"",t.displayName||(""!==i?r+"("+i+")":r);case 7:return"Fragment";case 5:return a;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return He(a);case 8:return a===oe?"StrictMode":"Mode";case y:return"Offscreen";case c:return"Profiler";case v:return"Scope";case u:return"Suspense";case m:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case p:case 2:case d:case f:if("function"==typeof a)return a.displayName||a.name||null;if("string"==typeof a)return a}return null}De=new Ae;var ze=n.ReactDebugCurrentFrame,qe=null,Ve=!1;function Be(){if(null===qe)return null;var e=qe._debugOwner;return null!=e?Ue(e):null}function We(){return null===qe?"":je(qe)}function Ye(){ze.getCurrentStack=null,qe=null,Ve=!1}function Ge(e){ze.getCurrentStack=null===e?null:We,qe=e,Ve=!1}function Ke(e){Ve=e}function Qe(e){return""+e}function Xe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return M(e),e;default:return""}}var Ze={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function Je(e,t){Ze[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||null==t.value||o("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||null==t.checked||o("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 et(e){var t=e.type,n=e.nodeName;return n&&"input"===n.toLowerCase()&&("checkbox"===t||"radio"===t)}function tt(e){return e._valueTracker}function nt(e){tt(e)||(e._valueTracker=function(e){var t=et(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);M(e[t]);var r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){M(e),r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var a={getValue:function(){return r},setValue:function(e){M(e),r=""+e},stopTracking:function(){!function(e){e._valueTracker=null}(e),delete e[t]}};return a}}(e))}function rt(e){if(!e)return!1;var t=tt(e);if(!t)return!0;var n=t.getValue(),r=function(e){var t="";return e?t=et(e)?e.checked?"true":"false":e.value:t}(e);return r!==n&&(t.setValue(r),!0)}function it(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var ot=!1,at=!1,st=!1,lt=!1;function ct(e){return"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}function ut(e,t){var n=e,r=t.checked;return Te({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:n._wrapperState.initialChecked})}function dt(e,t){Je(0,t),void 0===t.checked||void 0===t.defaultChecked||at||(o("%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",Be()||"A component",t.type),at=!0),void 0===t.value||void 0===t.defaultValue||ot||(o("%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",Be()||"A component",t.type),ot=!0);var n=e,r=null==t.defaultValue?"":t.defaultValue;n._wrapperState={initialChecked:null!=t.checked?t.checked:t.defaultChecked,initialValue:Xe(null!=t.value?t.value:r),controlled:ct(t)}}function ht(e,t){var n=e,r=t.checked;null!=r&&te(n,"checked",r,!1)}function ft(e,t){var n=e,r=ct(t);n._wrapperState.controlled||!r||lt||(o("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"),lt=!0),!n._wrapperState.controlled||r||st||(o("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"),st=!0),ht(e,t);var i=Xe(t.value),a=t.type;if(null!=i)"number"===a?(0===i&&""===n.value||n.value!=i)&&(n.value=Qe(i)):n.value!==Qe(i)&&(n.value=Qe(i));else if("submit"===a||"reset"===a)return void n.removeAttribute("value");t.hasOwnProperty("value")?mt(n,t.type,i):t.hasOwnProperty("defaultValue")&&mt(n,t.type,Xe(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(n.defaultChecked=!!t.defaultChecked)}function pt(e,t,n){var r=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(("submit"===i||"reset"===i)&&(void 0===t.value||null===t.value))return;var o=Qe(r._wrapperState.initialValue);n||o!==r.value&&(r.value=o),r.defaultValue=o}var a=r.name;""!==a&&(r.name=""),r.defaultChecked=!r.defaultChecked,r.defaultChecked=!!r._wrapperState.initialChecked,""!==a&&(r.name=a)}function gt(e,t){var n=e;ft(n,t),function(e,t){var n=t.name;if("radio"===t.type&&null!=n){for(var r=e;r.parentNode;)r=r.parentNode;N(n,"name");for(var i=r.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),o=0;o<i.length;o++){var a=i[o];if(a!==e&&a.form===e.form){var s=eu(a);if(!s)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");rt(a),ft(a,s)}}}}(n,t)}function mt(e,t,n){"number"===t&&it(e.ownerDocument)===e||(null==n?e.defaultValue=Qe(e._wrapperState.initialValue):e.defaultValue!==Qe(n)&&(e.defaultValue=Qe(n)))}var vt=!1,yt=!1,bt=!1;function wt(t,n){null==n.value&&("object"==typeof n.children&&null!==n.children?e.Children.forEach(n.children,function(e){null!=e&&"string"!=typeof e&&"number"!=typeof e&&(yt||(yt=!0,o("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):null!=n.dangerouslySetInnerHTML&&(bt||(bt=!0,o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),null==n.selected||vt||(o("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),vt=!0)}var xt,kt=Array.isArray;function St(e){return kt(e)}function Tt(){var e=Be();return e?"\n\nCheck the render method of `"+e+"`.":""}xt=!1;var Et=["value","defaultValue"];function Ct(e,t,n,r){var i=e.options;if(t){for(var o=n,a={},s=0;s<o.length;s++)a["$"+o[s]]=!0;for(var l=0;l<i.length;l++){var c=a.hasOwnProperty("$"+i[l].value);i[l].selected!==c&&(i[l].selected=c),c&&r&&(i[l].defaultSelected=!0)}}else{for(var u=Qe(Xe(n)),d=null,h=0;h<i.length;h++){if(i[h].value===u)return i[h].selected=!0,void(r&&(i[h].defaultSelected=!0));null!==d||i[h].disabled||(d=i[h])}null!==d&&(d.selected=!0)}}function Rt(e,t){return Te({},t,{value:void 0})}function Pt(e,t){var n=e;!function(e){Je(0,e);for(var t=0;t<Et.length;t++){var n=Et[t];if(null!=e[n]){var r=St(e[n]);e.multiple&&!r?o("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,Tt()):!e.multiple&&r&&o("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,Tt())}}}(t),n._wrapperState={wasMultiple:!!t.multiple},void 0===t.value||void 0===t.defaultValue||xt||(o("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"),xt=!0)}var _t=!1;function Dt(e,t){var n=e;if(null!=t.dangerouslySetInnerHTML)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");return Te({},t,{value:void 0,defaultValue:void 0,children:Qe(n._wrapperState.initialValue)})}function It(e,t){var n=e;Je(0,t),void 0===t.value||void 0===t.defaultValue||_t||(o("%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",Be()||"A component"),_t=!0);var r=t.value;if(null==r){var i=t.children,a=t.defaultValue;if(null!=i){if(o("Use the `defaultValue` or `value` props instead of setting children on <textarea>."),null!=a)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(St(i)){if(i.length>1)throw new Error("<textarea> can only have at most one child.");i=i[0]}a=i}null==a&&(a=""),r=a}n._wrapperState={initialValue:Xe(r)}}function At(e,t){var n=e,r=Xe(t.value),i=Xe(t.defaultValue);if(null!=r){var o=Qe(r);o!==n.value&&(n.value=o),null==t.defaultValue&&n.defaultValue!==o&&(n.defaultValue=o)}null!=i&&(n.defaultValue=Qe(i))}function Nt(e,t){var n=e,r=n.textContent;r===n._wrapperState.initialValue&&""!==r&&null!==r&&(n.value=r)}var Mt="http://www.w3.org/1999/xhtml",$t="http://www.w3.org/2000/svg";function Ot(e){switch(e){case"svg":return $t;case"math":return"http://www.w3.org/1998/Math/MathML";default:return Mt}}function jt(e,t){return null==e||e===Mt?Ot(t):e===$t&&"foreignObject"===t?Mt:e}var Lt,Ht,Ft=(Ht=function(e,t){if(e.namespaceURI!==$t||"innerHTML"in e)e.innerHTML=t;else{(Lt=Lt||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Lt.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Ht(e,t,n,r)})}:Ht),Ut=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t},zt={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"]},qt={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};var Vt=["Webkit","ms","Moz","O"];function Bt(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||qt.hasOwnProperty(e)&&qt[e]?(function(e,t){if(D(e))o("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,_(e)),A(e)}(t,e),(""+t).trim()):t+"px"}Object.keys(qt).forEach(function(e){Vt.forEach(function(t){qt[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=qt[e]})});var Wt=/([A-Z])/g,Yt=/^ms-/;function Gt(e){return e.replace(Wt,"-$1").toLowerCase().replace(Yt,"-ms-")}var Kt=/^(?:webkit|moz|o)[A-Z]/,Qt=/^-ms-/,Xt=/-(.)/g,Zt=/;\s*$/,Jt={},en={},tn=!1,nn=!1,rn=function(e){Jt.hasOwnProperty(e)&&Jt[e]||(Jt[e]=!0,o("Unsupported style property %s. Did you mean %s?",e,e.replace(Qt,"ms-").replace(Xt,function(e,t){return t.toUpperCase()})))},on=function(e,t){e.indexOf("-")>-1?rn(e):Kt.test(e)?function(e){Jt.hasOwnProperty(e)&&Jt[e]||(Jt[e]=!0,o("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))}(e):Zt.test(t)&&function(e,t){en.hasOwnProperty(t)&&en[t]||(en[t]=!0,o('Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,t.replace(Zt,"")))}(e,t),"number"==typeof t&&(isNaN(t)?function(e){tn||(tn=!0,o("`NaN` is an invalid value for the `%s` css style property.",e))}(e):isFinite(t)||function(e){nn||(nn=!0,o("`Infinity` is an invalid value for the `%s` css style property.",e))}(e))};function an(e){var t="",n="";for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(null!=i){var o=0===r.indexOf("--");t+=n+(o?r:Gt(r))+":",t+=Bt(r,i,o),n=";"}}return t||null}function sn(e,t){var n=e.style;for(var r in t)if(t.hasOwnProperty(r)){var i=0===r.indexOf("--");i||on(r,t[r]);var o=Bt(r,t[r],i);"float"===r&&(r="cssFloat"),i?n.setProperty(r,o):n[r]=o}}function ln(e){return null==e||"boolean"==typeof e||""===e}function cn(e){var t={};for(var n in e)for(var r=zt[n]||[n],i=0;i<r.length;i++)t[r[i]]=n;return t}var un=Te({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 dn(e,t){if(t){if(un[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"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&&null!=t.children&&o("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."),null!=t.style&&"object"!=typeof t.style)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 hn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 fn={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"},pn={"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},gn={},mn=new RegExp("^(aria)-["+j+"]*$"),vn=new RegExp("^(aria)[A-Z]["+j+"]*$");function yn(e,t){if(P.call(gn,t)&&gn[t])return!0;if(vn.test(t)){var n="aria-"+t.slice(4).toLowerCase(),r=pn.hasOwnProperty(n)?n:null;if(null==r)return o("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),gn[t]=!0,!0;if(t!==r)return o("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,r),gn[t]=!0,!0}if(mn.test(t)){var i=t.toLowerCase(),a=pn.hasOwnProperty(i)?i:null;if(null==a)return gn[t]=!0,!1;if(t!==a)return o("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,a),gn[t]=!0,!0}return!0}function bn(e,t){hn(e,t)||function(e,t){var n=[];for(var r in t)yn(0,r)||n.push(r);var i=n.map(function(e){return"`"+e+"`"}).join(", ");1===n.length?o("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&o("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}(e,t)}var wn=!1;var xn,kn={},Sn=/^on./,Tn=/^on[^A-Z]/,En=new RegExp("^(aria)-["+j+"]*$"),Cn=new RegExp("^(aria)[A-Z]["+j+"]*$");xn=function(e,t,n,r){if(P.call(kn,t)&&kn[t])return!0;var i=t.toLowerCase();if("onfocusin"===i||"onfocusout"===i)return o("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."),kn[t]=!0,!0;if(null!=r){var a=r.registrationNameDependencies,s=r.possibleRegistrationNames;if(a.hasOwnProperty(t))return!0;var l=s.hasOwnProperty(i)?s[i]:null;if(null!=l)return o("Invalid event handler property `%s`. Did you mean `%s`?",t,l),kn[t]=!0,!0;if(Sn.test(t))return o("Unknown event handler property `%s`. It will be ignored.",t),kn[t]=!0,!0}else if(Sn.test(t))return Tn.test(t)&&o("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),kn[t]=!0,!0;if(En.test(t)||Cn.test(t))return!0;if("innerhtml"===i)return o("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),kn[t]=!0,!0;if("aria"===i)return o("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),kn[t]=!0,!0;if("is"===i&&null!=n&&"string"!=typeof n)return o("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),kn[t]=!0,!0;if("number"==typeof n&&isNaN(n))return o("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),kn[t]=!0,!0;var c=B(t),u=null!==c&&0===c.type;if(fn.hasOwnProperty(i)){var d=fn[i];if(d!==t)return o("Invalid DOM property `%s`. Did you mean `%s`?",t,d),kn[t]=!0,!0}else if(!u&&t!==i)return o("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,i),kn[t]=!0,!0;return"boolean"==typeof n&&q(t,n,c,!1)?(n?o('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,t,t,n,t):o('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.',n,t,t,n,t,t,t),kn[t]=!0,!0):!!u||(q(t,n,c,!1)?(kn[t]=!0,!1):("false"!==n&&"true"!==n||null===c||3!==c.type||(o("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,"false"===n?"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,n),kn[t]=!0),!0))};function Rn(e,t,n){hn(e,t)||function(e,t,n){var r=[];for(var i in t)xn(0,i,t[i],n)||r.push(i);var a=r.map(function(e){return"`"+e+"`"}).join(", ");1===r.length?o("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 ",a,e):r.length>1&&o("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 ",a,e)}(e,t,n)}var Pn=null;function _n(e){null!==Pn&&o("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Pn=e}function Dn(){null===Pn&&o("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Pn=null}function In(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}var An=null,Nn=null,Mn=null;function $n(e){var t=Zc(e);if(t){if("function"!=typeof An)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 n=t.stateNode;if(n){var r=eu(n);An(t.stateNode,t.type,r)}}}function On(e){Nn?Mn?Mn.push(e):Mn=[e]:Nn=e}function jn(){if(Nn){var e=Nn,t=Mn;if(Nn=null,Mn=null,$n(e),t)for(var n=0;n<t.length;n++)$n(t[n])}}var Ln=function(e,t){return e(t)},Hn=function(){},Fn=!1;function Un(){(null!==Nn||null!==Mn)&&(Hn(),jn())}function zn(e,t,n){if(Fn)return e(t,n);Fn=!0;try{return Ln(e,t,n)}finally{Fn=!1,Un()}}function qn(e,t){var n=e.stateNode;if(null===n)return null;var r=eu(n);if(null===r)return null;var i=r[t];if(function(e,t,n){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!(!n.disabled||(r=t,"button"!==r&&"input"!==r&&"select"!==r&&"textarea"!==r));default:return!1}var r}(t,e.type,r))return null;if(i&&"function"!=typeof i)throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof i+"` type.");return i}var Vn=!1;if(R)try{var Bn={};Object.defineProperty(Bn,"passive",{get:function(){Vn=!0}}),window.addEventListener("test",Bn,Bn),window.removeEventListener("test",Bn,Bn)}catch(ax){Vn=!1}function Wn(e,t,n,r,i,o,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Yn=Wn;if("undefined"!=typeof window&&"function"==typeof window.dispatchEvent&&"undefined"!=typeof document&&"function"==typeof document.createEvent){var Gn=document.createElement("react");Yn=function(e,t,n,r,i,o,a,s,l){if("undefined"==typeof document||null===document)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 c=document.createEvent("Event"),u=!1,d=!0,h=window.event,f=Object.getOwnPropertyDescriptor(window,"event");function p(){Gn.removeEventListener(x,v,!1),void 0!==window.event&&window.hasOwnProperty("event")&&(window.event=h)}var g,m=Array.prototype.slice.call(arguments,3);function v(){u=!0,p(),t.apply(n,m),d=!1}var y=!1,b=!1;function w(e){if(g=e.error,y=!0,null===g&&0===e.colno&&0===e.lineno&&(b=!0),e.defaultPrevented&&null!=g&&"object"==typeof g)try{g._suppressLogging=!0}catch(t){}}var x="react-"+(e||"invokeguardedcallback");if(window.addEventListener("error",w),Gn.addEventListener(x,v,!1),c.initEvent(x,!1,!1),Gn.dispatchEvent(c),f&&Object.defineProperty(window,"event",f),u&&d&&(y?b&&(g=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.")):g=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(g)),window.removeEventListener("error",w),!u)return p(),Wn.apply(this,arguments)}}var Kn=Yn,Qn=!1,Xn=null,Zn=!1,Jn=null,er={onError:function(e){Qn=!0,Xn=e}};function tr(e,t,n,r,i,o,a,s,l){Qn=!1,Xn=null,Kn.apply(er,arguments)}function nr(){if(Qn){var e=Xn;return Qn=!1,Xn=null,e}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 rr(e){return e._reactInternals}var ir=16,or=128,ar=256,sr=512,lr=1024,cr=2048,ur=4096,dr=8192,hr=16384,fr=32768,pr=65536,gr=131072,mr=1048576,vr=2097152,yr=4194304,br=16777216,wr=33554432,xr=1028,kr=12854,Sr=8772,Tr=2064,Er=14680064,Cr=n.ReactCurrentOwner;function Rr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var r=t;do{4098&(t=r).flags&&(n=t.return),r=t.return}while(r)}return 3===t.tag?n:null}function Pr(e){if(e.tag===u){var t=e.memoizedState;if(null===t){var n=e.alternate;null!==n&&(t=n.memoizedState)}if(null!==t)return t.dehydrated}return null}function _r(e){return 3===e.tag?e.stateNode.containerInfo:null}function Dr(e){if(Rr(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function Ir(e){var t=e.alternate;if(!t){var n=Rr(e);if(null===n)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var r=e,i=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){var s=o.return;if(null!==s){r=i=s;continue}break}if(o.child===a.child){for(var l=o.child;l;){if(l===r)return Dr(o),e;if(l===i)return Dr(o),t;l=l.sibling}throw new Error("Unable to find node on an unmounted component.")}if(r.return!==i.return)r=o,i=a;else{for(var c=!1,u=o.child;u;){if(u===r){c=!0,r=o,i=a;break}if(u===i){c=!0,i=o,r=a;break}u=u.sibling}if(!c){for(u=a.child;u;){if(u===r){c=!0,r=a,i=o;break}if(u===i){c=!0,i=a,r=o;break}u=u.sibling}if(!c)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(r.alternate!==i)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(3!==r.tag)throw new Error("Unable to find node on an unmounted component.");return r.stateNode.current===r?e:t}function Ar(e){var t=Ir(e);return null!==t?Nr(t):null}function Nr(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){var n=Nr(t);if(null!==n)return n;t=t.sibling}return null}function Mr(e){var t=Ir(e);return null!==t?$r(t):null}function $r(e){if(5===e.tag||6===e.tag)return e;for(var t=e.child;null!==t;){if(4!==t.tag){var n=$r(t);if(null!==n)return n}t=t.sibling}return null}var Or=t.unstable_scheduleCallback,jr=t.unstable_cancelCallback,Lr=t.unstable_shouldYield,Hr=t.unstable_requestPaint,Fr=t.unstable_now,Ur=t.unstable_getCurrentPriorityLevel,zr=t.unstable_ImmediatePriority,qr=t.unstable_UserBlockingPriority,Vr=t.unstable_NormalPriority,Br=t.unstable_LowPriority,Wr=t.unstable_IdlePriority,Yr=t.unstable_yieldValue,Gr=t.unstable_setDisableYieldValue,Kr=null,Qr=null,Xr=null,Zr=!1,Jr="undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__;function ei(e){if("function"==typeof Yr&&(Gr(e),r=e),Qr&&"function"==typeof Qr.setStrictMode)try{Qr.setStrictMode(Kr,e)}catch(t){Zr||(Zr=!0,o("React instrumentation encountered an error: %s",t))}}function ti(e){Xr=e}function ni(){for(var e=new Map,t=1,n=0;n<Si;n++){var r=to(t);e.set(t,r),t*=2}return e}function ri(){null!==Xr&&"function"==typeof Xr.markCommitStopped&&Xr.markCommitStopped()}function ii(e){null!==Xr&&"function"==typeof Xr.markComponentRenderStarted&&Xr.markComponentRenderStarted(e)}function oi(){null!==Xr&&"function"==typeof Xr.markComponentRenderStopped&&Xr.markComponentRenderStopped()}function ai(e){null!==Xr&&"function"==typeof Xr.markComponentPassiveEffectMountStarted&&Xr.markComponentPassiveEffectMountStarted(e)}function si(){null!==Xr&&"function"==typeof Xr.markComponentPassiveEffectMountStopped&&Xr.markComponentPassiveEffectMountStopped()}function li(e){null!==Xr&&"function"==typeof Xr.markComponentPassiveEffectUnmountStarted&&Xr.markComponentPassiveEffectUnmountStarted(e)}function ci(){null!==Xr&&"function"==typeof Xr.markComponentPassiveEffectUnmountStopped&&Xr.markComponentPassiveEffectUnmountStopped()}function ui(e){null!==Xr&&"function"==typeof Xr.markComponentLayoutEffectMountStarted&&Xr.markComponentLayoutEffectMountStarted(e)}function di(){null!==Xr&&"function"==typeof Xr.markComponentLayoutEffectMountStopped&&Xr.markComponentLayoutEffectMountStopped()}function hi(e){null!==Xr&&"function"==typeof Xr.markComponentLayoutEffectUnmountStarted&&Xr.markComponentLayoutEffectUnmountStarted(e)}function fi(){null!==Xr&&"function"==typeof Xr.markComponentLayoutEffectUnmountStopped&&Xr.markComponentLayoutEffectUnmountStopped()}function pi(e,t,n){null!==Xr&&"function"==typeof Xr.markComponentErrored&&Xr.markComponentErrored(e,t,n)}function gi(e,t,n){null!==Xr&&"function"==typeof Xr.markComponentSuspended&&Xr.markComponentSuspended(e,t,n)}function mi(e){null!==Xr&&"function"==typeof Xr.markRenderStarted&&Xr.markRenderStarted(e)}function vi(){null!==Xr&&"function"==typeof Xr.markRenderStopped&&Xr.markRenderStopped()}function yi(e,t){null!==Xr&&"function"==typeof Xr.markStateUpdateScheduled&&Xr.markStateUpdateScheduled(e,t)}var bi=16,wi=Math.clz32?Math.clz32:function(e){var t=e>>>0;if(0===t)return 32;return 31-(xi(t)/ki|0)|0},xi=Math.log,ki=Math.LN2;var Si=31,Ti=1,Ei=2,Ci=4,Ri=8,Pi=16,_i=32,Di=4194240,Ii=1024,Ai=2048,Ni=4096,Mi=8192,$i=16384,Oi=32768,ji=65536,Li=131072,Hi=262144,Fi=524288,Ui=1048576,zi=2097152,qi=130023424,Vi=4194304,Bi=8388608,Wi=16777216,Yi=33554432,Gi=67108864,Ki=Vi,Qi=134217728,Xi=268435455,Zi=268435456,Ji=536870912,eo=1073741824;function to(e){return e&Ti?"Sync":e&Ei?"InputContinuousHydration":e&Ci?"InputContinuous":e&Ri?"DefaultHydration":e&Pi?"Default":e&_i?"TransitionHydration":e&Di?"Transition":e&qi?"Retry":e&Qi?"SelectiveHydration":e&Zi?"IdleHydration":e&Ji?"Idle":e&eo?"Offscreen":void 0}var no=-1,ro=64,io=Vi;function oo(e){switch(go(e)){case Ti:return Ti;case Ei:return Ei;case Ci:return Ci;case Ri:return Ri;case Pi:return Pi;case _i:return _i;case 64:case 128:case 256:case 512:case Ii:case Ai:case Ni:case Mi:case $i:case Oi:case ji:case Li:case Hi:case Fi:case Ui:case zi:return e&Di;case Vi:case Bi:case Wi:case Yi:case Gi:return e&qi;case Qi:return Qi;case Zi:return Zi;case Ji:return Ji;case eo:return eo;default:return o("Should have found matching lanes. This is a bug in React."),e}}function ao(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=nΞif(0!==a){var s=a&~i;if(0!==s)r=oo(s);else{var l=a&o;0!==l&&(r=oo(l))}}else{var c=n&~i;0!==c?r=oo(c):0!==o&&(r=oo(o))}if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)){var u=go(r),d=go(t);if(u>=d||u===Pi&&0!==(d&Di))return t}0!==(r&Ci)&&(r|=n&Pi);var h=e.entangledLanes;if(0!==h)for(var f=e.entanglements,p=r&h;p>0;){var g=vo(p),m=1<<g;r|=f[g],p&=~m}return r}function so(e,t){switch(e){case Ti:case Ei:case Ci:return t+250;case Ri:case Pi:case _i:case 64:case 128:case 256:case 512:case Ii:case Ai:case Ni:case Mi:case $i:case Oi:case ji:case Li:case Hi:case Fi:case Ui:case zi:return t+5e3;case Vi:case Bi:case Wi:case Yi:case Gi:case Qi:case Zi:case Ji:case eo:return no;default:return o("Should have found matching lanes. This is a bug in React."),no}}function lo(e){var t=e.pendingLanes&~eo;return 0!==t?t:t&eo?eo:0}function co(e){return 0!==(e&Xi)}function uo(e){return(e&qi)===e}function ho(e,t){return 0!==(t&(Ei|Ci|Ri|Pi))}function fo(e){return 0!==(e&Di)}function po(){var e=ro;return 0===((ro<<=1)&Di)&&(ro=64),e}function go(e){return e&-e}function mo(e){return go(e)}function vo(e){return 31-wi(e)}function yo(e){return vo(e)}function bo(e,t){return 0!==(e&t)}function wo(e,t){return(e&t)===t}function xo(e,t){return e|t}function ko(e,t){return e&~t}function So(e,t){return e&t}function To(e){for(var t=[],n=0;n<Si;n++)t.push(e);return t}function Eo(e,t,n){e.pendingLanes|=t,t!==Ji&&(e.suspendedLanes=0,e.pingedLanes=0),e.eventTimes[yo(t)]=n}function Co(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function Ro(e,t){for(var n=e.entangledLanes|=t,r=e.entanglements,i=n;i;){var o=vo(i),a=1<<o;a&t|r[o]&t&&(r[o]|=t),i&=~a}}function Po(e,t,n){if(Jr)for(var r=e.pendingUpdatersLaneMap;n>0;){var i=yo(n),o=1<<i;r[i].add(t),n&=~o}}function _o(e,t){if(Jr)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;t>0;){var i=yo(t),o=1<<i,a=n[i];a.size>0&&(a.forEach(function(e){var t=e.alternate;null!==t&&r.has(t)||r.add(e)}),a.clear()),t&=~o}}var Do,Io,Ao,No,Mo,$o=Ti,Oo=Ci,jo=Pi,Lo=Ji,Ho=0;function Fo(){return Ho}function Uo(e){Ho=e}function zo(e,t){return 0!==e&&e<t}function qo(e){var t=go(e);return zo($o,t)?zo(Oo,t)?co(t)?jo:Lo:Oo:$o}function Vo(e){return e.current.memoizedState.isDehydrated}function Bo(e){Do(e)}var Wo=!1,Yo=[],Go=null,Ko=null,Qo=null,Xo=new Map,Zo=new Map,Jo=[],ea=["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 ta(e,t){switch(e){case"focusin":case"focusout":Go=null;break;case"dragenter":case"dragleave":Ko=null;break;case"mouseover":case"mouseout":Qo=null;break;case"pointerover":case"pointerout":var n=t.pointerId;Xo.delete(n);break;case"gotpointercapture":case"lostpointercapture":var r=t.pointerId;Zo.delete(r)}}function na(e,t,n,r,i,o){if(null===e||e.nativeEvent!==o){var a=function(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:i,targetContainers:[r]}}(t,n,r,i,o);if(null!==t){var s=Zc(t);null!==s&&Io(s)}return a}e.eventSystemFlags|=r;var l=e.targetContainers;return null!==i&&-1===l.indexOf(i)&&l.push(i),e}function ra(e){var t=Xc(e.target);if(null!==t){var n=Rr(t);if(null!==n){var r=n.tag;if(r===u){var i=Pr(n);if(null!==i)return e.blockedOn=i,void Mo(e.priority,function(){Ao(n)})}else if(3===r){if(Vo(n.stateNode))return void(e.blockedOn=_r(n))}}}e.blockedOn=null}function ia(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],r=ma(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(null!==r){var i=Zc(r);return null!==i&&Io(i),e.blockedOn=r,!1}var o=e.nativeEvent,a=new o.constructor(o.type,o);_n(a),o.target.dispatchEvent(a),Dn(),t.shift()}return!0}function oa(e,t,n){ia(e)&&n.delete(t)}function aa(){Wo=!1,null!==Go&&ia(Go)&&(Go=null),null!==Ko&&ia(Ko)&&(Ko=null),null!==Qo&&ia(Qo)&&(Qo=null),Xo.forEach(oa),Zo.forEach(oa)}function sa(e,n){e.blockedOn===n&&(e.blockedOn=null,Wo||(Wo=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,aa)))}function la(e){if(Yo.length>0){sa(Yo[0],e);for(var t=1;t<Yo.length;t++){var n=Yo[t];n.blockedOn===e&&(n.blockedOn=null)}}null!==Go&&sa(Go,e),null!==Ko&&sa(Ko,e),null!==Qo&&sa(Qo,e);var r=function(t){return sa(t,e)};Xo.forEach(r),Zo.forEach(r);for(var i=0;i<Jo.length;i++){var o=Jo[i];o.blockedOn===e&&(o.blockedOn=null)}for(;Jo.length>0;){var a=Jo[0];if(null!==a.blockedOn)break;ra(a),null===a.blockedOn&&Jo.shift()}}var ca=n.ReactCurrentBatchConfig,ua=!0;function da(e){ua=!!e}function ha(e,t,n,r){var i=Fo(),o=ca.transition;ca.transition=null;try{Uo($o),pa(e,t,n,r)}finally{Uo(i),ca.transition=o}}function fa(e,t,n,r){var i=Fo(),o=ca.transition;ca.transition=null;try{Uo(Oo),pa(e,t,n,r)}finally{Uo(i),ca.transition=o}}function pa(e,t,n,r){ua&&function(e,t,n,r){var i=ma(e,t,n,r);if(null===i)return kl(e,t,r,ga,n),void ta(e,r);if(function(e,t,n,r,i){switch(t){case"focusin":return Go=na(Go,e,t,n,r,i),!0;case"dragenter":return Ko=na(Ko,e,t,n,r,i),!0;case"mouseover":return Qo=na(Qo,e,t,n,r,i),!0;case"pointerover":var o=i,a=o.pointerId;return Xo.set(a,na(Xo.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":var s=i,l=s.pointerId;return Zo.set(l,na(Zo.get(l)||null,e,t,n,r,s)),!0}return!1}(i,e,t,n,r))return void r.stopPropagation();if(ta(e,r),4&t&&function(e){return ea.indexOf(e)>-1}(e)){for(;null!==i;){var o=Zc(i);null!==o&&Bo(o);var a=ma(e,t,n,r);if(null===a&&kl(e,t,r,ga,n),a===i)break;i=a}return void(null!==i&&r.stopPropagation())}kl(e,t,r,null,n)}(e,t,n,r)}var ga=null;function ma(e,t,n,r){ga=null;var i=Xc(In(r));if(null!==i){var o=Rr(i);if(null===o)i=null;else{var a=o.tag;if(a===u){var s=Pr(o);if(null!==s)return s;i=null}else if(3===a){if(Vo(o.stateNode))return _r(o);i=null}else o!==i&&(i=null)}}return ga=i,null}function va(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 $o;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 Oo;case"message":switch(Ur()){case zr:return $o;case qr:return Oo;case Vr:case Br:return jo;case Wr:return Lo;default:return jo}default:return jo}}var ya=null,ba=null,wa=null;function xa(){if(wa)return wa;var e,t,n=ba,r=n.length,i=ka(),o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);var s=t>1?1-t:void 0;return wa=i.slice(e,s)}function ka(){return"value"in ya?ya.value:ya.textContent}function Sa(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,10===t&&(t=13),t>=32||13===t?t:0}function Ta(){return!0}function Ea(){return!1}function Ca(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)if(e.hasOwnProperty(a)){var s=e[a];this[a]=s?s(i):i[a]}var l=null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue;return this.isDefaultPrevented=l?Ta:Ea,this.isPropagationStopped=Ea,this}return Te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Ta)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ta)},persist:function(){},isPersistent:Ta}),t}var Ra,Pa,_a,Da={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ia=Ca(Da),Aa=Te({},Da,{view:0,detail:0}),Na=Ca(Aa);var Ma=Te({},Aa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wa,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(function(e){e!==_a&&(_a&&"mousemove"===e.type?(Ra=e.screenX-_a.screenX,Pa=e.screenY-_a.screenY):(Ra=0,Pa=0),_a=e)}(e),Ra)},movementY:function(e){return"movementY"in e?e.movementY:Pa}}),$a=Ca(Ma),Oa=Ca(Te({},Ma,{dataTransfer:0})),ja=Ca(Te({},Aa,{relatedTarget:0})),La=Ca(Te({},Da,{animationName:0,elapsedTime:0,pseudoElement:0})),Ha=Ca(Te({},Da,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),Fa=Ca(Te({},Da,{data:0})),Ua=Fa,za={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qa={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"};var Va={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ba(e){var t=this.nativeEvent;if(t.getModifierState)return t.getModifierState(e);var n=Va[e];return!!n&&!!t[n]}function Wa(e){return Ba}var Ya=Ca(Te({},Aa,{key:function(e){if(e.key){var t=za[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=Sa(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?qa[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wa,charCode:function(e){return"keypress"===e.type?Sa(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Sa(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Ga=Ca(Te({},Ma,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ka=Ca(Te({},Aa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wa})),Qa=Ca(Te({},Da,{propertyName:0,elapsedTime:0,pseudoElement:0})),Xa=Ca(Te({},Ma,{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})),Za=[9,13,27,32],Ja=229,es=R&&"CompositionEvent"in window,ts=null;R&&"documentMode"in document&&(ts=document.documentMode);var ns=R&&"TextEvent"in window&&!ts,rs=R&&(!es||ts&&ts>8&&ts<=11),is=32,os=String.fromCharCode(is);var as=!1;function ss(e,t){switch(e){case"keyup":return-1!==Za.indexOf(t.keyCode);case"keydown":return t.keyCode!==Ja;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ls(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function cs(e){return"ko"===e.locale}var us=!1;function ds(e,t,n,r,i){var o,a;if(es?o=function(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}(t):us?ss(t,r)&&(o="onCompositionEnd"):function(e,t){return"keydown"===e&&t.keyCode===Ja}(t,r)&&(o="onCompositionStart"),!o)return null;rs&&!cs(r)&&(us||"onCompositionStart"!==o?"onCompositionEnd"===o&&us&&(a=xa()):us=function(e){return ya=e,ba=ka(),!0}(i));var s=Tl(n,o);if(s.length>0){var l=new Fa(o,t,null,r,i);if(e.push({event:l,listeners:s}),a)l.data=a;else{var c=ls(r);null!==c&&(l.data=c)}}}function hs(e,t){if(us){if("compositionend"===e||!es&&ss(e,t)){var n=xa();return ya=null,ba=null,wa=null,us=!1,n}return null}switch(e){case"paste":default:return null;case"keypress":if(!function(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rs&&!cs(t)?null:t.data}}function fs(e,t,n,r,i){var o;if(!(o=ns?function(e,t){switch(e){case"compositionend":return ls(t);case"keypress":return t.which!==is?null:(as=!0,os);case"textInput":var n=t.data;return n===os&&as?null:n;default:return null}}(t,r):hs(t,r)))return null;var a=Tl(n,"onBeforeInput");if(a.length>0){var s=new Ua("onBeforeInput","beforeinput",null,r,i);e.push({event:s,listeners:a}),s.data=o}}var ps={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 gs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ps[e.type]:"textarea"===t}
|
||
/**
|
||
* Checks if an event is supported in the current execution environment.
|
||
*
|
||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
* `reset`, `load`, `error`, and `select`.
|
||
*
|
||
* Borrows from Modernizr.
|
||
*
|
||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
* @return {boolean} True if the event is supported.
|
||
* @internal
|
||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
*/function ms(e,t,n,r){On(r);var i=Tl(t,"onChange");if(i.length>0){var o=new Ia("onChange","change",null,n,r);e.push({event:o,listeners:i})}}var vs=null,ys=null;function bs(e){gl(e,0)}function ws(e){if(rt(Jc(e)))return e}function xs(e,t){if("change"===e)return t}var ks=!1;function Ss(){vs&&(vs.detachEvent("onpropertychange",Ts),vs=null,ys=null)}function Ts(e){"value"===e.propertyName&&ws(ys)&&function(e){var t=[];ms(t,ys,e,In(e)),zn(bs,t)}(e)}function Es(e,t,n){"focusin"===e?(Ss(),function(e,t){ys=t,(vs=e).attachEvent("onpropertychange",Ts)}(t,n)):"focusout"===e&&Ss()}function Cs(e,t){if("selectionchange"===e||"keyup"===e||"keydown"===e)return ws(ys)}function Rs(e,t){if("click"===e)return ws(t)}function Ps(e,t){if("input"===e||"change"===e)return ws(t)}function _s(e,t,n,r,i,o,a){var s,l,c,u,d,h,f=n?Jc(n):window;if("select"===(u=(c=f).nodeName&&c.nodeName.toLowerCase())||"input"===u&&"file"===c.type?s=xs:gs(f)?ks?s=Ps:(s=Cs,l=Es):function(e){var t=e.nodeName;return t&&"input"===t.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}(f)&&(s=Rs),s){var p=s(t,n);if(p)return void ms(e,p,r,i)}l&&l(t,f,n),"focusout"===t&&(h=(d=f)._wrapperState)&&h.controlled&&"number"===d.type&&mt(d,"number",d.value)}function Ds(e,t,n,r,i,o,a){var s="mouseover"===t||"pointerover"===t,l="mouseout"===t||"pointerout"===t;if(s&&r!==Pn){var c=r.relatedTarget||r.fromElement;if(c&&(Xc(c)||Qc(c)))return}if(l||s){var u,d,h;if(i.window===i)u=i;else{var f=i.ownerDocument;u=f?f.defaultView||f.parentWindow:window}if(l){var p=r.relatedTarget||r.toElement;if(d=n,null!==(h=p?Xc(p):null))(h!==Rr(h)||5!==h.tag&&6!==h.tag)&&(h=null)}else d=null,h=n;if(d!==h){var g=$a,m="onMouseLeave",v="onMouseEnter",y="mouse";"pointerout"!==t&&"pointerover"!==t||(g=Ga,m="onPointerLeave",v="onPointerEnter",y="pointer");var b=null==d?u:Jc(d),w=null==h?u:Jc(h),x=new g(m,y+"leave",d,r,i);x.target=b,x.relatedTarget=w;var k=null;if(Xc(i)===n){var S=new g(v,y+"enter",h,r,i);S.target=w,S.relatedTarget=b,k=S}!function(e,t,n,r,i){var o=r&&i?function(e,t){for(var n=e,r=t,i=0,o=n;o;o=El(o))i++;for(var a=0,s=r;s;s=El(s))a++;for(;i-a>0;)n=El(n),i--;for(;a-i>0;)r=El(r),a--;var l=i;for(;l--;){if(n===r||null!==r&&n===r.alternate)return n;n=El(n),r=El(r)}return null}(r,i):null;null!==r&&Cl(e,t,r,o,!1);null!==i&&null!==n&&Cl(e,n,i,o,!0)}(e,x,k,d,h)}}}R&&(ks=function(e){if(!R)return!1;var t="on"+e,n=t in document;if(!n){var r=document.createElement("div");r.setAttribute(t,"return;"),n="function"==typeof r[t]}return n}("input")&&(!document.documentMode||document.documentMode>9));var Is="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function As(e,t){if(Is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!P.call(t,o)||!Is(e[o],t[o]))return!1}return!0}function Ns(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ms(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function $s(e,t){for(var n=Ns(e),r=0,i=0;n;){if(3===n.nodeType){if(i=r+n.textContent.length,r<=t&&i>=t)return{node:n,offset:t-r};r=i}n=Ns(Ms(n))}}function Os(e){var t=e.ownerDocument,n=t&&t.defaultView||window,r=n.getSelection&&n.getSelection();if(!r||0===r.rangeCount)return null;var i=r.anchorNode,o=r.anchorOffset,a=r.focusNode,s=r.focusOffset;try{i.nodeType,a.nodeType}catch(ax){return null}return function(e,t,n,r,i){var o=0,a=-1,s=-1,l=0,c=0,u=e,d=null;e:for(;;){for(var h=null;u!==t||0!==n&&3!==u.nodeType||(a=o+n),u!==r||0!==i&&3!==u.nodeType||(s=o+i),3===u.nodeType&&(o+=u.nodeValue.length),null!==(h=u.firstChild);)d=u,u=h;for(;;){if(u===e)break e;if(d===t&&++l===n&&(a=o),d===r&&++c===i&&(s=o),null!==(h=u.nextSibling))break;d=(u=d).parentNode}u=h}if(-1===a||-1===s)return null;return{start:a,end:s}}(e,i,o,a,s)}function js(e){return e&&3===e.nodeType}function Ls(e,t){return!(!e||!t)&&(e===t||!js(e)&&(js(t)?Ls(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Hs(e){return e&&e.ownerDocument&&Ls(e.ownerDocument.documentElement,e)}function Fs(e){try{return"string"==typeof e.contentWindow.location.href}catch(t){return!1}}function Us(){for(var e=window,t=it();t instanceof e.HTMLIFrameElement;){if(!Fs(t))return t;t=it((e=t.contentWindow).document)}return t}function zs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function qs(e){var t=Us(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&Hs(n)){null!==r&&zs(n)&&function(e,t){var n=t.start,r=t.end;void 0===r&&(r=n);"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length)):function(e,t){var n=e.ownerDocument||document,r=n&&n.defaultView||window;if(r.getSelection){var i=r.getSelection(),o=e.textContent.length,a=Math.min(t.start,o),s=void 0===t.end?a:Math.min(t.end,o);if(!i.extend&&a>s){var l=s;s=a,a=l}var c=$s(e,a),u=$s(e,s);if(c&&u){if(1===i.rangeCount&&i.anchorNode===c.node&&i.anchorOffset===c.offset&&i.focusNode===u.node&&i.focusOffset===u.offset)return;var d=n.createRange();d.setStart(c.node,c.offset),i.removeAllRanges(),a>s?(i.addRange(d),i.extend(u.node,u.offset)):(d.setEnd(u.node,u.offset),i.addRange(d))}}}(e,t)}(n,r);for(var i=[],o=n;o=o.parentNode;)1===o.nodeType&&i.push({element:o,left:o.scrollLeft,top:o.scrollTop});"function"==typeof n.focus&&n.focus();for(var a=0;a<i.length;a++){var s=i[a];s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}}function Vs(e){return("selectionStart"in e?{start:e.selectionStart,end:e.selectionEnd}:Os(e))||{start:0,end:0}}var Bs=R&&"documentMode"in document&&document.documentMode<=11;var Ws=null,Ys=null,Gs=null,Ks=!1;function Qs(e,t,n){var r,i=(r=n).window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!Ks&&null!=Ws&&Ws===it(i)){var o=function(e){if("selectionStart"in e&&zs(e))return{start:e.selectionStart,end:e.selectionEnd};var t=(e.ownerDocument&&e.ownerDocument.defaultView||window).getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}(Ws);if(!Gs||!As(Gs,o)){Gs=o;var a=Tl(Ys,"onSelect");if(a.length>0){var s=new Ia("onSelect","select",null,t,n);e.push({event:s,listeners:a}),s.target=Ws}}}}function Xs(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zs={animationend:Xs("Animation","AnimationEnd"),animationiteration:Xs("Animation","AnimationIteration"),animationstart:Xs("Animation","AnimationStart"),transitionend:Xs("Transition","TransitionEnd")},Js={},el={};function tl(e){if(Js[e])return Js[e];if(!Zs[e])return e;var t=Zs[e];for(var n in t)if(t.hasOwnProperty(n)&&n in el)return Js[e]=t[n];return e}R&&(el=document.createElement("div").style,"AnimationEvent"in window||(delete Zs.animationend.animation,delete Zs.animationiteration.animation,delete Zs.animationstart.animation),"TransitionEvent"in window||delete Zs.transitionend.transition);var nl=tl("animationend"),rl=tl("animationiteration"),il=tl("animationstart"),ol=tl("transitionend"),al=new Map,sl=["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 ll(e,t){al.set(e,t),E(t,[e])}function cl(e,t,n,r,i,o,a){var s=al.get(t);if(void 0!==s){var l=Ia,c=t;switch(t){case"keypress":if(0===Sa(r))return;case"keydown":case"keyup":l=Ya;break;case"focusin":c="focus",l=ja;break;case"focusout":c="blur",l=ja;break;case"beforeblur":case"afterblur":l=ja;break;case"click":if(2===r.button)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=$a;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=Oa;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Ka;break;case nl:case rl:case il:l=La;break;case ol:l=Qa;break;case"scroll":l=Na;break;case"wheel":l=Xa;break;case"copy":case"cut":case"paste":l=Ha;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Ga}var u=!!(4&o),d=!u&&"scroll"===t,h=function(e,t,n,r,i){var o=null!==t?t+"Capture":null,a=r?o:t,s=[],l=e,c=null;for(;null!==l;){var u=l,d=u.stateNode;if(5===u.tag&&null!==d&&(c=d,null!==a)){var h=qn(l,a);null!=h&&s.push(Sl(l,h,c))}if(i)break;l=l.return}return s}(n,s,r.type,u,d);if(h.length>0){var f=new l(s,c,null,r,i);e.push({event:f,listeners:h})}}}function ul(e,t,n,r,i,o,a){cl(e,t,n,r,i,o),!(7&o)&&(Ds(e,t,n,r,i),_s(e,t,n,r,i),function(e,t,n,r,i){var o=n?Jc(n):window;switch(t){case"focusin":(gs(o)||"true"===o.contentEditable)&&(Ws=o,Ys=n,Gs=null);break;case"focusout":Ws=null,Ys=null,Gs=null;break;case"mousedown":Ks=!0;break;case"contextmenu":case"mouseup":case"dragend":Ks=!1,Qs(e,r,i);break;case"selectionchange":if(Bs)break;case"keydown":case"keyup":Qs(e,r,i)}}(e,t,n,r,i),function(e,t,n,r,i){ds(e,t,n,r,i),fs(e,t,n,r,i)}(e,t,n,r,i))}!function(){for(var e=0;e<sl.length;e++){var t=sl[e];ll(t.toLowerCase(),"on"+(t[0].toUpperCase()+t.slice(1)))}ll(nl,"onAnimationEnd"),ll(rl,"onAnimationIteration"),ll(il,"onAnimationStart"),ll("dblclick","onDoubleClick"),ll("focusin","onFocus"),ll("focusout","onBlur"),ll(ol,"onTransitionEnd")}(),C("onMouseEnter",["mouseout","mouseover"]),C("onMouseLeave",["mouseout","mouseover"]),C("onPointerEnter",["pointerout","pointerover"]),C("onPointerLeave",["pointerout","pointerover"]),E("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"]),E("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"]),E("onBeforeInput",["compositionend","keypress","textInput","paste"]),E("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),E("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),E("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"]);var dl=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],hl=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(dl));function fl(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,a,s,l){if(tr.apply(this,arguments),Qn){var c=nr();Zn||(Zn=!0,Jn=c)}}(r,t,void 0,e),e.currentTarget=null}function pl(e,t,n){var r;if(n)for(var i=t.length-1;i>=0;i--){var o=t[i],a=o.instance,s=o.currentTarget,l=o.listener;if(a!==r&&e.isPropagationStopped())return;fl(e,l,s),r=a}else for(var c=0;c<t.length;c++){var u=t[c],d=u.instance,h=u.currentTarget,f=u.listener;if(d!==r&&e.isPropagationStopped())return;fl(e,f,h),r=d}}function gl(e,t){for(var n=!!(4&t),r=0;r<e.length;r++){var i=e[r];pl(i.event,i.listeners,n)}!function(){if(Zn){var e=Jn;throw Zn=!1,Jn=null,e}}()}function ml(e,t){hl.has(e)||o('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=function(e){var t=e[Vc];void 0===t&&(t=e[Vc]=new Set);return t}(t),r=function(e){return e+"__bubble"}(e);n.has(r)||(wl(t,e,2,!1),n.add(r))}function vl(e,t,n){hl.has(e)&&!t&&o('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var r=0;t&&(r|=4),wl(n,e,r,t)}var yl="_reactListening"+Math.random().toString(36).slice(2);function bl(e){if(!e[yl]){e[yl]=!0,k.forEach(function(t){"selectionchange"!==t&&(hl.has(t)||vl(t,!1,e),vl(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null!==t&&(t[yl]||(t[yl]=!0,vl("selectionchange",!1,t)))}}function wl(e,t,n,r,i){var o=function(e,t,n){var r;switch(va(t)){case $o:r=ha;break;case Oo:r=fa;break;default:r=pa}return r.bind(null,t,n,e)}(e,t,n),a=void 0;Vn&&("touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0)),r?void 0!==a?function(e,t,n,r){e.addEventListener(t,n,{capture:!0,passive:r})}(e,t,o,a):function(e,t,n){e.addEventListener(t,n,!0)}(e,t,o):void 0!==a?function(e,t,n,r){e.addEventListener(t,n,{passive:r})}(e,t,o,a):function(e,t,n){e.addEventListener(t,n,!1)}(e,t,o)}function xl(e,t){return e===t||8===e.nodeType&&e.parentNode===t}function kl(e,t,n,r,i){var o=r;if(!(1&t||2&t)){var a=i;if(null!==r){var s=r;e:for(;;){if(null===s)return;var l=s.tag;if(3===l||4===l){var c=s.stateNode.containerInfo;if(xl(c,a))break;if(4===l)for(var u=s.return;null!==u;){var d=u.tag;if(3===d||4===d)if(xl(u.stateNode.containerInfo,a))return;u=u.return}for(;null!==c;){var h=Xc(c);if(null===h)return;var f=h.tag;if(5===f||6===f){s=o=h;continue e}c=c.parentNode}}s=s.return}}}zn(function(){return function(e,t,n,r){var i=[];ul(i,e,r,n,In(n),t),gl(i,t)}(e,t,n,o)})}function Sl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Tl(e,t){for(var n=t+"Capture",r=[],i=e;null!==i;){var o=i,a=o.stateNode;if(5===o.tag&&null!==a){var s=a,l=qn(i,n);null!=l&&r.unshift(Sl(i,l,s));var c=qn(i,t);null!=c&&r.push(Sl(i,c,s))}i=i.return}return r}function El(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Cl(e,t,n,r,i){for(var o=t._reactName,a=[],s=n;null!==s&&s!==r;){var l=s,c=l.alternate,u=l.stateNode,d=l.tag;if(null!==c&&c===r)break;if(5===d&&null!==u){var h=u;if(i){var f=qn(s,o);null!=f&&a.unshift(Sl(s,f,h))}else if(!i){var p=qn(s,o);null!=p&&a.push(Sl(s,p,h))}}s=s.return}0!==a.length&&e.push({event:t,listeners:a})}var Rl,Pl,_l,Dl,Il,Al,Nl,Ml=!1,$l="dangerouslySetInnerHTML",Ol="suppressContentEditableWarning",jl="suppressHydrationWarning",Ll="autoFocus",Hl="children",Fl="style",Ul="__html";Rl={dialog:!0,webview:!0},Pl=function(e,t){bn(e,t),function(e,t){"input"!==e&&"textarea"!==e&&"select"!==e||null==t||null!==t.value||wn||(wn=!0,"select"===e&&t.multiple?o("`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):o("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}(e,t),Rn(e,t,{registrationNameDependencies:S,possibleRegistrationNames:T})},Al=R&&!document.documentMode,_l=function(e,t,n){if(!Ml){var r=Vl(n),i=Vl(t);i!==r&&(Ml=!0,o("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(i),JSON.stringify(r)))}},Dl=function(e){if(!Ml){Ml=!0;var t=[];e.forEach(function(e){t.push(e)}),o("Extra attributes from the server: %s",t)}},Il=function(e,t){!1===t?o("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):o("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},Nl=function(e,t){var n=e.namespaceURI===Mt?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var zl=/\r\n?/g,ql=/\u0000|\uFFFD/g;function Vl(e){return function(e){if(D(e))o("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",_(e)),A(e)}(e),("string"==typeof e?e:""+e).replace(zl,"\n").replace(ql,"")}function Bl(e,t,n,r){var i=Vl(t),a=Vl(e);if(a!==i&&(r&&(Ml||(Ml=!0,o('Text content did not match. Server: "%s" Client: "%s"',a,i))),n))throw new Error("Text content does not match server-rendered HTML.")}function Wl(e){return 9===e.nodeType?e:e.ownerDocument}function Yl(){}function Gl(e){e.onclick=Yl}function Kl(e,t,n,r){var i,o=hn(t,n);switch(Pl(t,n),t){case"dialog":ml("cancel",e),ml("close",e),i=n;break;case"iframe":case"object":case"embed":ml("load",e),i=n;break;case"video":case"audio":for(var a=0;a<dl.length;a++)ml(dl[a],e);i=n;break;case"source":ml("error",e),i=n;break;case"img":case"image":case"link":ml("error",e),ml("load",e),i=n;break;case"details":ml("toggle",e),i=n;break;case"input":dt(e,n),i=ut(e,n),ml("invalid",e);break;case"option":wt(0,n),i=n;break;case"select":Pt(e,n),i=Rt(0,n),ml("invalid",e);break;case"textarea":It(e,n),i=Dt(e,n),ml("invalid",e);break;default:i=n}switch(dn(t,i),function(e,t,n,r,i){for(var o in r)if(r.hasOwnProperty(o)){var a=r[o];if(o===Fl)a&&Object.freeze(a),sn(t,a);else if(o===$l){var s=a?a[Ul]:void 0;null!=s&&Ft(t,s)}else o===Hl?"string"==typeof a?("textarea"!==e||""!==a)&&Ut(t,a):"number"==typeof a&&Ut(t,""+a):o===Ol||o===jl||o===Ll||(S.hasOwnProperty(o)?null!=a&&("function"!=typeof a&&Il(o,a),"onScroll"===o&&ml("scroll",t)):null!=a&&te(t,o,a,i))}}(t,e,0,i,o),t){case"input":nt(e),pt(e,n,!1);break;case"textarea":nt(e),Nt(e);break;case"option":!function(e,t){null!=t.value&&e.setAttribute("value",Qe(Xe(t.value)))}(e,n);break;case"select":!function(e,t){var n=e;n.multiple=!!t.multiple;var r=t.value;null!=r?Ct(n,!!t.multiple,r,!1):null!=t.defaultValue&&Ct(n,!!t.multiple,t.defaultValue,!0)}(e,n);break;default:"function"==typeof i.onClick&&Gl(e)}}function Ql(e,t,n,r,i){Pl(t,r);var a,s,l,c,u=null;switch(t){case"input":a=ut(e,n),s=ut(e,r),u=[];break;case"select":a=Rt(0,n),s=Rt(0,r),u=[];break;case"textarea":a=Dt(e,n),s=Dt(e,r),u=[];break;default:s=r,"function"!=typeof(a=n).onClick&&"function"==typeof s.onClick&&Gl(e)}dn(t,s);var d=null;for(l in a)if(!s.hasOwnProperty(l)&&a.hasOwnProperty(l)&&null!=a[l])if(l===Fl){var h=a[l];for(c in h)h.hasOwnProperty(c)&&(d||(d={}),d[c]="")}else l===$l||l===Hl||l===Ol||l===jl||l===Ll||(S.hasOwnProperty(l)?u||(u=[]):(u=u||[]).push(l,null));for(l in s){var f=s[l],p=null!=a?a[l]:void 0;if(s.hasOwnProperty(l)&&f!==p&&(null!=f||null!=p))if(l===Fl)if(f&&Object.freeze(f),p){for(c in p)!p.hasOwnProperty(c)||f&&f.hasOwnProperty(c)||(d||(d={}),d[c]="");for(c in f)f.hasOwnProperty(c)&&p[c]!==f[c]&&(d||(d={}),d[c]=f[c])}else d||(u||(u=[]),u.push(l,d)),d=f;else if(l===$l){var g=f?f[Ul]:void 0,m=p?p[Ul]:void 0;null!=g&&m!==g&&(u=u||[]).push(l,g)}else l===Hl?"string"!=typeof f&&"number"!=typeof f||(u=u||[]).push(l,""+f):l===Ol||l===jl||(S.hasOwnProperty(l)?(null!=f&&("function"!=typeof f&&Il(l,f),"onScroll"===l&&ml("scroll",e)),u||p===f||(u=[])):(u=u||[]).push(l,f))}return d&&(!function(e,t){if(t){var n=cn(e),r=cn(t),i={};for(var a in n){var s=n[a],l=r[a];if(l&&s!==l){var c=s+","+l;if(i[c])continue;i[c]=!0,o("%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.",ln(e[s])?"Removing":"Updating",s,l)}}}}(d,s[Fl]),(u=u||[]).push(Fl,d)),u}function Xl(e,t,n,r,i){"input"===n&&"radio"===i.type&&null!=i.name&&ht(e,i);hn(n,r);switch(function(e,t,n,r){for(var i=0;i<t.length;i+=2){var o=t[i],a=t[i+1];o===Fl?sn(e,a):o===$l?Ft(e,a):o===Hl?Ut(e,a):te(e,o,a,r)}}(e,t,0,hn(n,i)),n){case"input":ft(e,i);break;case"textarea":At(e,i);break;case"select":!function(e,t){var n=e,r=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var i=t.value;null!=i?Ct(n,!!t.multiple,i,!1):r!==!!t.multiple&&(null!=t.defaultValue?Ct(n,!!t.multiple,t.defaultValue,!0):Ct(n,!!t.multiple,t.multiple?[]:"",!1))}(e,i)}}function Zl(e){var t=e.toLowerCase();return fn.hasOwnProperty(t)&&fn[t]||null}function Jl(e,t){Ml||(Ml=!0,o("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase()))}function ec(e,t){Ml||(Ml=!0,o('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase()))}function tc(e,t,n){Ml||(Ml=!0,o("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase()))}function nc(e,t){""!==t&&(Ml||(Ml=!0,o('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())))}var rc,ic,oc=["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"],ac=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],sc=ac.concat(["button"]),lc=["dd","dt","li","option","optgroup","p","rp","rt"],cc={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};ic=function(e,t){var n=Te({},e||cc),r={tag:t};return-1!==ac.indexOf(t)&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),-1!==sc.indexOf(t)&&(n.pTagInButtonScope=null),-1!==oc.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,"form"===t&&(n.formTag=r),"a"===t&&(n.aTagInScope=r),"button"===t&&(n.buttonTagInScope=r),"nobr"===t&&(n.nobrTagInScope=r),"p"===t&&(n.pTagInButtonScope=r),"li"===t&&(n.listItemTagAutoclosing=r),"dd"!==t&&"dt"!==t||(n.dlItemTagAutoclosing=r),n};var uc={};rc=function(e,t,n){var r=(n=n||cc).current,i=r&&r.tag;null!=t&&(null!=e&&o("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var a=function(e,t){switch(t){case"select":return"option"===e||"optgroup"===e||"#text"===e;case"optgroup":return"option"===e||"#text"===e;case"option":return"#text"===e;case"tr":return"th"===e||"td"===e||"style"===e||"script"===e||"template"===e;case"tbody":case"thead":case"tfoot":return"tr"===e||"style"===e||"script"===e||"template"===e;case"colgroup":return"col"===e||"template"===e;case"table":return"caption"===e||"colgroup"===e||"tbody"===e||"tfoot"===e||"thead"===e||"style"===e||"script"===e||"template"===e;case"head":return"base"===e||"basefont"===e||"bgsound"===e||"link"===e||"meta"===e||"title"===e||"noscript"===e||"noframes"===e||"style"===e||"script"===e||"template"===e;case"html":return"head"===e||"body"===e||"frameset"===e;case"frameset":return"frame"===e;case"#document":return"html"===e}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t;case"rp":case"rt":return-1===lc.indexOf(t);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 null==t}return!0}(e,i)?null:r,s=a?null: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}(e,n),l=a||s;if(l){var c=l.tag,u=!!a+"|"+e+"|"+c;if(!uc[u]){uc[u]=!0;var d=e,h="";if("#text"===e?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",h=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",a){var f="";"table"===c&&"tr"===e&&(f+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),o("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,c,h,f)}else o("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,c)}}};var dc="suppressHydrationWarning",hc="$",fc="/$",pc="$?",gc="$!",mc=null,vc=null;function yc(e){var t;mc=ua,t=Us(),vc={focusedElem:t,selectionRange:zs(t)?Vs(t):null};return da(!1),null}function bc(e,t,n,r,i){var a=r;if(rc(e,null,a.ancestorInfo),"string"==typeof t.children||"number"==typeof t.children){var s=""+t.children,l=ic(a.ancestorInfo,e);rc(null,s,l)}var c=function(e,t,n,r){var i,a,s=Wl(n),l=r;if(l===Mt&&(l=Ot(e)),l===Mt){if((i=hn(e,t))||e===e.toLowerCase()||o("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),"script"===e){var c=s.createElement("div");c.innerHTML="<script><\/script>";var u=c.firstChild;a=c.removeChild(u)}else if("string"==typeof t.is)a=s.createElement(e,{is:t.is});else if(a=s.createElement(e),"select"===e){var d=a;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else a=s.createElementNS(l,e);return l===Mt&&(i||"[object HTMLUnknownElement]"!==Object.prototype.toString.call(a)||P.call(Rl,e)||(Rl[e]=!0,o("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e))),a}(e,t,n,a.namespace);return Yc(i,c),tu(c,t),c}function wc(e,t){e.appendChild(t)}function xc(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}function kc(e,t,n,r){rc(null,e,n.ancestorInfo);var i=function(e,t){return Wl(t).createTextNode(e)}(e,t);return Yc(r,i),i}var Sc="function"==typeof setTimeout?setTimeout:void 0,Tc="function"==typeof clearTimeout?clearTimeout:void 0,Ec="function"==typeof Promise?Promise:void 0,Cc="function"==typeof queueMicrotask?queueMicrotask:void 0!==Ec?function(e){return Ec.resolve(null).then(e).catch(Rc)}:Sc;function Rc(e){setTimeout(function(){throw e})}function Pc(e){Ut(e,"")}function _c(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType){var o=i.data;if(o===fc){if(0===r)return e.removeChild(i),void la(t);r--}else o!==hc&&o!==pc&&o!==gc||r++}n=i}while(n);la(t)}function Dc(e){var t=e.style;"function"==typeof t.setProperty?t.setProperty("display","none","important"):t.display="none"}function Ic(e){e.nodeValue=""}function Ac(e,t){var n=t.style,r=null!=n&&n.hasOwnProperty("display")?n.display:null;e.style.display=Bt("display",r)}function Nc(e,t){e.nodeValue=t}function Mc(e){return e.data===pc}function $c(e){return e.data===gc}function Oc(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){var n=e.data;if(n===hc||n===gc||n===pc)break;if(n===fc)return null}}return e}function jc(e){return Oc(e.nextSibling)}function Lc(e,t,n,r,i,o,a){return Yc(o,e),tu(e,n),function(e,t,n,r,i,o,a){var s,l;switch(s=hn(t,n),Pl(t,n),t){case"dialog":ml("cancel",e),ml("close",e);break;case"iframe":case"object":case"embed":ml("load",e);break;case"video":case"audio":for(var c=0;c<dl.length;c++)ml(dl[c],e);break;case"source":ml("error",e);break;case"img":case"image":case"link":ml("error",e),ml("load",e);break;case"details":ml("toggle",e);break;case"input":dt(e,n),ml("invalid",e);break;case"option":wt(0,n);break;case"select":Pt(e,n),ml("invalid",e);break;case"textarea":It(e,n),ml("invalid",e)}dn(t,n),l=new Set;for(var u=e.attributes,d=0;d<u.length;d++)switch(u[d].name.toLowerCase()){case"value":case"checked":case"selected":break;default:l.add(u[d].name)}var h=null;for(var f in n)if(n.hasOwnProperty(f)){var p=n[f];if(f===Hl)"string"==typeof p?e.textContent!==p&&(!0!==n[jl]&&Bl(e.textContent,p,o,a),h=[Hl,p]):"number"==typeof p&&e.textContent!==""+p&&(!0!==n[jl]&&Bl(e.textContent,p,o,a),h=[Hl,""+p]);else if(S.hasOwnProperty(f))null!=p&&("function"!=typeof p&&Il(f,p),"onScroll"===f&&ml("scroll",e));else if(a&&"boolean"==typeof s){var g=void 0,m=B(f);if(!0===n[jl]);else if(f===Ol||f===jl||"value"===f||"checked"===f||"selected"===f);else if(f===$l){var v=e.innerHTML,y=p?p[Ul]:void 0;if(null!=y){var b=Nl(e,y);b!==v&&_l(f,v,b)}}else if(f===Fl){if(l.delete(f),Al){var w=an(p);w!==(g=e.getAttribute("style"))&&_l(f,g,w)}}else if(s)l.delete(f.toLowerCase()),p!==(g=ee(e,f,p))&&_l(f,g,p);else if(!z(f,m,s)&&!V(f,p,m,s)){var x=!1;if(null!==m)l.delete(m.attributeName),g=J(e,f,p,m);else{var k=r;if(k===Mt&&(k=Ot(t)),k===Mt)l.delete(f.toLowerCase());else{var T=Zl(f);null!==T&&T!==f&&(x=!0,l.delete(T)),l.delete(f)}g=ee(e,f,p)}p===g||x||_l(f,g,p)}}}switch(a&&l.size>0&&!0!==n[jl]&&Dl(l),t){case"input":nt(e),pt(e,n,!0);break;case"textarea":nt(e),Nt(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&Gl(e)}return h}(e,t,n,i.namespace,0,!!(1&o.mode),a)}function Hc(e){for(var t=e.previousSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===hc||r===gc||r===pc){if(0===n)return t;n--}else r===fc&&n++}t=t.previousSibling}return null}var Fc=Math.random().toString(36).slice(2),Uc="__reactFiber$"+Fc,zc="__reactProps$"+Fc,qc="__reactContainer$"+Fc,Vc="__reactEvents$"+Fc,Bc="__reactListeners$"+Fc,Wc="__reactHandles$"+Fc;function Yc(e,t){t[Uc]=e}function Gc(e,t){t[qc]=e}function Kc(e){e[qc]=null}function Qc(e){return!!e[qc]}function Xc(e){var t=e[Uc];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qc]||n[Uc]){var r=t.alternate;if(null!==t.child||null!==r&&null!==r.child)for(var i=Hc(e);null!==i;){var o=i[Uc];if(o)return o;i=Hc(i)}return t}n=(e=n).parentNode}return null}function Zc(e){var t=e[Uc]||e[qc];return t&&(5===t.tag||6===t.tag||t.tag===u||3===t.tag)?t:null}function Jc(e){if(5===e.tag||6===e.tag)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function eu(e){return e[zc]||null}function tu(e,t){e[zc]=t}var nu={},ru=n.ReactDebugCurrentFrame;function iu(e){if(e){var t=e._owner,n=$e(e.type,e._source,t?t.type:null);ru.setExtraStackFrame(n)}else ru.setExtraStackFrame(null)}function ou(e,t,n,r,i){var a=Function.call.bind(P);for(var s in e)if(a(e,s)){var l=void 0;try{if("function"!=typeof e[s]){var c=Error((r||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}l=e[s](t,s,r,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(u){l=u}!l||l instanceof Error||(iu(i),o("%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).",r||"React class",n,s,typeof l),iu(null)),l instanceof Error&&!(l.message in nu)&&(nu[l.message]=!0,iu(i),o("Failed %s type: %s",n,l.message),iu(null))}}var au,su=[];au=[];var lu,cu=-1;function uu(e){return{current:e}}function du(e,t){cu<0?o("Unexpected pop."):(t!==au[cu]&&o("Unexpected Fiber popped."),e.current=su[cu],su[cu]=null,au[cu]=null,cu--)}function hu(e,t,n){cu++,su[cu]=e.current,au[cu]=n,e.current=t}lu={};var fu={};Object.freeze(fu);var pu=uu(fu),gu=uu(!1),mu=fu;function vu(e,t,n){return n&&xu(t)?mu:pu.current}function yu(e,t,n){var r=e.stateNode;r.__reactInternalMemoizedUnmaskedChildContext=t,r.__reactInternalMemoizedMaskedChildContext=n}function bu(e,t){var n=e.type.contextTypes;if(!n)return fu;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={};for(var o in n)i[o]=t[o];return ou(n,i,"context",Ue(e)||"Unknown"),r&&yu(e,t,i),i}function wu(){return gu.current}function xu(e){var t=e.childContextTypes;return null!=t}function ku(e){du(gu,e),du(pu,e)}function Su(e){du(gu,e),du(pu,e)}function Tu(e,t,n){if(pu.current!==fu)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");hu(pu,t,e),hu(gu,n,e)}function Eu(e,t,n){var r=e.stateNode,i=t.childContextTypes;if("function"!=typeof r.getChildContext){var a=Ue(e)||"Unknown";return lu[a]||(lu[a]=!0,o("%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.",a,a)),n}var s=r.getChildContext();for(var l in s)if(!(l in i))throw new Error((Ue(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return ou(i,s,"child context",Ue(e)||"Unknown"),Te({},n,s)}function Cu(e){var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||fu;return mu=pu.current,hu(pu,n,e),hu(gu,gu.current,e),!0}function Ru(e,t,n){var r=e.stateNode;if(!r)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(n){var i=Eu(e,t,mu);r.__reactInternalMemoizedMergedChildContext=i,du(gu,e),du(pu,e),hu(pu,i,e),hu(gu,n,e)}else du(gu,e),hu(gu,n,e)}function Pu(e){if(!function(e){return Rr(e)===e}(e)||1!==e.tag)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 3:return t.stateNode.context;case 1:if(xu(t.type))return t.stateNode.__reactInternalMemoizedMergedChildContext}t=t.return}while(null!==t);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}var _u=null,Du=!1,Iu=!1;function Au(e){null===_u?_u=[e]:_u.push(e)}function Nu(){Du&&Mu()}function Mu(){if(!Iu&&null!==_u){Iu=!0;var e=0,t=Fo();try{var n=_u;for(Uo($o);e<n.length;e++){var r=n[e];do{r=r(true)}while(null!==r)}_u=null,Du=!1}catch(i){throw null!==_u&&(_u=_u.slice(e+1)),Or(zr,Mu),i}finally{Uo(t),Iu=!1}}return null}var $u=[],Ou=0,ju=null,Lu=0,Hu=[],Fu=0,Uu=null,zu=1,qu="";function Vu(){var e=qu;return(zu&~function(e){return 1<<Gu(e)-1}(zu)).toString(32)+e}function Bu(e,t){Qu(),$u[Ou++]=Lu,$u[Ou++]=ju,ju=e,Lu=t}function Wu(e,t,n){Qu(),Hu[Fu++]=zu,Hu[Fu++]=qu,Hu[Fu++]=Uu,Uu=e;var r=zu,i=qu,o=Gu(r)-1,a=r&~(1<<o),s=n+1,l=Gu(t)+o;if(l>30){var c=o-o%5,u=(a&(1<<c)-1).toString(32),d=a>>c,h=o-c,f=Gu(t)+h;zu=1<<f|(s<<h|d),qu=u+i}else{zu=1<<l|(s<<o|a),qu=i}}function Yu(e){if(Qu(),null!==e.return){Bu(e,1),Wu(e,1,0)}}function Gu(e){return 32-wi(e)}function Ku(e){for(;e===ju;)ju=$u[--Ou],$u[Ou]=null,Lu=$u[--Ou],$u[Ou]=null;for(;e===Uu;)Uu=Hu[--Fu],Hu[Fu]=null,qu=Hu[--Fu],Hu[Fu]=null,zu=Hu[--Fu],Hu[Fu]=null}function Qu(){xd()||o("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Xu=null,Zu=null,Ju=!1,ed=!1,td=null;function nd(){ed=!0}function rd(e){var t=e.stateNode.containerInfo;return Zu=Oc(t.firstChild),Xu=e,Ju=!0,td=null,ed=!1,!0}function id(e,t,n){var r,i;return Zu=Oc(t.nextSibling),Xu=e,Ju=!0,td=null,ed=!1,null!==n&&(r=e,i=n,Qu(),Hu[Fu++]=zu,Hu[Fu++]=qu,Hu[Fu++]=Uu,zu=i.id,qu=i.overflow,Uu=r),!0}function od(e,t){switch(e.tag){case 3:!function(e,t){1===t.nodeType?Jl(e,t):8===t.nodeType||ec(e,t)}(e.stateNode.containerInfo,t);break;case 5:var n=!!(1&e.mode);!function(e,t,n,r,i){(i||!0!==t[dc])&&(1===r.nodeType?Jl(n,r):8===r.nodeType||ec(n,r))}(e.type,e.memoizedProps,e.stateNode,t,n);break;case u:var r=e.memoizedState;null!==r.dehydrated&&function(e,t){var n=e.parentNode;null!==n&&(1===t.nodeType?Jl(n,t):8===t.nodeType||ec(n,t))}(r.dehydrated,t)}}function ad(e,t){od(e,t);var n,r=((n=Qb(5,null,null,0)).elementType="DELETED",n);r.stateNode=t,r.return=e;var i=e.deletions;null===i?(e.deletions=[r],e.flags|=ir):i.push(r)}function sd(e,t){if(!ed)switch(e.tag){case 3:var n=e.stateNode.containerInfo;switch(t.tag){case 5:var r=t.type;t.pendingProps,function(e,t){tc(e,t)}(n,r);break;case 6:!function(e,t){nc(e,t)}(n,t.pendingProps)}break;case 5:e.type;var i=e.memoizedProps,o=e.stateNode;switch(t.tag){case 5:var a=t.type;t.pendingProps;!function(e,t,n,r,i,o){(o||!0!==t[dc])&&tc(n,r)}(0,i,o,a,0,!!(1&e.mode));break;case 6:!function(e,t,n,r,i){(i||!0!==t[dc])&&nc(n,r)}(0,i,o,t.pendingProps,!!(1&e.mode))}break;case u:var s=e.memoizedState.dehydrated;if(null!==s)switch(t.tag){case 5:var l=t.type;t.pendingProps,function(e,t){var n=e.parentNode;null!==n&&tc(n,t)}(s,l);break;case 6:!function(e,t){var n=e.parentNode;null!==n&&nc(n,t)}(s,t.pendingProps)}break;default:return}}function ld(e,t){t.flags=-4097&t.flags|2,sd(e,t)}function cd(e,t){switch(e.tag){case 5:var n=e.type;e.pendingProps;var r=function(e,t){return 1!==e.nodeType||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}(t,n);return null!==r&&(e.stateNode=r,Xu=e,Zu=Oc(r.firstChild),!0);case 6:var i=function(e,t){return""===t||3!==e.nodeType?null:e}(t,e.pendingProps);return null!==i&&(e.stateNode=i,Xu=e,Zu=null,!0);case u:var o=function(e){return 8!==e.nodeType?null:e}(t);if(null!==o){var a={dehydrated:o,treeContext:(Qu(),null!==Uu?{id:zu,overflow:qu}:null),retryLane:eo};e.memoizedState=a;var s=function(e){var t=Qb(g,null,null,0);return t.stateNode=e,t}(o);return s.return=e,e.child=s,Xu=e,Zu=null,!0}return!1;default:return!1}}function ud(e){return!!(1&e.mode)&&0===(e.flags&or)}function dd(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function hd(e){if(Ju){var t=Zu;if(!t)return ud(e)&&(sd(Xu,e),dd()),ld(Xu,e),Ju=!1,void(Xu=e);var n=t;if(!cd(e,t)){ud(e)&&(sd(Xu,e),dd()),t=jc(n);var r=Xu;if(!t||!cd(e,t))return ld(Xu,e),Ju=!1,void(Xu=e);ad(r,n)}}}function fd(e){var t=e.stateNode,n=e.memoizedProps,r=function(e,t,n){return Yc(n,e),n.mode,function(e,t){return e.nodeValue!==t}(e,t)}(t,n,e);if(r){var i=Xu;if(null!==i)switch(i.tag){case 3:i.stateNode.containerInfo;!function(e,t,n,r){Bl(t.nodeValue,n,r,!0)}(0,t,n,!!(1&i.mode));break;case 5:i.type;var o=i.memoizedProps;i.stateNode;!function(e,t,n,r,i,o){!0!==t[dc]&&Bl(r.nodeValue,i,o,!0)}(0,o,0,t,n,!!(1&i.mode))}}return r}function pd(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");!function(e,t){Yc(t,e)}(n,e)}function gd(e){var t=e.memoizedState,n=null!==t?t.dehydrated:null;if(!n)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 function(e){for(var t=e.nextSibling,n=0;t;){if(8===t.nodeType){var r=t.data;if(r===fc){if(0===n)return jc(t);n--}else r!==hc&&r!==gc&&r!==pc||n++}t=t.nextSibling}return null}(n)}function md(e){for(var t=e.return;null!==t&&5!==t.tag&&3!==t.tag&&t.tag!==u;)t=t.return;Xu=t}function vd(e){if(e!==Xu)return!1;if(!Ju)return md(e),Ju=!0,!1;if(3!==e.tag&&(5!==e.tag||"head"!==(n=e.type)&&"body"!==n&&!xc(e.type,e.memoizedProps))){var t=Zu;if(t)if(ud(e))yd(e),dd();else for(;t;)ad(e,t),t=jc(t)}var n;return md(e),Zu=e.tag===u?gd(e):Xu?jc(e.stateNode):null,!0}function yd(e){for(var t=Zu;t;)od(e,t),t=jc(t)}function bd(){Xu=null,Zu=null,Ju=!1,ed=!1}function wd(){null!==td&&(Yy(td),td=null)}function xd(){return Ju}function kd(e){null===td?td=[e]:td.push(e)}var Sd=n.ReactCurrentBatchConfig;var Td={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ed=function(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(", ")},Cd=[],Rd=[],Pd=[],_d=[],Dd=[],Id=[],Ad=new Set;Td.recordUnsafeLifecycleWarnings=function(e,t){Ad.has(e.type)||("function"==typeof t.componentWillMount&&!0!==t.componentWillMount.__suppressDeprecationWarning&&Cd.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillMount&&Rd.push(e),"function"==typeof t.componentWillReceiveProps&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&Pd.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillReceiveProps&&_d.push(e),"function"==typeof t.componentWillUpdate&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&Dd.push(e),8&e.mode&&"function"==typeof t.UNSAFE_componentWillUpdate&&Id.push(e))},Td.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;Cd.length>0&&(Cd.forEach(function(t){e.add(Ue(t)||"Component"),Ad.add(t.type)}),Cd=[]);var t=new Set;Rd.length>0&&(Rd.forEach(function(e){t.add(Ue(e)||"Component"),Ad.add(e.type)}),Rd=[]);var n=new Set;Pd.length>0&&(Pd.forEach(function(e){n.add(Ue(e)||"Component"),Ad.add(e.type)}),Pd=[]);var r=new Set;_d.length>0&&(_d.forEach(function(e){r.add(Ue(e)||"Component"),Ad.add(e.type)}),_d=[]);var a=new Set;Dd.length>0&&(Dd.forEach(function(e){a.add(Ue(e)||"Component"),Ad.add(e.type)}),Dd=[]);var s=new Set;(Id.length>0&&(Id.forEach(function(e){s.add(Ue(e)||"Component"),Ad.add(e.type)}),Id=[]),t.size>0)&&o("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.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n\nPlease update the following components: %s",Ed(t));r.size>0&&o("Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n\nPlease update the following components: %s",Ed(r));s.size>0&&o("Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n\nPlease update the following components: %s",Ed(s));e.size>0&&i("componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move code with side effects to componentDidMount, and set initial state in the constructor.\n* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Ed(e));n.size>0&&i("componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state\n* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Ed(n));a.size>0&&i("componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.\n\n* Move data fetching code or side effects to componentDidUpdate.\n* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.\n\nPlease update the following components: %s",Ed(a))};var Nd,Md,$d,Od,jd,Ld=new Map,Hd=new Set;Td.recordLegacyContextWarning=function(e,t){var n=function(e){for(var t=null,n=e;null!==n;)8&n.mode&&(t=n),n=n.return;return t}(e);if(null!==n){if(!Hd.has(e.type)){var r=Ld.get(n);(null!=e.type.contextTypes||null!=e.type.childContextTypes||null!==t&&"function"==typeof t.getChildContext)&&(void 0===r&&(r=[],Ld.set(n,r)),r.push(e))}}else o("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.")},Td.flushLegacyContextWarning=function(){Ld.forEach(function(e,t){if(0!==e.length){var n=e[0],r=new Set;e.forEach(function(e){r.add(Ue(e)||"Component"),Hd.add(e.type)});var i=Ed(r);try{Ge(n),o("Legacy context API has been detected within a strict-mode tree.\n\nThe old API will be supported in all 16.x releases, but applications using it should migrate to the new version.\n\nPlease update the following components: %s\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",i)}finally{Ye()}}})},Td.discardPendingWarnings=function(){Cd=[],Rd=[],Pd=[],_d=[],Dd=[],Id=[],Ld=new Map};var Fd;function Ud(e,t,n){var r,i=n.ref;if(null!==i&&"function"!=typeof i&&"object"!=typeof i){if(e.mode,!(n._owner&&n._self&&n._owner.stateNode!==n._self||n._owner&&1!==n._owner.tag)&&("function"!=typeof n.type||(r=n.type).prototype&&r.prototype.isReactComponent)&&n._owner){var a=Ue(e)||"Component";$d[a]||(o('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',a,i),$d[a]=!0)}if(n._owner){var s,l=n._owner;if(l){var c=l;if(1!==c.tag)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");s=c.stateNode}if(!s)throw new Error("Missing owner for string ref "+i+". This error is likely caused by a bug in React. Please file an issue.");var u=s;!function(e,t){if(D(e))o("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,_(e)),A(e)}(i,"ref");var d=""+i;if(null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===d)return t.ref;var h=function(e){var t=u.refs;null===e?delete t[d]:t[d]=e};return h._stringRef=d,h}if("string"!=typeof i)throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+i+") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://reactjs.org/link/refs-must-have-owner for more information.")}return i}function zd(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+("[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function qd(e){var t=Ue(e)||"Component";jd[t]||(jd[t]=!0,o("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 Vd(e){var t=e._payload;return(0,e._init)(t)}function Bd(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=ir):r.push(n)}}function n(n,r){if(!e)return null;for(var i=r;null!==i;)t(n,i),i=i.sibling;return null}function r(e,t){for(var n=new Map,r=t;null!==r;)null!==r.key?n.set(r.key,r):n.set(r.index,r),r=r.sibling;return n}function i(e,t){var n=Zb(e,t);return n.index=0,n.sibling=null,n}function a(t,n,r){if(t.index=r,!e)return t.flags|=mr,n;var i=t.alternate;if(null!==i){var o=i.index;return o<n?(t.flags|=2,n):o}return t.flags|=2,n}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){if(null===t||6!==t.tag){var o=iw(n,e.mode,r);return o.return=e,o}var a=i(t,n);return a.return=e,a}function c(e,t,n,r){var o=n.type;if(o===ie)return d(e,t,n.props.children,r,n.key);if(null!==t&&(t.elementType===o||Ub(t,n)||"object"==typeof o&&null!==o&&o.$$typeof===fe&&Vd(o)===t.type)){var a=i(t,n.props);return a.ref=Ud(e,t,n),a.return=e,a._debugSource=n._source,a._debugOwner=n._owner,a}var s=tw(n,e.mode,r);return s.ref=Ud(e,t,n),s.return=e,s}function u(e,t,n,r){if(null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation){var o=ow(n,e.mode,r);return o.return=e,o}var a=i(t,n.children||[]);return a.return=e,a}function d(e,t,n,r,o){if(null===t||7!==t.tag){var a=nw(n,e.mode,r,o);return a.return=e,a}var s=i(t,n);return s.return=e,s}function h(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t){var r=iw(""+t,e.mode,n);return r.return=e,r}if("object"==typeof t&&null!==t){switch(t.$$typeof){case ne:var i=tw(t,e.mode,n);return i.ref=Ud(e,null,t),i.return=e,i;case re:var o=ow(t,e.mode,n);return o.return=e,o;case fe:var a=t._payload;return h(e,(0,t._init)(a),n)}if(St(t)||me(t)){var s=nw(t,e.mode,n,null);return s.return=e,s}zd(0,t)}return"function"==typeof t&&qd(e),null}function f(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case ne:return n.key===i?c(e,t,n,r):null;case re:return n.key===i?u(e,t,n,r):null;case fe:var o=n._payload;return f(e,t,(0,n._init)(o),r)}if(St(n)||me(n))return null!==i?null:d(e,t,n,r,null);zd(0,n)}return"function"==typeof n&&qd(e),null}function p(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case ne:return c(t,e.get(null===r.key?n:r.key)||null,r,i);case re:return u(t,e.get(null===r.key?n:r.key)||null,r,i);case fe:var o=r._payload;return p(e,t,n,(0,r._init)(o),i)}if(St(r)||me(r))return d(t,e.get(n)||null,r,i,null);zd(0,r)}return"function"==typeof r&&qd(t),null}function g(e,t,n){if("object"!=typeof e||null===e)return t;switch(e.$$typeof){case ne:case re:Fd(e,n);var r=e.key;if("string"!=typeof r)break;if(null===t){(t=new Set).add(r);break}if(!t.has(r)){t.add(r);break}o("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.",r);break;case fe:var i=e._payload;g((0,e._init)(i),t,n)}return t}return function l(c,u,d,m){if("object"==typeof d&&null!==d&&d.type===ie&&null===d.key&&(d=d.props.children),"object"==typeof d&&null!==d){switch(d.$$typeof){case ne:return s(function(e,r,o,a){for(var s=o.key,l=r;null!==l;){if(l.key===s){var c=o.type;if(c===ie){if(7===l.tag){n(e,l.sibling);var u=i(l,o.props.children);return u.return=e,u._debugSource=o._source,u._debugOwner=o._owner,u}}else if(l.elementType===c||Ub(l,o)||"object"==typeof c&&null!==c&&c.$$typeof===fe&&Vd(c)===l.type){n(e,l.sibling);var d=i(l,o.props);return d.ref=Ud(e,l,o),d.return=e,d._debugSource=o._source,d._debugOwner=o._owner,d}n(e,l);break}t(e,l),l=l.sibling}if(o.type===ie){var h=nw(o.props.children,e.mode,a,o.key);return h.return=e,h}var f=tw(o,e.mode,a);return f.ref=Ud(e,r,o),f.return=e,f}(c,u,d,m));case re:return s(function(e,r,o,a){for(var s=o.key,l=r;null!==l;){if(l.key===s){if(4===l.tag&&l.stateNode.containerInfo===o.containerInfo&&l.stateNode.implementation===o.implementation){n(e,l.sibling);var c=i(l,o.children||[]);return c.return=e,c}n(e,l);break}t(e,l),l=l.sibling}var u=ow(o,e.mode,a);return u.return=e,u}(c,u,d,m));case fe:var v=d._payload;return l(c,u,(0,d._init)(v),m)}if(St(d))return function(i,o,s,l){for(var c=null,u=0;u<s.length;u++)c=g(s[u],c,i);for(var d=null,m=null,v=o,y=0,b=0,w=null;null!==v&&b<s.length;b++){v.index>b?(w=v,v=null):w=v.sibling;var x=f(i,v,s[b],l);if(null===x){null===v&&(v=w);break}e&&v&&null===x.alternate&&t(i,v),y=a(x,y,b),null===m?d=x:m.sibling=x,m=x,v=w}if(b===s.length)return n(i,v),xd()&&Bu(i,b),d;if(null===v){for(;b<s.length;b++){var k=h(i,s[b],l);null!==k&&(y=a(k,y,b),null===m?d=k:m.sibling=k,m=k)}return xd()&&Bu(i,b),d}for(var S=r(0,v);b<s.length;b++){var T=p(S,i,b,s[b],l);null!==T&&(e&&null!==T.alternate&&S.delete(null===T.key?b:T.key),y=a(T,y,b),null===m?d=T:m.sibling=T,m=T)}return e&&S.forEach(function(e){return t(i,e)}),xd()&&Bu(i,b),d}(c,u,d,m);if(me(d))return function(i,s,l,c){var u=me(l);if("function"!=typeof u)throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");"function"==typeof Symbol&&"Generator"===l[Symbol.toStringTag]&&(Md||o("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."),Md=!0),l.entries===u&&(Nd||o("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Nd=!0);var d=u.call(l);if(d)for(var m=null,v=d.next();!v.done;v=d.next())m=g(v.value,m,i);var y=u.call(l);if(null==y)throw new Error("An iterable object provided no iterator.");for(var b=null,w=null,x=s,k=0,S=0,T=null,E=y.next();null!==x&&!E.done;S++,E=y.next()){x.index>S?(T=x,x=null):T=x.sibling;var C=f(i,x,E.value,c);if(null===C){null===x&&(x=T);break}e&&x&&null===C.alternate&&t(i,x),k=a(C,k,S),null===w?b=C:w.sibling=C,w=C,x=T}if(E.done)return n(i,x),xd()&&Bu(i,S),b;if(null===x){for(;!E.done;S++,E=y.next()){var R=h(i,E.value,c);null!==R&&(k=a(R,k,S),null===w?b=R:w.sibling=R,w=R)}return xd()&&Bu(i,S),b}for(var P=r(0,x);!E.done;S++,E=y.next()){var _=p(P,i,S,E.value,c);null!==_&&(e&&null!==_.alternate&&P.delete(null===_.key?S:_.key),k=a(_,k,S),null===w?b=_:w.sibling=_,w=_)}return e&&P.forEach(function(e){return t(i,e)}),xd()&&Bu(i,S),b}(c,u,d,m);zd(0,d)}return"string"==typeof d&&""!==d||"number"==typeof d?s(function(e,t,r,o){if(null!==t&&6===t.tag){n(e,t.sibling);var a=i(t,r);return a.return=e,a}n(e,t);var s=iw(r,e.mode,o);return s.return=e,s}(c,u,""+d,m)):("function"==typeof d&&qd(c),n(c,u))}}Nd=!1,Md=!1,$d={},Od={},jd={},Fd=function(e,t){if(null!==e&&"object"==typeof e&&e._store&&!e._store.validated&&null==e.key){if("object"!=typeof e._store)throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=Ue(t)||"Component";Od[n]||(Od[n]=!0,o('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};var Wd=Bd(!0),Yd=Bd(!1);function Gd(e,t){for(var n=e.child;null!==n;)Jb(n,t),n=n.sibling}var Kd,Qd=uu(null);Kd={};var Xd=null,Zd=null,Jd=null,eh=!1;function th(){Xd=null,Zd=null,Jd=null,eh=!1}function nh(){eh=!0}function rh(){eh=!1}function ih(e,t,n){hu(Qd,t._currentValue,e),t._currentValue=n,void 0!==t._currentRenderer&&null!==t._currentRenderer&&t._currentRenderer!==Kd&&o("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=Kd}function oh(e,t){var n=Qd.current;du(Qd,t),e._currentValue=n}function ah(e,t,n){for(var r=e;null!==r;){var i=r.alternate;if(wo(r.childLanes,t)?null===i||wo(i.childLanes,t)||(i.childLanes=xo(i.childLanes,t)):(r.childLanes=xo(r.childLanes,t),null!==i&&(i.childLanes=xo(i.childLanes,t))),r===n)break;r=r.return}r!==n&&o("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 sh(e,t,n){!function(e,t,n){var r=e.child;null!==r&&(r.return=e);for(;null!==r;){var i=void 0,o=r.dependencies;if(null!==o){i=r.child;for(var a=o.firstContext;null!==a;){if(a.context===t){if(1===r.tag){var l=mo(n),c=Sh(no,l);c.tag=bh;var u=r.updateQueue;if(null===u);else{var d=u.shared,h=d.pending;null===h?c.next=c:(c.next=h.next,h.next=c),d.pending=c}}r.lanes=xo(r.lanes,n);var f=r.alternate;null!==f&&(f.lanes=xo(f.lanes,n)),ah(r.return,n,e),o.lanes=xo(o.lanes,n);break}a=a.next}}else if(r.tag===s)i=r.type===e.type?null:r.child;else if(r.tag===g){var p=r.return;if(null===p)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");p.lanes=xo(p.lanes,n);var m=p.alternate;null!==m&&(m.lanes=xo(m.lanes,n)),ah(p,n,e),i=r.sibling}else i=r.child;if(null!==i)i.return=r;else for(i=r;null!==i;){if(i===e){i=null;break}var v=i.sibling;if(null!==v){v.return=i.return,i=v;break}i=i.return}r=i}}(e,t,n)}function lh(e,t){Xd=e,Zd=null,Jd=null;var n=e.dependencies;null!==n&&(null!==n.firstContext&&(bo(n.lanes,t)&&ym(),n.firstContext=null))}function ch(e){eh&&o("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(Jd===e);else{var n={context:e,memoizedValue:t,next:null};if(null===Zd){if(null===Xd)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().");Zd=n,Xd.dependencies={lanes:0,firstContext:n}}else Zd=Zd.next=n}return t}var uh=null;function dh(e){null===uh?uh=[e]:uh.push(e)}function hh(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,dh(t)):(n.next=i.next,i.next=n),t.interleaved=n,gh(e,r)}function fh(e,t){return gh(e,t)}var ph=gh;function gh(e,t){e.lanes=xo(e.lanes,t);var n=e.alternate;null!==n&&(n.lanes=xo(n.lanes,t)),null===n&&4098&e.flags&&Cb(e);for(var r=e,i=e.return;null!==i;)i.childLanes=xo(i.childLanes,t),null!==(n=i.alternate)?n.childLanes=xo(n.childLanes,t):4098&i.flags&&Cb(e),r=i,i=i.return;return 3===r.tag?r.stateNode:null}var mh,vh,yh=0,bh=2,wh=!1;function xh(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null};e.updateQueue=t}function kh(e,t){var n=t.updateQueue,r=e.updateQueue;if(n===r){var i={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects};t.updateQueue=i}}function Sh(e,t){return{eventTime:e,lane:t,tag:yh,payload:null,callback:null,next:null}}function Th(e,t,n){var r=e.updateQueue;if(null===r)return null;var i=r.shared;if(vh!==i||mh||(o("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."),mh=!0),(ey&Bv)!==Vv){var a=i.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),i.pending=t,ph(e,n)}return function(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,dh(t)):(n.next=i.next,i.next=n),t.interleaved=n,gh(e,r)}(e,i,t,n)}function Eh(e,t,n){var r=t.updateQueue;if(null!==r){var i=r.shared;if(fo(n)){var o=i.lanes,a=xo(o=So(o,e.pendingLanes),n);i.lanes=a,Ro(e,a)}}}function Ch(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r){var i=r.updateQueue;if(n===i){var o=null,a=null,s=n.firstBaseUpdate;if(null!==s){var l=s;do{var c={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};null===a?o=a=c:(a.next=c,a=c),l=l.next}while(null!==l);null===a?o=a=t:(a.next=t,a=t)}else o=a=t;return n={baseState:i.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:i.shared,effects:i.effects},void(e.updateQueue=n)}}var u=n.lastBaseUpdate;null===u?n.firstBaseUpdate=t:u.next=t,n.lastBaseUpdate=t}function Rh(e,t,n,r,i,o){switch(n.tag){case 1:var a=n.payload;if("function"==typeof a){nh();var s=a.call(o,r,i);if(8&e.mode){ei(!0);try{a.call(o,r,i)}finally{ei(!1)}}return rh(),s}return a;case 3:e.flags=-65537&e.flags|or;case yh:var l,c=n.payload;if("function"==typeof c){if(nh(),l=c.call(o,r,i),8&e.mode){ei(!0);try{c.call(o,r,i)}finally{ei(!1)}}rh()}else l=c;return null==l?r:Te({},r,l);case bh:return wh=!0,r}return r}function Ph(e,t,n,r){var i=e.updateQueue;wh=!1,vh=i.shared;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,c=l.next;l.next=null,null===a?o=c:a.next=c,a=l;var u=e.alternate;if(null!==u){var d=u.updateQueue,h=d.lastBaseUpdate;h!==a&&(null===h?d.firstBaseUpdate=c:h.next=c,d.lastBaseUpdate=l)}}if(null!==o){for(var f=i.baseState,p=0,g=null,m=null,v=null,y=o;;){var b=y.lane,w=y.eventTime;if(wo(r,b)){if(null!==v){var x={eventTime:w,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null};v=v.next=x}if(f=Rh(e,0,y,f,t,n),null!==y.callback&&0!==y.lane){e.flags|=64;var k=i.effects;null===k?i.effects=[y]:k.push(y)}}else{var S={eventTime:w,lane:b,tag:y.tag,payload:y.payload,callback:y.callback,next:null};null===v?(m=v=S,g=f):v=v.next=S,p=xo(p,b)}if(null===(y=y.next)){if(null===(s=i.shared.pending))break;var T=s,E=T.next;T.next=null,y=E,i.lastBaseUpdate=T,i.shared.pending=null}}null===v&&(g=f),i.baseState=g,i.firstBaseUpdate=m,i.lastBaseUpdate=v;var C=i.shared.interleaved;if(null!==C){var R=C;do{p=xo(p,R.lane),R=R.next}while(R!==C)}else null===o&&(i.shared.lanes=0);ob(p),e.lanes=p,e.memoizedState=f}vh=null}function _h(e,t){if("function"!=typeof e)throw new Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function Dh(){wh=!1}function Ih(){return wh}function Ah(e,t,n){var r=t.effects;if(t.effects=null,null!==r)for(var i=0;i<r.length;i++){var o=r[i],a=o.callback;null!==a&&(o.callback=null,_h(a,n))}}mh=!1,vh=null;var Nh={},Mh=uu(Nh),$h=uu(Nh),Oh=uu(Nh);function jh(e){if(e===Nh)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 Lh(){return jh(Oh.current)}function Hh(e,t){hu(Oh,t,e),hu($h,e,e),hu(Mh,Nh,e);var n=function(e){var t,n,r=e.nodeType;switch(r){case 9:case 11:t=9===r?"#document":"#fragment";var i=e.documentElement;n=i?i.namespaceURI:jt(null,"");break;default:var o=8===r?e.parentNode:e;n=jt(o.namespaceURI||null,t=o.tagName)}var a=t.toLowerCase();return{namespace:n,ancestorInfo:ic(null,a)}}(t);du(Mh,e),hu(Mh,n,e)}function Fh(e){du(Mh,e),du($h,e),du(Oh,e)}function Uh(){return jh(Mh.current)}function zh(e){jh(Oh.current);var t,n,r,i=jh(Mh.current),o=(t=i,n=e.type,{namespace:jt((r=t).namespace,n),ancestorInfo:ic(r.ancestorInfo,n)});i!==o&&(hu($h,e,e),hu(Mh,o,e))}function qh(e){$h.current===e&&(du(Mh,e),du($h,e))}var Vh=uu(0);function Bh(e,t){return 0!==(e&t)}function Wh(e){return 1&e}function Yh(e,t){return 1&e|t}function Gh(e,t){hu(Vh,t,e)}function Kh(e){du(Vh,e)}function Qh(e,t){var n=e.memoizedState;return null!==n?null!==n.dehydrated:(e.memoizedProps,!0)}function Xh(e){for(var t=e;null!==t;){if(t.tag===u){var n=t.memoizedState;if(null!==n){var r=n.dehydrated;if(null===r||Mc(r)||$c(r))return t}}else if(t.tag===m&&void 0!==t.memoizedProps.revealOrder){if(0!==(t.flags&or))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zh=[];function Jh(){for(var e=0;e<Zh.length;e++){Zh[e]._workInProgressVersionPrimary=null}Zh.length=0}function ef(e,t){var n=(0,t._getVersion)(t._source);null==e.mutableSourceEagerHydrationData?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n)}var tf,nf,rf=n.ReactCurrentDispatcher,of=n.ReactCurrentBatchConfig;tf=new Set;var af=0,sf=null,lf=null,cf=null,uf=!1,df=!1,hf=0,ff=0,pf=null,gf=null,mf=-1,vf=!1;function yf(){var e=pf;null===gf?gf=[e]:gf.push(e)}function bf(){var e=pf;null!==gf&&(mf++,gf[mf]!==e&&function(e){var t=Ue(sf);if(!tf.has(t)&&(tf.add(t),null!==gf)){for(var n="",r=30,i=0;i<=mf;i++){for(var a=gf[i],s=i===mf?e:a,l=i+1+". "+a;l.length<r;)l+=" ";n+=l+=s+"\n"}o("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\n\n Previous render Next render\n ------------------------------------------------------\n%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n",t,n)}}(e))}function wf(e){null==e||St(e)||o("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",pf,typeof e)}function xf(){throw new Error("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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.")}function kf(e,t){if(vf)return!1;if(null===t)return o("%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.",pf),!1;e.length!==t.length&&o("The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",pf,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Is(e[n],t[n]))return!1;return!0}function Sf(e,t,n,r,i,a){af=a,sf=t,gf=null!==e?e._debugHookTypes:null,mf=-1,vf=null!==e&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=0,null!==e&&null!==e.memoizedState?rf.current=_p:rf.current=null!==gf?Pp:Rp;var s=n(r,i);if(df){var l=0;do{if(df=!1,hf=0,l>=25)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,vf=!1,lf=null,cf=null,t.updateQueue=null,mf=-1,rf.current=Dp,s=n(r,i)}while(df)}rf.current=Cp,t._debugHookTypes=gf;var c=null!==lf&&null!==lf.next;if(af=0,sf=null,lf=null,cf=null,pf=null,gf=null,mf=-1,null!==e&&(e.flags&Er)!==(t.flags&Er)&&1&e.mode&&o("Internal React error: Expected static flag was missing. Please notify the React team."),uf=!1,c)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return s}function Tf(){var e=0!==hf;return hf=0,e}function Ef(e,t,n){t.updateQueue=e.updateQueue,0!==(t.mode&bi)?t.flags&=-50333701:t.flags&=-2053,e.lanes=ko(e.lanes,n)}function Cf(){if(rf.current=Cp,uf){for(var e=sf.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}uf=!1}af=0,sf=null,lf=null,cf=null,gf=null,mf=-1,pf=null,vp=!1,df=!1,hf=0}function Rf(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===cf?sf.memoizedState=cf=e:cf=cf.next=e,cf}function Pf(){var e,t;if(null===lf){var n=sf.alternate;e=null!==n?n.memoizedState:null}else e=lf.next;if(null!==(t=null===cf?sf.memoizedState:cf.next))t=(cf=t).next,lf=e;else{if(null===e)throw new Error("Rendered more hooks than during the previous render.");var r={memoizedState:(lf=e).memoizedState,baseState:lf.baseState,baseQueue:lf.baseQueue,queue:lf.queue,next:null};null===cf?sf.memoizedState=cf=r:cf=cf.next=r}return cf}function _f(e,t){return"function"==typeof t?t(e):t}function Df(e,t,n){var r,i=Rf();r=void 0!==n?n(t):t,i.memoizedState=i.baseState=r;var o={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};i.queue=o;var a=o.dispatch=wp.bind(null,sf,o);return[i.memoizedState,a]}function If(e,t,n){var r=Pf(),i=r.queue;if(null===i)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");i.lastRenderedReducer=e;var a=lf,s=a.baseQueue,l=i.pending;if(null!==l){if(null!==s){var c=s.next,u=l.next;s.next=u,l.next=c}a.baseQueue!==s&&o("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),a.baseQueue=s=l,i.pending=null}if(null!==s){var d=s.next,h=a.baseState,f=null,p=null,g=null,m=d;do{var v=m.lane;if(wo(af,v)){if(null!==g){var y={lane:0,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null};g=g.next=y}if(m.hasEagerState)h=m.eagerState;else h=e(h,m.action)}else{var b={lane:v,action:m.action,hasEagerState:m.hasEagerState,eagerState:m.eagerState,next:null};null===g?(p=g=b,f=h):g=g.next=b,sf.lanes=xo(sf.lanes,v),ob(v)}m=m.next}while(null!==m&&m!==d);null===g?f=h:g.next=p,Is(h,r.memoizedState)||ym(),r.memoizedState=h,r.baseState=f,r.baseQueue=g,i.lastRenderedState=h}var w=i.interleaved;if(null!==w){var x=w;do{var k=x.lane;sf.lanes=xo(sf.lanes,k),ob(k),x=x.next}while(x!==w)}else null===s&&(i.lanes=0);var S=i.dispatch;return[r.memoizedState,S]}function Af(e,t,n){var r=Pf(),i=r.queue;if(null===i)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");i.lastRenderedReducer=e;var o=i.dispatch,a=i.pending,s=r.memoizedState;if(null!==a){i.pending=null;var l=a.next,c=l;do{s=e(s,c.action),c=c.next}while(c!==l);Is(s,r.memoizedState)||ym(),r.memoizedState=s,null===r.baseQueue&&(r.baseState=s),i.lastRenderedState=s}return[s,o]}function Nf(e,t,n){var r,i=sf,a=Rf();if(xd()){if(void 0===n)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");r=n(),nf||r!==n()&&(o("The result of getServerSnapshot should be cached to avoid an infinite loop"),nf=!0)}else{if(r=t(),!nf){var s=t();Is(r,s)||(o("The result of getSnapshot should be cached to avoid an infinite loop"),nf=!0)}var l=Hy();if(null===l)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ho(0,af)||$f(i,t,r)}a.memoizedState=r;var c={value:r,getSnapshot:t};return a.queue=c,Gf(jf.bind(null,i,c,e),[e]),i.flags|=cr,qf(9,Of.bind(null,i,c,r,t),void 0,null),r}function Mf(e,t,n){var r=sf,i=Pf(),a=t();if(!nf){var s=t();Is(a,s)||(o("The result of getSnapshot should be cached to avoid an infinite loop"),nf=!0)}var l=i.memoizedState,c=!Is(l,a);c&&(i.memoizedState=a,ym());var u=i.queue;if(Kf(jf.bind(null,r,u,e),[e]),u.getSnapshot!==t||c||null!==cf&&1&cf.memoizedState.tag){r.flags|=cr,qf(9,Of.bind(null,r,u,a,t),void 0,null);var d=Hy();if(null===d)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");ho(0,af)||$f(r,t,a)}return a}function $f(e,t,n){e.flags|=hr;var r={getSnapshot:t,value:n},i=sf.updateQueue;if(null===i)i={lastEffect:null,stores:null},sf.updateQueue=i,i.stores=[r];else{var o=i.stores;null===o?i.stores=[r]:o.push(r)}}function Of(e,t,n,r){t.value=n,t.getSnapshot=r,Lf(t)&&Hf(e)}function jf(e,t,n){return n(function(){Lf(t)&&Hf(e)})}function Lf(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!Is(n,r)}catch(i){return!0}}function Hf(e){var t=fh(e,Ti);null!==t&&qy(t,e,Ti,no)}function Ff(e){var t=Rf();"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_f,lastRenderedState:e};t.queue=n;var r=n.dispatch=xp.bind(null,sf,n);return[t.memoizedState,r]}function Uf(e){return If(_f)}function zf(e){return Af(_f)}function qf(e,t,n,r){var i={tag:e,create:t,destroy:n,deps:r,next:null},o=sf.updateQueue;if(null===o)o={lastEffect:null,stores:null},sf.updateQueue=o,o.lastEffect=i.next=i;else{var a=o.lastEffect;if(null===a)o.lastEffect=i.next=i;else{var s=a.next;a.next=i,i.next=s,o.lastEffect=i}}return i}function Vf(e){var t={current:e};return Rf().memoizedState=t,t}function Bf(e){return Pf().memoizedState}function Wf(e,t,n,r){var i=Rf(),o=void 0===r?null:r;sf.flags|=e,i.memoizedState=qf(1|t,n,void 0,o)}function Yf(e,t,n,r){var i=Pf(),o=void 0===r?null:r,a=void 0;if(null!==lf){var s=lf.memoizedState;if(a=s.destroy,null!==o)if(kf(o,s.deps))return void(i.memoizedState=qf(t,n,a,o))}sf.flags|=e,i.memoizedState=qf(1|t,n,a,o)}function Gf(e,t){return 0!==(sf.mode&bi)?Wf(41945088,8,e,t):Wf(8390656,8,e,t)}function Kf(e,t){return Yf(cr,8,e,t)}function Qf(e,t){return Wf(4,2,e,t)}function Xf(e,t){return Yf(4,2,e,t)}function Zf(e,t){var n=4;return n|=yr,0!==(sf.mode&bi)&&(n|=br),Wf(n,4,e,t)}function Jf(e,t){return Yf(4,4,e,t)}function ep(e,t){if("function"==typeof t){var n=t,r=e();return n(r),function(){n(null)}}if(null!=t){var i=t;i.hasOwnProperty("current")||o("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(i).join(", ")+"}");var a=e();return i.current=a,function(){i.current=null}}}function tp(e,t,n){"function"!=typeof t&&o("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null,i=4;return i|=yr,0!==(sf.mode&bi)&&(i|=br),Wf(i,4,ep.bind(null,t,e),r)}function np(e,t,n){"function"!=typeof t&&o("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",null!==t?typeof t:"null");var r=null!=n?n.concat([e]):null;return Yf(4,4,ep.bind(null,t,e),r)}function rp(e,t){}var ip=rp;function op(e,t){var n=void 0===t?null:t;return Rf().memoizedState=[e,n],e}function ap(e,t){var n=Pf(),r=void 0===t?null:t,i=n.memoizedState;if(null!==i&&(null!==r&&kf(r,i[1])))return i[0];return n.memoizedState=[e,r],e}function sp(e,t){var n=Rf(),r=void 0===t?null:t,i=e();return n.memoizedState=[i,r],i}function lp(e,t){var n=Pf(),r=void 0===t?null:t,i=n.memoizedState;if(null!==i&&(null!==r&&kf(r,i[1])))return i[0];var o=e();return n.memoizedState=[o,r],o}function cp(e){return Rf().memoizedState=e,e}function up(e){return hp(Pf(),lf.memoizedState,e)}function dp(e){var t=Pf();return null===lf?(t.memoizedState=e,e):hp(t,lf.memoizedState,e)}function hp(e,t,n){if(!(0===(af&(Ti|Ci|Pi)))){if(!Is(n,t)){var r=po();sf.lanes=xo(sf.lanes,r),ob(r),e.baseState=!0}return t}return e.baseState&&(e.baseState=!1,ym()),e.memoizedState=n,n}function fp(e,t,n){var r,o,a=Fo();Uo((o=Oo,0!==(r=a)&&r<o?r:o)),e(!0);var s=of.transition;of.transition={};var l=of.transition;of.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Uo(a),of.transition=s,null===s&&l._updatedFibers)l._updatedFibers.size>10&&i("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."),l._updatedFibers.clear()}}function pp(){var e=Ff(!1),t=e[0],n=e[1],r=fp.bind(null,n);return Rf().memoizedState=r,[t,r]}function gp(){return[Uf()[0],Pf().memoizedState]}function mp(){return[zf()[0],Pf().memoizedState]}var vp=!1;function yp(){var e,t=Rf(),n=Hy().identifierPrefix;if(xd()){e=":"+n+"R"+Vu();var r=hf++;r>0&&(e+="H"+r.toString(32)),e+=":"}else{e=":"+n+"r"+(ff++).toString(32)+":"}return t.memoizedState=e,e}function bp(){return Pf().memoizedState}function wp(e,t,n){"function"==typeof arguments[3]&&o("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 r=Uy(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kp(e))Sp(t,i);else{var a=hh(e,t,i,r);if(null!==a)qy(a,e,r,Fy()),Tp(a,t,r)}Ep(e,r)}function xp(e,t,n){"function"==typeof arguments[3]&&o("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 r=Uy(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(kp(e))Sp(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)){var s=t.lastRenderedReducer;if(null!==s){var l;l=rf.current,rf.current=Ap;try{var c=t.lastRenderedState,u=s(c,n);if(i.hasEagerState=!0,i.eagerState=u,Is(u,c))return void function(e,t,n){var r=t.interleaved;null===r?(n.next=n,dh(t)):(n.next=r.next,r.next=n),t.interleaved=n}(0,t,i)}catch(h){}finally{rf.current=l}}}var d=hh(e,t,i,r);if(null!==d)qy(d,e,r,Fy()),Tp(d,t,r)}Ep(e,r)}function kp(e){var t=e.alternate;return e===sf||null!==t&&t===sf}function Sp(e,t){df=uf=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Tp(e,t,n){if(fo(n)){var r=t.lanes,i=xo(r=So(r,e.pendingLanes),n);t.lanes=i,Ro(e,i)}}function Ep(e,t,n){yi(e,t)}var Cp={readContext:ch,useCallback:xf,useContext:xf,useEffect:xf,useImperativeHandle:xf,useInsertionEffect:xf,useLayoutEffect:xf,useMemo:xf,useReducer:xf,useRef:xf,useState:xf,useDebugValue:xf,useDeferredValue:xf,useTransition:xf,useMutableSource:xf,useSyncExternalStore:xf,useId:xf,unstable_isNewReconciler:w},Rp=null,Pp=null,_p=null,Dp=null,Ip=null,Ap=null,Np=null,Mp=function(){o("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().")},$p=function(){o("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")};Rp={readContext:function(e){return ch(e)},useCallback:function(e,t){return pf="useCallback",yf(),wf(t),op(e,t)},useContext:function(e){return pf="useContext",yf(),ch(e)},useEffect:function(e,t){return pf="useEffect",yf(),wf(t),Gf(e,t)},useImperativeHandle:function(e,t,n){return pf="useImperativeHandle",yf(),wf(n),tp(e,t,n)},useInsertionEffect:function(e,t){return pf="useInsertionEffect",yf(),wf(t),Qf(e,t)},useLayoutEffect:function(e,t){return pf="useLayoutEffect",yf(),wf(t),Zf(e,t)},useMemo:function(e,t){pf="useMemo",yf(),wf(t);var n=rf.current;rf.current=Ip;try{return sp(e,t)}finally{rf.current=n}},useReducer:function(e,t,n){pf="useReducer",yf();var r=rf.current;rf.current=Ip;try{return Df(e,t,n)}finally{rf.current=r}},useRef:function(e){return pf="useRef",yf(),Vf(e)},useState:function(e){pf="useState",yf();var t=rf.current;rf.current=Ip;try{return Ff(e)}finally{rf.current=t}},useDebugValue:function(e,t){pf="useDebugValue",yf()},useDeferredValue:function(e){return pf="useDeferredValue",yf(),cp(e)},useTransition:function(){return pf="useTransition",yf(),pp()},useMutableSource:function(e,t,n){pf="useMutableSource",yf()},useSyncExternalStore:function(e,t,n){return pf="useSyncExternalStore",yf(),Nf(e,t,n)},useId:function(){return pf="useId",yf(),yp()},unstable_isNewReconciler:w},Pp={readContext:function(e){return ch(e)},useCallback:function(e,t){return pf="useCallback",bf(),op(e,t)},useContext:function(e){return pf="useContext",bf(),ch(e)},useEffect:function(e,t){return pf="useEffect",bf(),Gf(e,t)},useImperativeHandle:function(e,t,n){return pf="useImperativeHandle",bf(),tp(e,t,n)},useInsertionEffect:function(e,t){return pf="useInsertionEffect",bf(),Qf(e,t)},useLayoutEffect:function(e,t){return pf="useLayoutEffect",bf(),Zf(e,t)},useMemo:function(e,t){pf="useMemo",bf();var n=rf.current;rf.current=Ip;try{return sp(e,t)}finally{rf.current=n}},useReducer:function(e,t,n){pf="useReducer",bf();var r=rf.current;rf.current=Ip;try{return Df(e,t,n)}finally{rf.current=r}},useRef:function(e){return pf="useRef",bf(),Vf(e)},useState:function(e){pf="useState",bf();var t=rf.current;rf.current=Ip;try{return Ff(e)}finally{rf.current=t}},useDebugValue:function(e,t){pf="useDebugValue",bf()},useDeferredValue:function(e){return pf="useDeferredValue",bf(),cp(e)},useTransition:function(){return pf="useTransition",bf(),pp()},useMutableSource:function(e,t,n){pf="useMutableSource",bf()},useSyncExternalStore:function(e,t,n){return pf="useSyncExternalStore",bf(),Nf(e,t,n)},useId:function(){return pf="useId",bf(),yp()},unstable_isNewReconciler:w},_p={readContext:function(e){return ch(e)},useCallback:function(e,t){return pf="useCallback",bf(),ap(e,t)},useContext:function(e){return pf="useContext",bf(),ch(e)},useEffect:function(e,t){return pf="useEffect",bf(),Kf(e,t)},useImperativeHandle:function(e,t,n){return pf="useImperativeHandle",bf(),np(e,t,n)},useInsertionEffect:function(e,t){return pf="useInsertionEffect",bf(),Xf(e,t)},useLayoutEffect:function(e,t){return pf="useLayoutEffect",bf(),Jf(e,t)},useMemo:function(e,t){pf="useMemo",bf();var n=rf.current;rf.current=Ap;try{return lp(e,t)}finally{rf.current=n}},useReducer:function(e,t,n){pf="useReducer",bf();var r=rf.current;rf.current=Ap;try{return If(e)}finally{rf.current=r}},useRef:function(e){return pf="useRef",bf(),Bf()},useState:function(e){pf="useState",bf();var t=rf.current;rf.current=Ap;try{return Uf()}finally{rf.current=t}},useDebugValue:function(e,t){return pf="useDebugValue",bf(),ip()},useDeferredValue:function(e){return pf="useDeferredValue",bf(),up(e)},useTransition:function(){return pf="useTransition",bf(),gp()},useMutableSource:function(e,t,n){pf="useMutableSource",bf()},useSyncExternalStore:function(e,t,n){return pf="useSyncExternalStore",bf(),Mf(e,t)},useId:function(){return pf="useId",bf(),bp()},unstable_isNewReconciler:w},Dp={readContext:function(e){return ch(e)},useCallback:function(e,t){return pf="useCallback",bf(),ap(e,t)},useContext:function(e){return pf="useContext",bf(),ch(e)},useEffect:function(e,t){return pf="useEffect",bf(),Kf(e,t)},useImperativeHandle:function(e,t,n){return pf="useImperativeHandle",bf(),np(e,t,n)},useInsertionEffect:function(e,t){return pf="useInsertionEffect",bf(),Xf(e,t)},useLayoutEffect:function(e,t){return pf="useLayoutEffect",bf(),Jf(e,t)},useMemo:function(e,t){pf="useMemo",bf();var n=rf.current;rf.current=Np;try{return lp(e,t)}finally{rf.current=n}},useReducer:function(e,t,n){pf="useReducer",bf();var r=rf.current;rf.current=Np;try{return Af(e)}finally{rf.current=r}},useRef:function(e){return pf="useRef",bf(),Bf()},useState:function(e){pf="useState",bf();var t=rf.current;rf.current=Np;try{return zf()}finally{rf.current=t}},useDebugValue:function(e,t){return pf="useDebugValue",bf(),ip()},useDeferredValue:function(e){return pf="useDeferredValue",bf(),dp(e)},useTransition:function(){return pf="useTransition",bf(),mp()},useMutableSource:function(e,t,n){pf="useMutableSource",bf()},useSyncExternalStore:function(e,t,n){return pf="useSyncExternalStore",bf(),Mf(e,t)},useId:function(){return pf="useId",bf(),bp()},unstable_isNewReconciler:w},Ip={readContext:function(e){return Mp(),ch(e)},useCallback:function(e,t){return pf="useCallback",$p(),yf(),op(e,t)},useContext:function(e){return pf="useContext",$p(),yf(),ch(e)},useEffect:function(e,t){return pf="useEffect",$p(),yf(),Gf(e,t)},useImperativeHandle:function(e,t,n){return pf="useImperativeHandle",$p(),yf(),tp(e,t,n)},useInsertionEffect:function(e,t){return pf="useInsertionEffect",$p(),yf(),Qf(e,t)},useLayoutEffect:function(e,t){return pf="useLayoutEffect",$p(),yf(),Zf(e,t)},useMemo:function(e,t){pf="useMemo",$p(),yf();var n=rf.current;rf.current=Ip;try{return sp(e,t)}finally{rf.current=n}},useReducer:function(e,t,n){pf="useReducer",$p(),yf();var r=rf.current;rf.current=Ip;try{return Df(e,t,n)}finally{rf.current=r}},useRef:function(e){return pf="useRef",$p(),yf(),Vf(e)},useState:function(e){pf="useState",$p(),yf();var t=rf.current;rf.current=Ip;try{return Ff(e)}finally{rf.current=t}},useDebugValue:function(e,t){pf="useDebugValue",$p(),yf()},useDeferredValue:function(e){return pf="useDeferredValue",$p(),yf(),cp(e)},useTransition:function(){return pf="useTransition",$p(),yf(),pp()},useMutableSource:function(e,t,n){pf="useMutableSource",$p(),yf()},useSyncExternalStore:function(e,t,n){return pf="useSyncExternalStore",$p(),yf(),Nf(e,t,n)},useId:function(){return pf="useId",$p(),yf(),yp()},unstable_isNewReconciler:w},Ap={readContext:function(e){return Mp(),ch(e)},useCallback:function(e,t){return pf="useCallback",$p(),bf(),ap(e,t)},useContext:function(e){return pf="useContext",$p(),bf(),ch(e)},useEffect:function(e,t){return pf="useEffect",$p(),bf(),Kf(e,t)},useImperativeHandle:function(e,t,n){return pf="useImperativeHandle",$p(),bf(),np(e,t,n)},useInsertionEffect:function(e,t){return pf="useInsertionEffect",$p(),bf(),Xf(e,t)},useLayoutEffect:function(e,t){return pf="useLayoutEffect",$p(),bf(),Jf(e,t)},useMemo:function(e,t){pf="useMemo",$p(),bf();var n=rf.current;rf.current=Ap;try{return lp(e,t)}finally{rf.current=n}},useReducer:function(e,t,n){pf="useReducer",$p(),bf();var r=rf.current;rf.current=Ap;try{return If(e)}finally{rf.current=r}},useRef:function(e){return pf="useRef",$p(),bf(),Bf()},useState:function(e){pf="useState",$p(),bf();var t=rf.current;rf.current=Ap;try{return Uf()}finally{rf.current=t}},useDebugValue:function(e,t){return pf="useDebugValue",$p(),bf(),ip()},useDeferredValue:function(e){return pf="useDeferredValue",$p(),bf(),up(e)},useTransition:function(){return pf="useTransition",$p(),bf(),gp()},useMutableSource:function(e,t,n){pf="useMutableSource",$p(),bf()},useSyncExternalStore:function(e,t,n){return pf="useSyncExternalStore",$p(),bf(),Mf(e,t)},useId:function(){return pf="useId",$p(),bf(),bp()},unstable_isNewReconciler:w},Np={readContext:function(e){return Mp(),ch(e)},useCallback:function(e,t){return pf="useCallback",$p(),bf(),ap(e,t)},useContext:function(e){return pf="useContext",$p(),bf(),ch(e)},useEffect:function(e,t){return pf="useEffect",$p(),bf(),Kf(e,t)},useImperativeHandle:function(e,t,n){return pf="useImperativeHandle",$p(),bf(),np(e,t,n)},useInsertionEffect:function(e,t){return pf="useInsertionEffect",$p(),bf(),Xf(e,t)},useLayoutEffect:function(e,t){return pf="useLayoutEffect",$p(),bf(),Jf(e,t)},useMemo:function(e,t){pf="useMemo",$p(),bf();var n=rf.current;rf.current=Ap;try{return lp(e,t)}finally{rf.current=n}},useReducer:function(e,t,n){pf="useReducer",$p(),bf();var r=rf.current;rf.current=Ap;try{return Af(e)}finally{rf.current=r}},useRef:function(e){return pf="useRef",$p(),bf(),Bf()},useState:function(e){pf="useState",$p(),bf();var t=rf.current;rf.current=Ap;try{return zf()}finally{rf.current=t}},useDebugValue:function(e,t){return pf="useDebugValue",$p(),bf(),ip()},useDeferredValue:function(e){return pf="useDeferredValue",$p(),bf(),dp(e)},useTransition:function(){return pf="useTransition",$p(),bf(),mp()},useMutableSource:function(e,t,n){pf="useMutableSource",$p(),bf()},useSyncExternalStore:function(e,t,n){return pf="useSyncExternalStore",$p(),bf(),Mf(e,t)},useId:function(){return pf="useId",$p(),bf(),bp()},unstable_isNewReconciler:w};var Op=t.unstable_now,jp=0,Lp=-1,Hp=-1,Fp=-1,Up=!1,zp=!1;function qp(){return Up}function Vp(){return jp}function Bp(){jp=Op()}function Wp(e){Hp=Op(),e.actualStartTime<0&&(e.actualStartTime=Op())}function Yp(e){Hp=-1}function Gp(e,t){if(Hp>=0){var n=Op()-Hp;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Hp=-1}}function Kp(e){if(Lp>=0){var t=Op()-Lp;Lp=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:return void(n.stateNode.effectDuration+=t);case c:return void(n.stateNode.effectDuration+=t)}n=n.return}}}function Qp(e){if(Fp>=0){var t=Op()-Fp;Fp=-1;for(var n=e.return;null!==n;){switch(n.tag){case 3:var r=n.stateNode;return void(null!==r&&(r.passiveEffectDuration+=t));case c:var i=n.stateNode;return void(null!==i&&(i.passiveEffectDuration+=t))}n=n.return}}}function Xp(){Lp=Op()}function Zp(){Fp=Op()}function Jp(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function eg(e,t){if(e&&e.defaultProps){var n=Te({},t),r=e.defaultProps;for(var i in r)void 0===n[i]&&(n[i]=r[i]);return n}return t}var tg,ng,rg,ig,og,ag,sg,lg,cg,ug,dg,hg={};tg=new Set,ng=new Set,rg=new Set,ig=new Set,lg=new Set,og=new Set,cg=new Set,ug=new Set,dg=new Set;var fg=new Set;function pg(e,t,n,r){var i=e.memoizedState,o=n(r,i);if(8&e.mode){ei(!0);try{o=n(r,i)}finally{ei(!1)}}ag(t,o);var a=null==o?i:Te({},i,o);(e.memoizedState=a,0===e.lanes)&&(e.updateQueue.baseState=a)}sg=function(e,t){if(null!==e&&"function"!=typeof e){var n=t+"_"+e;fg.has(n)||(fg.add(n),o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},ag=function(e,t){if(void 0===t){var n=He(e)||"Component";og.has(n)||(og.add(n),o("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(hg,"_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(hg);var gg={isMounted:function(e){var t=Cr.current;if(null!==t&&1===t.tag){var n=t,r=n.stateNode;r._warnedAboutRefsInRender||o("%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.",Ue(n)||"A component"),r._warnedAboutRefsInRender=!0}var i=rr(e);return!!i&&Rr(i)===i},enqueueSetState:function(e,t,n){var r=rr(e),i=Fy(),o=Uy(r),a=Sh(i,o);a.payload=t,null!=n&&(sg(n,"setState"),a.callback=n);var s=Th(r,a,o);null!==s&&(qy(s,r,o,i),Eh(s,r,o)),yi(r,o)},enqueueReplaceState:function(e,t,n){var r=rr(e),i=Fy(),o=Uy(r),a=Sh(i,o);a.tag=1,a.payload=t,null!=n&&(sg(n,"replaceState"),a.callback=n);var s=Th(r,a,o);null!==s&&(qy(s,r,o,i),Eh(s,r,o)),yi(r,o)},enqueueForceUpdate:function(e,t){var n=rr(e),r=Fy(),i=Uy(n),o=Sh(r,i);o.tag=bh,null!=t&&(sg(t,"forceUpdate"),o.callback=t);var a=Th(n,o,i);null!==a&&(qy(a,n,i,r),Eh(a,n,i)),function(e,t){null!==Xr&&"function"==typeof Xr.markForceUpdateScheduled&&Xr.markForceUpdateScheduled(e,t)}(n,i)}};function mg(e,t,n,r,i,a,s){var l=e.stateNode;if("function"==typeof l.shouldComponentUpdate){var c=l.shouldComponentUpdate(r,a,s);if(8&e.mode){ei(!0);try{c=l.shouldComponentUpdate(r,a,s)}finally{ei(!1)}}return void 0===c&&o("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",He(t)||"Component"),c}return!t.prototype||!t.prototype.isPureReactComponent||(!As(n,r)||!As(i,a))}function vg(e,t){var n;t.updater=gg,e.stateNode=t,n=e,t._reactInternals=n,t._reactInternalInstance=hg}function yg(e,t,n){var r=!1,i=fu,a=fu,s=t.contextType;if("contextType"in t&&(!(null===s||void 0!==s&&s.$$typeof===le&&void 0===s._context)&&!ug.has(t))){ug.add(t);var l="";l=void 0===s?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":"object"!=typeof s?" However, it is set to a "+typeof s+".":s.$$typeof===se?" Did you accidentally pass the Context.Provider instead?":void 0!==s._context?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(s).join(", ")+"}.",o("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",He(t)||"Component",l)}if("object"==typeof s&&null!==s)a=ch(s);else{i=vu(0,t,!0);var c=t.contextTypes;a=(r=null!=c)?bu(e,i):fu}var u=new t(n,a);if(8&e.mode){ei(!0);try{u=new t(n,a)}finally{ei(!1)}}var d=e.memoizedState=null!==u.state&&void 0!==u.state?u.state:null;if(vg(e,u),"function"==typeof t.getDerivedStateFromProps&&null===d){var h=He(t)||"Component";ng.has(h)||(ng.add(h),o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",h,null===u.state?"null":"undefined",h))}if("function"==typeof t.getDerivedStateFromProps||"function"==typeof u.getSnapshotBeforeUpdate){var f=null,p=null,g=null;if("function"==typeof u.componentWillMount&&!0!==u.componentWillMount.__suppressDeprecationWarning?f="componentWillMount":"function"==typeof u.UNSAFE_componentWillMount&&(f="UNSAFE_componentWillMount"),"function"==typeof u.componentWillReceiveProps&&!0!==u.componentWillReceiveProps.__suppressDeprecationWarning?p="componentWillReceiveProps":"function"==typeof u.UNSAFE_componentWillReceiveProps&&(p="UNSAFE_componentWillReceiveProps"),"function"==typeof u.componentWillUpdate&&!0!==u.componentWillUpdate.__suppressDeprecationWarning?g="componentWillUpdate":"function"==typeof u.UNSAFE_componentWillUpdate&&(g="UNSAFE_componentWillUpdate"),null!==f||null!==p||null!==g){var m=He(t)||"Component",v="function"==typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ig.has(m)||(ig.add(m),o("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://reactjs.org/link/unsafe-component-lifecycles",m,v,null!==f?"\n "+f:"",null!==p?"\n "+p:"",null!==g?"\n "+g:""))}}return r&&yu(e,i,a),u}function bg(e,t,n,r){var i=t.state;if("function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i){var a=Ue(e)||"Component";tg.has(a)||(tg.add(a),o("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),gg.enqueueReplaceState(t,t.state,null)}}function wg(e,t,n,r){!function(e,t,n){var r=e.stateNode,i=He(t)||"Component";r.render||(t.prototype&&"function"==typeof t.prototype.render?o("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",i):o("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",i)),!r.getInitialState||r.getInitialState.isReactClassApproved||r.state||o("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?",i),r.getDefaultProps&&!r.getDefaultProps.isReactClassApproved&&o("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.",i),r.propTypes&&o("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",i),r.contextType&&o("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",i),!t.childContextTypes||dg.has(t)||8&e.mode||(dg.add(t),o("%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead\n\n.Learn more about this warning here: https://reactjs.org/link/legacy-context",i)),!t.contextTypes||dg.has(t)||8&e.mode||(dg.add(t),o("%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.\n\nLearn more about this warning here: https://reactjs.org/link/legacy-context",i)),r.contextTypes&&o("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",i),t.contextType&&t.contextTypes&&!cg.has(t)&&(cg.add(t),o("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",i)),"function"==typeof r.componentShouldUpdate&&o("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",i),t.prototype&&t.prototype.isPureReactComponent&&void 0!==r.shouldComponentUpdate&&o("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",He(t)||"A pure component"),"function"==typeof r.componentDidUnmount&&o("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",i),"function"==typeof r.componentDidReceiveProps&&o("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",i),"function"==typeof r.componentWillRecieveProps&&o("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",i),"function"==typeof r.UNSAFE_componentWillRecieveProps&&o("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",i);var a=r.props!==n;void 0!==r.props&&a&&o("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",i,i),r.defaultProps&&o("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",i,i),"function"!=typeof r.getSnapshotBeforeUpdate||"function"==typeof r.componentDidUpdate||rg.has(t)||(rg.add(t),o("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",He(t))),"function"==typeof r.getDerivedStateFromProps&&o("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",i),"function"==typeof r.getDerivedStateFromError&&o("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",i),"function"==typeof t.getSnapshotBeforeUpdate&&o("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",i);var s=r.state;s&&("object"!=typeof s||St(s))&&o("%s.state: must be set to an object or null",i),"function"==typeof r.getChildContext&&"object"!=typeof t.childContextTypes&&o("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",i)}(e,t,n);var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},xh(e);var a=t.contextType;if("object"==typeof a&&null!==a)i.context=ch(a);else{var s=vu(0,t,!0);i.context=bu(e,s)}if(i.state===n){var l=He(t)||"Component";lg.has(l)||(lg.add(l),o("%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.",l))}8&e.mode&&Td.recordLegacyContextWarning(e,i),Td.recordUnsafeLifecycleWarnings(e,i),i.state=e.memoizedState;var c=t.getDerivedStateFromProps;if("function"==typeof c&&(pg(e,t,c,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(!function(e,t){var n=t.state;"function"==typeof t.componentWillMount&&t.componentWillMount(),"function"==typeof t.UNSAFE_componentWillMount&&t.UNSAFE_componentWillMount(),n!==t.state&&(o("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ue(e)||"Component"),gg.enqueueReplaceState(t,t.state,null))}(e,i),Ph(e,n,i,r),i.state=e.memoizedState),"function"==typeof i.componentDidMount){var u=4;u|=yr,0!==(e.mode&bi)&&(u|=br),e.flags|=u}}function xg(e,t){return{value:e,source:t,stack:je(t),digest:null}}function kg(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Sg(e,t){try{0;var n=t.value,r=t.source,i=t.stack,o=null!==i?i:"";if(null!=n&&n._suppressLogging){if(1===e.tag)return;console.error(n)}var a=r?Ue(r):null,s=(a?"The above error occurred in the <"+a+"> component:":"The above error occurred in one of your React components:")+"\n"+o+"\n\n"+(3===e.tag?"Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://reactjs.org/link/error-boundaries to learn more about error boundaries.":"React will try to recreate this component tree from scratch using the error boundary you provided, "+(Ue(e)||"Anonymous")+".");console.error(s)}catch(ax){setTimeout(function(){throw ax})}}var Tg="function"==typeof WeakMap?WeakMap:Map;function Eg(e,t,n){var r=Sh(no,n);r.tag=3,r.payload={element:null};var i=t.value;return r.callback=function(){gb(i),Sg(e,t)},r}function Cg(e,t,n){var r=Sh(no,n);r.tag=3;var i=e.type.getDerivedStateFromError;if("function"==typeof i){var a=t.value;r.payload=function(){return i(a)},r.callback=function(){zb(e),Sg(e,t)}}var s=e.stateNode;return null!==s&&"function"==typeof s.componentDidCatch&&(r.callback=function(){var n;zb(e),Sg(e,t),"function"!=typeof i&&(n=this,null===ky?ky=new Set([n]):ky.add(n));var r=t.value,a=t.stack;this.componentDidCatch(r,{componentStack:null!==a?a:""}),"function"!=typeof i&&(bo(e.lanes,Ti)||o("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ue(e)||"Unknown"))}),r}function Rg(e,t,n){var r,i=e.pingCache;if(null===i?(i=e.pingCache=new Tg,r=new Set,i.set(t,r)):void 0===(r=i.get(t))&&(r=new Set,i.set(t,r)),!r.has(n)){r.add(n);var o=yb.bind(null,e,t,n);Jr&&_b(e,n),t.then(o,o)}}function Pg(e){var t=e;do{if(t.tag===u&&Qh(t))return t;t=t.return}while(null!==t);return null}function _g(e,t,n,r,i){if(!(1&e.mode)){if(e===t)e.flags|=pr;else{if(e.flags|=or,n.flags|=gr,n.flags&=-52805,1===n.tag)if(null===n.alternate)n.tag=p;else{var o=Sh(no,Ti);o.tag=bh,Th(n,o,Ti)}n.lanes=xo(n.lanes,Ti)}return e}return e.flags|=pr,e.lanes=i,e}function Dg(e,t,n,r,i){if(n.flags|=fr,Jr&&_b(e,i),null!==r&&"object"==typeof r&&"function"==typeof r.then){var o=r;!function(e){var t=e.tag;if(!(1&e.mode||0!==t&&t!==l&&t!==f)){var n=e.alternate;n?(e.updateQueue=n.updateQueue,e.memoizedState=n.memoizedState,e.lanes=n.lanes):(e.updateQueue=null,e.memoizedState=null)}}(n),xd()&&1&n.mode&&nd();var a=Pg(t);if(null!==a)return a.flags&=-257,_g(a,t,n,0,i),1&a.mode&&Rg(e,o,i),void function(e,t,n){var r=e.updateQueue;if(null===r){var i=new Set;i.add(n),e.updateQueue=i}else r.add(n)}(a,0,o);if(0===(i&Ti))return Rg(e,o,i),void ab();r=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.")}else if(xd()&&1&n.mode){nd();var s=Pg(t);if(null!==s)return 0===(s.flags&pr)&&(s.flags|=ar),_g(s,t,n,0,i),void kd(xg(r,n))}!function(e){ay!==Xv&&(ay=Kv);null===dy?dy=[e]:dy.push(e)}(r=xg(r,n));var c=t;do{switch(c.tag){case 3:var u=r;c.flags|=pr;var d=mo(i);return c.lanes=xo(c.lanes,d),void Ch(c,Eg(c,u,d));case 1:var h=r,p=c.type,g=c.stateNode;if(0===(c.flags&or)&&("function"==typeof p.getDerivedStateFromError||null!==g&&"function"==typeof g.componentDidCatch&&!pb(g))){c.flags|=pr;var m=mo(i);return c.lanes=xo(c.lanes,m),void Ch(c,Cg(c,h,m))}}c=c.return}while(null!==c)}var Ig,Ag,Ng,Mg,$g,Og,jg,Lg,Hg,Fg=n.ReactCurrentOwner,Ug=!1;function zg(e,t,n,r){t.child=null===e?Yd(t,null,n,r):Wd(t,e.child,n,r)}function qg(e,t,n,r,i){if(t.type!==t.elementType){var o=n.propTypes;o&&ou(o,r,"prop",He(n))}var a,s,l=n.render,c=t.ref;if(lh(t,i),ii(t),Fg.current=t,Ke(!0),a=Sf(e,t,l,r,c,i),s=Tf(),8&t.mode){ei(!0);try{a=Sf(e,t,l,r,c,i),s=Tf()}finally{ei(!1)}}return Ke(!1),oi(),null===e||Ug?(xd()&&s&&Yu(t),t.flags|=1,zg(e,t,a,i),t.child):(Ef(e,t,i),wm(e,t,i))}function Vg(e,t,n,r,i){if(null===e){var a=n.type;if(function(e){return"function"==typeof e&&!Xb(e)&&void 0===e.defaultProps}(a)&&null===n.compare&&void 0===n.defaultProps){var s;return s=Lb(a),t.tag=f,t.type=s,em(t,a),Bg(e,t,s,r,i)}var l=a.propTypes;if(l&&ou(l,r,"prop",He(a)),void 0!==n.defaultProps){var c=He(a)||"Unknown";Hg[c]||(o("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",c),Hg[c]=!0)}var u=ew(n.type,null,r,t,t.mode,i);return u.ref=t.ref,u.return=t,t.child=u,u}var d=n.type,h=d.propTypes;h&&ou(h,r,"prop",He(d));var p=e.child;if(!xm(e,i)){var g=p.memoizedProps,m=n.compare;if((m=null!==m?m:As)(g,r)&&e.ref===t.ref)return wm(e,t,i)}t.flags|=1;var v=Zb(p,r);return v.ref=t.ref,v.return=t,t.child=v,v}function Bg(e,t,n,r,i){if(t.type!==t.elementType){var o=t.elementType;if(o.$$typeof===fe){var a=o,s=a._payload,l=a._init;try{o=l(s)}catch(d){o=null}var c=o&&o.propTypes;c&&ou(c,r,"prop",He(o))}}if(null!==e){var u=e.memoizedProps;if(As(u,r)&&e.ref===t.ref&&t.type===e.type){if(Ug=!1,t.pendingProps=r=u,!xm(e,i))return t.lanes=e.lanes,wm(e,t,i);0!==(e.flags&gr)&&(Ug=!0)}}return Gg(e,t,n,r,i)}function Wg(e,t,n){var r,i=t.pendingProps,o=i.children,a=null!==e?e.memoizedState:null;if("hidden"===i.mode)if(1&t.mode){if(!bo(n,eo)){var s;if(null!==a)s=xo(a.baseLanes,n);else s=n;t.lanes=t.childLanes=eo;var l={baseLanes:s,cachePool:null,transitions:null};return t.memoizedState=l,t.updateQueue=null,Jy(t,s),null}var c={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=c,Jy(t,null!==a?a.baseLanes:n)}else{var u={baseLanes:0,cachePool:null,transitions:null};t.memoizedState=u,Jy(t,n)}else null!==a?(r=xo(a.baseLanes,n),t.memoizedState=null):r=n,Jy(t,r);return zg(e,t,o,n),t.child}function Yg(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=sr,t.flags|=vr)}function Gg(e,t,n,r,i){if(t.type!==t.elementType){var o=n.propTypes;o&&ou(o,r,"prop",He(n))}var a,s,l;if(a=bu(t,vu(0,n,!0)),lh(t,i),ii(t),Fg.current=t,Ke(!0),s=Sf(e,t,n,r,a,i),l=Tf(),8&t.mode){ei(!0);try{s=Sf(e,t,n,r,a,i),l=Tf()}finally{ei(!1)}}return Ke(!1),oi(),null===e||Ug?(xd()&&l&&Yu(t),t.flags|=1,zg(e,t,s,i),t.child):(Ef(e,t,i),wm(e,t,i))}function Kg(e,t,n,r,i){switch(xw(t)){case!1:var a=t.stateNode,s=new(0,t.type)(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,s,null);break;case!0:t.flags|=or,t.flags|=pr;var l=new Error("Simulated error coming from DevTools"),c=mo(i);t.lanes=xo(t.lanes,c),Ch(t,Cg(t,xg(l,t),c))}if(t.type!==t.elementType){var u=n.propTypes;u&&ou(u,r,"prop",He(n))}var d,h;xu(n)?(d=!0,Cu(t)):d=!1,lh(t,i),null===t.stateNode?(bm(e,t),yg(t,n,r),wg(t,n,r,i),h=!0):h=null===e?function(e,t,n,r){var i=e.stateNode,o=e.memoizedProps;i.props=o;var a=i.context,s=t.contextType,l=fu;l="object"==typeof s&&null!==s?ch(s):bu(e,vu(0,t,!0));var c=t.getDerivedStateFromProps,u="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;u||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||o===n&&a===l||bg(e,i,n,l),Dh();var d=e.memoizedState,h=i.state=d;if(Ph(e,n,i,r),h=e.memoizedState,o===n&&d===h&&!wu()&&!Ih()){if("function"==typeof i.componentDidMount){var f=4;f|=yr,0!==(e.mode&bi)&&(f|=br),e.flags|=f}return!1}"function"==typeof c&&(pg(e,t,c,n),h=e.memoizedState);var p=Ih()||mg(e,t,o,n,d,h,l);if(p){if(u||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount){var g=4;g|=yr,0!==(e.mode&bi)&&(g|=br),e.flags|=g}}else{if("function"==typeof i.componentDidMount){var m=4;m|=yr,0!==(e.mode&bi)&&(m|=br),e.flags|=m}e.memoizedProps=n,e.memoizedState=h}return i.props=n,i.state=h,i.context=l,p}(t,n,r,i):function(e,t,n,r,i){var o=t.stateNode;kh(e,t);var a=t.memoizedProps,s=t.type===t.elementType?a:eg(t.type,a);o.props=s;var l=t.pendingProps,c=o.context,u=n.contextType,d=fu;d="object"==typeof u&&null!==u?ch(u):bu(t,vu(0,n,!0));var h=n.getDerivedStateFromProps,f="function"==typeof h||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||a===l&&c===d||bg(t,o,r,d),Dh();var p=t.memoizedState,g=o.state=p;if(Ph(t,r,o,i),g=t.memoizedState,a===l&&p===g&&!wu()&&!Ih())return"function"==typeof o.componentDidUpdate&&(a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4)),"function"==typeof o.getSnapshotBeforeUpdate&&(a===e.memoizedProps&&p===e.memoizedState||(t.flags|=lr)),!1;"function"==typeof h&&(pg(t,n,h,r),g=t.memoizedState);var m=Ih()||mg(t,n,s,r,p,g,d)||x;return m?(f||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,g,d),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,g,d)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=lr)):("function"==typeof o.componentDidUpdate&&(a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4)),"function"==typeof o.getSnapshotBeforeUpdate&&(a===e.memoizedProps&&p===e.memoizedState||(t.flags|=lr)),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=d,m}(e,t,n,r,i);var f=Qg(e,t,n,h,d,i),p=t.stateNode;return h&&p.props!==r&&(Og||o("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ue(t)||"a component"),Og=!0),f}function Qg(e,t,n,r,i,o){Yg(e,t);var a=0!==(t.flags&or);if(!r&&!a)return i&&Ru(t,n,!1),wm(e,t,o);var s,l=t.stateNode;if(Fg.current=t,a&&"function"!=typeof n.getDerivedStateFromError)s=null,Yp();else{if(ii(t),Ke(!0),s=l.render(),8&t.mode){ei(!0);try{l.render()}finally{ei(!1)}}Ke(!1),oi()}return t.flags|=1,null!==e&&a?function(e,t,n,r){t.child=Wd(t,e.child,null,r),t.child=Wd(t,null,n,r)}(e,t,s,o):zg(e,t,s,o),t.memoizedState=l.state,i&&Ru(t,n,!0),t.child}function Xg(e){var t=e.stateNode;t.pendingContext?Tu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Tu(e,t.context,!1),Hh(e,t.containerInfo)}function Zg(e,t,n,r,i){return bd(),kd(i),t.flags|=ar,zg(e,t,n,r),t.child}function Jg(e,t,n,r){bm(e,t);var i=t.pendingProps,o=n,a=o._payload,s=(0,o._init)(a);t.type=s;var c=t.tag=function(e){if("function"==typeof e)return Xb(e)?1:0;if(null!=e){var t=e.$$typeof;if(t===ce)return l;if(t===he)return d}return 2}(s),u=eg(s,i);switch(c){case 0:return em(t,s),t.type=s=Lb(s),Gg(null,t,s,u,r);case 1:return t.type=s=Hb(s),Kg(null,t,s,u,r);case l:return t.type=s=Fb(s),qg(null,t,s,u,r);case d:if(t.type!==t.elementType){var h=s.propTypes;h&&ou(h,u,"prop",He(s))}return Vg(null,t,s,eg(s.type,u),r)}var f="";throw null!==s&&"object"==typeof s&&s.$$typeof===fe&&(f=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+s+". Lazy element type must resolve to a class or function."+f)}function em(e,t){if(t&&t.childContextTypes&&o("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),null!==e.ref){var n="",r=Be();r&&(n+="\n\nCheck the render method of `"+r+"`.");var i=r||"",a=e._debugSource;a&&(i=a.fileName+":"+a.lineNumber),$g[i]||($g[i]=!0,o("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(void 0!==t.defaultProps){var s=He(t)||"Unknown";Hg[s]||(o("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",s),Hg[s]=!0)}if("function"==typeof t.getDerivedStateFromProps){var l=He(t)||"Unknown";Mg[l]||(o("%s: Function components do not support getDerivedStateFromProps.",l),Mg[l]=!0)}if("object"==typeof t.contextType&&null!==t.contextType){var c=He(t)||"Unknown";Ng[c]||(o("%s: Function components do not support contextType.",c),Ng[c]=!0)}}Ig={},Ag={},Ng={},Mg={},$g={},Og=!1,jg={},Lg={},Hg={};var tm={dehydrated:null,treeContext:null,retryLane:0};function nm(e){return{baseLanes:e,cachePool:null,transitions:null}}function rm(e,t,n){var r=t.pendingProps;kw(t)&&(t.flags|=or);var i=Vh.current,a=!1,s=0!==(t.flags&or);if(s||function(e,t){return(null===t||null!==t.memoizedState)&&Bh(e,2)}(i,e)?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i=i|1),Gh(t,i=Wh(i)),null===e){hd(t);var l=t.memoizedState;if(null!==l){var c=l.dehydrated;if(null!==c)return function(e,t){1&e.mode?$c(t)?e.lanes=Ri:e.lanes=eo:(o("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=Ti);return null}(t,c)}var u=r.children,d=r.fallback;if(a){var h=function(e,t,n,r){var i,o,a=e.mode,s=e.child,l={mode:"hidden",children:t};1&a||null===s?(i=om(l,a),o=nw(n,a,r,null)):((i=s).childLanes=0,i.pendingProps=l,2&e.mode&&(i.actualDuration=0,i.actualStartTime=-1,i.selfBaseDuration=0,i.treeBaseDuration=0),o=nw(n,a,r,null));return i.return=e,o.return=e,i.sibling=o,e.child=i,o}(t,u,d,n);return t.child.memoizedState=nm(n),t.memoizedState=tm,h}return im(t,u)}var f=e.memoizedState;if(null!==f){var p=f.dehydrated;if(null!==p)return function(e,t,n,r,i,a,s){if(n){if(t.flags&ar)return t.flags&=-257,sm(e,t,s,kg(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering.")));if(null!==t.memoizedState)return t.child=e.child,t.flags|=or,null;var l=function(e,t,n,r,i){var o=t.mode,a={mode:"visible",children:n},s=om(a,o),l=nw(r,o,i,null);l.flags|=2,s.return=t,l.return=t,s.sibling=l,t.child=s,!(1&t.mode)||Wd(t,e.child,null,i);return l}(e,t,r.children,r.fallback,s);return t.child.memoizedState=nm(s),t.memoizedState=tm,l}if(Ju&&o("We should not be hydrating here. This is a bug in React. Please file a bug."),!(1&t.mode))return sm(e,t,s,null);if($c(i)){var c,u,d,h=function(e){var t,n,r,i=e.nextSibling&&e.nextSibling.dataset;return i&&(t=i.dgst,n=i.msg,r=i.stck),{message:n,digest:t,stack:r}}(i);return c=h.digest,u=h.message,d=h.stack,sm(e,t,s,kg(u?new Error(u):new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),c,d))}var f=bo(s,e.childLanes);if(Ug||f){var p=Hy();if(null!==p){var g=function(e,t){var n;switch(go(t)){case Ci:n=Ei;break;case Pi:n=Ri;break;case 64:case 128:case 256:case 512:case Ii:case Ai:case Ni:case Mi:case $i:case Oi:case ji:case Li:case Hi:case Fi:case Ui:case zi:case Vi:case Bi:case Wi:case Yi:case Gi:n=_i;break;case Ji:n=Zi;break;default:n=0}return 0!==(n&(e.suspendedLanes|t))?0:n}(p,s);if(0!==g&&g!==a.retryLane){a.retryLane=g;var m=no;fh(e,g),qy(p,e,g,m)}}return ab(),sm(e,t,s,kg(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.")))}if(Mc(i)){t.flags|=or,t.child=e.child;var v=wb.bind(null,e);return b=v,i._reactRetry=b,null}id(t,i,a.treeContext);var y=im(t,r.children);return y.flags|=ur,y;var b}(e,t,s,r,p,f,n)}if(a){var g=r.fallback,m=function(e,t,n,r,i){var o,a,s=t.mode,l=e.child,c=l.sibling,u={mode:"hidden",children:n};if(1&s||t.child===l)(o=am(l,u)).subtreeFlags=l.subtreeFlags&Er;else{(o=t.child).childLanes=0,o.pendingProps=u,2&t.mode&&(o.actualDuration=0,o.actualStartTime=-1,o.selfBaseDuration=l.selfBaseDuration,o.treeBaseDuration=l.treeBaseDuration),t.deletions=null}null!==c?a=Zb(c,r):(a=nw(r,s,i,null)).flags|=2;return a.return=t,o.return=t,o.sibling=a,t.child=o,a}(e,t,r.children,g,n),v=t.child,y=e.child.memoizedState;return v.memoizedState=null===y?nm(n):function(e,t){return{baseLanes:xo(e.baseLanes,t),cachePool:null,transitions:e.transitions}}(y,n),v.childLanes=function(e,t){return ko(e.childLanes,t)}(e,n),t.memoizedState=tm,m}var b=function(e,t,n,r){var i=e.child,o=i.sibling,a=am(i,{mode:"visible",children:n});1&t.mode||(a.lanes=r);if(a.return=t,a.sibling=null,null!==o){var s=t.deletions;null===s?(t.deletions=[o],t.flags|=ir):s.push(o)}return t.child=a,a}(e,t,r.children,n);return t.memoizedState=null,b}function im(e,t,n){var r=om({mode:"visible",children:t},e.mode);return r.return=e,e.child=r,r}function om(e,t,n){return rw(e,t,0,null)}function am(e,t){return Zb(e,t)}function sm(e,t,n,r){null!==r&&kd(r),Wd(t,e.child,null,n);var i=im(t,t.pendingProps.children);return i.flags|=2,t.memoizedState=null,i}function lm(e,t,n){e.lanes=xo(e.lanes,t);var r=e.alternate;null!==r&&(r.lanes=xo(r.lanes,t)),ah(e.return,t,n)}function cm(e,t){var n=St(e),r=!n&&"function"==typeof me(e);if(n||r){var i=n?"array":"iterable";return o("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>",i,t,i),!1}return!0}function um(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function dm(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,s=r.children;!function(e){if(void 0!==e&&"forwards"!==e&&"backwards"!==e&&"together"!==e&&!jg[e])if(jg[e]=!0,"string"==typeof e)switch(e.toLowerCase()){case"together":case"forwards":case"backwards":o('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break;case"forward":case"backward":o('"%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:o('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}else o('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}(i),function(e,t){void 0===e||Lg[e]||("collapsed"!==e&&"hidden"!==e?(Lg[e]=!0,o('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):"forwards"!==t&&"backwards"!==t&&(Lg[e]=!0,o('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}(a,i),function(e,t){if(("forwards"===t||"backwards"===t)&&null!=e&&!1!==e)if(St(e)){for(var n=0;n<e.length;n++)if(!cm(e[n],n))return}else{var r=me(e);if("function"==typeof r){var i=r.call(e);if(i)for(var a=i.next(),s=0;!a.done;a=i.next()){if(!cm(a.value,s))return;s++}}else o('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)}}(s,i),zg(e,t,s,n);var l=Vh.current;Bh(l,2)?(l=Yh(l,2),t.flags|=or):(null!==e&&0!==(e.flags&or)&&function(e,t,n){for(var r=t;null!==r;){if(r.tag===u)null!==r.memoizedState&&lm(r,n,e);else if(r.tag===m)lm(r,n,e);else if(null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}(t,t.child,n),l=Wh(l));if(Gh(t,l),1&t.mode)switch(i){case"forwards":var c,d=function(e){for(var t=e,n=null;null!==t;){var r=t.alternate;null!==r&&null===Xh(r)&&(n=t),t=t.sibling}return n}(t.child);null===d?(c=t.child,t.child=null):(c=d.sibling,d.sibling=null),um(t,!1,c,d,a);break;case"backwards":var h=null,f=t.child;for(t.child=null;null!==f;){var p=f.alternate;if(null!==p&&null===Xh(p)){t.child=f;break}var g=f.sibling;f.sibling=h,h=f,f=g}um(t,!0,h,null,a);break;case"together":um(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}var hm=!1;var fm,pm,gm,mm,vm=!1;function ym(){Ug=!0}function bm(e,t){1&t.mode||null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wm(e,t,n){return null!==e&&(t.dependencies=e.dependencies),Yp(),ob(t.lanes),bo(n,t.childLanes)?(function(e,t){if(null!==e&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(null!==t.child){var n=t.child,r=Zb(n,n.pendingProps);for(t.child=r,r.return=t;null!==n.sibling;)n=n.sibling,(r=r.sibling=Zb(n,n.pendingProps)).return=t;r.sibling=null}}(e,t),t.child):null}function xm(e,t){return!!bo(e.lanes,t)}function km(e,t,n){if(t._debugNeedsRemount&&null!==e)return function(e,t,n){var r=t.return;if(null===r)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===r.child)r.child=n;else{var i=r.child;if(null===i)throw new Error("Expected parent to have a child.");for(;i.sibling!==t;)if(null===(i=i.sibling))throw new Error("Expected to find the previous sibling.");i.sibling=n}var o=r.deletions;return null===o?(r.deletions=[e],r.flags|=ir):o.push(e),n.flags|=2,n}(e,t,ew(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(null!==e)if(e.memoizedProps!==t.pendingProps||wu()||t.type!==e.type)Ug=!0;else{if(!xm(e,n)&&0===(t.flags&or))return Ug=!1,function(e,t,n){switch(t.tag){case 3:Xg(t),t.stateNode,bd();break;case 5:zh(t);break;case 1:xu(t.type)&&Cu(t);break;case 4:Hh(t,t.stateNode.containerInfo);break;case s:var r=t.memoizedProps.value;ih(t,t.type._context,r);break;case c:bo(n,t.childLanes)&&(t.flags|=4);var i=t.stateNode;i.effectDuration=0,i.passiveEffectDuration=0;break;case u:var o=t.memoizedState;if(null!==o){if(null!==o.dehydrated)return Gh(t,Wh(Vh.current)),t.flags|=or,null;if(bo(n,t.child.childLanes))return rm(e,t,n);Gh(t,Wh(Vh.current));var a=wm(e,t,n);return null!==a?a.sibling:null}Gh(t,Wh(Vh.current));break;case m:var l=0!==(e.flags&or),d=bo(n,t.childLanes);if(l){if(d)return dm(e,t,n);t.flags|=or}var h=t.memoizedState;if(null!==h&&(h.rendering=null,h.tail=null,h.lastEffect=null),Gh(t,Vh.current),d)break;return null;case y:case b:return t.lanes=0,Wg(e,t,n)}return wm(e,t,n)}(e,t,n);Ug=0!==(e.flags&gr)}else if(Ug=!1,xd()&&function(e){return Qu(),0!==(e.flags&mr)}(t)){var r=t.index;Wu(t,(Qu(),Lu),r)}switch(t.lanes=0,t.tag){case 2:return function(e,t,n,r){bm(e,t);var i,a,s,l=t.pendingProps;if(i=bu(t,vu(0,n,!1)),lh(t,r),ii(t),n.prototype&&"function"==typeof n.prototype.render){var c=He(n)||"Unknown";Ig[c]||(o("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.",c,c),Ig[c]=!0)}if(8&t.mode&&Td.recordLegacyContextWarning(t,null),Ke(!0),Fg.current=t,a=Sf(null,t,n,l,i,r),s=Tf(),Ke(!1),oi(),t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){var u=He(n)||"Unknown";Ag[u]||(o("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.",u,u,u),Ag[u]=!0)}if("object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof){var d=He(n)||"Unknown";Ag[d]||(o("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.",d,d,d),Ag[d]=!0),t.tag=1,t.memoizedState=null,t.updateQueue=null;var h=!1;return xu(n)?(h=!0,Cu(t)):h=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,xh(t),vg(t,a),wg(t,n,l,r),Qg(null,t,n,!0,h,r)}if(t.tag=0,8&t.mode){ei(!0);try{a=Sf(null,t,n,l,i,r),s=Tf()}finally{ei(!1)}}return xd()&&s&&Yu(t),zg(null,t,a,r),em(t,n),t.child}(e,t,t.type,n);case 16:return Jg(e,t,t.elementType,n);case 0:var i=t.type,a=t.pendingProps;return Gg(e,t,i,t.elementType===i?a:eg(i,a),n);case 1:var h=t.type,g=t.pendingProps;return Kg(e,t,h,t.elementType===h?g:eg(h,g),n);case 3:return function(e,t,n){if(Xg(t),null===e)throw new Error("Should have a current fiber. This is a bug in React.");var r=t.pendingProps,i=t.memoizedState,o=i.element;kh(e,t),Ph(t,r,null,n);var a=t.memoizedState;t.stateNode;var s=a.element;if(i.isDehydrated){var l={element:s,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions};if(t.updateQueue.baseState=l,t.memoizedState=l,t.flags&ar)return Zg(e,t,s,n,xg(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));if(s!==o)return Zg(e,t,s,n,xg(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t));rd(t);var c=Yd(t,null,s,n);t.child=c;for(var u=c;u;)u.flags=-3&u.flags|ur,u=u.sibling}else{if(bd(),s===o)return wm(e,t,n);zg(e,t,s,n)}return t.child}(e,t,n);case 5:return function(e,t,n){zh(t),null===e&&hd(t);var r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children;return xc(r,i)?a=null:null!==o&&xc(r,o)&&(t.flags|=32),Yg(e,t),zg(e,t,a,n),t.child}(e,t,n);case 6:return function(e,t){return null===e&&hd(t),null}(e,t);case u:return rm(e,t,n);case 4:return function(e,t,n){Hh(t,t.stateNode.containerInfo);var r=t.pendingProps;return null===e?t.child=Wd(t,null,r,n):zg(e,t,r,n),t.child}(e,t,n);case l:var w=t.type,x=t.pendingProps;return qg(e,t,w,t.elementType===w?x:eg(w,x),n);case 7:return function(e,t,n){return zg(e,t,t.pendingProps,n),t.child}(e,t,n);case 8:return function(e,t,n){return zg(e,t,t.pendingProps.children,n),t.child}(e,t,n);case c:return function(e,t,n){t.flags|=4;var r=t.stateNode;return r.effectDuration=0,r.passiveEffectDuration=0,zg(e,t,t.pendingProps.children,n),t.child}(e,t,n);case s:return function(e,t,n){var r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value;"value"in i||hm||(hm=!0,o("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var l=t.type.propTypes;if(l&&ou(l,i,"prop","Context.Provider"),ih(t,r,s),null!==a){var c=a.value;if(Is(c,s)){if(a.children===i.children&&!wu())return wm(e,t,n)}else sh(t,r,n)}return zg(e,t,i.children,n),t.child}(e,t,n);case 9:return function(e,t,n){var r=t.type;void 0===r._context?r!==r.Consumer&&(vm||(vm=!0,o("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):r=r._context;var i=t.pendingProps.children;"function"!=typeof i&&o("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."),lh(t,n);var a,s=ch(r);return ii(t),Fg.current=t,Ke(!0),a=i(s),Ke(!1),oi(),t.flags|=1,zg(e,t,a,n),t.child}(e,t,n);case d:var k=t.type,S=eg(k,t.pendingProps);if(t.type!==t.elementType){var T=k.propTypes;T&&ou(T,S,"prop",He(k))}return Vg(e,t,k,S=eg(k.type,S),n);case f:return Bg(e,t,t.type,t.pendingProps,n);case p:var E=t.type,C=t.pendingProps;return function(e,t,n,r,i){var o;return bm(e,t),t.tag=1,xu(n)?(o=!0,Cu(t)):o=!1,lh(t,i),yg(t,n,r),wg(t,n,r,i),Qg(null,t,n,!0,o,i)}(e,t,E,t.elementType===E?C:eg(E,C),n);case m:return dm(e,t,n);case v:break;case y:return Wg(e,t,n)}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 Sm(e){e.flags|=4}function Tm(e){e.flags|=sr,e.flags|=vr}function Em(e,t){if(!xd())switch(e.tailMode){case"hidden":for(var n=e.tail,r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":for(var i=e.tail,o=null;null!==i;)null!==i.alternate&&(o=i),i=i.sibling;null===o?t||null===e.tail?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Cm(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t){if(2&e.mode){for(var i=e.selfBaseDuration,o=e.child;null!==o;)n=xo(n,xo(o.lanes,o.childLanes)),r|=o.subtreeFlags&Er,r|=o.flags&Er,i+=o.treeBaseDuration,o=o.sibling;e.treeBaseDuration=i}else for(var a=e.child;null!==a;)n=xo(n,xo(a.lanes,a.childLanes)),r|=a.subtreeFlags&Er,r|=a.flags&Er,a.return=e,a=a.sibling;e.subtreeFlags|=r}else{if(2&e.mode){for(var s=e.actualDuration,l=e.selfBaseDuration,c=e.child;null!==c;)n=xo(n,xo(c.lanes,c.childLanes)),r|=c.subtreeFlags,r|=c.flags,s+=c.actualDuration,l+=c.treeBaseDuration,c=c.sibling;e.actualDuration=s,e.treeBaseDuration=l}else for(var u=e.child;null!==u;)n=xo(n,xo(u.lanes,u.childLanes)),r|=u.subtreeFlags,r|=u.flags,u.return=e,u=u.sibling;e.subtreeFlags|=r}return e.childLanes=n,t}function Rm(e,t,n){if(Ju&&null!==Zu&&1&t.mode&&0===(t.flags&or))return yd(t),bd(),t.flags|=98560,!1;var r=vd(t);if(null!==n&&null!==n.dehydrated){if(null===e){if(!r)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(pd(t),Cm(t),2&t.mode)if(null!==n){var i=t.child;null!==i&&(t.treeBaseDuration-=i.treeBaseDuration)}return!1}if(bd(),0===(t.flags&or)&&(t.memoizedState=null),t.flags|=4,Cm(t),2&t.mode&&null!==n){var o=t.child;null!==o&&(t.treeBaseDuration-=o.treeBaseDuration)}return!1}return wd(),!0}function Pm(e,t,n){var r=t.pendingProps;switch(Ku(t),t.tag){case 2:case 16:case f:case 0:case l:case 7:case 8:case c:case 9:case d:return Cm(t),null;case 1:return xu(t.type)&&ku(t),Cm(t),null;case 3:var i=t.stateNode;if(Fh(t),Su(t),Jh(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null===e||null===e.child)if(vd(t))Sm(t);else if(null!==e)e.memoizedState.isDehydrated&&0===(t.flags&ar)||(t.flags|=lr,wd());return pm(e,t),Cm(t),null;case 5:qh(t);var o=Lh(),a=t.type;if(null!==e&&null!=t.stateNode)gm(e,t,a,r,o),e.ref!==t.ref&&Tm(t);else{if(!r){if(null===t.stateNode)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 Cm(t),null}var h=Uh();if(vd(t))(function(e,t,n){var r=e.stateNode,i=!ed,o=Lc(r,e.type,e.memoizedProps,0,n,e,i);return e.updateQueue=o,null!==o})(t,0,h)&&Sm(t);else{var g=bc(a,r,o,h,t);fm(g,t,!1,!1),t.stateNode=g,function(e,t,n){switch(Kl(e,t,n),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}(g,a,r)&&Sm(t)}null!==t.ref&&Tm(t)}return Cm(t),null;case 6:var w=r;if(e&&null!=t.stateNode){var x=e.memoizedProps;mm(e,t,x,w)}else{if("string"!=typeof w&&null===t.stateNode)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 k=Lh(),S=Uh();vd(t)?fd(t)&&Sm(t):t.stateNode=kc(w,k,S,t)}return Cm(t),null;case u:Kh(t);var T=t.memoizedState;if(null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated)if(!Rm(e,t,T))return t.flags&pr?t:null;if(0!==(t.flags&or))return t.lanes=n,2&t.mode&&Jp(t),t;var E=null!==T;if(E!==(null!==e&&null!==e.memoizedState))if(E)if(t.child.flags|=dr,1&t.mode)null===e&&(!0!==t.memoizedProps.unstable_avoidThisFallback||!0)||Bh(Vh.current,1)?ay===Yv&&(ay=Qv):ab();if(null!==t.updateQueue&&(t.flags|=4),Cm(t),2&t.mode&&E){var C=t.child;null!==C&&(t.treeBaseDuration-=C.treeBaseDuration)}return null;case 4:return Fh(t),pm(e,t),null===e&&bl(t.stateNode.containerInfo),Cm(t),null;case s:return oh(t.type._context,t),Cm(t),null;case p:return xu(t.type)&&ku(t),Cm(t),null;case m:Kh(t);var R=t.memoizedState;if(null===R)return Cm(t),null;var P=0!==(t.flags&or),_=R.rendering;if(null===_)if(P)Em(R,!1);else{if(!(ay===Yv&&(null===e||0===(e.flags&or))))for(var D=t.child;null!==D;){var I=Xh(D);if(null!==I){P=!0,t.flags|=or,Em(R,!1);var A=I.updateQueue;return null!==A&&(t.updateQueue=A,t.flags|=4),t.subtreeFlags=0,Gd(t,n),Gh(t,Yh(Vh.current,2)),t.child}D=D.sibling}null!==R.tail&&Fr()>by()&&(t.flags|=or,P=!0,Em(R,!1),t.lanes=Ki)}else{if(!P){var N=Xh(_);if(null!==N){t.flags|=or,P=!0;var M=N.updateQueue;if(null!==M&&(t.updateQueue=M,t.flags|=4),Em(R,!0),null===R.tail&&"hidden"===R.tailMode&&!_.alternate&&!xd())return Cm(t),null}else 2*Fr()-R.renderingStartTime>by()&&n!==eo&&(t.flags|=or,P=!0,Em(R,!1),t.lanes=Ki)}if(R.isBackwards)_.sibling=t.child,t.child=_;else{var $=R.last;null!==$?$.sibling=_:t.child=_,R.last=_}}if(null!==R.tail){var O=R.tail;R.rendering=O,R.tail=O.sibling,R.renderingStartTime=Fr(),O.sibling=null;var j=Vh.current;return Gh(t,j=P?Yh(j,2):Wh(j)),O}return Cm(t),null;case v:break;case y:case b:eb(t);var L=null!==t.memoizedState;if(null!==e)null!==e.memoizedState!==L&&(t.flags|=dr);return L&&1&t.mode?bo(iy,eo)&&(Cm(t),6&t.subtreeFlags&&(t.flags|=dr)):Cm(t),null;case 24:case 25: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 _m(e,t,n){switch(Ku(t),t.tag){case 1:xu(t.type)&&ku(t);var r=t.flags;return r&pr?(t.flags=-65537&r|or,2&t.mode&&Jp(t),t):null;case 3:t.stateNode,Fh(t),Su(t),Jh();var i=t.flags;return 0!==(i&pr)&&0===(i&or)?(t.flags=-65537&i|or,t):null;case 5:return qh(t),null;case u:Kh(t);var o=t.memoizedState;if(null!==o&&null!==o.dehydrated){if(null===t.alternate)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");bd()}var a=t.flags;return a&pr?(t.flags=-65537&a|or,2&t.mode&&Jp(t),t):null;case m:return Kh(t),null;case 4:return Fh(t),null;case s:return oh(t.type._context,t),null;case y:case b:return eb(t),null;default:return null}}function Dm(e,t,n){switch(Ku(t),t.tag){case 1:var r=t.type.childContextTypes;null!=r&&ku(t);break;case 3:t.stateNode,Fh(t),Su(t),Jh();break;case 5:qh(t);break;case 4:Fh(t);break;case u:case m:Kh(t);break;case s:oh(t.type._context,t);break;case y:case b:eb(t)}}fm=function(e,t,n,r){for(var i=t.child;null!==i;){if(5===i.tag||6===i.tag)wc(e,i.stateNode);else if(4===i.tag);else if(null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)return;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},pm=function(e,t){},gm=function(e,t,n,r,i){var o=e.memoizedProps;if(o!==r){var a=function(e,t,n,r,i,o){var a=o;if(typeof r.children!=typeof n.children&&("string"==typeof r.children||"number"==typeof r.children)){var s=""+r.children,l=ic(a.ancestorInfo,t);rc(null,s,l)}return Ql(e,t,n,r)}(t.stateNode,n,o,r,0,Uh());t.updateQueue=a,a&&Sm(t)}},mm=function(e,t,n,r){n!==r&&Sm(t)};var Im=null;Im=new Set;var Am=!1,Nm=!1,Mm="function"==typeof WeakSet?WeakSet:Set,$m=null,Om=null,jm=null;var Lm=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,2&e.mode)try{Xp(),t.componentWillUnmount()}finally{Kp(e)}else t.componentWillUnmount()};function Hm(e,t){try{Km(4,e)}catch(n){vb(e,t,n)}}function Fm(e,t,n){try{Lm(e,n)}catch(r){vb(e,t,r)}}function Um(e,t){try{Jm(e)}catch(n){vb(e,t,n)}}function zm(e,t){var n=e.ref;if(null!==n)if("function"==typeof n){var r;try{if(2&e.mode)try{Xp(),r=n(null)}finally{Kp(e)}else r=n(null)}catch(i){vb(e,t,i)}"function"==typeof r&&o("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ue(e))}else n.current=null}function qm(e,t,n){try{n()}catch(r){vb(e,t,r)}}var Vm=!1;function Bm(e,t){yc(e.containerInfo),$m=t,function(){for(;null!==$m;){var e=$m,t=e.child;0!==(e.subtreeFlags&xr)&&null!==t?(t.return=e,$m=t):Wm()}}();var n=Vm;return Vm=!1,n}function Wm(){for(;null!==$m;){var e=$m;Ge(e);try{Ym(e)}catch(n){vb(e,e.return,n)}Ye();var t=e.sibling;if(null!==t)return t.return=e.return,void($m=t);$m=e.return}}function Ym(e){var t,n=e.alternate;if(0!==(e.flags&lr)){switch(Ge(e),e.tag){case 0:case l:case f:break;case 1:if(null!==n){var r=n.memoizedProps,i=n.memoizedState,a=e.stateNode;e.type!==e.elementType||Og||(a.props!==e.memoizedProps&&o("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.",Ue(e)||"instance"),a.state!==e.memoizedState&&o("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.",Ue(e)||"instance"));var s=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:eg(e.type,r),i),c=Im;void 0!==s||c.has(e.type)||(c.add(e.type),o("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ue(e))),a.__reactInternalSnapshotBeforeUpdate=s}break;case 3:var u=e.stateNode;1===(t=u.containerInfo).nodeType?t.textContent="":9===t.nodeType&&t.documentElement&&t.removeChild(t.documentElement);break;case 5:case 6:case 4:case p: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.")}Ye()}}function Gm(e,t,n){var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next,a=o;do{if((a.tag&e)===e){var s=a.destroy;a.destroy=void 0,void 0!==s&&(8&e?li(t):4&e&&hi(t),2&e&&Mb(!0),qm(t,n,s),2&e&&Mb(!1),8&e?ci():4&e&&fi())}a=a.next}while(a!==o)}}function Km(e,t){var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next,a=i;do{if((a.tag&e)===e){8&e?ai(t):4&e&&ui(t);var s=a.create;2&e&&Mb(!0),a.destroy=s(),2&e&&Mb(!1),8&e?si():4&e&&di();var l=a.destroy;if(void 0!==l&&"function"!=typeof l){var c=void 0;o("%s must not return anything besides a function, which is used for clean-up.%s",c=4&a.tag?"useLayoutEffect":2&a.tag?"useInsertionEffect":"useEffect",null===l?" You returned null. If your effect does not require clean up, return undefined (or nothing).":"function"==typeof l.then?"\n\nIt looks like you wrote "+c+"(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:\n\n"+c+"(() => {\n async function fetchData() {\n // You can await here\n const response = await MyAPI.getData(someId);\n // ...\n }\n fetchData();\n}, [someId]); // Or [] if effect doesn't need props or state\n\nLearn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching":" You returned: "+l)}}a=a.next}while(a!==i)}}function Qm(e,t){if(4&t.flags&&t.tag===c){var n=t.stateNode.passiveEffectDuration,r=t.memoizedProps,i=r.id,o=r.onPostCommit,a=Vp(),s=null===t.alternate?"mount":"update";qp()&&(s="nested-update"),"function"==typeof o&&o(i,s,n,a);var l=t.return;e:for(;null!==l;){switch(l.tag){case 3:l.stateNode.passiveEffectDuration+=n;break e;case c:l.stateNode.passiveEffectDuration+=n;break e}l=l.return}}}function Xm(e,t,n,r){if(0!==(n.flags&Sr))switch(n.tag){case 0:case l:case f:if(!Nm)if(2&n.mode)try{Xp(),Km(5,n)}finally{Kp(n)}else Km(5,n);break;case 1:var i=n.stateNode;if(4&n.flags&&!Nm)if(null===t)if(n.type!==n.elementType||Og||(i.props!==n.memoizedProps&&o("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.",Ue(n)||"instance"),i.state!==n.memoizedState&&o("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.",Ue(n)||"instance")),2&n.mode)try{Xp(),i.componentDidMount()}finally{Kp(n)}else i.componentDidMount();else{var a=n.elementType===n.type?t.memoizedProps:eg(n.type,t.memoizedProps),s=t.memoizedState;if(n.type!==n.elementType||Og||(i.props!==n.memoizedProps&&o("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.",Ue(n)||"instance"),i.state!==n.memoizedState&&o("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.",Ue(n)||"instance")),2&n.mode)try{Xp(),i.componentDidUpdate(a,s,i.__reactInternalSnapshotBeforeUpdate)}finally{Kp(n)}else i.componentDidUpdate(a,s,i.__reactInternalSnapshotBeforeUpdate)}var d=n.updateQueue;null!==d&&(n.type!==n.elementType||Og||(i.props!==n.memoizedProps&&o("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.",Ue(n)||"instance"),i.state!==n.memoizedState&&o("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.",Ue(n)||"instance")),Ah(0,d,i));break;case 3:var h=n.updateQueue;if(null!==h){var g=null;if(null!==n.child)switch(n.child.tag){case 5:case 1:g=n.child.stateNode}Ah(0,h,g)}break;case 5:var w=n.stateNode;if(null===t&&4&n.flags)!function(e,t,n){switch(t){case"button":case"input":case"select":case"textarea":return void(n.autoFocus&&e.focus());case"img":n.src&&(e.src=n.src)}}(w,n.type,n.memoizedProps);break;case 6:case 4:break;case c:var x=n.memoizedProps,k=x.onCommit,S=x.onRender,T=n.stateNode.effectDuration,E=Vp(),C=null===t?"mount":"update";qp()&&(C="nested-update"),"function"==typeof S&&S(n.memoizedProps.id,C,n.actualDuration,n.treeBaseDuration,n.actualStartTime,E),"function"==typeof k&&k(n.memoizedProps.id,C,T,E),P=n,Cy.push(P),Sy||(Sy=!0,Ib(Vr,function(){return fb(),null}));var R=n.return;e:for(;null!==R;){switch(R.tag){case 3:R.stateNode.effectDuration+=T;break e;case c:R.stateNode.effectDuration+=T;break e}R=R.return}break;case u:!function(e,t){var n=t.memoizedState;if(null===n){var r=t.alternate;if(null!==r){var i=r.memoizedState;if(null!==i){var o=i.dehydrated;null!==o&&function(e){la(e)}(o)}}}}(0,n);break;case m:case p:case v:case y:case b:case 25: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.")}var P;Nm||n.flags&sr&&Jm(n)}function Zm(e){switch(e.tag){case 0:case l:case f:if(2&e.mode)try{Xp(),Hm(e,e.return)}finally{Kp(e)}else Hm(e,e.return);break;case 1:var t=e.stateNode;"function"==typeof t.componentDidMount&&function(e,t,n){try{n.componentDidMount()}catch(r){vb(e,t,r)}}(e,e.return,t),Um(e,e.return);break;case 5:Um(e,e.return)}}function Jm(e){var t=e.ref;if(null!==t){var n,r=e.stateNode;if(e.tag,n=r,"function"==typeof t){var i;if(2&e.mode)try{Xp(),i=t(n)}finally{Kp(e)}else i=t(n);"function"==typeof i&&o("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ue(e))}else t.hasOwnProperty("current")||o("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ue(e)),t.current=n}}function ev(e){var t,n=e.alternate;if(null!==n&&(e.alternate=null,ev(n)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag){var r=e.stateNode;null!==r&&(delete(t=r)[Uc],delete t[zc],delete t[Vc],delete t[Bc],delete t[Wc])}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 tv(e){return 5===e.tag||3===e.tag||4===e.tag}function nv(e){var t=e;e:for(;;){for(;null===t.sibling;){if(null===t.return||tv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&t.tag!==g;){if(2&t.flags)continue e;if(null===t.child||4===t.tag)continue e;t.child.return=t,t=t.child}if(!(2&t.flags))return t.stateNode}}function rv(e){var t=function(e){for(var t=e.return;null!==t;){if(tv(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.")}(e);switch(t.tag){case 5:var n=t.stateNode;32&t.flags&&(Pc(n),t.flags&=-33),ov(e,nv(e),n);break;case 3:case 4:var r=t.stateNode.containerInfo;iv(e,nv(e),r);break;default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function iv(e,t,n){var r=e.tag;if(5===r||6===r){var i=e.stateNode;t?function(e,t,n){8===e.nodeType?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}(n,i,t):function(e,t){var n;8===e.nodeType?(n=e.parentNode).insertBefore(t,e):(n=e).appendChild(t),null==e._reactRootContainer&&null===n.onclick&&Gl(n)}(n,i)}else if(4===r);else{var o=e.child;if(null!==o){iv(o,t,n);for(var a=o.sibling;null!==a;)iv(a,t,n),a=a.sibling}}}function ov(e,t,n){var r=e.tag;if(5===r||6===r){var i=e.stateNode;t?function(e,t,n){e.insertBefore(t,n)}(n,i,t):function(e,t){e.appendChild(t)}(n,i)}else if(4===r);else{var o=e.child;if(null!==o){ov(o,t,n);for(var a=o.sibling;null!==a;)ov(a,t,n),a=a.sibling}}}var av=null,sv=!1;function lv(e,t,n){var r,i,o=t;e:for(;null!==o;){switch(o.tag){case 5:av=o.stateNode,sv=!1;break e;case 3:case 4:av=o.stateNode.containerInfo,sv=!0;break e}o=o.return}if(null===av)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");uv(e,t,n),av=null,sv=!1,null!==(i=(r=n).alternate)&&(i.return=null),r.return=null}function cv(e,t,n){for(var r=n.child;null!==r;)uv(e,t,r),r=r.sibling}function uv(e,t,n){switch(function(e){if(Qr&&"function"==typeof Qr.onCommitFiberUnmount)try{Qr.onCommitFiberUnmount(Kr,e)}catch(t){Zr||(Zr=!0,o("React instrumentation encountered an error: %s",t))}}(n),n.tag){case 5:Nm||zm(n,t);case 6:var r=av,i=sv;return av=null,cv(e,t,n),sv=i,void(null!==(av=r)&&(sv?(S=av,T=n.stateNode,8===S.nodeType?S.parentNode.removeChild(T):S.removeChild(T)):function(e,t){e.removeChild(t)}(av,n.stateNode)));case g:return void(null!==av&&(sv?function(e,t){8===e.nodeType?_c(e.parentNode,t):1===e.nodeType&&_c(e,t),la(e)}(av,n.stateNode):_c(av,n.stateNode)));case 4:var a=av,s=sv;return av=n.stateNode.containerInfo,sv=!0,cv(e,t,n),av=a,void(sv=s);case 0:case l:case d:case f:if(!Nm){var c=n.updateQueue;if(null!==c){var u=c.lastEffect;if(null!==u){var h=u.next,p=h;do{var m=p,b=m.destroy,w=m.tag;void 0!==b&&(2&w?qm(n,t,b):4&w&&(hi(n),2&n.mode?(Xp(),qm(n,t,b),Kp(n)):qm(n,t,b),fi())),p=p.next}while(p!==h)}}}return void cv(e,t,n);case 1:if(!Nm){zm(n,t);var x=n.stateNode;"function"==typeof x.componentWillUnmount&&Fm(n,t,x)}return void cv(e,t,n);case v:return void cv(e,t,n);case y:if(1&n.mode){var k=Nm;Nm=k||null!==n.memoizedState,cv(e,t,n),Nm=k}else cv(e,t,n);break;default:return void cv(e,t,n)}var S,T}function dv(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Mm),t.forEach(function(t){var r=xb.bind(null,e,t);if(!n.has(t)){if(n.add(t),Jr){if(null===Om||null===jm)throw Error("Expected finished root and lanes to be set. This is a bug in React.");_b(jm,Om)}t.then(r,r)}})}}function hv(e,t,n){var r=t.deletions;if(null!==r)for(var i=0;i<r.length;i++){var o=r[i];try{lv(e,t,o)}catch(l){vb(o,t,l)}}var a=qe;if(t.subtreeFlags&kr)for(var s=t.child;null!==s;)Ge(s),fv(s,e),s=s.sibling;Ge(a)}function fv(e,t,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case l:case d:case f:if(hv(t,e),pv(e),4&i){try{Gm(3,e,e.return),Km(3,e)}catch(D){vb(e,e.return,D)}if(2&e.mode){try{Xp(),Gm(5,e,e.return)}catch(D){vb(e,e.return,D)}Kp(e)}else try{Gm(5,e,e.return)}catch(D){vb(e,e.return,D)}}return;case 1:return hv(t,e),pv(e),void(i&sr&&null!==r&&zm(r,r.return));case 5:if(hv(t,e),pv(e),i&sr&&null!==r&&zm(r,r.return),32&e.flags){var o=e.stateNode;try{Pc(o)}catch(D){vb(e,e.return,D)}}if(4&i){var a=e.stateNode;if(null!=a){var s=e.memoizedProps,c=null!==r?r.memoizedProps:s,h=e.type,p=e.updateQueue;if(e.updateQueue=null,null!==p)try{!function(e,t,n,r,i){Xl(e,t,n,r,i),tu(e,i)}(a,p,h,c,s)}catch(D){vb(e,e.return,D)}}}return;case 6:if(hv(t,e),pv(e),4&i){if(null===e.stateNode)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 g=e.stateNode,w=e.memoizedProps;null!==r&&r.memoizedProps;try{!function(e,t,n){e.nodeValue=n}(g,0,w)}catch(D){vb(e,e.return,D)}}return;case 3:if(hv(t,e),pv(e),4&i)if(null!==r)if(r.memoizedState.isDehydrated)try{la(t.containerInfo)}catch(D){vb(e,e.return,D)}return;case 4:return hv(t,e),void pv(e);case u:hv(t,e),pv(e);var x=e.child;if(x.flags&dr){var k=x.stateNode,S=null!==x.memoizedState;if(k.isHidden=S,S)null!==x.alternate&&null!==x.alternate.memoizedState||(fy=Fr())}if(4&i){try{!function(e){e.memoizedState}(e)}catch(D){vb(e,e.return,D)}dv(e)}return;case y:var T=null!==r&&null!==r.memoizedState;if(1&e.mode){var E=Nm;Nm=E||T,hv(t,e),Nm=E}else hv(t,e);if(pv(e),i&dr){var C=e.stateNode,R=null!==e.memoizedState,P=e;if(C.isHidden=R,R&&!T&&1&P.mode){$m=P;for(var _=P.child;null!==_;)$m=_,yv(_),_=_.sibling}!function(e,t){for(var n=null,r=e;;){if(5===r.tag){if(null===n){n=r;try{var i=r.stateNode;t?Dc(i):Ac(r.stateNode,r.memoizedProps)}catch(D){vb(e,e.return,D)}}}else if(6===r.tag){if(null===n)try{var o=r.stateNode;t?Ic(o):Nc(o,r.memoizedProps)}catch(D){vb(e,e.return,D)}}else if((r.tag!==y&&r.tag!==b||null===r.memoizedState||r===e)&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===e)return;for(;null===r.sibling;){if(null===r.return||r.return===e)return;n===r&&(n=null),r=r.return}n===r&&(n=null),r.sibling.return=r.return,r=r.sibling}}(P,R)}return;case m:return hv(t,e),pv(e),void(4&i&&dv(e));case v:return;default:return hv(t,e),void pv(e)}}function pv(e){var t=e.flags;if(2&t){try{rv(e)}catch(n){vb(e,e.return,n)}e.flags&=-3}t&ur&&(e.flags&=-4097)}function gv(e,t,n){Om=n,jm=t,$m=e,mv(e,t,n),Om=null,jm=null}function mv(e,t,n){for(var r=!!(1&e.mode);null!==$m;){var i=$m,o=i.child;if(i.tag===y&&r){var a=null!==i.memoizedState||Am;if(a){vv(e,t,n);continue}var s=i.alternate,l=null!==s&&null!==s.memoizedState,c=Am,u=Nm;Am=a,(Nm=l||Nm)&&!u&&($m=i,wv(i));for(var d=o;null!==d;)$m=d,mv(d,t,n),d=d.sibling;$m=i,Am=c,Nm=u,vv(e,t,n)}else 0!==(i.subtreeFlags&Sr)&&null!==o?(o.return=i,$m=o):vv(e,t,n)}}function vv(e,t,n){for(;null!==$m;){var r=$m;if(0!==(r.flags&Sr)){var i=r.alternate;Ge(r);try{Xm(0,i,r)}catch(a){vb(r,r.return,a)}Ye()}if(r===e)return void($m=null);var o=r.sibling;if(null!==o)return o.return=r.return,void($m=o);$m=r.return}}function yv(e){for(;null!==$m;){var t=$m,n=t.child;switch(t.tag){case 0:case l:case d:case f:if(2&t.mode)try{Xp(),Gm(4,t,t.return)}finally{Kp(t)}else Gm(4,t,t.return);break;case 1:zm(t,t.return);var r=t.stateNode;"function"==typeof r.componentWillUnmount&&Fm(t,t.return,r);break;case 5:zm(t,t.return);break;case y:if(null!==t.memoizedState){bv(e);continue}}null!==n?(n.return=t,$m=n):bv(e)}}function bv(e){for(;null!==$m;){var t=$m;if(t===e)return void($m=null);var n=t.sibling;if(null!==n)return n.return=t.return,void($m=n);$m=t.return}}function wv(e){for(;null!==$m;){var t=$m,n=t.child;if(t.tag===y)if(null!==t.memoizedState){xv(e);continue}null!==n?(n.return=t,$m=n):xv(e)}}function xv(e){for(;null!==$m;){var t=$m;Ge(t);try{Zm(t)}catch(r){vb(t,t.return,r)}if(Ye(),t===e)return void($m=null);var n=t.sibling;if(null!==n)return n.return=t.return,void($m=n);$m=t.return}}function kv(e,t,n,r){$m=t,function(e,t,n,r){for(;null!==$m;){var i=$m,o=i.child;0!==(i.subtreeFlags&Tr)&&null!==o?(o.return=i,$m=o):Sv(e,t,n,r)}}(t,e,n,r)}function Sv(e,t,n,r){for(;null!==$m;){var i=$m;if(0!==(i.flags&cr)){Ge(i);try{Tv(t,i,n,r)}catch(a){vb(i,i.return,a)}Ye()}if(i===e)return void($m=null);var o=i.sibling;if(null!==o)return o.return=i.return,void($m=o);$m=i.return}}function Tv(e,t,n,r){switch(t.tag){case 0:case l:case f:if(2&t.mode){Zp();try{Km(9,t)}finally{Qp(t)}}else Km(9,t)}}function Ev(e){$m=e,function(){for(;null!==$m;){var e=$m,t=e.child;if(0!==($m.flags&ir)){var n=e.deletions;if(null!==n){for(var r=0;r<n.length;r++){var i=n[r];$m=i,Pv(i,e)}var o=e.alternate;if(null!==o){var a=o.child;if(null!==a){o.child=null;do{var s=a.sibling;a.sibling=null,a=s}while(null!==a)}}$m=e}}0!==(e.subtreeFlags&Tr)&&null!==t?(t.return=e,$m=t):Cv()}}()}function Cv(){for(;null!==$m;){var e=$m;0!==(e.flags&cr)&&(Ge(e),Rv(e),Ye());var t=e.sibling;if(null!==t)return t.return=e.return,void($m=t);$m=e.return}}function Rv(e){switch(e.tag){case 0:case l:case f:2&e.mode?(Zp(),Gm(9,e,e.return),Qp(e)):Gm(9,e,e.return)}}function Pv(e,t){for(;null!==$m;){var n=$m;Ge(n),Dv(n,t),Ye();var r=n.child;null!==r?(r.return=n,$m=r):_v(e)}}function _v(e){for(;null!==$m;){var t=$m,n=t.sibling,r=t.return;if(ev(t),t===e)return void($m=null);if(null!==n)return n.return=r,void($m=n);$m=r}}function Dv(e,t){switch(e.tag){case 0:case l:case f:2&e.mode?(Zp(),Gm(8,e,t),Qp(e)):Gm(8,e,t)}}function Iv(e){switch(e.tag){case 0:case l:case f:try{Km(5,e)}catch(n){vb(e,e.return,n)}break;case 1:var t=e.stateNode;try{t.componentDidMount()}catch(n){vb(e,e.return,n)}}}function Av(e){switch(e.tag){case 0:case l:case f:try{Km(9,e)}catch(t){vb(e,e.return,t)}}}function Nv(e){switch(e.tag){case 0:case l:case f:try{Gm(5,e,e.return)}catch(n){vb(e,e.return,n)}break;case 1:var t=e.stateNode;"function"==typeof t.componentWillUnmount&&Fm(e,e.return,t)}}function Mv(e){switch(e.tag){case 0:case l:case f:try{Gm(9,e,e.return)}catch(t){vb(e,e.return,t)}}}if("function"==typeof Symbol&&Symbol.for){var $v=Symbol.for;$v("selector.component"),$v("selector.has_pseudo_class"),$v("selector.role"),$v("selector.test_id"),$v("selector.text")}var Ov=[];var jv=n.ReactCurrentActQueue;function Lv(){var e="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0;return e||null===jv.current||o("The current testing environment is not configured to support act(...)"),e}var Hv=Math.ceil,Fv=n.ReactCurrentDispatcher,Uv=n.ReactCurrentOwner,zv=n.ReactCurrentBatchConfig,qv=n.ReactCurrentActQueue,Vv=0,Bv=2,Wv=4,Yv=0,Gv=1,Kv=2,Qv=3,Xv=4,Zv=5,Jv=6,ey=Vv,ty=null,ny=null,ry=0,iy=0,oy=uu(0),ay=Yv,sy=null,ly=0,cy=0,uy=0,dy=null,hy=null,fy=0,py=500,gy=1/0,my=500,vy=null;function yy(){gy=Fr()+my}function by(){return gy}var wy=!1,xy=null,ky=null,Sy=!1,Ty=null,Ey=0,Cy=[],Ry=null,Py=50,_y=0,Dy=null,Iy=!1,Ay=!1,Ny=50,My=0,$y=null,Oy=no,jy=0,Ly=!1;function Hy(){return ty}function Fy(){return(ey&(Bv|Wv))!==Vv?Fr():Oy!==no?Oy:Oy=Fr()}function Uy(e){if(!(1&e.mode))return Ti;if((ey&Bv)!==Vv&&0!==ry)return mo(ry);if(null!==Sd.transition){if(null!==zv.transition){var t=zv.transition;t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e)}return 0===jy&&(jy=po()),jy}var n,r=Fo();return 0!==r?r:void 0===(n=window.event)?jo:va(n.type)}function zy(e){var t;return 1&e.mode?(t=io,!((io<<=1)&qi)&&(io=Vi),t):Ti}function qy(e,t,n,r){!function(){if(_y>Py)throw _y=0,Dy=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.");My>Ny&&(My=0,$y=null,o("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."))}(),Ly&&o("useInsertionEffect must not schedule updates."),Iy&&(Ay=!0),Eo(e,n,r),0!==(ey&Bv)&&e===ty?function(e){if(Ve&&!vp)switch(e.tag){case 0:case l:case f:var t=ny&&Ue(ny)||"Unknown",n=t;if(!Rb.has(n))Rb.add(n),o("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",Ue(e)||"Unknown",t,t);break;case 1:Pb||(o("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Pb=!0)}}(t):(Jr&&Po(e,t,n),function(e){if(1&e.mode){if(!Lv())return}else{if(t="undefined"!=typeof IS_REACT_ACT_ENVIRONMENT?IS_REACT_ACT_ENVIRONMENT:void 0,"undefined"==typeof jest||!1===t)return;if(ey!==Vv)return;if(0!==e.tag&&e.tag!==l&&e.tag!==f)return}var t;if(null===qv.current){var n=qe;try{Ge(e),o("An update to %s inside a test was not wrapped in act(...).\n\nWhen testing, code that causes React state updates should be wrapped into act(...):\n\nact(() => {\n /* fire events that update state */\n});\n/* assert on the output */\n\nThis 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",Ue(e))}finally{n?Ge(e):Ye()}}}(t),e===ty&&((ey&Bv)===Vv&&(cy=xo(cy,n)),ay===Xv&&Gy(e,ry)),Vy(e,r),n!==Ti||ey!==Vv||1&t.mode||qv.isBatchingLegacy||(yy(),Nu()))}function Vy(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.pendingLanes,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,a=n;a>0;){var s=vo(a),l=1<<s,c=o[s];c===no?0!==(l&r)&&0===(l&i)||(o[s]=so(l,t)):c<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=ao(e,e===ty?ry:0);if(0===r)return null!==n&&Ab(n),e.callbackNode=null,void(e.callbackPriority=0);var i=go(r),a=e.callbackPriority;if(a!==i||null!==qv.current&&n!==Db){var s,l;if(null!=n&&Ab(n),i===Ti)0===e.tag?(null!==qv.isBatchingLegacy&&(qv.didScheduleLegacyUpdate=!0),l=Ky.bind(null,e),Du=!0,Au(l)):Au(Ky.bind(null,e)),null!==qv.current?qv.current.push(Mu):Cc(function(){(ey&(Bv|Wv))===Vv&&Mu()}),s=null;else{var c;switch(qo(r)){case $o:c=zr;break;case Oo:c=qr;break;case jo:c=Vr;break;case Lo:c=Wr;break;default:c=Vr}s=Ib(c,By.bind(null,e))}e.callbackPriority=i,e.callbackNode=s}else null==n&&a!==Ti&&o("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.")}function By(e,t){if(Up=!1,zp=!1,Oy=no,jy=0,(ey&(Bv|Wv))!==Vv)throw new Error("Should not already be working.");var n=e.callbackNode;if(fb()&&e.callbackNode!==n)return null;var r=ao(e,e===ty?ry:0);if(0===r)return null;var i=!ho(0,r)&&!function(e,t){return 0!==(t&e.expiredLanes)}(e,r)&&!t,o=i?function(e,t){var n=ey;ey|=Bv;var r=rb();if(ty!==e||ry!==t){if(Jr){var i=e.memoizedUpdaters;i.size>0&&(_b(e,ry),i.clear()),_o(e,t)}vy=null,yy(),tb(e,t)}mi(t);for(;;)try{cb();break}catch(o){nb(e,o)}return th(),ib(r),ey=n,null!==ny?(null!==Xr&&"function"==typeof Xr.markRenderYielded&&Xr.markRenderYielded(),Yv):(vi(),ty=null,ry=0,ay)}(e,r):sb(e,r);if(o!==Yv){if(o===Kv){var a=lo(e);0!==a&&(r=a,o=Wy(e,a))}if(o===Gv){var s=sy;throw tb(e,0),Gy(e,r),Vy(e,Fr()),s}if(o===Jv)Gy(e,r);else{var l=!ho(0,r),c=e.current.alternate;if(l&&!function(e){var t=e;for(;;){if(t.flags&hr){var n=t.updateQueue;if(null!==n){var r=n.stores;if(null!==r)for(var i=0;i<r.length;i++){var o=r[i],a=o.getSnapshot,s=o.value;try{if(!Is(a(),s))return!1}catch(c){return!1}}}}var l=t.child;if(t.subtreeFlags&hr&&null!==l)l.return=t,t=l;else{if(t===e)return!0;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(c)){if((o=sb(e,r))===Kv){var u=lo(e);0!==u&&(r=u,o=Wy(e,u))}if(o===Gv){var d=sy;throw tb(e,0),Gy(e,r),Vy(e,Fr()),d}}e.finishedWork=c,e.finishedLanes=r,function(e,t,n){switch(t){case Yv:case Gv:throw new Error("Root did not complete. This is a bug in React.");case Kv:hb(e,hy,vy);break;case Qv:if(Gy(e,n),uo(n)&&!Nb()){var r=fy+py-Fr();if(r>10){if(0!==ao(e,0))break;var i=e.suspendedLanes;if(!wo(i,n)){Fy(),Co(e,i);break}e.timeoutHandle=Sc(hb.bind(null,e,hy,vy),r);break}}hb(e,hy,vy);break;case Xv:if(Gy(e,n),function(e){return(e&Di)===e}(n))break;if(!Nb()){var o=function(e,t){for(var n=e.eventTimes,r=no;t>0;){var i=vo(t),o=1<<i,a=n[i];a>r&&(r=a),t&=~o}return r}(e,n),a=o,s=Fr()-a,l=((c=s)<120?120:c<480?480:c<1080?1080:c<1920?1920:c<3e3?3e3:c<4320?4320:1960*Hv(c/1960))-s;if(l>10){e.timeoutHandle=Sc(hb.bind(null,e,hy,vy),l);break}}hb(e,hy,vy);break;case Zv:hb(e,hy,vy);break;default:throw new Error("Unknown root exit status.")}var c}(e,o,r)}}return Vy(e,Fr()),e.callbackNode===n?By.bind(null,e):null}function Wy(e,t){var n=dy;Vo(e)&&(tb(e,t).flags|=ar,o("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.containerInfo.nodeName.toLowerCase()));var r=sb(e,t);if(r!==Kv){var i=hy;hy=n,null!==i&&Yy(i)}return r}function Yy(e){null===hy?hy=e:hy.push.apply(hy,e)}function Gy(e,t){t=ko(t,uy),function(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,r=t;r>0;){var i=vo(r),o=1<<i;n[i]=no,r&=~o}}(e,t=ko(t,cy))}function Ky(e){if(Up=zp,zp=!1,(ey&(Bv|Wv))!==Vv)throw new Error("Should not already be working.");fb();var t=ao(e,0);if(!bo(t,Ti))return Vy(e,Fr()),null;var n=sb(e,t);if(0!==e.tag&&n===Kv){var r=lo(e);0!==r&&(t=r,n=Wy(e,r))}if(n===Gv){var i=sy;throw tb(e,0),Gy(e,t),Vy(e,Fr()),i}if(n===Jv)throw new Error("Root did not complete. This is a bug in React.");var o=e.current.alternate;return e.finishedWork=o,e.finishedLanes=t,hb(e,hy,vy),Vy(e,Fr()),null}function Qy(e,t){var n=ey;ey|=1;try{return e(t)}finally{(ey=n)!==Vv||qv.isBatchingLegacy||(yy(),Nu())}}function Xy(e){null!==Ty&&0===Ty.tag&&(ey&(Bv|Wv))===Vv&&fb();var t=ey;ey|=1;var n=zv.transition,r=Fo();try{return zv.transition=null,Uo($o),e?e():void 0}finally{Uo(r),zv.transition=n,((ey=t)&(Bv|Wv))===Vv&&Mu()}}function Zy(){return(ey&(Bv|Wv))!==Vv}function Jy(e,t){hu(oy,iy,e),iy=xo(iy,t)}function eb(e){iy=oy.current,du(oy,e)}function tb(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Tc(n)),null!==ny)for(var r=ny.return;null!==r;){r.alternate;Dm(0,r),r=r.return}ty=e;var i=Zb(e.current,null);return ny=i,ry=iy=t,ay=Yv,sy=null,ly=0,cy=0,uy=0,dy=null,hy=null,function(){if(null!==uh){for(var e=0;e<uh.length;e++){var t=uh[e],n=t.interleaved;if(null!==n){t.interleaved=null;var r=n.next,i=t.pending;if(null!==i){var o=i.next;i.next=r,n.next=o}t.pending=n}}uh=null}}(),Td.discardPendingWarnings(),i}function nb(e,t){for(;;){var n=ny;try{if(th(),Cf(),Ye(),Uv.current=null,null===n||null===n.return)return ay=Gv,sy=t,void(ny=null);2&n.mode&&Gp(n,!0),oi(),null!==t&&"object"==typeof t&&"function"==typeof t.then?gi(n,t,ry):pi(n,t,ry),Dg(e,n.return,n,t,ry),db(n)}catch(r){t=r,ny===n&&null!==n?(n=n.return,ny=n):n=ny;continue}return}}function rb(){var e=Fv.current;return Fv.current=Cp,null===e?Cp:e}function ib(e){Fv.current=e}function ob(e){ly=xo(e,ly)}function ab(){ay!==Yv&&ay!==Qv&&ay!==Kv||(ay=Xv),null!==ty&&(co(ly)||co(cy))&&Gy(ty,ry)}function sb(e,t){var n=ey;ey|=Bv;var r=rb();if(ty!==e||ry!==t){if(Jr){var i=e.memoizedUpdaters;i.size>0&&(_b(e,ry),i.clear()),_o(e,t)}vy=null,tb(e,t)}for(mi(t);;)try{lb();break}catch(o){nb(e,o)}if(th(),ey=n,ib(r),null!==ny)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return vi(),ty=null,ry=0,ay}function lb(){for(;null!==ny;)ub(ny)}function cb(){for(;null!==ny&&!Lr();)ub(ny)}function ub(e){var t,n=e.alternate;Ge(e),2&e.mode?(Wp(e),t=Tb(n,e,iy),Gp(e,!0)):t=Tb(n,e,iy),Ye(),e.memoizedProps=e.pendingProps,null===t?db(e):ny=t,Uv.current=null}function db(e){var t=e;do{var n=t.alternate,r=t.return;if(0===(t.flags&fr)){Ge(t);var i=void 0;if(2&t.mode?(Wp(t),i=Pm(n,t,iy),Gp(t,!1)):i=Pm(n,t,iy),Ye(),null!==i)return void(ny=i)}else{var o=_m(0,t);if(null!==o)return o.flags&=32767,void(ny=o);if(2&t.mode){Gp(t,!1);for(var a=t.actualDuration,s=t.child;null!==s;)a+=s.actualDuration,s=s.sibling;t.actualDuration=a}if(null===r)return ay=Jv,void(ny=null);r.flags|=fr,r.subtreeFlags=0,r.deletions=null}var l=t.sibling;if(null!==l)return void(ny=l);ny=t=r}while(null!==t);ay===Yv&&(ay=Zv)}function hb(e,t,n){var r=Fo(),i=zv.transition;try{zv.transition=null,Uo($o),function(e,t,n,r){do{fb()}while(null!==Ty);if(function(){Td.flushLegacyContextWarning(),Td.flushPendingUnsafeLifecycleWarnings()}(),(ey&(Bv|Wv))!==Vv)throw new Error("Should not already be working.");var i=e.finishedWork,a=e.finishedLanes;if(function(e){null!==Xr&&"function"==typeof Xr.markCommitStarted&&Xr.markCommitStarted(e)}(a),null===i)return ri(),null;0===a&&o("root.finishedLanes should not be empty during a commit. This is a bug in React.");if(e.finishedWork=null,e.finishedLanes=0,i===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=0;var s=xo(i.lanes,i.childLanes);(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var r=e.entanglements,i=e.eventTimes,o=e.expirationTimes,a=n;a>0;){var s=vo(a),l=1<<s;r[s]=0,i[s]=no,o[s]=no,a&=~l}})(e,s),e===ty&&(ty=null,ny=null,ry=0);0===(i.subtreeFlags&Tr)&&0===(i.flags&Tr)||Sy||(Sy=!0,Ry=n,Ib(Vr,function(){return fb(),null}));var l=!!(15990&i.subtreeFlags),c=!!(15990&i.flags);if(l||c){var u=zv.transition;zv.transition=null;var d=Fo();Uo($o);var h=ey;ey|=Wv,Uv.current=null,Bm(e,i),Bp(),function(e,t,n){Om=n,jm=e,Ge(t),fv(t,e),Ge(t),Om=null,jm=null}(e,i,a),e.containerInfo,qs(vc),da(mc),mc=null,vc=null,e.current=i,function(e){null!==Xr&&"function"==typeof Xr.markLayoutEffectsStarted&&Xr.markLayoutEffectsStarted(e)}(a),gv(i,e,a),null!==Xr&&"function"==typeof Xr.markLayoutEffectsStopped&&Xr.markLayoutEffectsStopped(),Hr(),ey=h,Uo(d),zv.transition=u}else e.current=i,Bp();var f=Sy;Sy?(Sy=!1,Ty=e,Ey=a):(My=0,$y=null);s=e.pendingLanes,0===s&&(ky=null);f||kb(e.current,!1);(function(e,t){if(Qr&&"function"==typeof Qr.onCommitFiberRoot)try{var n,r=(e.current.flags&or)===or;switch(t){case $o:n=zr;break;case Oo:n=qr;break;case jo:n=Vr;break;case Lo:n=Wr;break;default:n=Vr}Qr.onCommitFiberRoot(Kr,e,n,r)}catch(i){Zr||(Zr=!0,o("React instrumentation encountered an error: %s",i))}})(i.stateNode,r),Jr&&e.memoizedUpdaters.clear();if(function(){Ov.forEach(function(e){return e()})}(),Vy(e,Fr()),null!==t)for(var p=e.onRecoverableError,g=0;g<t.length;g++){var m=t[g],v=m.stack,y=m.digest;p(m.value,{componentStack:v,digest:y})}if(wy){wy=!1;var b=xy;throw xy=null,b}bo(Ey,Ti)&&0!==e.tag&&fb();s=e.pendingLanes,bo(s,Ti)?(zp=!0,e===Dy?_y++:(_y=0,Dy=e)):_y=0;Mu(),ri()}(e,t,n,r)}finally{zv.transition=i,Uo(r)}return null}function fb(){if(null!==Ty){var e=qo(Ey),t=(i=jo)>(a=e)?i:a,n=zv.transition,r=Fo();try{return zv.transition=null,Uo(t),function(){if(null===Ty)return!1;var e=Ry;Ry=null;var t=Ty,n=Ey;if(Ty=null,Ey=0,(ey&(Bv|Wv))!==Vv)throw new Error("Cannot flush passive effects while already rendering.");Iy=!0,Ay=!1,function(e){null!==Xr&&"function"==typeof Xr.markPassiveEffectsStarted&&Xr.markPassiveEffectsStarted(e)}(n);var r=ey;ey|=Wv,Ev(t.current),kv(t,t.current,n,e);var i=Cy;Cy=[];for(var a=0;a<i.length;a++){Qm(0,i[a])}void(null!==Xr&&"function"==typeof Xr.markPassiveEffectsStopped&&Xr.markPassiveEffectsStopped()),kb(t.current,!0),ey=r,Mu(),Ay?t===$y?My++:(My=0,$y=t):My=0;Iy=!1,Ay=!1,function(e){if(Qr&&"function"==typeof Qr.onPostCommitFiberRoot)try{Qr.onPostCommitFiberRoot(Kr,e)}catch(t){Zr||(Zr=!0,o("React instrumentation encountered an error: %s",t))}}(t);var s=t.current.stateNode;return s.effectDuration=0,s.passiveEffectDuration=0,!0}()}finally{Uo(r),zv.transition=n}}var i,a;return!1}function pb(e){return null!==ky&&ky.has(e)}var gb=function(e){wy||(wy=!0,xy=e)};function mb(e,t,n){var r=Th(e,Eg(e,xg(n,t),Ti),Ti),i=Fy();null!==r&&(Eo(r,Ti,i),Vy(r,i))}function vb(e,t,n){var r;if(r=n,tr(null,function(){throw r}),nr(),Mb(!1),3!==e.tag){var i=null;for(i=t;null!==i;){if(3===i.tag)return void mb(i,e,n);if(1===i.tag){var a=i.type,s=i.stateNode;if("function"==typeof a.getDerivedStateFromError||"function"==typeof s.componentDidCatch&&!pb(s)){var l=Th(i,Cg(i,xg(n,e),Ti),Ti),c=Fy();return void(null!==l&&(Eo(l,Ti,c),Vy(l,c)))}}i=i.return}o("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.\n\nError message:\n\n%s",n)}else mb(e,e,n)}function yb(e,t,n){var r=e.pingCache;null!==r&&r.delete(t);var i=Fy();Co(e,n),function(e){0!==e.tag&&Lv()&&null===qv.current&&o("A suspended resource finished loading inside a test, but the event was not wrapped in act(...).\n\nWhen testing, code that resolves suspended data should be wrapped into act(...):\n\nact(() => {\n /* finish loading suspended data */\n});\n/* assert on the output */\n\nThis 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")}(e),ty===e&&wo(ry,n)&&(ay===Xv||ay===Qv&&uo(ry)&&Fr()-fy<py?tb(e,0):uy=xo(uy,n)),Vy(e,i)}function bb(e,t){0===t&&(t=zy(e));var n=Fy(),r=fh(e,t);null!==r&&(Eo(r,t,n),Vy(r,n))}function wb(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),bb(e,n)}function xb(e,t){var n,r=0;switch(e.tag){case u:n=e.stateNode;var i=e.memoizedState;null!==i&&(r=i.retryLane);break;case m:n=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==n&&n.delete(t),bb(e,r)}function kb(e,t){Ge(e),Sb(e,br,Nv),t&&Sb(e,wr,Mv),Sb(e,br,Iv),t&&Sb(e,wr,Av),Ye()}function Sb(e,t,n){for(var r=e,i=null;null!==r;){var o=r.subtreeFlags&t;r!==i&&null!==r.child&&0!==o?r=r.child:(0!==(r.flags&t)&&n(r),r=null!==r.sibling?r.sibling:i=r.return)}}var Tb,Eb=null;function Cb(e){if((ey&Bv)===Vv&&1&e.mode){var t=e.tag;if(2===t||3===t||1===t||0===t||t===l||t===d||t===f){var n=Ue(e)||"ReactComponent";if(null!==Eb){if(Eb.has(n))return;Eb.add(n)}else Eb=new Set([n]);var r=qe;try{Ge(e),o("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{r?Ge(e):Ye()}}}}Tb=function(e,t,n){var r=aw(null,t);try{return km(e,t,n)}catch(o){if(ed||null!==o&&"object"==typeof o&&"function"==typeof o.then)throw o;if(th(),Cf(),Dm(0,t),aw(t,r),2&t.mode&&Wp(t),tr(null,km,null,e,t,n),Qn){var i=nr();"object"==typeof i&&null!==i&&i._suppressLogging&&"object"==typeof o&&null!==o&&!o._suppressLogging&&(o._suppressLogging=!0)}throw o}};var Rb,Pb=!1;function _b(e,t){Jr&&e.memoizedUpdaters.forEach(function(n){Po(e,n,t)})}Rb=new Set;var Db={};function Ib(e,t){var n=qv.current;return null!==n?(n.push(t),Db):Or(e,t)}function Ab(e){if(e!==Db)return jr(e)}function Nb(){return null!==qv.current}function Mb(e){Ly=e}var $b=null,Ob=null,jb=function(e){$b=e};function Lb(e){if(null===$b)return e;var t=$b(e);return void 0===t?e:t.current}function Hb(e){return Lb(e)}function Fb(e){if(null===$b)return e;var t=$b(e);if(void 0===t){if(null!=e&&"function"==typeof e.render){var n=Lb(e.render);if(e.render!==n){var r={$$typeof:ce,render:n};return void 0!==e.displayName&&(r.displayName=e.displayName),r}}return e}return t.current}function Ub(e,t){if(null===$b)return!1;var n=e.elementType,r=t.type,i=!1,o="object"==typeof r&&null!==r?r.$$typeof:null;switch(e.tag){case 1:"function"==typeof r&&(i=!0);break;case 0:("function"==typeof r||o===fe)&&(i=!0);break;case l:(o===ce||o===fe)&&(i=!0);break;case d:case f:(o===he||o===fe)&&(i=!0);break;default:return!1}if(i){var a=$b(n);if(void 0!==a&&a===$b(r))return!0}return!1}function zb(e){null!==$b&&"function"==typeof WeakSet&&(null===Ob&&(Ob=new WeakSet),Ob.add(e))}var qb=function(e,t){if(null!==$b){var n=t.staleFamilies,r=t.updatedFamilies;fb(),Xy(function(){Bb(e.current,r,n)})}},Vb=function(e,t){e.context===fu&&(fb(),Xy(function(){mw(t,e,null,null)}))};function Bb(e,t,n){var r=e.alternate,i=e.child,o=e.sibling,a=e.tag,s=e.type,c=null;switch(a){case 0:case f:case 1:c=s;break;case l:c=s.render}if(null===$b)throw new Error("Expected resolveFamily to be set during hot reload.");var u=!1,d=!1;if(null!==c){var h=$b(c);void 0!==h&&(n.has(h)?d=!0:t.has(h)&&(1===a?d=!0:u=!0))}if(null!==Ob&&(Ob.has(e)||null!==r&&Ob.has(r))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||u){var p=fh(e,Ti);null!==p&&qy(p,e,Ti,no)}null===i||d||Bb(i,t,n),null!==o&&Bb(o,t,n)}var Wb,Yb=function(e,t){var n=new Set,r=new Set(t.map(function(e){return e.current}));return Gb(e.current,r,n),n};function Gb(e,t,n){var r=e.child,i=e.sibling,o=e.tag,a=e.type,s=null;switch(o){case 0:case f:case 1:s=a;break;case l:s=a.render}var c=!1;null!==s&&t.has(s)&&(c=!0),c?function(e,t){var n=function(e,t){var n=e,r=!1;for(;;){if(5===n.tag)r=!0,t.add(n.stateNode);else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)return r;for(;null===n.sibling;){if(null===n.return||n.return===e)return r;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}(e,t);if(n)return;var r=e;for(;;){switch(r.tag){case 5:return void t.add(r.stateNode);case 4:case 3:return void t.add(r.stateNode.containerInfo)}if(null===r.return)throw new Error("Expected to reach root first.");r=r.return}}(e,n):null!==r&&Gb(r,t,n),null!==i&&Gb(i,t,n)}Wb=!1;try{Object.preventExtensions({})}catch(ax){Wb=!0}function Kb(e,t,n,r){this.tag=e,this.key=n,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=r,this.flags=0,this.subtreeFlags=0,this.deletions=null,this.lanes=0,this.childLanes=0,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,Wb||"function"!=typeof Object.preventExtensions||Object.preventExtensions(this)}var Qb=function(e,t,n,r){return new Kb(e,t,n,r)};function Xb(e){var t=e.prototype;return!(!t||!t.isReactComponent)}function Zb(e,t){var n=e.alternate;null===n?((n=Qb(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&Er,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var r=e.dependencies;switch(n.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 2:case 0:case f:n.type=Lb(e.type);break;case 1:n.type=Hb(e.type);break;case l:n.type=Fb(e.type)}return n}function Jb(e,t){e.flags&=14680066;var n=e.alternate;if(null===n)e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var r=n.dependencies;e.dependencies=null===r?null:{lanes:r.lanes,firstContext:r.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function ew(e,t,n,r,i,a){var h=2,f=e;if("function"==typeof e)Xb(e)?(h=1,f=Hb(f)):f=Lb(f);else if("string"==typeof e)h=5;else e:switch(e){case ie:return nw(n.children,i,a,t);case oe:h=8,1&(i|=8)&&(i|=bi);break;case ae:return function(e,t,n,r){"string"!=typeof e.id&&o('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var i=Qb(c,e,r,2|t);return i.elementType=ae,i.lanes=n,i.stateNode={effectDuration:0,passiveEffectDuration:0},i}(n,i,a,t);case ue:return function(e,t,n,r){var i=Qb(u,e,r,t);return i.elementType=ue,i.lanes=n,i}(n,i,a,t);case de:return function(e,t,n,r){var i=Qb(m,e,r,t);return i.elementType=de,i.lanes=n,i}(n,i,a,t);case pe:return rw(n,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case se:h=s;break e;case le:h=9;break e;case ce:h=l,f=Fb(f);break e;case he:h=d;break e;case fe:h=16,f=null;break e}var p="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(p+=" 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 g=r?Ue(r):null;throw g&&(p+="\n\nCheck the render method of `"+g+"`."),new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+"."+p)}var v=Qb(h,n,t,i);return v.elementType=e,v.type=f,v.lanes=a,v._debugOwner=r,v}function tw(e,t,n){var r;r=e._owner;var i=ew(e.type,e.key,e.props,r,t,n);return i._debugSource=e._source,i._debugOwner=e._owner,i}function nw(e,t,n,r){var i=Qb(7,e,r,t);return i.lanes=n,i}function rw(e,t,n,r){var i=Qb(y,e,r,t);i.elementType=pe,i.lanes=n;return i.stateNode={isHidden:!1},i}function iw(e,t,n){var r=Qb(6,e,null,t);return r.lanes=n,r}function ow(e,t,n){var r=null!==e.children?e.children:[],i=Qb(4,r,e.key,t);return i.lanes=n,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}function aw(e,t){return null===e&&(e=Qb(2,null,null,0)),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 sw(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=-1,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=To(0),this.expirationTimes=To(no),this.pendingLanes=0,this.suspendedLanes=0,this.pingedLanes=0,this.expiredLanes=0,this.mutableReadLanes=0,this.finishedLanes=0,this.entangledLanes=0,this.entanglements=To(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0,this.memoizedUpdaters=new Set;for(var o=this.pendingUpdatersLaneMap=[],a=0;a<Si;a++)o.push(new Set);switch(t){case 1:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case 0:this._debugRootType=n?"hydrate()":"render()"}}function lw(e,t,n,r,i,o,a,s,l,c){var u=new sw(e,t,n,s,l),d=function(e,t){var n;return 1===e?(n=1,!0===t&&(n|=8,n|=bi)):n=0,Jr&&(n|=2),Qb(3,null,null,n)}(t,o);u.current=d,d.stateNode=u;var h={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};return d.memoizedState=h,xh(d),u}var cw,uw,dw="18.3.1";function hw(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return function(e){if(D(e))o("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_(e)),A(e)}(r),{$$typeof:re,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function fw(e){if(!e)return fu;var t=rr(e),n=Pu(t);if(1===t.tag){var r=t.type;if(xu(r))return Eu(t,r,n)}return n}function pw(e,t,n,r,i,o,a,s){return lw(e,t,!1,null,0,r,0,o,a)}function gw(e,t,n,r,i,o,a,s,l,c){var u=lw(n,r,!0,e,0,o,0,s,l);u.context=fw(null);var d=u.current,h=Fy(),f=Uy(d),p=Sh(h,f);return p.callback=null!=t?t:null,Th(d,p,f),function(e,t,n){e.current.lanes=t,Eo(e,t,n),Vy(e,n)}(u,f,h),u}function mw(e,t,n,r){!function(e,t){if(Qr&&"function"==typeof Qr.onScheduleFiberRoot)try{Qr.onScheduleFiberRoot(Kr,e,t)}catch(n){Zr||(Zr=!0,o("React instrumentation encountered an error: %s",n))}}(t,e);var i=t.current,a=Fy(),s=Uy(i);!function(e){null!==Xr&&"function"==typeof Xr.markRenderScheduled&&Xr.markRenderScheduled(e)}(s);var l=fw(n);null===t.context?t.context=l:t.pendingContext=l,Ve&&null!==qe&&!cw&&(cw=!0,o("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.\n\nCheck the render method of %s.",Ue(qe)||"Unknown"));var c=Sh(a,s);c.payload={element:e},null!==(r=void 0===r?null:r)&&("function"!=typeof r&&o("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",r),c.callback=r);var u=Th(i,c,s);return null!==u&&(qy(u,i,s,a),Eh(u,i,s)),s}function vw(e){var t=e.current;return t.child?(t.child.tag,t.child.stateNode):null}function yw(e,t){var n,r,i=e.memoizedState;null!==i&&null!==i.dehydrated&&(i.retryLane=(n=i.retryLane,r=t,0!==n&&n<r?n:r))}function bw(e,t){yw(e,t);var n=e.alternate;n&&yw(n,t)}function ww(e){var t=Mr(e);return null===t?null:t.stateNode}cw=!1,uw={};var xw=function(e){return null};var kw=function(e){return!1};var Sw,Tw,Ew,Cw,Rw,Pw,_w,Dw,Iw,Aw=function(e,t,n){var r=t[n],i=St(e)?e.slice():Te({},e);return n+1===t.length?(St(i)?i.splice(r,1):delete i[r],i):(i[r]=Aw(e[r],t,n+1),i)},Nw=function(e,t){return Aw(e,t,0)},Mw=function(e,t,n,r){var i=t[r],o=St(e)?e.slice():Te({},e);r+1===t.length?(o[n[r]]=o[i],St(o)?o.splice(i,1):delete o[i]):o[i]=Mw(e[i],t,n,r+1);return o},$w=function(e,t,n){if(t.length===n.length){for(var r=0;r<n.length-1;r++)if(t[r]!==n[r])return void i("copyWithRename() expects paths to be the same except for the deepest key");return Mw(e,t,n,0)}i("copyWithRename() expects paths of the same length")},Ow=function(e,t,n,r){if(n>=t.length)return r;var i=t[n],o=St(e)?e.slice():Te({},e);return o[i]=Ow(e[i],t,n+1,r),o},jw=function(e,t,n){return Ow(e,t,0,n)},Lw=function(e,t){for(var n=e.memoizedState;null!==n&&t>0;)n=n.next,t--;return n};function Hw(e){var t=Ar(e);return null===t?null:t.stateNode}function Fw(e){return null}function Uw(){return qe}Sw=function(e,t,n,r){var i=Lw(e,t);if(null!==i){var o=jw(i.memoizedState,n,r);i.memoizedState=o,i.baseState=o,e.memoizedProps=Te({},e.memoizedProps);var a=fh(e,Ti);null!==a&&qy(a,e,Ti,no)}},Tw=function(e,t,n){var r=Lw(e,t);if(null!==r){var i=Nw(r.memoizedState,n);r.memoizedState=i,r.baseState=i,e.memoizedProps=Te({},e.memoizedProps);var o=fh(e,Ti);null!==o&&qy(o,e,Ti,no)}},Ew=function(e,t,n,r){var i=Lw(e,t);if(null!==i){var o=$w(i.memoizedState,n,r);i.memoizedState=o,i.baseState=o,e.memoizedProps=Te({},e.memoizedProps);var a=fh(e,Ti);null!==a&&qy(a,e,Ti,no)}},Cw=function(e,t,n){e.pendingProps=jw(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=fh(e,Ti);null!==r&&qy(r,e,Ti,no)},Rw=function(e,t){e.pendingProps=Nw(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=fh(e,Ti);null!==n&&qy(n,e,Ti,no)},Pw=function(e,t,n){e.pendingProps=$w(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var r=fh(e,Ti);null!==r&&qy(r,e,Ti,no)},_w=function(e){var t=fh(e,Ti);null!==t&&qy(t,e,Ti,no)},Dw=function(e){xw=e},Iw=function(e){kw=e};var zw="function"==typeof reportError?reportError:function(e){console.error(e)};function qw(e){this._internalRoot=e}function Vw(e){this._internalRoot=e}function Bw(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Ww(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Yw(e){1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&o("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."),Qc(e)&&(e._reactRootContainer?o("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):o("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."))}Vw.prototype.render=qw.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw new Error("Cannot update an unmounted root.");"function"==typeof arguments[1]?o("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Bw(arguments[1])?o("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."):void 0!==arguments[1]&&o("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(8!==n.nodeType){var r=ww(t.current);r&&r.parentNode!==n&&o("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.")}mw(e,t,null,null)},Vw.prototype.unmount=qw.prototype.unmount=function(){"function"==typeof arguments[0]&&o("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(null!==e){this._internalRoot=null;var t=e.containerInfo;Zy()&&o("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."),Xy(function(){mw(null,e,null,null)}),Kc(t)}},Vw.prototype.unstable_scheduleHydration=function(e){e&&function(e){for(var t=No(),n={blockedOn:null,target:e,priority:t},r=0;r<Jo.length&&zo(t,Jo[r].priority);r++);Jo.splice(r,0,n),0===r&&ra(n)}(e)};var Gw,Kw=n.ReactCurrentOwner;function Qw(e){return e?9===e.nodeType?e.documentElement:e.firstChild:null}function Xw(){}function Zw(e,t,n,r,i){Gw(n),function(e,t){null!==e&&"function"!=typeof e&&o("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}(void 0===i?null:i,"render");var a,s=n._reactRootContainer;if(s){if("function"==typeof i){var l=i;i=function(){var e=vw(a);l.call(e)}}mw(t,a=s,e,i)}else a=function(e,t,n,r,i){if(i){if("function"==typeof r){var o=r;r=function(){var e=vw(a);o.call(e)}}var a=gw(t,r,e,0,0,!1,0,"",Xw);return e._reactRootContainer=a,Gc(a.current,e),bl(8===e.nodeType?e.parentNode:e),Xy(),a}for(var s;s=e.lastChild;)e.removeChild(s);if("function"==typeof r){var l=r;r=function(){var e=vw(c);l.call(e)}}var c=pw(e,0,0,!1,0,"",Xw);return e._reactRootContainer=c,Gc(c.current,e),bl(8===e.nodeType?e.parentNode:e),Xy(function(){mw(t,c,n,r)}),c}(n,t,e,i,r);return vw(a)}Gw=function(e){if(e._reactRootContainer&&8!==e.nodeType){var t=ww(e._reactRootContainer.current);t&&t.parentNode!==e&&o("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 n=!!e._reactRootContainer,r=Qw(e);!(!r||!Zc(r))&&!n&&o("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."),1===e.nodeType&&e.tagName&&"BODY"===e.tagName.toUpperCase()&&o("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.")};var Jw=!1;var ex=!1;Do=function(e){switch(e.tag){case 3:var t=e.stateNode;if(Vo(t)){var n=function(e){return oo(e.pendingLanes)}(t);!function(e,t){0!==t&&(Ro(e,xo(t,Ti)),Vy(e,Fr()),(ey&(Bv|Wv))===Vv&&(yy(),Mu()))}(t,n)}break;case u:Xy(function(){var t=fh(e,Ti);if(null!==t){var n=Fy();qy(t,e,Ti,n)}}),bw(e,Ti)}},function(e){Io=e}(function(e){if(e.tag===u){var t=Qi,n=fh(e,t);if(null!==n)qy(n,e,t,Fy());bw(e,t)}}),function(e){Ao=e}(function(e){if(e.tag===u){var t=Uy(e),n=fh(e,t);if(null!==n)qy(n,e,t,Fy());bw(e,t)}}),function(e){No=e}(Fo),function(e){Mo=e}(function(e,t){var n=Ho;try{return Ho=e,t()}finally{Ho=n}}),"function"==typeof Map&&null!=Map.prototype&&"function"==typeof Map.prototype.forEach&&"function"==typeof Set&&null!=Set.prototype&&"function"==typeof Set.prototype.clear&&"function"==typeof Set.prototype.forEach||o("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"),An=function(e,t,n){switch(t){case"input":return void gt(e,n);case"textarea":return void function(e,t){At(e,t)}(e,n);case"select":return void function(e,t){var n=e,r=t.value;null!=r&&Ct(n,!!t.multiple,r,!1)}(e,n)}},Ln=Qy,Hn=Xy;var tx,nx,rx,ix={usingClientEntryPoint:!1,Events:[Zc,Jc,eu,On,jn,Qy]};if(!(nx=(tx={findFiberByHostInstance:Xc,bundleType:1,version:dw,rendererPackageName:"react-dom"}).findFiberByHostInstance,rx=n.ReactCurrentDispatcher,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return o("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{e=Te({},e,{getLaneLabelMap:ni,injectProfilingHooks:ti}),Kr=t.inject(e),Qr=t}catch(n){o("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}({bundleType:tx.bundleType,version:tx.version,rendererPackageName:tx.rendererPackageName,rendererConfig:tx.rendererConfig,overrideHookState:Sw,overrideHookStateDeletePath:Tw,overrideHookStateRenamePath:Ew,overrideProps:Cw,overridePropsDeletePath:Rw,overridePropsRenamePath:Pw,setErrorHandler:Dw,setSuspenseHandler:Iw,scheduleUpdate:_w,currentDispatcherRef:rx,findHostInstanceByFiber:Hw,findFiberByHostInstance:nx||Fw,findHostInstancesForRefresh:Yb,scheduleRefresh:qb,scheduleRoot:Vb,setRefreshHandler:jb,getCurrentFiber:Uw,reconcilerVersion:dw}))&&R&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)){var ox=window.location.protocol;/^(https?|file):$/.test(ox)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+("file:"===ox?"\nYou might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq":""),"font-weight:bold")}O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ix,O.createPortal=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!Bw(t))throw new Error("Target container is not a DOM element.");return hw(e,t,null,n)},O.createRoot=function(e,t){return ix.usingClientEntryPoint||o('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t){if(!Bw(e))throw new Error("createRoot(...): Target container is not a DOM element.");Yw(e);var n=!1,r="",a=zw;null!=t&&(t.hydrate?i("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):"object"==typeof t&&null!==t&&t.$$typeof===ne&&o("You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:\n\n let root = createRoot(domContainer);\n root.render(<App />);"),!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError),void 0!==t.transitionCallbacks&&t.transitionCallbacks);var s=pw(e,1,0,n,0,r,a);return Gc(s.current,e),bl(8===e.nodeType?e.parentNode:e),new qw(s)}(e,t)},O.findDOMNode=function(e){Jw||(Jw=!0,o("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=Kw.current;return null!==t&&null!==t.stateNode&&(t.stateNode._warnedAboutRefsInRender||o("%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.",He(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0),null==e?null:1===e.nodeType?e:function(e,t){var n=rr(e);if(void 0===n){if("function"==typeof e.render)throw new Error("Unable to find node on an unmounted component.");var r=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+r)}var i=Ar(n);if(null===i)return null;if(8&i.mode){var a=Ue(n)||"Component";if(!uw[a]){uw[a]=!0;var s=qe;try{Ge(i),8&n.mode?o("%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,a):o("%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,a)}finally{s?Ge(s):Ye()}}}return i.stateNode}(e,"findDOMNode")},O.flushSync=function(e){return Zy()&&o("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."),Xy(e)},O.hydrate=function(e,t,n){if(o("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"),!Ww(t))throw new Error("Target container is not a DOM element.");return Qc(t)&&void 0===t._reactRootContainer&&o("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)?"),Zw(null,e,t,!0,n)},O.hydrateRoot=function(e,t,n){return ix.usingClientEntryPoint||o('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),function(e,t,n){if(!Bw(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");Yw(e),void 0===t&&o("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=zw;null!=n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError));var l=gw(t,null,e,1,0,i,0,a,s);if(Gc(l.current,e),bl(e),r)for(var c=0;c<r.length;c++)ef(l,r[c]);return new Vw(l)}(e,t,n)},O.render=function(e,t,n){if(o("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"),!Ww(t))throw new Error("Target container is not a DOM element.");return Qc(t)&&void 0===t._reactRootContainer&&o("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)?"),Zw(null,e,t,!1,n)},O.unmountComponentAtNode=function(e){if(ex||(ex=!0,o("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")),!Ww(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");if(Qc(e)&&void 0===e._reactRootContainer&&o("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()?"),e._reactRootContainer){var t=Qw(e);return t&&!Zc(t)&&o("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React."),Xy(function(){Zw(null,null,e,!1,function(){e._reactRootContainer=null,Kc(e)})}),!0}var n=Qw(e),r=!(!n||!Zc(n)),i=1===e.nodeType&&Ww(e.parentNode)&&!!e.parentNode._reactRootContainer;return r&&o("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",i?"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."),!1},O.unstable_batchedUpdates=Qy,O.unstable_renderSubtreeIntoContainer=function(e,t,n,r){return function(e,t,n,r){if(o("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"),!Ww(n))throw new Error("Target container is not a DOM element.");if(null==e||void 0===e._reactInternals)throw new Error("parentComponent must be a valid React Component");return Zw(e,t,n,!1,r)}(e,t,n,r)},O.version=dw,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),O}var L=function(){if($)return x;$=1;var e=function(){if(M)return k.exports;M=1;var e={};return"production"===e.NODE_ENV?(function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){if("production"!==e.NODE_ENV)throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}}(),k.exports=A()):k.exports=j(),k.exports}();if("production"==={}.NODE_ENV)x.createRoot=e.createRoot,x.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;x.createRoot=function(n,r){t.usingClientEntryPoint=!0;try{return e.createRoot(n,r)}finally{t.usingClientEntryPoint=!1}},x.hydrateRoot=function(n,r,i){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(n,r,i)}finally{t.usingClientEntryPoint=!1}}}return x}();
|
||
/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const H=(...e)=>e.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();
|
||
/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/
|
||
var F={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};
|
||
/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const U=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...s},l)=>y.createElement("svg",{ref:l,...F,width:t,height:t,stroke:e,strokeWidth:r?24*Number(n)/Number(t):n,className:H("lucide",i),...s},[...a.map(([e,t])=>y.createElement(e,t)),...Array.isArray(o)?o:[o]])),z=(e,t)=>{const n=y.forwardRef(({className:n,...r},i)=>{return y.createElement(U,{ref:i,iconNode:t,className:H(`lucide-${o=e,o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,n),...r});var o});return n.displayName=`${e}`,n},q=z("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),V=z("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),B=z("CircleArrowRight",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"m12 16 4-4-4-4",key:"1i9zcv"}]]),W=z("CirclePause",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]]),Y=z("CirclePlay",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]),G=z("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),K=z("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),Q=z("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),X=z("MicOff",[["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}],["path",{d:"M18.89 13.23A7.12 7.12 0 0 0 19 12v-2",key:"80xlxr"}],["path",{d:"M5 10v2a7 7 0 0 0 12 5",key:"p2k8kg"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]),Z=z("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]),J=z("PhoneCall",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}],["path",{d:"M14.05 2a9 9 0 0 1 8 7.94",key:"vmijpz"}],["path",{d:"M14.05 6A5 5 0 0 1 18 10",key:"13nbpp"}]]),ee=z("PhoneForwarded",[["polyline",{points:"18 2 22 6 18 10",key:"6vjanh"}],["line",{x1:"14",x2:"22",y1:"6",y2:"6",key:"1jsywh"}],["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),te=z("PhoneIncoming",[["polyline",{points:"16 2 16 8 22 8",key:"1ygljm"}],["line",{x1:"22",x2:"16",y1:"2",y2:"8",key:"1xzwqn"}],["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),ne=z("PhoneMissed",[["line",{x1:"22",x2:"16",y1:"2",y2:"8",key:"1xzwqn"}],["line",{x1:"16",x2:"22",y1:"2",y2:"8",key:"13zxdn"}],["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),re=z("PhoneOff",[["path",{d:"M10.68 13.31a16 16 0 0 0 3.41 2.6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7 2 2 0 0 1 1.72 2v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.42 19.42 0 0 1-3.33-2.67m-2.67-3.34a19.79 19.79 0 0 1-3.07-8.63A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91",key:"z86iuo"}],["line",{x1:"22",x2:"2",y1:"2",y2:"22",key:"11kh81"}]]),ie=z("PhoneOutgoing",[["polyline",{points:"22 8 22 2 16 2",key:"1g204g"}],["line",{x1:"16",x2:"22",y1:"8",y2:"2",key:"1ggias"}],["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),oe=z("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]),ae=z("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),se=z("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),le=z("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),ce=z("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),ue=z("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);
|
||
/**
|
||
* @license lucide-react v0.475.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/class de extends Error{constructor(e){super(e),Object.setPrototypeOf(this,new.target.prototype)}}class he extends de{constructor(e){super(e||"Unsupported content type.")}}class fe extends de{constructor(e){super(e||"Request pending.")}}class pe extends de{constructor(e){super(e||"Unspecified session description handler error.")}}class ge extends de{constructor(){super("The session has terminated.")}}class me extends de{constructor(e){super(e||"An error occurred during state transition.")}}class ve{constructor(e){this.incomingAckRequest=e}get request(){return this.incomingAckRequest.message}}class ye{constructor(e){this.incomingByeRequest=e}get request(){return this.incomingByeRequest.message}accept(e){return this.incomingByeRequest.accept(e),Promise.resolve()}reject(e){return this.incomingByeRequest.reject(e),Promise.resolve()}}class be{constructor(e){this.incomingCancelRequest=e}get request(){return this.incomingCancelRequest}}class we{constructor(){this.listeners=new Array}addListener(e,t){const n=t=>{this.removeListener(n),e(t)};!0===(null==t?void 0:t.once)?this.listeners.push(n):this.listeners.push(e)}emit(e){this.listeners.slice().forEach(t=>t(e))}removeAllListeners(){this.listeners=[]}removeListener(e){this.listeners=this.listeners.filter(t=>t!==e)}on(e){return this.addListener(e)}off(e){return this.removeListener(e)}once(e){return this.addListener(e,{once:!0})}}class xe{constructor(e){this.incomingInfoRequest=e}get request(){return this.incomingInfoRequest.message}accept(e){return this.incomingInfoRequest.accept(e),Promise.resolve()}reject(e){return this.incomingInfoRequest.reject(e),Promise.resolve()}}class ke{constructor(e){this.parameters={};for(const t in e)e.hasOwnProperty(t)&&this.setParam(t,e[t])}setParam(e,t){e&&(this.parameters[e.toLowerCase()]=null==t?null:t.toString())}getParam(e){if(e)return this.parameters[e.toLowerCase()]}hasParam(e){return!(!e||void 0===this.parameters[e.toLowerCase()])}deleteParam(e){if(e=e.toLowerCase(),this.hasParam(e)){const t=this.parameters[e];return delete this.parameters[e],t}}clearParams(){this.parameters={}}}class Se extends ke{constructor(e,t,n){super(n),this.uri=e,this._displayName=t}get friendlyName(){return this.displayName||this.uri.aor}get displayName(){return this._displayName}set displayName(e){this._displayName=e}clone(){return new Se(this.uri.clone(),this._displayName,JSON.parse(JSON.stringify(this.parameters)))}toString(){let e=this.displayName||"0"===this.displayName?'"'+this.displayName+'" ':"";e+="<"+this.uri.toString()+">";for(const t in this.parameters)this.parameters.hasOwnProperty(t)&&(e+=";"+t,null!==this.parameters[t]&&(e+="="+this.parameters[t]));return e}}class Te extends ke{constructor(e="sip",t,n,r,i,o){if(super(i||{}),this.headers={},!n)throw new TypeError('missing or invalid "host" parameter');for(const a in o)o.hasOwnProperty(a)&&this.setHeader(a,o[a]);this.raw={scheme:e,user:t,host:n,port:r},this.normal={scheme:e.toLowerCase(),user:t,host:n.toLowerCase(),port:r}}get scheme(){return this.normal.scheme}set scheme(e){this.raw.scheme=e,this.normal.scheme=e.toLowerCase()}get user(){return this.normal.user}set user(e){this.normal.user=this.raw.user=e}get host(){return this.normal.host}set host(e){this.raw.host=e,this.normal.host=e.toLowerCase()}get aor(){return this.normal.user+"@"+this.normal.host}get port(){return this.normal.port}set port(e){this.normal.port=this.raw.port=e}setHeader(e,t){this.headers[this.headerize(e)]=t instanceof Array?t:[t]}getHeader(e){if(e)return this.headers[this.headerize(e)]}hasHeader(e){return!!e&&!!this.headers.hasOwnProperty(this.headerize(e))}deleteHeader(e){if(e=this.headerize(e),this.headers.hasOwnProperty(e)){const t=this.headers[e];return delete this.headers[e],t}}clearHeaders(){this.headers={}}clone(){return new Te(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(e){let t=e.scheme+":";e.scheme.toLowerCase().match("^sips?$")||(t+="//"),e.user&&(t+=this.escapeUser(e.user)+"@"),t+=e.host,(e.port||0===e.port)&&(t+=":"+e.port);for(const r in this.parameters)this.parameters.hasOwnProperty(r)&&(t+=";"+r,null!==this.parameters[r]&&(t+="="+this.parameters[r]));const n=[];for(const r in this.headers)if(this.headers.hasOwnProperty(r))for(const e in this.headers[r])this.headers[r].hasOwnProperty(e)&&n.push(r+"="+this.headers[r][e]);return n.length>0&&(t+="?"+n.join("&")),t}escapeUser(e){let t;try{t=decodeURIComponent(e)}catch(n){throw n}return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%2B/gi,"+").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}headerize(e){const t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},n=e.toLowerCase().replace(/_/g,"-").split("-"),r=n.length;let i="";for(let o=0;o<r;o++)0!==o&&(i+="-"),i+=n[o].charAt(0).toUpperCase()+n[o].substring(1);return t[i]&&(i=t[i]),i}}function Ee(e,t){if(e.scheme!==t.scheme)return!1;if(e.user!==t.user||e.host!==t.host||e.port!==t.port)return!1;if(!function(e,t){const n=Object.keys(e.parameters),r=Object.keys(t.parameters);return!!n.filter(e=>r.includes(e)).every(n=>e.parameters[n]===t.parameters[n])&&(!!["user","ttl","method","transport"].every(n=>e.hasParam(n)&&t.hasParam(n)||!e.hasParam(n)&&!t.hasParam(n))&&!!["maddr"].every(n=>e.hasParam(n)&&t.hasParam(n)||!e.hasParam(n)&&!t.hasParam(n)))}(e,t))return!1;const n=Object.keys(e.headers),r=Object.keys(t.headers);if(0!==n.length||0!==r.length){if(n.length!==r.length)return!1;const i=n.filter(e=>r.includes(e));if(i.length!==r.length)return!1;if(!i.every(n=>e.headers[n].length&&t.headers[n].length&&e.headers[n][0]===t.headers[n][0]))return!1}return!0}function Ce(e,t,n){return n=n||" ",e.length>t?e:(t-=e.length,e+(n+=n.repeat(t)).slice(0,t))}class Re extends Error{constructor(e,t,n,r){super(),this.message=e,this.expected=t,this.found=n,this.location=r,this.name="SyntaxError","function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(this,Re.prototype):this.__proto__=Re.prototype,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Re)}static buildMessage(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e))}function i(e){return e.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,e=>"\\x0"+n(e)).replace(/[\x10-\x1F\x7F-\x9F]/g,e=>"\\x"+n(e))}function o(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":const t=e.parts.map(e=>Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){const t=e.map(o);let n,r;if(t.sort(),t.length>0){for(n=1,r=1;n<t.length;n++)t[n-1]!==t[n]&&(t[r]=t[n],r++);t.length=r}switch(t.length){case 1:return t[0];case 2:return t[0]+" or "+t[1];default:return t.slice(0,-1).join(", ")+", or "+t[t.length-1]}}(e)+" but "+(((a=t)?'"'+r(a)+'"':"end of input")+" found.");var a}format(e){let t="Error: "+this.message;if(this.location){let n,r=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){r=e[n].text.split(/\r\n|\n|\r/g);break}let i=this.location.start,o=this.location.source+":"+i.line+":"+i.column;if(r){let e=this.location.end,n=Ce("",i.line.toString().length," "),a=r[i.line-1],s=i.line===e.line?e.column:a.length+1;t+="\n --\x3e "+o+"\n"+n+" |\n"+i.line+" | "+a+"\n"+n+" | "+Ce("",i.column-1," ")+Ce("",s-i.column,"^")}else t+="\n at "+o}return t}}const Pe=function(e,t){const n={},r=(t=void 0!==t?t:{}).grammarSource,i={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 o=119;const a=["\r\n",v("\r\n",!1),/^[0-9]/,y([["0","9"]],!1,!1),/^[a-zA-Z]/,y([["a","z"],["A","Z"]],!1,!1),/^[0-9a-fA-F]/,y([["0","9"],["a","f"],["A","F"]],!1,!1),/^[\0-\xFF]/,y([["\0","ÿ"]],!1,!1),/^["]/,y(['"'],!1,!1)," ",v(" ",!1),"\t",v("\t",!1),/^[a-zA-Z0-9]/,y([["a","z"],["A","Z"],["0","9"]],!1,!1),";",v(";",!1),"/",v("/",!1),"?",v("?",!1),":",v(":",!1),"@",v("@",!1),"&",v("&",!1),"=",v("=",!1),"+",v("+",!1),"$",v("$",!1),",",v(",",!1),"-",v("-",!1),"_",v("_",!1),".",v(".",!1),"!",v("!",!1),"~",v("~",!1),"*",v("*",!1),"'",v("'",!1),"(",v("(",!1),")",v(")",!1),"%",v("%",!1),function(){return" "},function(){return":"},/^[!-~]/,y([["!","~"]],!1,!1),/^[\x80-\uFFFF]/,y([["",""]],!1,!1),/^[\x80-\xBF]/,y([["","¿"]],!1,!1),/^[a-f]/,y([["a","f"]],!1,!1),"`",v("`",!1),"<",v("<",!1),">",v(">",!1),"\\",v("\\",!1),"[",v("[",!1),"]",v("]",!1),"{",v("{",!1),"}",v("}",!1),function(){return"*"},function(){return"/"},function(){return"="},function(){return"("},function(){return")"},function(){return">"},function(){return"<"},function(){return","},function(){return";"},function(){return":"},function(){return'"'},/^[!-']/,y([["!","'"]],!1,!1),/^[*-[]/,y([["*","["]],!1,!1),/^[\]-~]/,y([["]","~"]],!1,!1),function(e){return e},/^[#-[]/,y([["#","["]],!1,!1),/^[\0-\t]/,y([["\0","\t"]],!1,!1),/^[\v-\f]/,y([["\v","\f"]],!1,!1),/^[\x0E-\x7F]/,y([["",""]],!1,!1),function(){(t=t||{data:{}}).data.uri=new Te(t.data.scheme,t.data.user,t.data.host,t.data.port),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port},function(){(t=t||{data:{}}).data.uri=new Te(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params,"SIP_URI"===t.startRule&&(t.data=t.data.uri)},"sips",v("sips",!0),"sip",v("sip",!0),function(e){(t=t||{data:{}}).data.scheme=e},function(){(t=t||{data:{}}).data.user=decodeURIComponent(g().slice(0,-1))},function(){(t=t||{data:{}}).data.password=g()},function(){return(t=t||{data:{}}).data.host=g(),t.data.host},function(){return(t=t||{data:{}}).data.host_type="domain",g()},/^[a-zA-Z0-9_\-]/,y([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),/^[a-zA-Z0-9\-]/,y([["a","z"],["A","Z"],["0","9"],"-"],!1,!1),function(){return(t=t||{data:{}}).data.host_type="IPv6",g()},"::",v("::",!1),function(){return(t=t||{data:{}}).data.host_type="IPv6",g()},function(){return(t=t||{data:{}}).data.host_type="IPv4",g()},"25",v("25",!1),/^[0-5]/,y([["0","5"]],!1,!1),"2",v("2",!1),/^[0-4]/,y([["0","4"]],!1,!1),"1",v("1",!1),/^[1-9]/,y([["1","9"]],!1,!1),function(e){return t=t||{data:{}},e=parseInt(e.join("")),t.data.port=e,e},"transport=",v("transport=",!0),"udp",v("udp",!0),"tcp",v("tcp",!0),"sctp",v("sctp",!0),"tls",v("tls",!0),function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.transport=e.toLowerCase()},"user=",v("user=",!0),"phone",v("phone",!0),"ip",v("ip",!0),function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.user=e.toLowerCase()},"method=",v("method=",!0),function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.method=e},"ttl=",v("ttl=",!0),function(e){(t=t||{data:{}}).data.params||(t.data.params={}),t.data.params.ttl=e},"maddr=",v("maddr=",!0),function(e){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.maddr=e},"lr",v("lr",!0),function(){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),t.data.uri_params.lr=void 0},function(e,n){(t=t||{data:{}}).data.uri_params||(t.data.uri_params={}),n=null===n?void 0:n[1],t.data.uri_params[e.toLowerCase()]=n},function(e,n){e=e.join("").toLowerCase(),n=n.join(""),(t=t||{data:{}}).data.uri_headers||(t.data.uri_headers={}),t.data.uri_headers[e]?t.data.uri_headers[e].push(n):t.data.uri_headers[e]=[n]},function(){"Refer_To"===(t=t||{data:{}}).startRule&&(t.data.uri=new Te(t.data.scheme,t.data.user,t.data.host,t.data.port,t.data.uri_params,t.data.uri_headers),delete t.data.scheme,delete t.data.user,delete t.data.host,delete t.data.host_type,delete t.data.port,delete t.data.uri_params)},"//",v("//",!1),function(){(t=t||{data:{}}).data.scheme=g()},v("SIP",!0),function(){(t=t||{data:{}}).data.sip_version=g()},"INVITE",v("INVITE",!1),"ACK",v("ACK",!1),"VXACH",v("VXACH",!1),"OPTIONS",v("OPTIONS",!1),"BYE",v("BYE",!1),"CANCEL",v("CANCEL",!1),"REGISTER",v("REGISTER",!1),"SUBSCRIBE",v("SUBSCRIBE",!1),"NOTIFY",v("NOTIFY",!1),"REFER",v("REFER",!1),"PUBLISH",v("PUBLISH",!1),function(){return(t=t||{data:{}}).data.method=g(),t.data.method},function(e){(t=t||{data:{}}).data.status_code=parseInt(e.join(""))},function(){(t=t||{data:{}}).data.reason_phrase=g()},function(){(t=t||{data:{}}).data=g()},function(){var e,n;for(n=(t=t||{data:{}}).data.multi_header.length,e=0;e<n;e++)if(null===t.data.multi_header[e].parsed){t.data=null;break}null!==t.data?t.data=t.data.multi_header:t.data=-1},function(){var e;(t=t||{data:{}}).data.multi_header||(t.data.multi_header=[]);try{e=new Se(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch(n){e=null}t.data.multi_header.push({position:l,offset:m().start.offset,parsed:e})},function(e){'"'===(e=g().trim())[0]&&(e=e.substring(1,e.length-1)),(t=t||{data:{}}).data.displayName=e},"q",v("q",!0),function(e){(t=t||{data:{}}).data.params||(t.data.params={}),t.data.params.q=e},"expires",v("expires",!0),function(e){(t=t||{data:{}}).data.params||(t.data.params={}),t.data.params.expires=e},function(e){return parseInt(e.join(""))},"0",v("0",!1),function(){return parseFloat(g())},function(e,n){(t=t||{data:{}}).data.params||(t.data.params={}),n=null===n?void 0:n[1],t.data.params[e.toLowerCase()]=n},"render",v("render",!0),"session",v("session",!0),"icon",v("icon",!0),"alert",v("alert",!0),function(){"Content_Disposition"===(t=t||{data:{}}).startRule&&(t.data.type=g().toLowerCase())},"handling",v("handling",!0),"optional",v("optional",!0),"required",v("required",!0),function(e){(t=t||{data:{}}).data=parseInt(e.join(""))},function(){(t=t||{data:{}}).data=g()},"text",v("text",!0),"image",v("image",!0),"audio",v("audio",!0),"video",v("video",!0),"application",v("application",!0),"message",v("message",!0),"multipart",v("multipart",!0),"x-",v("x-",!0),function(e){(t=t||{data:{}}).data.value=parseInt(e.join(""))},function(e){(t=t||{data:{}}).data=e},function(e){(t=t||{data:{}}).data.event=e.toLowerCase()},function(){var e=(t=t||{data:{}}).data.tag;t.data=new Se(t.data.uri,t.data.displayName,t.data.params),e&&t.data.setParam("tag",e)},"tag",v("tag",!0),function(e){(t=t||{data:{}}).data.tag=e},function(e){(t=t||{data:{}}).data=parseInt(e.join(""))},function(e){(t=t||{data:{}}).data=e},function(){(t=t||{data:{}}).data=new Se(t.data.uri,t.data.displayName,t.data.params)},"digest",v("Digest",!0),"realm",v("realm",!0),function(e){(t=t||{data:{}}).data.realm=e},"domain",v("domain",!0),"nonce",v("nonce",!0),function(e){(t=t||{data:{}}).data.nonce=e},"opaque",v("opaque",!0),function(e){(t=t||{data:{}}).data.opaque=e},"stale",v("stale",!0),"true",v("true",!0),function(){(t=t||{data:{}}).data.stale=!0},"false",v("false",!0),function(){(t=t||{data:{}}).data.stale=!1},"algorithm",v("algorithm",!0),"md5",v("MD5",!0),"md5-sess",v("MD5-sess",!0),function(e){(t=t||{data:{}}).data.algorithm=e.toUpperCase()},"qop",v("qop",!0),"auth-int",v("auth-int",!0),"auth",v("auth",!0),function(e){(t=t||{data:{}}).data.qop||(t.data.qop=[]),t.data.qop.push(e.toLowerCase())},function(e){(t=t||{data:{}}).data.value=parseInt(e.join(""))},function(){var e,n;for(n=(t=t||{data:{}}).data.multi_header.length,e=0;e<n;e++)if(null===t.data.multi_header[e].parsed){t.data=null;break}null!==t.data?t.data=t.data.multi_header:t.data=-1},function(){var e;(t=t||{data:{}}).data.multi_header||(t.data.multi_header=[]);try{e=new Se(t.data.uri,t.data.displayName,t.data.params),delete t.data.uri,delete t.data.displayName,delete t.data.params}catch(n){e=null}t.data.multi_header.push({position:l,offset:m().start.offset,parsed:e})},function(){(t=t||{data:{}}).data=new Se(t.data.uri,t.data.displayName,t.data.params)},function(){(t=t||{data:{}}).data.replaces_from_tag&&t.data.replaces_to_tag||(t.data=-1)},function(){(t=t||{data:{}}).data={call_id:t.data}},"from-tag",v("from-tag",!0),function(e){(t=t||{data:{}}).data.replaces_from_tag=e},"to-tag",v("to-tag",!0),function(e){(t=t||{data:{}}).data.replaces_to_tag=e},"early-only",v("early-only",!0),function(){(t=t||{data:{}}).data.early_only=!0},function(e,t){return t},function(e,t){return function(e,t){return[e].concat(t)}(e,t)},function(e){"Require"===(t=t||{data:{}}).startRule&&(t.data=e||[])},function(e){(t=t||{data:{}}).data.value=parseInt(e.join(""))},"active",v("active",!0),"pending",v("pending",!0),"terminated",v("terminated",!0),function(){(t=t||{data:{}}).data.state=g()},"reason",v("reason",!0),function(e){t=t||{data:{}},void 0!==e&&(t.data.reason=e)},function(e){t=t||{data:{}},void 0!==e&&(t.data.expires=e)},"retry_after",v("retry_after",!0),function(e){t=t||{data:{}},void 0!==e&&(t.data.retry_after=e)},"deactivated",v("deactivated",!0),"probation",v("probation",!0),"rejected",v("rejected",!0),"timeout",v("timeout",!0),"giveup",v("giveup",!0),"noresource",v("noresource",!0),"invariant",v("invariant",!0),function(e){"Supported"===(t=t||{data:{}}).startRule&&(t.data=e||[])},function(){var e=(t=t||{data:{}}).data.tag;t.data=new Se(t.data.uri,t.data.displayName,t.data.params),e&&t.data.setParam("tag",e)},"ttl",v("ttl",!0),function(e){(t=t||{data:{}}).data.ttl=e},"maddr",v("maddr",!0),function(e){(t=t||{data:{}}).data.maddr=e},"received",v("received",!0),function(e){(t=t||{data:{}}).data.received=e},"branch",v("branch",!0),function(e){(t=t||{data:{}}).data.branch=e},"rport",v("rport",!0),function(e){t=t||{data:{}},void 0!==e&&(t.data.rport=e.join(""))},function(e){(t=t||{data:{}}).data.protocol=e},v("UDP",!0),v("TCP",!0),v("TLS",!0),v("SCTP",!0),function(e){(t=t||{data:{}}).data.transport=e},function(){(t=t||{data:{}}).data.host=g()},function(e){(t=t||{data:{}}).data.port=parseInt(e.join(""))},function(e){return parseInt(e.join(""))},function(e){"Session_Expires"===(t=t||{data:{}}).startRule&&(t.data.deltaSeconds=e)},"refresher",v("refresher",!1),"uas",v("uas",!1),"uac",v("uac",!1),function(e){"Session_Expires"===(t=t||{data:{}}).startRule&&(t.data.refresher=e)},function(e){"Min_SE"===(t=t||{data:{}}).startRule&&(t.data=e)},"stuns",v("stuns",!0),"stun",v("stun",!0),function(e){(t=t||{data:{}}).data.scheme=e},function(e){(t=t||{data:{}}).data.host=e},"?transport=",v("?transport=",!1),"turns",v("turns",!0),"turn",v("turn",!0),function(e){(t=t||{data:{}}).data.transport=e},function(){(t=t||{data:{}}).data=g()},"Referred-By",v("Referred-By",!1),"b",v("b",!1),"cid",v("cid",!1)],s=[k('2 ""6 7!'),k('4"""5!7#'),k('4$""5!7%'),k('4&""5!7\''),k(";'.# &;("),k('4(""5!7)'),k('4*""5!7+'),k('2,""6,7-'),k('2.""6.7/'),k('40""5!71'),k('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'),k(";).# &;,"),k('2F""6F7G.} &2H""6H7I.q &2J""6J7K.e &2L""6L7M.Y &2N""6N7O.M &2P""6P7Q.A &2R""6R7S.5 &2T""6T7U.) &2V""6V7W'),k('%%2X""6X7Y/5#;#/,$;#/#$+#)(#\'#("\'#&\'#/"!&,)'),k('%%$;$0#*;$&/,#; /#$+")("\'#&\'#." &"/=#$;$/�#*;$&&&#/\'$8":Z" )("\'#&\'#'),k(';.." &"'),k("%$;'.# &;(0)*;'.# &;(&/?#28\"\"6879/0$;//'$8#:[# )(#'#(\"'#&'#"),k('%%$;2/�#*;2&&&#/g#$%$;.0#*;.&/,#;2/#$+")("\'#&\'#0=*%$;.0#*;.&/,#;2/#$+")("\'#&\'#&/#$+")("\'#&\'#/"!&,)'),k('4\\""5!7].# &;3'),k('4^""5!7_'),k('4`""5!7a'),k(';!.) &4b""5!7c'),k('%$;). &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&&&#/"!&,)'),k('%$;). &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&&&#/"!&,)'),k('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.) &;\'.# &;('),k('%$;).ī &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&&&#/"!&,)'),k("%;//?#2P\"\"6P7Q/0$;//'$8#:t# )(#'#(\"'#&'#"),k("%;//?#24\"\"6475/0$;//'$8#:u# )(#'#(\"'#&'#"),k("%;//?#2>\"\"6>7?/0$;//'$8#:v# )(#'#(\"'#&'#"),k("%;//?#2T\"\"6T7U/0$;//'$8#:w# )(#'#(\"'#&'#"),k("%;//?#2V\"\"6V7W/0$;//'$8#:x# )(#'#(\"'#&'#"),k('%2h""6h7i/0#;//\'$8":y" )("\'#&\'#'),k('%;//6#2f""6f7g/\'$8":z" )("\'#&\'#'),k("%;//?#2D\"\"6D7E/0$;//'$8#:{# )(#'#(\"'#&'#"),k("%;//?#22\"\"6273/0$;//'$8#:|# )(#'#(\"'#&'#"),k("%;//?#28\"\"6879/0$;//'$8#:}# )(#'#(\"'#&'#"),k("%;//0#;&/'$8\":~\" )(\"'#&'#"),k("%;&/0#;//'$8\":~\" )(\"'#&'#"),k("%;=/T#$;G.) &;K.# &;F0/*;G.) &;K.# &;F&/,$;>/#$+#)(#'#(\"'#&'#"),k('4""5!7.A &4""5!7.5 &4""5!7.) &;3.# &;.'),k("%%;//Q#;&/H$$;J.# &;K0)*;J.# &;K&/,$;&/#$+$)($'#(#'#(\"'#&'#/\"!&,)"),k("%;//]#;&/T$%$;J.# &;K0)*;J.# &;K&/\"!&,)/1$;&/($8$:
$!!)($'#(#'#(\"'#&'#"),k(';..G &2L""6L7M.; &4""5!7./ &4""5!7.# &;3'),k('%2j""6j7k/J#4""5!7.5 &4""5!7.) &4""5!7/#$+")("\'#&\'#'),k("%;N/M#28\"\"6879/>$;O.\" &\"/0$;S/'$8$:$ )($'#(#'#(\"'#&'#"),k("%;N/d#28\"\"6879/U$;O.\" &\"/G$;S/>$;_/5$;l.\" &\"/'$8&:& )(&'#(%'#($'#(#'#(\"'#&'#"),k('%3""5$7.) &3""5#7/\' 8!:!! )'),k('%;P/]#%28""6879/,#;R/#$+")("\'#&\'#." &"/6$2:""6:7;/\'$8#:# )(#\'#("\'#&\'#'),k("$;+.) &;-.# &;Q/2#0/*;+.) &;-.# &;Q&&&#"),k('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'),k('%$;+._ &;-.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!:! )'),k('%;T/J#%28""6879/,#;^/#$+")("\'#&\'#." &"/#$+")("\'#&\'#'),k("%;U.) &;\\.# &;X/& 8!:! )"),k('%$%;V/2#2J""6J7K/#$+")("\'#&\'#0<*%;V/2#2J""6J7K/#$+")("\'#&\'#&/D#;W/;$2J""6J7K." &"/\'$8#:# )(#\'#("\'#&\'#'),k('$4""5!7/,#0)*4""5!7&&&#'),k('%4$""5!7%/?#$4""5!70)*4""5!7&/#$+")("\'#&\'#'),k('%2l""6l7m/?#;Y/6$2n""6n7o/\'$8#:# )(#\'#("\'#&\'#'),k('%%;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!: ! )'),k('%;#/M#;#." &"/?$;#." &"/1$;#." &"/#$+$)($\'#(#\'#("\'#&\'#'),k("%;Z/;#28\"\"6879/,$;Z/#$+#)(#'#(\"'#&'#.# &;\\"),k("%;]/o#2J\"\"6J7K/`$;]/W$2J\"\"6J7K/H$;]/?$2J\"\"6J7K/0$;]/'$8':¡' )(''#(&'#(%'#($'#(#'#(\"'#&'#"),k('%2¢""6¢7£/2#4¤""5!7¥/#$+")("\'#&\'#. &%2¦""6¦7§/;#4¨""5!7©/,$;!/#$+#)(#\'#("\'#&\'#.j &%2ª""6ª7«/5#;!/,$;!/#$+#)(#\'#("\'#&\'#.B &%4¬""5!7/,#;!/#$+")("\'#&\'#.# &;!'),k('%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%\'#($\'#(#\'#("\'#&\'#/\' 8!:®!! )'),k('$%22""6273/,#;`/#$+")("\'#&\'#0<*%22""6273/,#;`/#$+")("\'#&\'#&'),k(";a.A &;b.; &;c.5 &;d./ &;e.) &;f.# &;g"),k('%3¯""5*7°/a#3±""5#7².G &3³""5#7´.; &3µ""5$7¶./ &3·""5#7¸.# &;6/($8":¹"! )("\'#&\'#'),k('%3º""5%7»/I#3¼""5%7½./ &3¾""5"7¿.# &;6/($8":À"! )("\'#&\'#'),k('%3Á""5\'7Â/1#;/($8":Ã"! )("\'#&\'#'),k('%3Ä""5$7Å/1#;ð/($8":Æ"! )("\'#&\'#'),k('%3Ç""5&7È/1#;T/($8":É"! )("\'#&\'#'),k('%3Ê""5"7Ë/N#%2>""6>7?/,#;6/#$+")("\'#&\'#." &"/\'$8":Ì" )("\'#&\'#'),k('%;h/P#%2>""6>7?/,#;i/#$+")("\'#&\'#." &"/)$8":Í""! )("\'#&\'#'),k('%$;j/�#*;j&&&#/"!&,)'),k('%$;j/�#*;j&&&#/"!&,)'),k(";k.) &;+.# &;-"),k('2l""6l7m.e &2n""6n7o.Y &24""6475.M &28""6879.A &2<""6<7=.5 &2@""6@7A.) &2B""6B7C'),k('%26""6677/n#;m/e$$%2<""6<7=/,#;m/#$+")("\'#&\'#0<*%2<""6<7=/,#;m/#$+")("\'#&\'#&/#$+#)(#\'#("\'#&\'#'),k('%;n/A#2>""6>7?/2$;o/)$8#:Î#"" )(#\'#("\'#&\'#'),k("$;p.) &;+.# &;-/2#0/*;p.) &;+.# &;-&&&#"),k("$;p.) &;+.# &;-0/*;p.) &;+.# &;-&"),k('2l""6l7m.e &2n""6n7o.Y &24""6475.M &26""6677.A &28""6879.5 &2@""6@7A.) &2B""6B7C'),k(";.# &;r"),k("%;/G#;'/>$;s/5$;'/,$;/#$+%)(%'#($'#(#'#(\"'#&'#"),k(";M.# &;t"),k("%;/E#28\"\"6879/6$;u.# &;x/'$8#:Ï# )(#'#(\"'#&'#"),k('%;v.# &;w/J#%26""6677/,#;/#$+")("\'#&\'#." &"/#$+")("\'#&\'#'),k('%2Ð""6Ð7Ñ/:#;/1$;w." &"/#$+#)(#\'#("\'#&\'#'),k('%24""6475/,#;{/#$+")("\'#&\'#'),k("%;z/3#$;y0#*;y&/#$+\")(\"'#&'#"),k(";*.) &;+.# &;-"),k(';+. &;-. &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'),k('%;|/e#$%24""6475/,#;|/#$+")("\'#&\'#0<*%24""6475/,#;|/#$+")("\'#&\'#&/#$+")("\'#&\'#'),k('%$;~0#*;~&/e#$%22""6273/,#;}/#$+")("\'#&\'#0<*%22""6273/,#;}/#$+")("\'#&\'#&/#$+")("\'#&\'#'),k("$;~0#*;~&"),k(';+.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'),k('%%;"/#$;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K0M*;".G &;!.A &2@""6@7A.5 &2F""6F7G.) &2J""6J7K&/#$+")("\'#&\'#/& 8!:Ò! )'),k(";.# &;"),k('%%;O/2#2:""6:7;/#$+")("\'#&\'#." &"/,#;S/#$+")("\'#&\'#." &"'),k('$;+. &;-.} &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&&&#'),k("$;y0#*;y&"),k('%3""5#7Ó/q#24""6475/b$$;!/�#*;!&&&#/L$2J""6J7K/=$$;!/�#*;!&&&#/\'$8%:Ô% )(%\'#($\'#(#\'#("\'#&\'#'),k('2Õ""6Õ7Ö'),k('2×""6×7Ø'),k('2Ù""6Ù7Ú'),k('2Û""6Û7Ü'),k('2Ý""6Ý7Þ'),k('2ß""6ß7à'),k('2á""6á7â'),k('2ã""6ã7ä'),k('2å""6å7æ'),k('2ç""6ç7è'),k('2é""6é7ê'),k("%;
.Y &;.S &;.M &;.G &;.A &;.; &;.5 &;./ &;.) &;.# &;6/& 8!:ë! )"),k("%;/G#;'/>$;/5$;'/,$;/#$+%)(%'#($'#(#'#(\"'#&'#"),k("%;/' 8!:ì!! )"),k("%;!/5#;!/,$;!/#$+#)(#'#(\"'#&'#"),k("%$;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(0G*;*.A &;+.; &;-.5 &;3./ &;4.) &;'.# &;(&/& 8!:í! )"),k("%;¶/Y#$%;A/,#;¶/#$+\")(\"'#&'#06*%;A/,#;¶/#$+\")(\"'#&'#&/#$+\")(\"'#&'#"),k('%;9/N#%2:""6:7;/,#;9/#$+")("\'#&\'#." &"/\'$8":î" )("\'#&\'#'),k("%;:.c &%;/Y#$%;A/,#;/#$+\")(\"'#&'#06*%;A/,#;/#$+\")(\"'#&'#&/#$+\")(\"'#&'#/& 8!:ï! )"),k("%;L.# &;/]#$%;B/,#;/#$+\")(\"'#&'#06*%;B/,#;/#$+\")(\"'#&'#&/'$8\":ð\" )(\"'#&'#"),k("%;.\" &\"/>#;@/5$;M/,$;?/#$+$)($'#(#'#(\"'#&'#"),k("%%;6/Y#$%;./,#;6/#$+\")(\"'#&'#06*%;./,#;6/#$+\")(\"'#&'#&/#$+\")(\"'#&'#.# &;H/' 8!:ñ!! )"),k(";.) &;.# &; "),k("%3ò\"\"5!7ó/:#;</1$;/($8#:ô#! )(#'#(\"'#&'#"),k("%3õ\"\"5'7ö/:#;</1$;/($8#:÷#! )(#'#(\"'#&'#"),k("%$;!/�#*;!&&&#/' 8!:ø!! )"),k('%2ù""6ù7ú/o#%2J""6J7K/M#;!." &"/?$;!." &"/1$;!." &"/#$+$)($\'#(#\'#("\'#&\'#." &"/\'$8":û" )("\'#&\'#'),k('%;6/J#%;</,#;¡/#$+")("\'#&\'#." &"/)$8":ü""! )("\'#&\'#'),k(";6.) &;T.# &;H"),k("%;£/Y#$%;B/,#;¤/#$+\")(\"'#&'#06*%;B/,#;¤/#$+\")(\"'#&'#&/#$+\")(\"'#&'#"),k('%3ý""5&7þ.G &3ÿ""5\'7Ā.; &3ā""5$7Ă./ &3ă""5%7Ą.# &;6/& 8!:ą! )'),k(";¥.# &; "),k('%3Ć""5(7ć/M#;</D$3Ĉ""5(7ĉ./ &3Ċ""5(7ċ.# &;6/#$+#)(#\'#("\'#&\'#'),k("%;6/Y#$%;A/,#;6/#$+\")(\"'#&'#06*%;A/,#;6/#$+\")(\"'#&'#&/#$+\")(\"'#&'#"),k("%$;!/�#*;!&&&#/' 8!:Č!! )"),k("%;©/& 8!:č! )"),k("%;ª/k#;;/b$;¯/Y$$%;B/,#;°/#$+\")(\"'#&'#06*%;B/,#;°/#$+\")(\"'#&'#&/#$+$)($'#(#'#(\"'#&'#"),k(";«.# &;¬"),k('3Ď""5$7ď.S &3Đ""5%7đ.G &3Ē""5%7ē.; &3Ĕ""5%7ĕ./ &3Ė""5+7ė.# &;'),k('3Ę""5\'7ę./ &3Ě""5)7ě.# &;'),k(";6.# &;®"),k('%3Ĝ""5"7ĝ/,#;6/#$+")("\'#&\'#'),k(";.# &;6"),k("%;6/5#;</,$;±/#$+#)(#'#(\"'#&'#"),k(";6.# &;H"),k("%;³/5#;./,$;/#$+#)(#'#(\"'#&'#"),k("%$;!/�#*;!&&&#/' 8!:Ğ!! )"),k("%;/' 8!:ğ!! )"),k('%;¶/^#$%;B/,#; /#$+")("\'#&\'#06*%;B/,#; /#$+")("\'#&\'#&/($8":Ġ"!!)("\'#&\'#'),k('%%;7/e#$%2J""6J7K/,#;7/#$+")("\'#&\'#0<*%2J""6J7K/,#;7/#$+")("\'#&\'#&/#$+")("\'#&\'#/"!&,)'),k("%;L.# &;/]#$%;B/,#;¸/#$+\")(\"'#&'#06*%;B/,#;¸/#$+\")(\"'#&'#&/'$8\":ġ\" )(\"'#&'#"),k(";¹.# &; "),k("%3Ģ\"\"5#7ģ/:#;</1$;6/($8#:Ĥ#! )(#'#(\"'#&'#"),k("%$;!/�#*;!&&&#/' 8!:ĥ!! )"),k("%;/' 8!:Ħ!! )"),k("%$;0#*;&/x#;@/o$;M/f$;?/]$$%;B/,#; /#$+\")(\"'#&'#06*%;B/,#; /#$+\")(\"'#&'#&/'$8%:ħ% )(%'#($'#(#'#(\"'#&'#"),k(";¾"),k("%3Ĩ\"\"5&7ĩ/k#;./b$;Á/Y$$%;A/,#;Á/#$+\")(\"'#&'#06*%;A/,#;Á/#$+\")(\"'#&'#&/#$+$)($'#(#'#(\"'#&'#.# &;¿"),k("%;6/k#;./b$;À/Y$$%;A/,#;À/#$+\")(\"'#&'#06*%;A/,#;À/#$+\")(\"'#&'#&/#$+$)($'#(#'#(\"'#&'#"),k("%;6/;#;</2$;6.# &;H/#$+#)(#'#(\"'#&'#"),k(";Â.G &;Ä.A &;Æ.; &;È.5 &;É./ &;Ê.) &;Ë.# &;À"),k("%3Ī\"\"5%7ī/5#;</,$;Ã/#$+#)(#'#(\"'#&'#"),k("%;I/' 8!:Ĭ!! )"),k("%3ĭ\"\"5&7Į/#;</$;D/
$;Å/|$$%$;'/�#*;'&&&#/,#;Å/#$+\")(\"'#&'#0C*%$;'/�#*;'&&&#/,#;Å/#$+\")(\"'#&'#&/,$;E/#$+&)(&'#(%'#($'#(#'#(\"'#&'#"),k(";t.# &;w"),k("%3į\"\"5%7İ/5#;</,$;Ç/#$+#)(#'#(\"'#&'#"),k("%;I/' 8!:ı!! )"),k("%3IJ\"\"5&7ij/:#;</1$;I/($8#:Ĵ#! )(#'#(\"'#&'#"),k('%3ĵ""5%7Ķ/]#;</T$%3ķ""5$7ĸ/& 8!:Ĺ! ).4 &%3ĺ""5%7Ļ/& 8!:ļ! )/#$+#)(#\'#("\'#&\'#'),k('%3Ľ""5)7ľ/R#;</I$3Ŀ""5#7ŀ./ &3Ł""5(7ł.# &;6/($8#:Ń#! )(#\'#("\'#&\'#'),k('%3ń""5#7Ņ/#;</$;D/$%;Ì/e#$%2D""6D7E/,#;Ì/#$+")("\'#&\'#0<*%2D""6D7E/,#;Ì/#$+")("\'#&\'#&/#$+")("\'#&\'#/,$;E/#$+%)(%\'#($\'#(#\'#("\'#&\'#'),k('%3ņ""5(7Ň./ &3ň""5$7ʼn.# &;6/\' 8!:Ŋ!! )'),k("%;6/Y#$%;A/,#;6/#$+\")(\"'#&'#06*%;A/,#;6/#$+\")(\"'#&'#&/#$+\")(\"'#&'#"),k("%;Ï/G#;./>$;Ï/5$;./,$;/#$+%)(%'#($'#(#'#(\"'#&'#"),k("%$;!/�#*;!&&&#/' 8!:ŋ!! )"),k("%;Ñ/]#$%;A/,#;Ñ/#$+\")(\"'#&'#06*%;A/,#;Ñ/#$+\")(\"'#&'#&/'$8\":Ō\" )(\"'#&'#"),k("%;/]#$%;B/,#; /#$+\")(\"'#&'#06*%;B/,#; /#$+\")(\"'#&'#&/'$8\":ō\" )(\"'#&'#"),k('%;L.O &;.I &%;@." &"/:#;t/1$;?." &"/#$+#)(#\'#("\'#&\'#/]#$%;B/,#; /#$+")("\'#&\'#06*%;B/,#; /#$+")("\'#&\'#&/\'$8":Ŏ" )("\'#&\'#'),k("%;Ô/]#$%;B/,#;Õ/#$+\")(\"'#&'#06*%;B/,#;Õ/#$+\")(\"'#&'#&/'$8\":ŏ\" )(\"'#&'#"),k("%;/& 8!:Ő! )"),k('%3ő""5(7Œ/:#;</1$;6/($8#:œ#! )(#\'#("\'#&\'#.g &%3Ŕ""5&7ŕ/:#;</1$;6/($8#:Ŗ#! )(#\'#("\'#&\'#.: &%3ŗ""5*7Ř/& 8!:ř! ).# &; '),k('%%;6/k#$%;A/2#;6/)$8":Ś""$ )("\'#&\'#0<*%;A/2#;6/)$8":Ś""$ )("\'#&\'#&/)$8":ś""! )("\'#&\'#." &"/\' 8!:Ŝ!! )'),k("%;Ø/Y#$%;A/,#;Ø/#$+\")(\"'#&'#06*%;A/,#;Ø/#$+\")(\"'#&'#&/#$+\")(\"'#&'#"),k("%;/Y#$%;B/,#; /#$+\")(\"'#&'#06*%;B/,#; /#$+\")(\"'#&'#&/#$+\")(\"'#&'#"),k("%$;!/�#*;!&&&#/' 8!:ŝ!! )"),k("%;Û/Y#$%;B/,#;Ü/#$+\")(\"'#&'#06*%;B/,#;Ü/#$+\")(\"'#&'#&/#$+\")(\"'#&'#"),k('%3Ş""5&7ş.; &3Š""5\'7š./ &3Ţ""5*7ţ.# &;6/& 8!:Ť! )'),k("%3ť\"\"5&7Ŧ/:#;</1$;Ý/($8#:ŧ#! )(#'#(\"'#&'#.} &%3õ\"\"5'7ö/:#;</1$;/($8#:Ũ#! )(#'#(\"'#&'#.P &%3ũ\"\"5+7Ū/:#;</1$;/($8#:ū#! )(#'#(\"'#&'#.# &; "),k('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'),k(';1." &"'),k('%%;6/k#$%;A/2#;6/)$8":Ś""$ )("\'#&\'#0<*%;A/2#;6/)$8":Ś""$ )("\'#&\'#&/)$8":ś""! )("\'#&\'#." &"/\' 8!:ź!! )'),k("%;L.# &;/]#$%;B/,#;á/#$+\")(\"'#&'#06*%;B/,#;á/#$+\")(\"'#&'#&/'$8\":Ż\" )(\"'#&'#"),k(";¹.# &; "),k("%;ã/Y#$%;A/,#;ã/#$+\")(\"'#&'#06*%;A/,#;ã/#$+\")(\"'#&'#&/#$+\")(\"'#&'#"),k("%;ê/k#;./b$;í/Y$$%;B/,#;ä/#$+\")(\"'#&'#06*%;B/,#;ä/#$+\")(\"'#&'#&/#$+$)($'#(#'#(\"'#&'#"),k(";å.; &;æ.5 &;ç./ &;è.) &;é.# &; "),k("%3ż\"\"5#7Ž/:#;</1$;ð/($8#:ž#! )(#'#(\"'#&'#"),k("%3ſ\"\"5%7ƀ/:#;</1$;T/($8#:Ɓ#! )(#'#(\"'#&'#"),k("%3Ƃ\"\"5(7ƃ/F#;</=$;\\.) &;Y.# &;X/($8#:Ƅ#! )(#'#(\"'#&'#"),k("%3ƅ\"\"5&7Ɔ/:#;</1$;6/($8#:Ƈ#! )(#'#(\"'#&'#"),k("%3ƈ\"\"5%7Ɖ/A#;</8$$;!0#*;!&/($8#:Ɗ#! )(#'#(\"'#&'#"),k("%;ë/G#;;/>$;6/5$;;/,$;ì/#$+%)(%'#($'#(#'#(\"'#&'#"),k('%3""5#7Ó.# &;6/\' 8!:Ƌ!! )'),k('%3±""5#7ƌ.G &3³""5#7ƍ.; &3·""5#7Ǝ./ &3µ""5$7Ə.# &;6/\' 8!:Ɛ!! )'),k('%;î/D#%;C/,#;ï/#$+")("\'#&\'#." &"/#$+")("\'#&\'#'),k("%;U.) &;\\.# &;X/& 8!:Ƒ! )"),k('%%;!." &"/[#;!." &"/M$;!." &"/?$;!." &"/1$;!." &"/#$+%)(%\'#($\'#(#\'#("\'#&\'#/\' 8!:ƒ!! )'),k('%%;!/?#;!." &"/1$;!." &"/#$+#)(#\'#("\'#&\'#/\' 8!:Ɠ!! )'),k(";¾"),k('%;/^#$%;B/,#;ó/#$+")("\'#&\'#06*%;B/,#;ó/#$+")("\'#&\'#&/($8":Ɣ"!!)("\'#&\'#'),k(";ô.# &; "),k('%2ƕ""6ƕ7Ɩ/L#;</C$2Ɨ""6Ɨ7Ƙ.) &2ƙ""6ƙ7ƚ/($8#:ƛ#! )(#\'#("\'#&\'#'),k('%;/^#$%;B/,#; /#$+")("\'#&\'#06*%;B/,#; /#$+")("\'#&\'#&/($8":Ɯ"!!)("\'#&\'#'),k("%;6/5#;0/,$;÷/#$+#)(#'#(\"'#&'#"),k("$;2.) &;4.# &;.0/*;2.) &;4.# &;.&"),k("$;%0#*;%&"),k("%;ú/;#28\"\"6879/,$;û/#$+#)(#'#(\"'#&'#"),k('%3Ɲ""5%7ƞ.) &3Ɵ""5$7Ơ/\' 8!:ơ!! )'),k('%;ü/J#%28""6879/,#;^/#$+")("\'#&\'#." &"/#$+")("\'#&\'#'),k("%;\\.) &;X.# &;/' 8!:Ƣ!! )"),k(';".S &;!.M &2F""6F7G.A &2J""6J7K.5 &2H""6H7I.) &2N""6N7O'),k('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?'),k('%;Ā/b#28""6879/S$;û/J$%2ƣ""6ƣ7Ƥ/,#;ì/#$+")("\'#&\'#." &"/#$+$)($\'#(#\'#("\'#&\'#'),k('%3ƥ""5%7Ʀ.) &3Ƨ""5$7ƨ/\' 8!:ơ!! )'),k('%3±""5#7².6 &3³""5#7´.* &$;+0#*;+&/\' 8!:Ʃ!! )'),k("%;Ą/#2F\"\"6F7G/x$;ă/o$2F\"\"6F7G/`$;ă/W$2F\"\"6F7G/H$;ă/?$2F\"\"6F7G/0$;ą/'$8):ƪ) )()'#(('#(''#(&'#(%'#($'#(#'#(\"'#&'#"),k("%;#/>#;#/5$;#/,$;#/#$+$)($'#(#'#(\"'#&'#"),k("%;ă/,#;ă/#$+\")(\"'#&'#"),k("%;ă/5#;ă/,$;ă/#$+#)(#'#(\"'#&'#"),k("%;q/T#$;m0#*;m&/D$%; /,#;ø/#$+\")(\"'#&'#.\" &\"/#$+#)(#'#(\"'#&'#"),k('%2ƫ""6ƫ7Ƭ.) &2ƭ""6ƭ7Ʈ/w#;0/n$;Ĉ/e$$%;B/2#;ĉ.# &; /#$+")("\'#&\'#0<*%;B/2#;ĉ.# &; /#$+")("\'#&\'#&/#$+$)($\'#(#\'#("\'#&\'#'),k(";.# &;L"),k("%2Ư\"\"6Ư7ư/5#;</,$;Ċ/#$+#)(#'#(\"'#&'#"),k("%;D/S#;,/J$2:\"\"6:7;/;$;,.# &;T/,$;E/#$+%)(%'#($'#(#'#(\"'#&'#")];let l=0,c=0;const u=[{line:1,column:1}];let d,h=0,f=[],p=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');o=i[t.startRule]}function g(){return e.substring(c,l)}function m(){return w(c,l)}function v(e,t){return{type:"literal",text:e,ignoreCase:t}}function y(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function b(t){let n,r=u[t];if(r)return r;for(n=t-1;!u[n];)n--;for(r=u[n],r={line:r.line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return u[t]=r,r}function w(e,t){const n=b(e),i=b(t);return{source:r,start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:i.line,column:i.column}}}function x(e){l<h||(l>h&&(h=l,f=[]),f.push(e))}function k(e){return e.split("").map(e=>e.charCodeAt(0)-32)}if(t.data={},d=function t(r){const i=s[r];let o=0;const u=[];let d=i.length;const h=[],f=[];let g;for(;;){for(;o<d;)switch(i[o]){case 0:f.push(a[i[o+1]]),o+=2;break;case 1:f.push(void 0),o++;break;case 2:f.push(null),o++;break;case 3:f.push(n),o++;break;case 4:f.push([]),o++;break;case 5:f.push(l),o++;break;case 6:f.pop(),o++;break;case 7:l=f.pop(),o++;break;case 8:f.length-=i[o+1],o+=2;break;case 9:f.splice(-2,1),o++;break;case 10:f[f.length-2].push(f.pop()),o++;break;case 11:f.push(f.splice(f.length-i[o+1],i[o+1])),o+=2;break;case 12:f.push(e.substring(f.pop(),l)),o++;break;case 13:h.push(d),u.push(o+3+i[o+1]+i[o+2]),f[f.length-1]?(d=o+3+i[o+1],o+=3):(d=o+3+i[o+1]+i[o+2],o+=3+i[o+1]);break;case 14:h.push(d),u.push(o+3+i[o+1]+i[o+2]),f[f.length-1]===n?(d=o+3+i[o+1],o+=3):(d=o+3+i[o+1]+i[o+2],o+=3+i[o+1]);break;case 15:h.push(d),u.push(o+3+i[o+1]+i[o+2]),f[f.length-1]!==n?(d=o+3+i[o+1],o+=3):(d=o+3+i[o+1]+i[o+2],o+=3+i[o+1]);break;case 16:f[f.length-1]!==n?(h.push(d),u.push(o),d=o+2+i[o+1],o+=2):o+=2+i[o+1];break;case 17:h.push(d),u.push(o+3+i[o+1]+i[o+2]),e.length>l?(d=o+3+i[o+1],o+=3):(d=o+3+i[o+1]+i[o+2],o+=3+i[o+1]);break;case 18:h.push(d),u.push(o+4+i[o+2]+i[o+3]),e.substr(l,a[i[o+1]].length)===a[i[o+1]]?(d=o+4+i[o+2],o+=4):(d=o+4+i[o+2]+i[o+3],o+=4+i[o+2]);break;case 19:h.push(d),u.push(o+4+i[o+2]+i[o+3]),e.substr(l,a[i[o+1]].length).toLowerCase()===a[i[o+1]]?(d=o+4+i[o+2],o+=4):(d=o+4+i[o+2]+i[o+3],o+=4+i[o+2]);break;case 20:h.push(d),u.push(o+4+i[o+2]+i[o+3]),a[i[o+1]].test(e.charAt(l))?(d=o+4+i[o+2],o+=4):(d=o+4+i[o+2]+i[o+3],o+=4+i[o+2]);break;case 21:f.push(e.substr(l,i[o+1])),l+=i[o+1],o+=2;break;case 22:f.push(a[i[o+1]]),l+=a[i[o+1]].length,o+=2;break;case 23:f.push(n),0===p&&x(a[i[o+1]]),o+=2;break;case 24:c=f[f.length-1-i[o+1]],o+=2;break;case 25:c=l,o++;break;case 26:g=i.slice(o+4,o+4+i[o+3]).map(function(e){return f[f.length-1-e]}),f.splice(f.length-i[o+2],i[o+2],a[i[o+1]].apply(null,g)),o+=4+i[o+3];break;case 27:f.push(t(i[o+1])),o+=2;break;case 28:p++,o++;break;case 29:p--,o++;break;default:throw new Error("Invalid opcode: "+i[o]+".")}if(!(h.length>0))break;d=h.pop(),o=u.pop()}return f[0]}(o),d!==n&&l===e.length)return d;throw d!==n&&l<e.length&&x({type:"end"}),S=f,T=h<e.length?e.charAt(h):null,E=h<e.length?w(h,h+1):w(h,h),new Re(Re.buildMessage(S,T),S,T,E);var S,T,E};var _e,De;(De=_e=_e||(_e={})).parse=function(e,t){const n={startRule:t};try{Pe(e,n)}catch(r){n.data=-1}return n.data},De.nameAddrHeaderParse=function(e){const t=De.parse(e,"Name_Addr_Header");return-1!==t?t:void 0},De.URIParse=function(e){const t=De.parse(e,"SIP_URI");return-1!==t?t:void 0};const Ie={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 Ae(e,t=32){let n="";for(let r=0;r<e;r++){n+=Math.floor(Math.random()*t).toString(t)}return n}function Ne(e){return Ie[e]||""}function Me(){return Ae(10)}function $e(e){const t={"Call-Id":"Call-ID",Cseq:"CSeq","Min-Se":"Min-SE",Rack:"RAck",Rseq:"RSeq","Www-Authenticate":"WWW-Authenticate"},n=e.toLowerCase().replace(/_/g,"-").split("-"),r=n.length;let i="";for(let o=0;o<r;o++)0!==o&&(i+="-"),i+=n[o].charAt(0).toUpperCase()+n[o].substring(1);return t[i]&&(i=t[i]),i}function Oe(e){return encodeURIComponent(e).replace(/%[A-F\d]{2}/g,"U").length}class je{constructor(){this.headers={}}addHeader(e,t){const n={raw:t};e=$e(e),this.headers[e]?this.headers[e].push(n):this.headers[e]=[n]}getHeader(e){const t=this.headers[$e(e)];if(t)return t[0]?t[0].raw:void 0}getHeaders(e){const t=this.headers[$e(e)],n=[];if(!t)return[];for(const r of t)n.push(r.raw);return n}hasHeader(e){return!!this.headers[$e(e)]}parseHeader(e,t=0){if(e=$e(e),!this.headers[e])return;if(t>=this.headers[e].length)return;const n=this.headers[e][t],r=n.raw;if(n.parsed)return n.parsed;const i=_e.parse(r,e.replace(/-/g,"_"));return-1===i?void this.headers[e].splice(t,1):(n.parsed=i,i)}s(e,t=0){return this.parseHeader(e,t)}setHeader(e,t){this.headers[$e(e)]=[{raw:t}]}toString(){return this.data}}class Le extends je{constructor(){super()}}class He extends je{constructor(){super()}}class Fe{constructor(e,t,n,r,i,o,a){this.headers={},this.extraHeaders=[],this.options=Fe.getDefaultOptions(),i&&(this.options=Object.assign(Object.assign({},this.options),i),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())),o&&o.length&&(this.extraHeaders=o.slice()),a&&(this.body={body:a.content,contentType:a.contentType}),this.method=e,this.ruri=t.clone(),this.fromURI=n.clone(),this.fromTag=this.options.fromTag?this.options.fromTag:Me(),this.from=Fe.makeNameAddrHeader(this.fromURI,this.options.fromDisplayName,this.fromTag),this.toURI=r.clone(),this.toTag=this.options.toTag,this.to=Fe.makeNameAddrHeader(this.toURI,this.options.toDisplayName,this.toTag),this.callId=this.options.callId?this.options.callId:this.options.callIdPrefix+Ae(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(e,t,n){const r={};return n&&(r.tag=n),new Se(e,t,r)}getHeader(e){const t=this.headers[$e(e)];if(t){if(t[0])return t[0]}else{const t=new RegExp("^\\s*"+e+"\\s*:","i");for(const e of this.extraHeaders)if(t.test(e))return e.substring(e.indexOf(":")+1).trim()}}getHeaders(e){const t=[],n=this.headers[$e(e)];if(n)for(const r of n)t.push(r);else{const n=new RegExp("^\\s*"+e+"\\s*:","i");for(const e of this.extraHeaders)n.test(e)&&t.push(e.substring(e.indexOf(":")+1).trim())}return t}hasHeader(e){if(this.headers[$e(e)])return!0;{const t=new RegExp("^\\s*"+e+"\\s*:","i");for(const e of this.extraHeaders)if(t.test(e))return!0}return!1}setHeader(e,t){this.headers[$e(e)]=t instanceof Array?t:[t]}setViaHeader(e,t){this.options.hackViaTcp&&(t="TCP");let n="SIP/2.0/"+t;n+=" "+this.options.viaHost+";branch="+e,this.options.forceRport&&(n+=";rport"),this.setHeader("via",n),this.branch=e}toString(){let e="";e+=this.method+" "+this.ruri.toRaw()+" SIP/2.0\r\n";for(const t in this.headers)if(this.headers[t])for(const n of this.headers[t])e+=t+": "+n+"\r\n";for(const t of this.extraHeaders)e+=t.trim()+"\r\n";return e+="Supported: "+this.options.optionTags.join(", ")+"\r\n",e+="User-Agent: "+this.options.userAgentString+"\r\n",this.body?"string"==typeof this.body?(e+="Content-Length: "+Oe(this.body)+"\r\n\r\n",e+=this.body):this.body.body&&this.body.contentType?(e+="Content-Type: "+this.body.contentType+"\r\n",e+="Content-Length: "+Oe(this.body.body)+"\r\n\r\n",e+=this.body.body):e+="Content-Length: 0\r\n\r\n":e+="Content-Length: 0\r\n\r\n",e}}function Ue(e){return"application/sdp"===e?"session":"render"}function ze(e){const t="string"==typeof e?e:e.body,n="string"==typeof e?"application/sdp":e.contentType;return{contentDisposition:Ue(n),contentType:n,content:t}}function qe(e){return!(!e||"string"!=typeof e.content||"string"!=typeof e.contentType||void 0!==e.contentDisposition)||"string"==typeof e.contentDisposition}function Ve(e){let t,n,r;if(e instanceof Le&&e.body){const i=e.parseHeader("Content-Disposition");t=i?i.type:void 0,n=e.parseHeader("Content-Type"),r=e.body}if(e instanceof He&&e.body){const i=e.parseHeader("Content-Disposition");t=i?i.type:void 0,n=e.parseHeader("Content-Type"),r=e.body}if(e instanceof Fe&&e.body)if(t=e.getHeader("Content-Disposition"),n=e.getHeader("Content-Type"),"string"==typeof e.body){if(!n)throw new Error("Header content type header does not equal body content type.");r=e.body}else{if(n&&n!==e.body.contentType)throw new Error("Header content type header does not equal body content type.");n=e.body.contentType,r=e.body.body}if(qe(e)&&(t=e.contentDisposition,n=e.contentType,r=e.content),r){if(n&&!t&&(t=Ue(n)),!t)throw new Error("Content disposition undefined.");if(!n)throw new Error("Content type undefined.");return{contentDisposition:t,contentType:n,content:r}}}var Be,We,Ye,Ge;(We=Be=Be||(Be={})).Initial="Initial",We.Early="Early",We.AckWait="AckWait",We.Confirmed="Confirmed",We.Terminated="Terminated",(Ge=Ye=Ye||(Ye={})).Initial="Initial",Ge.HaveLocalOffer="HaveLocalOffer",Ge.HaveRemoteOffer="HaveRemoteOffer",Ge.Stable="Stable",Ge.Closed="Closed";const Ke=500,Qe={T1:Ke,T2:4e3,TIMER_B:32e3,TIMER_D:0,TIMER_F:32e3,TIMER_H:32e3,TIMER_I:0,TIMER_J:0,TIMER_K:0,TIMER_L:32e3,TIMER_M:32e3,TIMER_N:32e3,PROVISIONAL_RESPONSE_INTERVAL:6e4};class Xe extends de{constructor(e){super(e||"Transaction state error.")}}var Ze,Je;(Je=Ze=Ze||(Ze={})).ACK="ACK",Je.BYE="BYE",Je.CANCEL="CANCEL",Je.INFO="INFO",Je.INVITE="INVITE",Je.MESSAGE="MESSAGE",Je.NOTIFY="NOTIFY",Je.OPTIONS="OPTIONS",Je.REGISTER="REGISTER",Je.UPDATE="UPDATE",Je.SUBSCRIBE="SUBSCRIBE",Je.PUBLISH="PUBLISH",Je.REFER="REFER",Je.PRACK="PRACK";const et=[Ze.ACK,Ze.BYE,Ze.CANCEL,Ze.INFO,Ze.INVITE,Ze.MESSAGE,Ze.NOTIFY,Ze.OPTIONS,Ze.PRACK,Ze.REFER,Ze.REGISTER,Ze.SUBSCRIBE];class tt{constructor(e){this.incomingMessageRequest=e}get request(){return this.incomingMessageRequest.message}accept(e){return this.incomingMessageRequest.accept(e),Promise.resolve()}reject(e){return this.incomingMessageRequest.reject(e),Promise.resolve()}}class nt{constructor(e){this.incomingNotifyRequest=e}get request(){return this.incomingNotifyRequest.message}accept(e){return this.incomingNotifyRequest.accept(e),Promise.resolve()}reject(e){return this.incomingNotifyRequest.reject(e),Promise.resolve()}}class rt{constructor(e,t){this.incomingReferRequest=e,this.session=t}get referTo(){const e=this.incomingReferRequest.message.parseHeader("refer-to");if(!(e instanceof Se))throw new Error("Failed to parse Refer-To header.");return e}get referredBy(){return this.incomingReferRequest.message.getHeader("referred-by")}get replaces(){const e=this.referTo.uri.getHeader("replaces");return e instanceof Array?e[0]:e}get request(){return this.incomingReferRequest.message}accept(e={statusCode:202}){return this.incomingReferRequest.accept(e),Promise.resolve()}reject(e){return this.incomingReferRequest.reject(e),Promise.resolve()}makeInviter(e){if(this.inviter)return this.inviter;const t=this.referTo.uri.clone();t.clearHeaders();const n=((e=e||{}).extraHeaders||[]).slice(),r=this.replaces;r&&n.push("Replaces: "+decodeURIComponent(r));const i=this.referredBy;return i&&n.push("Referred-By: "+i),e.extraHeaders=n,this.inviter=this.session.userAgent._makeInviter(t,e),this.inviter._referred=this.session,this.session._referral=this.inviter,this.inviter}}var it,ot,at;!function(e){e.Initial="Initial",e.Establishing="Establishing",e.Established="Established",e.Terminating="Terminating",e.Terminated="Terminated"}(it=it||(it={}));class st{constructor(e,t={}){this.pendingReinvite=!1,this.pendingReinviteAck=!1,this._state=it.Initial,this.delegate=t.delegate,this._stateEventEmitter=new we,this._userAgent=e}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 it.Initial:case it.Establishing:break;case it.Established:return new Promise(e=>{this._bye({onAccept:()=>e(),onRedirect:()=>e(),onReject:()=>e()})});case it.Terminating:case it.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(e){this._sessionDescriptionHandlerModifiers=e.slice()}get sessionDescriptionHandlerOptions(){return this._sessionDescriptionHandlerOptions||{}}set sessionDescriptionHandlerOptions(e){this._sessionDescriptionHandlerOptions=Object.assign({},e)}get sessionDescriptionHandlerModifiersReInvite(){return this._sessionDescriptionHandlerModifiersReInvite||[]}set sessionDescriptionHandlerModifiersReInvite(e){this._sessionDescriptionHandlerModifiersReInvite=e.slice()}get sessionDescriptionHandlerOptionsReInvite(){return this._sessionDescriptionHandlerOptionsReInvite||{}}set sessionDescriptionHandlerOptionsReInvite(e){this._sessionDescriptionHandlerOptionsReInvite=Object.assign({},e)}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get userAgent(){return this._userAgent}bye(e={}){let t="Session.bye() may only be called if established session.";switch(this.state){case it.Initial:"function"==typeof this.cancel?(t+=" However Inviter.invite() has not yet been called.",t+=" Perhaps you should have called Inviter.cancel()?"):"function"==typeof this.reject&&(t+=" However Invitation.accept() has not yet been called.",t+=" Perhaps you should have called Invitation.reject()?");break;case it.Establishing:"function"==typeof this.cancel?(t+=" However a dialog does not yet exist.",t+=" Perhaps you should have called Inviter.cancel()?"):"function"==typeof this.reject&&(t+=" However Invitation.accept() has not yet been called (or not yet resolved).",t+=" Perhaps you should have called Invitation.reject()?");break;case it.Established:{const t=e.requestDelegate,n=this.copyRequestOptions(e.requestOptions);return this._bye(t,n)}case it.Terminating:t+=" However this session is already terminating.","function"==typeof this.cancel?t+=" Perhaps you have already called Inviter.cancel()?":"function"==typeof this.reject&&(t+=" Perhaps you have already called Session.bye()?");break;case it.Terminated:t+=" However this session is already terminated.";break;default:throw new Error("Unknown state")}return this.logger.error(t),Promise.reject(new Error(`Invalid session state ${this.state}`))}info(e={}){if(this.state!==it.Established){const e="Session.info() may only be called if established session.";return this.logger.error(e),Promise.reject(new Error(`Invalid session state ${this.state}`))}const t=e.requestDelegate,n=this.copyRequestOptions(e.requestOptions);return this._info(t,n)}invite(e={}){if(this.logger.log("Session.invite"),this.state!==it.Established)return Promise.reject(new Error(`Invalid session state ${this.state}`));if(this.pendingReinvite)return Promise.reject(new fe("Reinvite in progress. Please wait until complete, then try again."));this.pendingReinvite=!0,e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiersReInvite=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptionsReInvite=e.sessionDescriptionHandlerOptions);const t={onAccept:t=>{const n=Ve(t.message);if(!n)return this.logger.error("Received 2xx response to re-INVITE without a session description"),this.ackAndBye(t,400,"Missing session description"),this.stateTransition(it.Terminated),void(this.pendingReinvite=!1);if(e.withoutSdp){const r={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setOfferAndGetAnswer(n,r).then(e=>{t.ack({body:e})}).catch(e=>{this.logger.error("Failed to handle offer in 2xx response to re-INVITE"),this.logger.error(e.message),this.state===it.Terminated?t.ack():(this.ackAndBye(t,488,"Bad Media Description"),this.stateTransition(it.Terminated))}).then(()=>{this.pendingReinvite=!1,e.requestDelegate&&e.requestDelegate.onAccept&&e.requestDelegate.onAccept(t)})}else{const r={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.setAnswer(n,r).then(()=>{t.ack()}).catch(e=>{this.logger.error("Failed to handle answer in 2xx response to re-INVITE"),this.logger.error(e.message),this.state!==it.Terminated?(this.ackAndBye(t,488,"Bad Media Description"),this.stateTransition(it.Terminated)):t.ack()}).then(()=>{this.pendingReinvite=!1,e.requestDelegate&&e.requestDelegate.onAccept&&e.requestDelegate.onAccept(t)})}},onProgress:e=>{},onRedirect:e=>{},onReject:t=>{this.logger.warn("Received a non-2xx response to re-INVITE"),this.pendingReinvite=!1,e.withoutSdp?e.requestDelegate&&e.requestDelegate.onReject&&e.requestDelegate.onReject(t):this.rollbackOffer().catch(e=>{if(this.logger.error("Failed to rollback offer on non-2xx response to re-INVITE"),this.logger.error(e.message),this.state!==it.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const e=[];e.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:e}),this.stateTransition(it.Terminated)}}).then(()=>{e.requestDelegate&&e.requestDelegate.onReject&&e.requestDelegate.onReject(t)})},onTrying:e=>{}},n=e.requestOptions||{};if(n.extraHeaders=(n.extraHeaders||[]).slice(),n.extraHeaders.push("Allow: "+et.toString()),n.extraHeaders.push("Contact: "+this._contact),e.withoutSdp){if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return Promise.resolve(this.dialog.invite(t,n))}const r={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};return this.getOffer(r).then(e=>{if(!this.dialog)throw this.pendingReinvite=!1,new Error("Dialog undefined.");return n.body=e,this.dialog.invite(t,n)}).catch(e=>{throw this.logger.error(e.message),this.logger.error("Failed to send re-INVITE"),this.pendingReinvite=!1,e})}message(e={}){if(this.state!==it.Established){const e="Session.message() may only be called if established session.";return this.logger.error(e),Promise.reject(new Error(`Invalid session state ${this.state}`))}const t=e.requestDelegate,n=this.copyRequestOptions(e.requestOptions);return this._message(t,n)}refer(e,t={}){if(this.state!==it.Established){const e="Session.refer() may only be called if established session.";return this.logger.error(e),Promise.reject(new Error(`Invalid session state ${this.state}`))}if(e instanceof st&&!e.dialog){const e="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).";return this.logger.error(e),Promise.reject(new Error(`Invalid session state ${this.state}`))}const n=t.requestDelegate,r=this.copyRequestOptions(t.requestOptions);return r.extraHeaders=r.extraHeaders?r.extraHeaders.concat(this.referExtraHeaders(this.referToString(e))):this.referExtraHeaders(this.referToString(e)),this._refer(t.onNotify,n,r)}_bye(e,t){if(!this.dialog)return Promise.reject(new Error("Session dialog undefined."));const n=this.dialog;switch(n.sessionState){case Be.Initial:case Be.Early:throw new Error(`Invalid dialog state ${n.sessionState}`);case Be.AckWait:return this.stateTransition(it.Terminating),new Promise(r=>{n.delegate={onAck:()=>{const i=n.bye(e,t);return this.stateTransition(it.Terminated),r(i),Promise.resolve()},onAckTimeout:()=>{const i=n.bye(e,t);this.stateTransition(it.Terminated),r(i)}}});case Be.Confirmed:{const r=n.bye(e,t);return this.stateTransition(it.Terminated),Promise.resolve(r)}case Be.Terminated:throw new Error(`Invalid dialog state ${n.sessionState}`);default:throw new Error("Unrecognized state.")}}_info(e,t){return this.dialog?Promise.resolve(this.dialog.info(e,t)):Promise.reject(new Error("Session dialog undefined."))}_message(e,t){return this.dialog?Promise.resolve(this.dialog.message(e,t)):Promise.reject(new Error("Session dialog undefined."))}_refer(e,t,n){return this.dialog?(this.onNotify=e,Promise.resolve(this.dialog.refer(t,n))):Promise.reject(new Error("Session dialog undefined."))}ackAndBye(e,t,n){e.ack();const r=[];t&&r.push("Reason: "+this.getReasonHeaderValue(t,n)),e.session.bye(void 0,{extraHeaders:r})}onAckRequest(e){if(this.logger.log("Session.onAckRequest"),this.state!==it.Established&&this.state!==it.Terminating)return this.logger.error(`ACK received while in state ${this.state}, dropping request`),Promise.resolve();const t=this.dialog;if(!t)throw new Error("Dialog undefined.");const n={sessionDescriptionHandlerOptions:this.pendingReinviteAck?this.sessionDescriptionHandlerOptionsReInvite:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.pendingReinviteAck?this._sessionDescriptionHandlerModifiersReInvite:this._sessionDescriptionHandlerModifiers};if(this.delegate&&this.delegate.onAck){const t=new ve(e);this.delegate.onAck(t)}switch(this.pendingReinviteAck=!1,t.signalingState){case Ye.Initial:{this.logger.error(`Invalid signaling state ${t.signalingState}.`);const e=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return t.bye(void 0,{extraHeaders:e}),this.stateTransition(it.Terminated),Promise.resolve()}case Ye.Stable:{const r=Ve(e.message);return r?"render"===r.contentDisposition?(this._renderbody=r.content,this._rendertype=r.contentType,Promise.resolve()):"session"!==r.contentDisposition?Promise.resolve():this.setAnswer(r,n).catch(e=>{this.logger.error(e.message);const n=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];t.bye(void 0,{extraHeaders:n}),this.stateTransition(it.Terminated)}):Promise.resolve()}case Ye.HaveLocalOffer:{this.logger.error(`Invalid signaling state ${t.signalingState}.`);const e=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return t.bye(void 0,{extraHeaders:e}),this.stateTransition(it.Terminated),Promise.resolve()}case Ye.HaveRemoteOffer:{this.logger.error(`Invalid signaling state ${t.signalingState}.`);const e=["Reason: "+this.getReasonHeaderValue(488,"Bad Media Description")];return t.bye(void 0,{extraHeaders:e}),this.stateTransition(it.Terminated),Promise.resolve()}case Ye.Closed:default:throw new Error(`Invalid signaling state ${t.signalingState}.`)}}onByeRequest(e){if(this.logger.log("Session.onByeRequest"),this.state===it.Established){if(this.delegate&&this.delegate.onBye){const t=new ye(e);this.delegate.onBye(t)}else e.accept();this.stateTransition(it.Terminated)}else this.logger.error(`BYE received while in state ${this.state}, dropping request`)}onInfoRequest(e){if(this.logger.log("Session.onInfoRequest"),this.state===it.Established)if(this.delegate&&this.delegate.onInfo){const t=new xe(e);this.delegate.onInfo(t)}else e.accept();else this.logger.error(`INFO received while in state ${this.state}, dropping request`)}onInviteRequest(e){if(this.logger.log("Session.onInviteRequest"),this.state!==it.Established)return void this.logger.error(`INVITE received while in state ${this.state}, dropping request`);this.pendingReinviteAck=!0;const t=["Contact: "+this._contact];if(e.message.hasHeader("P-Asserted-Identity")){const t=e.message.getHeader("P-Asserted-Identity");if(!t)throw new Error("Header undefined.");this._assertedIdentity=_e.nameAddrHeaderParse(t)}const n={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptionsReInvite,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiersReInvite};this.generateResponseOfferAnswerInDialog(n).then(n=>{const r=e.accept({statusCode:200,extraHeaders:t,body:n});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(e.message,r.message,200)}).catch(t=>{if(this.logger.error(t.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 t=e.reject({statusCode:488});return void(this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(e.message,t.message,488))}this.rollbackOffer().then(()=>{const t=e.reject({statusCode:488});this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(e.message,t.message,488)}).catch(t=>{this.logger.error(t.message),this.logger.error("Failed to rollback offer on re-INVITE request");const n=e.reject({statusCode:488});if(this.state!==it.Terminated){if(!this.dialog)throw new Error("Dialog undefined.");const e=[];e.push("Reason: "+this.getReasonHeaderValue(500,"Internal Server Error")),this.dialog.bye(void 0,{extraHeaders:e}),this.stateTransition(it.Terminated)}this.delegate&&this.delegate.onInvite&&this.delegate.onInvite(e.message,n.message,488)})})}onMessageRequest(e){if(this.logger.log("Session.onMessageRequest"),this.state===it.Established)if(this.delegate&&this.delegate.onMessage){const t=new tt(e);this.delegate.onMessage(t)}else e.accept();else this.logger.error(`MESSAGE received while in state ${this.state}, dropping request`)}onNotifyRequest(e){if(this.logger.log("Session.onNotifyRequest"),this.state===it.Established){if(this.onNotify){const t=new nt(e);return void this.onNotify(t)}if(this.delegate&&this.delegate.onNotify){const t=new nt(e);this.delegate.onNotify(t)}else e.accept()}else this.logger.error(`NOTIFY received while in state ${this.state}, dropping request`)}onPrackRequest(e){if(this.logger.log("Session.onPrackRequest"),this.state===it.Established)throw new Error("Unimplemented.");this.logger.error(`PRACK received while in state ${this.state}, dropping request`)}onReferRequest(e){if(this.logger.log("Session.onReferRequest"),this.state!==it.Established)return void this.logger.error(`REFER received while in state ${this.state}, dropping request`);if(!e.message.hasHeader("refer-to"))return this.logger.warn("Invalid REFER packet. A refer-to header is required. Rejecting."),void e.reject();const t=new rt(e,this);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(t):(this.logger.log("No delegate available to handle REFER, automatically accepting and following."),t.accept().then(()=>t.makeInviter(this._referralInviterOptions).invite()).catch(e=>{this.logger.error(e.message)}))}generateResponseOfferAnswer(e,t){if(this.dialog)return this.generateResponseOfferAnswerInDialog(t);const n=Ve(e.message);return n&&"session"===n.contentDisposition?this.setOfferAndGetAnswer(n,t):this.getOffer(t)}generateResponseOfferAnswerInDialog(e){if(!this.dialog)throw new Error("Dialog undefined.");switch(this.dialog.signalingState){case Ye.Initial:return this.getOffer(e);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,e);case Ye.Stable:return this.state!==it.Established?Promise.resolve(void 0):this.getOffer(e);case Ye.Closed:default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}getOffer(e){const t=this.setupSessionDescriptionHandler(),n=e.sessionDescriptionHandlerOptions,r=e.sessionDescriptionHandlerModifiers;try{return t.getDescription(n,r).then(e=>ze(e)).catch(e=>{this.logger.error("Session.getOffer: SDH getDescription rejected...");const t=e instanceof Error?e:new Error("Session.getOffer unknown error.");throw this.logger.error(t.message),t})}catch(i){this.logger.error("Session.getOffer: SDH getDescription threw...");const e=i instanceof Error?i:new Error(i);return this.logger.error(e.message),Promise.reject(e)}}rollbackOffer(){const e=this.setupSessionDescriptionHandler();if(void 0===e.rollbackDescription)return Promise.resolve();try{return e.rollbackDescription().catch(e=>{this.logger.error("Session.rollbackOffer: SDH rollbackDescription rejected...");const t=e instanceof Error?e:new Error("Session.rollbackOffer unknown error.");throw this.logger.error(t.message),t})}catch(t){this.logger.error("Session.rollbackOffer: SDH rollbackDescription threw...");const e=t instanceof Error?t:new Error(t);return this.logger.error(e.message),Promise.reject(e)}}setAnswer(e,t){const n=this.setupSessionDescriptionHandler(),r=t.sessionDescriptionHandlerOptions,i=t.sessionDescriptionHandlerModifiers;try{if(!n.hasDescription(e.contentType))return Promise.reject(new he)}catch(o){this.logger.error("Session.setAnswer: SDH hasDescription threw...");const e=o instanceof Error?o:new Error(o);return this.logger.error(e.message),Promise.reject(e)}try{return n.setDescription(e.content,r,i).catch(e=>{this.logger.error("Session.setAnswer: SDH setDescription rejected...");const t=e instanceof Error?e:new Error("Session.setAnswer unknown error.");throw this.logger.error(t.message),t})}catch(o){this.logger.error("Session.setAnswer: SDH setDescription threw...");const e=o instanceof Error?o:new Error(o);return this.logger.error(e.message),Promise.reject(e)}}setOfferAndGetAnswer(e,t){const n=this.setupSessionDescriptionHandler(),r=t.sessionDescriptionHandlerOptions,i=t.sessionDescriptionHandlerModifiers;try{if(!n.hasDescription(e.contentType))return Promise.reject(new he)}catch(o){this.logger.error("Session.setOfferAndGetAnswer: SDH hasDescription threw...");const e=o instanceof Error?o:new Error(o);return this.logger.error(e.message),Promise.reject(e)}try{return n.setDescription(e.content,r,i).then(()=>n.getDescription(r,i)).then(e=>ze(e)).catch(e=>{this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription rejected...");const t=e instanceof Error?e:new Error("Session.setOfferAndGetAnswer unknown error.");throw this.logger.error(t.message),t})}catch(o){this.logger.error("Session.setOfferAndGetAnswer: SDH setDescription or getDescription threw...");const e=o instanceof Error?o:new Error(o);return this.logger.error(e.message),Promise.reject(e)}}setSessionDescriptionHandler(e){if(this._sessionDescriptionHandler)throw new Error("Session description handler defined.");this._sessionDescriptionHandler=e}setupSessionDescriptionHandler(){var e;return this._sessionDescriptionHandler||(this._sessionDescriptionHandler=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions),(null===(e=this.delegate)||void 0===e?void 0:e.onSessionDescriptionHandler)&&this.delegate.onSessionDescriptionHandler(this._sessionDescriptionHandler,!1)),this._sessionDescriptionHandler}stateTransition(e){const t=()=>{throw new Error(`Invalid state transition from ${this._state} to ${e}`)};switch(this._state){case it.Initial:e!==it.Establishing&&e!==it.Established&&e!==it.Terminating&&e!==it.Terminated&&t();break;case it.Establishing:e!==it.Established&&e!==it.Terminating&&e!==it.Terminated&&t();break;case it.Established:e!==it.Terminating&&e!==it.Terminated&&t();break;case it.Terminating:e!==it.Terminated&&t();break;case it.Terminated:t();break;default:throw new Error("Unrecognized state.")}this._state=e,this.logger.log(`Session ${this.id} transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),e===it.Terminated&&this.dispose()}copyRequestOptions(e={}){return{extraHeaders:e.extraHeaders?e.extraHeaders.slice():void 0,body:e.body?{contentDisposition:e.body.contentDisposition||"render",contentType:e.body.contentType||"text/plain",content:e.body.content||""}:void 0}}getReasonHeaderValue(e,t){const n=e;let r=Ne(e);return!r&&t&&(r=t),"SIP;cause="+n+';text="'+r+'"'}referExtraHeaders(e){const t=[];return t.push("Referred-By: <"+this.userAgent.configuration.uri+">"),t.push("Contact: "+this._contact),t.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),t.push("Refer-To: "+e),t}referToString(e){let t;if(e instanceof Te)t=e.toString();else{if(!e.dialog)throw new Error("Dialog undefined.");const n=e.remoteIdentity.friendlyName,r=e.dialog.remoteTarget.toString(),i=e.dialog.callId,o=e.dialog.remoteTag,a=e.dialog.localTag;t=`"${n}" <${r}?Replaces=${encodeURIComponent(`${i};to-tag=${o};from-tag=${a}`)}>`}return t}}(at=ot=ot||(ot={})).Required="Required",at.Supported="Supported",at.Unsupported="Unsupported";const lt={"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 ct extends st{constructor(e,t){super(e),this.incomingInviteRequest=t,this.disposed=!1,this.expiresTimer=void 0,this.isCanceled=!1,this.rel100="none",this.rseq=Math.floor(1e4*Math.random()),this.userNoAnswerTimer=void 0,this.waitingForPrack=!1,this.logger=e.getLogger("sip.Invitation");const n=this.incomingInviteRequest.message,r=n.getHeader("require");r&&r.toLowerCase().includes("100rel")&&(this.rel100="required");const i=n.getHeader("supported");if(i&&i.toLowerCase().includes("100rel")&&(this.rel100="supported"),n.toTag=t.toTag,"string"!=typeof n.toTag)throw new TypeError("toTag should have been a string.");if(this.userNoAnswerTimer=setTimeout(()=>{t.reject({statusCode:480}),this.stateTransition(it.Terminated)},this.userAgent.configuration.noAnswerTimeout?1e3*this.userAgent.configuration.noAnswerTimeout:6e4),n.hasHeader("expires")){const e=1e3*Number(n.getHeader("expires")||0);this.expiresTimer=setTimeout(()=>{this.state===it.Initial&&(t.reject({statusCode:487}),this.stateTransition(it.Terminated))},e)}const o=this.request.getHeader("P-Asserted-Identity");o&&(this._assertedIdentity=_e.nameAddrHeaderParse(o)),this._contact=this.userAgent.contact.toString();const a=n.parseHeader("Content-Disposition");a&&"render"===a.type&&(this._renderbody=n.body,this._rendertype=n.getHeader("Content-Type")),this._id=n.callId+n.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 it.Initial:case it.Establishing:return this.reject().then(()=>super.dispose());case it.Established:case it.Terminating:case it.Terminated:return super.dispose();default:throw new Error("Unknown state.")}}get autoSendAnInitialProvisionalResponse(){return"required"!==this.rel100&&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(e={}){if(this.logger.log("Invitation.accept"),this.state!==it.Initial){const e=new Error(`Invalid session state ${this.state}`);return this.logger.error(e.message),Promise.reject(e)}return e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),this.stateTransition(it.Establishing),this.sendAccept(e).then(({message:e,session:t})=>{t.delegate={onAck:e=>this.onAckRequest(e),onAckTimeout:()=>this.onAckTimeout(),onBye:e=>this.onByeRequest(e),onInfo:e=>this.onInfoRequest(e),onInvite:e=>this.onInviteRequest(e),onMessage:e=>this.onMessageRequest(e),onNotify:e=>this.onNotifyRequest(e),onPrack:e=>this.onPrackRequest(e),onRefer:e=>this.onReferRequest(e)},this._dialog=t,this.stateTransition(it.Established),this._replacee&&this._replacee._bye()}).catch(e=>this.handleResponseError(e))}progress(e={}){if(this.logger.log("Invitation.progress"),this.state!==it.Initial){const e=new Error(`Invalid session state ${this.state}`);return this.logger.error(e.message),Promise.reject(e)}const t=e.statusCode||180;if(t<100||t>199)throw new TypeError("Invalid statusCode: "+t);return e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),this.waitingForPrack?(this.logger.warn("Unexpected call for progress while waiting for prack, ignoring"),Promise.resolve()):100===e.statusCode?this.sendProgressTrying().then(()=>{}).catch(e=>this.handleResponseError(e)):"required"===this.rel100||"supported"===this.rel100&&e.rel100||"supported"===this.rel100&&this.userAgent.configuration.sipExtension100rel===ot.Required?this.sendProgressReliableWaitForPrack(e).then(()=>{}).catch(e=>this.handleResponseError(e)):this.sendProgress(e).then(()=>{}).catch(e=>this.handleResponseError(e))}reject(e={}){if(this.logger.log("Invitation.reject"),this.state!==it.Initial&&this.state!==it.Establishing){const e=new Error(`Invalid session state ${this.state}`);return this.logger.error(e.message),Promise.reject(e)}const t=e.statusCode||480,n=e.reasonPhrase?e.reasonPhrase:Ne(t),r=e.extraHeaders||[];if(t<300||t>699)throw new TypeError("Invalid statusCode: "+t);const i=e.body?ze(e.body):void 0;return t<400?this.incomingInviteRequest.redirect([],{statusCode:t,reasonPhrase:n,extraHeaders:r,body:i}):this.incomingInviteRequest.reject({statusCode:t,reasonPhrase:n,extraHeaders:r,body:i}),this.stateTransition(it.Terminated),Promise.resolve()}_onCancel(e){if(this.logger.log("Invitation._onCancel"),this.state===it.Initial||this.state===it.Establishing){if(this.delegate&&this.delegate.onCancel){const t=new be(e);this.delegate.onCancel(t)}this.isCanceled=!0,this.incomingInviteRequest.reject({statusCode:487}),this.stateTransition(it.Terminated)}else this.logger.error(`CANCEL received while in state ${this.state}, dropping request`)}handlePrackOfferAnswer(e){if(!this.dialog)throw new Error("Dialog undefined.");const t=Ve(e.message);if(!t||"session"!==t.contentDisposition)return Promise.resolve(void 0);const n={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(t,n).then(()=>{});case Ye.HaveLocalOffer:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`);case Ye.HaveRemoteOffer:return this.setOfferAndGetAnswer(t,n);case Ye.Closed:default:throw new Error(`Invalid signaling state ${this.dialog.signalingState}.`)}}handleResponseError(e){let t=480;if(e instanceof Error?this.logger.error(e.message):this.logger.error(e),e instanceof he?(this.logger.error("A session description handler occurred while sending response (content type unsupported"),t=415):e instanceof pe?this.logger.error("A session description handler occurred while sending response"):e instanceof ge?this.logger.error("Session ended before response could be formulated and sent (while waiting for PRACK)"):e instanceof Xe&&this.logger.error("Session changed state before response could be formulated and sent"),this.state===it.Initial||this.state===it.Establishing)try{this.incomingInviteRequest.reject({statusCode:t}),this.stateTransition(it.Terminated)}catch(n){throw this.logger.error("An error occurred attempting to reject the request while handling another error"),n}if(!this.isCanceled)throw e;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.")}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(it.Terminated)}sendAccept(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},n=e.extraHeaders||[];return this.waitingForPrack?this.waitForArrivalOfPrack().then(()=>clearTimeout(this.userNoAnswerTimer)).then(()=>this.generateResponseOfferAnswer(this.incomingInviteRequest,t)).then(e=>this.incomingInviteRequest.accept({statusCode:200,body:e,extraHeaders:n})):(clearTimeout(this.userNoAnswerTimer),this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(e=>this.incomingInviteRequest.accept({statusCode:200,body:e,extraHeaders:n})))}sendProgress(e={}){const t=e.statusCode||180,n=e.reasonPhrase,r=(e.extraHeaders||[]).slice(),i=e.body?ze(e.body):void 0;if(183===t&&!i)return this.sendProgressWithSDP(e);try{const e=this.incomingInviteRequest.progress({statusCode:t,reasonPhrase:n,extraHeaders:r,body:i});return this._dialog=e.session,Promise.resolve(e)}catch(o){return Promise.reject(o)}}sendProgressWithSDP(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},n=e.statusCode||183,r=e.reasonPhrase,i=(e.extraHeaders||[]).slice();return this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(e=>this.incomingInviteRequest.progress({statusCode:n,reasonPhrase:r,extraHeaders:i,body:e})).then(e=>(this._dialog=e.session,e))}sendProgressReliable(e={}){return e.extraHeaders=(e.extraHeaders||[]).slice(),e.extraHeaders.push("Require: 100rel"),e.extraHeaders.push("RSeq: "+Math.floor(1e4*Math.random())),this.sendProgressWithSDP(e)}sendProgressReliableWaitForPrack(e={}){const t={sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions,sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers},n=e.statusCode||183,r=e.reasonPhrase,i=(e.extraHeaders||[]).slice();let o;return i.push("Require: 100rel"),i.push("RSeq: "+this.rseq++),new Promise((e,a)=>{this.waitingForPrack=!0,this.generateResponseOfferAnswer(this.incomingInviteRequest,t).then(e=>(o=e,this.incomingInviteRequest.progress({statusCode:n,reasonPhrase:r,extraHeaders:i,body:o}))).then(t=>{let s,l;this._dialog=t.session,t.session.delegate={onPrack:n=>{s=n,clearTimeout(c),clearTimeout(h),this.waitingForPrack&&(this.waitingForPrack=!1,this.handlePrackOfferAnswer(s).then(n=>{try{l=s.accept({statusCode:200,body:n}),this.prackArrived(),e({prackRequest:s,prackResponse:l,progressResponse:t})}catch(r){a(r)}}).catch(e=>a(e)))}};const c=setTimeout(()=>{this.waitingForPrack&&(this.waitingForPrack=!1,this.logger.warn("No PRACK received, rejecting INVITE."),clearTimeout(h),this.reject({statusCode:504}).then(()=>a(new ge)).catch(e=>a(e)))},64*Qe.T1),u=()=>{try{this.incomingInviteRequest.progress({statusCode:n,reasonPhrase:r,extraHeaders:i,body:o})}catch(e){return this.waitingForPrack=!1,void a(e)}h=setTimeout(u,d*=2)};let d=Qe.T1,h=setTimeout(u,d)}).catch(e=>{this.waitingForPrack=!1,a(e)})})}sendProgressTrying(){try{const e=this.incomingInviteRequest.trying();return Promise.resolve(e)}catch(e){return Promise.reject(e)}}waitForArrivalOfPrack(){if(this.waitingForPrackPromise)throw new Error("Already waiting for PRACK");return this.waitingForPrackPromise=new Promise((e,t)=>{this.waitingForPrackResolve=e,this.waitingForPrackReject=t}),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 ge),this.waitingForPrackPromise=void 0,this.waitingForPrackResolve=void 0,this.waitingForPrackReject=void 0}}class ut extends st{constructor(e,t,n={}){super(e,n),this.disposed=!1,this.earlyMedia=!1,this.earlyMediaSessionDescriptionHandlers=new Map,this.isCanceled=!1,this.inviteWithoutSdp=!1,this.logger=e.getLogger("sip.Inviter"),this.earlyMedia=void 0!==n.earlyMedia?n.earlyMedia:this.earlyMedia,this.fromTag=Me(),this.inviteWithoutSdp=void 0!==n.inviteWithoutSdp?n.inviteWithoutSdp:this.inviteWithoutSdp;const r=Object.assign({},n);r.params=Object.assign({},n.params);const i=n.anonymous||!1,o=e.contact.toString({anonymous:i,outbound:i?!e.contact.tempGruu:!e.contact.pubGruu});i&&e.configuration.uri&&(r.params.fromDisplayName="Anonymous",r.params.fromUri="sip:anonymous@anonymous.invalid");let a=e.userAgentCore.configuration.aor;if(r.params.fromUri&&(a="string"==typeof r.params.fromUri?_e.URIParse(r.params.fromUri):r.params.fromUri),!a)throw new TypeError("Invalid from URI: "+r.params.fromUri);let s=t;if(r.params.toUri&&(s="string"==typeof r.params.toUri?_e.URIParse(r.params.toUri):r.params.toUri),!s)throw new TypeError("Invalid to URI: "+r.params.toUri);const l=Object.assign({},r.params);l.fromTag=this.fromTag;const c=(r.extraHeaders||[]).slice();i&&e.configuration.uri&&(c.push("P-Preferred-Identity: "+e.configuration.uri.toString()),c.push("Privacy: id")),c.push("Contact: "+o),c.push("Allow: "+["ACK","CANCEL","INVITE","MESSAGE","BYE","OPTIONS","INFO","NOTIFY","REFER"].toString()),e.configuration.sipExtension100rel===ot.Required&&c.push("Require: 100rel"),e.configuration.sipExtensionReplaces===ot.Required&&c.push("Require: replaces"),r.extraHeaders=c;this.outgoingRequestMessage=e.userAgentCore.makeOutgoingRequestMessage(Ze.INVITE,t,a,s,l,c,void 0),this._contact=o,this._referralInviterOptions=r,this._renderbody=n.renderbody,this._rendertype=n.rendertype,n.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=n.sessionDescriptionHandlerModifiers),n.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=n.sessionDescriptionHandlerOptions),n.sessionDescriptionHandlerModifiersReInvite&&(this.sessionDescriptionHandlerModifiersReInvite=n.sessionDescriptionHandlerModifiersReInvite),n.sessionDescriptionHandlerOptionsReInvite&&(this.sessionDescriptionHandlerOptionsReInvite=n.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 it.Initial:case it.Establishing:return this.cancel().then(()=>super.dispose());case it.Established:case it.Terminating:case it.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(e={}){if(this.logger.log("Inviter.cancel"),this.state!==it.Initial&&this.state!==it.Establishing){const e=new Error(`Invalid session state ${this.state}`);return this.logger.error(e.message),Promise.reject(e)}if(this.isCanceled=!0,this.stateTransition(it.Terminating),this.outgoingInviteRequest){let t;e.statusCode&&e.reasonPhrase&&(t=function(e,t){if(e&&e<200||e>699)throw new TypeError("Invalid statusCode: "+e);if(e)return"SIP;cause="+e+';text="'+(Ne(e)||t)+'"'}(e.statusCode,e.reasonPhrase)),this.outgoingInviteRequest.cancel(t,e)}else this.logger.warn("Canceled session before INVITE was sent"),this.stateTransition(it.Terminated);return Promise.resolve()}invite(e={}){if(this.logger.log("Inviter.invite"),this.state!==it.Initial)return super.invite(e);if(e.sessionDescriptionHandlerModifiers&&(this.sessionDescriptionHandlerModifiers=e.sessionDescriptionHandlerModifiers),e.sessionDescriptionHandlerOptions&&(this.sessionDescriptionHandlerOptions=e.sessionDescriptionHandlerOptions),e.withoutSdp||this.inviteWithoutSdp)return this._renderbody&&this._rendertype&&(this.outgoingRequestMessage.body={contentType:this._rendertype,body:this._renderbody}),this.stateTransition(it.Establishing),Promise.resolve(this.sendInvite(e));const t={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.getOffer(t).then(t=>(this.outgoingRequestMessage.body={body:t.content,contentType:t.contentType},this.stateTransition(it.Establishing),this.sendInvite(e))).catch(e=>{throw this.logger.log(e.message),this.state!==it.Terminated&&this.stateTransition(it.Terminated),e})}sendInvite(e={}){return this.outgoingInviteRequest=this.userAgent.userAgentCore.invite(this.outgoingRequestMessage,{onAccept:t=>this.dialog?(this.logger.log("Additional confirmed dialog, sending ACK and BYE"),void this.ackAndBye(t)):this.isCanceled?(this.logger.log("Canceled session accepted, sending ACK and BYE"),this.ackAndBye(t),void this.stateTransition(it.Terminated)):(this.notifyReferer(t),void this.onAccept(t).then(()=>{this.disposeEarlyMedia()}).catch(()=>{this.disposeEarlyMedia()}).then(()=>{e.requestDelegate&&e.requestDelegate.onAccept&&e.requestDelegate.onAccept(t)})),onProgress:t=>{this.isCanceled||(this.notifyReferer(t),this.onProgress(t).catch(()=>{this.disposeEarlyMedia()}).then(()=>{e.requestDelegate&&e.requestDelegate.onProgress&&e.requestDelegate.onProgress(t)}))},onRedirect:t=>{this.notifyReferer(t),this.onRedirect(t),e.requestDelegate&&e.requestDelegate.onRedirect&&e.requestDelegate.onRedirect(t)},onReject:t=>{this.notifyReferer(t),this.onReject(t),e.requestDelegate&&e.requestDelegate.onReject&&e.requestDelegate.onReject(t)},onTrying:t=>{this.notifyReferer(t),this.onTrying(t),e.requestDelegate&&e.requestDelegate.onTrying&&e.requestDelegate.onTrying(t)}}),this.outgoingInviteRequest}disposeEarlyMedia(){this.earlyMediaSessionDescriptionHandlers.forEach(e=>{e.close()}),this.earlyMediaSessionDescriptionHandlers.clear()}notifyReferer(e){if(!this._referred)return;if(!(this._referred instanceof st))throw new Error("Referred session not instance of session");if(!this._referred.dialog)return;if(!e.message.statusCode)throw new Error("Status code undefined.");if(!e.message.reasonPhrase)throw new Error("Reason phrase undefined.");const t=`SIP/2.0 ${e.message.statusCode} ${e.message.reasonPhrase}`.trim();this._referred.dialog.notify(void 0,{extraHeaders:["Event: refer","Subscription-State: terminated"],body:{contentDisposition:"render",contentType:"message/sipfrag",content:t}}).delegate={onReject:()=>{this._referred=void 0}}}onAccept(e){if(this.logger.log("Inviter.onAccept"),this.state!==it.Establishing)return this.logger.error(`Accept received while in state ${this.state}, dropping response`),Promise.reject(new Error(`Invalid session state ${this.state}`));const t=e.message,n=e.session;switch(t.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=_e.nameAddrHeaderParse(t.getHeader("P-Asserted-Identity"))),n.delegate={onAck:e=>this.onAckRequest(e),onBye:e=>this.onByeRequest(e),onInfo:e=>this.onInfoRequest(e),onInvite:e=>this.onInviteRequest(e),onMessage:e=>this.onMessageRequest(e),onNotify:e=>this.onNotifyRequest(e),onPrack:e=>this.onPrackRequest(e),onRefer:e=>this.onReferRequest(e)},this._dialog=n,n.signalingState){case Ye.Initial:case Ye.HaveLocalOffer:return this.logger.error("Received 2xx response to INVITE without a session description"),this.ackAndBye(e,400,"Missing session description"),this.stateTransition(it.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 t={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setOfferAndGetAnswer(this._dialog.offer,t).then(t=>{e.ack({body:t}),this.stateTransition(it.Established)}).catch(t=>{throw this.ackAndBye(e,488,"Invalid session description"),this.stateTransition(it.Terminated),t})}case Ye.Stable:{if(this.earlyMediaSessionDescriptionHandlers.size>0){const t=this.earlyMediaSessionDescriptionHandlers.get(n.id);if(!t)throw new Error("Session description handler undefined.");return this.setSessionDescriptionHandler(t),this.earlyMediaSessionDescriptionHandlers.delete(n.id),e.ack(),this.stateTransition(it.Established),Promise.resolve()}if(this.earlyMediaDialog){if(this.earlyMediaDialog!==n){if(this.earlyMedia){const e="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.";this.logger.error(e)}const t=new Error("Early media dialog does not equal confirmed dialog, terminating session");return this.logger.error(t.message),this.ackAndBye(e,488,"Not Acceptable Here"),this.stateTransition(it.Terminated),Promise.reject(t)}return e.ack(),this.stateTransition(it.Established),Promise.resolve()}const t=n.answer;if(!t)throw new Error("Answer is undefined.");const r={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(t,r).then(()=>{let t;this._renderbody&&this._rendertype&&(t={body:{contentDisposition:"render",contentType:this._rendertype,content:this._renderbody}}),e.ack(t),this.stateTransition(it.Established)}).catch(t=>{throw this.logger.error(t.message),this.ackAndBye(e,488,"Not Acceptable Here"),this.stateTransition(it.Terminated),t})}case Ye.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onProgress(e){var t;if(this.logger.log("Inviter.onProgress"),this.state!==it.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 n=e.message,r=e.session;n.hasHeader("P-Asserted-Identity")&&(this._assertedIdentity=_e.nameAddrHeaderParse(n.getHeader("P-Asserted-Identity")));const i=n.getHeader("require"),o=n.getHeader("rseq"),a=!!(i&&i.includes("100rel")&&o?Number(o):void 0),s=[];switch(a&&s.push("RAck: "+n.getHeader("rseq")+" "+n.getHeader("cseq")),r.signalingState){case Ye.Initial:return a&&(this.logger.warn("First reliable provisional response received MUST contain an offer when INVITE does not contain an offer."),e.prack({extraHeaders:s})),Promise.resolve();case Ye.HaveLocalOffer:return a&&e.prack({extraHeaders:s}),Promise.resolve();case Ye.HaveRemoteOffer:if(!a)return this.logger.warn("Non-reliable provisional response MUST NOT contain an initial offer, discarding response."),Promise.resolve();{const i=this.sessionDescriptionHandlerFactory(this,this.userAgent.configuration.sessionDescriptionHandlerFactoryOptions||{});return(null===(t=this.delegate)||void 0===t?void 0:t.onSessionDescriptionHandler)&&this.delegate.onSessionDescriptionHandler(i,!0),this.earlyMediaSessionDescriptionHandlers.set(r.id,i),i.setDescription(n.body,this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers).then(()=>i.getDescription(this.sessionDescriptionHandlerOptions,this.sessionDescriptionHandlerModifiers)).then(t=>{const n={contentDisposition:"session",contentType:t.contentType,content:t.body};e.prack({extraHeaders:s,body:n})}).catch(e=>{throw this.stateTransition(it.Terminated),e})}case Ye.Stable:if(a&&e.prack({extraHeaders:s}),this.earlyMedia&&!this.earlyMediaDialog){this.earlyMediaDialog=r;const e=r.answer;if(!e)throw new Error("Answer is undefined.");const t={sessionDescriptionHandlerModifiers:this.sessionDescriptionHandlerModifiers,sessionDescriptionHandlerOptions:this.sessionDescriptionHandlerOptions};return this.setAnswer(e,t).catch(e=>{throw this.stateTransition(it.Terminated),e})}return Promise.resolve();case Ye.Closed:return Promise.reject(new Error("Terminated."));default:throw new Error("Unknown session signaling state.")}}onRedirect(e){this.logger.log("Inviter.onRedirect"),this.state===it.Establishing||this.state===it.Terminating?this.stateTransition(it.Terminated):this.logger.error(`Redirect received while in state ${this.state}, dropping response`)}onReject(e){this.logger.log("Inviter.onReject"),this.state===it.Establishing||this.state===it.Terminating?this.stateTransition(it.Terminated):this.logger.error(`Reject received while in state ${this.state}, dropping response`)}onTrying(e){this.logger.log("Inviter.onTrying"),this.state===it.Establishing||this.logger.error(`Trying received while in state ${this.state}, dropping response`)}}class dt{constructor(e,t,n,r="text/plain",i={}){this.logger=e.getLogger("sip.Messager"),i.params=i.params||{};let o=e.userAgentCore.configuration.aor;if(i.params.fromUri&&(o="string"==typeof i.params.fromUri?_e.URIParse(i.params.fromUri):i.params.fromUri),!o)throw new TypeError("Invalid from URI: "+i.params.fromUri);let a=t;if(i.params.toUri&&(a="string"==typeof i.params.toUri?_e.URIParse(i.params.toUri):i.params.toUri),!a)throw new TypeError("Invalid to URI: "+i.params.toUri);const s=i.params?Object.assign({},i.params):{},l=(i.extraHeaders||[]).slice(),c={contentDisposition:"render",contentType:r,content:n};this.request=e.userAgentCore.makeOutgoingRequestMessage(Ze.MESSAGE,t,o,a,s,l,c),this.userAgent=e}message(e={}){return this.userAgent.userAgentCore.request(this.request,e.requestDelegate),Promise.resolve()}}var ht,ft,pt,gt,mt,vt,yt,bt,wt,xt,kt,St,Tt;(ft=ht=ht||(ht={})).Initial="Initial",ft.Registered="Registered",ft.Unregistered="Unregistered",ft.Terminated="Terminated";class Et{constructor(e,t={}){this.disposed=!1,this._contacts=[],this._retryAfter=void 0,this._state=ht.Initial,this._waiting=!1,this._stateEventEmitter=new we,this._waitingEventEmitter=new we,this.userAgent=e;const n=e.configuration.uri.clone();if(n.user=void 0,this.options=Object.assign(Object.assign(Object.assign({},Et.defaultOptions()),{registrar:n}),Et.stripUndefinedProperties(t)),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&&-1===_e.parse(this.options.instanceId,"uuid"))throw new Error("Invalid instanceId.");if(this.options.regId&&this.options.regId<0)throw new Error("Invalid regId.");const r=this.options.registrar,i=this.options.params&&this.options.params.fromUri||e.userAgentCore.configuration.aor,o=this.options.params&&this.options.params.toUri||e.configuration.uri,a=this.options.params||{},s=(t.extraHeaders||[]).slice();if(this.request=e.userAgentCore.makeOutgoingRequestMessage(Ze.REGISTER,r,i,o,a,s,void 0),this.expires=this.options.expires||Et.defaultExpires,this.expires<0)throw new Error("Invalid expires.");if(this.refreshFrequency=this.options.refreshFrequency||Et.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=e.getLogger("sip.Registerer"),this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(e=>{const t=this.options[e];if("registrar"===e)this.logger.log("· "+e+": "+t);else this.logger.log("· "+e+": "+JSON.stringify(t))})),this.id=this.request.callId+this.request.from.parameters.tag,this.userAgent._registerers[this.id]=this}static defaultOptions(){return{expires:Et.defaultExpires,extraContactHeaderParams:[],extraHeaders:[],logConfiguration:!0,instanceId:"",params:{},regId:0,registrar:new Te("sip","anonymous","anonymous.invalid"),refreshFrequency:Et.defaultRefreshFrequency}}static stripUndefinedProperties(e){return Object.keys(e).reduce((t,n)=>(void 0!==e[n]&&(t[n]=e[n]),t),{})}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(e=>{const t=()=>{if(!this.waiting&&this._state===ht.Registered)return this.stateChange.addListener(()=>{this.terminated(),e()},{once:!0}),void this.unregister();this.terminated(),e()};this.waiting?this.waitingChange.addListener(()=>{t()},{once:!0}):t()}))}register(e={}){if(this.state===ht.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 e=new fe("REGISTER request already in progress, waiting for final response");return Promise.reject(e)}e.requestOptions&&(this.options=Object.assign(Object.assign({},this.options),e.requestOptions));const t=(this.options.extraHeaders||[]).slice();t.push("Contact: "+this.generateContactHeader(this.expires)),t.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=t,this.waitingToggle(!0);const n=this.userAgent.userAgentCore.register(this.request,{onAccept:t=>{let n;t.message.hasHeader("expires")&&(n=Number(t.message.getHeader("expires"))),this._contacts=t.message.getHeaders("contact");let r,i=this._contacts.length;if(!i)return this.logger.error("No Contact header in response to REGISTER, dropping response."),void this.unregistered();for(;i--;){if(r=t.message.parseHeader("contact",i),!r)throw new Error("Contact undefined");if(this.userAgent.contact.pubGruu&&Ee(r.uri,this.userAgent.contact.pubGruu)){n=Number(r.getParam("expires"));break}if(""===this.userAgent.configuration.contactName){if(r.uri.user===this.userAgent.contact.uri.user){n=Number(r.getParam("expires"));break}}else if(Ee(r.uri,this.userAgent.contact.uri)){n=Number(r.getParam("expires"));break}r=void 0}if(void 0===r)return this.logger.error("No Contact header pointing to us, dropping response"),this.unregistered(),void this.waitingToggle(!1);if(void 0===n)return this.logger.error("Contact pointing to us is missing expires parameter, dropping response"),this.unregistered(),void this.waitingToggle(!1);if(r.hasParam("temp-gruu")){const e=r.getParam("temp-gruu");e&&(this.userAgent.contact.tempGruu=_e.URIParse(e.replace(/"/g,"")))}if(r.hasParam("pub-gruu")){const e=r.getParam("pub-gruu");e&&(this.userAgent.contact.pubGruu=_e.URIParse(e.replace(/"/g,"")))}this.registered(n),e.requestDelegate&&e.requestDelegate.onAccept&&e.requestDelegate.onAccept(t),this.waitingToggle(!1)},onProgress:t=>{e.requestDelegate&&e.requestDelegate.onProgress&&e.requestDelegate.onProgress(t)},onRedirect:t=>{this.logger.error("Redirect received. Not supported."),this.unregistered(),e.requestDelegate&&e.requestDelegate.onRedirect&&e.requestDelegate.onRedirect(t),this.waitingToggle(!1)},onReject:t=>{if(423===t.message.statusCode)return t.message.hasHeader("min-expires")?(this.expires=Number(t.message.getHeader("min-expires")),this.waitingToggle(!1),void this.register()):(this.logger.error("423 response received for REGISTER without Min-Expires, dropping response"),this.unregistered(),void this.waitingToggle(!1));this.logger.warn(`Failed to register, status code ${t.message.statusCode}`);let n=NaN;if(500===t.message.statusCode||503===t.message.statusCode){const e=t.message.getHeader("retry-after");e&&(n=Number.parseInt(e,void 0))}this._retryAfter=isNaN(n)?void 0:n,this.unregistered(),e.requestDelegate&&e.requestDelegate.onReject&&e.requestDelegate.onReject(t),this._retryAfter=void 0,this.waitingToggle(!1)},onTrying:t=>{e.requestDelegate&&e.requestDelegate.onTrying&&e.requestDelegate.onTrying(t)}});return Promise.resolve(n)}unregister(e={}){if(this.state===ht.Terminated)throw this.stateError(),new Error("Registerer terminated. Unable to register.");if(this.disposed&&this.state!==ht.Registered)throw this.stateError(),new Error("Registerer disposed. Unable to register.");if(this.waiting){this.waitingWarning();const e=new fe("REGISTER request already in progress, waiting for final response");return Promise.reject(e)}this._state===ht.Registered||e.all||this.logger.warn("Not currently registered, but sending an unregister anyway.");const t=(e.requestOptions&&e.requestOptions.extraHeaders||[]).slice();this.request.extraHeaders=t,e.all?(t.push("Contact: *"),t.push("Expires: 0")):t.push("Contact: "+this.generateContactHeader(0)),this.request.cseq++,this.request.setHeader("cseq",this.request.cseq+" REGISTER"),void 0!==this.registrationTimer&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),this.waitingToggle(!0);const n=this.userAgent.userAgentCore.register(this.request,{onAccept:t=>{this._contacts=t.message.getHeaders("contact"),this.unregistered(),e.requestDelegate&&e.requestDelegate.onAccept&&e.requestDelegate.onAccept(t),this.waitingToggle(!1)},onProgress:t=>{e.requestDelegate&&e.requestDelegate.onProgress&&e.requestDelegate.onProgress(t)},onRedirect:t=>{this.logger.error("Unregister redirected. Not currently supported."),this.unregistered(),e.requestDelegate&&e.requestDelegate.onRedirect&&e.requestDelegate.onRedirect(t),this.waitingToggle(!1)},onReject:t=>{this.logger.error(`Unregister rejected with status code ${t.message.statusCode}`),this.unregistered(),e.requestDelegate&&e.requestDelegate.onReject&&e.requestDelegate.onReject(t),this.waitingToggle(!1)},onTrying:t=>{e.requestDelegate&&e.requestDelegate.onTrying&&e.requestDelegate.onTrying(t)}});return Promise.resolve(n)}clearTimers(){void 0!==this.registrationTimer&&(clearTimeout(this.registrationTimer),this.registrationTimer=void 0),void 0!==this.registrationExpiredTimer&&(clearTimeout(this.registrationExpiredTimer),this.registrationExpiredTimer=void 0)}generateContactHeader(e){let t=this.userAgent.contact.toString({register:!0});return this.options.regId&&this.options.instanceId&&(t+=";reg-id="+this.options.regId,t+=';+sip.instance="<urn:uuid:'+this.options.instanceId+'>"'),this.options.extraContactHeaderParams&&this.options.extraContactHeaderParams.forEach(e=>{t+=";"+e}),t+=";expires="+e,t}registered(e){this.clearTimers(),this.registrationTimer=setTimeout(()=>{this.registrationTimer=void 0,this.register()},this.refreshFrequency/100*e*1e3),this.registrationExpiredTimer=setTimeout(()=>{this.logger.warn("Registration expired"),this.unregistered()},1e3*e),this._state!==ht.Registered&&this.stateTransition(ht.Registered)}unregistered(){this.clearTimers(),this._state!==ht.Unregistered&&this.stateTransition(ht.Unregistered)}terminated(){this.clearTimers(),this._state!==ht.Terminated&&this.stateTransition(ht.Terminated)}stateTransition(e){const t=()=>{throw new Error(`Invalid state transition from ${this._state} to ${e}`)};switch(this._state){case ht.Initial:e!==ht.Registered&&e!==ht.Unregistered&&e!==ht.Terminated&&t();break;case ht.Registered:e!==ht.Unregistered&&e!==ht.Terminated&&t();break;case ht.Unregistered:e!==ht.Registered&&e!==ht.Terminated&&t();break;case ht.Terminated:t();break;default:throw new Error("Unrecognized state.")}this._state=e,this.logger.log(`Registration transitioned to state ${this._state}`),this._stateEventEmitter.emit(this._state),e===ht.Terminated&&this.dispose()}get waiting(){return this._waiting}get waitingChange(){return this._waitingEventEmitter}waitingToggle(e){if(this._waiting===e)throw new Error(`Invalid waiting transition from ${this._waiting} to ${e}`);this._waiting=e,this.logger.log(`Waiting toggled to ${this._waiting}`),this._waitingEventEmitter.emit(this._waiting)}waitingWarning(){let e="An attempt was made to send a REGISTER request while a prior one was still in progress.";e+=" RFC 3261 requires UAs MUST NOT send a new registration until they have received a final response",e+=" from the registrar for the previous one or the previous REGISTER request has timed out.",e+=" Note that if the transport disconnects, you still must wait for the prior request to time out before",e+=" sending a new REGISTER request or alternatively dispose of the current Registerer and create a new Registerer.",this.logger.warn("An attempt was made to send a REGISTER request while a prior one was still in progress. RFC 3261 requires UAs MUST NOT send a new registration until they have received a final response from the registrar for the previous one or the previous REGISTER request has timed out. Note that if the transport disconnects, you still must wait for the prior request to time out before sending a new REGISTER request or alternatively dispose of the current Registerer and create a new Registerer.")}stateError(){let e=`An attempt was made to send a REGISTER request when the Registerer ${this.state===ht.Terminated?"is in 'Terminated' state":"has been disposed"}.`;e+=" The Registerer transitions to 'Terminated' when Registerer.dispose() is called.",e+=" Perhaps you called UserAgent.stop() which dipsoses of all Registerers?",this.logger.error(e)}}Et.defaultExpires=600,Et.defaultRefreshFrequency=99,(gt=pt=pt||(pt={})).Initial="Initial",gt.NotifyWait="NotifyWait",gt.Pending="Pending",gt.Active="Active",gt.Terminated="Terminated",(vt=mt=mt||(mt={})).Connecting="Connecting",vt.Connected="Connected",vt.Disconnecting="Disconnecting",vt.Disconnected="Disconnected",(bt=yt=yt||(yt={})).Started="Started",bt.Stopped="Stopped";class Ct{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(e,t=!1){return this.onePassHasher.start().appendStr(e).end(t)}static hashAsciiStr(e,t=!1){return this.onePassHasher.start().appendAsciiStr(e).end(t)}static _hex(e){const t=Ct.hexChars,n=Ct.hexOut;let r,i,o,a;for(a=0;a<4;a+=1)for(i=8*a,r=e[a],o=0;o<8;o+=2)n[i+1+o]=t.charAt(15&r),r>>>=4,n[i+0+o]=t.charAt(15&r),r>>>=4;return n.join("")}static _md5cycle(e,t){let n=e[0],r=e[1],i=e[2],o=e[3];n+=(r&i|~r&o)+t[0]-680876936|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[1]-389564586|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[2]+606105819|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[3]-1044525330|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&o)+t[4]-176418897|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[5]+1200080426|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[6]-1473231341|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[7]-45705983|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&o)+t[8]+1770035416|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[9]-1958414417|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[10]-42063|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[11]-1990404162|0,r=(r<<22|r>>>10)+i|0,n+=(r&i|~r&o)+t[12]+1804603682|0,n=(n<<7|n>>>25)+r|0,o+=(n&r|~n&i)+t[13]-40341101|0,o=(o<<12|o>>>20)+n|0,i+=(o&n|~o&r)+t[14]-1502002290|0,i=(i<<17|i>>>15)+o|0,r+=(i&o|~i&n)+t[15]+1236535329|0,r=(r<<22|r>>>10)+i|0,n+=(r&o|i&~o)+t[1]-165796510|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[6]-1069501632|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[11]+643717713|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[0]-373897302|0,r=(r<<20|r>>>12)+i|0,n+=(r&o|i&~o)+t[5]-701558691|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[10]+38016083|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[15]-660478335|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[4]-405537848|0,r=(r<<20|r>>>12)+i|0,n+=(r&o|i&~o)+t[9]+568446438|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[14]-1019803690|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[3]-187363961|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[8]+1163531501|0,r=(r<<20|r>>>12)+i|0,n+=(r&o|i&~o)+t[13]-1444681467|0,n=(n<<5|n>>>27)+r|0,o+=(n&i|r&~i)+t[2]-51403784|0,o=(o<<9|o>>>23)+n|0,i+=(o&r|n&~r)+t[7]+1735328473|0,i=(i<<14|i>>>18)+o|0,r+=(i&n|o&~n)+t[12]-1926607734|0,r=(r<<20|r>>>12)+i|0,n+=(r^i^o)+t[5]-378558|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[8]-2022574463|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[11]+1839030562|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[14]-35309556|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^o)+t[1]-1530992060|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[4]+1272893353|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[7]-155497632|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[10]-1094730640|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^o)+t[13]+681279174|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[0]-358537222|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[3]-722521979|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[6]+76029189|0,r=(r<<23|r>>>9)+i|0,n+=(r^i^o)+t[9]-640364487|0,n=(n<<4|n>>>28)+r|0,o+=(n^r^i)+t[12]-421815835|0,o=(o<<11|o>>>21)+n|0,i+=(o^n^r)+t[15]+530742520|0,i=(i<<16|i>>>16)+o|0,r+=(i^o^n)+t[2]-995338651|0,r=(r<<23|r>>>9)+i|0,n+=(i^(r|~o))+t[0]-198630844|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[7]+1126891415|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[14]-1416354905|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[5]-57434055|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[12]+1700485571|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[3]-1894986606|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[1]-2054922799|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[8]+1873313359|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[15]-30611744|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[6]-1560198380|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[13]+1309151649|0,r=(r<<21|r>>>11)+i|0,n+=(i^(r|~o))+t[4]-145523070|0,n=(n<<6|n>>>26)+r|0,o+=(r^(n|~i))+t[11]-1120210379|0,o=(o<<10|o>>>22)+n|0,i+=(n^(o|~r))+t[2]+718787259|0,i=(i<<15|i>>>17)+o|0,r+=(o^(i|~n))+t[9]-343485551|0,r=(r<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(Ct.stateIdentity),this}appendStr(e){const t=this._buffer8,n=this._buffer32;let r,i,o=this._bufferLength;for(i=0;i<e.length;i+=1){if(r=e.charCodeAt(i),r<128)t[o++]=r;else if(r<2048)t[o++]=(r>>>6)+192,t[o++]=63&r|128;else if(r<55296||r>56319)t[o++]=(r>>>12)+224,t[o++]=r>>>6&63|128,t[o++]=63&r|128;else{if(r=1024*(r-55296)+(e.charCodeAt(++i)-56320)+65536,r>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");t[o++]=(r>>>18)+240,t[o++]=r>>>12&63|128,t[o++]=r>>>6&63|128,t[o++]=63&r|128}o>=64&&(this._dataLength+=64,Ct._md5cycle(this._state,n),o-=64,n[0]=n[16])}return this._bufferLength=o,this}appendAsciiStr(e){const t=this._buffer8,n=this._buffer32;let r,i=this._bufferLength,o=0;for(;;){for(r=Math.min(e.length-o,64-i);r--;)t[i++]=e.charCodeAt(o++);if(i<64)break;this._dataLength+=64,Ct._md5cycle(this._state,n),i=0}return this._bufferLength=i,this}appendByteArray(e){const t=this._buffer8,n=this._buffer32;let r,i=this._bufferLength,o=0;for(;;){for(r=Math.min(e.length-o,64-i);r--;)t[i++]=e[o++];if(i<64)break;this._dataLength+=64,Ct._md5cycle(this._state,n),i=0}return this._bufferLength=i,this}getState(){const e=this,t=e._state;return{buffer:String.fromCharCode.apply(null,e._buffer8),buflen:e._bufferLength,length:e._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(e){const t=e.buffer,n=e.state,r=this._state;let i;for(this._dataLength=e.length,this._bufferLength=e.buflen,r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],i=0;i<t.length;i+=1)this._buffer8[i]=t.charCodeAt(i)}end(e=!1){const t=this._bufferLength,n=this._buffer8,r=this._buffer32,i=1+(t>>2);let o;if(this._dataLength+=t,n[t]=128,n[t+1]=n[t+2]=n[t+3]=0,r.set(Ct.buffer32Identity.subarray(i),i),t>55&&(Ct._md5cycle(this._state,r),r.set(Ct.buffer32Identity)),o=8*this._dataLength,o<=4294967295)r[14]=o;else{const e=o.toString(16).match(/(.*?)(.{0,8})$/);if(null===e)return;const t=parseInt(e[2],16),n=parseInt(e[1],16)||0;r[14]=t,r[15]=n}return Ct._md5cycle(this._state,r),e?this._state:Ct._hex(this._state)}}function Rt(e){return Ct.hashStr(e)}Ct.stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]),Ct.buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Ct.hexChars="0123456789abcdef",Ct.hexOut=[],Ct.onePassHasher=new Ct,"5d41402abc4b2a76b9719d911017c592"!==Ct.hashStr("hello")&&console.error("Md5 self test failed.");class Pt{constructor(e,t,n,r){this.logger=e.getLogger("sipjs.digestauthentication"),this.username=n,this.password=r,this.ha1=t,this.nc=0,this.ncHex="00000000"}authenticate(e,t,n){if(this.algorithm=t.algorithm,this.realm=t.realm,this.nonce=t.nonce,this.opaque=t.opaque,this.stale=t.stale,this.algorithm){if("MD5"!==this.algorithm)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(t.qop)if(t.qop.indexOf("auth")>-1)this.qop="auth";else{if(!(t.qop.indexOf("auth-int")>-1))return this.logger.warn("challenge without Digest qop different than 'auth' or 'auth-int', authentication aborted"),!1;this.qop="auth-int"}else this.qop=void 0;return this.method=e.method,this.uri=e.ruri,this.cnonce=Ae(12),this.nc+=1,this.updateNcHex(),4294967296===this.nc&&(this.nc=1,this.ncHex="00000001"),this.calculateResponse(n),!0}toString(){const e=[];if(!this.response)throw new Error("response field does not exist, cannot generate Authorization header");return e.push("algorithm="+this.algorithm),e.push('username="'+this.username+'"'),e.push('realm="'+this.realm+'"'),e.push('nonce="'+this.nonce+'"'),e.push('uri="'+this.uri+'"'),e.push('response="'+this.response+'"'),this.opaque&&e.push('opaque="'+this.opaque+'"'),this.qop&&(e.push("qop="+this.qop),e.push('cnonce="'+this.cnonce+'"'),e.push("nc="+this.ncHex)),"Digest "+e.join(", ")}updateNcHex(){const e=Number(this.nc).toString(16);this.ncHex="00000000".substr(0,8-e.length)+e}calculateResponse(e){let t,n;t=this.ha1,""!==t&&void 0!==t||(t=Rt(this.username+":"+this.realm+":"+this.password)),"auth"===this.qop?(n=Rt(this.method+":"+this.uri),this.response=Rt(t+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth:"+n)):"auth-int"===this.qop?(n=Rt(this.method+":"+this.uri+":"+Rt(e||"")),this.response=Rt(t+":"+this.nonce+":"+this.ncHex+":"+this.cnonce+":auth-int:"+n)):void 0===this.qop&&(n=Rt(this.method+":"+this.uri),this.response=Rt(t+":"+this.nonce+":"+n))}}(xt=wt=wt||(wt={}))[xt.error=0]="error",xt[xt.warn=1]="warn",xt[xt.log=2]="log",xt[xt.debug=3]="debug";class _t{constructor(e,t,n){this.logger=e,this.category=t,this.label=n}error(e){this.genericLog(wt.error,e)}warn(e){this.genericLog(wt.warn,e)}log(e){this.genericLog(wt.log,e)}debug(e){this.genericLog(wt.debug,e)}genericLog(e,t){this.logger.genericLog(e,this.category,this.label,t)}get level(){return this.logger.level}set level(e){this.logger.level=e}}class Dt{constructor(){this.builtinEnabled=!0,this._level=wt.log,this.loggers={},this.logger=this.getLogger("sip:loggerfactory")}get level(){return this._level}set level(e){e>=0&&e<=3?this._level=e:e>3?this._level=3:wt.hasOwnProperty(e)?this._level=e:this.logger.error("invalid 'level' parameter value: "+JSON.stringify(e))}get connector(){return this._connector}set connector(e){e?"function"==typeof e?this._connector=e:this.logger.error("invalid 'connector' parameter value: "+JSON.stringify(e)):this._connector=void 0}getLogger(e,t){if(t&&3===this.level)return new _t(this,e,t);if(this.loggers[e])return this.loggers[e];{const t=new _t(this,e);return this.loggers[e]=t,t}}genericLog(e,t,n,r){this.level>=e&&this.builtinEnabled&&this.print(e,t,n,r),this.connector&&this.connector(wt[e],t,n,r)}print(e,t,n,r){if("string"==typeof r){const e=[new Date,t];n&&e.push(n),r=e.concat(r).join(" | ")}switch(e){case wt.error:console.error(r);break;case wt.warn:console.warn(r);break;case wt.log:console.log(r);break;case wt.debug:console.debug(r)}}}function It(e,t){const n="\r\n";if(t.statusCode<100||t.statusCode>699)throw new TypeError("Invalid statusCode: "+t.statusCode);const r=t.reasonPhrase?t.reasonPhrase:Ne(t.statusCode);let i="SIP/2.0 "+t.statusCode+" "+r+n;t.statusCode>=100&&t.statusCode,t.statusCode;const o="From: "+e.getHeader("From")+n,a="Call-ID: "+e.callId+n,s="CSeq: "+e.cseq+" "+e.method+n,l=e.getHeaders("via").reduce((e,t)=>e+"Via: "+t+n,"");let c="To: "+e.getHeader("to");if(t.statusCode>100&&!e.parseHeader("to").hasParam("tag")){let e=t.toTag;e||(e=Me()),c+=";tag="+e}c+=n;let u="";t.supported&&(u="Supported: "+t.supported.join(", ")+n);let d="";t.userAgent&&(d="User-Agent: "+t.userAgent+n);let h="";return t.extraHeaders&&(h=t.extraHeaders.reduce((e,t)=>e+t.trim()+n,"")),i+=l,i+=o,i+=c,i+=s,i+=a,i+=u,i+=d,i+=h,t.body?(i+="Content-Type: "+t.body.contentType+n,i+="Content-Length: "+Oe(t.body.content)+n+n,i+=t.body.content):i+="Content-Length: 0\r\n\r\n",{message:i}}!function(e){function t(e,t){let n=t,r=0,i=0;if(e.substring(n,n+2).match(/(^\r\n)/))return-2;for(;0===r;){if(i=e.indexOf("\r\n",n),-1===i)return i;!e.substring(i+2,i+4).match(/(^\r\n)/)&&e.charAt(i+2).match(/(^\s+)/)?n=i+2:r=i}return r}function n(e,t,n,r){const i=t.indexOf(":",n),o=t.substring(n,i).trim(),a=t.substring(i+1,r).trim();let s;switch(o.toLowerCase()){case"via":case"v":e.addHeader("via",a),1===e.getHeaders("via").length?(s=e.parseHeader("Via"),s&&(e.via=s,e.viaBranch=s.branch)):s=0;break;case"from":case"f":e.setHeader("from",a),s=e.parseHeader("from"),s&&(e.from=s,e.fromTag=s.getParam("tag"));break;case"to":case"t":e.setHeader("to",a),s=e.parseHeader("to"),s&&(e.to=s,e.toTag=s.getParam("tag"));break;case"record-route":if(s=_e.parse(a,"Record_Route"),-1===s){s=void 0;break}if(!(s instanceof Array)){s=void 0;break}s.forEach(t=>{e.addHeader("record-route",a.substring(t.position,t.offset)),e.headers["Record-Route"][e.getHeaders("record-route").length-1].parsed=t.parsed});break;case"call-id":case"i":e.setHeader("call-id",a),s=e.parseHeader("call-id"),s&&(e.callId=a);break;case"contact":case"m":if(s=_e.parse(a,"Contact"),-1===s){s=void 0;break}if(!(s instanceof Array)){s=void 0;break}s.forEach(t=>{e.addHeader("contact",a.substring(t.position,t.offset)),e.headers.Contact[e.getHeaders("contact").length-1].parsed=t.parsed});break;case"content-length":case"l":e.setHeader("content-length",a),s=e.parseHeader("content-length");break;case"content-type":case"c":e.setHeader("content-type",a),s=e.parseHeader("content-type");break;case"cseq":e.setHeader("cseq",a),s=e.parseHeader("cseq"),s&&(e.cseq=s.value),e instanceof He&&(e.method=s.method);break;case"max-forwards":e.setHeader("max-forwards",a),s=e.parseHeader("max-forwards");break;case"www-authenticate":e.setHeader("www-authenticate",a),s=e.parseHeader("www-authenticate");break;case"proxy-authenticate":e.setHeader("proxy-authenticate",a),s=e.parseHeader("proxy-authenticate");break;case"refer-to":case"r":e.setHeader("refer-to",a),s=e.parseHeader("refer-to"),s&&(e.referTo=s);break;default:e.addHeader(o.toLowerCase(),a),s=0}return void 0!==s||{error:"error parsing header '"+o+"'"}}e.getHeader=t,e.parseHeader=n,e.parseMessage=function(e,r){let i=0,o=e.indexOf("\r\n");if(-1===o)return void r.warn("no CRLF found, not a SIP message, discarded");const a=e.substring(0,o),s=_e.parse(a,"Request_Response");let l,c;if(-1!==s){for(s.status_code?(l=new He,l.statusCode=s.status_code,l.reasonPhrase=s.reason_phrase):(l=new Le,l.method=s.method,l.ruri=s.uri),l.data=e,i=o+2;;){if(o=t(e,i),-2===o){c=i+2;break}if(-1===o)return void r.error("malformed message");const a=n(l,e,i,o);if(a&&!0!==a)return void r.error(a.error);i=o+2}return l.hasHeader("content-length")?l.body=e.substr(c,Number(l.getHeader("content-length"))):l.body=e.substring(c),l}r.warn('error parsing first line of SIP message: "'+a+'"')}}(kt=kt||(kt={}));class At extends de{constructor(e){super(e||"Unspecified transport error.")}}class Nt{constructor(e,t,n,r,i){this._transport=e,this._user=t,this._id=n,this._state=r,this.listeners=new Array,this.logger=t.loggerFactory.getLogger(i,n),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(e,t){const n=()=>{this.removeStateChangeListener(n),e()};!0===(null==t?void 0:t.once)?this.listeners.push(n):this.listeners.push(e)}notifyStateChangeListeners(){this.listeners.slice().forEach(e=>e())}removeStateChangeListener(e){this.listeners=this.listeners.filter(t=>t!==e)}logTransportError(e,t){this.logger.error(e.message),this.logger.error(`Transport error occurred in ${this.typeToString()} with id ${this.id}.`),this.logger.error(t)}send(e){return this.transport.send(e).catch(e=>{if(e instanceof At)throw this.onTransportError(e),e;let t;throw t=e&&"string"==typeof e.message?new At(e.message):new At,this.onTransportError(t),t})}setState(e){this.logger.debug(`State change to "${e}" on ${this.typeToString()} with id ${this.id}.`),this._state=e,this._user.onStateChange&&this._user.onStateChange(e),this.notifyStateChangeListeners()}typeToString(){return"UnknownType"}}class Mt extends Nt{constructor(e,t,n,r,i){super(t,n,e.viaBranch,r,i),this._request=e,this.user=n}get request(){return this._request}}(Tt=St=St||(St={})).Accepted="Accepted",Tt.Calling="Calling",Tt.Completed="Completed",Tt.Confirmed="Confirmed",Tt.Proceeding="Proceeding",Tt.Terminated="Terminated",Tt.Trying="Trying";class $t extends Mt{constructor(e,t,n){super(e,t,n,St.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(e){switch(this.state){case St.Proceeding:if(e.method===Ze.INVITE)return void(this.lastProvisionalResponse&&this.send(this.lastProvisionalResponse).catch(e=>{this.logTransportError(e,"Failed to send retransmission of provisional response.")}));break;case St.Accepted:if(e.method===Ze.INVITE)return;break;case St.Completed:if(e.method===Ze.INVITE){if(!this.lastFinalResponse)throw new Error("Last final response undefined.");return void this.send(this.lastFinalResponse).catch(e=>{this.logTransportError(e,"Failed to send retransmission of final response.")})}if(e.method===Ze.ACK)return void this.stateTransition(St.Confirmed);break;case St.Confirmed:case St.Terminated:if(e.method===Ze.INVITE||e.method===Ze.ACK)return;break;default:throw new Error(`Invalid state ${this.state}`)}const t=`INVITE server transaction received unexpected ${e.method} request while in state ${this.state}.`;this.logger.warn(t)}receiveResponse(e,t){if(e<100||e>699)throw new Error(`Invalid status code ${e}`);switch(this.state){case St.Proceeding:if(e>=100&&e<=199)return this.lastProvisionalResponse=t,e>100&&this.startProgressExtensionTimer(),void this.send(t).catch(e=>{this.logTransportError(e,"Failed to send 1xx response.")});if(e>=200&&e<=299)return this.lastFinalResponse=t,this.stateTransition(St.Accepted),void this.send(t).catch(e=>{this.logTransportError(e,"Failed to send 2xx response.")});if(e>=300&&e<=699)return this.lastFinalResponse=t,this.stateTransition(St.Completed),void this.send(t).catch(e=>{this.logTransportError(e,"Failed to send non-2xx final response.")});break;case St.Accepted:if(e>=200&&e<=299)return void this.send(t).catch(e=>{this.logTransportError(e,"Failed to send 2xx response.")});break;case St.Completed:case St.Confirmed:case St.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const n=`INVITE server transaction received unexpected ${e} response from TU while in state ${this.state}.`;throw this.logger.error(n),new Error(n)}retransmitAcceptedResponse(){this.state===St.Accepted&&this.lastFinalResponse&&this.send(this.lastFinalResponse).catch(e=>{this.logTransportError(e,"Failed to send 2xx response.")})}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e)}typeToString(){return"INVITE server transaction"}stateTransition(e){const t=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case St.Proceeding:t();break;case St.Accepted:case St.Completed:this.state!==St.Proceeding&&t();break;case St.Confirmed:this.state!==St.Completed&&t();break;case St.Terminated:this.state!==St.Accepted&&this.state!==St.Completed&&this.state!==St.Confirmed&&t();break;default:t()}this.stopProgressExtensionTimer(),e===St.Accepted&&(this.L=setTimeout(()=>this.timerL(),Qe.TIMER_L)),e===St.Completed&&(this.H=setTimeout(()=>this.timerH(),Qe.TIMER_H)),e===St.Confirmed&&(this.I=setTimeout(()=>this.timerI(),Qe.TIMER_I)),e===St.Terminated&&this.dispose(),this.setState(e)}startProgressExtensionTimer(){void 0===this.progressExtensionTimer&&(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(e=>{this.logTransportError(e,"Failed to send retransmission of provisional response.")})},Qe.PROVISIONAL_RESPONSE_INTERVAL))}stopProgressExtensionTimer(){void 0!==this.progressExtensionTimer&&(clearInterval(this.progressExtensionTimer),this.progressExtensionTimer=void 0)}timerG(){}timerH(){this.logger.debug(`Timer H expired for INVITE server transaction ${this.id}.`),this.state===St.Completed&&(this.logger.warn("ACK to negative final response was never received, terminating transaction."),this.stateTransition(St.Terminated))}timerI(){this.logger.debug(`Timer I expired for INVITE server transaction ${this.id}.`),this.stateTransition(St.Terminated)}timerL(){this.logger.debug(`Timer L expired for INVITE server transaction ${this.id}.`),this.state===St.Accepted&&this.stateTransition(St.Terminated)}}class Ot extends Nt{constructor(e,t,n,r,i){super(t,n,Ot.makeId(e),r,i),this._request=e,this.user=n,e.setViaHeader(this.id,t.protocol)}static makeId(e){if("CANCEL"===e.method){if(!e.branch)throw new Error("Outgoing CANCEL request without a branch.");return e.branch}return"z9hG4bK"+Math.floor(1e7*Math.random())}get request(){return this._request}onRequestTimeout(){this.user.onRequestTimeout&&this.user.onRequestTimeout()}}class jt extends Ot{constructor(e,t,n){super(e,t,n,St.Trying,"sip.transaction.nict"),this.F=setTimeout(()=>this.timerF(),Qe.TIMER_F),this.send(e.toString()).catch(e=>{this.logTransportError(e,"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(e){const t=e.statusCode;if(!t||t<100||t>699)throw new Error(`Invalid status code ${t}`);switch(this.state){case St.Trying:if(t>=100&&t<=199)return this.stateTransition(St.Proceeding),void(this.user.receiveResponse&&this.user.receiveResponse(e));if(t>=200&&t<=699)return this.stateTransition(St.Completed),408===t?void this.onRequestTimeout():void(this.user.receiveResponse&&this.user.receiveResponse(e));break;case St.Proceeding:if(t>=100&&t<=199&&this.user.receiveResponse)return this.user.receiveResponse(e);if(t>=200&&t<=699)return this.stateTransition(St.Completed),408===t?void this.onRequestTimeout():void(this.user.receiveResponse&&this.user.receiveResponse(e));break;case St.Completed:case St.Terminated:return;default:throw new Error(`Invalid state ${this.state}`)}const n=`Non-INVITE client transaction received unexpected ${t} response while in state ${this.state}.`;this.logger.warn(n)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(St.Terminated,!0)}typeToString(){return"non-INVITE client transaction"}stateTransition(e,t=!1){const n=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case St.Trying:n();break;case St.Proceeding:this.state!==St.Trying&&n();break;case St.Completed:this.state!==St.Trying&&this.state!==St.Proceeding&&n();break;case St.Terminated:this.state!==St.Trying&&this.state!==St.Proceeding&&this.state!==St.Completed&&(t||n());break;default:n()}e===St.Completed&&(this.F&&(clearTimeout(this.F),this.F=void 0),this.K=setTimeout(()=>this.timerK(),Qe.TIMER_K)),e===St.Terminated&&this.dispose(),this.setState(e)}timerF(){this.logger.debug(`Timer F expired for non-INVITE client transaction ${this.id}.`),this.state!==St.Trying&&this.state!==St.Proceeding||(this.onRequestTimeout(),this.stateTransition(St.Terminated))}timerK(){this.state===St.Completed&&this.stateTransition(St.Terminated)}}class Lt{constructor(e,t){this.core=e,this.dialogState=t,this.core.dialogs.set(this.id,this)}static initialDialogStateForUserAgentClient(e,t){const n=t.getHeaders("record-route").reverse(),r=t.parseHeader("contact");if(!r)throw new Error("Contact undefined.");if(!(r instanceof Se))throw new Error("Contact not instance of NameAddrHeader.");const i=r.uri,o=e.cseq,a=e.callId,s=e.fromTag,l=t.toTag;if(!a)throw new Error("Call id undefined.");if(!s)throw new Error("From tag undefined.");if(!l)throw new Error("To tag undefined.");if(!e.from)throw new Error("From undefined.");if(!e.to)throw new Error("To undefined.");const c=e.from.uri,u=e.to.uri;if(!t.statusCode)throw new Error("Incoming response status code undefined.");return{id:a+s+l,early:t.statusCode<200,callId:a,localTag:s,remoteTag:l,localSequenceNumber:o,remoteSequenceNumber:void 0,localURI:c,remoteURI:u,remoteTarget:i,routeSet:n,secure:!1}}static initialDialogStateForUserAgentServer(e,t,n=!1){const r=e.getHeaders("record-route"),i=e.parseHeader("contact");if(!i)throw new Error("Contact undefined.");if(!(i instanceof Se))throw new Error("Contact not instance of NameAddrHeader.");const o=i.uri,a=e.cseq,s=e.callId,l=t,c=e.fromTag,u=e.from.uri;return{id:s+l+c,early:n,callId:s,localTag:l,remoteTag:c,localSequenceNumber:void 0,remoteSequenceNumber:a,localURI:e.to.uri,remoteURI:u,remoteTarget:o,routeSet:r,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(e){if(e.method!==Ze.ACK){if(this.remoteSequenceNumber){if(e.cseq<=this.remoteSequenceNumber)throw new Error("Out of sequence in dialog request. Did you forget to call sequenceGuard()?");this.dialogState.remoteSequenceNumber=e.cseq}this.remoteSequenceNumber||(this.dialogState.remoteSequenceNumber=e.cseq)}}recomputeRouteSet(e){this.dialogState.routeSet=e.getHeaders("record-route").reverse()}createOutgoingRequestMessage(e,t){const n=this.remoteURI,r=this.remoteTag,i=this.localURI,o=this.localTag,a=this.callId;let s;s=t&&t.cseq?t.cseq:this.dialogState.localSequenceNumber?this.dialogState.localSequenceNumber+=1:this.dialogState.localSequenceNumber=1;const l=this.remoteTarget,c=this.routeSet,u=t&&t.extraHeaders,d=t&&t.body;return this.userAgentCore.makeOutgoingRequestMessage(e,l,i,n,{callId:a,cseq:s,fromTag:o,toTag:r,routeSet:c},u,d)}incrementLocalSequenceNumber(){if(!this.dialogState.localSequenceNumber)throw new Error("Local sequence number undefined.");this.dialogState.localSequenceNumber+=1}sequenceGuard(e){return e.method===Ze.ACK||(!(this.remoteSequenceNumber&&e.cseq<=this.remoteSequenceNumber)||(this.core.replyStateless(e,{statusCode:500}),!1))}}class Ht extends Ot{constructor(e,t,n){super(e,t,n,St.Calling,"sip.transaction.ict"),this.ackRetransmissionCache=new Map,this.B=setTimeout(()=>this.timerB(),Qe.TIMER_B),this.send(e.toString()).catch(e=>{this.logTransportError(e,"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(e){const t=e.toTag;if(!t)throw new Error("To tag undefined.");const n="z9hG4bK"+Math.floor(1e7*Math.random());e.setViaHeader(n,this.transport.protocol),this.ackRetransmissionCache.set(t,e),this.send(e.toString()).catch(e=>{this.logTransportError(e,"Failed to send ACK to 2xx response.")})}receiveResponse(e){const t=e.statusCode;if(!t||t<100||t>699)throw new Error(`Invalid status code ${t}`);switch(this.state){case St.Calling:if(t>=100&&t<=199)return this.stateTransition(St.Proceeding),void(this.user.receiveResponse&&this.user.receiveResponse(e));if(t>=200&&t<=299)return this.ackRetransmissionCache.set(e.toTag,void 0),this.stateTransition(St.Accepted),void(this.user.receiveResponse&&this.user.receiveResponse(e));if(t>=300&&t<=699)return this.stateTransition(St.Completed),this.ack(e),void(this.user.receiveResponse&&this.user.receiveResponse(e));break;case St.Proceeding:if(t>=100&&t<=199)return void(this.user.receiveResponse&&this.user.receiveResponse(e));if(t>=200&&t<=299)return this.ackRetransmissionCache.set(e.toTag,void 0),this.stateTransition(St.Accepted),void(this.user.receiveResponse&&this.user.receiveResponse(e));if(t>=300&&t<=699)return this.stateTransition(St.Completed),this.ack(e),void(this.user.receiveResponse&&this.user.receiveResponse(e));break;case St.Accepted:if(t>=200&&t<=299){if(!this.ackRetransmissionCache.has(e.toTag))return this.ackRetransmissionCache.set(e.toTag,void 0),void(this.user.receiveResponse&&this.user.receiveResponse(e));const t=this.ackRetransmissionCache.get(e.toTag);return t?void this.send(t.toString()).catch(e=>{this.logTransportError(e,"Failed to send retransmission of ACK to 2xx response.")}):void 0}break;case St.Completed:if(t>=300&&t<=699)return void this.ack(e);break;case St.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const n=`Received unexpected ${t} response while in state ${this.state}.`;this.logger.warn(n)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(St.Terminated,!0)}typeToString(){return"INVITE client transaction"}ack(e){const t=this.request.ruri,n=this.request.callId,r=this.request.cseq,i=this.request.getHeader("from"),o=e.getHeader("to"),a=this.request.getHeader("via"),s=this.request.getHeader("route");if(!i)throw new Error("From undefined.");if(!o)throw new Error("To undefined.");if(!a)throw new Error("Via undefined.");let l=`ACK ${t} SIP/2.0\r\n`;s&&(l+=`Route: ${s}\r\n`),l+=`Via: ${a}\r\n`,l+=`To: ${o}\r\n`,l+=`From: ${i}\r\n`,l+=`Call-ID: ${n}\r\n`,l+=`CSeq: ${r} ACK\r\n`,l+="Max-Forwards: 70\r\n",l+="Content-Length: 0\r\n\r\n",this.send(l).catch(e=>{this.logTransportError(e,"Failed to send ACK to non-2xx response.")})}stateTransition(e,t=!1){const n=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case St.Calling:n();break;case St.Proceeding:this.state!==St.Calling&&n();break;case St.Accepted:case St.Completed:this.state!==St.Calling&&this.state!==St.Proceeding&&n();break;case St.Terminated:this.state!==St.Calling&&this.state!==St.Accepted&&this.state!==St.Completed&&(t||n());break;default:n()}this.B&&(clearTimeout(this.B),this.B=void 0),St.Proceeding,e===St.Completed&&(this.D=setTimeout(()=>this.timerD(),Qe.TIMER_D)),e===St.Accepted&&(this.M=setTimeout(()=>this.timerM(),Qe.TIMER_M)),e===St.Terminated&&this.dispose(),this.setState(e)}timerA(){}timerB(){this.logger.debug(`Timer B expired for INVITE client transaction ${this.id}.`),this.state===St.Calling&&(this.onRequestTimeout(),this.stateTransition(St.Terminated))}timerD(){this.logger.debug(`Timer D expired for INVITE client transaction ${this.id}.`),this.state===St.Completed&&this.stateTransition(St.Terminated)}timerM(){this.logger.debug(`Timer M expired for INVITE client transaction ${this.id}.`),this.state===St.Accepted&&this.stateTransition(St.Terminated)}}class Ft{constructor(e,t,n,r){this.transactionConstructor=e,this.core=t,this.message=n,this.delegate=r,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(e,t={}){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 n=this.core.makeOutgoingRequestMessage(Ze.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},t.extraHeaders);return n.branch=this.message.branch,this.message.headers.Route&&(n.headers.Route=this.message.headers.Route),e&&n.setHeader("Reason",e),this.transaction.state===St.Proceeding?new Ft(jt,this.core,n):this.transaction.addStateChangeListener(()=>{this.transaction&&this.transaction.state===St.Proceeding&&new Ft(jt,this.core,n)},{once:!0}),n}authenticationGuard(e,t){const n=e.statusCode;if(!n)throw new Error("Response status code undefined.");if(401!==n&&407!==n)return!0;let r,i;if(401===n?(r=e.parseHeader("www-authenticate"),i="authorization"):(r=e.parseHeader("proxy-authenticate"),i="proxy-authorization"),!r)return this.logger.warn(n+" with wrong or missing challenge, cannot authenticate"),!0;if(this.challenged&&(this.stale||!0!==r.stale))return this.logger.warn(n+" 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,r))return!0;this.challenged=!0,r.stale&&(this.stale=!0);let o=this.message.cseq+=1;return t&&t.localSequenceNumber&&(t.incrementLocalSequenceNumber(),o=this.message.cseq=t.localSequenceNumber),this.message.setHeader("cseq",o+" "+this.message.method),this.message.setHeader(i,this.credentials.toString()),this.init(),!1}onRequestTimeout(){this.logger.warn("User agent client request timed out. Generating internal 408 Request Timeout.");const e=new He;e.statusCode=408,e.reasonPhrase="Request Timeout",this.receiveResponse(e)}onTransportError(e){this.logger.error(e.message),this.logger.error("User agent client request transport error. Generating internal 503 Service Unavailable.");const t=new He;t.statusCode=503,t.reasonPhrase="Service Unavailable",this.receiveResponse(t)}receiveResponse(e){if(!this.authenticationGuard(e))return;const t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});break;case/^1[0-9]{2}$/.test(t):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e});break;case/^2[0-9]{2}$/.test(t):this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:e});break;case/^3[0-9]{2}$/.test(t):this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});break;case/^[4-6][0-9]{2}$/.test(t):this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});break;default:throw new Error(`Invalid status code ${t}`)}}init(){const e={loggerFactory:this.loggerFactory,onRequestTimeout:()=>this.onRequestTimeout(),onStateChange:e=>{e===St.Terminated&&(this.core.userAgentClients.delete(n),t===this._transaction&&this.dispose())},onTransportError:e=>this.onTransportError(e),receiveResponse:e=>this.receiveResponse(e)},t=new this.transactionConstructor(this.message,this.core.transport,e);this._transaction=t;const n=t.id+t.request.method;this.core.userAgentClients.set(n,this)}}class Ut extends Ft{constructor(e,t,n){const r=e.createOutgoingRequestMessage(Ze.BYE,n);super(jt,e.userAgentCore,r,t),e.dispose()}}class zt extends Mt{constructor(e,t,n){super(e,t,n,St.Trying,"sip.transaction.nist")}dispose(){this.J&&(clearTimeout(this.J),this.J=void 0),super.dispose()}get kind(){return"nist"}receiveRequest(e){switch(this.state){case St.Trying:break;case St.Proceeding:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(e=>{this.logTransportError(e,"Failed to send retransmission of provisional response.")});break;case St.Completed:if(!this.lastResponse)throw new Error("Last response undefined.");this.send(this.lastResponse).catch(e=>{this.logTransportError(e,"Failed to send retransmission of final response.")});break;case St.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}}receiveResponse(e,t){if(e<100||e>699)throw new Error(`Invalid status code ${e}`);if(e>100&&e<=199)throw new Error("Provisional response other than 100 not allowed.");switch(this.state){case St.Trying:if(this.lastResponse=t,e>=100&&e<200)return this.stateTransition(St.Proceeding),void this.send(t).catch(e=>{this.logTransportError(e,"Failed to send provisional response.")});if(e>=200&&e<=699)return this.stateTransition(St.Completed),void this.send(t).catch(e=>{this.logTransportError(e,"Failed to send final response.")});break;case St.Proceeding:if(this.lastResponse=t,e>=200&&e<=699)return this.stateTransition(St.Completed),void this.send(t).catch(e=>{this.logTransportError(e,"Failed to send final response.")});break;case St.Completed:return;case St.Terminated:break;default:throw new Error(`Invalid state ${this.state}`)}const n=`Non-INVITE server transaction received unexpected ${e} response from TU while in state ${this.state}.`;throw this.logger.error(n),new Error(n)}onTransportError(e){this.user.onTransportError&&this.user.onTransportError(e),this.stateTransition(St.Terminated,!0)}typeToString(){return"non-INVITE server transaction"}stateTransition(e,t=!1){const n=()=>{throw new Error(`Invalid state transition from ${this.state} to ${e}`)};switch(e){case St.Trying:n();break;case St.Proceeding:this.state!==St.Trying&&n();break;case St.Completed:this.state!==St.Trying&&this.state!==St.Proceeding&&n();break;case St.Terminated:this.state!==St.Proceeding&&this.state!==St.Completed&&(t||n());break;default:n()}e===St.Completed&&(this.J=setTimeout(()=>this.timerJ(),Qe.TIMER_J)),e===St.Terminated&&this.dispose(),this.setState(e)}timerJ(){this.logger.debug(`Timer J expired for NON-INVITE server transaction ${this.id}.`),this.state===St.Completed&&this.stateTransition(St.Terminated)}}class qt{constructor(e,t,n,r){this.transactionConstructor=e,this.core=t,this.message=n,this.delegate=r,this.logger=this.loggerFactory.getLogger("sip.user-agent-server"),this.toTag=n.toTag?n.toTag:Me(),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(e={statusCode:200}){if(!this.acceptable)throw new Xe(`${this.message.method} not acceptable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<200||t>299)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}progress(e={statusCode:180}){if(!this.progressable)throw new Xe(`${this.message.method} not progressable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<101||t>199)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}redirect(e,t={statusCode:302}){if(!this.redirectable)throw new Xe(`${this.message.method} not redirectable in state ${this.transaction.state}.`);const n=t.statusCode;if(n<300||n>399)throw new TypeError(`Invalid statusCode: ${n}`);const r=new Array;e.forEach(e=>r.push(`Contact: ${e.toString()}`)),t.extraHeaders=(t.extraHeaders||[]).concat(r);return this.reply(t)}reject(e={statusCode:480}){if(!this.rejectable)throw new Xe(`${this.message.method} not rejectable in state ${this.transaction.state}.`);const t=e.statusCode;if(t<400||t>699)throw new TypeError(`Invalid statusCode: ${t}`);return this.reply(e)}trying(e){if(!this.tryingable)throw new Xe(`${this.message.method} not tryingable in state ${this.transaction.state}.`);return this.reply({statusCode:100})}receiveCancel(e){this.delegate&&this.delegate.onCancel&&this.delegate.onCancel(e)}get acceptable(){if(this.transaction instanceof $t)return this.transaction.state===St.Proceeding||this.transaction.state===St.Accepted;if(this.transaction instanceof zt)return this.transaction.state===St.Trying||this.transaction.state===St.Proceeding;throw new Error("Unknown transaction type.")}get progressable(){if(this.transaction instanceof $t)return this.transaction.state===St.Proceeding;if(this.transaction instanceof zt)return!1;throw new Error("Unknown transaction type.")}get redirectable(){if(this.transaction instanceof $t)return this.transaction.state===St.Proceeding;if(this.transaction instanceof zt)return this.transaction.state===St.Trying||this.transaction.state===St.Proceeding;throw new Error("Unknown transaction type.")}get rejectable(){if(this.transaction instanceof $t)return this.transaction.state===St.Proceeding;if(this.transaction instanceof zt)return this.transaction.state===St.Trying||this.transaction.state===St.Proceeding;throw new Error("Unknown transaction type.")}get tryingable(){if(this.transaction instanceof $t)return this.transaction.state===St.Proceeding;if(this.transaction instanceof zt)return this.transaction.state===St.Trying;throw new Error("Unknown transaction type.")}reply(e){e.toTag||100===e.statusCode||(e.toTag=this.toTag),e.userAgent=e.userAgent||this.core.configuration.userAgentHeaderFieldValue,e.supported=e.supported||this.core.configuration.supportedOptionTagsResponse;const t=It(this.message,e);return this.transaction.receiveResponse(e.statusCode,t.message),t}init(){const e={loggerFactory:this.loggerFactory,onStateChange:e=>{e===St.Terminated&&(this.core.userAgentServers.delete(n),this.dispose())},onTransportError:e=>{this.logger.error(e.message),this.delegate&&this.delegate.onTransportError?this.delegate.onTransportError(e):this.logger.error("User agent server response transport error.")}},t=new this.transactionConstructor(this.message,this.core.transport,e);this._transaction=t;const n=t.id;this.core.userAgentServers.set(t.id,this)}}class Vt extends qt{constructor(e,t,n){super(zt,e.userAgentCore,t,n)}}class Bt extends Ft{constructor(e,t,n){const r=e.createOutgoingRequestMessage(Ze.INFO,n);super(jt,e.userAgentCore,r,t)}}class Wt extends qt{constructor(e,t,n){super(zt,e.userAgentCore,t,n)}}class Yt extends Ft{constructor(e,t,n){super(jt,e,t,n)}}class Gt extends qt{constructor(e,t,n){super(zt,e,t,n)}}class Kt extends Ft{constructor(e,t,n){const r=e.createOutgoingRequestMessage(Ze.NOTIFY,n);super(jt,e.userAgentCore,r,t)}}class Qt extends qt{constructor(e,t,n){const r=void 0!==e.userAgentCore?e.userAgentCore:e;super(zt,r,t,n)}}class Xt extends Ft{constructor(e,t,n){const r=e.createOutgoingRequestMessage(Ze.PRACK,n);super(jt,e.userAgentCore,r,t),e.signalingStateTransition(r)}}class Zt extends qt{constructor(e,t,n){super(zt,e.userAgentCore,t,n),e.signalingStateTransition(t),this.dialog=e}accept(e={statusCode:200}){return e.body&&this.dialog.signalingStateTransition(e.body),super.accept(e)}}class Jt extends Ft{constructor(e,t,n){const r=e.createOutgoingRequestMessage(Ze.INVITE,n);super(Ht,e.userAgentCore,r,t),this.delegate=t,e.signalingStateTransition(r),e.reinviteUserAgentClient=this,this.dialog=e}receiveResponse(e){if(!this.authenticationGuard(e,this.dialog))return;const t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(t):this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e});break;case/^1[0-9]{2}$/.test(t):this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e,session:this.dialog,prack:e=>{throw new Error("Unimplemented.")}});break;case/^2[0-9]{2}$/.test(t):this.dialog.signalingStateTransition(e),this.delegate&&this.delegate.onAccept&&this.delegate.onAccept({message:e,session:this.dialog,ack:e=>this.dialog.ack(e)});break;case/^3[0-9]{2}$/.test(t):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e});break;case/^[4-6][0-9]{2}$/.test(t):this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentClient=void 0,this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e});break;default:throw new Error(`Invalid status code ${t}`)}}}class en extends qt{constructor(e,t,n){super($t,e.userAgentCore,t,n),e.reinviteUserAgentServer=this,this.dialog=e}accept(e={statusCode:200}){e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(this.dialog.routeSet.map(e=>`Record-Route: ${e}`));const t=super.accept(e),n=this.dialog,r=Object.assign(Object.assign({},t),{session:n});return e.body&&this.dialog.signalingStateTransition(e.body),this.dialog.reConfirm(),r}progress(e={statusCode:180}){const t=super.progress(e),n=this.dialog,r=Object.assign(Object.assign({},t),{session:n});return e.body&&this.dialog.signalingStateTransition(e.body),r}redirect(e,t={statusCode:302}){throw this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,new Error("Unimplemented.")}reject(e={statusCode:488}){return this.dialog.signalingStateRollback(),this.dialog.reinviteUserAgentServer=void 0,super.reject(e)}}class tn extends Ft{constructor(e,t,n){const r=e.createOutgoingRequestMessage(Ze.REFER,n);super(jt,e.userAgentCore,r,t)}}class nn extends qt{constructor(e,t,n){const r=void 0!==e.userAgentCore?e.userAgentCore:e;super(zt,r,t,n)}}class rn extends Lt{constructor(e,t,n,r){super(t,n),this.initialTransaction=e,this._signalingState=Ye.Initial,this.ackWait=!1,this.ackProcessing=!1,this.delegate=r,e instanceof $t&&(this.ackWait=!0),this.early||this.start2xxRetransmissionTimer(),this.signalingStateTransition(e.request),this.logger=t.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?Be.Early:this.ackWait?Be.AckWait:this._signalingState===Ye.Closed?Be.Terminated:Be.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(e={}){let t;if(this.logger.log(`INVITE dialog ${this.id} sending ACK request`),this.reinviteUserAgentClient){if(!(this.reinviteUserAgentClient.transaction instanceof Ht))throw new Error("Transaction not instance of InviteClientTransaction.");t=this.reinviteUserAgentClient.transaction,this.reinviteUserAgentClient=void 0}else{if(!(this.initialTransaction instanceof Ht))throw new Error("Initial transaction not instance of InviteClientTransaction.");t=this.initialTransaction}const n=this.createOutgoingRequestMessage(Ze.ACK,{cseq:t.request.cseq,extraHeaders:e.extraHeaders,body:e.body});return t.ackResponse(n),this.signalingStateTransition(n),{message:n}}bye(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending BYE request`),this.initialTransaction instanceof $t){if(this.early)throw new Error("UAS MUST NOT send a BYE on early dialogs.");if(this.ackWait&&this.initialTransaction.state!==St.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 Ut(this,e,t)}info(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending INFO request`),this.early)throw new Error("Dialog not confirmed.");return new Bt(this,e,t)}invite(e,t){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 Jt(this,e,t)}message(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending MESSAGE request`),this.early)throw new Error("Dialog not confirmed.");const n=this.createOutgoingRequestMessage(Ze.MESSAGE,t);return new Yt(this.core,n,e)}notify(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending NOTIFY request`),this.early)throw new Error("Dialog not confirmed.");return new Kt(this,e,t)}prack(e,t){return this.logger.log(`INVITE dialog ${this.id} sending PRACK request`),new Xt(this,e,t)}refer(e,t){if(this.logger.log(`INVITE dialog ${this.id} sending REFER request`),this.early)throw new Error("Dialog not confirmed.");return new tn(this,e,t)}receiveRequest(e){if(this.logger.log(`INVITE dialog ${this.id} received ${e.method} request`),e.method!==Ze.ACK)if(this.sequenceGuard(e)){if(super.receiveRequest(e),e.method===Ze.INVITE){const t=()=>{const e=this.ackWait?"waiting for initial ACK":"processing initial ACK";this.logger.warn(`INVITE dialog ${this.id} received re-INVITE while ${e}`);let t="RFC 5407 suggests the following to avoid this race condition... ";t+=" Note: Implementation issues are outside the scope of this document,",t+=" but the following tip is provided for avoiding race conditions of",t+=" this type. The caller can delay sending re-INVITE F6 for some period",t+=" of time (2 seconds, perhaps), after which the caller can reasonably",t+=" assume that its ACK has been received. Implementors can decouple the",t+=" actions of the user (e.g., pressing the hold button) from the actions",t+=" of the protocol (the sending of re-INVITE F6), so that the UA can",t+=" behave like this. In this case, it is the implementor's choice as to",t+=" how long to wait. In most cases, such an implementation may be",t+=" useful to prevent the type of race condition shown in this section.",t+=" This document expresses no preference about whether or not they",t+=" should wait for an ACK to be delivered. After considering the impact",t+=" on user experience, implementors should decide whether or not to wait",t+=" for a while, because the user experience depends on the",t+=" implementation and has no direct bearing on protocol behavior.",this.logger.warn("RFC 5407 suggests the following to avoid this race condition... Note: Implementation issues are outside the scope of this document, but the following tip is provided for avoiding race conditions of this type. The caller can delay sending re-INVITE F6 for some period of time (2 seconds, perhaps), after which the caller can reasonably assume that its ACK has been received. Implementors can decouple the actions of the user (e.g., pressing the hold button) from the actions of the protocol (the sending of re-INVITE F6), so that the UA can behave like this. In this case, it is the implementor's choice as to how long to wait. In most cases, such an implementation may be useful to prevent the type of race condition shown in this section. This document expresses no preference about whether or not they should wait for an ACK to be delivered. After considering the impact on user experience, implementors should decide whether or not to wait for a while, because the user experience depends on the implementation and has no direct bearing on protocol behavior.")},n=[`Retry-After: ${Math.floor(10*Math.random())+1}`];if(this.ackProcessing)return this.core.replyStateless(e,{statusCode:500,extraHeaders:n}),void t();if(this.ackWait&&this.signalingState!==Ye.Stable)return this.core.replyStateless(e,{statusCode:500,extraHeaders:n}),void t();if(this.reinviteUserAgentServer)return void this.core.replyStateless(e,{statusCode:500,extraHeaders:n});if(this.reinviteUserAgentClient)return void this.core.replyStateless(e,{statusCode:491})}if(e.method===Ze.INVITE){const t=e.parseHeader("contact");if(!t)throw new Error("Contact undefined.");if(!(t instanceof Se))throw new Error("Contact not instance of NameAddrHeader.");this.dialogState.remoteTarget=t.uri}switch(e.method){case Ze.BYE:{const t=new Vt(this,e);this.delegate&&this.delegate.onBye?this.delegate.onBye(t):t.accept(),this.dispose()}break;case Ze.INFO:{const t=new Wt(this,e);this.delegate&&this.delegate.onInfo?this.delegate.onInfo(t):t.reject({statusCode:469,extraHeaders:["Recv-Info:"]})}break;case Ze.INVITE:{const t=new en(this,e);this.signalingStateTransition(e),this.delegate&&this.delegate.onInvite?this.delegate.onInvite(t):t.reject({statusCode:488})}break;case Ze.MESSAGE:{const t=new Gt(this.core,e);this.delegate&&this.delegate.onMessage?this.delegate.onMessage(t):t.accept()}break;case Ze.NOTIFY:{const t=new Qt(this,e);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(t):t.accept()}break;case Ze.PRACK:{const t=new Zt(this,e);this.delegate&&this.delegate.onPrack?this.delegate.onPrack(t):t.accept()}break;case Ze.REFER:{const t=new nn(this,e);this.delegate&&this.delegate.onRefer?this.delegate.onRefer(t):t.reject()}break;default:this.logger.log(`INVITE dialog ${this.id} received unimplemented ${e.method} request`),this.core.replyStateless(e,{statusCode:501})}}else this.logger.log(`INVITE dialog ${this.id} rejected out of order ${e.method} request.`);else{if(this.ackWait){if(this.initialTransaction instanceof Ht)return void this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);if(this.initialTransaction.request.cseq!==e.cseq)return void this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);this.ackWait=!1}else{if(!this.reinviteUserAgentServer)return void this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);if(this.reinviteUserAgentServer.transaction.request.cseq!==e.cseq)return void this.logger.warn(`INVITE dialog ${this.id} received unexpected ${e.method} request, dropping.`);this.reinviteUserAgentServer=void 0}if(this.signalingStateTransition(e),this.delegate&&this.delegate.onAck){const t=this.delegate.onAck({message:e});t instanceof Promise&&(this.ackProcessing=!0,t.then(()=>this.ackProcessing=!1).catch(()=>this.ackProcessing=!1))}}}reliableSequenceGuard(e){const t=e.statusCode;if(!t)throw new Error("Status code undefined");if(t>100&&t<200){const t=e.getHeader("require"),n=e.getHeader("rseq"),r=t&&t.includes("100rel")&&n?Number(n):void 0;if(r){if(this.rseq&&this.rseq+1!==r)return!1;this.rseq=this.rseq?this.rseq+1:r}}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(e){const t=Ve(e);if(t&&"session"===t.contentDisposition){if(this._signalingState===Ye.Stable&&(this._rollbackOffer=this._offer,this._rollbackAnswer=this._answer),e instanceof Le)switch(this._signalingState){case Ye.Initial:case Ye.Stable:this._signalingState=Ye.HaveRemoteOffer,this._offer=t,this._answer=void 0;break;case Ye.HaveLocalOffer:this._signalingState=Ye.Stable,this._answer=t;break;case Ye.HaveRemoteOffer:case Ye.Closed:break;default:throw new Error("Unexpected signaling state.")}if(e instanceof He)switch(this._signalingState){case Ye.Initial:case Ye.Stable:this._signalingState=Ye.HaveRemoteOffer,this._offer=t,this._answer=void 0;break;case Ye.HaveLocalOffer:this._signalingState=Ye.Stable,this._answer=t;break;case Ye.HaveRemoteOffer:case Ye.Closed:break;default:throw new Error("Unexpected signaling state.")}if(e instanceof Fe)switch(this._signalingState){case Ye.Initial:case Ye.Stable:this._signalingState=Ye.HaveLocalOffer,this._offer=t,this._answer=void 0;break;case Ye.HaveLocalOffer:break;case Ye.HaveRemoteOffer:this._signalingState=Ye.Stable,this._answer=t;break;case Ye.Closed:break;default:throw new Error("Unexpected signaling state.")}if(qe(e))switch(this._signalingState){case Ye.Initial:case Ye.Stable:this._signalingState=Ye.HaveLocalOffer,this._offer=t,this._answer=void 0;break;case Ye.HaveLocalOffer:break;case Ye.HaveRemoteOffer:this._signalingState=Ye.Stable,this._answer=t;break;case Ye.Closed:break;default:throw new Error("Unexpected signaling state.")}}}start2xxRetransmissionTimer(){if(this.initialTransaction instanceof $t){const e=this.initialTransaction;let t=Qe.T1;const n=()=>{this.ackWait?(this.logger.log("No ACK for 2xx response received, attempting retransmission"),e.retransmitAcceptedResponse(),t=Math.min(2*t,Qe.T2),this.invite2xxTimer=setTimeout(n,t)):this.invite2xxTimer=void 0};this.invite2xxTimer=setTimeout(n,t);const r=()=>{e.state===St.Terminated&&(e.removeStateChangeListener(r),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.ackWait&&(this.delegate&&this.delegate.onAckTimeout?this.delegate.onAckTimeout():this.bye()))};e.addStateChangeListener(r)}}startReInvite2xxRetransmissionTimer(){if(this.reinviteUserAgentServer&&this.reinviteUserAgentServer.transaction instanceof $t){const e=this.reinviteUserAgentServer.transaction;let t=Qe.T1;const n=()=>{this.reinviteUserAgentServer?(this.logger.log("No ACK for 2xx response received, attempting retransmission"),e.retransmitAcceptedResponse(),t=Math.min(2*t,Qe.T2),this.invite2xxTimer=setTimeout(n,t)):this.invite2xxTimer=void 0};this.invite2xxTimer=setTimeout(n,t);const r=()=>{e.state===St.Terminated&&(e.removeStateChangeListener(r),this.invite2xxTimer&&(clearTimeout(this.invite2xxTimer),this.invite2xxTimer=void 0),this.reinviteUserAgentServer)};e.addStateChangeListener(r)}}}class on extends Ft{constructor(e,t,n){super(Ht,e,t,n),this.confirmedDialogAcks=new Map,this.confirmedDialogs=new Map,this.earlyDialogs=new Map,this.delegate=n}dispose(){this.earlyDialogs.forEach(e=>e.dispose()),this.earlyDialogs.clear(),super.dispose()}onTransportError(e){if(this.transaction.state===St.Calling)return super.onTransportError(e);this.logger.error(e.message),this.logger.error("User agent client request transport error while sending ACK.")}receiveResponse(e){if(!this.authenticationGuard(e))return;const t=e.statusCode?e.statusCode.toString():"";if(!t)throw new Error("Response status code undefined.");switch(!0){case/^100$/.test(t):return void(this.delegate&&this.delegate.onTrying&&this.delegate.onTrying({message:e}));case/^1[0-9]{2}$/.test(t):{if(!e.toTag)return void this.logger.warn("Non-100 1xx INVITE response received without a to tag, dropping.");if(!e.parseHeader("contact"))return void this.logger.error("Non-100 1xx INVITE response received without a Contact header field, dropping.");const t=Lt.initialDialogStateForUserAgentClient(this.message,e);let n=this.earlyDialogs.get(t.id);if(!n){const e=this.transaction;if(!(e instanceof Ht))throw new Error("Transaction not instance of InviteClientTransaction.");n=new rn(e,this.core,t),this.earlyDialogs.set(n.id,n)}if(!n.reliableSequenceGuard(e))return void this.logger.warn("1xx INVITE reliable response received out of order or is a retransmission, dropping.");n.signalingState!==Ye.Initial&&n.signalingState!==Ye.HaveLocalOffer||n.signalingStateTransition(e);const r=n;this.delegate&&this.delegate.onProgress&&this.delegate.onProgress({message:e,session:r,prack:e=>r.prack(void 0,e)})}return;case/^2[0-9]{2}$/.test(t):{if(!e.toTag)return void this.logger.error("2xx INVITE response received without a to tag, dropping.");if(!e.parseHeader("contact"))return void this.logger.error("2xx INVITE response received without a Contact header field, dropping.");const t=Lt.initialDialogStateForUserAgentClient(this.message,e);let n=this.confirmedDialogs.get(t.id);if(n){const e=this.confirmedDialogAcks.get(t.id);if(e){const t=this.transaction;if(!(t instanceof Ht))throw new Error("Client transaction not instance of InviteClientTransaction.");t.ackResponse(e.message)}return}if(n=this.earlyDialogs.get(t.id),n)n.confirm(),n.recomputeRouteSet(e),this.earlyDialogs.delete(n.id),this.confirmedDialogs.set(n.id,n);else{const e=this.transaction;if(!(e instanceof Ht))throw new Error("Transaction not instance of InviteClientTransaction.");n=new rn(e,this.core,t),this.confirmedDialogs.set(n.id,n)}n.signalingState!==Ye.Initial&&n.signalingState!==Ye.HaveLocalOffer||n.signalingStateTransition(e);const r=n;if(this.delegate&&this.delegate.onAccept)this.delegate.onAccept({message:e,session:r,ack:e=>{const t=r.ack(e);return this.confirmedDialogAcks.set(r.id,t),t}});else{const e=r.ack();this.confirmedDialogAcks.set(r.id,e)}}return;case/^3[0-9]{2}$/.test(t):return this.earlyDialogs.forEach(e=>e.dispose()),this.earlyDialogs.clear(),void(this.delegate&&this.delegate.onRedirect&&this.delegate.onRedirect({message:e}));case/^[4-6][0-9]{2}$/.test(t):return this.earlyDialogs.forEach(e=>e.dispose()),this.earlyDialogs.clear(),void(this.delegate&&this.delegate.onReject&&this.delegate.onReject({message:e}));default:throw new Error(`Invalid status code ${t}`)}}}class an extends qt{constructor(e,t,n){super($t,e,t,n),this.core=e}dispose(){this.earlyDialog&&this.earlyDialog.dispose(),super.dispose()}accept(e={statusCode:200}){if(!this.acceptable)throw new Xe(`${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 e=this.transaction;if(!(e instanceof $t))throw new Error("Transaction not instance of InviteClientTransaction.");const t=Lt.initialDialogStateForUserAgentServer(this.message,this.toTag);this.confirmedDialog=new rn(e,this.core,t)}const t=this.message.getHeaders("record-route").map(e=>`Record-Route: ${e}`),n=`Contact: ${this.core.configuration.contact.toString()}`,r="Allow: "+et.toString();if(!e.body)if(this.confirmedDialog.signalingState===Ye.Stable)e.body=this.confirmedDialog.answer;else if(this.confirmedDialog.signalingState===Ye.Initial||this.confirmedDialog.signalingState===Ye.HaveRemoteOffer)throw new Error("Response must have a body.");e.statusCode=e.statusCode||200,e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(t),e.extraHeaders.push(r),e.extraHeaders.push(n);const i=super.accept(e),o=this.confirmedDialog,a=Object.assign(Object.assign({},i),{session:o});return e.body&&this.confirmedDialog.signalingState!==Ye.Stable&&this.confirmedDialog.signalingStateTransition(e.body),a}progress(e={statusCode:180}){if(!this.progressable)throw new Xe(`${this.message.method} not progressable in state ${this.transaction.state}.`);if(!this.earlyDialog){const e=this.transaction;if(!(e instanceof $t))throw new Error("Transaction not instance of InviteClientTransaction.");const t=Lt.initialDialogStateForUserAgentServer(this.message,this.toTag,!0);this.earlyDialog=new rn(e,this.core,t)}const t=this.message.getHeaders("record-route").map(e=>`Record-Route: ${e}`),n=`Contact: ${this.core.configuration.contact}`;e.extraHeaders=e.extraHeaders||[],e.extraHeaders=e.extraHeaders.concat(t),e.extraHeaders.push(n);const r=super.progress(e),i=this.earlyDialog,o=Object.assign(Object.assign({},r),{session:i});return e.body&&this.earlyDialog.signalingState!==Ye.Stable&&this.earlyDialog.signalingStateTransition(e.body),o}redirect(e,t={statusCode:302}){return super.redirect(e,t)}reject(e={statusCode:486}){return super.reject(e)}}class sn extends Ft{constructor(e,t,n){super(jt,e,t,n)}}class ln extends Ft{constructor(e,t,n){super(jt,e,t,n)}}class cn extends qt{constructor(e,t,n){super(zt,e,t,n),this.core=e}}class un extends Ft{constructor(e,t,n){const r=e.createOutgoingRequestMessage(Ze.SUBSCRIBE,n);super(jt,e.userAgentCore,r,t),this.dialog=e}waitNotifyStop(){}receiveResponse(e){if(e.statusCode&&e.statusCode>=200&&e.statusCode<300){const t=e.getHeader("Expires");if(t){const e=Number(t);this.dialog.subscriptionExpires>e&&(this.dialog.subscriptionExpires=e)}else this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE")}if(e.statusCode&&e.statusCode>=400&&e.statusCode<700){[404,405,410,416,480,481,482,483,484,485,489,501,604].includes(e.statusCode)&&this.dialog.terminate()}super.receiveResponse(e)}}class dn extends Lt{constructor(e,t,n,r,i,o){super(r,i),this.delegate=o,this._autoRefresh=!1,this._subscriptionEvent=e,this._subscriptionExpires=t,this._subscriptionExpiresInitial=t,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this._subscriptionRefresh=void 0,this._subscriptionRefreshLastSet=void 0,this._subscriptionState=n,this.logger=r.loggerFactory.getLogger("sip.subscribe-dialog"),this.logger.log(`SUBSCRIBE dialog ${this.id} constructed`)}static initialDialogStateForSubscription(e,t){const n=t.getHeaders("record-route"),r=t.parseHeader("contact");if(!r)throw new Error("Contact undefined.");if(!(r instanceof Se))throw new Error("Contact not instance of NameAddrHeader.");const i=r.uri,o=e.cseq,a=e.callId,s=e.fromTag,l=t.fromTag;if(!a)throw new Error("Call id undefined.");if(!s)throw new Error("From tag undefined.");if(!l)throw new Error("To tag undefined.");if(!e.from)throw new Error("From undefined.");if(!e.to)throw new Error("To undefined.");return{id:a+s+l,early:!1,callId:a,localTag:s,remoteTag:l,localSequenceNumber:o,remoteSequenceNumber:void 0,localURI:e.from.uri,remoteURI:e.to.uri,remoteTarget:i,routeSet:n,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(e){this._autoRefresh=!0,this.refreshTimerSet()}get subscriptionEvent(){return this._subscriptionEvent}get subscriptionExpires(){const e=Math.floor(Date.now()/1e3)-this._subscriptionExpiresLastSet,t=this._subscriptionExpires-e;return Math.max(t,0)}set subscriptionExpires(e){if(e<0)throw new Error("Expires must be greater than or equal to zero.");if(this._subscriptionExpires=e,this._subscriptionExpiresLastSet=Math.floor(Date.now()/1e3),this.autoRefresh){const t=this.subscriptionRefresh;(void 0===t||t>=e)&&this.refreshTimerSet()}}get subscriptionExpiresInitial(){return this._subscriptionExpiresInitial}get subscriptionRefresh(){if(void 0===this._subscriptionRefresh||void 0===this._subscriptionRefreshLastSet)return;const e=Math.floor(Date.now()/1e3)-this._subscriptionRefreshLastSet,t=this._subscriptionRefresh-e;return Math.max(t,0)}get subscriptionState(){return this._subscriptionState}receiveRequest(e){if(this.logger.log(`SUBSCRIBE dialog ${this.id} received ${e.method} request`),this.sequenceGuard(e))if(super.receiveRequest(e),e.method===Ze.NOTIFY)this.onNotify(e);else this.logger.log(`SUBSCRIBE dialog ${this.id} received unimplemented ${e.method} request`),this.core.replyStateless(e,{statusCode:501});else this.logger.log(`SUBSCRIBE dialog ${this.id} rejected out of order ${e.method} request.`)}refresh(){const e="Allow: "+et.toString(),t={};return t.extraHeaders=(t.extraHeaders||[]).slice(),t.extraHeaders.push(e),t.extraHeaders.push("Event: "+this.subscriptionEvent),t.extraHeaders.push("Expires: "+this.subscriptionExpiresInitial),t.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,t)}subscribe(e,t={}){var n;if(this.subscriptionState!==pt.Pending&&this.subscriptionState!==pt.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 r=new un(this,e,t);return this.N&&(clearTimeout(this.N),this.N=void 0),(null===(n=t.extraHeaders)||void 0===n?void 0:n.includes("Expires: 0"))||(this.N=setTimeout(()=>this.timerN(),Qe.TIMER_N)),r}terminate(){this.stateTransition(pt.Terminated),this.onTerminated()}unsubscribe(){const e="Allow: "+et.toString(),t={};return t.extraHeaders=(t.extraHeaders||[]).slice(),t.extraHeaders.push(e),t.extraHeaders.push("Event: "+this.subscriptionEvent),t.extraHeaders.push("Expires: 0"),t.extraHeaders.push("Contact: "+this.core.configuration.contact.toString()),this.subscribe(void 0,t)}onNotify(e){const t=e.parseHeader("Event").event;if(!t||t!==this.subscriptionEvent)return void this.core.replyStateless(e,{statusCode:489});this.N&&(clearTimeout(this.N),this.N=void 0);const n=e.parseHeader("Subscription-State");if(!n||!n.state)return void this.core.replyStateless(e,{statusCode:489});const r=n.state,i=n.expires?Math.max(n.expires,0):void 0;switch(r){case"pending":this.stateTransition(pt.Pending,i);break;case"active":this.stateTransition(pt.Active,i);break;case"terminated":this.stateTransition(pt.Terminated,i);break;default:this.logger.warn("Unrecognized subscription state.")}const o=new Qt(this,e);this.delegate&&this.delegate.onNotify?this.delegate.onNotify(o):o.accept()}onRefresh(e){this.delegate&&this.delegate.onRefresh&&this.delegate.onRefresh(e)}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 e=900*this.subscriptionExpires;this._subscriptionRefresh=Math.floor(e/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())},e)}}stateTransition(e,t){const n=()=>{this.logger.warn(`Invalid subscription state transition from ${this.subscriptionState} to ${e}`)};switch(e){case pt.Initial:case pt.NotifyWait:return void n();case pt.Pending:if(this.subscriptionState!==pt.NotifyWait&&this.subscriptionState!==pt.Pending)return void n();break;case pt.Active:case pt.Terminated:if(this.subscriptionState!==pt.NotifyWait&&this.subscriptionState!==pt.Pending&&this.subscriptionState!==pt.Active)return void n();break;default:return void n()}e===pt.Pending&&t&&(this.subscriptionExpires=t),e===pt.Active&&t&&(this.subscriptionExpires=t),e===pt.Terminated&&this.dispose(),this._subscriptionState=e}timerN(){this.logger.warn("Timer N expired for SUBSCRIBE dialog. Timed out waiting for NOTIFY."),this.subscriptionState!==pt.Terminated&&(this.stateTransition(pt.Terminated),this.onTerminated())}}class hn extends Ft{constructor(e,t,n){const r=t.getHeader("Event");if(!r)throw new Error("Event undefined");const i=t.getHeader("Expires");if(!i)throw new Error("Expires undefined");super(jt,e,t,n),this.delegate=n,this.subscriberId=t.callId+t.fromTag+r,this.subscriptionExpiresRequested=this.subscriptionExpires=Number(i),this.subscriptionEvent=r,this.subscriptionState=pt.NotifyWait,this.waitNotifyStart()}dispose(){super.dispose()}onNotify(e){const t=e.message.parseHeader("Event").event;if(!t||t!==this.subscriptionEvent)return this.logger.warn("Failed to parse event."),void e.reject({statusCode:489});const n=e.message.parseHeader("Subscription-State");if(!n||!n.state)return this.logger.warn("Failed to parse subscription state."),void e.reject({statusCode:489});const r=n.state;switch(r){case"pending":case"active":case"terminated":break;default:return this.logger.warn(`Invalid subscription state ${r}`),void e.reject({statusCode:489})}if("terminated"!==r){if(!e.message.parseHeader("contact"))return this.logger.warn("Failed to parse contact."),void e.reject({statusCode:489})}if(this.dialog)throw new Error("Dialog already created. This implementation only supports install of single subscriptions.");switch(this.waitNotifyStop(),this.subscriptionExpires=n.expires?Math.min(this.subscriptionExpires,Math.max(n.expires,0)):this.subscriptionExpires,r){case"pending":this.subscriptionState=pt.Pending;break;case"active":this.subscriptionState=pt.Active;break;case"terminated":this.subscriptionState=pt.Terminated;break;default:throw new Error(`Unrecognized state ${r}.`)}if(this.subscriptionState!==pt.Terminated){const t=dn.initialDialogStateForSubscription(this.message,e.message);this.dialog=new dn(this.subscriptionEvent,this.subscriptionExpires,this.subscriptionState,this.core,t)}if(this.delegate&&this.delegate.onNotify){const t=e,n=this.dialog;this.delegate.onNotify({request:t,subscription:n})}else e.accept()}waitNotifyStart(){this.N||(this.core.subscribers.set(this.subscriberId,this),this.N=setTimeout(()=>this.timerN(),Qe.TIMER_N))}waitNotifyStop(){this.N&&(this.core.subscribers.delete(this.subscriberId),clearTimeout(this.N),this.N=void 0)}receiveResponse(e){if(this.authenticationGuard(e)){if(e.statusCode&&e.statusCode>=200&&e.statusCode<300){const t=e.getHeader("Expires");if(t){const e=Number(t);e>this.subscriptionExpiresRequested&&this.logger.warn("Expires header in a 200-class response to SUBSCRIBE with a higher value than the one in the request"),e<this.subscriptionExpires&&(this.subscriptionExpires=e)}else this.logger.warn("Expires header missing in a 200-class response to SUBSCRIBE");this.dialog&&this.dialog.subscriptionExpires>this.subscriptionExpires&&(this.dialog.subscriptionExpires=this.subscriptionExpires)}e.statusCode&&e.statusCode>=300&&e.statusCode<700&&this.waitNotifyStop(),super.receiveResponse(e)}}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 fn extends qt{constructor(e,t,n){super(zt,e,t,n),this.core=e}}const pn=["application/sdp","application/dtmf-relay"];class gn{constructor(e,t={}){this.userAgentClients=new Map,this.userAgentServers=new Map,this.configuration=e,this.delegate=t,this.dialogs=new Map,this.subscribers=new Map,this.logger=e.loggerFactory.getLogger("sip.user-agent-core")}dispose(){this.reset()}reset(){this.dialogs.forEach(e=>e.dispose()),this.dialogs.clear(),this.subscribers.forEach(e=>e.dispose()),this.subscribers.clear(),this.userAgentClients.forEach(e=>e.dispose()),this.userAgentClients.clear(),this.userAgentServers.forEach(e=>e.dispose()),this.userAgentServers.clear()}get loggerFactory(){return this.configuration.loggerFactory}get transport(){const e=this.configuration.transportAccessor();if(!e)throw new Error("Transport undefined.");return e}invite(e,t){return new on(this,e,t)}message(e,t){return new Yt(this,e,t)}publish(e,t){return new sn(this,e,t)}register(e,t){return new ln(this,e,t)}subscribe(e,t){return new hn(this,e,t)}request(e,t){return new Ft(jt,this,e,t)}makeOutgoingRequestMessage(e,t,n,r,i,o,a){const s=this.configuration.sipjsId,l=this.configuration.displayName,c=this.configuration.viaForceRport,u=this.configuration.hackViaTcp,d=this.configuration.supportedOptionTags.slice();e===Ze.REGISTER&&d.push("path","gruu"),e===Ze.INVITE&&(this.configuration.contact.pubGruu||this.configuration.contact.tempGruu)&&d.push("gruu");const h={callIdPrefix:s,forceRport:c,fromDisplayName:l,hackViaTcp:u,optionTags:d,routeSet:this.configuration.routeSet,userAgentString:this.configuration.userAgentHeaderFieldValue,viaHost:this.configuration.viaHost},f=Object.assign(Object.assign({},h),i);return new Fe(e,t,n,r,f,o,a)}receiveIncomingRequestFromTransport(e){this.receiveRequestFromTransport(e)}receiveIncomingResponseFromTransport(e){this.receiveResponseFromTransport(e)}replyStateless(e,t){const n=this.configuration.userAgentHeaderFieldValue,r=this.configuration.supportedOptionTagsResponse;t=Object.assign(Object.assign({},t),{userAgent:n,supported:r});const i=It(e,t);return this.transport.send(i.message).catch(t=>{t instanceof Error&&this.logger.error(t.message),this.logger.error(`Transport error occurred sending stateless reply to ${e.method} request.`)}),i}receiveRequestFromTransport(e){const t=e.viaBranch,n=this.userAgentServers.get(t);e.method===Ze.ACK&&n&&n.transaction.state===St.Accepted&&n instanceof an?this.logger.warn(`Discarding out of dialog ACK after 2xx response sent on transaction ${t}.`):e.method!==Ze.CANCEL?n?n.transaction.receiveRequest(e):this.receiveRequest(e):n?(this.replyStateless(e,{statusCode:200}),n.transaction instanceof $t&&n.transaction.state===St.Proceeding&&n instanceof an&&n.receiveCancel(e)):this.replyStateless(e,{statusCode:481})}receiveRequest(e){if(!et.includes(e.method)){const t="Allow: "+et.toString();return void this.replyStateless(e,{statusCode:405,extraHeaders:[t]})}if(!e.ruri)throw new Error("Request-URI undefined.");if("sip"!==e.ruri.scheme)return void this.replyStateless(e,{statusCode:416});const t=e.ruri,n=e=>!!e&&e.user===t.user;if(!n(this.configuration.aor)&&!(n(this.configuration.contact.uri)||n(this.configuration.contact.pubGruu)||n(this.configuration.contact.tempGruu)))return this.logger.warn("Request-URI does not point to us."),void(e.method!==Ze.ACK&&this.replyStateless(e,{statusCode:404}));if(e.method!==Ze.INVITE||e.hasHeader("Contact")){if(!e.toTag){const t=e.viaBranch;if(!this.userAgentServers.has(t)){if(Array.from(this.userAgentServers.values()).some(t=>t.transaction.request.fromTag===e.fromTag&&t.transaction.request.callId===e.callId&&t.transaction.request.cseq===e.cseq))return void this.replyStateless(e,{statusCode:482})}}e.toTag?this.receiveInsideDialogRequest(e):this.receiveOutsideDialogRequest(e)}else this.replyStateless(e,{statusCode:400,reasonPhrase:"Missing Contact Header"})}receiveInsideDialogRequest(e){if(e.method===Ze.NOTIFY){const t=e.parseHeader("Event");if(!t||!t.event)return void this.replyStateless(e,{statusCode:489});const n=e.callId+e.toTag+t.event,r=this.subscribers.get(n);if(r){const t=new Qt(this,e);return void r.onNotify(t)}}const t=e.callId+e.toTag+e.fromTag,n=this.dialogs.get(t);if(n){if(e.method===Ze.OPTIONS){const t="Allow: "+et.toString(),n="Accept: "+pn.toString();return void this.replyStateless(e,{statusCode:200,extraHeaders:[t,n]})}n.receiveRequest(e)}else e.method!==Ze.ACK&&this.replyStateless(e,{statusCode:481})}receiveOutsideDialogRequest(e){switch(e.method){case Ze.ACK:break;case Ze.BYE:this.replyStateless(e,{statusCode:481});break;case Ze.CANCEL:throw new Error(`Unexpected out of dialog request method ${e.method}.`);case Ze.INFO:this.replyStateless(e,{statusCode:405});break;case Ze.INVITE:{const t=new an(this,e);this.delegate.onInvite?this.delegate.onInvite(t):t.reject()}break;case Ze.MESSAGE:{const t=new Gt(this,e);this.delegate.onMessage?this.delegate.onMessage(t):t.accept()}break;case Ze.NOTIFY:{const t=new Qt(this,e);this.delegate.onNotify?this.delegate.onNotify(t):t.reject({statusCode:405})}break;case Ze.OPTIONS:{const t="Allow: "+et.toString(),n="Accept: "+pn.toString();this.replyStateless(e,{statusCode:200,extraHeaders:[t,n]})}break;case Ze.REFER:{const t=new nn(this,e);this.delegate.onRefer?this.delegate.onRefer(t):t.reject({statusCode:405})}break;case Ze.REGISTER:{const t=new cn(this,e);this.delegate.onRegister?this.delegate.onRegister(t):t.reject({statusCode:405})}break;case Ze.SUBSCRIBE:{const t=new fn(this,e);this.delegate.onSubscribe?this.delegate.onSubscribe(t):t.reject({statusCode:480})}break;default:throw new Error(`Unexpected out of dialog request method ${e.method}.`)}}receiveResponseFromTransport(e){if(e.getHeaders("via").length>1)return void this.logger.warn("More than one Via header field present in the response, dropping");const t=e.viaBranch+e.method,n=this.userAgentClients.get(t);n?n.transaction.receiveResponse(e):this.logger.warn(`Discarding unmatched ${e.statusCode} response to ${e.method} ${t}.`)}}class mn{constructor(e,t,n){e.debug("SessionDescriptionHandler.constructor"),this.logger=e,this.mediaStreamFactory=t,this.sessionDescriptionHandlerConfiguration=n,this._localMediaStream=new MediaStream,this._remoteMediaStream=new MediaStream,this._peerConnection=new RTCPeerConnection(null==n?void 0:n.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(e){this._peerConnectionDelegate=e}static dispatchAddTrackEvent(e,t){e.dispatchEvent(new MediaStreamTrackEvent("addtrack",{track:t}))}static dispatchRemoveTrackEvent(e,t){e.dispatchEvent(new MediaStreamTrackEvent("removetrack",{track:t}))}close(){this.logger.debug("SessionDescriptionHandler.close"),void 0!==this._peerConnection&&(this._peerConnection.getReceivers().forEach(e=>{e.track&&e.track.stop()}),this._peerConnection.getSenders().forEach(e=>{e.track&&e.track.stop()}),this._dataChannel&&this._dataChannel.close(),this._peerConnection.close(),this._peerConnection=void 0)}enableReceiverTracks(e){const t=this.peerConnection;if(!t)throw new Error("Peer connection closed.");t.getReceivers().forEach(t=>{t.track&&(t.track.enabled=e)})}enableSenderTracks(e){const t=this.peerConnection;if(!t)throw new Error("Peer connection closed.");t.getSenders().forEach(t=>{t.track&&(t.track.enabled=e)})}getDescription(e,t){var n,r;if(this.logger.debug("SessionDescriptionHandler.getDescription"),void 0===this._peerConnection)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=null==e?void 0:e.onDataChannel;const i=null===(n=null==e?void 0:e.offerOptions)||void 0===n?void 0:n.iceRestart,o=void 0===(null==e?void 0:e.iceGatheringTimeout)?null===(r=this.sessionDescriptionHandlerConfiguration)||void 0===r?void 0:r.iceGatheringTimeout:null==e?void 0:e.iceGatheringTimeout;return this.getLocalMediaStream(e).then(()=>this.updateDirection(e)).then(()=>this.createDataChannel(e)).then(()=>this.createLocalOfferOrAnswer(e)).then(e=>this.applyModifiers(e,t)).then(e=>this.setLocalSessionDescription(e)).then(()=>this.waitForIceGatheringComplete(i,o)).then(()=>this.getLocalSessionDescription()).then(e=>({body:e.sdp,contentType:"application/sdp"})).catch(e=>{throw this.logger.error("SessionDescriptionHandler.getDescription failed - "+e),e})}hasDescription(e){return this.logger.debug("SessionDescriptionHandler.hasDescription"),"application/sdp"===e}iceGatheringComplete(){this.logger.debug("SessionDescriptionHandler.iceGatheringComplete"),void 0!==this.iceGatheringCompleteTimeoutId&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - clearing timeout"),clearTimeout(this.iceGatheringCompleteTimeoutId),this.iceGatheringCompleteTimeoutId=void 0),void 0!==this.iceGatheringCompletePromise&&(this.logger.debug("SessionDescriptionHandler.iceGatheringComplete - resolving promise"),this.iceGatheringCompleteResolve&&this.iceGatheringCompleteResolve(),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0)}sendDtmf(e,t){if(this.logger.debug("SessionDescriptionHandler.sendDtmf"),void 0===this._peerConnection)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - peer connection closed"),!1;const n=this._peerConnection.getSenders();if(0===n.length)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no senders"),!1;const r=n[0].dtmf;if(!r)return this.logger.error("SessionDescriptionHandler.sendDtmf failed - no DTMF sender"),!1;const i=null==t?void 0:t.duration,o=null==t?void 0:t.interToneGap;try{r.insertDTMF(e,i,o)}catch(a){return this.logger.error(a.toString()),!1}return this.logger.log("SessionDescriptionHandler.sendDtmf sent via RTP: "+e.toString()),!0}setDescription(e,t,n){if(this.logger.debug("SessionDescriptionHandler.setDescription"),void 0===this._peerConnection)return Promise.reject(new Error("Peer connection closed."));this.onDataChannel=null==t?void 0:t.onDataChannel;const r="have-local-offer"===this._peerConnection.signalingState?"answer":"offer";return this.getLocalMediaStream(t).then(()=>this.applyModifiers({sdp:e,type:r},n)).then(e=>this.setRemoteSessionDescription(e)).catch(e=>{throw this.logger.error("SessionDescriptionHandler.setDescription failed - "+e),e})}applyModifiers(e,t){return this.logger.debug("SessionDescriptionHandler.applyModifiers"),t&&0!==t.length?t.reduce((e,t)=>e.then(t),Promise.resolve(e)).then(e=>{if(this.logger.debug("SessionDescriptionHandler.applyModifiers - modified sdp"),!e.sdp||!e.type)throw new Error("Invalid SDP.");return{sdp:e.sdp,type:e.type}}):Promise.resolve(e)}createDataChannel(e){if(void 0===this._peerConnection)return Promise.reject(new Error("Peer connection closed."));if(!0!==(null==e?void 0:e.dataChannel))return Promise.resolve();if(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((null==e?void 0:e.dataChannelLabel)||"",null==e?void 0:e.dataChannelOptions),this.onDataChannel&&this.onDataChannel(this._dataChannel),Promise.resolve()}catch(t){return Promise.reject(t)}case"have-remote-offer":return Promise.resolve();default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}createLocalOfferOrAnswer(e){if(void 0===this._peerConnection)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(null==e?void 0:e.offerOptions);case"have-remote-offer":return this.logger.debug("SessionDescriptionHandler.createLocalOfferOrAnswer - creating SDP answer"),this._peerConnection.createAnswer(null==e?void 0:e.answerOptions);default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}}getLocalMediaStream(e){if(this.logger.debug("SessionDescriptionHandler.getLocalMediaStream"),void 0===this._peerConnection)return Promise.reject(new Error("Peer connection closed."));let t=Object.assign({},null==e?void 0:e.constraints);if(this.localMediaStreamConstraints){if(t.audio=t.audio||this.localMediaStreamConstraints.audio,t.video=t.video||this.localMediaStreamConstraints.video,JSON.stringify(this.localMediaStreamConstraints.audio)===JSON.stringify(t.audio)&&JSON.stringify(this.localMediaStreamConstraints.video)===JSON.stringify(t.video))return Promise.resolve()}else void 0===t.audio&&void 0===t.video&&(t={audio:!0});return this.localMediaStreamConstraints=t,this.mediaStreamFactory(t,this,e).then(e=>this.setLocalMediaStream(e))}setLocalMediaStream(e){if(this.logger.debug("SessionDescriptionHandler.setLocalMediaStream"),!this._peerConnection)throw new Error("Peer connection undefined.");const t=this._peerConnection,n=this._localMediaStream,r=[],i=e=>{const i=e.kind;if("audio"!==i&&"video"!==i)throw new Error(`Unknown new track kind ${i}.`);const o=t.getSenders().find(e=>e.track&&e.track.kind===i);o?r.push(new Promise(e=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - replacing sender ${i} track`),e()}).then(()=>o.replaceTrack(e).then(()=>{const t=n.getTracks().find(e=>e.kind===i);t&&(t.stop(),n.removeTrack(t),mn.dispatchRemoveTrackEvent(n,t)),n.addTrack(e),mn.dispatchAddTrackEvent(n,e)}).catch(e=>{throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to replace sender ${i} track`),e}))):r.push(new Promise(e=>{this.logger.debug(`SessionDescriptionHandler.setLocalMediaStream - adding sender ${i} track`),e()}).then(()=>{try{t.addTrack(e,n)}catch(r){throw this.logger.error(`SessionDescriptionHandler.setLocalMediaStream - failed to add sender ${i} track`),r}n.addTrack(e),mn.dispatchAddTrackEvent(n,e)}))},o=e.getAudioTracks();o.length&&i(o[0]);const a=e.getVideoTracks();return a.length&&i(a[0]),r.reduce((e,t)=>e.then(()=>t),Promise.resolve())}getLocalSessionDescription(){if(this.logger.debug("SessionDescriptionHandler.getLocalSessionDescription"),void 0===this._peerConnection)return Promise.reject(new Error("Peer connection closed."));const e=this._peerConnection.localDescription;return e?Promise.resolve(e):Promise.reject(new Error("Failed to get local session description"))}setLocalSessionDescription(e){return this.logger.debug("SessionDescriptionHandler.setLocalSessionDescription"),void 0===this._peerConnection?Promise.reject(new Error("Peer connection closed.")):this._peerConnection.setLocalDescription(e)}setRemoteSessionDescription(e){if(this.logger.debug("SessionDescriptionHandler.setRemoteSessionDescription"),void 0===this._peerConnection)return Promise.reject(new Error("Peer connection closed."));const t=e.sdp;let n;switch(this._peerConnection.signalingState){case"stable":n="offer";break;case"have-local-offer":n="answer";break;default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return t?this._peerConnection.setRemoteDescription({sdp:t,type:n}):(this.logger.error("SessionDescriptionHandler.setRemoteSessionDescription failed - cannot set null sdp"),Promise.reject(new Error("SDP is undefined")))}setRemoteTrack(e){this.logger.debug("SessionDescriptionHandler.setRemoteTrack");const t=this._remoteMediaStream;t.getTrackById(e.id)?this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - have remote ${e.kind} track`):"audio"===e.kind?(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${e.kind} track`),t.getAudioTracks().forEach(e=>{e.stop(),t.removeTrack(e),mn.dispatchRemoveTrackEvent(t,e)}),t.addTrack(e),mn.dispatchAddTrackEvent(t,e)):"video"===e.kind&&(this.logger.debug(`SessionDescriptionHandler.setRemoteTrack - adding remote ${e.kind} track`),t.getVideoTracks().forEach(e=>{e.stop(),t.removeTrack(e),mn.dispatchRemoveTrackEvent(t,e)}),t.addTrack(e),mn.dispatchAddTrackEvent(t,e))}updateDirection(e){if(void 0===this._peerConnection)return Promise.reject(new Error("Peer connection closed."));switch(this._peerConnection.signalingState){case"stable":this.logger.debug("SessionDescriptionHandler.updateDirection - setting offer direction");{const t=t=>{switch(t){case"inactive":case"recvonly":return(null==e?void 0:e.hold)?"inactive":"recvonly";case"sendonly":case"sendrecv":return(null==e?void 0:e.hold)?"sendonly":"sendrecv";case"stopped":return"stopped";default:throw new Error("Should never happen")}};this._peerConnection.getTransceivers().forEach(e=>{if(e.direction){const n=t(e.direction);e.direction!==n&&(e.direction=n)}})}break;case"have-remote-offer":this.logger.debug("SessionDescriptionHandler.updateDirection - setting answer direction");{const t=(()=>{const e=this._peerConnection.remoteDescription;if(!e)throw new Error("Failed to read remote offer");const t=/a=sendrecv\r\n|a=sendonly\r\n|a=recvonly\r\n|a=inactive\r\n/.exec(e.sdp);if(t)switch(t[0]){case"a=inactive\r\n":return"inactive";case"a=recvonly\r\n":return"recvonly";case"a=sendonly\r\n":return"sendonly";case"a=sendrecv\r\n":return"sendrecv";default:throw new Error("Should never happen")}return"sendrecv"})(),n=(()=>{switch(t){case"inactive":return"inactive";case"recvonly":return"sendonly";case"sendonly":return(null==e?void 0:e.hold)?"inactive":"recvonly";case"sendrecv":return(null==e?void 0:e.hold)?"sendonly":"sendrecv";default:throw new Error("Should never happen")}})();this._peerConnection.getTransceivers().forEach(e=>{e.direction&&"stopped"!==e.direction&&e.direction!==n&&(e.direction=n)})}break;default:return Promise.reject(new Error("Invalid signaling state "+this._peerConnection.signalingState))}return Promise.resolve()}waitForIceGatheringComplete(e=!1,t=0){return this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete"),void 0===this._peerConnection?Promise.reject("Peer connection closed."):e||"complete"!==this._peerConnection.iceGatheringState?(void 0!==this.iceGatheringCompletePromise&&(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - rejecting prior waiting promise"),this.iceGatheringCompleteReject&&this.iceGatheringCompleteReject(new Error("Promise superseded.")),this.iceGatheringCompletePromise=void 0,this.iceGatheringCompleteResolve=void 0,this.iceGatheringCompleteReject=void 0),this.iceGatheringCompletePromise=new Promise((e,n)=>{this.iceGatheringCompleteResolve=e,this.iceGatheringCompleteReject=n,t>0&&(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - timeout in "+t),this.iceGatheringCompleteTimeoutId=setTimeout(()=>{this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - timeout"),this.iceGatheringComplete()},t))}),this.iceGatheringCompletePromise):(this.logger.debug("SessionDescriptionHandler.waitForIceGatheringToComplete - already complete"),Promise.resolve())}initPeerConnectionEventHandlers(){if(this.logger.debug("SessionDescriptionHandler.initPeerConnectionEventHandlers"),!this._peerConnection)throw new Error("Peer connection undefined.");const e=this._peerConnection;e.onconnectionstatechange=t=>{var n;const r=e.connectionState;this.logger.debug(`SessionDescriptionHandler.onconnectionstatechange ${r}`),(null===(n=this._peerConnectionDelegate)||void 0===n?void 0:n.onconnectionstatechange)&&this._peerConnectionDelegate.onconnectionstatechange(t)},e.ondatachannel=e=>{var t;this.logger.debug("SessionDescriptionHandler.ondatachannel"),this._dataChannel=e.channel,this.onDataChannel&&this.onDataChannel(this._dataChannel),(null===(t=this._peerConnectionDelegate)||void 0===t?void 0:t.ondatachannel)&&this._peerConnectionDelegate.ondatachannel(e)},e.onicecandidate=e=>{var t;this.logger.debug("SessionDescriptionHandler.onicecandidate"),(null===(t=this._peerConnectionDelegate)||void 0===t?void 0:t.onicecandidate)&&this._peerConnectionDelegate.onicecandidate(e)},e.onicecandidateerror=e=>{var t;this.logger.debug("SessionDescriptionHandler.onicecandidateerror"),(null===(t=this._peerConnectionDelegate)||void 0===t?void 0:t.onicecandidateerror)&&this._peerConnectionDelegate.onicecandidateerror(e)},e.oniceconnectionstatechange=t=>{var n;const r=e.iceConnectionState;this.logger.debug(`SessionDescriptionHandler.oniceconnectionstatechange ${r}`),(null===(n=this._peerConnectionDelegate)||void 0===n?void 0:n.oniceconnectionstatechange)&&this._peerConnectionDelegate.oniceconnectionstatechange(t)},e.onicegatheringstatechange=t=>{var n;const r=e.iceGatheringState;this.logger.debug(`SessionDescriptionHandler.onicegatheringstatechange ${r}`),"complete"===r&&this.iceGatheringComplete(),(null===(n=this._peerConnectionDelegate)||void 0===n?void 0:n.onicegatheringstatechange)&&this._peerConnectionDelegate.onicegatheringstatechange(t)},e.onnegotiationneeded=e=>{var t;this.logger.debug("SessionDescriptionHandler.onnegotiationneeded"),(null===(t=this._peerConnectionDelegate)||void 0===t?void 0:t.onnegotiationneeded)&&this._peerConnectionDelegate.onnegotiationneeded(e)},e.onsignalingstatechange=t=>{var n;const r=e.signalingState;this.logger.debug(`SessionDescriptionHandler.onsignalingstatechange ${r}`),(null===(n=this._peerConnectionDelegate)||void 0===n?void 0:n.onsignalingstatechange)&&this._peerConnectionDelegate.onsignalingstatechange(t)},e.ontrack=e=>{var t;const n=e.track.kind,r=e.track.enabled?"enabled":"disabled";this.logger.debug(`SessionDescriptionHandler.ontrack ${n} ${r}`),this.setRemoteTrack(e.track),(null===(t=this._peerConnectionDelegate)||void 0===t?void 0:t.ontrack)&&this._peerConnectionDelegate.ontrack(e)}}}function vn(e){return(t,n)=>{void 0===e&&(e=e=>e.audio||e.video?void 0===navigator.mediaDevices?Promise.reject(new Error("Media devices not available in insecure contexts.")):navigator.mediaDevices.getUserMedia.call(navigator.mediaDevices,e):Promise.resolve(new MediaStream));const r={iceGatheringTimeout:void 0!==(null==n?void 0:n.iceGatheringTimeout)?null==n?void 0:n.iceGatheringTimeout:5e3,peerConnectionConfiguration:Object.assign(Object.assign({},{bundlePolicy:"balanced",certificates:void 0,iceCandidatePoolSize:0,iceServers:[{urls:"stun:stun.l.google.com:19302"}],iceTransportPolicy:"all",rtcpMuxPolicy:"require"}),null==n?void 0:n.peerConnectionConfiguration)},i=t.userAgent.getLogger("sip.SessionDescriptionHandler");return new mn(i,e,r)}}class yn{constructor(e,t){if(this._state=mt.Disconnected,this.transitioningState=!1,this._stateEventEmitter=new we,this.logger=e,t){const e=t,n=null==e?void 0:e.wsServers,r=null==e?void 0:e.maxReconnectionAttempts;if(void 0!==n){const e='The transport option "wsServers" 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.logger.warn(e)}if(void 0!==r){const e='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.';this.logger.warn(e)}n&&!t.server&&("string"==typeof n&&(t.server=n),n instanceof Array&&(t.server=n[0]))}this.configuration=Object.assign(Object.assign({},yn.defaultOptions),t);const n=this.configuration.server,r=_e.parse(n,"absoluteURI");if(-1===r)throw this.logger.error(`Invalid WebSocket Server URL "${n}"`),new Error("Invalid WebSocket Server URL");if(!["wss","ws","udp"].includes(r.scheme))throw this.logger.error(`Invalid scheme in WebSocket Server URL "${n}"`),new Error("Invalid scheme in WebSocket Server URL");this._protocol=r.scheme.toUpperCase()}dispose(){return this.disconnect()}get protocol(){return this._protocol}get server(){return this.configuration.server}get state(){return this._state}get stateChange(){return this._stateEventEmitter}get ws(){return this._ws}connect(){return this._connect()}disconnect(){return this._disconnect()}isConnected(){return this.state===mt.Connected}send(e){return this._send(e)}_connect(){switch(this.logger.log(`Connecting ${this.server}`),this.state){case mt.Connecting:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(mt.Connecting));if(!this.connectPromise)throw new Error("Connect promise must be defined.");return this.connectPromise;case mt.Connected:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(mt.Connecting));if(this.connectPromise)throw new Error("Connect promise must not be defined.");return Promise.resolve();case mt.Disconnecting:if(this.connectPromise)throw new Error("Connect promise must not be defined.");try{this.transitionState(mt.Connecting)}catch(t){if(t instanceof me)return Promise.reject(t);throw t}break;case mt.Disconnected:if(this.connectPromise)throw new Error("Connect promise must not be defined.");try{this.transitionState(mt.Connecting)}catch(t){if(t instanceof me)return Promise.reject(t);throw t}break;default:throw new Error("Unknown state")}let e;try{e=new WebSocket(this.server,"sip"),e.binaryType="arraybuffer",e.addEventListener("close",t=>this.onWebSocketClose(t,e)),e.addEventListener("error",t=>this.onWebSocketError(t,e)),e.addEventListener("open",t=>this.onWebSocketOpen(t,e)),e.addEventListener("message",t=>this.onWebSocketMessage(t,e)),this._ws=e}catch(n){return this._ws=void 0,this.logger.error("WebSocket construction failed."),this.logger.error(n.toString()),new Promise((e,t)=>{this.connectResolve=e,this.connectReject=t,this.transitionState(mt.Disconnected,n)})}return this.connectPromise=new Promise((t,n)=>{this.connectResolve=t,this.connectReject=n,this.connectTimeout=setTimeout(()=>{this.logger.warn("Connect timed out. Exceeded time set in configuration.connectionTimeout: "+this.configuration.connectionTimeout+"s."),e.close(1e3)},1e3*this.configuration.connectionTimeout)}),this.connectPromise}_disconnect(){switch(this.logger.log(`Disconnecting ${this.server}`),this.state){case mt.Connecting:if(this.disconnectPromise)throw new Error("Disconnect promise must not be defined.");try{this.transitionState(mt.Disconnecting)}catch(t){if(t instanceof me)return Promise.reject(t);throw t}break;case mt.Connected:if(this.disconnectPromise)throw new Error("Disconnect promise must not be defined.");try{this.transitionState(mt.Disconnecting)}catch(t){if(t instanceof me)return Promise.reject(t);throw t}break;case mt.Disconnecting:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(mt.Disconnecting));if(!this.disconnectPromise)throw new Error("Disconnect promise must be defined.");return this.disconnectPromise;case mt.Disconnected:if(this.transitioningState)return Promise.reject(this.transitionLoopDetectedError(mt.Disconnecting));if(this.disconnectPromise)throw new Error("Disconnect promise must not be defined.");return Promise.resolve();default:throw new Error("Unknown state")}if(!this._ws)throw new Error("WebSocket must be defined.");const e=this._ws;return this.disconnectPromise=new Promise((t,n)=>{this.disconnectResolve=t,this.disconnectReject=n;try{e.close(1e3)}catch(r){throw this.logger.error("WebSocket close failed."),this.logger.error(r.toString()),r}}),this.disconnectPromise}_send(e){if(!0===this.configuration.traceSip&&this.logger.log("Sending WebSocket message:\n\n"+e+"\n"),this._state!==mt.Connected)return Promise.reject(new Error("Not connected."));if(!this._ws)throw new Error("WebSocket undefined.");try{this._ws.send(e)}catch(t){return t instanceof Error?Promise.reject(t):Promise.reject(new Error("WebSocket send failed."))}return Promise.resolve()}onWebSocketClose(e,t){if(t!==this._ws)return;const n=`WebSocket closed ${this.server} (code: ${e.code})`,r=this.disconnectPromise?void 0:new Error(n);r&&this.logger.warn("WebSocket closed unexpectedly"),this.logger.log(n),this._ws=void 0,this.transitionState(mt.Disconnected,r)}onWebSocketError(e,t){t===this._ws&&this.logger.error("WebSocket error occurred.")}onWebSocketMessage(e,t){if(t!==this._ws)return;const n=e.data;let r;if(/^(\r\n)+$/.test(n))return this.clearKeepAliveTimeout(),void(!0===this.configuration.traceSip&&this.logger.log("Received WebSocket message with CRLF Keep Alive response"));if(n){if("string"!=typeof n){try{r=(new TextDecoder).decode(new Uint8Array(n))}catch(i){return this.logger.error(i.toString()),void this.logger.error("Received WebSocket binary message failed to be converted into string, message discarded")}!0===this.configuration.traceSip&&this.logger.log("Received WebSocket binary message:\n\n"+r+"\n")}else r=n,!0===this.configuration.traceSip&&this.logger.log("Received WebSocket text message:\n\n"+r+"\n");if(this.state===mt.Connected){if(this.onMessage)try{this.onMessage(r)}catch(o){throw this.logger.error(o.toString()),this.logger.error("Exception thrown by onMessage callback"),o}}else this.logger.warn("Received message while not connected, discarding...")}else this.logger.warn("Received empty message, discarding...")}onWebSocketOpen(e,t){t===this._ws&&this._state===mt.Connecting&&(this.logger.log(`WebSocket opened ${this.server}`),this.transitionState(mt.Connected))}transitionLoopDetectedError(e){let t="A state transition loop has been detected.";return t+=` An attempt to transition from ${this._state} to ${e} before the prior transition completed.`,t+=" Perhaps you are synchronously calling connect() or disconnect() from a callback or state change handler?",this.logger.error(t),new me("Loop detected.")}transitionState(e,t){const n=()=>{throw new Error(`Invalid state transition from ${this._state} to ${e}`)};if(this.transitioningState)throw this.transitionLoopDetectedError(e);switch(this.transitioningState=!0,this._state){case mt.Connecting:e!==mt.Connected&&e!==mt.Disconnecting&&e!==mt.Disconnected&&n();break;case mt.Connected:e!==mt.Disconnecting&&e!==mt.Disconnected&&n();break;case mt.Disconnecting:e!==mt.Connecting&&e!==mt.Disconnected&&n();break;case mt.Disconnected:e!==mt.Connecting&&n();break;default:throw new Error("Unknown state.")}const r=this._state;this._state=e;const i=this.connectResolve,o=this.connectReject;r===mt.Connecting&&(this.connectPromise=void 0,this.connectResolve=void 0,this.connectReject=void 0);const a=this.disconnectResolve,s=this.disconnectReject;if(r===mt.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 ${r} to ${this._state}`),this._stateEventEmitter.emit(this._state),e===mt.Connected&&(this.startSendingKeepAlives(),this.onConnect))try{this.onConnect()}catch(l){throw this.logger.error(l.toString()),this.logger.error("Exception thrown by onConnect callback"),l}if(r===mt.Connected&&(this.stopSendingKeepAlives(),this.onDisconnect))try{t?this.onDisconnect(t):this.onDisconnect()}catch(l){throw this.logger.error(l.toString()),this.logger.error("Exception thrown by onDisconnect callback"),l}if(r===mt.Connecting){if(!i)throw new Error("Connect resolve undefined.");if(!o)throw new Error("Connect reject undefined.");e===mt.Connected?i():o(t||new Error("Connect aborted."))}if(r===mt.Disconnecting){if(!a)throw new Error("Disconnect resolve undefined.");if(!s)throw new Error("Disconnect reject undefined.");e===mt.Disconnected?a():s(t||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()},1e3*this.configuration.keepAliveDebounce),this.send("\r\n\r\n"))}startSendingKeepAlives(){this.configuration.keepAliveInterval&&!this.keepAliveInterval&&(this.keepAliveInterval=setInterval(()=>{this.sendKeepAlive(),this.startSendingKeepAlives()},(e=>{const t=.8*e;return 1e3*(Math.random()*(e-t)+t)})(this.configuration.keepAliveInterval)))}stopSendingKeepAlives(){this.keepAliveInterval&&clearInterval(this.keepAliveInterval),this.keepAliveDebounceTimeout&&clearTimeout(this.keepAliveDebounceTimeout),this.keepAliveInterval=void 0,this.keepAliveDebounceTimeout=void 0}}yn.defaultOptions={server:"",connectionTimeout:5,keepAliveInterval:0,keepAliveDebounce:10,traceSip:!0};class bn{constructor(e={}){if(this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this._state=yt.Stopped,this._stateEventEmitter=new we,this.delegate=e.delegate,this.options=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},bn.defaultOptions()),{sipjsId:Ae(5)}),{uri:new Te("sip","anonymous."+Ae(6),"anonymous.invalid")}),{viaHost:Ae(12)+".invalid"}),bn.stripUndefinedProperties(e)),this.options.hackIpInContact)if("boolean"==typeof this.options.hackIpInContact&&this.options.hackIpInContact){const e=1,t=254,n=Math.floor(Math.random()*(t-e+1)+e);this.options.viaHost="192.0.2."+n}else this.options.hackIpInContact&&(this.options.viaHost=this.options.hackIpInContact);switch(this.loggerFactory=new Dt,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=wt.error;break;case"warn":this.loggerFactory.level=wt.warn;break;case"log":this.loggerFactory.level=wt.log;break;case"debug":this.loggerFactory.level=wt.debug}if(this.options.logConfiguration&&(this.logger.log("Configuration:"),Object.keys(this.options).forEach(e=>{const t=this.options[e];switch(e){case"uri":case"sessionDescriptionHandlerFactory":this.logger.log("· "+e+": "+t);break;case"authorizationPassword":this.logger.log("· "+e+": NOT SHOWN");break;case"transportConstructor":this.logger.log("· "+e+": "+t.name);break;default:this.logger.log("· "+e+": "+JSON.stringify(t))}})),this.options.transportOptions){const t=this.options.transportOptions,n=t.maxReconnectionAttempts,r=t.reconnectionTimeout;if(void 0!==n){const e='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.';this.logger.warn(e)}if(void 0!==r){const e='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.';this.logger.warn(e)}void 0===e.reconnectionDelay&&void 0!==r&&(this.options.reconnectionDelay=r),void 0===e.reconnectionAttempts&&void 0!==n&&(this.options.reconnectionAttempts=n)}if(void 0!==e.reconnectionDelay){const e='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.';this.logger.warn(e)}if(void 0!==e.reconnectionAttempts){const e='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.logger.warn(e)}if(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:bn.newUUID(),-1===_e.parse(this._instanceId,"uuid"))throw new Error("Invalid instanceId.");this._userAgentCore=this.initCore()}static makeURI(e){return _e.URIParse(e)}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:vn(),sessionDescriptionHandlerFactoryOptions:{},sipExtension100rel:ot.Unsupported,sipExtensionReplaces:ot.Unsupported,sipExtensionExtraSupported:[],sipjsId:"",transportConstructor:yn,transportOptions:{},uri:new Te("sip","anonymous","anonymous.invalid"),userAgentString:"SIP.js/0.21.1",viaHost:""}}static newUUID(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=Math.floor(16*Math.random());return("x"===e?t:t%4+8).toString(16)})}static stripUndefinedProperties(e){return Object.keys(e).reduce((t,n)=>(void 0!==e[n]&&(t[n]=e[n]),t),{})}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(e,t){return this.loggerFactory.getLogger(e,t)}getLoggerFactory(){return this.loggerFactory}isConnected(){return this.transport.isConnected()}reconnect(){return this.state===yt.Stopped?Promise.reject(new Error("User agent stopped.")):Promise.resolve().then(()=>this.transport.connect())}start(){return this.state===yt.Started?(this.logger.warn("User agent already started"),Promise.resolve()):(this.logger.log(`Starting ${this.configuration.uri}`),this.transitionState(yt.Started),this.transport.connect())}async stop(){if(this.state===yt.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(e=>{throw this.logger.error(e.message),e}),this.logger.log("Dispose of core"),this.userAgentCore.dispose(),this._publishers={},this._registerers={},this._sessions={},this._subscriptions={},this.transitionState(yt.Stopped),Promise.resolve();const e=Object.assign({},this._publishers),t=Object.assign({},this._registerers),n=Object.assign({},this._sessions),r=Object.assign({},this._subscriptions),i=this.transport,o=this.userAgentCore;this.logger.log("Dispose of registerers");for(const a in t)t[a]&&await t[a].dispose().catch(e=>{throw this.logger.error(e.message),delete this._registerers[a],e});this.logger.log("Dispose of sessions");for(const a in n)n[a]&&await n[a].dispose().catch(e=>{throw this.logger.error(e.message),delete this._sessions[a],e});this.logger.log("Dispose of subscriptions");for(const a in r)r[a]&&await r[a].dispose().catch(e=>{throw this.logger.error(e.message),delete this._subscriptions[a],e});this.logger.log("Dispose of publishers");for(const a in e)e[a]&&await e[a].dispose().catch(e=>{throw this.logger.error(e.message),delete this._publishers[a],e});this.logger.log("Dispose of transport"),await i.dispose().catch(e=>{throw this.logger.error(e.message),e}),this.logger.log("Dispose of core"),o.dispose(),this.transitionState(yt.Stopped)}_makeInviter(e,t){return new ut(this,e,t)}attemptReconnection(e=1){const t=this.options.reconnectionAttempts,n=this.options.reconnectionDelay;e>t?this.logger.log("Maximum reconnection attempts reached"):(this.logger.log(`Reconnection attempt ${e} of ${t} - trying`),setTimeout(()=>{this.reconnect().then(()=>{this.logger.log(`Reconnection attempt ${e} of ${t} - succeeded`)}).catch(n=>{this.logger.error(n.message),this.logger.log(`Reconnection attempt ${e} of ${t} - failed`),this.attemptReconnection(++e)})},1===e?0:1e3*n))}initContact(){const e=""!==this.options.contactName?this.options.contactName:Ae(8),t=this.options.contactParams;return{pubGruu:void 0,tempGruu:void 0,uri:new Te("sip",e,this.options.viaHost,void 0,t),toString:(e={})=>{const n=e.anonymous||!1,r=e.outbound||!1,i=e.register||!1;let o="<";return o+=n?this.contact.tempGruu||`sip:anonymous@anonymous.invalid;transport=${t.transport?t.transport:"ws"}`:i?this.contact.uri:this.contact.pubGruu||this.contact.uri,r&&(o+=";ob"),o+=">",this.options.instanceIdAlwaysAdded&&(o+=';+sip.instance="<urn:uuid:'+this._instanceId+'>"'),o}}}initCore(){let e=[];e.push("outbound"),this.options.sipExtension100rel===ot.Supported&&e.push("100rel"),this.options.sipExtensionReplaces===ot.Supported&&e.push("replaces"),this.options.sipExtensionExtraSupported&&e.push(...this.options.sipExtensionExtraSupported),this.options.hackAllowUnregisteredOptionTags||(e=e.filter(e=>lt[e])),e=Array.from(new Set(e));const t=e.slice();(this.contact.pubGruu||this.contact.tempGruu)&&t.push("gruu");const n={aor:this.options.uri,contact:this.contact,displayName:this.options.displayName,loggerFactory:this.loggerFactory,hackViaTcp:this.options.hackViaTcp,routeSet:this.options.preloadedRouteSet,supportedOptionTags:e,supportedOptionTagsResponse:t,sipjsId:this.options.sipjsId,userAgentHeaderFieldValue:this.options.userAgentString,viaForceRport:this.options.forceRport,viaHost:this.options.viaHost,authenticationFactory:()=>{const e=this.options.authorizationUsername?this.options.authorizationUsername:this.options.uri.user,t=this.options.authorizationPassword?this.options.authorizationPassword:void 0,n=this.options.authorizationHa1?this.options.authorizationHa1:void 0;return new Pt(this.getLoggerFactory(),n,e,t)},transportAccessor:()=>this.transport};return new gn(n,{onInvite:e=>{var t;const n=new ct(this,e);if(e.delegate={onCancel:e=>{n._onCancel(e)},onTransportError:e=>{this.logger.error("A transport error has occurred while handling an incoming INVITE request.")}},e.trying(),this.options.sipExtensionReplaces!==ot.Unsupported){const t=e.message.parseHeader("replaces");if(t){const e=t.call_id;if("string"!=typeof e)throw new Error("Type of call id is not string");const r=t.replaces_to_tag;if("string"!=typeof r)throw new Error("Type of to tag is not string");const i=t.replaces_from_tag;if("string"!=typeof i)throw new Error("type of from tag is not string");const o=e+r+i,a=this.userAgentCore.dialogs.get(o);if(!a)return void n.reject({statusCode:481});if(!a.early&&!0===t.early_only)return void n.reject({statusCode:486});const s=this._sessions[e+i]||this._sessions[e+r]||void 0;if(!s)throw new Error("Session does not exist.");n._replacee=s}}if(null===(t=this.delegate)||void 0===t?void 0:t.onInvite)return n.autoSendAnInitialProvisionalResponse?void n.progress().then(()=>{var e;if(void 0===(null===(e=this.delegate)||void 0===e?void 0:e.onInvite))throw new Error("onInvite undefined.");this.delegate.onInvite(n)}):void this.delegate.onInvite(n);n.reject({statusCode:486})},onMessage:e=>{if(this.delegate&&this.delegate.onMessage){const t=new tt(e);this.delegate.onMessage(t)}else e.accept()},onNotify:e=>{if(this.delegate&&this.delegate.onNotify){const t=new nt(e);this.delegate.onNotify(t)}else this.options.allowLegacyNotifications?e.accept():e.reject({statusCode:481})},onRefer:e=>{this.logger.warn("Received an out of dialog REFER request"),this.delegate&&this.delegate.onReferRequest?this.delegate.onReferRequest(e):e.reject({statusCode:405})},onRegister:e=>{this.logger.warn("Received an out of dialog REGISTER request"),this.delegate&&this.delegate.onRegisterRequest?this.delegate.onRegisterRequest(e):e.reject({statusCode:405})},onSubscribe:e=>{this.logger.warn("Received an out of dialog SUBSCRIBE request"),this.delegate&&this.delegate.onSubscribeRequest?this.delegate.onSubscribeRequest(e):e.reject({statusCode:405})}})}initTransportCallbacks(){this.transport.onConnect=()=>this.onTransportConnect(),this.transport.onDisconnect=e=>this.onTransportDisconnect(e),this.transport.onMessage=e=>this.onTransportMessage(e)}onTransportConnect(){this.state!==yt.Stopped&&this.delegate&&this.delegate.onConnect&&this.delegate.onConnect()}onTransportDisconnect(e){this.state!==yt.Stopped&&(this.delegate&&this.delegate.onDisconnect&&this.delegate.onDisconnect(e),e&&this.options.reconnectionAttempts>0&&this.attemptReconnection())}onTransportMessage(e){const t=kt.parseMessage(e,this.getLogger("sip.Parser"));if(!t)return void this.logger.warn("Failed to parse incoming message. Dropping.");if(this.state===yt.Stopped&&t instanceof Le)return void this.logger.warn(`Received ${t.method} request while stopped. Dropping.`);const n=()=>{const e=["from","to","call_id","cseq","via"];for(const n of e)if(!t.hasHeader(n))return this.logger.warn(`Missing mandatory header field : ${n}.`),!1;return!0};if(t instanceof Le){if(!n())return void this.logger.warn("Request missing mandatory header field. Dropping.");if(!t.toTag&&t.callId.substr(0,5)===this.options.sipjsId)return void this.userAgentCore.replyStateless(t,{statusCode:482});const e=Oe(t.body),r=t.getHeader("content-length");if(r&&e<Number(r))return void this.userAgentCore.replyStateless(t,{statusCode:400})}if(t instanceof He){if(!n())return void this.logger.warn("Response missing mandatory header field. Dropping.");if(t.getHeaders("via").length>1)return void this.logger.warn("More than one Via header field present in the response. Dropping.");if(t.via.host!==this.options.viaHost||void 0!==t.via.port)return void this.logger.warn("Via sent-by in the response does not match UA Via host value. Dropping.");const e=Oe(t.body),r=t.getHeader("content-length");if(r&&e<Number(r))return void this.logger.warn("Message body length is lower than the value in Content-Length header field. Dropping.")}if(t instanceof Le)this.userAgentCore.receiveIncomingRequestFromTransport(t);else{if(!(t instanceof He))throw new Error("Invalid message type.");this.userAgentCore.receiveIncomingResponseFromTransport(t)}}transitionState(e,t){const n=()=>{throw new Error(`Invalid state transition from ${this._state} to ${e}`)};switch(this._state){case yt.Started:e!==yt.Stopped&&n();break;case yt.Stopped:e!==yt.Started&&n();break;default:throw new Error("Unknown state.")}this.logger.log(`Transitioned from ${this._state} to ${e}`),this._state=e,this._stateEventEmitter.emit(this._state)}}class wn{constructor(e,t={}){this.managedSessions=[],this.attemptingReconnection=!1,this.optionsPingFailure=!1,this.optionsPingRunning=!1,this.shouldBeConnected=!1,this.shouldBeRegistered=!1,this.delegate=t.delegate,this.options=Object.assign({aor:"",autoStop:!0,delegate:{},iceStopWaitingOnServerReflexive:!1,managedSessionFactory:(e,t)=>({session:t,held:!1,muted:!1}),maxSimultaneousSessions:2,media:{},optionsPingInterval:-1,optionsPingRequestURI:"",reconnectionAttempts:3,reconnectionDelay:4,registrationRetry:!1,registrationRetryInterval:3,registerGuard:null,registererOptions:{},registererRegisterOptions:{},sendDTMFUsingSessionDescriptionHandler:!1,userAgentOptions:{}},wn.stripUndefinedProperties(t));const n=Object.assign({},t.userAgentOptions);if(n.transportConstructor||(n.transportConstructor=yn),n.transportOptions||(n.transportOptions={server:e}),!n.uri&&t.aor){const e=bn.makeURI(t.aor);if(!e)throw new Error(`Failed to create valid URI from ${t.aor}`);n.uri=e}if(this.userAgent=new bn(n),this.userAgent.delegate={onConnect:()=>{this.logger.log("Connected"),this.delegate&&this.delegate.onServerConnect&&this.delegate.onServerConnect(),this.shouldBeRegistered&&this.register(),this.options.optionsPingInterval>0&&this.optionsPingStart()},onDisconnect:async e=>{this.logger.log("Disconnected");let t=!1;this.options.optionsPingInterval>0&&(t=this.optionsPingFailure,this.optionsPingFailure=!1,this.optionsPingStop()),this.delegate&&this.delegate.onServerDisconnect&&this.delegate.onServerDisconnect(e),(e||t)&&(this.registerer&&(this.logger.log("Disposing of registerer..."),this.registerer.dispose().catch(e=>{this.logger.debug("Error occurred disposing of registerer after connection with server was lost."),this.logger.debug(e.toString())}),this.registerer=void 0),this.managedSessions.slice().map(e=>e.session).forEach(async e=>{this.logger.log("Disposing of session..."),e.dispose().catch(e=>{this.logger.debug("Error occurred disposing of a session after connection with server was lost."),this.logger.debug(e.toString())})}),this.shouldBeConnected&&this.attemptReconnection())},onInvite:e=>{this.logger.log(`[${e.id}] Received INVITE`);const t=this.options.maxSimultaneousSessions;if(0!==t&&this.managedSessions.length>t)return this.logger.warn(`[${e.id}] Session already in progress, rejecting INVITE...`),void e.reject().then(()=>{this.logger.log(`[${e.id}] Rejected INVITE`)}).catch(t=>{this.logger.error(`[${e.id}] Failed to reject INVITE`),this.logger.error(t.toString())});const n={sessionDescriptionHandlerOptions:{constraints:this.constraints}};this.initSession(e,n),this.delegate&&this.delegate.onCallReceived?this.delegate.onCallReceived(e):(this.logger.warn(`[${e.id}] No handler available, rejecting INVITE...`),e.reject().then(()=>{this.logger.log(`[${e.id}] Rejected INVITE`)}).catch(t=>{this.logger.error(`[${e.id}] Failed to reject INVITE`),this.logger.error(t.toString())}))},onMessage:e=>{e.accept().then(()=>{this.delegate&&this.delegate.onMessageReceived&&this.delegate.onMessageReceived(e)})},onNotify:e=>{e.accept().then(()=>{this.delegate&&this.delegate.onNotificationReceived&&this.delegate.onNotificationReceived(e)})}},this.registererOptions=Object.assign({},t.registererOptions),this.registererRegisterOptions=Object.assign({},t.registererRegisterOptions),this.options.registrationRetry){this.registererRegisterOptions.requestDelegate=this.registererRegisterOptions.requestDelegate||{};const e=this.registererRegisterOptions.requestDelegate.onReject;this.registererRegisterOptions.requestDelegate.onReject=t=>{e&&e(t),this.attemptRegistration()}}this.logger=this.userAgent.getLogger("sip.SessionManager"),window.addEventListener("online",()=>{this.logger.log("Online"),this.shouldBeConnected&&this.connect()}),this.options.autoStop&&window.addEventListener("beforeunload",async()=>{this.shouldBeConnected=!1,this.shouldBeRegistered=!1,this.userAgent.state!==yt.Stopped&&await this.userAgent.stop()})}static stripUndefinedProperties(e){return Object.keys(e).reduce((t,n)=>(void 0!==e[n]&&(t[n]=e[n]),t),{})}getLocalMediaStream(e){const t=e.sessionDescriptionHandler;if(t){if(!(t instanceof mn))throw new Error("Session description handler not instance of web SessionDescriptionHandler");return t.localMediaStream}}getRemoteMediaStream(e){const t=e.sessionDescriptionHandler;if(t){if(!(t instanceof mn))throw new Error("Session description handler not instance of web SessionDescriptionHandler");return t.remoteMediaStream}}getLocalAudioTrack(e){var t;return null===(t=this.getLocalMediaStream(e))||void 0===t?void 0:t.getTracks().find(e=>"audio"===e.kind)}getLocalVideoTrack(e){var t;return null===(t=this.getLocalMediaStream(e))||void 0===t?void 0:t.getTracks().find(e=>"video"===e.kind)}getRemoteAudioTrack(e){var t;return null===(t=this.getRemoteMediaStream(e))||void 0===t?void 0:t.getTracks().find(e=>"audio"===e.kind)}getRemoteVideoTrack(e){var t;return null===(t=this.getRemoteMediaStream(e))||void 0===t?void 0:t.getTracks().find(e=>"video"===e.kind)}async connect(){return this.logger.log("Connecting UserAgent..."),this.shouldBeConnected=!0,this.userAgent.state!==yt.Started?this.userAgent.start():this.userAgent.reconnect()}async disconnect(){return this.logger.log("Disconnecting UserAgent..."),this.userAgent.state===yt.Stopped?Promise.resolve():(this.shouldBeConnected=!1,this.shouldBeRegistered=!1,this.registerer=void 0,this.userAgent.stop())}isConnected(){return this.userAgent.isConnected()}async register(e){return this.logger.log("Registering UserAgent..."),this.shouldBeRegistered=!0,void 0!==e&&(this.registererRegisterOptions=Object.assign({},e)),this.registerer||(this.registerer=new Et(this.userAgent,this.registererOptions),this.registerer.stateChange.addListener(e=>{switch(e){case ht.Initial:break;case ht.Registered:this.delegate&&this.delegate.onRegistered&&this.delegate.onRegistered();break;case ht.Unregistered:this.delegate&&this.delegate.onUnregistered&&this.delegate.onUnregistered(),this.shouldBeRegistered&&this.attemptRegistration();break;case ht.Terminated:break;default:throw new Error("Unknown registerer state.")}})),this.attemptRegistration(!0)}async unregister(e){return this.logger.log("Unregistering UserAgent..."),this.shouldBeRegistered=!1,this.registerer?this.registerer.unregister(e).then(()=>{}):(this.logger.warn("No registerer to unregister."),Promise.resolve())}async call(e,t,n){this.logger.log("Beginning Session...");const r=this.options.maxSimultaneousSessions;if(0!==r&&this.managedSessions.length>r)return Promise.reject(new Error("Maximum number of sessions already exists."));const i=bn.makeURI(e);if(!i)return Promise.reject(new Error(`Failed to create a valid URI from "${e}"`));if(t||(t={}),t.sessionDescriptionHandlerOptions||(t.sessionDescriptionHandlerOptions={}),t.sessionDescriptionHandlerOptions.constraints||(t.sessionDescriptionHandlerOptions.constraints=this.constraints),t.earlyMedia){(n=n||{}).requestDelegate=n.requestDelegate||{};const e=n.requestDelegate.onProgress;n.requestDelegate.onProgress=t=>{183===t.message.statusCode&&this.setupRemoteMedia(o),e&&e(t)}}this.options.iceStopWaitingOnServerReflexive&&(t.delegate=t.delegate||{},t.delegate.onSessionDescriptionHandler=e=>{if(!(e instanceof mn))throw new Error("Session description handler not instance of SessionDescriptionHandler");e.peerConnectionDelegate={onicecandidate:t=>{var n;if("srflx"===(null===(n=t.candidate)||void 0===n?void 0:n.type)){this.logger.log(`[${o.id}] Found srflx ICE candidate, stop waiting...`);e.iceGatheringComplete()}}}});const o=new ut(this.userAgent,i,t);return this.sendInvite(o,t,n).then(()=>o)}async hangup(e){return this.logger.log(`[${e.id}] Hangup...`),this.sessionExists(e)?this.terminate(e):Promise.reject(new Error("Session does not exist."))}async answer(e,t){return this.logger.log(`[${e.id}] Accepting Invitation...`),this.sessionExists(e)?e instanceof ct?(t||(t={}),t.sessionDescriptionHandlerOptions||(t.sessionDescriptionHandlerOptions={}),t.sessionDescriptionHandlerOptions.constraints||(t.sessionDescriptionHandlerOptions.constraints=this.constraints),e.accept(t)):Promise.reject(new Error("Session not instance of Invitation.")):Promise.reject(new Error("Session does not exist."))}async decline(e){return this.logger.log(`[${e.id}] Rejecting Invitation...`),this.sessionExists(e)?e instanceof ct?e.reject():Promise.reject(new Error("Session not instance of Invitation.")):Promise.reject(new Error("Session does not exist."))}async hold(e){return this.logger.log(`[${e.id}] Holding session...`),this.setHold(e,!0)}async unhold(e){return this.logger.log(`[${e.id}] Unholding session...`),this.setHold(e,!1)}isHeld(e){const t=this.sessionManaged(e);return!!t&&t.held}mute(e){this.logger.log(`[${e.id}] Disabling media tracks...`),this.setMute(e,!0)}unmute(e){this.logger.log(`[${e.id}] Enabling media tracks...`),this.setMute(e,!1)}isMuted(e){const t=this.sessionManaged(e);return!!t&&t.muted}async sendDTMF(e,t){if(this.logger.log(`[${e.id}] Sending DTMF...`),!/^[0-9A-D#*,]$/.exec(t))return Promise.reject(new Error("Invalid DTMF tone."));if(!this.sessionExists(e))return Promise.reject(new Error("Session does not exist."));if(this.logger.log(`[${e.id}] Sending DTMF tone: ${t}`),this.options.sendDTMFUsingSessionDescriptionHandler)return e.sessionDescriptionHandler?e.sessionDescriptionHandler.sendDtmf(t)?Promise.resolve():Promise.reject(new Error("Failed to send DTMF")):Promise.reject(new Error("Session desciption handler undefined."));{const n={body:{contentDisposition:"render",contentType:"application/dtmf-relay",content:"Signal="+t+"\r\nDuration="+2e3}};return e.info({requestOptions:n}).then(()=>{})}}async transfer(e,t,n){if(this.logger.log(`[${e.id}] Referring session...`),t instanceof st)return e.refer(t,n).then(()=>{});const r=bn.makeURI(t);return r?e.refer(r,n).then(()=>{}):Promise.reject(new Error(`Failed to create a valid URI from "${t}"`))}async message(e,t){this.logger.log("Sending message...");const n=bn.makeURI(e);return n?new dt(this.userAgent,n,t).message():Promise.reject(new Error(`Failed to create a valid URI from "${e}"`))}get constraints(){let e={audio:!0,video:!1};return this.options.media.constraints&&(e=Object.assign({},this.options.media.constraints)),e}attemptReconnection(e=1){const t=this.options.reconnectionAttempts,n=this.options.reconnectionDelay;this.shouldBeConnected?(this.attemptingReconnection&&this.logger.log("Reconnection attempt already in progress"),e>t?this.logger.log("Reconnection maximum attempts reached"):(1===e?this.logger.log(`Reconnection attempt ${e} of ${t} - trying`):this.logger.log(`Reconnection attempt ${e} of ${t} - trying in ${n} seconds`),this.attemptingReconnection=!0,setTimeout(()=>{if(!this.shouldBeConnected)return this.logger.log(`Reconnection attempt ${e} of ${t} - aborted`),void(this.attemptingReconnection=!1);this.userAgent.reconnect().then(()=>{this.logger.log(`Reconnection attempt ${e} of ${t} - succeeded`),this.attemptingReconnection=!1}).catch(n=>{this.logger.log(`Reconnection attempt ${e} of ${t} - failed`),this.logger.error(n.message),this.attemptingReconnection=!1,this.attemptReconnection(++e)})},1===e?0:1e3*n))):this.logger.log("Should not be connected currently")}attemptRegistration(e=!1){if(this.logger.log("Registration attempt "+(e?"without delay":"")),!this.shouldBeRegistered)return this.logger.log("Should not be registered currently"),Promise.resolve();if(void 0!==this.registrationAttemptTimeout)return this.logger.log("Registration attempt already in progress"),Promise.resolve();const t=()=>this.registerer?this.isConnected()?this.userAgent.state===yt.Stopped?(this.logger.log("User agent stopped"),Promise.resolve()):this.options.registerGuard?this.options.registerGuard().catch(e=>{throw this.logger.log("Register guard rejected will making registration attempt"),e}).then(e=>e||!this.registerer?Promise.resolve():this.registerer.register(this.registererRegisterOptions).then(()=>{})):this.registerer.register(this.registererRegisterOptions).then(()=>{}):(this.logger.log("User agent not connected"),Promise.resolve()):(this.logger.log("Registerer undefined"),Promise.resolve());return new Promise((n,r)=>{this.registrationAttemptTimeout=setTimeout(()=>{t().then(()=>{this.registrationAttemptTimeout=void 0,n()}).catch(e=>{this.registrationAttemptTimeout=void 0,e instanceof fe?n():r(e)})},e?0:(e=>{const t=2*e;return 1e3*(Math.random()*(t-e)+e)})(this.options.registrationRetryInterval))})}cleanupMedia(e){const t=this.sessionManaged(e);if(!t)throw new Error("Managed session does not exist.");t.mediaLocal&&t.mediaLocal.video&&(t.mediaLocal.video.srcObject=null,t.mediaLocal.video.pause()),t.mediaRemote&&(t.mediaRemote.audio&&(t.mediaRemote.audio.srcObject=null,t.mediaRemote.audio.pause()),t.mediaRemote.video&&(t.mediaRemote.video.srcObject=null,t.mediaRemote.video.pause()))}enableReceiverTracks(e,t){if(!this.sessionExists(e))throw new Error("Session does not exist.");const n=e.sessionDescriptionHandler;if(!(n instanceof mn))throw new Error("Session's session description handler not instance of SessionDescriptionHandler.");n.enableReceiverTracks(t)}enableSenderTracks(e,t){if(!this.sessionExists(e))throw new Error("Session does not exist.");const n=e.sessionDescriptionHandler;if(!(n instanceof mn))throw new Error("Session's session description handler not instance of SessionDescriptionHandler.");n.enableSenderTracks(t)}initSession(e,t){this.sessionAdd(e),this.delegate&&this.delegate.onCallCreated&&this.delegate.onCallCreated(e),e.stateChange.addListener(t=>{switch(this.logger.log(`[${e.id}] Session state changed to ${t}`),t){case it.Initial:case it.Establishing:break;case it.Established:this.setupLocalMedia(e),this.setupRemoteMedia(e),this.delegate&&this.delegate.onCallAnswered&&this.delegate.onCallAnswered(e);break;case it.Terminating:case it.Terminated:this.sessionExists(e)&&(this.cleanupMedia(e),this.sessionRemove(e),this.delegate&&this.delegate.onCallHangup&&this.delegate.onCallHangup(e));break;default:throw new Error("Unknown session state.")}}),e.delegate=e.delegate||{},e.delegate.onInfo=t=>{var n;if(void 0===(null===(n=this.delegate)||void 0===n?void 0:n.onCallDTMFReceived))return void t.reject();const r=t.request.getHeader("content-type");if(!r||!/^application\/dtmf-relay/i.exec(r))return void t.reject();const i=t.request.body.split("\r\n",2);if(2!==i.length)return void t.reject();let o;const a=/^(Signal\s*?=\s*?)([0-9A-D#*]{1})(\s)?.*/;if(void 0!==i[0]&&a.test(i[0])&&(o=i[0].replace(a,"$2")),!o)return void t.reject();let s;const l=/^(Duration\s?=\s?)([0-9]{1,4})(\s)?.*/;void 0!==i[1]&&l.test(i[1])&&(s=parseInt(i[1].replace(l,"$2"),10)),s?t.accept().then(()=>{if(this.delegate&&this.delegate.onCallDTMFReceived){if(!o||!s)throw new Error("Tone or duration undefined.");this.delegate.onCallDTMFReceived(e,o,s)}}).catch(e=>{this.logger.error(e.message)}):t.reject()},e.delegate.onRefer=e=>{e.accept().then(()=>this.sendInvite(e.makeInviter(t),t)).catch(e=>{this.logger.error(e.message)})}}optionsPingRun(e,t,n){if(this.options.optionsPingInterval<1)throw new Error("Invalid options ping interval.");this.optionsPingRunning||(this.optionsPingRunning=!0,this.optionsPingTimeout=setTimeout(()=>{this.optionsPingTimeout=void 0;const r=()=>{this.optionsPingFailure=!1,this.optionsPingRunning&&(this.optionsPingRunning=!1,this.optionsPingRun(e,t,n))},i=()=>{this.logger.error("OPTIONS ping failed"),this.optionsPingFailure=!0,this.optionsPingRunning=!1,this.userAgent.transport.disconnect().catch(e=>this.logger.error(e))},o=this.userAgent.userAgentCore,a=o.makeOutgoingRequestMessage("OPTIONS",e,t,n,{});this.optionsPingRequest=o.request(a,{onAccept:()=>{this.optionsPingRequest=void 0,r()},onReject:e=>{this.optionsPingRequest=void 0,408===e.message.statusCode||503===e.message.statusCode?i():r()}})},1e3*this.options.optionsPingInterval))}optionsPingStart(){let e,t,n;if(this.logger.log("OPTIONS pings started"),this.options.optionsPingRequestURI){if(e=bn.makeURI(this.options.optionsPingRequestURI),!e)throw new Error("Failed to create Request URI.");t=this.userAgent.contact.uri.clone(),n=this.userAgent.contact.uri.clone()}else{if(!this.options.aor)return void this.logger.error("You have enabled sending OPTIONS pings and as such you must provide either a) an AOR to register, or b) an RURI to use for the target of the OPTIONS ping requests. ");{const r=bn.makeURI(this.options.aor);if(!r)throw new Error("Failed to create URI.");e=r.clone(),e.user=void 0,t=r.clone(),n=r.clone()}}this.optionsPingRun(e,t,n)}optionsPingStop(){this.logger.log("OPTIONS pings stopped"),this.optionsPingRunning=!1,this.optionsPingFailure=!1,this.optionsPingRequest&&(this.optionsPingRequest.dispose(),this.optionsPingRequest=void 0),this.optionsPingTimeout&&(clearTimeout(this.optionsPingTimeout),this.optionsPingTimeout=void 0)}async sendInvite(e,t,n){return this.initSession(e,t),e.invite(n).then(()=>{this.logger.log(`[${e.id}] Sent INVITE`)})}sessionAdd(e){const t=this.options.managedSessionFactory(this,e);this.managedSessions.push(t)}sessionExists(e){return void 0!==this.sessionManaged(e)}sessionManaged(e){return this.managedSessions.find(t=>t.session.id===e.id)}sessionRemove(e){this.managedSessions=this.managedSessions.filter(t=>t.session.id!==e.id)}async setHold(e,t){if(!this.sessionExists(e))return Promise.reject(new Error("Session does not exist."));if(this.isHeld(e)===t)return Promise.resolve();if(!(e.sessionDescriptionHandler instanceof mn))throw new Error("Session's session description handler not instance of SessionDescriptionHandler.");const n={requestDelegate:{onAccept:()=>{const n=this.sessionManaged(e);void 0!==n&&(n.held=t,this.enableReceiverTracks(e,!n.held),this.enableSenderTracks(e,!n.held&&!n.muted),this.delegate&&this.delegate.onCallHold&&this.delegate.onCallHold(e,n.held))},onReject:()=>{this.logger.warn(`[${e.id}] Re-invite request was rejected`);const n=this.sessionManaged(e);void 0!==n&&(n.held=!t,this.enableReceiverTracks(e,!n.held),this.enableSenderTracks(e,!n.held&&!n.muted),this.delegate&&this.delegate.onCallHold&&this.delegate.onCallHold(e,n.held))}}},r=e.sessionDescriptionHandlerOptionsReInvite;r.hold=t,e.sessionDescriptionHandlerOptionsReInvite=r;const i=this.sessionManaged(e);if(!i)throw new Error("Managed session is undefiend.");return i.held=t,e.invite(n).then(()=>{const t=this.sessionManaged(e);void 0!==t&&(this.enableReceiverTracks(e,!t.held),this.enableSenderTracks(e,!t.held&&!t.muted))}).catch(n=>{throw i.held=!t,n instanceof fe&&this.logger.error(`[${e.id}] A hold request is already in progress.`),n})}setMute(e,t){if(!this.sessionExists(e))return void this.logger.warn(`[${e.id}] A session is required to enabled/disable media tracks`);if(e.state!==it.Established)return void this.logger.warn(`[${e.id}] An established session is required to enable/disable media tracks`);const n=this.sessionManaged(e);void 0!==n&&(n.muted=t,this.enableSenderTracks(e,!n.held&&!n.muted))}setupLocalMedia(e){const t=this.sessionManaged(e);if(!t)throw new Error("Managed session does not exist.");const n="function"==typeof this.options.media.local?this.options.media.local(e):this.options.media.local;t.mediaLocal=n;const r=null==n?void 0:n.video;if(r){const t=this.getLocalMediaStream(e);if(!t)throw new Error("Local media stream undefiend.");r.srcObject=t,r.volume=0,r.play().catch(t=>{this.logger.error(`[${e.id}] Failed to play local media`),this.logger.error(t.message)})}}setupRemoteMedia(e){const t=this.sessionManaged(e);if(!t)throw new Error("Managed session does not exist.");const n="function"==typeof this.options.media.remote?this.options.media.remote(e):this.options.media.remote;t.mediaRemote=n;const r=(null==n?void 0:n.video)||(null==n?void 0:n.audio);if(r){const t=this.getRemoteMediaStream(e);if(!t)throw new Error("Remote media stream undefiend.");r.autoplay=!0,r.srcObject=t,r.play().catch(t=>{this.logger.error(`[${e.id}] Failed to play remote media`),this.logger.error(t.message)}),t.onaddtrack=()=>{this.logger.log("Remote media onaddtrack"),r.load(),r.play().catch(t=>{this.logger.error(`[${e.id}] Failed to play remote media`),this.logger.error(t.message)})}}}async terminate(e){switch(this.logger.log(`[${e.id}] Terminating...`),e.state){case it.Initial:if(e instanceof ut)return e.cancel().then(()=>{this.logger.log(`[${e.id}] Inviter never sent INVITE (canceled)`)});if(e instanceof ct)return e.reject().then(()=>{this.logger.log(`[${e.id}] Invitation rejected (sent 480)`)});throw new Error("Unknown session type.");case it.Establishing:if(e instanceof ut)return e.cancel().then(()=>{this.logger.log(`[${e.id}] Inviter canceled (sent CANCEL)`)});if(e instanceof ct)return e.reject().then(()=>{this.logger.log(`[${e.id}] Invitation rejected (sent 480)`)});throw new Error("Unknown session type.");case it.Established:return e.bye().then(()=>{this.logger.log(`[${e.id}] Session ended (sent BYE)`)});case it.Terminating:case it.Terminated:break;default:throw new Error("Unknown state")}return this.logger.log(`[${e.id}] Terminating in state ${e.state}, no action taken`),Promise.resolve()}}class xn{constructor(e,t={}){this.session=void 0,this.delegate=t.delegate,this.options=Object.assign({},t);const n={aor:this.options.aor,delegate:{onCallAnswered:()=>{var e,t;return null===(t=null===(e=this.delegate)||void 0===e?void 0:e.onCallAnswered)||void 0===t?void 0:t.call(e)},onCallCreated:e=>{var t,n;this.session=e,null===(n=null===(t=this.delegate)||void 0===t?void 0:t.onCallCreated)||void 0===n||n.call(t)},onCallReceived:()=>{var e,t;return null===(t=null===(e=this.delegate)||void 0===e?void 0:e.onCallReceived)||void 0===t?void 0:t.call(e)},onCallHangup:()=>{var e,t;this.session=void 0,(null===(e=this.delegate)||void 0===e?void 0:e.onCallHangup)&&(null===(t=this.delegate)||void 0===t||t.onCallHangup())},onCallHold:(e,t)=>{var n,r;return null===(r=null===(n=this.delegate)||void 0===n?void 0:n.onCallHold)||void 0===r?void 0:r.call(n,t)},onCallDTMFReceived:(e,t,n)=>{var r,i;return null===(i=null===(r=this.delegate)||void 0===r?void 0:r.onCallDTMFReceived)||void 0===i?void 0:i.call(r,t,n)},onMessageReceived:e=>{var t,n;return null===(n=null===(t=this.delegate)||void 0===t?void 0:t.onMessageReceived)||void 0===n?void 0:n.call(t,e.request.body)},onRegistered:()=>{var e,t;return null===(t=null===(e=this.delegate)||void 0===e?void 0:e.onRegistered)||void 0===t?void 0:t.call(e)},onUnregistered:()=>{var e,t;return null===(t=null===(e=this.delegate)||void 0===e?void 0:e.onUnregistered)||void 0===t?void 0:t.call(e)},onServerConnect:()=>{var e,t;return null===(t=null===(e=this.delegate)||void 0===e?void 0:e.onServerConnect)||void 0===t?void 0:t.call(e)},onServerDisconnect:()=>{var e,t;return null===(t=null===(e=this.delegate)||void 0===e?void 0:e.onServerDisconnect)||void 0===t?void 0:t.call(e)}},maxSimultaneousSessions:1,media:this.options.media,reconnectionAttempts:this.options.reconnectionAttempts,reconnectionDelay:this.options.reconnectionDelay,registererOptions:this.options.registererOptions,sendDTMFUsingSessionDescriptionHandler:this.options.sendDTMFUsingSessionDescriptionHandler,userAgentOptions:this.options.userAgentOptions};this.sessionManager=new wn(e,n),this.logger=this.sessionManager.userAgent.getLogger("sip.SimpleUser")}get id(){return this.options.userAgentOptions&&this.options.userAgentOptions.displayName||"Anonymous"}get localMediaStream(){return this.session&&this.sessionManager.getLocalMediaStream(this.session)}get remoteMediaStream(){return this.session&&this.sessionManager.getRemoteMediaStream(this.session)}get localAudioTrack(){return this.session&&this.sessionManager.getLocalAudioTrack(this.session)}get localVideoTrack(){return this.session&&this.sessionManager.getLocalVideoTrack(this.session)}get remoteAudioTrack(){return this.session&&this.sessionManager.getRemoteAudioTrack(this.session)}get remoteVideoTrack(){return this.session&&this.sessionManager.getRemoteVideoTrack(this.session)}connect(){return this.logger.log(`[${this.id}] Connecting UserAgent...`),this.sessionManager.connect()}disconnect(){return this.logger.log(`[${this.id}] Disconnecting UserAgent...`),this.sessionManager.disconnect()}isConnected(){return this.sessionManager.isConnected()}register(e){return this.logger.log(`[${this.id}] Registering UserAgent...`),this.sessionManager.register(e)}unregister(e){return this.logger.log(`[${this.id}] Unregistering UserAgent...`),this.sessionManager.unregister(e)}call(e,t,n){return this.logger.log(`[${this.id}] Beginning Session...`),this.session?Promise.reject(new Error("Session already exists.")):this.sessionManager.call(e,t,n).then(()=>{})}hangup(){return this.logger.log(`[${this.id}] Hangup...`),this.session?this.sessionManager.hangup(this.session).then(()=>{this.session=void 0}):Promise.reject(new Error("Session does not exist."))}answer(e){return this.logger.log(`[${this.id}] Accepting Invitation...`),this.session?this.sessionManager.answer(this.session,e):Promise.reject(new Error("Session does not exist."))}decline(){return this.logger.log(`[${this.id}] rejecting Invitation...`),this.session?this.sessionManager.decline(this.session):Promise.reject(new Error("Session does not exist."))}hold(){return this.logger.log(`[${this.id}] holding session...`),this.session?this.sessionManager.hold(this.session):Promise.reject(new Error("Session does not exist."))}unhold(){return this.logger.log(`[${this.id}] unholding session...`),this.session?this.sessionManager.unhold(this.session):Promise.reject(new Error("Session does not exist."))}isHeld(){return!!this.session&&this.sessionManager.isHeld(this.session)}mute(){return this.logger.log(`[${this.id}] disabling media tracks...`),this.session&&this.sessionManager.mute(this.session)}unmute(){return this.logger.log(`[${this.id}] enabling media tracks...`),this.session&&this.sessionManager.unmute(this.session)}isMuted(){return!!this.session&&this.sessionManager.isMuted(this.session)}sendDTMF(e){return this.logger.log(`[${this.id}] sending DTMF...`),this.session?this.sessionManager.sendDTMF(this.session,e):Promise.reject(new Error("Session does not exist."))}message(e,t){return this.logger.log(`[${this.id}] sending message...`),this.sessionManager.message(e,t)}}function kn(e){let t=e.replace(/\D/g,"");return t.startsWith("55")&&t.length>=12&&(t=t.slice(2)),11===t.length?`(${t.slice(0,2)}) ${t.slice(2,7)}-${t.slice(7)}`:10===t.length?`(${t.slice(0,2)}) ${t.slice(2,6)}-${t.slice(6)}`:9===t.length?`${t.slice(0,5)}-${t.slice(5)}`:8===t.length?`${t.slice(0,4)}-${t.slice(4)}`:e}const Sn="sip_config",Tn="handphone_call_logs",En="sip_manual_disconnect",Cn=(e,t)=>`handphone_contact_${e}@${t}`;let Rn=null;function Pn(){return"undefined"!=typeof crypto&&!!crypto.subtle}async function _n(){if(Rn)return Rn;const e=Uint8Array.from(atob("KsGDVvN8TLscWPFaYwpCR/wdqvCfxuvmeXsO3dNVA4A="),e=>e.charCodeAt(0));return Rn=await crypto.subtle.importKey("raw",e,"AES-GCM",!1,["encrypt","decrypt"]),Rn}async function Dn(e){if(!Pn())return function(e){return`plain:${btoa(unescape(encodeURIComponent(e)))}`}(e);const t=await _n(),n=crypto.getRandomValues(new Uint8Array(12)),r=await crypto.subtle.encrypt({name:"AES-GCM",iv:n},t,(new TextEncoder).encode(e));return`${btoa(String.fromCharCode(...n))}:${btoa(String.fromCharCode(...new Uint8Array(r)))}`}async function In(e){if(e.startsWith("plain:"))return function(e){try{return decodeURIComponent(escape(atob(e.slice(6))))}catch{return null}}(e);try{const[t,n]=e.split(":");if(!t||!n||!Pn())return null;const r=await _n(),i=Uint8Array.from(atob(t),e=>e.charCodeAt(0)),o=Uint8Array.from(atob(n),e=>e.charCodeAt(0)),a=await crypto.subtle.decrypt({name:"AES-GCM",iv:i},r,o);return(new TextDecoder).decode(a)}catch{return null}}const An={async getSipConfig(){try{const e=localStorage.getItem(Sn);if(!e)return{};const t=JSON.parse(e);return t.password&&(t.password=await In(t.password)??""),t}catch{return{}}},async setSipConfig(e){const{password:t,server:n,aor:r,...i}=e,o={...i};if(!o.auth_user&&o.username&&(o.auth_user=o.username),t)o.password=await Dn(t);else try{const e=localStorage.getItem(Sn);if(e){const t=JSON.parse(e);t.password&&(o.password=t.password)}}catch{}localStorage.setItem(Sn,JSON.stringify(o))},buildAor:(e,t)=>e&&t?`sip:${e}@${t}`:null,async mergeConfig(e){const t=await this.getSipConfig(),n=e.server||"",r={...t,...e,server:n},i=this.buildAor(r.username,r.domain);return{...r,...i?{aor:i}:{}}},getCallLogs(){try{const e=localStorage.getItem(Tn);return e?JSON.parse(e):[]}catch{return[]}},addCallLog(e){const t=this.getCallLogs();t.unshift(e);const n=t.slice(0,50);localStorage.setItem(Tn,JSON.stringify(n))},clearCallLogs(){localStorage.removeItem(Tn)},getManualDisconnect:()=>"true"===localStorage.getItem(En),setManualDisconnect(e){e?localStorage.setItem(En,"true"):localStorage.removeItem(En)},getSipContact(e,t){const n=Cn(e,t);return localStorage.getItem(n)},setSipContact(e,t,n){const r=Cn(e,t);localStorage.setItem(r,n)},clearAll(){Object.keys(localStorage).forEach(e=>{(e.startsWith("handphone_")||"sip_config"===e||"sip_manual_disconnect"===e)&&localStorage.removeItem(e)})}};let Nn=null;function Mn(){return Nn&&"closed"!==Nn.state||(Nn=new(window.AudioContext||window.webkitAudioContext)),"suspended"===Nn.state&&Nn.resume(),Nn}function $n(e,t=.3){const n=Mn(),r=n.createGain();r.gain.setValueAtTime(0,n.currentTime),r.connect(n.destination);return{oscillators:e.map(e=>{const t=n.createOscillator();return t.type="sine",t.frequency.setValueAtTime(e,n.currentTime),t.connect(r),t.start(),t}),gainNode:r}}function On({oscillators:e,gainNode:t}){try{t.gain.setValueAtTime(0,Mn().currentTime),e.forEach(e=>{try{e.stop()}catch(t){}}),t.disconnect()}catch(n){}}const jn={1:[697,1209],2:[697,1336],3:[697,1477],4:[770,1209],5:[770,1336],6:[770,1477],7:[852,1209],8:[852,1336],9:[852,1477],"*":[941,1209],0:[941,1336],"#":[941,1477]};let Ln=null,Hn=null;function Fn(e,t=120){Un();const n=jn[e];if(!n)return;const r=Mn();Ln=$n(n,.25),Ln.gainNode.gain.setValueAtTime(.25,r.currentTime),Hn=setTimeout(()=>Un(),t)}function Un(){Hn&&(clearTimeout(Hn),Hn=null),Ln&&(On(Ln),Ln=null)}let zn=null,qn=null;function Vn(){Bn();const e=Mn();zn=$n([440,480],.2);const t=()=>{const t=e.currentTime;zn.gainNode.gain.setValueAtTime(.2,t),zn.gainNode.gain.setValueAtTime(0,t+2)};t(),qn=setInterval(t,6e3)}function Bn(){qn&&(clearInterval(qn),qn=null),zn&&(On(zn),zn=null)}let Wn=null,Yn=null;function Gn(){Yn&&(clearInterval(Yn),Yn=null),Wn&&(On(Wn),Wn=null)}let Kn=null,Qn=null;function Xn(e=!1){Qn&&(clearInterval(Qn),Qn=null),Kn&&(On(Kn),Kn=null)}function Zn(e={},t){const[n,r]=y.useState("disconnected"),[i,o]=y.useState("idle"),[a,s]=y.useState(!1),[l,c]=y.useState(!1),[u,d]=y.useState(null),[h,f]=y.useState(0),[p,g]=y.useState(!1),[m,v]=y.useState("dial"),[b,w]=y.useState(""),[x,k]=y.useState(!1),[S,T]=y.useState(!1),[E,C]=y.useState(""),R=y.useRef(null),P=y.useRef(null),_=y.useRef(null),D=y.useRef(null),I=y.useRef(null),A=y.useRef(null),N=y.useRef(null),M=y.useRef(null),$=y.useRef(null),O=y.useRef(null);y.useEffect(()=>{const e=e=>{const t=R.current;if(t)try{t.unregister()}catch(n){}};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e),I.current&&clearInterval(I.current),A.current&&clearTimeout(A.current),R.current&&R.current.disconnect().catch(()=>{})}},[]);const j=()=>{I.current&&(clearInterval(I.current),I.current=null),f(0)},L=()=>{H(),A.current=setTimeout(()=>{console.warn("[useSip] Call timeout — forcing reset"),F()},6e4)},H=()=>{A.current&&(clearTimeout(A.current),A.current=null)},F=async()=>{var e,t;try{await(null==(e=R.current)?void 0:e.hangup())}catch(n){}try{await(null==(t=R.current)?void 0:t.decline())}catch(n){}_.current=null,D.current=null,o("idle"),d(null),g(!1),v("dial"),s(!1),c(!1),j(),H()},U=async n=>{var i,a;const l={...e,...n},u=l.aor.startsWith("sip:")?l.aor:`sip:${l.aor}`,h={...l,aor:u};r("connecting");const p={aor:h.aor,delegate:{onCallCreated:()=>{var e;_.current=(null==(e=R.current)?void 0:e.session)??null,o("calling"),s(!1),c(!1),Vn(),L()},onCallAnswered:()=>{var e;N.current=Date.now(),_.current=(null==(e=R.current)?void 0:e.session)??null,H(),Bn(),o("active"),f(0),I.current=setInterval(()=>{f(e=>e+1)},1e3),(null==t?void 0:t.current)&&t.current.play().catch(()=>{})},onCallHangup:()=>{const e=N.current?Math.round((Date.now()-N.current)/1e3):0,t=!!$.current,n=!t&&!!M.current&&0===e;(N.current||M.current||$.current)&&An.addCallLog({direction:t?"inbound":"outbound",number:t?$.current:M.current,startedAt:(new Date).toISOString(),duration:e,status:e>0?"answered":t?"missed":"rejected"}),N.current=null,M.current=null,$.current=null,Un(),Bn(),Gn(),Xn(),n&&(!function(){Xn();const e=Mn();Kn=$n([480,620],.2);const t=()=>{const t=e.currentTime;Kn.gainNode.gain.setValueAtTime(.2,t),Kn.gainNode.gain.setValueAtTime(0,t+.5)};t(),Qn=setInterval(t,1e3)}(),setTimeout(()=>Xn(),2e3)),_.current=null,H(),o("idle"),d(null),j(),s(!1),c(!1)},onCallReceived:()=>{var e,t,n,r,i,a,s,l,c;const u=R.current,h=(null==u?void 0:u.session)??(null==u?void 0:u._session)??(null==(e=null==u?void 0:u.sessionManager)?void 0:e.session)??null,f=(null==h?void 0:h.remoteIdentity)??(null==(n=null==(t=null==h?void 0:h.incomingRequestMessage)?void 0:t.from)?void 0:n.uri),p=(null==(r=null==f?void 0:f.uri)?void 0:r.user)||(null==(s=null==(a=null==(i=null==h?void 0:h.incomingRequestMessage)?void 0:i.from)?void 0:a.uri)?void 0:s.user)||null,g=(null==f?void 0:f.displayName)||(null==(c=null==(l=null==h?void 0:h.incomingRequestMessage)?void 0:l.from)?void 0:c.displayName)||p||"Desconhecido";$.current=p,d({from:kn(g)}),o("ringing"),function(){Gn();const e=Mn();Wn=$n([440,480],.35);const t=()=>{const t=e.currentTime;Wn.gainNode.gain.setValueAtTime(.35,t),Wn.gainNode.gain.setValueAtTime(0,t+2)};t(),Yn=setInterval(t,6e3)}(),L()},onCallHold:e=>{c(e)},onRegistered:()=>{r("registered")},onUnregistered:()=>{r("connected")},onServerConnect:()=>{r("connected")},onServerDisconnect:()=>{r("disconnected"),o("idle"),j()}},media:{remote:{audio:(null==t?void 0:t.current)??document.createElement("audio")}},userAgentOptions:{authorizationPassword:h.password||void 0,authorizationUsername:h.auth_user||(null==(i=h.aor.split(":")[1])?void 0:i.split("@")[0])||void 0,contactName:(null==(a=h.aor.split(":")[1])?void 0:a.split("@")[0])||void 0,contactParams:{transport:"wss"},userAgentString:h.system?`Handphone-2.0/${h.system}`:void 0}};try{if(R.current){try{await R.current.unregister(),await R.current.disconnect()}catch(g){}R.current=null}const e=new xn(h.server,p);return R.current=e,await e.connect(),P.current=e.userAgent??null,await e.register(),h}catch(m){throw console.error("[useSip] Connection failed",m),r("disconnected"),m}};return{connectionStatus:n,callStatus:i,isMuted:a,isOnHold:l,incomingCallInfo:u,callDuration:h,transferModal:p,setTransferModal:g,transferStep:m,setTransferStep:v,transferTarget:b,setTransferTarget:w,consultEstablished:x,setConsultEstablished:k,blindTransferModal:S,setBlindTransferModal:T,blindTransferTarget:E,setBlindTransferTarget:C,connect:e=>{if(O.current)return O.current;const t=U(e).finally(()=>{O.current=null});return O.current=t,t},disconnect:async()=>{var e,t;try{await(null==(e=R.current)?void 0:e.unregister()),await(null==(t=R.current)?void 0:t.disconnect())}catch(n){}R.current=null,r("disconnected"),o("idle"),j()},call:async(e,t)=>{if(e.trim()){M.current=e.trim();try{let n=e.trim();n.startsWith("sip:")||(n=t?`sip:${n}@${t}`:`sip:${n}`),o("calling"),s(!1),c(!1),Vn(),L(),await R.current.call(n)}catch(n){throw console.error("[useSip] Call failed",n),o("idle"),Bn(),n}}},hangup:async()=>{var e;try{await(null==(e=R.current)?void 0:e.hangup())}catch(t){throw console.error("[useSip] Hangup failed",t),t}},answer:async()=>{var e;try{Gn(),await(null==(e=R.current)?void 0:e.answer()),d(null)}catch(t){throw console.error("[useSip] Answer failed",t),t}},reject:async()=>{var e;try{Gn(),await(null==(e=R.current)?void 0:e.decline()),d(null),o("idle")}catch(t){throw console.error("[useSip] Reject failed",t),t}},toggleMute:()=>{R.current&&(a?R.current.unmute():R.current.mute(),s(!a))},toggleHold:async()=>{if(R.current)try{l?await R.current.unhold():await R.current.hold()}catch(e){throw console.error("[useSip] Hold failed",e),e}},sendDTMF:async e=>{var t;if("active"!==i)return;Fn(e);const n=(null==(t=R.current)?void 0:t.session)??_.current;if(!n)return void console.error("[useSip] No active session for DTMF");const r=n.sessionDescriptionHandler;if(r&&"function"==typeof r.sendDtmf)try{return void r.sendDtmf(e)}catch(o){console.warn("[useSip] RFC4733 failed, trying SIP INFO")}try{await n.info({requestOptions:{body:{contentDisposition:"render",contentType:"application/dtmf-relay",content:`Signal=${e}\r\nDuration=120`}}})}catch(a){console.error("[useSip] DTMF SIP INFO failed",a)}},openTransfer:async()=>{var e;try{l||await(null==(e=R.current)?void 0:e.hold())}catch(t){}v("dial"),w(""),k(!1),g(!0)},transferDial:async(e,n)=>{var r,i,o;w(e),v("connecting");const a=P.current??(null==(r=R.current)?void 0:r.userAgent)??(null==(o=null==(i=R.current)?void 0:i.sessionManager)?void 0:o.userAgent)??null;if(!a)throw new Error("Não foi possível acessar o UserAgent SIP");try{const r=e.startsWith("sip:")?e:`sip:${e}@${n}`,i=bn.makeURI(r);if(!i)throw new Error("URI inválida: "+r);const o=new ut(a,i,{sessionDescriptionHandlerOptions:{constraints:{audio:!0,video:!1}}});k(!1),o.stateChange.addListener(e=>{var n,r,i;if("Established"===e){k(!0),v("consulting");const e=null==(i=null==(r=null==(n=o.sessionDescriptionHandler)?void 0:n.peerConnection)?void 0:r.getReceivers())?void 0:i.find(e=>{var t;return"audio"===(null==(t=e.track)?void 0:t.kind)});e&&(null==t?void 0:t.current)&&(t.current.srcObject=new MediaStream([e.track]),t.current.play().catch(()=>{}))}"Terminated"===e&&(D.current=null,k(!1),v("dial"))}),D.current=o,await o.invite()}catch(s){throw console.error("[useSip] Consultation dial failed",s),v("dial"),s}},transferExecute:async()=>{var e,t;v("transferring");try{const n=D.current;if(!n)throw new Error("Sessão de consulta não encontrada");const r=(null==(e=R.current)?void 0:e.session)??_.current;if(!r)throw new Error("Sessão original não encontrada");if("Established"!==n.state)throw new Error("A sessão de consulta ainda não está estabelecida");await new Promise((e,t)=>{r.refer(n,{requestDelegate:{onAccept:()=>e(),onReject:()=>t(new Error("REFER rejeitado"))}});setTimeout(e,5e3)}),await n.bye().catch(()=>{}),D.current=null,await(null==(t=R.current)?void 0:t.hangup().catch(()=>{})),g(!1),v("dial")}catch(n){throw console.error("[useSip] Transfer failed",n),v("consulting"),n}},transferCancel:async()=>{var e;try{const e=D.current;e&&("Established"===e.state?await e.bye().catch(()=>{}):await e.cancel().catch(()=>{}))}catch(t){}D.current=null;try{await(null==(e=R.current)?void 0:e.unhold())}catch(t){}g(!1),v("dial")},blindTransfer:async(e,t)=>{var n,r;if(e.trim())try{const i=(null==(n=R.current)?void 0:n.session)??_.current;if(!i)throw new Error("Sessão ativa não encontrada");let o=e.trim();o.startsWith("sip:")||(o=t?`sip:${o}@${t}`:`sip:${o}`);const a=bn.makeURI(o);if(!a)throw new Error("URI inválida");await i.refer(a),T(!1),C(""),await(null==(r=R.current)?void 0:r.hangup().catch(()=>{}))}catch(i){throw console.error("[useSip] Blind transfer failed",i),i}},forceReset:F}}const Jn="handphone_logs",er={addLog(e,t){try{const n=this.getLogs(),r=(new Date).toISOString(),i=t.map(e=>"string"==typeof e?e:e instanceof Error?`${e.name}: ${e.message}`:JSON.stringify(e)).join(" ");n.push({timestamp:r,level:e,message:i});const o=n.slice(-200);localStorage.setItem(Jn,JSON.stringify(o))}catch(n){}},getLogs(){try{const e=localStorage.getItem(Jn);return e?JSON.parse(e):[]}catch{return[]}},clearLogs(){localStorage.removeItem(Jn)},exportLogs(){return this.getLogs().map(e=>`[${e.timestamp}] ${e.level}: ${e.message}`).join("\n")}},tr=["| sip.","sip.Transport","sip.UserAgent"];function nr(e){if(!Array.isArray(e)||0===e.length)return!1;const t=String(e[0]);return tr.some(e=>t.includes(e))}const rr=[{key:"1",sub:""},{key:"2",sub:""},{key:"3",sub:""},{key:"4",sub:""},{key:"5",sub:""},{key:"6",sub:""},{key:"7",sub:""},{key:"8",sub:""},{key:"9",sub:""},{key:"*",sub:""},{key:"0",sub:""},{key:"#",sub:""}];function ir({onPress:e,disabled:t}){return v.jsx("div",{className:"grid grid-cols-3 gap-2 mb-4",children:rr.map(({key:n,sub:r})=>v.jsxs("button",{onClick:()=>e(n),disabled:t,className:"bg-gray-800 hover:bg-gray-700 active:bg-gray-600 disabled:opacity-40 disabled:cursor-not-allowed rounded-[15px] py-3 flex flex-col items-center justify-center transition-colors select-none",children:[v.jsx("span",{className:"text-white text-xl font-light leading-none",children:n}),r&&v.jsx("span",{className:"text-gray-500 text-[9px] tracking-widest mt-0.5",children:r})]},n))})}function or({callStatus:e,isMuted:t,isOnHold:n,onCall:r,onHangup:i,onToggleMute:o,onToggleHold:a,onTransfer:s,onBlindTransfer:l,canCall:c}){const u="active"===e,d="calling"===e||"ringing"===e||u;return v.jsxs("div",{className:"space-y-3 mt-2",children:[v.jsxs("div",{className:"flex items-center justify-center gap-3",children:[v.jsx("button",{onClick:o,disabled:!u,title:t?"Desmutar":"Mutar",className:"w-12 h-12 rounded-full flex items-center justify-center transition-colors disabled:opacity-30 disabled:cursor-not-allowed "+(t?"bg-orange-500 hover:bg-orange-600 text-white":"bg-gray-700 hover:bg-gray-600 text-gray-300"),children:t?v.jsx(X,{className:"w-5 h-5"}):v.jsx(Z,{className:"w-5 h-5"})}),d?v.jsx("button",{onClick:i,title:"Desligar",className:"w-16 h-16 rounded-full bg-red-500 hover:bg-red-600 text-white flex items-center justify-center transition-colors shadow-lg shadow-red-500/30",children:v.jsx(re,{className:"w-7 h-7"})}):v.jsx("button",{onClick:r,disabled:!c,title:"Ligar",className:"w-16 h-16 rounded-full bg-green-500 hover:bg-green-600 disabled:bg-gray-700 disabled:text-gray-500 text-white flex items-center justify-center transition-colors shadow-lg shadow-green-500/30 disabled:shadow-none",children:v.jsx(oe,{className:"w-7 h-7"})}),v.jsx("button",{onClick:a,disabled:!u,title:n?"Retomar":"Colocar em espera",className:"w-12 h-12 rounded-full flex items-center justify-center transition-colors disabled:opacity-30 disabled:cursor-not-allowed "+(n?"bg-blue-500 hover:bg-blue-600 text-white":"bg-gray-700 hover:bg-gray-600 text-gray-300"),children:n?v.jsx(Y,{className:"w-5 h-5"}):v.jsx(W,{className:"w-5 h-5"})})]}),!d&&v.jsxs("p",{className:"text-gray-600 text-[10px] text-center",children:["v","2.3.0"]}),u&&v.jsx("div",{className:"flex justify-center",children:v.jsxs("div",{className:"bg-gray-800 border border-gray-700 rounded-[15px] p-3 w-full",children:[v.jsx("p",{className:"text-gray-400 text-xs uppercase tracking-wider mb-2",children:"Tipo de transferência"}),v.jsxs("div",{className:"flex gap-2",children:[v.jsxs("button",{onClick:s,title:"Transferência assistida",className:"flex items-center gap-2 bg-purple-700 hover:bg-purple-600 text-white rounded-lg px-4 py-2.5 text-sm font-medium transition-colors flex-1",children:[v.jsx(ee,{className:"w-4 h-4"}),"Assistida"]}),v.jsxs("button",{onClick:l,title:"Transferência direta",className:"flex items-center gap-2 bg-blue-700 hover:bg-blue-600 text-white rounded-lg px-4 py-2.5 text-sm font-medium transition-colors flex-1",children:[v.jsx(B,{className:"w-4 h-4"}),"Direta"]})]})]})})]})}function ar({onConnect:e,isConnecting:t,settings:n={},hideHeader:r=!1,onSave:i,onShowLogs:o}){const a=e=>({username:e.username||"",domain:e.domain||"",password:"",auth_user:e.auth_user||e.username||""}),s=e=>!!(e&&e.username&&e.domain),[l,c]=y.useState(()=>s(n)?a(n):a({})),[u,d]=y.useState(!1);y.useEffect(()=>{s(n)||An.getSipConfig().then(e=>{s(e)&&c(a(e))})},[]),y.useEffect(()=>{s(n)&&c(a(n))},[n]);const h=e=>{c({...l,[e.target.name]:e.target.value})};return v.jsxs("div",{className:r?"flex-1":"bg-gray-900 rounded-2xl shadow-2xl border border-gray-800 overflow-hidden",children:[!r&&v.jsxs("div",{className:"bg-gradient-to-r from-blue-600 to-blue-700 p-6 text-center",children:[v.jsx("div",{className:"w-16 h-16 bg-white/20 rounded-full flex items-center justify-center mx-auto mb-3",children:v.jsx(oe,{className:"w-8 h-8 text-white"})}),v.jsx("h1",{className:"text-white text-xl font-bold",children:"WebRTC Softphone"}),v.jsx("p",{className:"text-blue-200 text-sm mt-1",children:"SIP.js powered"})]}),v.jsxs("form",{onSubmit:async t=>{if(t.preventDefault(),!l.username||!l.domain)return;const n=`sip:${l.username}@${l.domain}`;r&&i?(await i({...l,aor:n}),d(!0),setTimeout(()=>d(!1),5e3)):(An.setManualDisconnect(!1),e({...l,aor:n}))},className:"p-6 space-y-5",children:[v.jsxs("div",{className:"flex gap-2",children:[v.jsxs("div",{className:"flex-1",children:[v.jsx("label",{className:"text-gray-400 text-xs font-medium uppercase tracking-wider mb-1 block",children:"Ramal *"}),v.jsx("input",{type:"text",name:"username",value:l.username,onChange:h,placeholder:"850",required:!0,className:"w-full bg-gray-800 border border-gray-700 rounded-lg px-3 py-2.5 text-white text-sm placeholder-gray-500 focus:outline-none focus:border-blue-500 transition-colors"})]}),v.jsxs("div",{className:"flex-[2]",children:[v.jsx("label",{className:"text-gray-400 text-xs font-medium uppercase tracking-wider mb-1 block",children:"Domínio *"}),v.jsx("input",{type:"text",name:"domain",value:l.domain,onChange:h,placeholder:"subdominio.falehandix.com.br",required:!0,className:"w-full bg-gray-800 border border-gray-700 rounded-lg px-3 py-2.5 text-white text-sm placeholder-gray-500 focus:outline-none focus:border-blue-500 transition-colors"})]})]}),v.jsxs("div",{children:[v.jsx("label",{className:"text-gray-400 text-xs font-medium uppercase tracking-wider mb-1 block",children:"Senha"}),v.jsx("input",{type:"password",name:"password",value:l.password,onChange:h,placeholder:"••••••••",className:"w-full bg-gray-800 border border-gray-700 rounded-lg px-3 py-2.5 text-white text-sm placeholder-gray-500 focus:outline-none focus:border-blue-500 transition-colors"})]}),v.jsx("button",{type:"submit",disabled:t||!l.username||!l.domain,className:"w-full text-white font-semibold py-3 rounded-[15px] transition-colors flex items-center justify-center gap-2 mt-2 disabled:bg-gray-700 disabled:text-gray-500 "+(r?"bg-green-600 hover:bg-green-700":"bg-blue-600 hover:bg-blue-700"),children:r?v.jsxs(v.Fragment,{children:[v.jsx(ae,{className:"w-4 h-4"}),"Salvar"]}):t?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),"Conectando..."]}):v.jsxs(v.Fragment,{children:[v.jsx(oe,{className:"w-4 h-4"}),"Conectar"]})}),r&&u&&v.jsx("p",{className:"text-green-400 text-xs text-center mt-1",children:"Configurações salvas com sucesso"}),r&&o&&v.jsx("button",{type:"button",onClick:o,className:"w-full text-gray-400 hover:text-gray-300 text-xs py-2 mt-3 transition-colors",children:"logs"})]})]})}const sr={disconnected:{icon:"phoneOff",color:"text-slate-500"},connecting:{icon:"phone",color:"text-amber-400 animate-pulse"},connected:{icon:"phone",color:"text-amber-400"},registered:{icon:"phone",color:"text-emerald-400"}},lr={idle:null,calling:{color:"text-yellow-400",label:"Chamando..."},ringing:{color:"text-blue-400 animate-pulse",label:"Entrada..."},active:{color:"text-green-400",label:"Em chamada"}};function cr({connectionStatus:e,callStatus:t,callDuration:n,aor:r,onDisconnect:i,onConnect:o}){var a;const s=sr[e]||sr.disconnected,l=lr[t],c=(null==(a=null==r?void 0:r.split("@")[0])?void 0:a.replace("sip:",""))||"",u="phoneOff"===s.icon?re:oe;return v.jsxs("div",{className:"bg-gray-900 border-b border-gray-800 px-4 py-3 flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(u,{className:`w-4 h-4 ${s.color}`}),v.jsx("span",{className:"font-semibold text-white text-sm",children:"Handphone"}),c&&v.jsxs("span",{className:"text-slate-400 text-xs",children:["· ",c]}),l&&v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:`text-xs ${l.color}`,children:["· ",l.label]}),"active"===t&&v.jsx("span",{className:"text-green-400 text-xs font-mono",children:(d=n,`${Math.floor(d/60).toString().padStart(2,"0")}:${(d%60).toString().padStart(2,"0")}`)})]})]}),c&&v.jsx("button",{onClick:"disconnected"===e?o:i,style:{border:"1px solid rgba(156,163,175,0.7)"},className:"text-xs px-3 py-1 rounded-full text-slate-300 hover:text-white transition-colors",children:"disconnected"===e?"Conectar":"Desconectar"})]});var d}const ur=y.createContext({});function dr(e){const t=y.useRef(null);return null===t.current&&(t.current=e()),t.current}const hr=y.createContext(null),fr=y.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class pr extends y.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function gr({children:e,isPresent:t}){const n=y.useId(),r=y.useRef(null),i=y.useRef({width:0,height:0,top:0,left:0}),{nonce:o}=y.useContext(fr);return y.useInsertionEffect(()=>{const{width:e,height:a,top:s,left:l}=i.current;if(t||!r.current||!e||!a)return;r.current.dataset.motionPopId=n;const c=document.createElement("style");return o&&(c.nonce=o),document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${a}px !important;\n top: ${s}px !important;\n left: ${l}px !important;\n }\n `),()=>{document.head.removeChild(c)}},[t]),v.jsx(pr,{isPresent:t,childRef:r,sizeRef:i,children:y.cloneElement(e,{ref:r})})}const mr=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{const s=dr(vr),l=y.useId(),c=y.useCallback(e=>{s.set(e,!0);for(const t of s.values())if(!t)return;r&&r()},[s,r]),u=y.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c,register:e=>(s.set(e,!1),()=>s.delete(e))}),o?[Math.random(),c]:[n,c]);return y.useMemo(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),y.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),"popLayout"===a&&(e=v.jsx(gr,{isPresent:n,children:e})),v.jsx(hr.Provider,{value:u,children:e})};function vr(){return new Map}function yr(e=!0){const t=y.useContext(hr);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=y.useId();y.useEffect(()=>{e&&i(o)},[e]);const a=y.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const br=e=>e.key||"";function wr(e){const t=[];return y.Children.forEach(e,e=>{y.isValidElement(e)&&t.push(e)}),t}const xr="undefined"!=typeof window,kr=xr?y.useLayoutEffect:y.useEffect;var Sr={};const Tr=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:o="sync",propagate:a=!1})=>{const[s,l]=yr(a),c=y.useMemo(()=>wr(e),[e]),u=a&&!s?[]:c.map(br),d=y.useRef(!0),h=y.useRef(c),f=dr(()=>new Map),[p,g]=y.useState(c),[m,b]=y.useState(c);kr(()=>{d.current=!1,h.current=c;for(let e=0;e<m.length;e++){const t=br(m[e]);u.includes(t)?f.delete(t):!0!==f.get(t)&&f.set(t,!1)}},[m,u.length,u.join("-")]);const w=[];if(c!==p){let e=[...c];for(let t=0;t<m.length;t++){const n=m[t],r=br(n);u.includes(r)||(e.splice(t,0,n),w.push(n))}return"wait"===o&&w.length&&(e=w),b(wr(e)),void g(c)}"production"!==Sr.NODE_ENV&&"wait"===o&&m.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.');const{forceRender:x}=y.useContext(ur);return v.jsx(v.Fragment,{children:m.map(e=>{const p=br(e),g=!(a&&!s)&&(c===m||u.includes(p));return v.jsx(mr,{isPresent:g,initial:!(d.current&&!n)&&void 0,custom:g?void 0:t,presenceAffectsLayout:i,mode:o,onExitComplete:g?void 0:()=>{if(!f.has(p))return;f.set(p,!0);let e=!0;f.forEach(t=>{t||(e=!1)}),e&&(null==x||x(),b(h.current),a&&(null==l||l()),r&&r())},children:e},p)})})},Er=e=>e;let Cr=Er,Rr=Er;function Pr(e){let t;return()=>(void 0===t&&(t=e()),t)}"production"!=={}.NODE_ENV&&(Cr=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Rr=(e,t)=>{if(!e)throw new Error(t)});const _r=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},Dr=e=>1e3*e,Ir=e=>e/1e3,Ar=!1;const Nr=["read","resolveKeyframes","update","preRender","render","postRender"];function Mr(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=Nr.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){o.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,i=!1,a=!1)=>{const s=a&&r?t:n;return i&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{a=e,r?i=!0:(r=!0,[t,n]=[n,t],t.forEach(s),t.clear(),r=!1,i&&(i=!1,l.process(e)))}};return l}(o),e),{}),{read:s,resolveKeyframes:l,update:c,preRender:u,render:d,postRender:h}=a,f=()=>{const o=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),c.process(i),u.process(i),d.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(f))};return{schedule:Nr.reduce((t,o)=>{const s=a[o];return t[o]=(t,o=!1,a=!1)=>(n||(n=!0,r=!0,i.isProcessing||e(f)),s.schedule(t,o,a)),t},{}),cancel:e=>{for(let t=0;t<Nr.length;t++)a[Nr[t]].cancel(e)},state:i,steps:a}}const{schedule:$r,cancel:Or,state:jr,steps:Lr}=Mr("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Er,!0),Hr=y.createContext({strict:!1}),Fr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Ur={};for(const Ud in Fr)Ur[Ud]={isEnabled:e=>Fr[Ud].some(t=>!!e[t])};const zr=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function qr(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||zr.has(e)}let Vr=e=>!qr(e);try{(Br=require("@emotion/is-prop-valid").default)&&(Vr=e=>e.startsWith("on")?!qr(e):Br(e))}catch(Fd){}var Br;const Wr=new Set;function Yr(e,t,n){e||Wr.has(t)||(console.warn(t),Wr.add(t))}var Gr={};function Kr(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy((...t)=>("production"!==Gr.NODE_ENV&&Yr(!1,"motion() is deprecated. Use motion.create() instead."),e(...t)),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Qr=y.createContext({});function Xr(e){return"string"==typeof e||Array.isArray(e)}function Zr(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Jr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ei=["initial",...Jr];function ti(e){return Zr(e.animate)||ei.some(t=>Xr(e[t]))}function ni(e){return Boolean(ti(e)||e.variants)}function ri(e){const{initial:t,animate:n}=function(e,t){if(ti(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Xr(t)?t:void 0,animate:Xr(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,y.useContext(Qr));return y.useMemo(()=>({initial:t,animate:n}),[ii(t),ii(n)])}function ii(e){return Array.isArray(e)?e.join(" "):e}const oi=Symbol.for("motionComponentSymbol");function ai(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function si(e,t,n){return y.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):ai(n)&&(n.current=r))},[t])}const li=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ci="data-"+li("framerAppearId"),{schedule:ui}=Mr(queueMicrotask,!1),di=y.createContext({});function hi(e,t,n,r,i){var o,a;const{visualElement:s}=y.useContext(Qr),l=y.useContext(Hr),c=y.useContext(hr),u=y.useContext(fr).reducedMotion,d=y.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:u}));const h=d.current,f=y.useContext(di);!h||h.projection||!i||"html"!==h.type&&"svg"!==h.type||function(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:fi(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:Boolean(a)||s&&ai(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(d.current,n,i,f);const p=y.useRef(!1);y.useInsertionEffect(()=>{h&&p.current&&h.update(n,c)});const g=n[ci],m=y.useRef(Boolean(g)&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,g))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,g)));return kr(()=>{h&&(p.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),ui.render(h.render),m.current&&h.animationState&&h.animationState.animateChanges())}),y.useEffect(()=>{h&&(!m.current&&h.animationState&&h.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)}),m.current=!1))}),h}function fi(e){if(e)return!1!==e.options.allowProjection?e.projection:fi(e.parent)}var pi={};function gi({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;function s(o,a){let s;const l={...y.useContext(fr),...o,layoutId:mi(o)},{isStatic:c}=l,u=ri(o),d=r(o,c);if(!c&&xr){!function(e,t){const n=y.useContext(Hr).strict;if("production"!==pi.NODE_ENV&&t&&n){const t="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Cr(!1,t):Rr(!1,t)}}(l,e);const n=function(e){const{drag:t,layout:n}=Ur;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);s=n.MeasureLayout,u.visualElement=hi(i,d,l,t,n.ProjectionNode)}return v.jsxs(Qr.Provider,{value:u,children:[s&&u.visualElement?v.jsx(s,{visualElement:u.visualElement,...l}):null,n(i,o,si(d,u.visualElement,a),d,c,u.visualElement)]})}e&&function(e){for(const t in e)Ur[t]={...Ur[t],...e[t]}}(e),s.displayName=`motion.${"string"==typeof i?i:`create(${null!==(a=null!==(o=i.displayName)&&void 0!==o?o:i.name)&&void 0!==a?a:""})`}`;const l=y.forwardRef(s);return l[oi]=i,l}function mi({layoutId:e}){const t=y.useContext(ur).id;return t&&void 0!==e?t+"-"+e:e}const vi=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function yi(e){return"string"==typeof e&&!e.includes("-")&&!!(vi.indexOf(e)>-1||/[A-Z]/u.test(e))}function bi(e){const t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function wi(e,t,n,r){if("function"==typeof t){const[i,o]=bi(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[i,o]=bi(r);t=t(void 0!==n?n:e.custom,i,o)}return t}const xi=e=>Array.isArray(e),ki=e=>xi(e)?e[e.length-1]||0:e,Si=e=>Boolean(e&&e.getVelocity);function Ti(e){const t=Si(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Ei=e=>(t,n)=>{const r=y.useContext(Qr),i=y.useContext(hr),o=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:Ci(r,i,o,e),renderState:t()};return n&&(a.onMount=e=>n({props:r,current:e,...a}),a.onUpdate=e=>n(e)),a}(e,t,r,i);return n?o():dr(o)};function Ci(e,t,n,r){const i={},o=r(e,{});for(const h in o)i[h]=Ti(o[h]);let{initial:a,animate:s}=e;const l=ti(e),c=ni(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let u=!!n&&!1===n.initial;u=u||!1===a;const d=u?s:a;if(d&&"boolean"!=typeof d&&!Zr(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=wi(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const r in n){let e=n[r];if(Array.isArray(e)){e=e[u?e.length-1:0]}null!==e&&(i[r]=e)}for(const r in e)i[r]=e[r]}}}return i}const Ri=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Pi=new Set(Ri),_i=e=>t=>"string"==typeof t&&t.startsWith(e),Di=_i("--"),Ii=_i("var(--"),Ai=e=>!!Ii(e)&&Ni.test(e.split("/*")[0].trim()),Ni=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Mi=(e,t)=>t&&"number"==typeof e?t.transform(e):e,$i=(e,t,n)=>n>t?t:n<e?e:n,Oi={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},ji={...Oi,transform:e=>$i(0,1,e)},Li={...Oi,default:1},Hi=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Fi=Hi("deg"),Ui=Hi("%"),zi=Hi("px"),qi=Hi("vh"),Vi=Hi("vw"),Bi={...Ui,parse:e=>Ui.parse(e)/100,transform:e=>Ui.transform(100*e)},Wi={borderWidth:zi,borderTopWidth:zi,borderRightWidth:zi,borderBottomWidth:zi,borderLeftWidth:zi,borderRadius:zi,radius:zi,borderTopLeftRadius:zi,borderTopRightRadius:zi,borderBottomRightRadius:zi,borderBottomLeftRadius:zi,width:zi,maxWidth:zi,height:zi,maxHeight:zi,top:zi,right:zi,bottom:zi,left:zi,padding:zi,paddingTop:zi,paddingRight:zi,paddingBottom:zi,paddingLeft:zi,margin:zi,marginTop:zi,marginRight:zi,marginBottom:zi,marginLeft:zi,backgroundPositionX:zi,backgroundPositionY:zi},Yi={rotate:Fi,rotateX:Fi,rotateY:Fi,rotateZ:Fi,scale:Li,scaleX:Li,scaleY:Li,scaleZ:Li,skew:Fi,skewX:Fi,skewY:Fi,distance:zi,translateX:zi,translateY:zi,translateZ:zi,x:zi,y:zi,z:zi,perspective:zi,transformPerspective:zi,opacity:ji,originX:Bi,originY:Bi,originZ:zi},Gi={...Oi,transform:Math.round},Ki={...Wi,...Yi,zIndex:Gi,size:zi,fillOpacity:ji,strokeOpacity:ji,numOctaves:Gi},Qi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Xi=Ri.length;function Zi(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,s=!1;for(const l in t){const e=t[l];if(Pi.has(l))a=!0;else if(Di(l))i[l]=e;else{const t=Mi(e,Ki[l]);l.startsWith("origin")?(s=!0,o[l]=t):r[l]=t}}if(t.transform||(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<Xi;o++){const a=Ri[o],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=Mi(s,Ki[a]);l||(i=!1,r+=`${Qi[a]||a}(${e}) `),n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}const Ji={offset:"stroke-dashoffset",array:"stroke-dasharray"},eo={offset:"strokeDashoffset",array:"strokeDasharray"};function to(e,t,n){return"string"==typeof e?e:zi.transform(t+n*e)}function no(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},u,d){if(Zi(e,c,d),u)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:h,style:f,dimensions:p}=e;h.transform&&(p&&(f.transform=h.transform),delete h.transform),p&&(void 0!==i||void 0!==o||f.transform)&&(f.transformOrigin=function(e,t,n){return`${to(t,e.x,e.width)} ${to(n,e.y,e.height)}`}(p,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==a&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Ji:eo;e[o.offset]=zi.transform(-r);const a=zi.transform(t),s=zi.transform(n);e[o.array]=`${a} ${s}`}(h,a,s,l,!1)}const ro=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),io=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),oo=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ao(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const so=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function lo(e,t,n,r){ao(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(so.has(i)?i:li(i),t.attrs[i])}const co={};function uo(e,{layout:t,layoutId:n}){return Pi.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!co[e]||"opacity"===e)}function ho(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(Si(i[a])||t.style&&Si(t.style[a])||uo(a,e)||void 0!==(null===(r=null==n?void 0:n.getValue(a))||void 0===r?void 0:r.liveStyle))&&(o[a]=i[a]);return o}function fo(e,t,n){const r=ho(e,t,n);for(const i in e)if(Si(e[i])||Si(t[i])){r[-1!==Ri.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]}return r}const po=["x","y","width","height","cx","cy","r"],go={useVisualState:Ei({scrapeMotionValuesFromProps:fo,createRenderState:io,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o)for(const s in i)if(Pi.has(s)){o=!0;break}if(!o)return;let a=!t;if(t)for(let s=0;s<po.length;s++){const n=po[s];e[n]!==t[n]&&(a=!0)}a&&$r.read(()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(n){t.dimensions={x:0,y:0,width:0,height:0}}}(n,r),$r.render(()=>{no(r,i,oo(n.tagName),e.transformTemplate),lo(n,r)})})}})},mo={useVisualState:Ei({scrapeMotionValuesFromProps:ho,createRenderState:ro})};function vo(e,t,n){for(const r in t)Si(t[r])||uo(r,n)||(e[r]=t[r])}function yo(e,t){const n={};return vo(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return y.useMemo(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return Zi(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}function bo(e,t){const n={},r=yo(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function wo(e,t,n,r){const i=y.useMemo(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return no(n,t,oo(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};vo(t,e.style,e),i.style={...t,...i.style}}return i}function xo(e=!1){return(t,n,r,{latestValues:i},o)=>{const a=(yi(t)?wo:bo)(n,i,o,t),s=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||(Vr(i)||!0===n&&qr(i)||!t&&!qr(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),l=t!==y.Fragment?{...s,...a,ref:r}:{},{children:c}=n,u=y.useMemo(()=>Si(c)?c.get():c,[c]);return y.createElement(t,{...l,children:u})}}function ko(e,t){return function(n,{forwardMotionProps:r}={forwardMotionProps:!1}){return gi({...yi(n)?go:mo,preloadedFeatures:e,useRender:xo(r),createVisualElement:t,Component:n})}}function So(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function To(e,t,n){const r=e.getProps();return wi(r,t,void 0!==n?n:r.custom,e)}const Eo=Pr(()=>void 0!==window.ScrollTimeline);class Co{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map(n=>Eo()&&n.attachTimeline?n.attachTimeline(e):"function"==typeof t?t(n):void 0);return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Ro extends Co{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function Po(e,t){return e?e[t]||e.default||e:void 0}const _o=2e4;function Do(e){let t=0;let n=e.next(t);for(;!n.done&&t<_o;)t+=50,n=e.next(t);return t>=_o?1/0:t}function Io(e){return"function"==typeof e}function Ao(e,t){e.timeline=t,e.onfinish=null}const No=e=>Array.isArray(e)&&"number"==typeof e[0],Mo={linearEasing:void 0};function $o(e,t){const n=Pr(e);return()=>{var e;return null!==(e=Mo[t])&&void 0!==e?e:n()}}const Oo=$o(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),jo=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(_r(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function Lo(e){return Boolean("function"==typeof e&&Oo()||!e||"string"==typeof e&&(e in Fo||Oo())||No(e)||Array.isArray(e)&&e.every(Lo))}const Ho=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Fo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ho([0,.65,.55,1]),circOut:Ho([.55,0,1,.45]),backIn:Ho([.31,.01,.66,-.59]),backOut:Ho([.33,1.53,.69,.99])};function Uo(e,t){return e?"function"==typeof e&&Oo()?jo(e,t):No(e)?Ho(e):Array.isArray(e)?e.map(e=>Uo(e,t)||Fo.easeOut):Fo[e]:void 0}const zo={x:!1,y:!1};function qo(){return zo.x||zo.y}function Vo(e,t){const n=function(e){if(e instanceof Element)return[e];if("string"==typeof e){const t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Bo(e){return t=>{"touch"===t.pointerType||qo()||e(t)}}const Wo=(e,t)=>!!t&&(e===t||Wo(e,t.parentElement)),Yo=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,Go=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const Ko=new WeakSet;function Qo(e){return t=>{"Enter"===t.key&&e(t)}}function Xo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Zo(e){return Yo(e)&&!qo()}function Jo(e,t,n={}){const[r,i,o]=Vo(e,n),a=e=>{const r=e.currentTarget;if(!Zo(e)||Ko.has(r))return;Ko.add(r);const o=t(e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),Zo(e)&&Ko.has(r)&&(Ko.delete(r),"function"==typeof o&&o(e,{success:t}))},s=e=>{a(e,n.useGlobalTarget||Wo(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{(function(e){return Go.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0);(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=Qo(()=>{if(Ko.has(n))return;Xo(n,"down");const e=Qo(()=>{Xo(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>Xo(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i),i)}),o}const ea=new Set(["width","height","top","left","right","bottom",...Ri]);let ta;function na(){ta=void 0}const ra={now:()=>(void 0===ta&&ra.set(jr.isProcessing||Ar?jr.timestamp:performance.now()),ta),set:e=>{ta=e,queueMicrotask(na)}};function ia(e,t){-1===e.indexOf(t)&&e.push(t)}function oa(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class aa{constructor(){this.subscriptions=[]}add(e){return ia(this.subscriptions,e),()=>oa(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function sa(e,t){return t?e*(1e3/t):0}var la={};class ca{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=ra.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=ra.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return"production"!==la.NODE_ENV&&Yr(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new aa);const n=this.events[e].add(t);return"change"===e?()=>{n(),$r.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=ra.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return sa(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ua(e,t){return new ca(e,t)}function da(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ua(n))}function ha(e,t){const n=e.getValue("willChange");if(r=n,Boolean(Si(r)&&r.add))return n.add(t);var r}function fa(e){return e.props[ci]}const pa=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function ga(e,t,n,r){if(e===t&&n===r)return Er;const i=t=>function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=pa(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:pa(i(e),t,r)}const ma=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,va=e=>t=>1-e(1-t),ya=ga(.33,1.53,.69,.99),ba=va(ya),wa=ma(ba),xa=e=>(e*=2)<1?.5*ba(e):.5*(2-Math.pow(2,-10*(e-1))),ka=e=>1-Math.sin(Math.acos(e)),Sa=va(ka),Ta=ma(ka),Ea=e=>/^0[^.\s]+$/u.test(e);function Ca(e){return"number"==typeof e?0===e:null===e||("none"===e||"0"===e||Ea(e))}const Ra=e=>Math.round(1e5*e)/1e5,Pa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const _a=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Da=(e,t)=>n=>Boolean("string"==typeof n&&_a.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ia=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[i,o,a,s]=r.match(Pa);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Aa={...Oi,transform:e=>Math.round((e=>$i(0,255,e))(e))},Na={test:Da("rgb","red"),parse:Ia("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Aa.transform(e)+", "+Aa.transform(t)+", "+Aa.transform(n)+", "+Ra(ji.transform(r))+")"};const Ma={test:Da("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Na.transform},$a={test:Da("hsl","hue"),parse:Ia("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ui.transform(Ra(t))+", "+Ui.transform(Ra(n))+", "+Ra(ji.transform(r))+")"},Oa={test:e=>Na.test(e)||Ma.test(e)||$a.test(e),parse:e=>Na.test(e)?Na.parse(e):$a.test(e)?$a.parse(e):Ma.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Na.transform(e):$a.transform(e)},ja=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const La="number",Ha="color",Fa=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ua(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const a=t.replace(Fa,e=>(Oa.test(e)?(r.color.push(o),i.push(Ha),n.push(Oa.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(La),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function za(e){return Ua(e).values}function qa(e){const{split:t,types:n}=Ua(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){const t=n[o];i+=t===La?Ra(e[o]):t===Ha?Oa.transform(e[o]):e[o]}return i}}const Va=e=>"number"==typeof e?0:e;const Ba={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(Pa))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(ja))||void 0===n?void 0:n.length)||0)>0},parse:za,createTransformer:qa,getAnimatableNone:function(e){const t=za(e);return qa(e)(t.map(Va))}},Wa=new Set(["brightness","contrast","saturate","opacity"]);function Ya(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Pa)||[];if(!r)return e;const i=n.replace(r,"");let o=Wa.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const Ga=/\b([a-z-]*)\(.*?\)/gu,Ka={...Ba,getAnimatableNone:e=>{const t=e.match(Ga);return t?t.map(Ya).join(" "):e}},Qa={...Ki,color:Oa,backgroundColor:Oa,outlineColor:Oa,fill:Oa,stroke:Oa,borderColor:Oa,borderTopColor:Oa,borderRightColor:Oa,borderBottomColor:Oa,borderLeftColor:Oa,filter:Ka,WebkitFilter:Ka},Xa=e=>Qa[e];function Za(e,t){let n=Xa(e);return n!==Ka&&(n=Ba),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ja=new Set(["auto","none","0"]);const es=e=>e===Oi||e===zi,ts=(e,t)=>parseFloat(e.split(", ")[t]),ns=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return ts(i[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?ts(t[1],e):0}},rs=new Set(["x","y","z"]),is=Ri.filter(e=>!rs.has(e));const os={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ns(4,13),y:ns(5,14)};os.translateX=os.x,os.translateY=os.y;const as=new Set;let ss=!1,ls=!1;function cs(){if(ls){const e=Array.from(as).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return is.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ls=!1,ss=!1,as.forEach(e=>e.complete()),as.clear()}function us(){as.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ls=!0)})}class ds{constructor(e,t,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(as.add(this),ss||(ss=!0,$r.read(us),$r.resolveKeyframes(cs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i])if(0===i){const i=null==r?void 0:r.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),as.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,as.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const hs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),fs=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ps(e,t,n=1){Rr(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=function(e){const t=fs.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${null!=n?n:r}`,i]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const e=o.trim();return hs(e)?parseFloat(e):e}return Ai(i)?ps(i,t,n+1):i}const gs=e=>t=>t.test(e),ms=[Oi,zi,Ui,Fi,Vi,qi,{test:e=>"auto"===e,parse:e=>e}],vs=e=>ms.find(gs(e));class ys extends ds{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let s=0;s<e.length;s++){let n=e[s];if("string"==typeof n&&(n=n.trim(),Ai(n))){const r=ps(n,t.current);void 0!==r&&(e[s]=r),s===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!ea.has(n)||2!==e.length)return;const[r,i]=e,o=vs(r),a=vs(i);if(o!==a)if(es(o)&&es(a))for(let s=0;s<e.length;s++){const t=e[s];"string"==typeof t&&(e[s]=parseFloat(t))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let r=0;r<e.length;r++)Ca(e[r])&&n.push(r);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){const t=e[i];"string"==typeof t&&!Ja.has(t)&&Ua(t).values.length&&(r=e[i]),i++}if(r&&n)for(const o of t)e[o]=Za(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=os[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,a=r[o];r[o]=os[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const bs=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Ba.test(e)&&"0"!==e||e.startsWith("url(")));const ws=e=>null!==e;function xs(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(ws),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}class ks{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ra.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(us(),cs()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=ra.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:i,delay:o,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,n,r){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const o=e[e.length-1],a=bs(i,t),s=bs(o,t);return Cr(a===s,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||Io(n))&&r)}(e,n,r,i)){if(!o)return s&&s(xs(e,this.options,t)),a&&a(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Ss=(e,t,n)=>e+(t-e)*n;function Ts(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Es(e,t){return n=>n>0?t:e}const Cs=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Rs=[Ma,Na,$a];function Ps(e){const t=(n=e,Rs.find(e=>e.test(n)));var n;if(Cr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let r=t.parse(e);return t===$a&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Ts(s,r,e+1/3),o=Ts(s,r,e),a=Ts(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(r)),r}const _s=(e,t)=>{const n=Ps(e),r=Ps(t);if(!n||!r)return Es(e,t);const i={...n};return e=>(i.red=Cs(n.red,r.red,e),i.green=Cs(n.green,r.green,e),i.blue=Cs(n.blue,r.blue,e),i.alpha=Ss(n.alpha,r.alpha,e),Na.transform(i))},Ds=(e,t)=>n=>t(e(n)),Is=(...e)=>e.reduce(Ds),As=new Set(["none","hidden"]);function Ns(e,t){return n=>Ss(e,t,n)}function Ms(e){return"number"==typeof e?Ns:"string"==typeof e?Ai(e)?Es:Oa.test(e)?_s:js:Array.isArray(e)?$s:"object"==typeof e?Oa.test(e)?_s:Os:Es}function $s(e,t){const n=[...e],r=n.length,i=e.map((e,n)=>Ms(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Os(e,t){const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Ms(e[i])(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const js=(e,t)=>{const n=Ba.createTransformer(t),r=Ua(e),i=Ua(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?As.has(e)&&!i.values.length||As.has(t)&&!r.values.length?function(e,t){return As.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Is($s(function(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],s=e.indexes[a][i[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[o]=l,i[a]++}return r}(r,i),i.values),n):(Cr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Es(e,t))};function Ls(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Ss(e,t,n);return Ms(e)(e,t)}function Hs(e,t,n){const r=Math.max(t-5,0);return sa(n-e(r),t-r)}const Fs=100,Us=10,zs=1,qs=0,Vs=800,Bs=.3,Ws=.3,Ys={granular:.01,default:2},Gs={granular:.005,default:.5},Ks=.01,Qs=10,Xs=.05,Zs=1,Js=.001;function el({duration:e=Vs,bounce:t=Bs,velocity:n=qs,mass:r=zs}){let i,o;Cr(e<=Dr(Qs),"Spring duration must be 10 seconds or less");let a=1-t;a=$i(Xs,Zs,a),e=$i(Ks,Qs,Ir(e)),a<1?(i=t=>{const r=t*a,i=r*e,o=r-n,s=nl(t,a),l=Math.exp(-i);return Js-o/s*l},o=t=>{const r=t*a*e,o=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=nl(Math.pow(t,2),a);return(-i(t)+Js>0?-1:1)*((o-s)*l)/c}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let i=1;i<tl;i++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=Dr(e),isNaN(s))return{stiffness:Fs,damping:Us,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}const tl=12;function nl(e,t){return e*Math.sqrt(1-t*t)}const rl=["duration","bounce"],il=["stiffness","damping","mass"];function ol(e,t){return t.some(t=>void 0!==e[t])}function al(e=Ws,t=Bs){const n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:o},{stiffness:l,damping:c,mass:u,duration:d,velocity:h,isResolvedFromDuration:f}=function(e){let t={velocity:qs,stiffness:Fs,damping:Us,mass:zs,isResolvedFromDuration:!1,...e};if(!ol(e,il)&&ol(e,rl))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),i=r*r,o=2*$i(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:zs,stiffness:i,damping:o}}else{const n=el(e);t={...t,...n,mass:zs},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Ir(n.velocity||0)}),p=h||0,g=c/(2*Math.sqrt(l*u)),m=a-o,v=Ir(Math.sqrt(l/u)),y=Math.abs(m)<5;let b;if(r||(r=y?Ys.granular:Ys.default),i||(i=y?Gs.granular:Gs.default),g<1){const e=nl(v,g);b=t=>{const n=Math.exp(-g*v*t);return a-n*((p+g*v*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===g)b=e=>a-Math.exp(-v*e)*(m+(p+v*m)*e);else{const e=v*Math.sqrt(g*g-1);b=t=>{const n=Math.exp(-g*v*t),r=Math.min(e*t,300);return a-n*((p+g*v*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}const w={calculatedDuration:f&&d||null,next:e=>{const t=b(e);if(f)s.done=e>=d;else{let n=0;g<1&&(n=0===e?Dr(p):Hs(b,e,t));const o=Math.abs(n)<=r,l=Math.abs(a-t)<=i;s.done=o&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(Do(w),_o),t=jo(t=>w.next(e*t).value,e,30);return e+"ms "+t}};return w}function sl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],h={done:!1,value:d},f=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let p=n*t;const g=d+p,m=void 0===a?g:a(g);m!==g&&(p=m-d);const v=e=>-p*Math.exp(-e/r),y=e=>m+v(e),b=e=>{const t=v(e),n=y(e);h.done=Math.abs(t)<=c,h.value=h.done?m:n};let w,x;const k=e=>{var t;(t=h.value,void 0!==s&&t<s||void 0!==l&&t>l)&&(w=e,x=al({keyframes:[h.value,f(h.value)],velocity:Hs(y,e,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),k(e)),void 0!==w&&e>=w?x.next(e-w):(!t&&b(e),h)}}}const ll=ga(.42,0,1,1),cl=ga(0,0,.58,1),ul=ga(.42,0,.58,1),dl={linear:Er,easeIn:ll,easeInOut:ul,easeOut:cl,circIn:ka,circInOut:Ta,circOut:Sa,backIn:ba,backInOut:wa,backOut:ya,anticipate:xa},hl=e=>{if(No(e)){Rr(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return ga(t,n,r,i)}return"string"==typeof e?(Rr(void 0!==dl[e],`Invalid easing type '${e}'`),dl[e]):e};function fl(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Rr(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],i=n||Ls,o=e.length-1;for(let a=0;a<o;a++){let n=i(e[a],e[a+1]);if(t){const e=Array.isArray(t)?t[a]||Er:t;n=Is(e,n)}r.push(n)}return r}(t,r,i),l=s.length,c=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const i=_r(e[r],e[r+1],n);return s[r](i)};return n?t=>c($i(e[0],e[o-1],t)):c}function pl(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=_r(0,t,r);e.push(Ss(n,1,i))}}(t,e.length-1),t}function gl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(hl):hl(r),o={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:pl(t),e),s=fl(a,t,{ease:Array.isArray(i)?i:(l=t,c=i,l.map(()=>c||ul).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}const ml=e=>{const t=({timestamp:t})=>e(t);return{start:()=>$r.update(t,!0),stop:()=>Or(t),now:()=>jr.isProcessing?jr.timestamp:ra.now()}};var vl={};const yl={decay:sl,inertia:sl,tween:gl,keyframes:gl,spring:al},bl=e=>e/100;class wl extends ks{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:i}=this.options,o=(null==r?void 0:r.KeyframeResolver)||ds;this.resolver=new o(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=Io(t)?t:yl[t]||gl;let s,l;a!==gl&&"number"!=typeof e[0]&&("production"!==vl.NODE_ENV&&Rr(2===e.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),s=Is(bl,Ls(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});"mirror"===i&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===c.calculatedDuration&&(c.calculatedDuration=Do(c));const{calculatedDuration:u}=c,d=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:u,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return i.next(0);const{delay:d,repeat:h,repeatType:f,repeatDelay:p,onUpdate:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const m=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let y=this.currentTime,b=i;if(h){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,h+1);Boolean(t%2)&&("reverse"===f?(n=1-n,p&&(n-=p/u)):"mirror"===f&&(b=o)),y=$i(0,1,n)*u}const w=v?{done:!1,value:s[0]}:b.next(y);a&&(w.value=a(w.value));let{done:x}=w;v||null===l||(x=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return k&&void 0!==r&&(w.value=xs(s,this.options,r)),g&&g(w.value),k&&this.finish(),w}get duration(){const{resolved:e}=this;return e?Ir(e.calculatedDuration):0}get time(){return Ir(this.currentTime)}set time(e){e=Dr(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Ir(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=ml,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const xl=new Set(["opacity","clipPath","filter","transform"]);function kl(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=Uo(s,i);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}const Sl=Pr(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));const Tl={anticipate:xa,backInOut:wa,circInOut:Ta};class El extends ks{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new ys(i,(e,t)=>this.onKeyframesResolved(e,t),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:i,type:o,motionValue:a,name:s,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;var c;if("string"==typeof i&&Oo()&&i in Tl&&(i=Tl[i]),Io((c=this.options).type)||"spring"===c.type||!Lo(c.ease)){const{onComplete:t,onUpdate:a,motionValue:s,element:l,...c}=this.options,u=function(e,t){const n=new wl({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<2e4;)r=n.sample(o),i.push(r.value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,i=u.ease,o="keyframes"}const u=kl(a.owner.current,s,e,{...this.options,duration:n,times:r,ease:i});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(Ao(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;a.set(xs(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:o,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Ir(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Ir(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Dr(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Er;const{animation:n}=t;Ao(n,e)}else this.pendingTimeline=e;return Er}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:i,ease:o,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...c}=this.options,u=new wl({...c,keyframes:n,duration:r,type:i,ease:o,times:a,isGenerator:!0}),d=Dr(this.time);e.setWithVelocity(u.sample(d-10).value,u.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return Sl()&&n&&xl.has(n)&&!s&&!l&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}}const Cl={type:"spring",stiffness:500,damping:25,restSpeed:10},Rl={type:"keyframes",duration:.8},Pl={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_l=(e,{keyframes:t})=>t.length>2?Rl:Pi.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Cl:Pl;const Dl=(e,t,n,r={},i,o)=>a=>{const s=Po(r,e)||{},l=s.delay||r.delay||0;let{elapsed:c=0}=r;c-=Dr(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-c,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:c,...u}){return!!Object.keys(u).length})(s)||(u={...u,..._l(e,u)}),u.duration&&(u.duration=Dr(u.duration)),u.repeatDelay&&(u.repeatDelay=Dr(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(d=!0)),d&&!o&&void 0!==t.get()){const e=xs(u.keyframes,s);if(void 0!==e)return $r.update(()=>{u.onUpdate(e),u.onComplete()}),new Ro([])}return!o&&El.supports(u)?new El(u):new wl(u)};function Il({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function Al(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;r&&(a=r);const c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const d in l){const t=e.getValue(d,null!==(o=e.latestValues[d])&&void 0!==o?o:null),r=l[d];if(void 0===r||u&&Il(u,d))continue;const i={delay:n,...Po(a||{},d)};let s=!1;if(window.MotionHandoffAnimation){const t=fa(e);if(t){const e=window.MotionHandoffAnimation(t,d,$r);null!==e&&(i.startTime=e,s=!0)}}ha(e,d),t.start(Dl(d,t,r,e.shouldReduceMotion&&ea.has(d)?{type:!1}:i,e,s));const h=t.animation;h&&c.push(h)}return s&&Promise.all(c).then(()=>{$r.update(()=>{s&&function(e,t){const n=To(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o)da(e,a,ki(o[a]))}(e,s)})}),c}function Nl(e,t,n={}){var r;const i=To(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(Al(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){const a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Ml).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(Nl(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(()=>t())}return Promise.all([a(),s(n.delay)])}function Ml(e,t){return e.sortNodePosition(t)}const $l=ei.length;function Ol(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Ol(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<$l;n++){const r=ei[n],i=e.props[r];(Xr(i)||!1===i)&&(t[r]=i)}return t}const jl=[...Jr].reverse(),Ll=Jr.length;function Hl(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map(t=>Nl(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=Nl(e,t,n);else{const i="function"==typeof t?To(e,t,n.custom):t;r=Promise.all(Al(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}function Fl(e){let t=Hl(e),n=ql(),r=!0;const i=t=>(n,r)=>{var i;const o=To(e,r,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){const{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function o(o){const{props:a}=e,s=Ol(e.parent)||{},l=[],c=new Set;let u={},d=1/0;for(let t=0;t<Ll;t++){const h=jl[t],f=n[h],p=void 0!==a[h]?a[h]:s[h],g=Xr(p),m=h===o?f.isActive:null;!1===m&&(d=t);let v=p===s[h]&&p!==a[h]&&g;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),f.protectedKeys={...u},!f.isActive&&null===m||!p&&!f.prevProp||Zr(p)||"boolean"==typeof p)continue;const y=Ul(f.prevProp,p);let b=y||h===o&&f.isActive&&!v&&g||t>d&&g,w=!1;const x=Array.isArray(p)?p:[p];let k=x.reduce(i(h),{});!1===m&&(k={});const{prevResolvedValues:S={}}=f,T={...S,...k},E=t=>{b=!0,c.has(t)&&(w=!0,c.delete(t)),f.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in T){const t=k[e],n=S[e];if(u.hasOwnProperty(e))continue;let r=!1;r=xi(t)&&xi(n)?!So(t,n):t!==n,r?null!=t?E(e):c.add(e):void 0!==t&&c.has(e)?E(e):f.protectedKeys[e]=!0}f.prevProp=p,f.prevResolvedValues=k,f.isActive&&(u={...u,...k}),r&&e.blockInitialAnimation&&(b=!1);b&&(!(v&&y)||w)&&l.push(...x.map(e=>({animation:e,options:{type:h}})))}if(c.size){const t={};c.forEach(n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!=r?r:null}),l.push({animation:t})}let h=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(h=!1),r=!1,h?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const a=o(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=ql(),r=!0}}}function Ul(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!So(t,e)}function zl(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ql(){return{animate:zl(!0),whileInView:zl(),whileHover:zl(),whileTap:zl(),whileDrag:zl(),whileFocus:zl(),exit:zl()}}class Vl{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Bl=0;const Wl={animation:{Feature:class extends Vl{constructor(e){super(e),e.animationState||(e.animationState=Fl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Zr(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Vl{constructor(){super(...arguments),this.id=Bl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function Yl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Gl(e){return{point:{x:e.pageX,y:e.pageY}}}function Kl(e,t,n,r){return Yl(e,t,(e=>t=>Yo(t)&&e(t,Gl(t)))(n),r)}const Ql=(e,t)=>Math.abs(e-t);class Xl{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=ec(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Ql(e.x,t.x),r=Ql(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:i}=jr;this.history.push({...r,timestamp:i});const{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Zl(t,this.transformPagePoint),$r.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=ec("pointercancel"===e.type?this.lastMoveEventInfo:Zl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Yo(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const o=Zl(Gl(e),this.transformPagePoint),{point:a}=o,{timestamp:s}=jr;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,ec(o,this.history)),this.removeListeners=Is(Kl(this.contextWindow,"pointermove",this.handlePointerMove),Kl(this.contextWindow,"pointerup",this.handlePointerUp),Kl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Or(this.updatePoint)}}function Zl(e,t){return t?{point:t(e.point)}:e}function Jl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ec({point:e},t){return{point:e,delta:Jl(e,nc(t)),offset:Jl(e,tc(t)),velocity:rc(t,.1)}}function tc(e){return e[0]}function nc(e){return e[e.length-1]}function rc(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=nc(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Dr(t)));)n--;if(!r)return{x:0,y:0};const o=Ir(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ic(e){return e.max-e.min}function oc(e,t,n,r=.5){e.origin=r,e.originPoint=Ss(t.min,t.max,e.origin),e.scale=ic(n)/ic(t),e.translate=Ss(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function ac(e,t,n,r){oc(e.x,t.x,n.x,r?r.originX:void 0),oc(e.y,t.y,n.y,r?r.originY:void 0)}function sc(e,t,n){e.min=n.min+t.min,e.max=e.min+ic(t)}function lc(e,t,n){e.min=t.min-n.min,e.max=e.min+ic(t)}function cc(e,t,n){lc(e.x,t.x,n.x),lc(e.y,t.y,n.y)}function uc(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function dc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const hc=.35;function fc(e,t,n){return{min:pc(e,t),max:pc(e,n)}}function pc(e,t){return"number"==typeof e?e:e[t]||0}const gc=()=>({x:{min:0,max:0},y:{min:0,max:0}});function mc(e){return[e("x"),e("y")]}function vc({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function yc(e){return void 0===e||1===e}function bc({scale:e,scaleX:t,scaleY:n}){return!yc(e)||!yc(t)||!yc(n)}function wc(e){return bc(e)||xc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function xc(e){return kc(e.x)||kc(e.y)}function kc(e){return e&&"0%"!==e}function Sc(e,t,n){return n+t*(e-n)}function Tc(e,t,n,r,i){return void 0!==i&&(e=Sc(e,i,r)),Sc(e,n,r)+t}function Ec(e,t=0,n=1,r,i){e.min=Tc(e.min,t,n,r,i),e.max=Tc(e.max,t,n,r,i)}function Cc(e,{x:t,y:n}){Ec(e.x,t.translate,t.scale,t.originPoint),Ec(e.y,n.translate,n.scale,n.originPoint)}const Rc=.999999999999,Pc=1.0000000000001;function _c(e,t){e.min=e.min+t,e.max=e.max+t}function Dc(e,t,n,r,i=.5){Ec(e,t,n,Ss(e.min,e.max,i),r)}function Ic(e,t){Dc(e.x,t.x,t.scaleX,t.scale,t.originX),Dc(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ac(e,t){return vc(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const Nc=({current:e})=>e?e.ownerDocument.defaultView:null,Mc=new WeakMap;class $c{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Xl(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Gl(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?zo[o]?null:(zo[o]=!0,()=>{zo[o]=!1}):zo.x||zo.y?null:(zo.x=zo.y=!0,()=>{zo.x=zo.y=!1}),!this.openDragLock))return;var o;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),mc(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Ui.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=ic(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&$r.postRender(()=>i(e,t)),ha(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>mc(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Nc(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&$r.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Oc(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Ss(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Ss(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&ai(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:i}){return{x:uc(e.x,n,i),y:uc(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=hc){return!1===e?e=0:!0===e&&(e=hc),{x:fc(e,"left","right"),y:fc(e,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&mc(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!ai(e))return!1;const n=e.current;Rr(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=function(e,t,n){const r=Ac(e,n),{scroll:i}=t;return i&&(_c(r.x,i.offset.x),_c(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:dc(e.x,t.x),y:dc(e.y,t.y)}}(r.layout.layoutBox,i);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=vc(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=mc(a=>{if(!Oc(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return ha(this.visualElement,e),n.start(Dl(e,n,0,t,this.visualElement,!1))}stopAnimation(){mc(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){mc(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){mc(t=>{const{drag:n}=this.getProps();if(!Oc(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-Ss(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!ai(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};mc(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=ic(e),i=ic(t);return i>r?n=_r(t.min,t.max-r,e.min):r>i&&(n=_r(e.min,e.max-i,t.min)),$i(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),mc(t=>{if(!Oc(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(Ss(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;Mc.set(this.visualElement,this);const e=Kl(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();ai(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),$r.read(t);const i=Yl(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(mc(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=hc,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Oc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const jc=e=>(t,n)=>{e&&$r.postRender(()=>e(t,n))};const Lc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Hc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Fc={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!zi.test(e))return e;e=parseFloat(e)}return`${Hc(e,t.target.x)}% ${Hc(e,t.target.y)}%`}},Uc={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Ba.parse(e);if(i.length>5)return r;const o=Ba.createTransformer(e),a="number"!=typeof i[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;const c=Ss(s,l,.5);return"number"==typeof i[2+a]&&(i[2+a]/=c),"number"==typeof i[3+a]&&(i[3+a]/=c),o(i)}};class zc extends y.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;var o;o=Vc,Object.assign(co,o),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Lc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o?(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||$r.postRender(()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ui.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function qc(e){const[t,n]=yr(),r=y.useContext(ur);return v.jsx(zc,{...e,layoutGroup:r,switchLayoutGroup:y.useContext(di),isPresent:t,safeToRemove:n})}const Vc={borderRadius:{...Fc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Fc,borderTopRightRadius:Fc,borderBottomLeftRadius:Fc,borderBottomRightRadius:Fc,boxShadow:Uc};const Bc=(e,t)=>e.depth-t.depth;class Wc{constructor(){this.children=[],this.isDirty=!1}add(e){ia(this.children,e),this.isDirty=!0}remove(e){oa(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bc),this.isDirty=!1,this.children.forEach(e)}}const Yc=["TopLeft","TopRight","BottomLeft","BottomRight"],Gc=Yc.length,Kc=e=>"string"==typeof e?parseFloat(e):e,Qc=e=>"number"==typeof e||zi.test(e);function Xc(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Zc=eu(0,.5,Sa),Jc=eu(.5,.95,Er);function eu(e,t,n){return r=>r<e?0:r>t?1:n(_r(e,t,r))}function tu(e,t){e.min=t.min,e.max=t.max}function nu(e,t){tu(e.x,t.x),tu(e.y,t.y)}function ru(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iu(e,t,n,r,i){return e=Sc(e-=t,1/n,r),void 0!==i&&(e=Sc(e,1/i,r)),e}function ou(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){Ui.test(t)&&(t=parseFloat(t),t=Ss(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=Ss(o.min,o.max,r);e===o&&(s-=t),e.min=iu(e.min,t,n,s,i),e.max=iu(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}const au=["x","scaleX","originX"],su=["y","scaleY","originY"];function lu(e,t,n,r){ou(e.x,t,au,n?n.x:void 0,r?r.x:void 0),ou(e.y,t,su,n?n.y:void 0,r?r.y:void 0)}function cu(e){return 0===e.translate&&1===e.scale}function uu(e){return cu(e.x)&&cu(e.y)}function du(e,t){return e.min===t.min&&e.max===t.max}function hu(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function fu(e,t){return hu(e.x,t.x)&&hu(e.y,t.y)}function pu(e){return ic(e.x)/ic(e.y)}function gu(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class mu{constructor(){this.members=[]}add(e){ia(this.members,e),e.scheduleRender()}remove(e){if(oa(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const vu={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},yu="undefined"!=typeof window&&void 0!==window.MotionDebug,bu=["","X","Y","Z"],wu={visibility:"hidden"};let xu=0;function ku(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Su(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=fa(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",$r,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Su(r)}function Tu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=xu++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,yu&&(vu.totalNodes=vu.resolvedTargetDeltas=vu.recalculatedProjection=0),this.nodes.forEach(Ru),this.nodes.forEach(Mu),this.nodes.forEach($u),this.nodes.forEach(Pu),yu&&window.MotionDebug.record(vu)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new Wc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new aa),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:i,layout:o,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(o||i)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=ra.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Or(r),e(o-t))};return $r.read(r,!0),()=>Or(r)}(r,250),Lc.hasAnimatedSinceResize&&(Lc.hasAnimatedSinceResize=!1,this.nodes.forEach(Nu))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||a.getDefaultTransition()||Uu,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!fu(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...Po(i,"layout"),onPlay:o,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Nu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Or(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ou),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Su(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;i<this.path.length;i++){const e=this.path[i];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Du);this.isUpdating||this.nodes.forEach(Iu),this.isUpdating=!1,this.nodes.forEach(Au),this.nodes.forEach(Eu),this.nodes.forEach(Cu),this.clearAllSnapshots();const e=ra.now();jr.delta=$i(0,1e3/60,e-jr.timestamp),jr.timestamp=e,jr.isProcessing=!0,Lr.update.process(jr),Lr.preRender.process(jr),Lr.render.process(jr),jr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ui.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_u),this.sharedNodes.forEach(ju)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$r.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$r.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!uu(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&(t||wc(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Vu((r=n).x),Vu(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(Wu))){const{scroll:e}=this.root;e&&(_c(n.x,e.offset.x),_c(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(nu(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let r=0;r<this.path.length;r++){const t=this.path[r],{scroll:i,options:o}=t;t!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&nu(n,e),_c(n.x,i.offset.x),_c(n.y,i.offset.y))}return n}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};nu(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&Ic(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),wc(e.latestValues)&&Ic(n,e.latestValues)}return wc(this.latestValues)&&Ic(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};nu(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!wc(e.latestValues))continue;bc(e.latestValues)&&e.updateSnapshot();const r=gc();nu(r,e.measurePageBox()),lu(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return wc(this.latestValues)&&lu(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==jr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:i,layoutId:o}=this.options;if(this.layout&&(i||o)){if(this.resolvedRelativeTargetAt=jr.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},cc(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),nu(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,sc(a.x,s.x,l.x),sc(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):nu(this.target,this.layout.layoutBox),Cc(this.target,this.targetDelta)):nu(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},cc(this.relativeTargetOrigin,this.target,e.target),nu(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}yu&&vu.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!bc(this.parent.latestValues)&&!xc(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===jr.timestamp&&(r=!1),r)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!o)return;nu(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const i=n.length;if(!i)return;let o,a;t.x=t.y=1;for(let s=0;s<i;s++){o=n[s],a=o.projectionDelta;const{visualElement:i}=o.options;i&&i.props.style&&"contents"===i.props.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Ic(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Cc(e,a)),r&&wc(o.latestValues)&&Ic(e,o.latestValues))}t.x<Pc&&t.x>Rc&&(t.x=1),t.y<Pc&&t.y>Rc&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(ru(this.prevProjectionDelta.x,this.projectionDelta.x),ru(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),ac(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&gu(this.projectionDelta.x,this.prevProjectionDelta.x)&&gu(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),yu&&vu.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(s&&!c&&!0===this.options.crossfade&&!this.path.some(Fu));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,h,f,p,g,m;Lu(o.x,e.x,n),Lu(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cc(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,g=a,m=n,Hu(f.x,p.x,g.x,m),Hu(f.y,p.y,g.y,m),d&&(l=this.relativeTarget,h=d,du(l.x,h.x)&&du(l.y,h.y))&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),nu(d,this.relativeTarget)),s&&(this.animationValues=i,function(e,t,n,r,i,o){i?(e.opacity=Ss(0,void 0!==n.opacity?n.opacity:1,Zc(r)),e.opacityExit=Ss(void 0!==t.opacity?t.opacity:1,0,Jc(r))):o&&(e.opacity=Ss(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let a=0;a<Gc;a++){const i=`border${Yc[a]}Radius`;let o=Xc(t,i),s=Xc(n,i);void 0===o&&void 0===s||(o||(o=0),s||(s=0),0===o||0===s||Qc(o)===Qc(s)?(e[i]=Math.max(Ss(Kc(o),Kc(s),r),0),(Ui.test(s)||Ui.test(o))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=Ss(t.rotate||0,n.rotate||0,r))}(i,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Or(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$r.update(()=>{Lc.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Si(e)?e:ua(e);return r.start(Dl("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Bu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=ic(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=ic(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}nu(t,n),Ic(t,i),ac(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new mu);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&ku("z",e,r,this.animationValues);for(let i=0;i<bu.length;i++)ku(`rotate${bu[i]}`,e,r,this.animationValues),ku(`skew${bu[i]}`,e,r,this.animationValues);e.render();for(const i in r)e.setStaticValue(i,r[i]),this.animationValues&&(this.animationValues[i]=r[i]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return wu;const r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Ti(null==e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;const o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Ti(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!wc(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const a=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),i&&(r.transform=i(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=o===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const c in co){if(void 0===a[c])continue;const{correct:e,applyTo:t}=co[c],n="none"===r.transform?a[c]:e(a[c],o);if(t){const e=t.length;for(let i=0;i<e;i++)r[t[i]]=n}else r[c]=n}return this.options.layoutId&&(r.pointerEvents=o===this?Ti(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Du),this.root.sharedNodes.clear()}}}function Eu(e){e.updateLayout()}function Cu(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;"size"===i?mc(e=>{const r=o?n.measuredBox[e]:n.layoutBox[e],i=ic(r);r.min=t[e].min,r.max=r.min+i}):Bu(i,n.layoutBox,t)&&mc(r=>{const i=o?n.measuredBox[r]:n.layoutBox[r],a=ic(t[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};ac(a,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?ac(s,e.applyTransform(r,!0),n.measuredBox):ac(s,t,n.layoutBox);const l=!uu(a);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:o}=r;if(i&&o){const a={x:{min:0,max:0},y:{min:0,max:0}};cc(a,n.layoutBox,i.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};cc(s,t,o.layoutBox),fu(a,s)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ru(e){yu&&vu.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Pu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _u(e){e.clearSnapshot()}function Du(e){e.clearMeasurements()}function Iu(e){e.isLayoutDirty=!1}function Au(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Nu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Mu(e){e.resolveTargetDelta()}function $u(e){e.calcProjection()}function Ou(e){e.resetSkewAndRotation()}function ju(e){e.removeLeadSnapshot()}function Lu(e,t,n){e.translate=Ss(t.translate,0,n),e.scale=Ss(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hu(e,t,n,r){e.min=Ss(t.min,n.min,r),e.max=Ss(t.max,n.max,r)}function Fu(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Uu={duration:.45,ease:[.4,0,.1,1]},zu=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),qu=zu("applewebkit/")&&!zu("chrome/")?Math.round:Er;function Vu(e){e.min=qu(e.min),e.max=qu(e.max)}function Bu(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=pu(t),i=pu(n),o=.2,!(Math.abs(r-i)<=o));var r,i,o}function Wu(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const Yu=Tu({attachResizeListener:(e,t)=>Yl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gu={current:void 0},Ku=Tu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gu.current){const e=new Yu({});e.mount(window),e.setOptions({layoutScroll:!0}),Gu.current=e}return Gu.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Qu={pan:{Feature:class extends Vl{constructor(){super(...arguments),this.removePointerDownListener=Er}onPointerDown(e){this.session=new Xl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Nc(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:jc(e),onStart:jc(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&$r.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Kl(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Vl{constructor(e){super(e),this.removeGroupControls=Er,this.removeListeners=Er,this.controls=new $c(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Er}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ku,MeasureLayout:qc}};function Xu(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const i=r["onHover"+n];i&&$r.postRender(()=>i(t,Gl(t)))}function Zu(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const i=r["onTap"+("End"===n?"":n)];i&&$r.postRender(()=>i(t,Gl(t)))}const Ju=new WeakMap,ed=new WeakMap,td=e=>{const t=Ju.get(e.target);t&&t(e)},nd=e=>{e.forEach(td)};function rd(e,t,n){const r=function({root:e,...t}){const n=e||document;ed.has(n)||ed.set(n,{});const r=ed.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(nd,{root:e,...t})),r[i]}(t);return Ju.set(e,n),r.observe(e),()=>{Ju.delete(e),r.unobserve(e)}}const id={some:0,all:1};const od={inView:{Feature:class extends Vl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:id[r]};return rd(this.node.current,o,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Vl{mount(){const{current:e}=this.node;e&&(this.unmount=Jo(e,e=>(Zu(this.node,e,"Start"),(e,{success:t})=>Zu(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Vl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Is(Yl(this.node.current,"focus",()=>this.onFocus()),Yl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Vl{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,i,o]=Vo(e,n),a=Bo(e=>{const{target:n}=e,r=t(e);if("function"!=typeof r||!n)return;const o=Bo(e=>{r(e),n.removeEventListener("pointerleave",o)});n.addEventListener("pointerleave",o,i)});return r.forEach(e=>{e.addEventListener("pointerenter",a,i)}),o}(e,e=>(Xu(this.node,e,"Start"),e=>Xu(this.node,e,"End"))))}unmount(){}}}},ad={layout:{ProjectionNode:Ku,MeasureLayout:qc}},sd={current:null},ld={current:!1};const cd=[...ms,Oa,Ba],ud=new WeakMap;var dd={};var hd={};const fd=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class pd{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ds,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=ra.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,$r.render(this.render,!1,!0))};const{latestValues:s,renderState:l,onUpdate:c}=o;this.onUpdate=c,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=ti(t),this.isVariantNode=ni(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const h in d){const e=d[h];void 0!==s[h]&&Si(e)&&e.set(s[h],!1)}}mount(e){this.current=e,ud.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),ld.current||function(){if(ld.current=!0,xr)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>sd.current=e.matches;e.addListener(t),t()}else sd.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sd.current),"production"!==hd.NODE_ENV&&Yr(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ud.delete(this.current),this.projection&&this.projection.unmount(),Or(this.notifyUpdate),Or(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=Pi.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&$r.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i(),o&&o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Ur){const t=Ur[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<fd.length;n++){const t=fd[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Si(i))e.addValue(r,i),"development"===dd.NODE_ENV&&Yr("11.18.2"===i.version,`Attempting to mix Motion versions ${i.version} with 11.18.2 may not work as expected.`);else if(Si(o))e.addValue(r,ua(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(r);e.addValue(r,ua(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ua(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var i;return null!=r&&("string"==typeof r&&(hs(r)||Ea(r))?r=parseFloat(r):(i=r,!cd.find(gs(i))&&Ba.test(t)&&(r=Za(e,t))),this.setBaseTarget(e,Si(r)?r.get():r)),Si(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const i=wi(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||Si(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new aa),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class gd extends pd{constructor(){super(...arguments),this.KeyframeResolver=ys}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Si(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class md extends gd{constructor(){super(...arguments),this.type="html",this.renderInstance=ao}readValueFromInstance(e,t){if(Pi.has(t)){const e=Xa(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),i=(Di(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ac(e,t)}build(e,t,n){Zi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return ho(e,t,n)}}class vd extends gd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gc}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Pi.has(t)){const e=Xa(t);return e&&e.default||0}return t=so.has(t)?t:li(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return fo(e,t,n)}build(e,t,n){no(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){lo(e,t,0,r)}mount(e){this.isSVGTag=oo(e.tagName),super.mount(e)}}const yd=Kr(ko({...Wl,...od,...Qu,...ad},(e,t)=>yi(e)?new vd(t):new md(t,{allowProjection:e!==y.Fragment})));function bd({from:e,onAnswer:t,onReject:n}){const r=e;return v.jsxs(yd.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"bg-gradient-to-r from-blue-900 to-blue-800 border-b border-blue-700 px-4 py-4",children:[v.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[v.jsx("div",{className:"w-10 h-10 bg-blue-600 rounded-full flex items-center justify-center",children:v.jsx(ce,{className:"w-5 h-5 text-white"})}),v.jsxs("div",{children:[v.jsx("p",{className:"text-blue-300 text-xs",children:"Chamada recebida"}),v.jsx("p",{className:"text-white font-semibold text-sm truncate max-w-[180px]",children:r})]})]}),v.jsxs("div",{className:"flex gap-3",children:[v.jsxs("button",{onClick:t,className:"flex-1 bg-green-500 hover:bg-green-600 text-white rounded-[15px] py-2.5 flex items-center justify-center gap-2 transition-colors font-medium text-sm",children:[v.jsx(oe,{className:"w-4 h-4"}),"Atender"]}),v.jsxs("button",{onClick:n,className:"flex-1 bg-red-500 hover:bg-red-600 text-white rounded-[15px] py-2.5 flex items-center justify-center gap-2 transition-colors font-medium text-sm",children:[v.jsx(re,{className:"w-4 h-4"}),"Recusar"]})]})]})}function wd({open:e,step:t,consultTarget:n,consultEstablished:r,onDial:i,onTransfer:o,onCancel:a}){const[s,l]=y.useState("");if(!e)return null;const c=()=>{s.trim()&&i(s.trim())};return v.jsx(Tr,{children:v.jsx(yd.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 bg-black/70 flex items-center justify-center z-50 p-4",children:v.jsxs(yd.div,{initial:{scale:.92,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.92,opacity:0},className:"bg-gray-900 border border-gray-700 rounded-[15px] w-full max-w-xs shadow-2xl overflow-hidden",children:[v.jsxs("div",{className:"bg-gradient-to-r from-purple-700 to-purple-600 px-4 py-4 flex items-center gap-3",children:[v.jsx("div",{className:"w-9 h-9 bg-white/20 rounded-full flex items-center justify-center",children:v.jsx(ee,{className:"w-5 h-5 text-white"})}),v.jsxs("div",{className:"flex-1",children:[v.jsx("p",{className:"text-white font-semibold text-sm",children:"Transferência Assistida"}),v.jsxs("p",{className:"text-purple-200 text-xs",children:["dial"===t&&"Informe o destino","connecting"===t&&`Chamando: ${n}...`,"consulting"===t&&`Consultando: ${n}`,"transferring"===t&&"Transferindo..."]})]}),v.jsx("button",{onClick:a,className:"text-purple-200 hover:text-white",children:v.jsx(ue,{className:"w-5 h-5"})})]}),v.jsxs("div",{className:"p-4 space-y-4",children:["dial"===t&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"space-y-1",children:[v.jsx("label",{className:"text-gray-400 text-xs uppercase tracking-wider",children:"Destino da transferência"}),v.jsx("input",{type:"text",value:s,onChange:e=>l(e.target.value),onKeyDown:e=>{"Enter"===e.key?c():/^\d$|[\*\#]/.test(e.key)&&Fn(e.key,80)},placeholder:"Ramal ou número",autoFocus:!0,className:"w-full bg-gray-800 border border-gray-700 rounded-lg px-3 py-2.5 text-white text-sm placeholder-gray-500 focus:outline-none focus:border-purple-500 transition-colors"})]}),v.jsxs("div",{className:"bg-gray-800 rounded-lg p-3 text-xs text-gray-400 space-y-1",children:[v.jsx("p",{className:"text-gray-300 font-medium text-xs",children:"Como funciona:"}),v.jsx("p",{children:"1. A chamada atual entra em espera"}),v.jsx("p",{children:"2. Você liga para o destino"}),v.jsxs("p",{children:["3. Após consultar, clica em ",v.jsx("span",{className:"text-purple-300",children:"Transferir"})]})]}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("button",{onClick:a,className:"flex-1 bg-gray-700 hover:bg-gray-600 text-gray-300 rounded-[15px] py-2.5 text-sm font-medium transition-colors",children:"Cancelar"}),v.jsxs("button",{onClick:c,disabled:!s.trim(),className:"flex-1 bg-purple-600 hover:bg-purple-700 disabled:bg-gray-700 disabled:text-gray-500 text-white rounded-[15px] py-2.5 text-sm font-medium transition-colors flex items-center justify-center gap-2",children:[v.jsx(oe,{className:"w-4 h-4"}),"Consultar"]})]})]}),"connecting"===t&&v.jsxs("div",{className:"flex flex-col items-center gap-3 py-4",children:[v.jsx(Q,{className:"w-8 h-8 text-purple-400 animate-spin"}),v.jsxs("p",{className:"text-gray-300 text-sm",children:["Chamando ",n,"..."]}),v.jsx("button",{onClick:a,className:"mt-2 bg-gray-700 hover:bg-gray-600 text-gray-300 rounded-[15px] px-5 py-2 text-sm font-medium transition-colors",children:"Cancelar"})]}),"consulting"===t&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"bg-gray-800 rounded-[15px] p-4 space-y-2",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"w-2 h-2 bg-green-400 rounded-full animate-pulse"}),v.jsx("span",{className:"text-gray-400 text-xs",children:"Em consulta com"})]}),v.jsx("p",{className:"text-white font-semibold truncate",children:n}),v.jsx("p",{className:"text-gray-500 text-xs",children:"Chamada original em espera"})]}),v.jsxs("p",{className:"text-gray-400 text-xs text-center",children:["Quando pronto, clique em ",v.jsx("span",{className:"text-purple-300",children:"Transferir"})," para conectar as duas chamadas."]}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("button",{onClick:a,className:"flex-1 bg-gray-700 hover:bg-gray-600 text-gray-300 rounded-[15px] py-2.5 text-sm font-medium transition-colors",children:"Cancelar"}),v.jsxs("button",{onClick:o,className:"flex-1 bg-green-600 hover:bg-green-700 text-white rounded-[15px] py-2.5 text-sm font-medium transition-colors flex items-center justify-center gap-2",children:[v.jsx(q,{className:"w-4 h-4"}),"Transferir"]})]})]}),"transferring"===t&&v.jsxs("div",{className:"flex flex-col items-center gap-3 py-4",children:[v.jsx(Q,{className:"w-8 h-8 text-purple-400 animate-spin"}),v.jsx("p",{className:"text-gray-300 text-sm",children:"Executando transferência..."})]})]})]})})})}function xd(e){const t=new Date(e),n=new Date,r=new Date(n.getFullYear(),n.getMonth(),n.getDate()),i=new Date(r);i.setDate(i.getDate()-1);const o=new Date(t.getFullYear(),t.getMonth(),t.getDate()),a=o.getTime()===r.getTime(),s=o.getTime()===i.getTime(),l=t.toLocaleTimeString("pt-BR",{hour:"2-digit",minute:"2-digit"});if(a)return`Hoje ${l}`;if(s)return`Ontem ${l}`;return`${t.toLocaleDateString("pt-BR",{day:"2-digit",month:"2-digit",year:"2-digit"})} ${l}`}function kd({direction:e,status:t}){const n="w-4 h-4";return"missed"===t||"rejected"===t?v.jsx(ne,{className:`${n} text-red-400`}):"inbound"===e?v.jsx(te,{className:`${n} text-green-400`}):v.jsx(ie,{className:`${n} text-blue-400`})}function Sd({onSelect:e,onCallDirect:t,canCall:n}){const r=An.getCallLogs();return r.length?v.jsx("div",{className:"flex-1 overflow-y-auto divide-y divide-gray-800",children:r.map((r,i)=>{return v.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 hover:bg-white/5 transition-colors cursor-pointer",onClick:()=>null==e?void 0:e(r.number),children:[v.jsx(kd,{direction:r.direction,status:r.status}),v.jsxs("div",{className:"flex-1 min-w-0",children:[v.jsx("p",{className:"text-white text-sm truncate font-medium",children:r.number}),v.jsx("p",{className:"text-slate-500 text-xs",children:xd(r.startedAt)})]}),v.jsx("span",{className:"text-slate-500 text-xs whitespace-nowrap mr-1",children:"answered"===r.status?(o=r.duration,`${Math.floor(o/60).toString().padStart(2,"0")}:${(o%60).toString().padStart(2,"0")}`):"missed"===r.status?"Perdida":"Recusada"}),v.jsx("button",{onClick:e=>{e.stopPropagation(),null==t||t(r.number)},disabled:!n,className:"w-7 h-7 bg-emerald-600 hover:bg-emerald-500 disabled:bg-gray-700 disabled:opacity-50 rounded-full flex items-center justify-center flex-shrink-0 transition-colors",title:"Ligar",children:v.jsx(oe,{className:"w-3.5 h-3.5 text-white"})})]},i);var o})}):v.jsx("div",{className:"flex-1 flex items-center justify-center text-slate-500 text-sm",children:"Sem chamadas recentes"})}function Td({onBack:e}){const[t,n]=y.useState(er.getLogs());return v.jsxs("div",{className:"flex flex-col h-full bg-gray-900",children:[v.jsxs("div",{className:"px-4 py-4 border-b border-gray-800 flex items-center justify-between flex-shrink-0",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[e&&v.jsx("button",{onClick:e,className:"text-gray-400 hover:text-white transition-colors p-1",title:"Voltar",children:v.jsx(V,{size:16})}),v.jsxs("h3",{className:"text-white font-semibold text-sm",children:["Logs (",t.length,")"]})]}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("button",{onClick:()=>{n(er.getLogs())},className:"text-gray-400 hover:text-white text-xs px-2 py-1 bg-gray-800 hover:bg-gray-700 rounded transition-colors",children:"Atualizar"}),v.jsxs("button",{onClick:()=>{const e=er.exportLogs();navigator.clipboard.writeText(e).then(()=>{alert("Logs copiados para a área de transferência")})},disabled:0===t.length,className:"text-gray-400 hover:text-white disabled:opacity-40 text-xs px-2 py-1 bg-gray-800 hover:bg-gray-700 rounded transition-colors flex items-center gap-1",children:[v.jsx(K,{size:12}),"Copiar"]}),v.jsx("button",{onClick:()=>{confirm("Tem certeza que deseja limpar todos os logs?")&&(er.clearLogs(),n([]))},disabled:0===t.length,className:"text-gray-400 hover:text-red-400 disabled:opacity-40 text-xs px-2 py-1 bg-gray-800 hover:bg-gray-700 rounded transition-colors flex items-center gap-1",children:v.jsx(le,{size:12})})]})]}),v.jsx("div",{className:"px-4 py-4",children:0===t.length?v.jsx("p",{className:"text-gray-500 text-xs text-center py-8",children:"Nenhum log registrado"}):v.jsx("div",{className:"space-y-2",children:t.map((e,t)=>v.jsxs("div",{className:"text-xs font-mono text-gray-400 break-words",children:[v.jsxs("span",{className:"text-gray-600",children:["[",e.timestamp,"]"]})," ",v.jsx("span",{className:"ERROR"===e.level?"text-red-400":"text-yellow-400",children:e.level}),": ",v.jsx("span",{className:"text-gray-300",children:e.message})]},t))})})]})}function Ed({connectionStatus:e,callStatus:t,isMuted:n,isOnHold:r,incomingCallInfo:i,callDuration:o,dialInput:a,setDialInput:s,dtmfLog:l,transferModal:c,setTransferModal:u,transferStep:d,setTransferStep:h,transferTarget:f,setTransferTarget:p,consultEstablished:g,setConsultEstablished:m,blindTransferModal:b,setBlindTransferModal:w,blindTransferTarget:x,setBlindTransferTarget:k,settings:S,onConnect:T,onDisconnect:E,onCall:C,onHangup:R,onAnswer:P,onReject:_,onToggleMute:D,onToggleHold:I,onDialPadPress:A,onTransfer:N,onBlindTransfer:M,onTransferDial:$,onTransferExecute:O,onTransferCancel:j,onBlindTransferExecute:L,onClose:H,isConnecting:F,onTabChange:U,onCallDirect:z}){const[q,V]=y.useState("dialpad"),B=y.useRef(null);y.useEffect(()=>{"dialpad"===q&&B.current&&B.current.focus()},[q]);const W=e=>{V(e),null==U||U(e)};return v.jsxs("div",{className:"bg-gray-900 flex-1 border-t border-gray-800 relative w-full flex flex-col min-h-0",children:[v.jsx(cr,{connectionStatus:e,callStatus:t,callDuration:o,aor:S.aor,onDisconnect:()=>{An.setManualDisconnect(!0),E()},onConnect:async()=>{const e=await An.mergeConfig({});e&&e.server&&e.username&&e.domain&&e.password&&(An.setManualDisconnect(!1),await T(e),W("dialpad"))}}),v.jsxs("div",{className:"flex gap-0.5 px-3 py-2 bg-gray-900 border-b border-gray-800 flex-shrink-0",children:[v.jsxs("button",{onClick:()=>W("dialpad"),className:"flex-1 flex flex-col items-center gap-0.5 py-1.5 rounded-[15px] text-[10px] font-medium transition-all "+("dialpad"===q?"bg-white/10 text-white":"text-slate-500 hover:text-slate-300 hover:bg-white/5"),children:[v.jsx(oe,{className:"w-3.5 h-3.5"}),"Teclado"]}),v.jsxs("button",{onClick:()=>W("recentes"),className:"flex-1 flex flex-col items-center gap-0.5 py-1.5 rounded-[15px] text-[10px] font-medium transition-all "+("recentes"===q?"bg-white/10 text-white":"text-slate-500 hover:text-slate-300 hover:bg-white/5"),children:[v.jsx(G,{className:"w-3.5 h-3.5"}),"Recentes"]}),v.jsxs("button",{onClick:()=>W("settings"),className:"flex-1 flex flex-col items-center gap-0.5 py-1.5 rounded-[15px] text-[10px] font-medium transition-all "+("settings"===q?"bg-white/10 text-white":"text-slate-500 hover:text-slate-300 hover:bg-white/5"),children:[v.jsx(se,{className:"w-3.5 h-3.5"}),"Config"]})]}),"settings"===q&&v.jsx("div",{className:"flex-1 min-h-0",children:v.jsx(ar,{settings:S,onConnect:e=>{T(e),W("dialpad")},onSave:async e=>{await An.setSipConfig(e)},isConnecting:F,hideHeader:!0,onShowLogs:()=>W("logs")})}),"recentes"===q&&v.jsx("div",{className:"flex-1 overflow-y-auto min-h-0",children:v.jsx(Sd,{onSelect:e=>{s(e??""),W("dialpad")},onCallDirect:e=>{W("dialpad"),null==z||z(e)},canCall:"registered"===e&&"idle"===t})}),"logs"===q&&v.jsx("div",{className:"flex-1 overflow-y-auto min-h-0",children:v.jsx(Td,{onBack:()=>W("settings")})}),"dialpad"===q&&v.jsxs(v.Fragment,{children:[i&&"ringing"===t&&v.jsx(bd,{from:i.from,onAnswer:P,onReject:_}),v.jsxs("div",{className:"px-4 pt-4 pb-2 flex-1 relative",children:[v.jsxs("div",{className:"bg-gray-800 rounded-[15px] px-4 py-3 mb-4 flex items-center gap-2",children:[v.jsx("input",{ref:B,type:"tel",value:a,onChange:e=>s(e.target.value.replace(/[^\d\*\#]/g,"")),onKeyDown:n=>{"Enter"===n.key?a.trim()&&"registered"===e&&"idle"===t&&C():/^\d$|[\*\#]/.test(n.key)&&"active"!==t&&Fn(n.key,80)},placeholder:"Digite o número",className:"flex-1 bg-transparent text-white text-lg outline-none placeholder-gray-500",disabled:"active"===t||"calling"===t,inputMode:"numeric"}),a&&v.jsxs(v.Fragment,{children:[v.jsx("button",{onClick:()=>s(a.slice(0,-1)),disabled:"active"===t||"calling"===t,className:"text-gray-400 hover:text-white disabled:opacity-40 text-xs px-2 py-1 bg-gray-700 hover:bg-gray-600 rounded transition-colors",title:"Backspace",children:"⌫"}),v.jsx("button",{onClick:()=>s(""),disabled:"active"===t||"calling"===t,className:"text-gray-400 hover:text-white disabled:opacity-40 text-sm transition-colors",children:"✕"})]})]}),l&&"active"===t&&v.jsx("div",{className:"text-center text-gray-400 text-sm mb-3 tracking-widest",children:l}),v.jsx(ir,{onPress:A,disabled:"calling"===t||"ringing"===t}),v.jsx(or,{callStatus:t,isMuted:n,isOnHold:r,onCall:C,onHangup:R,onToggleMute:D,onToggleHold:I,onTransfer:N,onBlindTransfer:M,canCall:"registered"===e&&!!a.trim()}),b&&v.jsx("div",{className:"fixed inset-0 bg-black/70 flex items-center justify-center z-50 p-4",children:v.jsxs("div",{className:"bg-gray-900 border border-gray-700 rounded-[15px] w-full max-w-xs shadow-2xl overflow-hidden",children:[v.jsxs("div",{className:"bg-gradient-to-r from-blue-700 to-blue-600 px-4 py-4 flex items-center gap-3",children:[v.jsx("div",{className:"w-9 h-9 bg-white/20 rounded-full flex items-center justify-center",children:v.jsx("svg",{className:"w-5 h-5 text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})})}),v.jsx("p",{className:"text-white font-semibold text-sm",children:"Transferência Cega"})]}),v.jsxs("div",{className:"p-4 space-y-4",children:[v.jsxs("div",{className:"space-y-1",children:[v.jsx("label",{className:"text-gray-400 text-xs uppercase tracking-wider",children:"Destino"}),v.jsx("input",{type:"tel",value:x,onChange:e=>k(e.target.value.replace(/[^\d\*\#]/g,"")),onKeyDown:e=>{"Enter"===e.key?L(x):/^\d$|[\*\#]/.test(e.key)&&Fn(e.key,80)},placeholder:"Ramal ou número",autoFocus:!0,inputMode:"numeric",className:"w-full bg-gray-800 border border-gray-700 rounded-lg px-3 py-2.5 text-white text-sm placeholder-gray-500 focus:outline-none focus:border-blue-500 transition-colors"})]}),v.jsx("p",{className:"text-gray-400 text-xs",children:"A chamada será transferida imediatamente sem consulta prévia."}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("button",{onClick:()=>{w(!1),k("")},className:"flex-1 bg-gray-700 hover:bg-gray-600 text-gray-300 rounded-[15px] py-2.5 text-sm font-medium transition-colors",children:"Cancelar"}),v.jsx("button",{onClick:()=>L(x),disabled:!x.trim(),className:"flex-1 bg-blue-600 hover:bg-blue-700 disabled:bg-gray-700 disabled:text-gray-500 text-white rounded-[15px] py-2.5 text-sm font-medium transition-colors",children:"Transferir"})]})]})]})}),v.jsx(wd,{open:c,step:d,consultTarget:f,consultEstablished:g,onDial:$,onTransfer:O,onCancel:j})]})]})]})}const Cd={registered:"bg-emerald-500",connecting:"bg-amber-500",disconnected:"bg-slate-500",failed:"bg-red-500"},Rd={"bottom-right":"bottom-6 right-6","bottom-left":"bottom-6 left-6","top-right":"top-6 right-6","top-left":"top-6 left-6"};function Pd({config:e,api:t,embedded:n=!1}){y.useEffect(()=>{const e=console.error,t=console.warn,n=console.log;return console.error=function(...t){er.addLog("ERROR",t),nr(t)||e.apply(console,t)},console.warn=function(...e){er.addLog("WARN",e),nr(e)||t.apply(console,e)},console.log=function(...e){nr(e)||n.apply(console,e)},()=>{console.error=e,console.warn=t,console.log=n}},[]);const[r,i]=y.useState(!1),[o,a]=y.useState(""),[s,l]=y.useState(""),[c,u]=y.useState(null),[d,h]=y.useState("dialpad"),[f,p]=y.useState({}),g=b.useRef(null),m=b.useRef(!1),w=b.useRef(0),x=b.useRef("idle"),k=b.useRef(null),S=Zn(f,g),{connectionStatus:T,callStatus:E,isMuted:C,isOnHold:R,incomingCallInfo:P,callDuration:_,transferModal:D,setTransferModal:I,transferStep:A,setTransferStep:N,transferTarget:M,setTransferTarget:$,consultEstablished:O,setConsultEstablished:j,blindTransferModal:L,setBlindTransferModal:H,blindTransferTarget:F,setBlindTransferTarget:U,connect:z,disconnect:q,call:V,hangup:B,answer:W,reject:Y,toggleMute:G,toggleHold:K,sendDTMF:Q,openTransfer:X,transferDial:Z,transferExecute:ee,transferCancel:te,blindTransfer:ne}=S;k.current=V,y.useEffect(()=>{An.mergeConfig(e||{}).then(e=>p(e))},[]),y.useEffect(()=>{r?An.mergeConfig(e||{}).then(e=>p(e)):h("dialpad")},[r,e]),y.useEffect(()=>{P&&"ringing"===E&&!r&&i(!0)},[P,E,r]),y.useEffect(()=>{(async()=>{if(await new Promise(e=>setTimeout(e,0)),"disconnected"===T){const t=await An.mergeConfig(e||{});if(t.username&&t.domain&&t.server&&t.password){An.getManualDisconnect()||(w.current=Date.now(),ie(t))}}})()},[]),y.useEffect(()=>{if("disconnected"===T&&f.username&&f.domain&&f.server&&f.password){!An.getManualDisconnect()&&Date.now()-w.current>5e3&&(w.current=Date.now(),ie(f))}},[T]),y.useEffect(()=>{t.emit("statusChange",T),t.emit("__connectionStatusChange",T)},[T,t]),y.useEffect(()=>{const e=x.current,n=E;x.current=n,t.emit("callStateChange",n),t.emit("__callStatusChange",n),"active"===n&&t.emit("call:start",{direction:"ringing"===e?"inbound":"outbound"}),"active"===e&&"idle"===n&&t.emit("call:end",{}),"ringing"===e&&"idle"===n&&t.emit("call:missed",{})},[E,t]),y.useEffect(()=>{const e=null!==P;t.emit("incomingChange",e),t.emit("__incomingCallChange",P)},[P,t]),y.useEffect(()=>{var e;if(!c)return;const{number:t,auto:n}=c;if(a(t),u(null),!n)return;if("registered"!==T||"idle"!==E)return;const r=null==(e=f.aor)?void 0:e.split("@")[1];r&&k.current(t,r).catch(e=>console.error("[Widget] Auto call failed:",e))},[c]),t._emitter={open:()=>i(!0),close:()=>i(!1),dial:(e,t={})=>{i(!0),u({number:e,auto:Boolean(t.auto)})},answer:W,hangup:B,reject:Y,toggleHold:K,toggleMute:G,blindTransfer:ne,openTransfer:X,transferDial:Z,transferExecute:ee,transferCancel:te};const ie=async e=>{if(!m.current){m.current=!0;try{const t=await z(e);p(t)}catch(t){console.error("[Widget] Connect failed:",t)}finally{m.current=!1}}},ae=(null==e?void 0:e.position)||"bottom-right",se=(null==e?void 0:e.fabStyle)||"round",le=Rd[ae]||Rd["bottom-right"],ce="settings"===d||"logs"===d?"360px":"active"===E?"620px":"520px",de="disconnected"===T||"failed"===T,he="connecting"===T,fe=["calling","ringing","ringing_in","connected","active"].includes(E),pe=null!==P,ge=fe?"bg-blue-600":de?"bg-slate-500":he?"bg-amber-500":"bg-emerald-500",me=fe?J:de?re:oe,ve="pill"===se?v.jsxs("button",{onClick:()=>i(!r),className:`inline-flex items-center gap-2 px-3 h-8 rounded-lg text-white text-xs font-semibold transition-colors ${ge} hover:brightness-110 shadow-lg`,children:[v.jsx(me,{size:14}),v.jsx("span",{children:fe?"Em ligação":de?"Ramal Offline":he?"Conectando...":"Ramal Online"}),pe&&!r&&v.jsx("span",{className:"absolute inset-0 rounded-lg bg-green-400/20 animate-ping"})]}):v.jsxs("button",{onClick:()=>i(!r),className:`relative w-14 h-14 rounded-full flex items-center justify-center ${ge} hover:brightness-110 transition-colors shadow-lg`,children:[v.jsx(me,{size:24,className:"text-white"}),v.jsx("div",{className:`absolute top-0.5 right-0.5 w-3.5 h-3.5 rounded-full border-2 border-white ${Cd[T]||"bg-slate-500"}`}),pe&&!r&&v.jsx("span",{className:"absolute inset-0 rounded-full bg-green-400/20 animate-ping"})]});return v.jsxs(v.Fragment,{children:[v.jsx("audio",{ref:g,autoPlay:!0,playsInline:!0,controls:!1,style:{display:"none"}}),!n&&v.jsx("div",{className:`fixed ${le} z-50 cursor-pointer`,children:ve}),r&&v.jsx("div",{className:"fixed inset-0 z-[9998] bg-black/40 backdrop-blur-sm flex items-center justify-center",onClick:()=>i(!1),children:v.jsxs("div",{className:"relative w-full max-w-sm transition-[height] duration-300 ease-in-out",style:{height:ce,maxHeight:"calc(100vh - 48px)"},onClick:e=>e.stopPropagation(),children:[v.jsx("button",{onClick:()=>i(!1),className:"absolute -top-3 -right-3 w-7 h-7 bg-slate-800 border border-slate-600 rounded-full flex items-center justify-center text-gray-400 hover:text-white transition-colors z-10",children:v.jsx(ue,{size:14})}),v.jsx("div",{className:"rounded-[15px] overflow-hidden flex flex-col h-full",style:{boxShadow:"0 0px 6px 7px rgb(163 161 161 / 15%)"},children:v.jsx(Ed,{connectionStatus:T,callStatus:E,isMuted:C,isOnHold:R,incomingCallInfo:P,callDuration:_,dialInput:o,setDialInput:a,dtmfLog:s,transferModal:D,setTransferModal:I,transferStep:A,setTransferStep:N,transferTarget:M,setTransferTarget:$,consultEstablished:O,setConsultEstablished:j,blindTransferModal:L,setBlindTransferModal:H,blindTransferTarget:F,setBlindTransferTarget:U,settings:f,onConnect:ie,onDisconnect:q,onCall:async()=>{try{if(!f.aor)return void console.error("[Widget] Cannot call: not connected (missing aor)");const e=f.aor.split("@")[1];await V(o,e)}catch(e){console.error("[Widget] Call failed:",e)}},onHangup:B,onAnswer:W,onReject:Y,onToggleMute:G,onToggleHold:K,onDialPadPress:e=>{"active"===E?(l(t=>t+e),Q(e)):(a(t=>t+e),Fn(e,80))},onTransfer:X,onBlindTransfer:()=>H(!0),onTransferDial:e=>{var t;return Z(e,null==(t=f.aor)?void 0:t.split("@")[1])},onTransferExecute:ee,onTransferCancel:te,onTabChange:h,onBlindTransferExecute:e=>{var t;return ne(e,null==(t=f.aor)?void 0:t.split("@")[1])},onCallDirect:e=>{var t;if(!e)return;a(e);const n=null==(t=f.aor)?void 0:t.split("@")[1];n&&V(e,n).catch(e=>console.error("[Widget] Call failed:",e))},onClose:()=>i(!1),isConnecting:"connecting"===T})})]})})]})}const _d={registered:"bg-emerald-500",connecting:"bg-amber-500",disconnected:"bg-slate-500",failed:"bg-red-500"};function Dd({status:e,callStatus:t,hasIncomingCall:n,onClick:r,variant:i="round"}){const o="disconnected"===e||"failed"===e,a="connecting"===e,s=["ringing","ringing_in","connected"].includes(t),l=s?"bg-blue-600":o?"bg-slate-500":a?"bg-amber-500":"bg-emerald-500",c=s?J:o?re:oe;return"pill"===i?v.jsxs("button",{onClick:r,className:`inline-flex items-center gap-2 px-3 h-8 rounded-lg text-white text-xs font-semibold transition-colors ${l} hover:brightness-110 shadow-lg`,children:[v.jsx(c,{size:14}),v.jsx("span",{children:s?"Em ligação":o?"Ramal Offline":a?"Conectando...":"Ramal Online"}),n&&v.jsx("span",{className:"absolute inset-0 rounded-lg bg-green-400/20 animate-ping"})]}):v.jsxs("button",{onClick:r,className:`relative w-14 h-14 rounded-full flex items-center justify-center ${l} hover:brightness-110 transition-colors shadow-lg`,children:[v.jsx(c,{size:24,className:"text-white"}),v.jsx("div",{className:`absolute top-0.5 right-0.5 w-3.5 h-3.5 rounded-full border-2 border-white ${_d[e]||"bg-slate-500"}`}),n&&v.jsx("span",{className:"absolute inset-0 rounded-full bg-green-400/20 animate-ping"})]})}const Id={};let Ad=null,Nd=null,Md=null;const $d={statusChange:()=>Ad,callStateChange:()=>Nd,incomingChange:()=>Md},Od={open(){var e;null==(e=Od._emitter)||e.open()},close(){var e;null==(e=Od._emitter)||e.close()},dial(e,t={}){var n;null==(n=Od._emitter)||n.dial(e,t)},answer(){var e;null==(e=Od._emitter)||e.answer()},hangup(){var e;null==(e=Od._emitter)||e.hangup()},reject(){var e;null==(e=Od._emitter)||e.reject()},toggleHold(){var e;null==(e=Od._emitter)||e.toggleHold()},toggleMute(){var e;null==(e=Od._emitter)||e.toggleMute()},blindTransfer(e){var t;null==(t=Od._emitter)||t.blindTransfer(e)},openTransfer(){var e;null==(e=Od._emitter)||e.openTransfer()},transferDial(e){var t;null==(t=Od._emitter)||t.transferDial(e)},transferExecute(){var e;null==(e=Od._emitter)||e.transferExecute()},transferCancel(){var e;null==(e=Od._emitter)||e.transferCancel()},on(e,t){var n;(Id[e]??(Id[e]=[])).push(t);const r=null==(n=$d[e])?void 0:n.call($d);if(null!=r)try{t(r)}catch(i){}},off(e,t){Id[e]&&(Id[e]=Id[e].filter(e=>e!==t))},emit(e,t){var n;"statusChange"===e&&(Ad=t),"callStateChange"===e&&(Nd=t),"incomingChange"===e&&(Md=t),null==(n=Id[e])||n.forEach(e=>{try{e(t)}catch(n){}})},get status(){return Ad},_emitter:null};function jd(e,t){const n=document.createElement("div");n.style.cssText=e,t.appendChild(n);const r=n.attachShadow({mode:"open"}),i=document.createElement("style");i.textContent='*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:host{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%;--radius: .5rem;--sidebar-background: 0 0% 98%;--sidebar-foreground: 240 5.3% 26.1%;--sidebar-primary: 240 5.9% 10%;--sidebar-primary-foreground: 0 0% 98%;--sidebar-accent: 240 4.8% 95.9%;--sidebar-accent-foreground: 240 5.9% 10%;--sidebar-border: 220 13% 91%;--sidebar-ring: 217.2 91.2% 59.8%}:host(.dark){--background: 0 0% 3.9%;--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--ring: 0 0% 83.1%;--chart-1: 220 70% 50%;--chart-2: 160 60% 45%;--chart-3: 30 80% 55%;--chart-4: 280 65% 60%;--chart-5: 340 75% 55%;--sidebar-background: 240 5.9% 10%;--sidebar-foreground: 240 4.8% 95.9%;--sidebar-primary: 224.3 76.3% 48%;--sidebar-primary-foreground: 0 0% 100%;--sidebar-accent: 240 3.7% 15.9%;--sidebar-accent-foreground: 240 4.8% 95.9%;--sidebar-border: 240 3.7% 15.9%;--sidebar-ring: 217.2 91.2% 59.8%}:host *{border-color:hsl(var(--border));outline-color:hsl(var(--ring) / .5)}:host{color:hsl(var(--foreground))}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-right-3{right:-.75rem}.-top-12{top:-3rem}.-top-3{top:-.75rem}.bottom-0{bottom:0}.bottom-6{bottom:1.5rem}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.left-2{left:.5rem}.left-6{left:1.5rem}.left-\\[50\\%\\]{left:50%}.right-0{right:0}.right-0\\.5{right:.125rem}.right-1{right:.25rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-6{right:1.5rem}.top-0{top:0}.top-0\\.5{top:.125rem}.top-1\\.5{top:.375rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.top-3\\.5{top:.875rem}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[1px\\]{top:1px}.top-\\[50\\%\\]{top:50%}.top-\\[60\\%\\]{top:60%}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.z-\\[100\\]{z-index:100}.z-\\[1\\]{z-index:1}.z-\\[9998\\]{z-index:9998}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3\\.5{margin-left:.875rem;margin-right:.875rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-auto{margin-top:auto}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.size-4{width:1rem;height:1rem}.h-1\\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\\.5{height:.625rem}.h-3{height:.75rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\\[1px\\]{height:1px}.h-\\[var\\(--radix-navigation-menu-viewport-height\\)\\]{height:var(--radix-navigation-menu-viewport-height)}.h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-96{max-height:24rem}.max-h-\\[300px\\]{max-height:300px}.max-h-screen{max-height:100vh}.min-h-0{min-height:0px}.min-h-\\[60px\\]{min-height:60px}.min-h-svh{min-height:100svh}.w-0{width:0px}.w-1{width:.25rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\\.5{width:.625rem}.w-3{width:.75rem}.w-3\\.5{width:.875rem}.w-3\\/4{width:75%}.w-4{width:1rem}.w-5{width:1.25rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\\[--sidebar-width\\]{width:var(--sidebar-width)}.w-\\[100px\\]{width:100px}.w-\\[1px\\]{width:1px}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-10{min-width:2.5rem}.min-w-5{min-width:1.25rem}.min-w-8{min-width:2rem}.min-w-9{min-width:2.25rem}.min-w-\\[12rem\\]{min-width:12rem}.min-w-\\[8rem\\]{min-width:8rem}.min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.max-w-\\[--skeleton-width\\]{max-width:var(--skeleton-width)}.max-w-\\[180px\\]{max-width:180px}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-\\[2\\]{flex:2}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-px{--tw-translate-x: -1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-px{--tw-translate-x: 1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.list-none{list-style-type:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-800>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(31 41 55 / var(--tw-divide-opacity, 1))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[15px\\]{border-radius:15px}.rounded-\\[2px\\]{border-radius:2px}.rounded-\\[inherit\\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-t-\\[10px\\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-\\[1\\.5px\\]{border-width:1.5px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\\[--color-border\\]{border-color:var(--color-border)}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(29 78 216 / var(--tw-border-opacity, 1))}.border-border\\/50{border-color:hsl(var(--border) / .5)}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\\/50{border-color:hsl(var(--destructive) / .5)}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-primary{border-color:hsl(var(--primary))}.border-primary\\/50{border-color:hsl(var(--primary) / .5)}.border-sidebar-border{border-color:hsl(var(--sidebar-border))}.border-slate-600{--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-white\\/30{border-color:#ffffff4d}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.border-t-white{--tw-border-opacity: 1;border-top-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.bg-\\[--color-bg\\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-black\\/40{background-color:#0006}.bg-black\\/70{background-color:#000000b3}.bg-black\\/80{background-color:#000c}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-foreground{background-color:hsl(var(--foreground))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.bg-green-400\\/20{background-color:#4ade8033}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted\\/50{background-color:hsl(var(--muted) / .5)}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\\/20{background-color:hsl(var(--primary) / .2)}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-sidebar{background-color:hsl(var(--sidebar-background))}.bg-sidebar-border{background-color:hsl(var(--sidebar-border))}.bg-slate-500{--tw-bg-opacity: 1;background-color:rgb(100 116 139 / var(--tw-bg-opacity, 1))}.bg-slate-800{--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white\\/10{background-color:#ffffff1a}.bg-white\\/20{background-color:#fff3}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-600{--tw-gradient-from: #2563eb var(--tw-gradient-from-position);--tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-700{--tw-gradient-from: #1d4ed8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(29 78 216 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-blue-900{--tw-gradient-from: #1e3a8a var(--tw-gradient-from-position);--tw-gradient-to: rgb(30 58 138 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-700{--tw-gradient-from: #7e22ce var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 34 206 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-blue-600{--tw-gradient-to: #2563eb var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1d4ed8 var(--tw-gradient-to-position)}.to-blue-800{--tw-gradient-to: #1e40af var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to: #9333ea var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.fill-primary{fill:hsl(var(--primary))}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-\\[1px\\]{padding:1px}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pr-2{padding-right:.5rem}.pr-2\\.5{padding-right:.625rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-\\[0\\.8rem\\]{font-size:.8rem}.text-\\[10px\\]{font-size:10px}.text-\\[9px\\]{font-size:9px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-amber-400{--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.text-blue-200{--tw-text-opacity: 1;color:rgb(191 219 254 / var(--tw-text-opacity, 1))}.text-blue-300{--tw-text-opacity: 1;color:rgb(147 197 253 / var(--tw-text-opacity, 1))}.text-blue-400{--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-400{--tw-text-opacity: 1;color:rgb(52 211 153 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\\/50{color:hsl(var(--foreground) / .5)}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-200{--tw-text-opacity: 1;color:rgb(233 213 255 / var(--tw-text-opacity, 1))}.text-purple-300{--tw-text-opacity: 1;color:rgb(216 180 254 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-sidebar-foreground{color:hsl(var(--sidebar-foreground))}.text-sidebar-foreground\\/70{color:hsl(var(--sidebar-foreground) / .7)}.text-slate-300{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.text-slate-400{--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(250 204 21 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.placeholder-gray-500::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.placeholder-gray-500::placeholder{--tw-placeholder-opacity: 1;color:rgb(107 114 128 / var(--tw-placeholder-opacity, 1))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0_0_0_1px_hsl\\(var\\(--sidebar-border\\)\\)\\]{--tw-shadow: 0 0 0 1px hsl(var(--sidebar-border));--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-green-500\\/30{--tw-shadow-color: rgb(34 197 94 / .3);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\\/30{--tw-shadow-color: rgb(239 68 68 / .3);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-ring{--tw-ring-color: hsl(var(--ring))}.ring-sidebar-ring{--tw-ring-color: hsl(var(--sidebar-ring))}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[height\\]{transition-property:height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[left\\,right\\,width\\]{transition-property:left,right,width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[margin\\,opacity\\]{transition-property:margin,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\,height\\,padding\\]{transition-property:width,height,padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-1000{animation-duration:1s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{animation-timing-function:linear}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:-inset-2:after{content:var(--tw-content);top:-.5rem;right:-.5rem;bottom:-.5rem;left:-.5rem}.after\\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\\:left-1\\/2:after{content:var(--tw-content);left:50%}.after\\:w-1:after{content:var(--tw-content);width:.25rem}.after\\:w-\\[2px\\]:after{content:var(--tw-content);width:2px}.after\\:-translate-x-1\\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.first\\:rounded-l-md:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.first\\:border-l:first-child{border-left-width:1px}.last\\:rounded-r-md:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.focus-within\\:relative:focus-within{position:relative}.focus-within\\:z-20:focus-within{z-index:20}.hover\\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.hover\\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\\:bg-destructive\\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\\:bg-destructive\\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\\:bg-emerald-500:hover{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.hover\\:bg-green-600:hover{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.hover\\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.hover\\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\\:bg-muted\\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\\:bg-orange-600:hover{--tw-bg-opacity: 1;background-color:rgb(234 88 12 / var(--tw-bg-opacity, 1))}.hover\\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\\:bg-primary\\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\\:bg-primary\\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\\:bg-purple-600:hover{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.hover\\:bg-purple-700:hover{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.hover\\:bg-red-600:hover{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.hover\\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\\:bg-secondary\\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\\:bg-sidebar-accent:hover{background-color:hsl(var(--sidebar-accent))}.hover\\:bg-white\\/5:hover{background-color:#ffffff0d}.hover\\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\\:text-foreground:hover{color:hsl(var(--foreground))}.hover\\:text-gray-300:hover{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.hover\\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\\:text-red-400:hover{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.hover\\:text-sidebar-accent-foreground:hover{color:hsl(var(--sidebar-accent-foreground))}.hover\\:text-slate-300:hover{--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.hover\\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.hover\\:shadow-\\[0_0_0_1px_hsl\\(var\\(--sidebar-accent\\)\\)\\]:hover{--tw-shadow: 0 0 0 1px hsl(var(--sidebar-accent));--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\\:brightness-110:hover{--tw-brightness: brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\\:after\\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:hsl(var(--sidebar-border))}.focus\\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.focus\\:border-purple-500:focus{--tw-border-opacity: 1;border-color:rgb(168 85 247 / var(--tw-border-opacity, 1))}.focus\\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\\:opacity-100:focus{opacity:1}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\\:ring-sidebar-ring:focus-visible{--tw-ring-color: hsl(var(--sidebar-ring))}.focus-visible\\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.active\\:bg-gray-600:active{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.active\\:bg-sidebar-accent:active{background-color:hsl(var(--sidebar-accent))}.active\\:text-sidebar-accent-foreground:active{color:hsl(var(--sidebar-accent-foreground))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-gray-700:disabled{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.disabled\\:text-gray-500:disabled{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.disabled\\:opacity-30:disabled{opacity:.3}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:shadow-none:disabled{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group\\/menu-item:focus-within .group-focus-within\\/menu-item\\:opacity-100{opacity:1}.group\\/menu-item:hover .group-hover\\/menu-item\\:opacity-100,.group:hover .group-hover\\:opacity-100{opacity:1}.group.destructive .group-\\[\\.destructive\\]\\:border-muted\\/40{border-color:hsl(var(--muted) / .4)}.group.toaster .group-\\[\\.toaster\\]\\:border-border{border-color:hsl(var(--border))}.group.toast .group-\\[\\.toast\\]\\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\\[\\.toast\\]\\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\\[\\.toaster\\]\\:bg-background{background-color:hsl(var(--background))}.group.destructive .group-\\[\\.destructive\\]\\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.group.toast .group-\\[\\.toast\\]\\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\\[\\.toast\\]\\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\\[\\.toaster\\]\\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\\[\\.toaster\\]\\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:border-destructive\\/30:hover{border-color:hsl(var(--destructive) / .3)}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\\[\\.destructive\\]\\:hover\\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity, 1))}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-destructive:focus{--tw-ring-color: hsl(var(--destructive))}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1))}.group.destructive .group-\\[\\.destructive\\]\\:focus\\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.peer\\/menu-button:hover~.peer-hover\\/menu-button\\:text-sidebar-accent-foreground{color:hsl(var(--sidebar-accent-foreground))}.peer:disabled~.peer-disabled\\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\\:opacity-70{opacity:.7}.has-\\[\\[data-variant\\=inset\\]\\]\\:bg-sidebar:has([data-variant=inset]){background-color:hsl(var(--sidebar-background))}.has-\\[\\:disabled\\]\\:opacity-50:has(:disabled){opacity:.5}.group\\/menu-item:has([data-sidebar=menu-action]) .group-has-\\[\\[data-sidebar\\=menu-action\\]\\]\\/menu-item\\:pr-8{padding-right:2rem}.aria-disabled\\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\\:opacity-50[aria-disabled=true]{opacity:.5}.aria-selected\\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\\:bg-accent\\/50[aria-selected=true]{background-color:hsl(var(--accent) / .5)}.aria-selected\\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}.aria-selected\\:opacity-100[aria-selected=true]{opacity:1}.data-\\[disabled\\=true\\]\\:pointer-events-none[data-disabled=true],.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[panel-group-direction\\=vertical\\]\\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\\[panel-group-direction\\=vertical\\]\\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked],.data-\\[swipe\\=cancel\\]\\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[swipe\\=end\\]\\:translate-x-\\[var\\(--radix-toast-swipe-end-x\\)\\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[swipe\\=move\\]\\:translate-x-\\[var\\(--radix-toast-swipe-move-x\\)\\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\\[state\\=closed\\]\\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\\[state\\=open\\]\\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\\[panel-group-direction\\=vertical\\]\\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\\[active\\=true\\]\\:bg-sidebar-accent[data-active=true]{background-color:hsl(var(--sidebar-accent))}.data-\\[active\\]\\:bg-accent\\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\\[selected\\=true\\]\\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}.data-\\[state\\=active\\]\\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\\[state\\=on\\]\\:bg-accent[data-state=on],.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\\[state\\=open\\]\\:bg-accent\\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}.data-\\[state\\=open\\]\\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\\[state\\=selected\\]\\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\\[active\\=true\\]\\:font-medium[data-active=true]{font-weight:500}.data-\\[active\\=true\\]\\:text-sidebar-accent-foreground[data-active=true]{color:hsl(var(--sidebar-accent-foreground))}.data-\\[placeholder\\]\\:text-muted-foreground[data-placeholder]{color:hsl(var(--muted-foreground))}.data-\\[selected\\=true\\]\\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}.data-\\[state\\=active\\]\\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\\[state\\=checked\\]\\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\\[state\\=on\\]\\:text-accent-foreground[data-state=on],.data-\\[state\\=open\\]\\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\\[disabled\\=true\\]\\:opacity-50[data-disabled=true],.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:opacity-100[data-state=open]{opacity:1}.data-\\[state\\=active\\]\\:shadow[data-state=active]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\\[swipe\\=move\\]\\:transition-none[data-swipe=move]{transition-property:none}.data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{transition-duration:.3s}.data-\\[state\\=open\\]\\:duration-500[data-state=open]{transition-duration:.5s}.data-\\[motion\\^\\=from-\\]\\:animate-in[data-motion^=from-],.data-\\[state\\=open\\]\\:animate-in[data-state=open],.data-\\[state\\=visible\\]\\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[motion\\^\\=to-\\]\\:animate-out[data-motion^=to-],.data-\\[state\\=closed\\]\\:animate-out[data-state=closed],.data-\\[state\\=hidden\\]\\:animate-out[data-state=hidden],.data-\\[swipe\\=end\\]\\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[motion\\^\\=from-\\]\\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\\[motion\\^\\=to-\\]\\:fade-out[data-motion^=to-],.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=closed\\]\\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\\[state\\=hidden\\]\\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open],.data-\\[state\\=visible\\]\\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[motion\\=from-end\\]\\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\\[motion\\=from-start\\]\\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\\[motion\\=to-end\\]\\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\\[motion\\=to-start\\]\\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\\[state\\=closed\\]\\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\\[state\\=closed\\]\\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-right[data-state=closed],.data-\\[state\\=closed\\]\\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\\[state\\=closed\\]\\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\\[state\\=open\\]\\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\\[state\\=open\\]\\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}.data-\\[state\\=closed\\]\\:duration-300[data-state=closed]{animation-duration:.3s}.data-\\[state\\=open\\]\\:duration-500[data-state=open]{animation-duration:.5s}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:-translate-y-1\\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[panel-group-direction\\=vertical\\]\\:after\\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=open\\]\\:hover\\:bg-sidebar-accent:hover[data-state=open]{background-color:hsl(var(--sidebar-accent))}.data-\\[state\\=open\\]\\:hover\\:text-sidebar-accent-foreground:hover[data-state=open]{color:hsl(var(--sidebar-accent-foreground))}.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:left-\\[calc\\(var\\(--sidebar-width\\)\\*-1\\)\\]{left:calc(var(--sidebar-width) * -1)}.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:right-\\[calc\\(var\\(--sidebar-width\\)\\*-1\\)\\]{right:calc(var(--sidebar-width) * -1)}.group[data-side=left] .group-data-\\[side\\=left\\]\\:-right-4{right:-1rem}.group[data-side=right] .group-data-\\[side\\=right\\]\\:left-0{left:0}.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:-mt-8{margin-top:-2rem}.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:hidden{display:none}.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:\\!size-8{width:2rem!important;height:2rem!important}.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:w-\\[--sidebar-width-icon\\]{width:var(--sidebar-width-icon)}.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:w-\\[calc\\(var\\(--sidebar-width-icon\\)_\\+_theme\\(spacing\\.4\\)\\)\\]{width:calc(var(--sidebar-width-icon) + 1rem)}.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:w-\\[calc\\(var\\(--sidebar-width-icon\\)_\\+_theme\\(spacing\\.4\\)_\\+2px\\)\\]{width:calc(var(--sidebar-width-icon) + 1rem + 2px)}.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:w-0{width:0px}.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-side=right] .group-data-\\[side\\=right\\]\\:rotate-180,.group[data-state=open] .group-data-\\[state\\=open\\]\\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:overflow-hidden{overflow:hidden}.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:rounded-lg{border-radius:var(--radius)}.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:border{border-width:1px}.group[data-side=left] .group-data-\\[side\\=left\\]\\:border-r{border-right-width:1px}.group[data-side=right] .group-data-\\[side\\=right\\]\\:border-l{border-left-width:1px}.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:border-sidebar-border{border-color:hsl(var(--sidebar-border))}.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:\\!p-0{padding:0!important}.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:\\!p-2{padding:.5rem!important}.group[data-collapsible=icon] .group-data-\\[collapsible\\=icon\\]\\:opacity-0{opacity:0}.group[data-variant=floating] .group-data-\\[variant\\=floating\\]\\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:after\\:left-full:after{content:var(--tw-content);left:100%}.group[data-collapsible=offcanvas] .group-data-\\[collapsible\\=offcanvas\\]\\:hover\\:bg-sidebar:hover{background-color:hsl(var(--sidebar-background))}.peer\\/menu-button[data-size=default]~.peer-data-\\[size\\=default\\]\\/menu-button\\:top-1\\.5{top:.375rem}.peer\\/menu-button[data-size=lg]~.peer-data-\\[size\\=lg\\]\\/menu-button\\:top-2\\.5{top:.625rem}.peer\\/menu-button[data-size=sm]~.peer-data-\\[size\\=sm\\]\\/menu-button\\:top-1{top:.25rem}.peer[data-variant=inset]~.peer-data-\\[variant\\=inset\\]\\:min-h-\\[calc\\(100svh-theme\\(spacing\\.4\\)\\)\\]{min-height:calc(100svh - 1rem)}.peer\\/menu-button[data-active=true]~.peer-data-\\[active\\=true\\]\\/menu-button\\:text-sidebar-accent-foreground{color:hsl(var(--sidebar-accent-foreground))}.dark\\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}@media(min-width:640px){.sm\\:bottom-0{bottom:0}.sm\\:right-0{right:0}.sm\\:top-auto{top:auto}.sm\\:mt-0{margin-top:0}.sm\\:flex{display:flex}.sm\\:max-w-sm{max-width:24rem}.sm\\:flex-row{flex-direction:row}.sm\\:flex-col{flex-direction:column}.sm\\:justify-end{justify-content:flex-end}.sm\\:gap-2\\.5{gap:.625rem}.sm\\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\\:rounded-lg{border-radius:var(--radius)}.sm\\:text-left{text-align:left}.data-\\[state\\=open\\]\\:sm\\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media(min-width:768px){.md\\:absolute{position:absolute}.md\\:block{display:block}.md\\:flex{display:flex}.md\\:w-\\[var\\(--radix-navigation-menu-viewport-width\\)\\]{width:var(--radix-navigation-menu-viewport-width)}.md\\:w-auto{width:auto}.md\\:max-w-\\[420px\\]{max-width:420px}.md\\:text-sm{font-size:.875rem;line-height:1.25rem}.md\\:opacity-0{opacity:0}.after\\:md\\:hidden:after{content:var(--tw-content);display:none}.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:m-2{margin:.5rem}.peer[data-state=collapsed][data-variant=inset]~.md\\:peer-data-\\[state\\=collapsed\\]\\:peer-data-\\[variant\\=inset\\]\\:ml-2{margin-left:.5rem}.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:ml-0{margin-left:0}.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:rounded-xl{border-radius:.75rem}.peer[data-variant=inset]~.md\\:peer-data-\\[variant\\=inset\\]\\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}.\\[\\&\\:has\\(\\>\\.day-range-end\\)\\]\\:rounded-r-md:has(>.day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\\[\\&\\:has\\(\\>\\.day-range-start\\)\\]\\:rounded-l-md:has(>.day-range-start){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-md:has([aria-selected]){border-radius:calc(var(--radius) - 2px)}.\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\\:\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.last\\:\\[\\&\\:has\\(\\[aria-selected\\]\\)\\]\\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\\[\\&\\:has\\(\\[aria-selected\\]\\.day-outside\\)\\]\\:bg-accent\\/50:has([aria-selected].day-outside){background-color:hsl(var(--accent) / .5)}.\\[\\&\\:has\\(\\[aria-selected\\]\\.day-range-end\\)\\]\\:rounded-r-md:has([aria-selected].day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\\[\\&\\:has\\(\\[role\\=checkbox\\]\\)\\]\\:pr-0:has([role=checkbox]){padding-right:0}.\\[\\&\\>\\[role\\=checkbox\\]\\]\\:translate-y-\\[2px\\]>[role=checkbox]{--tw-translate-y: 2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&\\>button\\]\\:hidden>button{display:none}.\\[\\&\\>span\\:last-child\\]\\:truncate>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.\\[\\&\\>span\\]\\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\\[\\&\\>svg\\+div\\]\\:translate-y-\\[-3px\\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&\\>svg\\]\\:absolute>svg{position:absolute}.\\[\\&\\>svg\\]\\:left-4>svg{left:1rem}.\\[\\&\\>svg\\]\\:top-4>svg{top:1rem}.\\[\\&\\>svg\\]\\:size-4>svg{width:1rem;height:1rem}.\\[\\&\\>svg\\]\\:h-2\\.5>svg{height:.625rem}.\\[\\&\\>svg\\]\\:h-3>svg{height:.75rem}.\\[\\&\\>svg\\]\\:h-3\\.5>svg{height:.875rem}.\\[\\&\\>svg\\]\\:w-2\\.5>svg{width:.625rem}.\\[\\&\\>svg\\]\\:w-3>svg{width:.75rem}.\\[\\&\\>svg\\]\\:w-3\\.5>svg{width:.875rem}.\\[\\&\\>svg\\]\\:shrink-0>svg{flex-shrink:0}.\\[\\&\\>svg\\]\\:text-destructive>svg{color:hsl(var(--destructive))}.\\[\\&\\>svg\\]\\:text-foreground>svg{color:hsl(var(--foreground))}.\\[\\&\\>svg\\]\\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\\[\\&\\>svg\\]\\:text-sidebar-accent-foreground>svg{color:hsl(var(--sidebar-accent-foreground))}.\\[\\&\\>svg\\~\\*\\]\\:pl-7>svg~*{padding-left:1.75rem}.\\[\\&\\>tr\\]\\:last\\:border-b-0:last-child>tr{border-bottom-width:0px}.\\[\\&\\[data-panel-group-direction\\=vertical\\]\\>div\\]\\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&\\[data-state\\=open\\]\\>svg\\]\\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_\\.recharts-cartesian-axis-tick_text\\]\\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\\[\\&_\\.recharts-cartesian-grid_line\\[stroke\\=\\\'\\#ccc\\\'\\]\\]\\:stroke-border\\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border) / .5)}.\\[\\&_\\.recharts-curve\\.recharts-tooltip-cursor\\]\\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\\[\\&_\\.recharts-dot\\[stroke\\=\\\'\\#fff\\\'\\]\\]\\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\\[\\&_\\.recharts-layer\\]\\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\\[\\&_\\.recharts-polar-grid_\\[stroke\\=\\\'\\#ccc\\\'\\]\\]\\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\\[\\&_\\.recharts-radial-bar-background-sector\\]\\:fill-muted .recharts-radial-bar-background-sector,.\\[\\&_\\.recharts-rectangle\\.recharts-tooltip-cursor\\]\\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\\[\\&_\\.recharts-reference-line_\\[stroke\\=\\\'\\#ccc\\\'\\]\\]\\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\\[\\&_\\.recharts-sector\\[stroke\\=\\\'\\#fff\\\'\\]\\]\\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\\[\\&_\\.recharts-sector\\]\\:outline-none .recharts-sector,.\\[\\&_\\.recharts-surface\\]\\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:py-1\\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:font-medium [cmdk-group-heading]{font-weight:500}.\\[\\&_\\[cmdk-group-heading\\]\\]\\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\\[\\&_\\[cmdk-group\\]\\:not\\(\\[hidden\\]\\)_\\~\\[cmdk-group\\]\\]\\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\\[\\&_\\[cmdk-group\\]\\]\\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\\[\\&_\\[cmdk-input-wrapper\\]_svg\\]\\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\\[\\&_\\[cmdk-input\\]\\]\\:h-12 [cmdk-input]{height:3rem}.\\[\\&_\\[cmdk-item\\]\\]\\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\\[\\&_\\[cmdk-item\\]\\]\\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:h-5 [cmdk-item] svg{height:1.25rem}.\\[\\&_\\[cmdk-item\\]_svg\\]\\:w-5 [cmdk-item] svg{width:1.25rem}.\\[\\&_p\\]\\:leading-relaxed p{line-height:1.625}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_tr\\:last-child\\]\\:border-0 tr:last-child{border-width:0px}.\\[\\&_tr\\]\\:border-b tr{border-bottom-width:1px}[data-side=left][data-collapsible=offcanvas] .\\[\\[data-side\\=left\\]\\[data-collapsible\\=offcanvas\\]_\\&\\]\\:-right-2{right:-.5rem}[data-side=left][data-state=collapsed] .\\[\\[data-side\\=left\\]\\[data-state\\=collapsed\\]_\\&\\]\\:cursor-e-resize{cursor:e-resize}[data-side=left] .\\[\\[data-side\\=left\\]_\\&\\]\\:cursor-w-resize{cursor:w-resize}[data-side=right][data-collapsible=offcanvas] .\\[\\[data-side\\=right\\]\\[data-collapsible\\=offcanvas\\]_\\&\\]\\:-left-2{left:-.5rem}[data-side=right][data-state=collapsed] .\\[\\[data-side\\=right\\]\\[data-state\\=collapsed\\]_\\&\\]\\:cursor-w-resize{cursor:w-resize}[data-side=right] .\\[\\[data-side\\=right\\]_\\&\\]\\:cursor-e-resize{cursor:e-resize}',r.appendChild(i);const o=document.createElement("div");return o.style.cssText="pointer-events:auto;",r.appendChild(o),{container:o,shadow:r,host:n}}function Ld(e,t){if(Boolean(t)&&t){const{container:n}=jd("display:inline-flex;align-items:center;height:100%;pointer-events:auto;",t),{container:r}=jd("position:fixed;z-index:2147483647;bottom:0;right:0;pointer-events:auto;width:0;height:0;",document.body),i=L.createRoot(n),o=L.createRoot(r);let a={status:"disconnected",callStatus:"idle",incomingCallInfo:null};const s=()=>{i.render(v.jsx(Dd,{status:a.status,callStatus:a.callStatus,hasIncomingCall:null!==a.incomingCallInfo,onClick:()=>Od.open(),variant:e.fabStyle||"round"}))};Od.on("__connectionStatusChange",e=>{a.status!==e&&(a.status=e,s())}),Od.on("__callStatusChange",e=>{a.callStatus!==e&&(a.callStatus=e,s())}),Od.on("__incomingCallChange",e=>{a.incomingCallInfo!==e&&(a.incomingCallInfo=e,s())}),o.render(v.jsx(Pd,{config:e,api:Od,embedded:!0})),s()}else{const{container:t}=jd("position:fixed;z-index:2147483647;bottom:0;right:0;pointer-events:auto;width:0;height:0;",document.body);L.createRoot(t).render(v.jsx(Pd,{config:e,api:Od,embedded:!1}))}}function Hd(){const e=function(){const e={},t=document.currentScript||Array.from(document.scripts).find(e=>{var t;return null==(t=e.src)?void 0:t.includes("handphone.js")});if(t){const n=t.dataset.sipUser,r=t.dataset.sipPassword,i=t.dataset.sipDomain,o=t.dataset.sipServer,a=t.dataset.position,s=t.dataset.element,l=t.dataset.fabStyle,c="true"===t.dataset.autoConnect,u=t.dataset.dial;if(n&&(e.username=n),r&&(e.password=r),i&&(e.domain=i),o&&(e.server=o),a&&(e.position=a),s&&(e.element=s),l&&(e.fabStyle=l),c&&(e.autoConnect=!0),u)try{e.dial=JSON.parse(u)}catch{e.dial={number:u,auto:!1}}}return window.HandphoneConfig?{...e,...window.HandphoneConfig}:e}();if(!e.element)return void Ld(e,null);const t=document.querySelector(e.element);if(t)return void Ld(e,t);const n=new MutationObserver(()=>{const t=document.querySelector(e.element);t&&(n.disconnect(),Ld(e,t))});n.observe(document.body,{childList:!0,subtree:!0})}window.Handphone=Od,window.addEventListener("message",e=>{const t=e.data;if(!t||"handphone:dial"!==t.type)return;const n=String(t.number??"").trim();n&&Od.dial(n,{auto:Boolean(t.auto)})}),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",Hd):Hd()}();
|