var jd=Object.defineProperty;var zd=(e,t,n)=>t in e?jd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var X=(e,t,n)=>(zd(e,typeof t!="symbol"?t+"":t,n),n);const $d=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const a of l.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerpolicy&&(l.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?l.credentials="include":i.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}};$d();function Hd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bd(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var z={exports:{}},G={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var ms=Object.getOwnPropertySymbols,Vd=Object.prototype.hasOwnProperty,Wd=Object.prototype.propertyIsEnumerable;function qd(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Qd(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(l){return t[l]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(l){i[l]=l}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var tc=Qd()?Object.assign:function(e,t){for(var n,r=qd(e),i,l=1;l<arguments.length;l++){n=Object(arguments[l]);for(var a in n)Vd.call(n,a)&&(r[a]=n[a]);if(ms){i=ms(n);for(var s=0;s<i.length;s++)Wd.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r};/** @license React v17.0.2
 * react.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 la=tc,bn=60103,nc=60106;G.Fragment=60107;G.StrictMode=60108;G.Profiler=60114;var rc=60109,ic=60110,lc=60112;G.Suspense=60113;var oc=60115,ac=60116;if(typeof Symbol=="function"&&Symbol.for){var He=Symbol.for;bn=He("react.element"),nc=He("react.portal"),G.Fragment=He("react.fragment"),G.StrictMode=He("react.strict_mode"),G.Profiler=He("react.profiler"),rc=He("react.provider"),ic=He("react.context"),lc=He("react.forward_ref"),G.Suspense=He("react.suspense"),oc=He("react.memo"),ac=He("react.lazy")}var vs=typeof Symbol=="function"&&Symbol.iterator;function Kd(e){return e===null||typeof e!="object"?null:(e=vs&&e[vs]||e["@@iterator"],typeof e=="function"?e:null)}function Br(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 sc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},uc={};function Mn(e,t,n){this.props=e,this.context=t,this.refs=uc,this.updater=n||sc}Mn.prototype.isReactComponent={};Mn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Br(85));this.updater.enqueueSetState(this,e,t,"setState")};Mn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cc(){}cc.prototype=Mn.prototype;function oa(e,t,n){this.props=e,this.context=t,this.refs=uc,this.updater=n||sc}var aa=oa.prototype=new cc;aa.constructor=oa;la(aa,Mn.prototype);aa.isPureReactComponent=!0;var sa={current:null},fc=Object.prototype.hasOwnProperty,dc={key:!0,ref:!0,__self:!0,__source:!0};function pc(e,t,n){var r,i={},l=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(l=""+t.key),t)fc.call(t,r)&&!dc.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:bn,type:e,key:l,ref:a,props:i,_owner:sa.current}}function Yd(e,t){return{$$typeof:bn,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ua(e){return typeof e=="object"&&e!==null&&e.$$typeof===bn}function Gd(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var gs=/\/+/g;function Ol(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Gd(""+e.key):t.toString(36)}function di(e,t,n,r,i){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(l){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case bn:case nc:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Ol(a,0):r,Array.isArray(i)?(n="",e!=null&&(n=e.replace(gs,"$&/")+"/"),di(i,t,n,"",function(c){return c})):i!=null&&(ua(i)&&(i=Yd(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(gs,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){l=e[s];var u=r+Ol(l,s);a+=di(l,t,n,u,i)}else if(u=Kd(e),typeof u=="function")for(e=u.call(e),s=0;!(l=e.next()).done;)l=l.value,u=r+Ol(l,s++),a+=di(l,t,n,u,i);else if(l==="object")throw t=""+e,Error(Br(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return a}function Zr(e,t,n){if(e==null)return e;var r=[],i=0;return di(e,r,"","",function(l){return t.call(n,l,i++)}),r}function Xd(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var hc={current:null};function dt(){var e=hc.current;if(e===null)throw Error(Br(321));return e}var Zd={ReactCurrentDispatcher:hc,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:sa,IsSomeRendererActing:{current:!1},assign:la};G.Children={map:Zr,forEach:function(e,t,n){Zr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Zr(e,function(){t++}),t},toArray:function(e){return Zr(e,function(t){return t})||[]},only:function(e){if(!ua(e))throw Error(Br(143));return e}};G.Component=Mn;G.PureComponent=oa;G.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zd;G.cloneElement=function(e,t,n){if(e==null)throw Error(Br(267,e));var r=la({},e.props),i=e.key,l=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(l=t.ref,a=sa.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)fc.call(t,u)&&!dc.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return{$$typeof:bn,type:e.type,key:i,ref:l,props:r,_owner:a}};G.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:ic,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:rc,_context:e},e.Consumer=e};G.createElement=pc;G.createFactory=function(e){var t=pc.bind(null,e);return t.type=e,t};G.createRef=function(){return{current:null}};G.forwardRef=function(e){return{$$typeof:lc,render:e}};G.isValidElement=ua;G.lazy=function(e){return{$$typeof:ac,_payload:{_status:-1,_result:e},_init:Xd}};G.memo=function(e,t){return{$$typeof:oc,type:e,compare:t===void 0?null:t}};G.useCallback=function(e,t){return dt().useCallback(e,t)};G.useContext=function(e,t){return dt().useContext(e,t)};G.useDebugValue=function(){};G.useEffect=function(e,t){return dt().useEffect(e,t)};G.useImperativeHandle=function(e,t,n){return dt().useImperativeHandle(e,t,n)};G.useLayoutEffect=function(e,t){return dt().useLayoutEffect(e,t)};G.useMemo=function(e,t){return dt().useMemo(e,t)};G.useReducer=function(e,t,n){return dt().useReducer(e,t,n)};G.useRef=function(e){return dt().useRef(e)};G.useState=function(e){return dt().useState(e)};G.version="17.0.2";z.exports=G;var o=z.exports,Ji={exports:{}},$e={},mc={exports:{}},vc={};/** @license React v0.20.2
 * scheduler.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(e){var t,n,r,i;if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}if(typeof window=="undefined"||typeof MessageChannel!="function"){var u=null,c=null,d=function(){if(u!==null)try{var x=e.unstable_now();u(!0,x),u=null}catch(R){throw setTimeout(d,0),R}};t=function(x){u!==null?setTimeout(t,0,x):(u=x,setTimeout(d,0))},n=function(x,R){c=setTimeout(x,R)},r=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var v=window.setTimeout,p=window.clearTimeout;if(typeof console!="undefined"){var y=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof y!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var k=!1,T=null,h=-1,f=5,m=0;e.unstable_shouldYield=function(){return e.unstable_now()>=m},i=function(){},e.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):f=0<x?Math.floor(1e3/x):5};var E=new MessageChannel,g=E.port2;E.port1.onmessage=function(){if(T!==null){var x=e.unstable_now();m=x+f;try{T(!0,x)?g.postMessage(null):(k=!1,T=null)}catch(R){throw g.postMessage(null),R}}else k=!1},t=function(x){T=x,k||(k=!0,g.postMessage(null))},n=function(x,R){h=v(function(){x(e.unstable_now())},R)},r=function(){p(h),h=-1}}function P(x,R){var b=x.length;x.push(R);e:for(;;){var W=b-1>>>1,Y=x[W];if(Y!==void 0&&0<S(Y,R))x[W]=R,x[b]=Y,b=W;else break e}}function w(x){return x=x[0],x===void 0?null:x}function _(x){var R=x[0];if(R!==void 0){var b=x.pop();if(b!==R){x[0]=b;e:for(var W=0,Y=x.length;W<Y;){var oe=2*(W+1)-1,re=x[oe],Ie=oe+1,lt=x[Ie];if(re!==void 0&&0>S(re,b))lt!==void 0&&0>S(lt,re)?(x[W]=lt,x[Ie]=b,W=Ie):(x[W]=re,x[oe]=b,W=oe);else if(lt!==void 0&&0>S(lt,b))x[W]=lt,x[Ie]=b,W=Ie;else break e}}return R}return null}function S(x,R){var b=x.sortIndex-R.sortIndex;return b!==0?b:x.id-R.id}var O=[],F=[],$=1,K=null,Q=3,N=!1,L=!1,V=!1;function C(x){for(var R=w(F);R!==null;){if(R.callback===null)_(F);else if(R.startTime<=x)_(F),R.sortIndex=R.expirationTime,P(O,R);else break;R=w(F)}}function M(x){if(V=!1,C(x),!L)if(w(O)!==null)L=!0,t(U);else{var R=w(F);R!==null&&n(M,R.startTime-x)}}function U(x,R){L=!1,V&&(V=!1,r()),N=!0;var b=Q;try{for(C(R),K=w(O);K!==null&&(!(K.expirationTime>R)||x&&!e.unstable_shouldYield());){var W=K.callback;if(typeof W=="function"){K.callback=null,Q=K.priorityLevel;var Y=W(K.expirationTime<=R);R=e.unstable_now(),typeof Y=="function"?K.callback=Y:K===w(O)&&_(O),C(R)}else _(O);K=w(O)}if(K!==null)var oe=!0;else{var re=w(F);re!==null&&n(M,re.startTime-R),oe=!1}return oe}finally{K=null,Q=b,N=!1}}var D=i;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(x){x.callback=null},e.unstable_continueExecution=function(){L||N||(L=!0,t(U))},e.unstable_getCurrentPriorityLevel=function(){return Q},e.unstable_getFirstCallbackNode=function(){return w(O)},e.unstable_next=function(x){switch(Q){case 1:case 2:case 3:var R=3;break;default:R=Q}var b=Q;Q=R;try{return x()}finally{Q=b}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=D,e.unstable_runWithPriority=function(x,R){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var b=Q;Q=x;try{return R()}finally{Q=b}},e.unstable_scheduleCallback=function(x,R,b){var W=e.unstable_now();switch(typeof b=="object"&&b!==null?(b=b.delay,b=typeof b=="number"&&0<b?W+b:W):b=W,x){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=b+Y,x={id:$++,callback:R,priorityLevel:x,startTime:b,expirationTime:Y,sortIndex:-1},b>W?(x.sortIndex=b,P(F,x),w(O)===null&&x===w(F)&&(V?r():V=!0,n(M,b-W))):(x.sortIndex=Y,P(O,x),L||N||(L=!0,t(U))),x},e.unstable_wrapCallback=function(x){var R=Q;return function(){var b=Q;Q=R;try{return x.apply(this,arguments)}finally{Q=b}}}})(vc);mc.exports=vc;/** @license React v17.0.2
 * 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.
 */var el=z.exports,ne=tc,fe=mc.exports;function I(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."}if(!el)throw Error(I(227));var gc=new Set,_r={};function Xt(e,t){Tn(e,t),Tn(e+"Capture",t)}function Tn(e,t){for(_r[e]=t,e=0;e<t.length;e++)gc.add(t[e])}var ft=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Jd=/^[: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]*$/,ys=Object.prototype.hasOwnProperty,Es={},Ss={};function ep(e){return ys.call(Ss,e)?!0:ys.call(Es,e)?!1:Jd.test(e)?Ss[e]=!0:(Es[e]=!0,!1)}function tp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function np(e,t,n,r){if(t===null||typeof t=="undefined"||tp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function we(e,t,n,r,i,l,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=l,this.removeEmptyString=a}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){me[e]=new we(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];me[t]=new we(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){me[e]=new we(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){me[e]=new we(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){me[e]=new we(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){me[e]=new we(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){me[e]=new we(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){me[e]=new we(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){me[e]=new we(e,5,!1,e.toLowerCase(),null,!1,!1)});var ca=/[\-:]([a-z])/g;function fa(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".split(" ").forEach(function(e){var t=e.replace(ca,fa);me[t]=new we(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(ca,fa);me[t]=new we(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(ca,fa);me[t]=new we(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){me[e]=new we(e,1,!1,e.toLowerCase(),null,!1,!1)});me.xlinkHref=new we("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){me[e]=new we(e,1,!1,e.toLowerCase(),null,!0,!0)});function da(e,t,n,r){var i=me.hasOwnProperty(t)?me[t]:null,l=i!==null?i.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");l||(np(t,n,i,r)&&(n=null),r||i===null?ep(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Zt=el.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ir=60103,Ft=60106,ht=60107,pa=60108,ur=60114,ha=60109,ma=60110,tl=60112,cr=60113,xi=60120,nl=60115,va=60116,ga=60121,ya=60128,yc=60129,Ea=60130,ao=60131;if(typeof Symbol=="function"&&Symbol.for){var ue=Symbol.for;ir=ue("react.element"),Ft=ue("react.portal"),ht=ue("react.fragment"),pa=ue("react.strict_mode"),ur=ue("react.profiler"),ha=ue("react.provider"),ma=ue("react.context"),tl=ue("react.forward_ref"),cr=ue("react.suspense"),xi=ue("react.suspense_list"),nl=ue("react.memo"),va=ue("react.lazy"),ga=ue("react.block"),ue("react.scope"),ya=ue("react.opaque.id"),yc=ue("react.debug_trace_mode"),Ea=ue("react.offscreen"),ao=ue("react.legacy_hidden")}var Cs=typeof Symbol=="function"&&Symbol.iterator;function Bn(e){return e===null||typeof e!="object"?null:(e=Cs&&e[Cs]||e["@@iterator"],typeof e=="function"?e:null)}var Rl;function lr(e){if(Rl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Rl=t&&t[1]||""}return`
`+Rl+e}var Il=!1;function Jr(e,t){if(!e||Il)return"";Il=!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()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),l=r.stack.split(`
`),a=i.length-1,s=l.length-1;1<=a&&0<=s&&i[a]!==l[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==l[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==l[s])return`
`+i[a].replace(" at new "," at ");while(1<=a&&0<=s);break}}}finally{Il=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?lr(e):""}function rp(e){switch(e.tag){case 5:return lr(e.type);case 16:return lr("Lazy");case 13:return lr("Suspense");case 19:return lr("SuspenseList");case 0:case 2:case 15:return e=Jr(e.type,!1),e;case 11:return e=Jr(e.type.render,!1),e;case 22:return e=Jr(e.type._render,!1),e;case 1:return e=Jr(e.type,!0),e;default:return""}}function mn(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ht:return"Fragment";case Ft:return"Portal";case ur:return"Profiler";case pa:return"StrictMode";case cr:return"Suspense";case xi:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ma:return(e.displayName||"Context")+".Consumer";case ha:return(e._context.displayName||"Context")+".Provider";case tl:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case nl:return mn(e.type);case ga:return mn(e._render);case va:t=e._payload,e=e._init;try{return mn(e(t))}catch{}}return null}function Pt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Ec(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ip(e){var t=Ec(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,l.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ei(e){e._valueTracker||(e._valueTracker=ip(e))}function Sc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ec(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _i(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function so(e,t){var n=t.checked;return ne({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function ks(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Pt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Cc(e,t){t=t.checked,t!=null&&da(e,"checked",t,!1)}function uo(e,t){Cc(e,t);var n=Pt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?co(e,t.type,n):t.hasOwnProperty("defaultValue")&&co(e,t.type,Pt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ws(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function co(e,t,n){(t!=="number"||_i(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function lp(e){var t="";return el.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function fo(e,t){return e=ne({children:void 0},t),(t=lp(t.children))&&(e.children=t),e}function vn(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=""+Pt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function po(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return ne({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xs(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Pt(n)}}function kc(e,t){var n=Pt(t.value),r=Pt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function _s(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var ho={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function wc(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 mo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?wc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ti,xc=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==ho.svg||"innerHTML"in e)e.innerHTML=t;else{for(ti=ti||document.createElement("div"),ti.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ti.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Tr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var fr={animationIterationCount:!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},op=["Webkit","ms","Moz","O"];Object.keys(fr).forEach(function(e){op.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fr[t]=fr[e]})});function _c(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||fr.hasOwnProperty(e)&&fr[e]?(""+t).trim():t+"px"}function Tc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=_c(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ap=ne({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 vo(e,t){if(t){if(ap[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function go(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Sa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yo=null,gn=null,yn=null;function Ts(e){if(e=Wr(e)){if(typeof yo!="function")throw Error(I(280));var t=e.stateNode;t&&(t=sl(t),yo(e.stateNode,e.type,t))}}function Pc(e){gn?yn?yn.push(e):yn=[e]:gn=e}function Oc(){if(gn){var e=gn,t=yn;if(yn=gn=null,Ts(e),t)for(e=0;e<t.length;e++)Ts(t[e])}}function Ca(e,t){return e(t)}function Rc(e,t,n,r,i){return e(t,n,r,i)}function ka(){}var Ic=Ca,Ut=!1,Nl=!1;function wa(){(gn!==null||yn!==null)&&(ka(),Oc())}function sp(e,t,n){if(Nl)return e(t,n);Nl=!0;try{return Ic(e,t,n)}finally{Nl=!1,wa()}}function Pr(e,t){var n=e.stateNode;if(n===null)return null;var r=sl(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var Eo=!1;if(ft)try{var Vn={};Object.defineProperty(Vn,"passive",{get:function(){Eo=!0}}),window.addEventListener("test",Vn,Vn),window.removeEventListener("test",Vn,Vn)}catch{Eo=!1}function up(e,t,n,r,i,l,a,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var dr=!1,Ti=null,Pi=!1,So=null,cp={onError:function(e){dr=!0,Ti=e}};function fp(e,t,n,r,i,l,a,s,u){dr=!1,Ti=null,up.apply(cp,arguments)}function dp(e,t,n,r,i,l,a,s,u){if(fp.apply(this,arguments),dr){if(dr){var c=Ti;dr=!1,Ti=null}else throw Error(I(198));Pi||(Pi=!0,So=c)}}function Jt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&1026)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Nc(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ps(e){if(Jt(e)!==e)throw Error(I(188))}function pp(e){var t=e.alternate;if(!t){if(t=Jt(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var l=i.alternate;if(l===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Ps(i),e;if(l===r)return Ps(i),t;l=l.sibling}throw Error(I(188))}if(n.return!==r.return)n=i,r=l;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=l;break}if(s===r){a=!0,r=i,n=l;break}s=s.sibling}if(!a){for(s=l.child;s;){if(s===n){a=!0,n=l,r=i;break}if(s===r){a=!0,r=l,n=i;break}s=s.sibling}if(!a)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function Lc(e){if(e=pp(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Os(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var bc,xa,Mc,Ac,Co=!1,Xe=[],Et=null,St=null,Ct=null,Or=new Map,Rr=new Map,Wn=[],Rs="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 ko(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function Is(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":St=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":Or.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rr.delete(t.pointerId)}}function qn(e,t,n,r,i,l){return e===null||e.nativeEvent!==l?(e=ko(t,n,r,i,l),t!==null&&(t=Wr(t),t!==null&&xa(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function hp(e,t,n,r,i){switch(t){case"focusin":return Et=qn(Et,e,t,n,r,i),!0;case"dragenter":return St=qn(St,e,t,n,r,i),!0;case"mouseover":return Ct=qn(Ct,e,t,n,r,i),!0;case"pointerover":var l=i.pointerId;return Or.set(l,qn(Or.get(l)||null,e,t,n,r,i)),!0;case"gotpointercapture":return l=i.pointerId,Rr.set(l,qn(Rr.get(l)||null,e,t,n,r,i)),!0}return!1}function mp(e){var t=jt(e.target);if(t!==null){var n=Jt(t);if(n!==null){if(t=n.tag,t===13){if(t=Nc(n),t!==null){e.blockedOn=t,Ac(e.lanePriority,function(){fe.unstable_runWithPriority(e.priority,function(){Mc(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Oa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Wr(n),t!==null&&xa(t),e.blockedOn=n,!1;t.shift()}return!0}function Ns(e,t,n){pi(e)&&n.delete(t)}function vp(){for(Co=!1;0<Xe.length;){var e=Xe[0];if(e.blockedOn!==null){e=Wr(e.blockedOn),e!==null&&bc(e);break}for(var t=e.targetContainers;0<t.length;){var n=Oa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Xe.shift()}Et!==null&&pi(Et)&&(Et=null),St!==null&&pi(St)&&(St=null),Ct!==null&&pi(Ct)&&(Ct=null),Or.forEach(Ns),Rr.forEach(Ns)}function Qn(e,t){e.blockedOn===t&&(e.blockedOn=null,Co||(Co=!0,fe.unstable_scheduleCallback(fe.unstable_NormalPriority,vp)))}function Dc(e){function t(i){return Qn(i,e)}if(0<Xe.length){Qn(Xe[0],e);for(var n=1;n<Xe.length;n++){var r=Xe[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Et!==null&&Qn(Et,e),St!==null&&Qn(St,e),Ct!==null&&Qn(Ct,e),Or.forEach(t),Rr.forEach(t),n=0;n<Wn.length;n++)r=Wn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Wn.length&&(n=Wn[0],n.blockedOn===null);)mp(n),n.blockedOn===null&&Wn.shift()}function ni(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var an={animationend:ni("Animation","AnimationEnd"),animationiteration:ni("Animation","AnimationIteration"),animationstart:ni("Animation","AnimationStart"),transitionend:ni("Transition","TransitionEnd")},Ll={},Fc={};ft&&(Fc=document.createElement("div").style,"AnimationEvent"in window||(delete an.animationend.animation,delete an.animationiteration.animation,delete an.animationstart.animation),"TransitionEvent"in window||delete an.transitionend.transition);function rl(e){if(Ll[e])return Ll[e];if(!an[e])return e;var t=an[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Fc)return Ll[e]=t[n];return e}var Uc=rl("animationend"),jc=rl("animationiteration"),zc=rl("animationstart"),$c=rl("transitionend"),Hc=new Map,_a=new Map,gp=["abort","abort",Uc,"animationEnd",jc,"animationIteration",zc,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",$c,"transitionEnd","waiting","waiting"];function Ta(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),_a.set(r,t),Hc.set(r,i),Xt(i,[r])}}var yp=fe.unstable_now;yp();var J=8;function rn(e){if((1&e)!==0)return J=15,1;if((2&e)!==0)return J=14,2;if((4&e)!==0)return J=13,4;var t=24&e;return t!==0?(J=12,t):(e&32)!==0?(J=11,32):(t=192&e,t!==0?(J=10,t):(e&256)!==0?(J=9,256):(t=3584&e,t!==0?(J=8,t):(e&4096)!==0?(J=7,4096):(t=4186112&e,t!==0?(J=6,t):(t=62914560&e,t!==0?(J=5,t):e&67108864?(J=4,67108864):(e&134217728)!==0?(J=3,134217728):(t=805306368&e,t!==0?(J=2,t):(1073741824&e)!==0?(J=1,1073741824):(J=8,e))))))}function Ep(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Sp(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(I(358,e))}}function Ir(e,t){var n=e.pendingLanes;if(n===0)return J=0;var r=0,i=0,l=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(l!==0)r=l,i=J=15;else if(l=n&134217727,l!==0){var u=l&~a;u!==0?(r=rn(u),i=J):(s&=l,s!==0&&(r=rn(s),i=J))}else l=n&~a,l!==0?(r=rn(l),i=J):s!==0&&(r=rn(s),i=J);if(r===0)return 0;if(r=31-Ot(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&(t&a)===0){if(rn(t),i<=J)return t;J=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ot(t),i=1<<n,r|=e[n],t&=~i;return r}function Bc(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Oi(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=ln(24&~t),e===0?Oi(10,t):e;case 10:return e=ln(192&~t),e===0?Oi(8,t):e;case 8:return e=ln(3584&~t),e===0&&(e=ln(4186112&~t),e===0&&(e=512)),e;case 2:return t=ln(805306368&~t),t===0&&(t=268435456),t}throw Error(I(358,e))}function ln(e){return e&-e}function bl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function il(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-Ot(t),e[t]=n}var Ot=Math.clz32?Math.clz32:wp,Cp=Math.log,kp=Math.LN2;function wp(e){return e===0?32:31-(Cp(e)/kp|0)|0}var xp=fe.unstable_UserBlockingPriority,_p=fe.unstable_runWithPriority,hi=!0;function Tp(e,t,n,r){Ut||ka();var i=Pa,l=Ut;Ut=!0;try{Rc(i,e,t,n,r)}finally{(Ut=l)||wa()}}function Pp(e,t,n,r){_p(xp,Pa.bind(null,e,t,n,r))}function Pa(e,t,n,r){if(hi){var i;if((i=(t&4)===0)&&0<Xe.length&&-1<Rs.indexOf(e))e=ko(null,e,t,n,r),Xe.push(e);else{var l=Oa(e,t,n,r);if(l===null)i&&Is(e,r);else{if(i){if(-1<Rs.indexOf(e)){e=ko(l,e,t,n,r),Xe.push(e);return}if(hp(l,e,t,n,r))return;Is(e,r)}nf(e,t,r,null,n)}}}}function Oa(e,t,n,r){var i=Sa(r);if(i=jt(i),i!==null){var l=Jt(i);if(l===null)i=null;else{var a=l.tag;if(a===13){if(i=Nc(l),i!==null)return i;i=null}else if(a===3){if(l.stateNode.hydrate)return l.tag===3?l.stateNode.containerInfo:null;i=null}else l!==i&&(i=null)}}return nf(e,t,r,i,n),null}var mt=null,Ra=null,mi=null;function Vc(){if(mi)return mi;var e,t=Ra,n=t.length,r,i="value"in mt?mt.value:mt.textContent,l=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[l-r];r++);return mi=i.slice(e,1<r?1-r:void 0)}function vi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ri(){return!0}function Ls(){return!1}function be(e){function t(n,r,i,l,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=l,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?ri:Ls,this.isPropagationStopped=Ls,this}return ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ri)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ri)},persist:function(){},isPersistent:ri}),t}var An={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ia=be(An),Vr=ne({},An,{view:0,detail:0}),Op=be(Vr),Ml,Al,Kn,ll=ne({},Vr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Na,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Kn&&(Kn&&e.type==="mousemove"?(Ml=e.screenX-Kn.screenX,Al=e.screenY-Kn.screenY):Al=Ml=0,Kn=e),Ml)},movementY:function(e){return"movementY"in e?e.movementY:Al}}),bs=be(ll),Rp=ne({},ll,{dataTransfer:0}),Ip=be(Rp),Np=ne({},Vr,{relatedTarget:0}),Dl=be(Np),Lp=ne({},An,{animationName:0,elapsedTime:0,pseudoElement:0}),bp=be(Lp),Mp=ne({},An,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ap=be(Mp),Dp=ne({},An,{data:0}),Ms=be(Dp),Fp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Up={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"},jp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function zp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jp[e])?!!t[e]:!1}function Na(){return zp}var $p=ne({},Vr,{key:function(e){if(e.key){var t=Fp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Up[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Na,charCode:function(e){return e.type==="keypress"?vi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Hp=be($p),Bp=ne({},ll,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),As=be(Bp),Vp=ne({},Vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Na}),Wp=be(Vp),qp=ne({},An,{propertyName:0,elapsedTime:0,pseudoElement:0}),Qp=be(qp),Kp=ne({},ll,{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}),Yp=be(Kp),Gp=[9,13,27,32],La=ft&&"CompositionEvent"in window,pr=null;ft&&"documentMode"in document&&(pr=document.documentMode);var Xp=ft&&"TextEvent"in window&&!pr,Wc=ft&&(!La||pr&&8<pr&&11>=pr),Ds=String.fromCharCode(32),Fs=!1;function qc(e,t){switch(e){case"keyup":return Gp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var sn=!1;function Zp(e,t){switch(e){case"compositionend":return Qc(t);case"keypress":return t.which!==32?null:(Fs=!0,Ds);case"textInput":return e=t.data,e===Ds&&Fs?null:e;default:return null}}function Jp(e,t){if(sn)return e==="compositionend"||!La&&qc(e,t)?(e=Vc(),mi=Ra=mt=null,sn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Wc&&t.locale!=="ko"?null:t.data;default:return null}}var eh={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 Us(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!eh[e.type]:t==="textarea"}function Kc(e,t,n,r){Pc(r),t=Ri(t,"onChange"),0<t.length&&(n=new Ia("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var hr=null,Nr=null;function th(e){Jc(e,0)}function ol(e){var t=cn(e);if(Sc(t))return e}function nh(e,t){if(e==="change")return t}var Yc=!1;if(ft){var Fl;if(ft){var Ul="oninput"in document;if(!Ul){var js=document.createElement("div");js.setAttribute("oninput","return;"),Ul=typeof js.oninput=="function"}Fl=Ul}else Fl=!1;Yc=Fl&&(!document.documentMode||9<document.documentMode)}function zs(){hr&&(hr.detachEvent("onpropertychange",Gc),Nr=hr=null)}function Gc(e){if(e.propertyName==="value"&&ol(Nr)){var t=[];if(Kc(t,Nr,e,Sa(e)),e=th,Ut)e(t);else{Ut=!0;try{Ca(e,t)}finally{Ut=!1,wa()}}}}function rh(e,t,n){e==="focusin"?(zs(),hr=t,Nr=n,hr.attachEvent("onpropertychange",Gc)):e==="focusout"&&zs()}function ih(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ol(Nr)}function lh(e,t){if(e==="click")return ol(t)}function oh(e,t){if(e==="input"||e==="change")return ol(t)}function ah(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var De=typeof Object.is=="function"?Object.is:ah,sh=Object.prototype.hasOwnProperty;function Lr(e,t){if(De(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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++)if(!sh.call(t,n[r])||!De(e[n[r]],t[n[r]]))return!1;return!0}function $s(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hs(e,t){var n=$s(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$s(n)}}function Xc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Bs(){for(var e=window,t=_i();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_i(e.document)}return t}function wo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var uh=ft&&"documentMode"in document&&11>=document.documentMode,un=null,xo=null,mr=null,_o=!1;function Vs(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_o||un==null||un!==_i(r)||(r=un,"selectionStart"in r&&wo(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),mr&&Lr(mr,r)||(mr=r,r=Ri(xo,"onSelect"),0<r.length&&(t=new Ia("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=un)))}Ta("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);Ta("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);Ta(gp,2);for(var Ws="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),jl=0;jl<Ws.length;jl++)_a.set(Ws[jl],0);Tn("onMouseEnter",["mouseout","mouseover"]);Tn("onMouseLeave",["mouseout","mouseover"]);Tn("onPointerEnter",["pointerout","pointerover"]);Tn("onPointerLeave",["pointerout","pointerover"]);Xt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xt("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 seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Zc=new Set("cancel close invalid load scroll toggle".split(" ").concat(or));function qs(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,dp(r,t,void 0,e),e.currentTarget=null}function Jc(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var l=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==l&&i.isPropagationStopped())break e;qs(i,s,c),l=u}else for(a=0;a<r.length;a++){if(s=r[a],u=s.instance,c=s.currentTarget,s=s.listener,u!==l&&i.isPropagationStopped())break e;qs(i,s,c),l=u}}}if(Pi)throw e=So,Pi=!1,So=null,e}function ee(e,t){var n=lf(t),r=e+"__bubble";n.has(r)||(tf(t,e,2,!1),n.add(r))}var Qs="_reactListening"+Math.random().toString(36).slice(2);function ef(e){e[Qs]||(e[Qs]=!0,gc.forEach(function(t){Zc.has(t)||Ks(t,!1,e,null),Ks(t,!0,e,null)}))}function Ks(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,l=n;if(e==="selectionchange"&&n.nodeType!==9&&(l=n.ownerDocument),r!==null&&!t&&Zc.has(e)){if(e!=="scroll")return;i|=2,l=r}var a=lf(l),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),tf(l,e,i,t),a.add(s))}function tf(e,t,n,r){var i=_a.get(t);switch(i===void 0?2:i){case 0:i=Tp;break;case 1:i=Pp;break;default:i=Pa}n=i.bind(null,t,n,e),i=void 0,!Eo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function nf(e,t,n,r,i){var l=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var u=a.tag;if((u===3||u===4)&&(u=a.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;a=a.return}for(;s!==null;){if(a=jt(s),a===null)return;if(u=a.tag,u===5||u===6){r=l=a;continue e}s=s.parentNode}}r=r.return}sp(function(){var c=l,d=Sa(n),v=[];e:{var p=Hc.get(e);if(p!==void 0){var y=Ia,k=e;switch(e){case"keypress":if(vi(n)===0)break e;case"keydown":case"keyup":y=Hp;break;case"focusin":k="focus",y=Dl;break;case"focusout":k="blur",y=Dl;break;case"beforeblur":case"afterblur":y=Dl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=bs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=Ip;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=Wp;break;case Uc:case jc:case zc:y=bp;break;case $c:y=Qp;break;case"scroll":y=Op;break;case"wheel":y=Yp;break;case"copy":case"cut":case"paste":y=Ap;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=As}var T=(t&4)!==0,h=!T&&e==="scroll",f=T?p!==null?p+"Capture":null:p;T=[];for(var m=c,E;m!==null;){E=m;var g=E.stateNode;if(E.tag===5&&g!==null&&(E=g,f!==null&&(g=Pr(m,f),g!=null&&T.push(br(m,g,E)))),h)break;m=m.return}0<T.length&&(p=new y(p,k,null,n,d),v.push({event:p,listeners:T}))}}if((t&7)===0){e:{if(p=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",p&&(t&16)===0&&(k=n.relatedTarget||n.fromElement)&&(jt(k)||k[Dn]))break e;if((y||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,y?(k=n.relatedTarget||n.toElement,y=c,k=k?jt(k):null,k!==null&&(h=Jt(k),k!==h||k.tag!==5&&k.tag!==6)&&(k=null)):(y=null,k=c),y!==k)){if(T=bs,g="onMouseLeave",f="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(T=As,g="onPointerLeave",f="onPointerEnter",m="pointer"),h=y==null?p:cn(y),E=k==null?p:cn(k),p=new T(g,m+"leave",y,n,d),p.target=h,p.relatedTarget=E,g=null,jt(d)===c&&(T=new T(f,m+"enter",k,n,d),T.target=E,T.relatedTarget=h,g=T),h=g,y&&k)t:{for(T=y,f=k,m=0,E=T;E;E=nn(E))m++;for(E=0,g=f;g;g=nn(g))E++;for(;0<m-E;)T=nn(T),m--;for(;0<E-m;)f=nn(f),E--;for(;m--;){if(T===f||f!==null&&T===f.alternate)break t;T=nn(T),f=nn(f)}T=null}else T=null;y!==null&&Ys(v,p,y,T,!1),k!==null&&h!==null&&Ys(v,h,k,T,!0)}}e:{if(p=c?cn(c):window,y=p.nodeName&&p.nodeName.toLowerCase(),y==="select"||y==="input"&&p.type==="file")var P=nh;else if(Us(p))if(Yc)P=oh;else{P=ih;var w=rh}else(y=p.nodeName)&&y.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(P=lh);if(P&&(P=P(e,c))){Kc(v,P,n,d);break e}w&&w(e,p,c),e==="focusout"&&(w=p._wrapperState)&&w.controlled&&p.type==="number"&&co(p,"number",p.value)}switch(w=c?cn(c):window,e){case"focusin":(Us(w)||w.contentEditable==="true")&&(un=w,xo=c,mr=null);break;case"focusout":mr=xo=un=null;break;case"mousedown":_o=!0;break;case"contextmenu":case"mouseup":case"dragend":_o=!1,Vs(v,n,d);break;case"selectionchange":if(uh)break;case"keydown":case"keyup":Vs(v,n,d)}var _;if(La)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else sn?qc(e,n)&&(S="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(S="onCompositionStart");S&&(Wc&&n.locale!=="ko"&&(sn||S!=="onCompositionStart"?S==="onCompositionEnd"&&sn&&(_=Vc()):(mt=d,Ra="value"in mt?mt.value:mt.textContent,sn=!0)),w=Ri(c,S),0<w.length&&(S=new Ms(S,e,null,n,d),v.push({event:S,listeners:w}),_?S.data=_:(_=Qc(n),_!==null&&(S.data=_)))),(_=Xp?Zp(e,n):Jp(e,n))&&(c=Ri(c,"onBeforeInput"),0<c.length&&(d=new Ms("onBeforeInput","beforeinput",null,n,d),v.push({event:d,listeners:c}),d.data=_))}Jc(v,t)})}function br(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ri(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,l=i.stateNode;i.tag===5&&l!==null&&(i=l,l=Pr(e,n),l!=null&&r.unshift(br(e,l,i)),l=Pr(e,t),l!=null&&r.push(br(e,l,i))),e=e.return}return r}function nn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ys(e,t,n,r,i){for(var l=t._reactName,a=[];n!==null&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&c!==null&&(s=c,i?(u=Pr(n,l),u!=null&&a.unshift(br(n,u,s))):i||(u=Pr(n,l),u!=null&&a.push(br(n,u,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}function Ii(){}var zl=null,$l=null;function rf(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function To(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Gs=typeof setTimeout=="function"?setTimeout:void 0,ch=typeof clearTimeout=="function"?clearTimeout:void 0;function ba(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function En(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function Xs(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Hl=0;function fh(e){return{$$typeof:ya,toString:e,valueOf:e}}var al=Math.random().toString(36).slice(2),vt="__reactFiber$"+al,Ni="__reactProps$"+al,Dn="__reactContainer$"+al,Zs="__reactEvents$"+al;function jt(e){var t=e[vt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Dn]||n[vt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Xs(e);e!==null;){if(n=e[vt])return n;e=Xs(e)}return t}e=n,n=e.parentNode}return null}function Wr(e){return e=e[vt]||e[Dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function cn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function sl(e){return e[Ni]||null}function lf(e){var t=e[Zs];return t===void 0&&(t=e[Zs]=new Set),t}var Po=[],fn=-1;function Lt(e){return{current:e}}function te(e){0>fn||(e.current=Po[fn],Po[fn]=null,fn--)}function le(e,t){fn++,Po[fn]=e.current,e.current=t}var Rt={},Se=Lt(Rt),Pe=Lt(!1),qt=Rt;function Pn(e,t){var n=e.type.contextTypes;if(!n)return Rt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},l;for(l in n)i[l]=t[l];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Oe(e){return e=e.childContextTypes,e!=null}function Li(){te(Pe),te(Se)}function Js(e,t,n){if(Se.current!==Rt)throw Error(I(168));le(Se,t),le(Pe,n)}function of(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(I(108,mn(t)||"Unknown",i));return ne({},n,r)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Rt,qt=Se.current,le(Se,e),le(Pe,Pe.current),!0}function eu(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=of(e,t,qt),r.__reactInternalMemoizedMergedChildContext=e,te(Pe),te(Se),le(Se,e)):te(Pe),le(Pe,n)}var Ma=null,Bt=null,dh=fe.unstable_runWithPriority,Aa=fe.unstable_scheduleCallback,Oo=fe.unstable_cancelCallback,ph=fe.unstable_shouldYield,tu=fe.unstable_requestPaint,Ro=fe.unstable_now,hh=fe.unstable_getCurrentPriorityLevel,ul=fe.unstable_ImmediatePriority,af=fe.unstable_UserBlockingPriority,sf=fe.unstable_NormalPriority,uf=fe.unstable_LowPriority,cf=fe.unstable_IdlePriority,Bl={},mh=tu!==void 0?tu:function(){},ot=null,yi=null,Vl=!1,nu=Ro(),ye=1e4>nu?Ro:function(){return Ro()-nu};function On(){switch(hh()){case ul:return 99;case af:return 98;case sf:return 97;case uf:return 96;case cf:return 95;default:throw Error(I(332))}}function ff(e){switch(e){case 99:return ul;case 98:return af;case 97:return sf;case 96:return uf;case 95:return cf;default:throw Error(I(332))}}function Qt(e,t){return e=ff(e),dh(e,t)}function Mr(e,t,n){return e=ff(e),Aa(e,t,n)}function it(){if(yi!==null){var e=yi;yi=null,Oo(e)}df()}function df(){if(!Vl&&ot!==null){Vl=!0;var e=0;try{var t=ot;Qt(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),ot=null}catch(n){throw ot!==null&&(ot=ot.slice(e+1)),Aa(ul,it),n}finally{Vl=!1}}}var vh=Zt.ReactCurrentBatchConfig;function Be(e,t){if(e&&e.defaultProps){t=ne({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var bi=Lt(null),Mi=null,dn=null,Ai=null;function Da(){Ai=dn=Mi=null}function Fa(e){var t=bi.current;te(bi),e.type._context._currentValue=t}function pf(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Sn(e,t){Mi=e,Ai=dn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(We=!0),e.firstContext=null)}function je(e,t){if(Ai!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(Ai=e,t=1073741823),t={context:e,observedBits:t,next:null},dn===null){if(Mi===null)throw Error(I(308));dn=t,Mi.dependencies={lanes:0,firstContext:t,responders:null}}else dn=dn.next=t;return e._currentValue}var pt=!1;function Ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function hf(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 kt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function wt(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function ru(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};l===null?i=l=a:l=l.next=a,n=n.next}while(n!==null);l===null?i=l=t:l=l.next=t}else i=l=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:l,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ar(e,t,n,r){var i=e.updateQueue;pt=!1;var l=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var u=s,c=u.next;u.next=null,a===null?l=c:a.next=c,a=u;var d=e.alternate;if(d!==null){d=d.updateQueue;var v=d.lastBaseUpdate;v!==a&&(v===null?d.firstBaseUpdate=c:v.next=c,d.lastBaseUpdate=u)}}if(l!==null){v=i.baseState,a=0,d=c=u=null;do{s=l.lane;var p=l.eventTime;if((r&s)===s){d!==null&&(d=d.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var y=e,k=l;switch(s=t,p=n,k.tag){case 1:if(y=k.payload,typeof y=="function"){v=y.call(p,v,s);break e}v=y;break e;case 3:y.flags=y.flags&-4097|64;case 0:if(y=k.payload,s=typeof y=="function"?y.call(p,v,s):y,s==null)break e;v=ne({},v,s);break e;case 2:pt=!0}}l.callback!==null&&(e.flags|=32,s=i.effects,s===null?i.effects=[l]:s.push(l))}else p={eventTime:p,lane:s,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=p,u=v):d=d.next=p,a|=s;if(l=l.next,l===null){if(s=i.shared.pending,s===null)break;l=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}while(1);d===null&&(u=v),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,Qr|=a,e.lanes=a,e.memoizedState=v}}function iu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(I(191,i));i.call(r)}}}var mf=new el.Component().refs;function Di(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var cl={isMounted:function(e){return(e=e._reactInternals)?Jt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Le(),i=xt(e),l=kt(r,i);l.payload=t,n!=null&&(l.callback=n),wt(e,l),_t(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Le(),i=xt(e),l=kt(r,i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),wt(e,l),_t(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Le(),r=xt(e),i=kt(n,r);i.tag=2,t!=null&&(i.callback=t),wt(e,i),_t(e,r,n)}};function lu(e,t,n,r,i,l,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,l,a):t.prototype&&t.prototype.isPureReactComponent?!Lr(n,r)||!Lr(i,l):!0}function vf(e,t,n){var r=!1,i=Rt,l=t.contextType;return typeof l=="object"&&l!==null?l=je(l):(i=Oe(t)?qt:Se.current,r=t.contextTypes,l=(r=r!=null)?Pn(e,i):Rt),t=new t(n,l),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=cl,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=l),t}function ou(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&cl.enqueueReplaceState(t,t.state,null)}function Io(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=mf,Ua(e);var l=t.contextType;typeof l=="object"&&l!==null?i.context=je(l):(l=Oe(t)?qt:Se.current,i.context=Pn(e,l)),Ar(e,n,i,r),i.state=e.memoizedState,l=t.getDerivedStateFromProps,typeof l=="function"&&(Di(e,t,l,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&cl.enqueueReplaceState(i,i.state,null),Ar(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var ii=Array.isArray;function Yn(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var r=n.stateNode}if(!r)throw Error(I(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var a=r.refs;a===mf&&(a=r.refs={}),l===null?delete a[i]:a[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function li(e,t){if(e.type!=="textarea")throw Error(I(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function gf(e){function t(h,f){if(e){var m=h.lastEffect;m!==null?(m.nextEffect=f,h.lastEffect=f):h.firstEffect=h.lastEffect=f,f.nextEffect=null,f.flags=8}}function n(h,f){if(!e)return null;for(;f!==null;)t(h,f),f=f.sibling;return null}function r(h,f){for(h=new Map;f!==null;)f.key!==null?h.set(f.key,f):h.set(f.index,f),f=f.sibling;return h}function i(h,f){return h=Nt(h,f),h.index=0,h.sibling=null,h}function l(h,f,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<f?(h.flags=2,f):m):(h.flags=2,f)):f}function a(h){return e&&h.alternate===null&&(h.flags=2),h}function s(h,f,m,E){return f===null||f.tag!==6?(f=Yl(m,h.mode,E),f.return=h,f):(f=i(f,m),f.return=h,f)}function u(h,f,m,E){return f!==null&&f.elementType===m.type?(E=i(f,m.props),E.ref=Yn(h,f,m),E.return=h,E):(E=ki(m.type,m.key,m.props,null,h.mode,E),E.ref=Yn(h,f,m),E.return=h,E)}function c(h,f,m,E){return f===null||f.tag!==4||f.stateNode.containerInfo!==m.containerInfo||f.stateNode.implementation!==m.implementation?(f=Gl(m,h.mode,E),f.return=h,f):(f=i(f,m.children||[]),f.return=h,f)}function d(h,f,m,E,g){return f===null||f.tag!==7?(f=xn(m,h.mode,E,g),f.return=h,f):(f=i(f,m),f.return=h,f)}function v(h,f,m){if(typeof f=="string"||typeof f=="number")return f=Yl(""+f,h.mode,m),f.return=h,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case ir:return m=ki(f.type,f.key,f.props,null,h.mode,m),m.ref=Yn(h,null,f),m.return=h,m;case Ft:return f=Gl(f,h.mode,m),f.return=h,f}if(ii(f)||Bn(f))return f=xn(f,h.mode,m,null),f.return=h,f;li(h,f)}return null}function p(h,f,m,E){var g=f!==null?f.key:null;if(typeof m=="string"||typeof m=="number")return g!==null?null:s(h,f,""+m,E);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ir:return m.key===g?m.type===ht?d(h,f,m.props.children,E,g):u(h,f,m,E):null;case Ft:return m.key===g?c(h,f,m,E):null}if(ii(m)||Bn(m))return g!==null?null:d(h,f,m,E,null);li(h,m)}return null}function y(h,f,m,E,g){if(typeof E=="string"||typeof E=="number")return h=h.get(m)||null,s(f,h,""+E,g);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ir:return h=h.get(E.key===null?m:E.key)||null,E.type===ht?d(f,h,E.props.children,g,E.key):u(f,h,E,g);case Ft:return h=h.get(E.key===null?m:E.key)||null,c(f,h,E,g)}if(ii(E)||Bn(E))return h=h.get(m)||null,d(f,h,E,g,null);li(f,E)}return null}function k(h,f,m,E){for(var g=null,P=null,w=f,_=f=0,S=null;w!==null&&_<m.length;_++){w.index>_?(S=w,w=null):S=w.sibling;var O=p(h,w,m[_],E);if(O===null){w===null&&(w=S);break}e&&w&&O.alternate===null&&t(h,w),f=l(O,f,_),P===null?g=O:P.sibling=O,P=O,w=S}if(_===m.length)return n(h,w),g;if(w===null){for(;_<m.length;_++)w=v(h,m[_],E),w!==null&&(f=l(w,f,_),P===null?g=w:P.sibling=w,P=w);return g}for(w=r(h,w);_<m.length;_++)S=y(w,h,_,m[_],E),S!==null&&(e&&S.alternate!==null&&w.delete(S.key===null?_:S.key),f=l(S,f,_),P===null?g=S:P.sibling=S,P=S);return e&&w.forEach(function(F){return t(h,F)}),g}function T(h,f,m,E){var g=Bn(m);if(typeof g!="function")throw Error(I(150));if(m=g.call(m),m==null)throw Error(I(151));for(var P=g=null,w=f,_=f=0,S=null,O=m.next();w!==null&&!O.done;_++,O=m.next()){w.index>_?(S=w,w=null):S=w.sibling;var F=p(h,w,O.value,E);if(F===null){w===null&&(w=S);break}e&&w&&F.alternate===null&&t(h,w),f=l(F,f,_),P===null?g=F:P.sibling=F,P=F,w=S}if(O.done)return n(h,w),g;if(w===null){for(;!O.done;_++,O=m.next())O=v(h,O.value,E),O!==null&&(f=l(O,f,_),P===null?g=O:P.sibling=O,P=O);return g}for(w=r(h,w);!O.done;_++,O=m.next())O=y(w,h,_,O.value,E),O!==null&&(e&&O.alternate!==null&&w.delete(O.key===null?_:O.key),f=l(O,f,_),P===null?g=O:P.sibling=O,P=O);return e&&w.forEach(function($){return t(h,$)}),g}return function(h,f,m,E){var g=typeof m=="object"&&m!==null&&m.type===ht&&m.key===null;g&&(m=m.props.children);var P=typeof m=="object"&&m!==null;if(P)switch(m.$$typeof){case ir:e:{for(P=m.key,g=f;g!==null;){if(g.key===P){switch(g.tag){case 7:if(m.type===ht){n(h,g.sibling),f=i(g,m.props.children),f.return=h,h=f;break e}break;default:if(g.elementType===m.type){n(h,g.sibling),f=i(g,m.props),f.ref=Yn(h,g,m),f.return=h,h=f;break e}}n(h,g);break}else t(h,g);g=g.sibling}m.type===ht?(f=xn(m.props.children,h.mode,E,m.key),f.return=h,h=f):(E=ki(m.type,m.key,m.props,null,h.mode,E),E.ref=Yn(h,f,m),E.return=h,h=E)}return a(h);case Ft:e:{for(g=m.key;f!==null;){if(f.key===g)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(h,f.sibling),f=i(f,m.children||[]),f.return=h,h=f;break e}else{n(h,f);break}else t(h,f);f=f.sibling}f=Gl(m,h.mode,E),f.return=h,h=f}return a(h)}if(typeof m=="string"||typeof m=="number")return m=""+m,f!==null&&f.tag===6?(n(h,f.sibling),f=i(f,m),f.return=h,h=f):(n(h,f),f=Yl(m,h.mode,E),f.return=h,h=f),a(h);if(ii(m))return k(h,f,m,E);if(Bn(m))return T(h,f,m,E);if(P&&li(h,m),typeof m=="undefined"&&!g)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(I(152,mn(h.type)||"Component"))}return n(h,f)}}var Fi=gf(!0),yf=gf(!1),qr={},et=Lt(qr),Dr=Lt(qr),Fr=Lt(qr);function zt(e){if(e===qr)throw Error(I(174));return e}function No(e,t){switch(le(Fr,t),le(Dr,e),le(et,qr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mo(t,e)}te(et),le(et,t)}function Rn(){te(et),te(Dr),te(Fr)}function au(e){zt(Fr.current);var t=zt(et.current),n=mo(t,e.type);t!==n&&(le(Dr,e),le(et,n))}function ja(e){Dr.current===e&&(te(et),te(Dr))}var ie=Lt(0);function Ui(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&64)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var st=null,gt=null,tt=!1;function Ef(e,t){var n=Fe(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function su(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Lo(e){if(tt){var t=gt;if(t){var n=t;if(!su(e,t)){if(t=En(n.nextSibling),!t||!su(e,t)){e.flags=e.flags&-1025|2,tt=!1,st=e;return}Ef(st,n)}st=e,gt=En(t.firstChild)}else e.flags=e.flags&-1025|2,tt=!1,st=e}}function uu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;st=e}function oi(e){if(e!==st)return!1;if(!tt)return uu(e),tt=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!To(t,e.memoizedProps))for(t=gt;t;)Ef(e,t),t=En(t.nextSibling);if(uu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){gt=En(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}gt=null}}else gt=st?En(e.stateNode.nextSibling):null;return!0}function Wl(){gt=st=null,tt=!1}var Cn=[];function za(){for(var e=0;e<Cn.length;e++)Cn[e]._workInProgressVersionPrimary=null;Cn.length=0}var vr=Zt.ReactCurrentDispatcher,Ue=Zt.ReactCurrentBatchConfig,Ur=0,ae=null,ge=null,pe=null,ji=!1,gr=!1;function xe(){throw Error(I(321))}function $a(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!De(e[n],t[n]))return!1;return!0}function Ha(e,t,n,r,i,l){if(Ur=l,ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,vr.current=e===null||e.memoizedState===null?yh:Eh,e=n(r,i),gr){l=0;do{if(gr=!1,!(25>l))throw Error(I(301));l+=1,pe=ge=null,t.updateQueue=null,vr.current=Sh,e=n(r,i)}while(gr)}if(vr.current=Bi,t=ge!==null&&ge.next!==null,Ur=0,pe=ge=ae=null,ji=!1,t)throw Error(I(300));return e}function $t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pe===null?ae.memoizedState=pe=e:pe=pe.next=e,pe}function en(){if(ge===null){var e=ae.alternate;e=e!==null?e.memoizedState:null}else e=ge.next;var t=pe===null?ae.memoizedState:pe.next;if(t!==null)pe=t,ge=e;else{if(e===null)throw Error(I(310));ge=e,e={memoizedState:ge.memoizedState,baseState:ge.baseState,baseQueue:ge.baseQueue,queue:ge.queue,next:null},pe===null?ae.memoizedState=pe=e:pe=pe.next=e}return pe}function Ze(e,t){return typeof t=="function"?t(e):t}function Gn(e){var t=en(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=ge,i=r.baseQueue,l=n.pending;if(l!==null){if(i!==null){var a=i.next;i.next=l.next,l.next=a}r.baseQueue=i=l,n.pending=null}if(i!==null){i=i.next,r=r.baseState;var s=a=l=null,u=i;do{var c=u.lane;if((Ur&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};s===null?(a=s=d,l=r):s=s.next=d,ae.lanes|=c,Qr|=c}u=u.next}while(u!==null&&u!==i);s===null?l=r:s.next=a,De(r,t.memoizedState)||(We=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Xn(e){var t=en(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do l=e(l,a.action),a=a.next;while(a!==i);De(l,t.memoizedState)||(We=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function cu(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===r:(e=e.mutableReadLanes,(e=(Ur&e)===e)&&(t._workInProgressVersionPrimary=r,Cn.push(t))),e)return n(t._source);throw Cn.push(t),Error(I(350))}function Sf(e,t,n,r){var i=Ce;if(i===null)throw Error(I(349));var l=t._getVersion,a=l(t._source),s=vr.current,u=s.useState(function(){return cu(i,t,n)}),c=u[1],d=u[0];u=pe;var v=e.memoizedState,p=v.refs,y=p.getSnapshot,k=v.source;v=v.subscribe;var T=ae;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect(function(){p.getSnapshot=n,p.setSnapshot=c;var h=l(t._source);if(!De(a,h)){h=n(t._source),De(d,h)||(c(h),h=xt(T),i.mutableReadLanes|=h&i.pendingLanes),h=i.mutableReadLanes,i.entangledLanes|=h;for(var f=i.entanglements,m=h;0<m;){var E=31-Ot(m),g=1<<E;f[E]|=h,m&=~g}}},[n,t,r]),s.useEffect(function(){return r(t._source,function(){var h=p.getSnapshot,f=p.setSnapshot;try{f(h(t._source));var m=xt(T);i.mutableReadLanes|=m&i.pendingLanes}catch(E){f(function(){throw E})}})},[t,r]),De(y,n)&&De(k,t)&&De(v,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Ze,lastRenderedState:d},e.dispatch=c=Wa.bind(null,ae,e),u.queue=e,u.baseQueue=null,d=cu(i,t,n),u.memoizedState=u.baseState=d),d}function Cf(e,t,n){var r=en();return Sf(r,e,t,n)}function Zn(e){var t=$t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ze,lastRenderedState:e},e=e.dispatch=Wa.bind(null,ae,e),[t.memoizedState,e]}function zi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ae.updateQueue,t===null?(t={lastEffect:null},ae.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function fu(e){var t=$t();return e={current:e},t.memoizedState=e}function $i(){return en().memoizedState}function bo(e,t,n,r){var i=$t();ae.flags|=e,i.memoizedState=zi(1|t,n,void 0,r===void 0?null:r)}function Ba(e,t,n,r){var i=en();r=r===void 0?null:r;var l=void 0;if(ge!==null){var a=ge.memoizedState;if(l=a.destroy,r!==null&&$a(r,a.deps)){zi(t,n,l,r);return}}ae.flags|=e,i.memoizedState=zi(1|t,n,l,r)}function du(e,t){return bo(516,4,e,t)}function Hi(e,t){return Ba(516,4,e,t)}function kf(e,t){return Ba(4,2,e,t)}function wf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function xf(e,t,n){return n=n!=null?n.concat([e]):null,Ba(4,2,wf.bind(null,t,e),n)}function Va(){}function _f(e,t){var n=en();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$a(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Tf(e,t){var n=en();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$a(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gh(e,t){var n=On();Qt(98>n?98:n,function(){e(!0)}),Qt(97<n?97:n,function(){var r=Ue.transition;Ue.transition=1;try{e(!1),t()}finally{Ue.transition=r}})}function Wa(e,t,n){var r=Le(),i=xt(e),l={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(a===null?l.next=l:(l.next=a.next,a.next=l),t.pending=l,a=e.alternate,e===ae||a!==null&&a===ae)gr=ji=!0;else{if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,u=a(s,n);if(l.eagerReducer=a,l.eagerState=u,De(u,s))return}catch{}finally{}_t(e,i,r)}}var Bi={readContext:je,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useOpaqueIdentifier:xe,unstable_isNewReconciler:!1},yh={readContext:je,useCallback:function(e,t){return $t().memoizedState=[e,t===void 0?null:t],e},useContext:je,useEffect:du,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bo(4,2,wf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bo(4,2,e,t)},useMemo:function(e,t){var n=$t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=$t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Wa.bind(null,ae,e),[r.memoizedState,e]},useRef:fu,useState:Zn,useDebugValue:Va,useDeferredValue:function(e){var t=Zn(e),n=t[0],r=t[1];return du(function(){var i=Ue.transition;Ue.transition=1;try{r(e)}finally{Ue.transition=i}},[e]),n},useTransition:function(){var e=Zn(!1),t=e[0];return e=gh.bind(null,e[1]),fu(e),[e,t]},useMutableSource:function(e,t,n){var r=$t();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Sf(r,e,t,n)},useOpaqueIdentifier:function(){if(tt){var e=!1,t=fh(function(){throw e||(e=!0,n("r:"+(Hl++).toString(36))),Error(I(355))}),n=Zn(t)[1];return(ae.mode&2)===0&&(ae.flags|=516,zi(5,function(){n("r:"+(Hl++).toString(36))},void 0,null)),t}return t="r:"+(Hl++).toString(36),Zn(t),t},unstable_isNewReconciler:!1},Eh={readContext:je,useCallback:_f,useContext:je,useEffect:Hi,useImperativeHandle:xf,useLayoutEffect:kf,useMemo:Tf,useReducer:Gn,useRef:$i,useState:function(){return Gn(Ze)},useDebugValue:Va,useDeferredValue:function(e){var t=Gn(Ze),n=t[0],r=t[1];return Hi(function(){var i=Ue.transition;Ue.transition=1;try{r(e)}finally{Ue.transition=i}},[e]),n},useTransition:function(){var e=Gn(Ze)[0];return[$i().current,e]},useMutableSource:Cf,useOpaqueIdentifier:function(){return Gn(Ze)[0]},unstable_isNewReconciler:!1},Sh={readContext:je,useCallback:_f,useContext:je,useEffect:Hi,useImperativeHandle:xf,useLayoutEffect:kf,useMemo:Tf,useReducer:Xn,useRef:$i,useState:function(){return Xn(Ze)},useDebugValue:Va,useDeferredValue:function(e){var t=Xn(Ze),n=t[0],r=t[1];return Hi(function(){var i=Ue.transition;Ue.transition=1;try{r(e)}finally{Ue.transition=i}},[e]),n},useTransition:function(){var e=Xn(Ze)[0];return[$i().current,e]},useMutableSource:Cf,useOpaqueIdentifier:function(){return Xn(Ze)[0]},unstable_isNewReconciler:!1},Ch=Zt.ReactCurrentOwner,We=!1;function _e(e,t,n,r){t.child=e===null?yf(t,null,n,r):Fi(t,e.child,n,r)}function pu(e,t,n,r,i){n=n.render;var l=t.ref;return Sn(t,i),r=Ha(e,t,n,r,l,i),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ut(e,t,i)):(t.flags|=1,_e(e,t,r,i),t.child)}function hu(e,t,n,r,i,l){if(e===null){var a=n.type;return typeof a=="function"&&!Xa(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Pf(e,t,a,r,i,l)):(e=ki(n.type,null,r,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}return a=e.child,(i&l)===0&&(i=a.memoizedProps,n=n.compare,n=n!==null?n:Lr,n(i,r)&&e.ref===t.ref)?ut(e,t,l):(t.flags|=1,e=Nt(a,r),e.ref=t.ref,e.return=t,t.child=e)}function Pf(e,t,n,r,i,l){if(e!==null&&Lr(e.memoizedProps,r)&&e.ref===t.ref)if(We=!1,(l&i)!==0)(e.flags&16384)!==0&&(We=!0);else return t.lanes=e.lanes,ut(e,t,l);return Mo(e,t,n,r,l)}function ql(e,t,n){var r=t.pendingProps,i=r.children,l=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if((t.mode&4)===0)t.memoizedState={baseLanes:0},si(t,n);else if((n&1073741824)!==0)t.memoizedState={baseLanes:0},si(t,l!==null?l.baseLanes:n);else return e=l!==null?l.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},si(t,e),null;else l!==null?(r=l.baseLanes|n,t.memoizedState=null):r=n,si(t,r);return _e(e,t,i,n),t.child}function Of(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Mo(e,t,n,r,i){var l=Oe(n)?qt:Se.current;return l=Pn(t,l),Sn(t,i),n=Ha(e,t,n,r,l,i),e!==null&&!We?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ut(e,t,i)):(t.flags|=1,_e(e,t,n,i),t.child)}function mu(e,t,n,r,i){if(Oe(n)){var l=!0;gi(t)}else l=!1;if(Sn(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),vf(t,n,r),Io(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=je(c):(c=Oe(n)?qt:Se.current,c=Pn(t,c));var d=n.getDerivedStateFromProps,v=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";v||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||u!==c)&&ou(t,a,r,c),pt=!1;var p=t.memoizedState;a.state=p,Ar(t,r,a,i),u=t.memoizedState,s!==r||p!==u||Pe.current||pt?(typeof d=="function"&&(Di(t,n,d,r),u=t.memoizedState),(s=pt||lu(t,n,s,r,p,u,c))?(v||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4)):(typeof a.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{a=t.stateNode,hf(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Be(t.type,s),a.props=c,v=t.pendingProps,p=a.context,u=n.contextType,typeof u=="object"&&u!==null?u=je(u):(u=Oe(n)?qt:Se.current,u=Pn(t,u));var y=n.getDerivedStateFromProps;(d=typeof y=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==v||p!==u)&&ou(t,a,r,u),pt=!1,p=t.memoizedState,a.state=p,Ar(t,r,a,i);var k=t.memoizedState;s!==v||p!==k||Pe.current||pt?(typeof y=="function"&&(Di(t,n,y,r),k=t.memoizedState),(c=pt||lu(t,n,c,r,p,k,u))?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,k,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,k,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=k),a.props=r,a.state=k,a.context=u,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Ao(e,t,n,r,l,i)}function Ao(e,t,n,r,i,l){Of(e,t);var a=(t.flags&64)!==0;if(!r&&!a)return i&&eu(t,n,!1),ut(e,t,l);r=t.stateNode,Ch.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Fi(t,e.child,null,l),t.child=Fi(t,null,s,l)):_e(e,t,s,l),t.memoizedState=r.state,i&&eu(t,n,!0),t.child}function vu(e){var t=e.stateNode;t.pendingContext?Js(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Js(e,t.context,!1),No(e,t.containerInfo)}var ai={dehydrated:null,retryLane:0};function gu(e,t,n){var r=t.pendingProps,i=ie.current,l=!1,a;return(a=(t.flags&64)!==0)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(l=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(i|=1),le(ie,i&1),e===null?(r.fallback!==void 0&&Lo(t),e=r.children,i=r.fallback,l?(e=yu(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ai,e):typeof r.unstable_expectedLoadTime=="number"?(e=yu(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=ai,t.lanes=33554432,e):(n=Za({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?l?(r=Su(e,t,r.children,r.fallback,n),l=t.child,i=e.child.memoizedState,l.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},l.childLanes=e.childLanes&~n,t.memoizedState=ai,r):(n=Eu(e,t,r.children,n),t.memoizedState=null,n):l?(r=Su(e,t,r.children,r.fallback,n),l=t.child,i=e.child.memoizedState,l.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},l.childLanes=e.childLanes&~n,t.memoizedState=ai,r):(n=Eu(e,t,r.children,n),t.memoizedState=null,n)}function yu(e,t,n,r){var i=e.mode,l=e.child;return t={mode:"hidden",children:t},(i&2)===0&&l!==null?(l.childLanes=0,l.pendingProps=t):l=Za(t,i,0,null),n=xn(n,i,r,null),l.return=e,n.return=e,l.sibling=n,e.child=l,n}function Eu(e,t,n,r){var i=e.child;return e=i.sibling,n=Nt(i,{mode:"visible",children:n}),(t.mode&2)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Su(e,t,n,r,i){var l=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return(l&2)===0&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=s,a=n.lastEffect,a!==null?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Nt(a,s),e!==null?r=Nt(e,r):(r=xn(r,l,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Cu(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),pf(e.return,t)}function Ql(e,t,n,r,i,l){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=l)}function ku(e,t,n){var r=t.pendingProps,i=r.revealOrder,l=r.tail;if(_e(e,t,r.children,n),r=ie.current,(r&2)!==0)r=r&1|2,t.flags|=64;else{if(e!==null&&(e.flags&64)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cu(e,n);else if(e.tag===19)Cu(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(le(ie,r),(t.mode&2)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Ui(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ql(t,!1,i,n,l,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Ui(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ql(t,!0,n,null,l,t.lastEffect);break;case"together":Ql(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ut(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qr|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(I(153));if(t.child!==null){for(e=t.child,n=Nt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var Rf,Do,If,Nf;Rf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Do=function(){};If=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,zt(et.current);var l=null;switch(n){case"input":i=so(e,i),r=so(e,r),l=[];break;case"option":i=fo(e,i),r=fo(e,r),l=[];break;case"select":i=ne({},i,{value:void 0}),r=ne({},r,{value:void 0}),l=[];break;case"textarea":i=po(e,i),r=po(e,r),l=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ii)}vo(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(_r.hasOwnProperty(c)?l||(l=[]):(l=l||[]).push(c,null));for(c in r){var u=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&u!==s&&(u!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&s[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(l||(l=[]),l.push(c,n)),n=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(l=l||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(l=l||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(_r.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&ee("scroll",e),l||s===u||(l=[])):typeof u=="object"&&u!==null&&u.$$typeof===ya?u.toString():(l=l||[]).push(c,u))}n&&(l=l||[]).push("style",n);var c=l;(t.updateQueue=c)&&(t.flags|=4)}};Nf=function(e,t,n,r){n!==r&&(t.flags|=4)};function Jn(e,t){if(!tt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function kh(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Oe(t.type)&&Li(),null;case 3:return Rn(),te(Pe),te(Se),za(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(oi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Do(t),null;case 5:ja(t);var i=zt(Fr.current);if(n=t.type,e!==null&&t.stateNode!=null)If(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(I(166));return null}if(e=zt(et.current),oi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[vt]=t,r[Ni]=l,n){case"dialog":ee("cancel",r),ee("close",r);break;case"iframe":case"object":case"embed":ee("load",r);break;case"video":case"audio":for(e=0;e<or.length;e++)ee(or[e],r);break;case"source":ee("error",r);break;case"img":case"image":case"link":ee("error",r),ee("load",r);break;case"details":ee("toggle",r);break;case"input":ks(r,l),ee("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},ee("invalid",r);break;case"textarea":xs(r,l),ee("invalid",r)}vo(n,l),e=null;for(var a in l)l.hasOwnProperty(a)&&(i=l[a],a==="children"?typeof i=="string"?r.textContent!==i&&(e=["children",i]):typeof i=="number"&&r.textContent!==""+i&&(e=["children",""+i]):_r.hasOwnProperty(a)&&i!=null&&a==="onScroll"&&ee("scroll",r));switch(n){case"input":ei(r),ws(r,l,!0);break;case"textarea":ei(r),_s(r);break;case"select":case"option":break;default:typeof l.onClick=="function"&&(r.onclick=Ii)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(a=i.nodeType===9?i:i.ownerDocument,e===ho.html&&(e=wc(n)),e===ho.html?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[vt]=t,e[Ni]=r,Rf(e,t,!1,!1),t.stateNode=e,a=go(n,r),n){case"dialog":ee("cancel",e),ee("close",e),i=r;break;case"iframe":case"object":case"embed":ee("load",e),i=r;break;case"video":case"audio":for(i=0;i<or.length;i++)ee(or[i],e);i=r;break;case"source":ee("error",e),i=r;break;case"img":case"image":case"link":ee("error",e),ee("load",e),i=r;break;case"details":ee("toggle",e),i=r;break;case"input":ks(e,r),i=so(e,r),ee("invalid",e);break;case"option":i=fo(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ne({},r,{value:void 0}),ee("invalid",e);break;case"textarea":xs(e,r),i=po(e,r),ee("invalid",e);break;default:i=r}vo(n,i);var s=i;for(l in s)if(s.hasOwnProperty(l)){var u=s[l];l==="style"?Tc(e,u):l==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&xc(e,u)):l==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Tr(e,u):typeof u=="number"&&Tr(e,""+u):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(_r.hasOwnProperty(l)?u!=null&&l==="onScroll"&&ee("scroll",e):u!=null&&da(e,l,u,a))}switch(n){case"input":ei(e),ws(e,r,!1);break;case"textarea":ei(e),_s(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Pt(r.value));break;case"select":e.multiple=!!r.multiple,l=r.value,l!=null?vn(e,!!r.multiple,l,!1):r.defaultValue!=null&&vn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ii)}rf(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Nf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));n=zt(Fr.current),zt(et.current),oi(t)?(r=t.stateNode,n=t.memoizedProps,r[vt]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[vt]=t,t.stateNode=r)}return null;case 13:return te(ie),r=t.memoizedState,(t.flags&64)!==0?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&oi(t):n=e.memoizedState!==null,r&&!n&&(t.mode&2)!==0&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||(ie.current&1)!==0?he===0&&(he=3):((he===0||he===3)&&(he=4),Ce===null||(Qr&134217727)===0&&(Un&134217727)===0||kn(Ce,Ee))),(r||n)&&(t.flags|=4),null);case 4:return Rn(),Do(t),e===null&&ef(t.stateNode.containerInfo),null;case 10:return Fa(t),null;case 17:return Oe(t.type)&&Li(),null;case 19:if(te(ie),r=t.memoizedState,r===null)return null;if(l=(t.flags&64)!==0,a=r.rendering,a===null)if(l)Jn(r,!1);else{if(he!==0||e!==null&&(e.flags&64)!==0)for(e=t.child;e!==null;){if(a=Ui(e),a!==null){for(t.flags|=64,Jn(r,!1),l=a.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)l=n,e=r,l.flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,a=l.alternate,a===null?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=a.childLanes,l.lanes=a.lanes,l.child=a.child,l.memoizedProps=a.memoizedProps,l.memoizedState=a.memoizedState,l.updateQueue=a.updateQueue,l.type=a.type,e=a.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return le(ie,ie.current&1|2),t.child}e=e.sibling}r.tail!==null&&ye()>Ho&&(t.flags|=64,l=!0,Jn(r,!1),t.lanes=33554432)}else{if(!l)if(e=Ui(a),e!==null){if(t.flags|=64,l=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Jn(r,!0),r.tail===null&&r.tailMode==="hidden"&&!a.alternate&&!tt)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ye()-r.renderingStartTime>Ho&&n!==1073741824&&(t.flags|=64,l=!0,Jn(r,!1),t.lanes=33554432);r.isBackwards?(a.sibling=t.child,t.child=a):(n=r.last,n!==null?n.sibling=a:t.child=a,r.last=a)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ye(),n.sibling=null,t=ie.current,le(ie,l?t&1|2:t&1),n):null;case 23:case 24:return Ga(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(I(156,t.tag))}function wh(e){switch(e.tag){case 1:Oe(e.type)&&Li();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Rn(),te(Pe),te(Se),za(),t=e.flags,(t&64)!==0)throw Error(I(285));return e.flags=t&-4097|64,e;case 5:return ja(e),null;case 13:return te(ie),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return te(ie),null;case 4:return Rn(),null;case 10:return Fa(e),null;case 23:case 24:return Ga(),null;default:return null}}function qa(e,t){try{var n="",r=t;do n+=rp(r),r=r.return;while(r);var i=n}catch(l){i=`
Error generating stack: `+l.message+`
`+l.stack}return{value:e,source:t,stack:i}}function Fo(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var xh=typeof WeakMap=="function"?WeakMap:Map;function Lf(e,t,n){n=kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wi||(Wi=!0,Bo=r),Fo(e,t)},n}function bf(e,t,n){n=kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return Fo(e,t),r(i)}}var l=e.stateNode;return l!==null&&typeof l.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(Je===null?Je=new Set([this]):Je.add(this),Fo(e,t));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}var _h=typeof WeakSet=="function"?WeakSet:Set;function wu(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){Tt(e,n)}else t.current=null}function Th(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Be(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&ba(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(I(163))}function Ph(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;r=i.next,i=i.tag,(i&4)!==0&&(i&1)!==0&&(Hf(n,e),Ah(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Be(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&iu(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}iu(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&rf(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Dc(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(I(163))}function xu(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,r.style.display=_c("display",i)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function _u(e,t){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Ma,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if((r&4)!==0)Hf(t,n);else{r=t;try{i()}catch(l){Tt(r,l)}}n=n.next}while(n!==e)}break;case 1:if(wu(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(l){Tt(t,l)}break;case 5:wu(t);break;case 4:Mf(e,t)}}function Tu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Pu(e){return e.tag===5||e.tag===3||e.tag===4}function Ou(e){e:{for(var t=e.return;t!==null;){if(Pu(t))break e;t=t.return}throw Error(I(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(I(161))}n.flags&16&&(Tr(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Pu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?Uo(e,n,t):jo(e,n,t)}function Uo(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ii));else if(r!==4&&(e=e.child,e!==null))for(Uo(e,t,n),e=e.sibling;e!==null;)Uo(e,t,n),e=e.sibling}function jo(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(jo(e,t,n),e=e.sibling;e!==null;)jo(e,t,n),e=e.sibling}function Mf(e,t){for(var n=t,r=!1,i,l;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(I(160));switch(i=r.stateNode,r.tag){case 5:l=!1;break e;case 3:i=i.containerInfo,l=!0;break e;case 4:i=i.containerInfo,l=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var a=e,s=n,u=s;;)if(_u(a,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===s)break e;for(;u.sibling===null;){if(u.return===null||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}l?(a=i,s=n.stateNode,a.nodeType===8?a.parentNode.removeChild(s):a.removeChild(s)):i.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){i=n.stateNode.containerInfo,l=!0,n.child.return=n,n=n.child;continue}}else if(_u(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Kl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var i=e!==null?e.memoizedProps:r;e=t.type;var l=t.updateQueue;if(t.updateQueue=null,l!==null){for(n[Ni]=r,e==="input"&&r.type==="radio"&&r.name!=null&&Cc(n,r),go(e,i),t=go(e,r),i=0;i<l.length;i+=2){var a=l[i],s=l[i+1];a==="style"?Tc(n,s):a==="dangerouslySetInnerHTML"?xc(n,s):a==="children"?Tr(n,s):da(n,a,s,t)}switch(e){case"input":uo(n,r);break;case"textarea":kc(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,l=r.value,l!=null?vn(n,!!r.multiple,l,!1):e!==!!r.multiple&&(r.defaultValue!=null?vn(n,!!r.multiple,r.defaultValue,!0):vn(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(I(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Dc(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(Ya=ye(),xu(t.child,!0)),Ru(t);return;case 19:Ru(t);return;case 17:return;case 23:case 24:xu(t,t.memoizedState!==null);return}throw Error(I(163))}function Ru(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new _h),t.forEach(function(r){var i=Uh.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Oh(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Rh=Math.ceil,Vi=Zt.ReactCurrentDispatcher,Qa=Zt.ReactCurrentOwner,H=0,Ce=null,se=null,Ee=0,Kt=0,zo=Lt(0),he=0,fl=null,Fn=0,Qr=0,Un=0,Ka=0,$o=null,Ya=0,Ho=1/0;function jn(){Ho=ye()+500}var j=null,Wi=!1,Bo=null,Je=null,It=!1,yr=null,ar=90,Vo=[],Wo=[],ct=null,Er=0,qo=null,Ei=-1,at=0,Si=0,Sr=null,Ci=!1;function Le(){return(H&48)!==0?ye():Ei!==-1?Ei:Ei=ye()}function xt(e){if(e=e.mode,(e&2)===0)return 1;if((e&4)===0)return On()===99?1:2;if(at===0&&(at=Fn),vh.transition!==0){Si!==0&&(Si=$o!==null?$o.pendingLanes:0),e=at;var t=4186112&~Si;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=On(),(H&4)!==0&&e===98?e=Oi(12,at):(e=Ep(e),e=Oi(e,at)),e}function _t(e,t,n){if(50<Er)throw Er=0,qo=null,Error(I(185));if(e=dl(e,t),e===null)return null;il(e,t,n),e===Ce&&(Un|=t,he===4&&kn(e,Ee));var r=On();t===1?(H&8)!==0&&(H&48)===0?Qo(e):(ze(e,n),H===0&&(jn(),it())):((H&4)===0||r!==98&&r!==99||(ct===null?ct=new Set([e]):ct.add(e)),ze(e,n)),$o=e}function dl(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function ze(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes;0<a;){var s=31-Ot(a),u=1<<s,c=l[s];if(c===-1){if((u&r)===0||(u&i)!==0){c=t,rn(u);var d=J;l[s]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);a&=~u}if(r=Ir(e,e===Ce?Ee:0),t=J,r===0)n!==null&&(n!==Bl&&Oo(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==Bl&&Oo(n)}t===15?(n=Qo.bind(null,e),ot===null?(ot=[n],yi=Aa(ul,df)):ot.push(n),n=Bl):t===14?n=Mr(99,Qo.bind(null,e)):(n=Sp(t),n=Mr(n,Af.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Af(e){if(Ei=-1,Si=at=0,(H&48)!==0)throw Error(I(327));var t=e.callbackNode;if(bt()&&e.callbackNode!==t)return null;var n=Ir(e,e===Ce?Ee:0);if(n===0)return null;var r=n,i=H;H|=16;var l=jf();(Ce!==e||Ee!==r)&&(jn(),wn(e,r));do try{Lh();break}catch(s){Uf(e,s)}while(1);if(Da(),Vi.current=l,H=i,se!==null?r=0:(Ce=null,Ee=0,r=he),(Fn&Un)!==0)wn(e,0);else if(r!==0){if(r===2&&(H|=64,e.hydrate&&(e.hydrate=!1,ba(e.containerInfo)),n=Bc(e),n!==0&&(r=sr(e,n))),r===1)throw t=fl,wn(e,0),kn(e,n),ze(e,ye()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(I(345));case 2:At(e);break;case 3:if(kn(e,n),(n&62914560)===n&&(r=Ya+500-ye(),10<r)){if(Ir(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Le(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Gs(At.bind(null,e),r);break}At(e);break;case 4:if(kn(e,n),(n&4186112)===n)break;for(r=e.eventTimes,i=-1;0<n;){var a=31-Ot(n);l=1<<a,a=r[a],a>i&&(i=a),n&=~l}if(n=i,n=ye()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Rh(n/1960))-n,10<n){e.timeoutHandle=Gs(At.bind(null,e),n);break}At(e);break;case 5:At(e);break;default:throw Error(I(329))}}return ze(e,ye()),e.callbackNode===t?Af.bind(null,e):null}function kn(e,t){for(t&=~Ka,t&=~Un,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ot(t),r=1<<n;e[n]=-1,t&=~r}}function Qo(e){if((H&48)!==0)throw Error(I(327));if(bt(),e===Ce&&(e.expiredLanes&Ee)!==0){var t=Ee,n=sr(e,t);(Fn&Un)!==0&&(t=Ir(e,t),n=sr(e,t))}else t=Ir(e,0),n=sr(e,t);if(e.tag!==0&&n===2&&(H|=64,e.hydrate&&(e.hydrate=!1,ba(e.containerInfo)),t=Bc(e),t!==0&&(n=sr(e,t))),n===1)throw n=fl,wn(e,0),kn(e,t),ze(e,ye()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,At(e),ze(e,ye()),null}function Ih(){if(ct!==null){var e=ct;ct=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,ze(t,ye())})}it()}function Df(e,t){var n=H;H|=1;try{return e(t)}finally{H=n,H===0&&(jn(),it())}}function Ff(e,t){var n=H;H&=-2,H|=8;try{return e(t)}finally{H=n,H===0&&(jn(),it())}}function si(e,t){le(zo,Kt),Kt|=t,Fn|=t}function Ga(){Kt=zo.current,te(zo)}function wn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ch(n)),se!==null)for(n=se.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&Li();break;case 3:Rn(),te(Pe),te(Se),za();break;case 5:ja(r);break;case 4:Rn();break;case 13:te(ie);break;case 19:te(ie);break;case 10:Fa(r);break;case 23:case 24:Ga()}n=n.return}Ce=e,se=Nt(e.current,null),Ee=Kt=Fn=t,he=0,fl=null,Ka=Un=Qr=0}function Uf(e,t){do{var n=se;try{if(Da(),vr.current=Bi,ji){for(var r=ae.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ji=!1}if(Ur=0,pe=ge=ae=null,gr=!1,Qa.current=null,n===null||n.return===null){he=1,fl=t,se=null;break}e:{var l=e,a=n.return,s=n,u=t;if(t=Ee,s.flags|=2048,s.firstEffect=s.lastEffect=null,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u;if((s.mode&2)===0){var d=s.alternate;d?(s.updateQueue=d.updateQueue,s.memoizedState=d.memoizedState,s.lanes=d.lanes):(s.updateQueue=null,s.memoizedState=null)}var v=(ie.current&1)!==0,p=a;do{var y;if(y=p.tag===13){var k=p.memoizedState;if(k!==null)y=k.dehydrated!==null;else{var T=p.memoizedProps;y=T.fallback===void 0?!1:T.unstable_avoidThisFallback!==!0?!0:!v}}if(y){var h=p.updateQueue;if(h===null){var f=new Set;f.add(c),p.updateQueue=f}else h.add(c);if((p.mode&2)===0){if(p.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var m=kt(-1,1);m.tag=2,wt(s,m)}s.lanes|=1;break e}u=void 0,s=t;var E=l.pingCache;if(E===null?(E=l.pingCache=new xh,u=new Set,E.set(c,u)):(u=E.get(c),u===void 0&&(u=new Set,E.set(c,u))),!u.has(s)){u.add(s);var g=Fh.bind(null,l,c,s);c.then(g,g)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(p!==null);u=Error((mn(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.

Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}he!==5&&(he=2),u=qa(u,s),p=a;do{switch(p.tag){case 3:l=u,p.flags|=4096,t&=-t,p.lanes|=t;var P=Lf(p,l,t);ru(p,P);break e;case 1:l=u;var w=p.type,_=p.stateNode;if((p.flags&64)===0&&(typeof w.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Je===null||!Je.has(_)))){p.flags|=4096,t&=-t,p.lanes|=t;var S=bf(p,l,t);ru(p,S);break e}}p=p.return}while(p!==null)}$f(n)}catch(O){t=O,se===n&&n!==null&&(se=n=n.return);continue}break}while(1)}function jf(){var e=Vi.current;return Vi.current=Bi,e===null?Bi:e}function sr(e,t){var n=H;H|=16;var r=jf();Ce===e&&Ee===t||wn(e,t);do try{Nh();break}catch(i){Uf(e,i)}while(1);if(Da(),H=n,Vi.current=r,se!==null)throw Error(I(261));return Ce=null,Ee=0,he}function Nh(){for(;se!==null;)zf(se)}function Lh(){for(;se!==null&&!ph();)zf(se)}function zf(e){var t=Bf(e.alternate,e,Kt);e.memoizedProps=e.pendingProps,t===null?$f(e):se=t,Qa.current=null}function $f(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&2048)===0){if(n=kh(n,t,Kt),n!==null){se=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||(Kt&1073741824)!==0||(n.mode&4)===0){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&(e.flags&2048)===0&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(n=wh(t),n!==null){n.flags&=2047,se=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);he===0&&(he=5)}function At(e){var t=On();return Qt(99,bh.bind(null,e,t)),null}function bh(e,t){do bt();while(yr!==null);if((H&48)!==0)throw Error(I(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(I(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,l=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var a=e.eventTimes,s=e.expirationTimes;0<l;){var u=31-Ot(l),c=1<<u;i[u]=0,a[u]=-1,s[u]=-1,l&=~c}if(ct!==null&&(r&24)===0&&ct.has(e)&&ct.delete(e),e===Ce&&(se=Ce=null,Ee=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(i=H,H|=32,Qa.current=null,zl=hi,a=Bs(),wo(a)){if("selectionStart"in a)s={start:a.selectionStart,end:a.selectionEnd};else e:if(s=(s=a.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&c.rangeCount!==0){s=c.anchorNode,l=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch{s=null;break e}var d=0,v=-1,p=-1,y=0,k=0,T=a,h=null;t:for(;;){for(var f;T!==s||l!==0&&T.nodeType!==3||(v=d+l),T!==u||c!==0&&T.nodeType!==3||(p=d+c),T.nodeType===3&&(d+=T.nodeValue.length),(f=T.firstChild)!==null;)h=T,T=f;for(;;){if(T===a)break t;if(h===s&&++y===l&&(v=d),h===u&&++k===c&&(p=d),(f=T.nextSibling)!==null)break;T=h,h=T.parentNode}T=f}s=v===-1||p===-1?null:{start:v,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;$l={focusedElem:a,selectionRange:s},hi=!1,Sr=null,Ci=!1,j=r;do try{Mh()}catch(O){if(j===null)throw Error(I(330));Tt(j,O),j=j.nextEffect}while(j!==null);Sr=null,j=r;do try{for(a=e;j!==null;){var m=j.flags;if(m&16&&Tr(j.stateNode,""),m&128){var E=j.alternate;if(E!==null){var g=E.ref;g!==null&&(typeof g=="function"?g(null):g.current=null)}}switch(m&1038){case 2:Ou(j),j.flags&=-3;break;case 6:Ou(j),j.flags&=-3,Kl(j.alternate,j);break;case 1024:j.flags&=-1025;break;case 1028:j.flags&=-1025,Kl(j.alternate,j);break;case 4:Kl(j.alternate,j);break;case 8:s=j,Mf(a,s);var P=s.alternate;Tu(s),P!==null&&Tu(P)}j=j.nextEffect}}catch(O){if(j===null)throw Error(I(330));Tt(j,O),j=j.nextEffect}while(j!==null);if(g=$l,E=Bs(),m=g.focusedElem,a=g.selectionRange,E!==m&&m&&m.ownerDocument&&Xc(m.ownerDocument.documentElement,m)){for(a!==null&&wo(m)&&(E=a.start,g=a.end,g===void 0&&(g=E),"selectionStart"in m?(m.selectionStart=E,m.selectionEnd=Math.min(g,m.value.length)):(g=(E=m.ownerDocument||document)&&E.defaultView||window,g.getSelection&&(g=g.getSelection(),s=m.textContent.length,P=Math.min(a.start,s),a=a.end===void 0?P:Math.min(a.end,s),!g.extend&&P>a&&(s=a,a=P,P=s),s=Hs(m,P),l=Hs(m,a),s&&l&&(g.rangeCount!==1||g.anchorNode!==s.node||g.anchorOffset!==s.offset||g.focusNode!==l.node||g.focusOffset!==l.offset)&&(E=E.createRange(),E.setStart(s.node,s.offset),g.removeAllRanges(),P>a?(g.addRange(E),g.extend(l.node,l.offset)):(E.setEnd(l.node,l.offset),g.addRange(E)))))),E=[],g=m;g=g.parentNode;)g.nodeType===1&&E.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<E.length;m++)g=E[m],g.element.scrollLeft=g.left,g.element.scrollTop=g.top}hi=!!zl,$l=zl=null,e.current=n,j=r;do try{for(m=e;j!==null;){var w=j.flags;if(w&36&&Ph(m,j.alternate,j),w&128){E=void 0;var _=j.ref;if(_!==null){var S=j.stateNode;switch(j.tag){case 5:E=S;break;default:E=S}typeof _=="function"?_(E):_.current=E}}j=j.nextEffect}}catch(O){if(j===null)throw Error(I(330));Tt(j,O),j=j.nextEffect}while(j!==null);j=null,mh(),H=i}else e.current=n;if(It)It=!1,yr=e,ar=t;else for(j=r;j!==null;)t=j.nextEffect,j.nextEffect=null,j.flags&8&&(w=j,w.sibling=null,w.stateNode=null),j=t;if(r=e.pendingLanes,r===0&&(Je=null),r===1?e===qo?Er++:(Er=0,qo=e):Er=0,n=n.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Ma,n,void 0,(n.current.flags&64)===64)}catch{}if(ze(e,ye()),Wi)throw Wi=!1,e=Bo,Bo=null,e;return(H&8)!==0||it(),null}function Mh(){for(;j!==null;){var e=j.alternate;Ci||Sr===null||((j.flags&8)!==0?Os(j,Sr)&&(Ci=!0):j.tag===13&&Oh(e,j)&&Os(j,Sr)&&(Ci=!0));var t=j.flags;(t&256)!==0&&Th(e,j),(t&512)===0||It||(It=!0,Mr(97,function(){return bt(),null})),j=j.nextEffect}}function bt(){if(ar!==90){var e=97<ar?97:ar;return ar=90,Qt(e,Dh)}return!1}function Ah(e,t){Vo.push(t,e),It||(It=!0,Mr(97,function(){return bt(),null}))}function Hf(e,t){Wo.push(t,e),It||(It=!0,Mr(97,function(){return bt(),null}))}function Dh(){if(yr===null)return!1;var e=yr;if(yr=null,(H&48)!==0)throw Error(I(331));var t=H;H|=32;var n=Wo;Wo=[];for(var r=0;r<n.length;r+=2){var i=n[r],l=n[r+1],a=i.destroy;if(i.destroy=void 0,typeof a=="function")try{a()}catch(u){if(l===null)throw Error(I(330));Tt(l,u)}}for(n=Vo,Vo=[],r=0;r<n.length;r+=2){i=n[r],l=n[r+1];try{var s=i.create;i.destroy=s()}catch(u){if(l===null)throw Error(I(330));Tt(l,u)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return H=t,it(),!0}function Iu(e,t,n){t=qa(n,t),t=Lf(e,t,1),wt(e,t),t=Le(),e=dl(e,1),e!==null&&(il(e,1,t),ze(e,t))}function Tt(e,t){if(e.tag===3)Iu(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){Iu(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Je===null||!Je.has(r))){e=qa(t,e);var i=bf(n,e,1);if(wt(n,i),i=Le(),n=dl(n,1),n!==null)il(n,1,i),ze(n,i);else if(typeof r.componentDidCatch=="function"&&(Je===null||!Je.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function Fh(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Le(),e.pingedLanes|=e.suspendedLanes&n,Ce===e&&(Ee&n)===n&&(he===4||he===3&&(Ee&62914560)===Ee&&500>ye()-Ya?wn(e,0):Ka|=n),ze(e,t)}function Uh(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,(t&2)===0?t=1:(t&4)===0?t=On()===99?1:2:(at===0&&(at=Fn),t=ln(62914560&~at),t===0&&(t=4194304))),n=Le(),e=dl(e,t),e!==null&&(il(e,t,n),ze(e,n))}var Bf;Bf=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Pe.current)We=!0;else if((n&r)!==0)We=(e.flags&16384)!==0;else{switch(We=!1,t.tag){case 3:vu(t),Wl();break;case 5:au(t);break;case 1:Oe(t.type)&&gi(t);break;case 4:No(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;le(bi,i._currentValue),i._currentValue=r;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)!==0?gu(e,t,n):(le(ie,ie.current&1),t=ut(e,t,n),t!==null?t.sibling:null);le(ie,ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&64)!==0){if(r)return ku(e,t,n);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),le(ie,ie.current),r)break;return null;case 23:case 24:return t.lanes=0,ql(e,t,n)}return ut(e,t,n)}else We=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=Pn(t,Se.current),Sn(t,n),i=Ha(null,t,r,e,i,n),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oe(r)){var l=!0;gi(t)}else l=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Ua(t);var a=r.getDerivedStateFromProps;typeof a=="function"&&Di(t,r,a,e),i.updater=cl,t.stateNode=i,i._reactInternals=t,Io(t,r,e,n),t=Ao(null,t,r,!0,l,n)}else t.tag=0,_e(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,l=i._init,i=l(i._payload),t.type=i,l=t.tag=zh(i),e=Be(i,e),l){case 0:t=Mo(null,t,i,e,n);break e;case 1:t=mu(null,t,i,e,n);break e;case 11:t=pu(null,t,i,e,n);break e;case 14:t=hu(null,t,i,Be(i.type,e),r,n);break e}throw Error(I(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Be(r,i),Mo(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Be(r,i),mu(e,t,r,i,n);case 3:if(vu(t),r=t.updateQueue,e===null||r===null)throw Error(I(282));if(r=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,hf(e,t),Ar(t,r,null,n),r=t.memoizedState.element,r===i)Wl(),t=ut(e,t,n);else{if(i=t.stateNode,(l=i.hydrate)&&(gt=En(t.stateNode.containerInfo.firstChild),st=t,l=tt=!0),l){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)l=e[i],l._workInProgressVersionPrimary=e[i+1],Cn.push(l);for(n=yf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else _e(e,t,r,n),Wl();t=t.child}return t;case 5:return au(t),e===null&&Lo(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,a=i.children,To(r,i)?a=null:l!==null&&To(r,l)&&(t.flags|=16),Of(e,t),_e(e,t,a,n),t.child;case 6:return e===null&&Lo(t),null;case 13:return gu(e,t,n);case 4:return No(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fi(t,null,r,n):_e(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Be(r,i),pu(e,t,r,i,n);case 7:return _e(e,t,t.pendingProps,n),t.child;case 8:return _e(e,t,t.pendingProps.children,n),t.child;case 12:return _e(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value;var s=t.type._context;if(le(bi,s._currentValue),s._currentValue=l,a!==null)if(s=a.value,l=De(s,l)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(s,l):1073741823)|0,l===0){if(a.children===i.children&&!Pe.current){t=ut(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var u=s.dependencies;if(u!==null){a=s.child;for(var c=u.firstContext;c!==null;){if(c.context===r&&(c.observedBits&l)!==0){s.tag===1&&(c=kt(-1,n&-n),c.tag=2,wt(s,c)),s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),pf(s.return,n),u.lanes|=n;break}c=c.next}}else a=s.tag===10&&s.type===t.type?null:s.child;if(a!==null)a.return=s;else for(a=s;a!==null;){if(a===t){a=null;break}if(s=a.sibling,s!==null){s.return=a.return,a=s;break}a=a.return}s=a}_e(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,l=t.pendingProps,r=l.children,Sn(t,n),i=je(i,l.unstable_observedBits),r=r(i),t.flags|=1,_e(e,t,r,n),t.child;case 14:return i=t.type,l=Be(i,t.pendingProps),l=Be(i.type,l),hu(e,t,i,l,r,n);case 15:return Pf(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Be(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Oe(r)?(e=!0,gi(t)):e=!1,Sn(t,n),vf(t,r,i),Io(t,r,i,n),Ao(null,t,r,!0,e,n);case 19:return ku(e,t,n);case 23:return ql(e,t,n);case 24:return ql(e,t,n)}throw Error(I(156,t.tag))};function jh(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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Fe(e,t,n,r){return new jh(e,t,n,r)}function Xa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function zh(e){if(typeof e=="function")return Xa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===tl)return 11;if(e===nl)return 14}return 2}function Nt(e,t){var n=e.alternate;return n===null?(n=Fe(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ki(e,t,n,r,i,l){var a=2;if(r=e,typeof e=="function")Xa(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ht:return xn(n.children,i,l,t);case yc:a=8,i|=16;break;case pa:a=8,i|=1;break;case ur:return e=Fe(12,n,t,i|8),e.elementType=ur,e.type=ur,e.lanes=l,e;case cr:return e=Fe(13,n,t,i),e.type=cr,e.elementType=cr,e.lanes=l,e;case xi:return e=Fe(19,n,t,i),e.elementType=xi,e.lanes=l,e;case Ea:return Za(n,i,l,t);case ao:return e=Fe(24,n,t,i),e.elementType=ao,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ha:a=10;break e;case ma:a=9;break e;case tl:a=11;break e;case nl:a=14;break e;case va:a=16,r=null;break e;case ga:a=22;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=Fe(a,n,t,i),t.elementType=e,t.type=r,t.lanes=l,t}function xn(e,t,n,r){return e=Fe(7,e,r,t),e.lanes=n,e}function Za(e,t,n,r){return e=Fe(23,e,r,t),e.elementType=Ea,e.lanes=n,e}function Yl(e,t,n){return e=Fe(6,e,null,t),e.lanes=n,e}function Gl(e,t,n){return t=Fe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $h(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=bl(0),this.expirationTimes=bl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bl(0),this.mutableSourceEagerHydrationData=null}function Hh(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ft,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function qi(e,t,n,r){var i=t.current,l=Le(),a=xt(i);e:if(n){n=n._reactInternals;t:{if(Jt(n)!==n||n.tag!==1)throw Error(I(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Oe(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(I(171))}if(n.tag===1){var u=n.type;if(Oe(u)){n=of(n,u,s);break e}}n=s}else n=Rt;return t.context===null?t.context=n:t.pendingContext=n,t=kt(l,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),wt(i,t),_t(i,a,l),a}function Xl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Nu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ja(e,t){Nu(e,t),(e=e.alternate)&&Nu(e,t)}function Bh(){return null}function es(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new $h(e,t,n!=null&&n.hydrate===!0),t=Fe(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Ua(t),e[Dn]=n.current,ef(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}es.prototype.render=function(e){qi(e,this._internalRoot,null,null)};es.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;qi(null,e,null,function(){t[Dn]=null})};function Kr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vh(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new es(e,0,t?{hydrate:!0}:void 0)}function pl(e,t,n,r,i){var l=n._reactRootContainer;if(l){var a=l._internalRoot;if(typeof i=="function"){var s=i;i=function(){var c=Xl(a);s.call(c)}}qi(t,a,e,i)}else{if(l=n._reactRootContainer=Vh(n,r),a=l._internalRoot,typeof i=="function"){var u=i;i=function(){var c=Xl(a);u.call(c)}}Ff(function(){qi(t,a,e,i)})}return Xl(a)}bc=function(e){if(e.tag===13){var t=Le();_t(e,4,t),Ja(e,4)}};xa=function(e){if(e.tag===13){var t=Le();_t(e,67108864,t),Ja(e,67108864)}};Mc=function(e){if(e.tag===13){var t=Le(),n=xt(e);_t(e,n,t),Ja(e,n)}};Ac=function(e,t){return t()};yo=function(e,t,n){switch(t){case"input":if(uo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=sl(r);if(!i)throw Error(I(90));Sc(r),uo(r,i)}}}break;case"textarea":kc(e,n);break;case"select":t=n.value,t!=null&&vn(e,!!n.multiple,t,!1)}};Ca=Df;Rc=function(e,t,n,r,i){var l=H;H|=4;try{return Qt(98,e.bind(null,t,n,r,i))}finally{H=l,H===0&&(jn(),it())}};ka=function(){(H&49)===0&&(Ih(),bt())};Ic=function(e,t){var n=H;H|=2;try{return e(t)}finally{H=n,H===0&&(jn(),it())}};function Vf(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kr(t))throw Error(I(200));return Hh(e,t,null,n)}var Wh={Events:[Wr,cn,sl,Pc,Oc,bt,{current:!1}]},er={findFiberByHostInstance:jt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},qh={bundleType:er.bundleType,version:er.version,rendererPackageName:er.rendererPackageName,rendererConfig:er.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Zt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Lc(e),e===null?null:e.stateNode},findFiberByHostInstance:er.findFiberByHostInstance||Bh,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var ui=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ui.isDisabled&&ui.supportsFiber)try{Ma=ui.inject(qh),Bt=ui}catch{}}$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Wh;$e.createPortal=Vf;$e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):Error(I(268,Object.keys(e)));return e=Lc(t),e=e===null?null:e.stateNode,e};$e.flushSync=function(e,t){var n=H;if((n&48)!==0)return e(t);H|=1;try{if(e)return Qt(99,e.bind(null,t))}finally{H=n,it()}};$e.hydrate=function(e,t,n){if(!Kr(t))throw Error(I(200));return pl(null,e,t,!0,n)};$e.render=function(e,t,n){if(!Kr(t))throw Error(I(200));return pl(null,e,t,!1,n)};$e.unmountComponentAtNode=function(e){if(!Kr(e))throw Error(I(40));return e._reactRootContainer?(Ff(function(){pl(null,null,e,!1,function(){e._reactRootContainer=null,e[Dn]=null})}),!0):!1};$e.unstable_batchedUpdates=Df;$e.unstable_createPortal=function(e,t){return Vf(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};$e.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Kr(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return pl(e,t,n,!1,r)};$e.version="17.0.2";function Wf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wf)}catch(e){console.error(e)}}Wf(),Ji.exports=$e;var Qh=Ji.exports;function Ko(e,t){return Ko=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Ko(e,t)}function nt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ko(e,t)}var hl={exports:{}},Kh="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Yh=Kh,Gh=Yh;function qf(){}function Qf(){}Qf.resetWarningCache=qf;var Xh=function(){function e(r,i,l,a,s,u){if(u!==Gh){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Qf,resetWarningCache:qf};return n.PropTypes=n,n};hl.exports=Xh();var A=hl.exports;function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(null,arguments)}function ci(e){return e.charAt(0)==="/"}function Zl(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}function Zh(e,t){t===void 0&&(t="");var n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&ci(e),l=t&&ci(t),a=i||l;if(e&&ci(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s;if(r.length){var u=r[r.length-1];s=u==="."||u===".."||u===""}else s=!1;for(var c=0,d=r.length;d>=0;d--){var v=r[d];v==="."?Zl(r,d):v===".."?(Zl(r,d),c++):c&&(Zl(r,d),c--)}if(!a)for(;c--;c)r.unshift("..");a&&r[0]!==""&&(!r[0]||!ci(r[0]))&&r.unshift("");var p=r.join("/");return s&&p.substr(-1)!=="/"&&(p+="/"),p}var Jh=!0,Jl="Invariant failed";function tn(e,t){if(!e){if(Jh)throw new Error(Jl);var n=typeof t=="function"?t():t,r=n?"".concat(Jl,": ").concat(n):Jl;throw new Error(r)}}function Cr(e){return e.charAt(0)==="/"?e:"/"+e}function Lu(e){return e.charAt(0)==="/"?e.substr(1):e}function em(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function Kf(e,t){return em(e,t)?e.substr(t.length):e}function Yf(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function tm(e){var t=e||"/",n="",r="",i=t.indexOf("#");i!==-1&&(r=t.substr(i),t=t.substr(0,i));var l=t.indexOf("?");return l!==-1&&(n=t.substr(l),t=t.substr(0,l)),{pathname:t,search:n==="?"?"":n,hash:r==="#"?"":r}}function Te(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&n!=="?"&&(i+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(i+=r.charAt(0)==="#"?r:"#"+r),i}function Ne(e,t,n,r){var i;typeof e=="string"?(i=tm(e),i.state=t):(i=ke({},e),i.pathname===void 0&&(i.pathname=""),i.search?i.search.charAt(0)!=="?"&&(i.search="?"+i.search):i.search="",i.hash?i.hash.charAt(0)!=="#"&&(i.hash="#"+i.hash):i.hash="",t!==void 0&&i.state===void 0&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(l){throw l instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):l}return n&&(i.key=n),r?i.pathname?i.pathname.charAt(0)!=="/"&&(i.pathname=Zh(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i}function ts(){var e=null;function t(a){return e=a,function(){e===a&&(e=null)}}function n(a,s,u,c){if(e!=null){var d=typeof e=="function"?e(a,s):e;typeof d=="string"?typeof u=="function"?u(d,c):c(!0):c(d!==!1)}else c(!0)}var r=[];function i(a){var s=!0;function u(){s&&a.apply(void 0,arguments)}return r.push(u),function(){s=!1,r=r.filter(function(c){return c!==u})}}function l(){for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];r.forEach(function(c){return c.apply(void 0,s)})}return{setPrompt:t,confirmTransitionTo:n,appendListener:i,notifyListeners:l}}var Gf=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Xf(e,t){t(window.confirm(e))}function nm(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function rm(){return window.navigator.userAgent.indexOf("Trident")===-1}function im(){return window.navigator.userAgent.indexOf("Firefox")===-1}function lm(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var bu="popstate",Mu="hashchange";function Au(){try{return window.history.state||{}}catch{return{}}}function om(e){e===void 0&&(e={}),Gf||tn(!1);var t=window.history,n=nm(),r=!rm(),i=e,l=i.forceRefresh,a=l===void 0?!1:l,s=i.getUserConfirmation,u=s===void 0?Xf:s,c=i.keyLength,d=c===void 0?6:c,v=e.basename?Yf(Cr(e.basename)):"";function p(U){var D=U||{},x=D.key,R=D.state,b=window.location,W=b.pathname,Y=b.search,oe=b.hash,re=W+Y+oe;return v&&(re=Kf(re,v)),Ne(re,R,x)}function y(){return Math.random().toString(36).substr(2,d)}var k=ts();function T(U){ke(M,U),M.length=t.length,k.notifyListeners(M.location,M.action)}function h(U){lm(U)||E(p(U.state))}function f(){E(p(Au()))}var m=!1;function E(U){if(m)m=!1,T();else{var D="POP";k.confirmTransitionTo(U,D,u,function(x){x?T({action:D,location:U}):g(U)})}}function g(U){var D=M.location,x=w.indexOf(D.key);x===-1&&(x=0);var R=w.indexOf(U.key);R===-1&&(R=0);var b=x-R;b&&(m=!0,F(b))}var P=p(Au()),w=[P.key];function _(U){return v+Te(U)}function S(U,D){var x="PUSH",R=Ne(U,D,y(),M.location);k.confirmTransitionTo(R,x,u,function(b){if(!!b){var W=_(R),Y=R.key,oe=R.state;if(n)if(t.pushState({key:Y,state:oe},null,W),a)window.location.href=W;else{var re=w.indexOf(M.location.key),Ie=w.slice(0,re+1);Ie.push(R.key),w=Ie,T({action:x,location:R})}else window.location.href=W}})}function O(U,D){var x="REPLACE",R=Ne(U,D,y(),M.location);k.confirmTransitionTo(R,x,u,function(b){if(!!b){var W=_(R),Y=R.key,oe=R.state;if(n)if(t.replaceState({key:Y,state:oe},null,W),a)window.location.replace(W);else{var re=w.indexOf(M.location.key);re!==-1&&(w[re]=R.key),T({action:x,location:R})}else window.location.replace(W)}})}function F(U){t.go(U)}function $(){F(-1)}function K(){F(1)}var Q=0;function N(U){Q+=U,Q===1&&U===1?(window.addEventListener(bu,h),r&&window.addEventListener(Mu,f)):Q===0&&(window.removeEventListener(bu,h),r&&window.removeEventListener(Mu,f))}var L=!1;function V(U){U===void 0&&(U=!1);var D=k.setPrompt(U);return L||(N(1),L=!0),function(){return L&&(L=!1,N(-1)),D()}}function C(U){var D=k.appendListener(U);return N(1),function(){N(-1),D()}}var M={length:t.length,action:"POP",location:P,createHref:_,push:S,replace:O,go:F,goBack:$,goForward:K,block:V,listen:C};return M}var Du="hashchange",am={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+Lu(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:Lu,decodePath:Cr},slash:{encodePath:Cr,decodePath:Cr}};function Zf(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function tr(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function sm(e){window.location.hash=e}function eo(e){window.location.replace(Zf(window.location.href)+"#"+e)}function um(e){e===void 0&&(e={}),Gf||tn(!1);var t=window.history;im();var n=e,r=n.getUserConfirmation,i=r===void 0?Xf:r,l=n.hashType,a=l===void 0?"slash":l,s=e.basename?Yf(Cr(e.basename)):"",u=am[a],c=u.encodePath,d=u.decodePath;function v(){var D=d(tr());return s&&(D=Kf(D,s)),Ne(D)}var p=ts();function y(D){ke(U,D),U.length=t.length,p.notifyListeners(U.location,U.action)}var k=!1,T=null;function h(D,x){return D.pathname===x.pathname&&D.search===x.search&&D.hash===x.hash}function f(){var D=tr(),x=c(D);if(D!==x)eo(x);else{var R=v(),b=U.location;if(!k&&h(b,R)||T===Te(R))return;T=null,m(R)}}function m(D){if(k)k=!1,y();else{var x="POP";p.confirmTransitionTo(D,x,i,function(R){R?y({action:x,location:D}):E(D)})}}function E(D){var x=U.location,R=_.lastIndexOf(Te(x));R===-1&&(R=0);var b=_.lastIndexOf(Te(D));b===-1&&(b=0);var W=R-b;W&&(k=!0,$(W))}var g=tr(),P=c(g);g!==P&&eo(P);var w=v(),_=[Te(w)];function S(D){var x=document.querySelector("base"),R="";return x&&x.getAttribute("href")&&(R=Zf(window.location.href)),R+"#"+c(s+Te(D))}function O(D,x){var R="PUSH",b=Ne(D,void 0,void 0,U.location);p.confirmTransitionTo(b,R,i,function(W){if(!!W){var Y=Te(b),oe=c(s+Y),re=tr()!==oe;if(re){T=Y,sm(oe);var Ie=_.lastIndexOf(Te(U.location)),lt=_.slice(0,Ie+1);lt.push(Y),_=lt,y({action:R,location:b})}else y()}})}function F(D,x){var R="REPLACE",b=Ne(D,void 0,void 0,U.location);p.confirmTransitionTo(b,R,i,function(W){if(!!W){var Y=Te(b),oe=c(s+Y),re=tr()!==oe;re&&(T=Y,eo(oe));var Ie=_.indexOf(Te(U.location));Ie!==-1&&(_[Ie]=Y),y({action:R,location:b})}})}function $(D){t.go(D)}function K(){$(-1)}function Q(){$(1)}var N=0;function L(D){N+=D,N===1&&D===1?window.addEventListener(Du,f):N===0&&window.removeEventListener(Du,f)}var V=!1;function C(D){D===void 0&&(D=!1);var x=p.setPrompt(D);return V||(L(1),V=!0),function(){return V&&(V=!1,L(-1)),x()}}function M(D){var x=p.appendListener(D);return L(1),function(){L(-1),x()}}var U={length:t.length,action:"POP",location:w,createHref:S,push:O,replace:F,go:$,goBack:K,goForward:Q,block:C,listen:M};return U}function Fu(e,t,n){return Math.min(Math.max(e,t),n)}function cm(e){e===void 0&&(e={});var t=e,n=t.getUserConfirmation,r=t.initialEntries,i=r===void 0?["/"]:r,l=t.initialIndex,a=l===void 0?0:l,s=t.keyLength,u=s===void 0?6:s,c=ts();function d(S){ke(_,S),_.length=_.entries.length,c.notifyListeners(_.location,_.action)}function v(){return Math.random().toString(36).substr(2,u)}var p=Fu(a,0,i.length-1),y=i.map(function(S){return typeof S=="string"?Ne(S,void 0,v()):Ne(S,void 0,S.key||v())}),k=Te;function T(S,O){var F="PUSH",$=Ne(S,O,v(),_.location);c.confirmTransitionTo($,F,n,function(K){if(!!K){var Q=_.index,N=Q+1,L=_.entries.slice(0);L.length>N?L.splice(N,L.length-N,$):L.push($),d({action:F,location:$,index:N,entries:L})}})}function h(S,O){var F="REPLACE",$=Ne(S,O,v(),_.location);c.confirmTransitionTo($,F,n,function(K){!K||(_.entries[_.index]=$,d({action:F,location:$}))})}function f(S){var O=Fu(_.index+S,0,_.entries.length-1),F="POP",$=_.entries[O];c.confirmTransitionTo($,F,n,function(K){K?d({action:F,location:$,index:O}):d()})}function m(){f(-1)}function E(){f(1)}function g(S){var O=_.index+S;return O>=0&&O<_.entries.length}function P(S){return S===void 0&&(S=!1),c.setPrompt(S)}function w(S){return c.appendListener(S)}var _={length:y.length,action:"POP",location:y[p],index:p,entries:y,createHref:k,push:T,replace:h,go:f,goBack:m,goForward:E,canGo:g,block:P,listen:w};return _}var zn={exports:{}},fm=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},Qi=fm;zn.exports=td;zn.exports.parse=ns;zn.exports.compile=hm;zn.exports.tokensToFunction=Jf;zn.exports.tokensToRegExp=ed;var dm=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function ns(e,t){for(var n=[],r=0,i=0,l="",a=t&&t.delimiter||"/",s;(s=dm.exec(e))!=null;){var u=s[0],c=s[1],d=s.index;if(l+=e.slice(i,d),i=d+u.length,c){l+=c[1];continue}var v=e[i],p=s[2],y=s[3],k=s[4],T=s[5],h=s[6],f=s[7];l&&(n.push(l),l="");var m=p!=null&&v!=null&&v!==p,E=h==="+"||h==="*",g=h==="?"||h==="*",P=p||a,w=k||T,_=p||(typeof n[n.length-1]=="string"?n[n.length-1]:"");n.push({name:y||r++,prefix:p||"",delimiter:P,optional:g,repeat:E,partial:m,asterisk:!!f,pattern:w?gm(w):f?".*":pm(P,_)})}return i<e.length&&(l+=e.substr(i)),l&&n.push(l),n}function pm(e,t){return!t||t.indexOf(e)>-1?"[^"+Ht(e)+"]+?":Ht(t)+"|(?:(?!"+Ht(t)+")[^"+Ht(e)+"])+?"}function hm(e,t){return Jf(ns(e,t),t)}function mm(e){return encodeURI(e).replace(/[\/?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function vm(e){return encodeURI(e).replace(/[?#]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function Jf(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)typeof e[r]=="object"&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",is(t)));return function(i,l){for(var a="",s=i||{},u=l||{},c=u.pretty?mm:encodeURIComponent,d=0;d<e.length;d++){var v=e[d];if(typeof v=="string"){a+=v;continue}var p=s[v.name],y;if(p==null)if(v.optional){v.partial&&(a+=v.prefix);continue}else throw new TypeError('Expected "'+v.name+'" to be defined');if(Qi(p)){if(!v.repeat)throw new TypeError('Expected "'+v.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(p.length===0){if(v.optional)continue;throw new TypeError('Expected "'+v.name+'" to not be empty')}for(var k=0;k<p.length;k++){if(y=c(p[k]),!n[d].test(y))throw new TypeError('Expected all "'+v.name+'" to match "'+v.pattern+'", but received `'+JSON.stringify(y)+"`");a+=(k===0?v.prefix:v.delimiter)+y}continue}if(y=v.asterisk?vm(p):c(p),!n[d].test(y))throw new TypeError('Expected "'+v.name+'" to match "'+v.pattern+'", but received "'+y+'"');a+=v.prefix+y}return a}}function Ht(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function gm(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function rs(e,t){return e.keys=t,e}function is(e){return e&&e.sensitive?"":"i"}function ym(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return rs(e,t)}function Em(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(td(e[i],t,n).source);var l=new RegExp("(?:"+r.join("|")+")",is(n));return rs(l,t)}function Sm(e,t,n){return ed(ns(e,n),t,n)}function ed(e,t,n){Qi(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,i=n.end!==!1,l="",a=0;a<e.length;a++){var s=e[a];if(typeof s=="string")l+=Ht(s);else{var u=Ht(s.prefix),c="(?:"+s.pattern+")";t.push(s),s.repeat&&(c+="(?:"+u+c+")*"),s.optional?s.partial?c=u+"("+c+")?":c="(?:"+u+"("+c+"))?":c=u+"("+c+")",l+=c}}var d=Ht(n.delimiter||"/"),v=l.slice(-d.length)===d;return r||(l=(v?l.slice(0,-d.length):l)+"(?:"+d+"(?=$))?"),i?l+="$":l+=r&&v?"":"(?="+d+"|$)",rs(new RegExp("^"+l,is(n)),t)}function td(e,t,n){return Qi(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?ym(e,t):Qi(e)?Em(e,t,n):Sm(e,t,n)}var Cm=zn.exports,nd={exports:{}},Z={};/** @license React v16.13.1
 * react-is.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 de=typeof Symbol=="function"&&Symbol.for,ls=de?Symbol.for("react.element"):60103,os=de?Symbol.for("react.portal"):60106,ml=de?Symbol.for("react.fragment"):60107,vl=de?Symbol.for("react.strict_mode"):60108,gl=de?Symbol.for("react.profiler"):60114,yl=de?Symbol.for("react.provider"):60109,El=de?Symbol.for("react.context"):60110,as=de?Symbol.for("react.async_mode"):60111,Sl=de?Symbol.for("react.concurrent_mode"):60111,Cl=de?Symbol.for("react.forward_ref"):60112,kl=de?Symbol.for("react.suspense"):60113,km=de?Symbol.for("react.suspense_list"):60120,wl=de?Symbol.for("react.memo"):60115,xl=de?Symbol.for("react.lazy"):60116,wm=de?Symbol.for("react.block"):60121,xm=de?Symbol.for("react.fundamental"):60117,_m=de?Symbol.for("react.responder"):60118,Tm=de?Symbol.for("react.scope"):60119;function Me(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ls:switch(e=e.type,e){case as:case Sl:case ml:case gl:case vl:case kl:return e;default:switch(e=e&&e.$$typeof,e){case El:case Cl:case xl:case wl:case yl:return e;default:return t}}case os:return t}}}function rd(e){return Me(e)===Sl}Z.AsyncMode=as;Z.ConcurrentMode=Sl;Z.ContextConsumer=El;Z.ContextProvider=yl;Z.Element=ls;Z.ForwardRef=Cl;Z.Fragment=ml;Z.Lazy=xl;Z.Memo=wl;Z.Portal=os;Z.Profiler=gl;Z.StrictMode=vl;Z.Suspense=kl;Z.isAsyncMode=function(e){return rd(e)||Me(e)===as};Z.isConcurrentMode=rd;Z.isContextConsumer=function(e){return Me(e)===El};Z.isContextProvider=function(e){return Me(e)===yl};Z.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ls};Z.isForwardRef=function(e){return Me(e)===Cl};Z.isFragment=function(e){return Me(e)===ml};Z.isLazy=function(e){return Me(e)===xl};Z.isMemo=function(e){return Me(e)===wl};Z.isPortal=function(e){return Me(e)===os};Z.isProfiler=function(e){return Me(e)===gl};Z.isStrictMode=function(e){return Me(e)===vl};Z.isSuspense=function(e){return Me(e)===kl};Z.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ml||e===Sl||e===gl||e===vl||e===kl||e===km||typeof e=="object"&&e!==null&&(e.$$typeof===xl||e.$$typeof===wl||e.$$typeof===yl||e.$$typeof===El||e.$$typeof===Cl||e.$$typeof===xm||e.$$typeof===_m||e.$$typeof===Tm||e.$$typeof===wm)};Z.typeOf=Me;nd.exports=Z;function _l(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var id=nd.exports,Pm={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Om={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ld={};ld[id.ForwardRef]=Pm;ld[id.Memo]=Om;var to=1073741823,Uu=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:{};function Rm(){var e="__global_unique_id__";return Uu[e]=(Uu[e]||0)+1}function Im(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Nm(e){var t=[];return{on:function(r){t.push(r)},off:function(r){t=t.filter(function(i){return i!==r})},get:function(){return e},set:function(r,i){e=r,t.forEach(function(l){return l(e,i)})}}}function Lm(e){return Array.isArray(e)?e[0]:e}function bm(e,t){var n,r,i="__create-react-context-"+Rm()+"__",l=function(s){nt(u,s);function u(){for(var d,v=arguments.length,p=new Array(v),y=0;y<v;y++)p[y]=arguments[y];return d=s.call.apply(s,[this].concat(p))||this,d.emitter=Nm(d.props.value),d}var c=u.prototype;return c.getChildContext=function(){var v;return v={},v[i]=this.emitter,v},c.componentWillReceiveProps=function(v){if(this.props.value!==v.value){var p=this.props.value,y=v.value,k;Im(p,y)?k=0:(k=typeof t=="function"?t(p,y):to,k|=0,k!==0&&this.emitter.set(v.value,k))}},c.render=function(){return this.props.children},u}(o.Component);l.childContextTypes=(n={},n[i]=A.object.isRequired,n);var a=function(s){nt(u,s);function u(){for(var d,v=arguments.length,p=new Array(v),y=0;y<v;y++)p[y]=arguments[y];return d=s.call.apply(s,[this].concat(p))||this,d.observedBits=void 0,d.state={value:d.getValue()},d.onUpdate=function(k,T){var h=d.observedBits|0;(h&T)!==0&&d.setState({value:d.getValue()})},d}var c=u.prototype;return c.componentWillReceiveProps=function(v){var p=v.observedBits;this.observedBits=p==null?to:p},c.componentDidMount=function(){this.context[i]&&this.context[i].on(this.onUpdate);var v=this.props.observedBits;this.observedBits=v==null?to:v},c.componentWillUnmount=function(){this.context[i]&&this.context[i].off(this.onUpdate)},c.getValue=function(){return this.context[i]?this.context[i].get():e},c.render=function(){return Lm(this.props.children)(this.state.value)},u}(o.Component);return a.contextTypes=(r={},r[i]=A.object,r),{Provider:l,Consumer:a}}var Mm=o.createContext||bm,od=function(t){var n=Mm();return n.displayName=t,n},Am=od("Router-History"),In=od("Router"),Tl=function(e){nt(t,e),t.computeRootMatch=function(i){return{path:"/",url:"/",params:{},isExact:i==="/"}};function t(r){var i;return i=e.call(this,r)||this,i.state={location:r.history.location},i._isMounted=!1,i._pendingLocation=null,r.staticContext||(i.unlisten=r.history.listen(function(l){i._pendingLocation=l})),i}var n=t.prototype;return n.componentDidMount=function(){var i=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(l){i._isMounted&&i.setState({location:l})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.createElement(In.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.createElement(Am.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.Component);o.Component;o.Component;var ju={},Dm=1e4,zu=0;function Fm(e,t){var n=""+t.end+t.strict+t.sensitive,r=ju[n]||(ju[n]={});if(r[e])return r[e];var i=[],l=Cm(e,i,t),a={regexp:l,keys:i};return zu<Dm&&(r[e]=a,zu++),a}function ss(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,l=i===void 0?!1:i,a=n.strict,s=a===void 0?!1:a,u=n.sensitive,c=u===void 0?!1:u,d=[].concat(r);return d.reduce(function(v,p){if(!p&&p!=="")return null;if(v)return v;var y=Fm(p,{end:l,strict:s,sensitive:c}),k=y.regexp,T=y.keys,h=k.exec(e);if(!h)return null;var f=h[0],m=h.slice(1),E=e===f;return l&&!E?null:{path:p,url:p==="/"&&f===""?"/":f,isExact:E,params:T.reduce(function(g,P,w){return g[P.name]=m[w],g},{})}},null)}function Um(e){return o.Children.count(e)===0}var nr=function(e){nt(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var i=this;return o.createElement(In.Consumer,null,function(l){l||tn(!1);var a=i.props.location||l.location,s=i.props.computedMatch?i.props.computedMatch:i.props.path?ss(a.pathname,i.props):l.match,u=ke({},l,{location:a,match:s}),c=i.props,d=c.children,v=c.component,p=c.render;return Array.isArray(d)&&Um(d)&&(d=null),o.createElement(In.Provider,{value:u},u.match?d?typeof d=="function"?d(u):d:v?o.createElement(v,u):p?p(u):null:typeof d=="function"?d(u):null)})},t}(o.Component);function us(e){return e.charAt(0)==="/"?e:"/"+e}function jm(e,t){return e?ke({},t,{pathname:us(e)+t.pathname}):t}function zm(e,t){if(!e)return t;var n=us(e);return t.pathname.indexOf(n)!==0?t:ke({},t,{pathname:t.pathname.substr(n.length)})}function $u(e){return typeof e=="string"?e:Te(e)}function no(e){return function(){tn(!1)}}function Hu(){}o.Component;var $m=function(e){nt(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){var i=this;return o.createElement(In.Consumer,null,function(l){l||tn(!1);var a=i.props.location||l.location,s,u;return o.Children.forEach(i.props.children,function(c){if(u==null&&o.isValidElement(c)){s=c;var d=c.props.path||c.props.from;u=d?ss(a.pathname,ke({},c.props,{path:d})):l.match}}),u?o.cloneElement(s,{location:a,computedMatch:u}):null})},t}(o.Component);o.useContext;var Hm=function(e){nt(t,e);function t(){for(var r,i=arguments.length,l=new Array(i),a=0;a<i;a++)l[a]=arguments[a];return r=e.call.apply(e,[this].concat(l))||this,r.history=om(r.props),r}var n=t.prototype;return n.render=function(){return o.createElement(Tl,{history:this.history,children:this.props.children})},t}(o.Component);o.Component;var Yo=function(t,n){return typeof t=="function"?t(n):t},Go=function(t,n){return typeof t=="string"?Ne(t,null,null,n):t},cs=function(t){return t},Nn=o.forwardRef;typeof Nn=="undefined"&&(Nn=cs);function Bm(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Vm=Nn(function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,l=_l(e,["innerRef","navigate","onClick"]),a=l.target,s=ke({},l,{onClick:function(c){try{i&&i(c)}catch(d){throw c.preventDefault(),d}!c.defaultPrevented&&c.button===0&&(!a||a==="_self")&&!Bm(c)&&(c.preventDefault(),r())}});return cs!==Nn?s.ref=t||n:s.ref=n,o.createElement("a",s)}),Wm=Nn(function(e,t){var n=e.component,r=n===void 0?Vm:n,i=e.replace,l=e.to,a=e.innerRef,s=_l(e,["component","replace","to","innerRef"]);return o.createElement(In.Consumer,null,function(u){u||tn(!1);var c=u.history,d=Go(Yo(l,u.location),u.location),v=d?c.createHref(d):"",p=ke({},s,{href:v,navigate:function(){var k=Yo(l,u.location),T=Te(u.location)===Te(Go(k)),h=i||T?c.replace:c.push;h(k)}});return cs!==Nn?p.ref=t||a:p.innerRef=a,o.createElement(r,p)})}),ad=function(t){return t},Ki=o.forwardRef;typeof Ki=="undefined"&&(Ki=ad);function qm(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(r){return r}).join(" ")}Ki(function(e,t){var n=e["aria-current"],r=n===void 0?"page":n,i=e.activeClassName,l=i===void 0?"active":i,a=e.activeStyle,s=e.className,u=e.exact,c=e.isActive,d=e.location,v=e.sensitive,p=e.strict,y=e.style,k=e.to,T=e.innerRef,h=_l(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.createElement(In.Consumer,null,function(f){f||tn(!1);var m=d||f.location,E=Go(Yo(k,m),m),g=E.pathname,P=g&&g.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),w=P?ss(m.pathname,{path:P,exact:u,sensitive:v,strict:p}):null,_=!!(c?c(w,m):w),S=typeof s=="function"?s(_):s,O=typeof y=="function"?y(_):y;_&&(S=qm(S,l),O=ke({},O,a));var F=ke({"aria-current":_&&r||null,className:S,style:O,to:E},h);return ad!==Ki?F.ref=t||T:F.innerRef=T,o.createElement(Wm,F)})});function sd(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=sd(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Vt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=sd(e))&&(r&&(r+=" "),r+=t);return r}function Yt(){return Yt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yt.apply(this,arguments)}function Qm(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function jr(e){return typeof e=="number"&&!isNaN(e)}function rr(e){return typeof e=="boolean"}function zr(e){return typeof e=="string"}function Re(e){return typeof e=="function"}function wi(e){return zr(e)||Re(e)?e:null}function Xo(e){return e===0||e}function Km(e,t){return e===!1||jr(e)&&e>0?e:t}var ud=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function ro(e){return z.exports.isValidElement(e)||zr(e)||Re(e)||jr(e)}var cd={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},Mt={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default",DARK:"dark"};function Ym(e,t,n){n===void 0&&(n=300);var r=e.scrollHeight,i=e.style;requestAnimationFrame(function(){i.minHeight="initial",i.height=r+"px",i.transition="all "+n+"ms",requestAnimationFrame(function(){i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)})})}function Gm(e){var t=e.enter,n=e.exit,r=e.appendPosition,i=r===void 0?!1:r,l=e.collapse,a=l===void 0?!0:l,s=e.collapseDuration,u=s===void 0?300:s;return function(d){var v=d.children,p=d.position,y=d.preventExitTransition,k=d.done,T=d.nodeRef,h=d.isIn,f=i?t+"--"+p:t,m=i?n+"--"+p:n,E=z.exports.useRef(),g=z.exports.useRef(0);z.exports.useLayoutEffect(function(){P()},[]),z.exports.useEffect(function(){h||(y?S():_())},[h]);function P(){var O=T.current;E.current=O.className,O.className+=" "+f,O.addEventListener("animationend",w)}function w(){var O=T.current;O.removeEventListener("animationend",w),g.current===0&&(O.className=E.current)}function _(){g.current=1;var O=T.current;O.className+=" "+m,O.addEventListener("animationend",S)}function S(){var O=T.current;O.removeEventListener("animationend",S),a?Ym(O,k,u):k()}return o.createElement(o.Fragment,null,v)}}var qe={list:new Map,emitQueue:new Map,on:function(t,n){return this.list.has(t)||this.list.set(t,[]),this.list.get(t).push(n),this},off:function(t,n){if(n){var r=this.list.get(t).filter(function(i){return i!==n});return this.list.set(t,r),this}return this.list.delete(t),this},cancelEmit:function(t){var n=this.emitQueue.get(t);return n&&(n.forEach(clearTimeout),this.emitQueue.delete(t)),this},emit:function(t){for(var n=this,r=arguments.length,i=new Array(r>1?r-1:0),l=1;l<r;l++)i[l-1]=arguments[l];this.list.has(t)&&this.list.get(t).forEach(function(a){var s=setTimeout(function(){a.apply(void 0,i)},0);n.emitQueue.has(t)||n.emitQueue.set(t,[]),n.emitQueue.get(t).push(s)})}};function pn(e,t){t===void 0&&(t=!1);var n=z.exports.useRef(e);return z.exports.useEffect(function(){t&&(n.current=e)}),n.current}function Xm(e,t){switch(t.type){case 0:return[].concat(e,[t.toastId]).filter(function(n){return n!==t.staleId});case 1:return Xo(t.toastId)?e.filter(function(n){return n!==t.toastId}):[]}}function Zm(e){var t=z.exports.useReducer(function(g){return g+1},0),n=t[1],r=z.exports.useReducer(Xm,[]),i=r[0],l=r[1],a=z.exports.useRef(null),s=pn(0),u=pn([]),c=pn({}),d=pn({toastKey:1,displayedToast:0,props:e,containerId:null,isToastActive:v,getToast:function(P){return c[P]||null}});z.exports.useEffect(function(){return d.containerId=e.containerId,qe.cancelEmit(3).on(0,h).on(1,function(g){return a.current&&y(g)}).on(5,p).emit(2,d),function(){return qe.emit(3,d)}},[]),z.exports.useEffect(function(){d.isToastActive=v,d.displayedToast=i.length,qe.emit(4,i.length,e.containerId)},[i]),z.exports.useEffect(function(){d.props=e});function v(g){return i.indexOf(g)!==-1}function p(g){var P=g.containerId,w=d.props.limit;w&&(!P||d.containerId===P)&&(s-=u.length,u=[])}function y(g){l({type:1,toastId:g})}function k(){var g=u.shift(),P=g.toastContent,w=g.toastProps,_=g.staleId;f(P,w,_)}function T(g){var P=g.containerId,w=g.toastId,_=g.updateId;return!!(!a.current||d.props.enableMultiContainer&&P!==d.props.containerId||c[w]&&_==null)}function h(g,P){var w=P.delay,_=P.staleId,S=Qm(P,["delay","staleId"]);if(!(!ro(g)||T(S))){var O=S.toastId,F=S.updateId,$=d.props,K=function(){return y(O)},Q=S.updateId==null;Q&&s++;var N={toastId:O,updateId:F,isIn:!1,key:S.key||d.toastKey++,type:S.type,closeToast:K,closeButton:S.closeButton,rtl:$.rtl,position:S.position||$.position,transition:S.transition||$.transition,className:wi(S.className||$.toastClassName),bodyClassName:wi(S.bodyClassName||$.bodyClassName),style:S.style||$.toastStyle,bodyStyle:S.bodyStyle||$.bodyStyle,onClick:S.onClick||$.onClick,pauseOnHover:rr(S.pauseOnHover)?S.pauseOnHover:$.pauseOnHover,pauseOnFocusLoss:rr(S.pauseOnFocusLoss)?S.pauseOnFocusLoss:$.pauseOnFocusLoss,draggable:rr(S.draggable)?S.draggable:$.draggable,draggablePercent:jr(S.draggablePercent)?S.draggablePercent:$.draggablePercent,draggableDirection:S.draggableDirection||$.draggableDirection,closeOnClick:rr(S.closeOnClick)?S.closeOnClick:$.closeOnClick,progressClassName:wi(S.progressClassName||$.progressClassName),progressStyle:S.progressStyle||$.progressStyle,autoClose:Km(S.autoClose,$.autoClose),hideProgressBar:rr(S.hideProgressBar)?S.hideProgressBar:$.hideProgressBar,progress:S.progress,role:zr(S.role)?S.role:$.role,deleteToast:function(){m(O)}};Re(S.onOpen)&&(N.onOpen=S.onOpen),Re(S.onClose)&&(N.onClose=S.onClose),N.draggableDirection==="y"&&N.draggablePercent===80&&(N.draggablePercent*=1.5);var L=$.closeButton;S.closeButton===!1||ro(S.closeButton)?L=S.closeButton:S.closeButton===!0&&(L=ro($.closeButton)?$.closeButton:!0),N.closeButton=L;var V=g;z.exports.isValidElement(g)&&!zr(g.type)?V=z.exports.cloneElement(g,{closeToast:K,toastProps:N}):Re(g)&&(V=g({closeToast:K,toastProps:N})),$.limit&&$.limit>0&&s>$.limit&&Q?u.push({toastContent:V,toastProps:N,staleId:_}):jr(w)&&w>0?setTimeout(function(){f(V,N,_)},w):f(V,N,_)}}function f(g,P,w){var _=P.toastId;w&&delete c[w],c[_]={content:g,props:P},l({type:0,toastId:_,staleId:w})}function m(g){delete c[g];var P=u.length;if(s=Xo(g)?s-1:s-d.displayedToast,s<0&&(s=0),P>0){var w=Xo(g)?1:d.props.limit;if(P===1||w===1)d.displayedToast++,k();else{var _=w>P?P:w;d.displayedToast=_;for(var S=0;S<_;S++)k()}}else n()}function E(g){for(var P={},w=e.newestOnTop?Object.keys(c).reverse():Object.keys(c),_=0;_<w.length;_++){var S=c[w[_]],O=S.props.position;P[O]||(P[O]=[]),P[O].push(S)}return Object.keys(P).map(function(F){return g(F,P[F])})}return{getToastToRender:E,collection:c,containerRef:a,isToastActive:v}}function Bu(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Vu(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Jm(e){var t=z.exports.useState(!0),n=t[0],r=t[1],i=z.exports.useState(!1),l=i[0],a=i[1],s=z.exports.useRef(null),u=pn({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null}),c=pn(e,!0),d=e.autoClose,v=e.pauseOnHover,p=e.closeToast,y=e.onClick,k=e.closeOnClick;z.exports.useEffect(function(){return Re(e.onOpen)&&e.onOpen(z.exports.isValidElement(e.children)&&e.children.props),function(){Re(c.onClose)&&c.onClose(z.exports.isValidElement(c.children)&&c.children.props)}},[]),z.exports.useEffect(function(){return e.draggable&&P(),function(){e.draggable&&w()}},[e.draggable]),z.exports.useEffect(function(){return e.pauseOnFocusLoss&&E(),function(){e.pauseOnFocusLoss&&g()}},[e.pauseOnFocusLoss]);function T(F){if(e.draggable){var $=s.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=$.getBoundingClientRect(),$.style.transition="",u.x=Bu(F.nativeEvent),u.y=Vu(F.nativeEvent),e.draggableDirection==="x"?(u.start=u.x,u.removalDistance=$.offsetWidth*(e.draggablePercent/100)):(u.start=u.y,u.removalDistance=$.offsetHeight*(e.draggablePercent/100))}}function h(){if(u.boundingRect){var F=u.boundingRect,$=F.top,K=F.bottom,Q=F.left,N=F.right;e.pauseOnHover&&u.x>=Q&&u.x<=N&&u.y>=$&&u.y<=K?m():f()}}function f(){r(!0)}function m(){r(!1)}function E(){document.hasFocus()||m(),window.addEventListener("focus",f),window.addEventListener("blur",m)}function g(){window.removeEventListener("focus",f),window.removeEventListener("blur",m)}function P(){document.addEventListener("mousemove",_),document.addEventListener("mouseup",S),document.addEventListener("touchmove",_),document.addEventListener("touchend",S)}function w(){document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",S),document.removeEventListener("touchmove",_),document.removeEventListener("touchend",S)}function _(F){if(u.canDrag){F.preventDefault();var $=s.current;n&&m(),u.x=Bu(F),u.y=Vu(F),e.draggableDirection==="x"?u.delta=u.x-u.start:u.delta=u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),$.style.transform="translate"+e.draggableDirection+"("+u.delta+"px)",$.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance))}}function S(){var F=s.current;if(u.canDrag){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance){a(!0),e.closeToast();return}F.style.transition="transform 0.2s, opacity 0.2s",F.style.transform="translate"+e.draggableDirection+"(0)",F.style.opacity="1"}}var O={onMouseDown:T,onTouchStart:T,onMouseUp:h,onTouchEnd:h};return d&&v&&(O.onMouseEnter=m,O.onMouseLeave=f),k&&(O.onClick=function(F){y&&y(F),u.canCloseOnClick&&p()}),{playToast:f,pauseToast:m,isRunning:n,preventExitTransition:l,toastRef:s,eventHandlers:O}}function fd(e){var t=e.closeToast,n=e.type,r=e.ariaLabel,i=r===void 0?"close":r;return z.exports.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(a){a.stopPropagation(),t(a)},"aria-label":i},z.exports.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},z.exports.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function dd(e){var t,n,r=e.delay,i=e.isRunning,l=e.closeToast,a=e.type,s=e.hide,u=e.className,c=e.style,d=e.controlledProgress,v=e.progress,p=e.rtl,y=e.isIn,k=Yt({},c,{animationDuration:r+"ms",animationPlayState:i?"running":"paused",opacity:s?0:1});d&&(k.transform="scaleX("+v+")");var T=Vt("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+a,(t={},t["Toastify__progress-bar--rtl"]=p,t)),h=Re(u)?u({rtl:p,type:a,defaultClassName:T}):Vt(T,u),f=(n={},n[d&&v>=1?"onTransitionEnd":"onAnimationEnd"]=d&&v<1?null:function(){y&&l()},n);return z.exports.createElement("div",Object.assign({role:"progressbar","aria-hidden":s?"true":"false","aria-label":"notification timer",className:h,style:k},f))}dd.defaultProps={type:Mt.DEFAULT,hide:!1};var ev=function(t){var n,r=Jm(t),i=r.isRunning,l=r.preventExitTransition,a=r.toastRef,s=r.eventHandlers,u=t.closeButton,c=t.children,d=t.autoClose,v=t.onClick,p=t.type,y=t.hideProgressBar,k=t.closeToast,T=t.transition,h=t.position,f=t.className,m=t.style,E=t.bodyClassName,g=t.bodyStyle,P=t.progressClassName,w=t.progressStyle,_=t.updateId,S=t.role,O=t.progress,F=t.rtl,$=t.toastId,K=t.deleteToast,Q=t.isIn,N=Vt("Toastify__toast","Toastify__toast--"+p,(n={},n["Toastify__toast--rtl"]=F,n)),L=Re(f)?f({rtl:F,position:h,type:p,defaultClassName:N}):Vt(N,f),V=!!O;function C(M){if(!!M){var U={closeToast:k,type:p};if(Re(M))return M(U);if(z.exports.isValidElement(M))return z.exports.cloneElement(M,U)}}return z.exports.createElement(T,{isIn:Q,done:K,position:h,preventExitTransition:l,nodeRef:a},z.exports.createElement("div",Object.assign({id:$,onClick:v,className:L},s,{style:m,ref:a}),z.exports.createElement("div",Object.assign({},Q&&{role:S},{className:Re(E)?E({type:p}):Vt("Toastify__toast-body",E),style:g}),c),C(u),(d||V)&&z.exports.createElement(dd,Object.assign({},_&&!V?{key:"pb-"+_}:{},{rtl:F,delay:d,isRunning:i,isIn:Q,closeToast:k,hide:y,type:p,style:w,className:P,controlledProgress:V,progress:O}))))},tv=Gm({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),pd=function(t){var n=Zm(t),r=n.getToastToRender,i=n.containerRef,l=n.isToastActive,a=t.className,s=t.style,u=t.rtl,c=t.containerId;function d(v){var p,y=Vt("Toastify__toast-container","Toastify__toast-container--"+v,(p={},p["Toastify__toast-container--rtl"]=u,p));return Re(a)?a({position:v,rtl:u,defaultClassName:y}):Vt(y,wi(a))}return z.exports.createElement("div",{ref:i,className:"Toastify",id:c},r(function(v,p){var y=p.length===0?Yt({},s,{pointerEvents:"none"}):Yt({},s);return z.exports.createElement("div",{className:d(v),style:y,key:"container-"+v},p.map(function(k){var T=k.content,h=k.props;return z.exports.createElement(ev,Object.assign({},h,{isIn:l(h.toastId),key:"toast-"+h.key,closeButton:h.closeButton===!0?fd:h.closeButton}),T)}))}))};pd.defaultProps={position:cd.TOP_RIGHT,transition:tv,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:fd,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert"};var _n=new Map,Zo,kr,hd,Jo=[],ea=!1;function nv(){return _n.size>0}function rv(e,t){var n=t.containerId,r=_n.get(n||Zo);return r?r.getToast(e):null}function md(){return Math.random().toString(36).substr(2,9)}function iv(e){return e&&(zr(e.toastId)||jr(e.toastId))?e.toastId:md()}function fs(e,t){return nv()?qe.emit(0,e,t):(Jo.push({content:e,options:t}),ea&&ud&&(ea=!1,kr=document.createElement("div"),document.body.appendChild(kr),Ji.exports.render(z.exports.createElement(pd,Object.assign({},hd)),kr))),t.toastId}function vd(e,t){return Yt({},t,{type:t&&t.type||e,toastId:iv(t)})}var Yr=function(t){return function(n,r){return fs(n,vd(t,r))}},q=function(t,n){return fs(t,vd(Mt.DEFAULT,n))};q.success=Yr(Mt.SUCCESS);q.info=Yr(Mt.INFO);q.error=Yr(Mt.ERROR);q.warning=Yr(Mt.WARNING);q.dark=Yr(Mt.DARK);q.warn=q.warning;q.dismiss=function(e){return qe.emit(1,e)};q.clearWaitingQueue=function(e){return e===void 0&&(e={}),qe.emit(5,e)};q.isActive=function(e){var t=!1;return _n.forEach(function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t};q.update=function(e,t){t===void 0&&(t={}),setTimeout(function(){var n=rv(e,t);if(n){var r=n.props,i=n.content,l=Yt({},r,t,{toastId:t.toastId||e,updateId:md()});l.toastId!==e&&(l.staleId=e);var a=l.render||i;delete l.render,fs(a,l)}},0)};q.done=function(e){q.update(e,{progress:1})};q.onChange=function(e){return Re(e)&&qe.on(4,e),function(){Re(e)&&qe.off(4,e)}};q.configure=function(e){e===void 0&&(e={}),ea=!0,hd=e};q.POSITION=cd;q.TYPE=Mt;qe.on(2,function(e){Zo=e.containerId||e,_n.set(Zo,e),Jo.forEach(function(t){qe.emit(0,t.content,t.options)}),Jo=[]}).on(3,function(e){_n.delete(e.containerId||e),_n.size===0&&qe.off(0).off(1).off(5),ud&&kr&&document.body.removeChild(kr)});class gd extends z.exports.Component{constructor(){super(...arguments);X(this,"onClick",()=>{const{label:n,onClick:r}=this.props;r(n)})}render(){const{onClick:n,props:{activeTab:r,label:i}}=this;let l="tab-list-item";return r===i&&(l+=" tab-list-active"),o.createElement("li",{className:l,onClick:n},i)}}X(gd,"propTypes",{activeTab:A.string.isRequired,label:A.string.isRequired,onClick:A.func.isRequired});class yd extends z.exports.Component{constructor(n){super(n);X(this,"onClickTabItem",n=>{this.setState({activeTab:n}),window.history.pushState(n,n,"/"+n)});this.state={activeTab:this.props.currentTab}}render(){const{onClickTabItem:n,props:{children:r},state:{activeTab:i}}=this;return o.createElement("div",{className:"tabs"},o.createElement("ol",{className:"tab-list"}," ",r.map(l=>{const{label:a}=l.props;return o.createElement(gd,{activeTab:i,key:a,label:a,onClick:n})})),o.createElement("div",{className:"tab-content"}," ",r.map(l=>{if(l.props.label===i)return l.props.children})))}}X(yd,"propTypes",{children:A.instanceOf(Array).isRequired,currentTab:A.string.isRequired});const io="/api",lv="/version",Wu="/config",ov="/streams",av="/sources",sv="/sinks",qu="/ptp/config",uv="/ptp/status",lo="/source",cv="/sdp",oo="/sink",fv="/status",dv="/browse/sources/all",pv={credentials:"same-origin",redirect:"error",headers:new Headers({"X-USER-ID":"test"})};class ce{static getBaseUrl(){return location.protocol+"//"+location.host}static doFetch(t,n={}){return n.method===void 0&&(n.method="GET"),fetch(this.getBaseUrl()+io+t,Object.assign({},pv,n)).then(r=>r.ok?r:(console.log(this.getBaseUrl()+io+t+" HTTP "+r.status),Promise.reject(Error("HTTP "+r.status)))).catch(r=>(console.log(this.getBaseUrl()+io+t+" failed: "+r.message),Promise.reject(Error(r.message))))}static getVersion(){return this.doFetch(lv).catch(t=>(q.error("Config get failed: "+t.message),Promise.reject(Error(t.message))))}static getConfig(){return this.doFetch(Wu).catch(t=>(q.error("Config get failed: "+t.message),Promise.reject(Error(t.message))))}static setConfig(t,n,r,i,l,a,s,u,c,d,v,p,y,k,T,h,f,m,E,g){return this.doFetch(Wu,{body:JSON.stringify({log_severity:parseInt(t,10),syslog_proto:n,syslog_server:r,rtp_mcast_base:i,rtp_port:parseInt(l,10),rtsp_port:parseInt(a,10),playout_delay:parseInt(s,10),tic_frame_size_at_1fs:parseInt(u,10),sample_rate:parseInt(c,10),max_tic_frame_size:parseInt(d,10),sap_mcast_addr:v,sap_interval:parseInt(p,10),custom_node_id:k,mdns_enabled:y,auto_sinks_update:T,streamer_enabled:h,streamer_channels:parseInt(f,10),streamer_files_num:parseInt(m,10),streamer_file_duration:parseInt(E,10),streamer_player_buffer_files_num:parseInt(g,10)}),method:"POST"}).catch(P=>(q.error("Config set failed: "+P.message),Promise.reject(Error(P.message))))}static getPTPConfig(){return this.doFetch(qu).catch(t=>(q.error("PTP config get failed: "+t.message),Promise.reject(Error(t.message))))}static setPTPConfig(t,n){return this.doFetch(qu,{body:JSON.stringify({domain:parseInt(t,10),dscp:parseInt(n,10)}),method:"POST"}).catch(r=>(q.error("PTP config set failed: "+r.message),Promise.reject(Error(r.message))))}static addSource(t,n,r,i,l,a,s,u,c,d,v,p,y){return this.doFetch(lo+"/"+t,{body:JSON.stringify({enabled:n,name:r,io:i,codec:a,address:s,map:p,max_samples_per_packet:parseInt(l,10),ttl:parseInt(u,10),payload_type:parseInt(c,10),dscp:parseInt(d,10),refclk_ptp_traceable:v}),method:"PUT"}).catch(k=>(q.error((y?"Update Source failed: ":"Add Source failed: ")+k.message),Promise.reject(Error(k.message))))}static removeSource(t){return this.doFetch(lo+"/"+t,{method:"DELETE"}).catch(n=>(q.error("Remove Source failed: "+n.message),Promise.reject(Error(n.message))))}static getSourceSDP(t){return this.doFetch(lo+cv+"/"+t,{method:"GET"}).catch(n=>(q.error("Get Source SDP failed: "+n.message),Promise.reject(Error(n.message))))}static getSinkStatus(t){return this.doFetch(oo+fv+"/"+t,{method:"GET"}).catch(n=>(q.error("Get Sink status failed: "+n.message),Promise.reject(Error(n.message))))}static addSink(t,n,r,i,l,a,s,u,c,d){return this.doFetch(oo+"/"+t,{body:JSON.stringify({name:n,io:r,delay:parseInt(i,10),use_sdp:l,source:a,sdp:s,ignore_refclk_gmid:u,map:c}),method:"PUT"}).catch(v=>(q.error((d?"Update Sink failed: ":"Add Sink failed: ")+v.message),Promise.reject(Error(v.message))))}static removeSink(t){return this.doFetch(oo+"/"+t,{method:"DELETE"}).catch(n=>(q.error("Remove Sink failed: "+n.message),Promise.reject(Error(n.message))))}static getPTPStatus(){return this.doFetch(uv).catch(t=>(q.error("PTP status get failed: "+t.message),Promise.reject(Error(t.message))))}static getSources(){return this.doFetch(av).catch(t=>(q.error("Sources get failed: "+t.message),Promise.reject(Error(t.message))))}static getSinks(){return this.doFetch(sv).catch(t=>(q.error("Sinks get failed: "+t.message),Promise.reject(Error(t.message))))}static getStreams(){return this.doFetch(ov).catch(t=>(q.error("Streams get failed: "+t.message),Promise.reject(Error(t.message))))}static getRemoteSources(){return this.doFetch(dv).catch(t=>(q.error("Browse sources get failed: "+t.message),Promise.reject(Error(t.message))))}}function Ge(){return o.createElement("div",{className:"loader"},o.createElement("img",{src:"/loader.gif",alt:"loading"}))}class Ed extends z.exports.Component{constructor(t){super(t),this.state={domain:this.props.domain,dscp:this.props.dscp,domainErr:!1},this.onSubmit=this.onSubmit.bind(this),this.inputIsValid=this.inputIsValid.bind(this)}inputIsValid(){return!this.state.domainErr}onSubmit(t){t.preventDefault(),ce.setPTPConfig(this.state.domain,this.state.dscp).then(n=>q.success("PTP config updated"))}render(){return o.createElement("div",null,o.createElement("h3",null,"Config"),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Type")," "),o.createElement("th",{align:"left"}," ",o.createElement("label",null,"PTPv2")," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Domain")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"0",max:"127",className:"input-number",value:this.state.domain,onChange:t=>this.setState({domain:t.target.value,domainErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"DSCP")," "),o.createElement("th",{align:"left"},o.createElement("select",{value:this.state.dscp,onChange:t=>this.setState({dscp:t.target.value})},o.createElement("option",{value:"56"},"56 (CS7)"),o.createElement("option",{value:"48"},"48 (CS6)"),o.createElement("option",{value:"46"},"46 (EF)"),o.createElement("option",{value:"36"},"36 (AF42)"),o.createElement("option",{value:"34"},"34 (AF41)"),o.createElement("option",{value:"0"},"0 (BE)")))),o.createElement("tr",null,o.createElement("th",null," ",o.createElement("button",{disabled:this.inputIsValid()?void 0:!0,onClick:this.onSubmit},"Submit")," ")))))}}X(Ed,"propTypes",{domain:A.number.isRequired,dscp:A.number.isRequired});class Sd extends z.exports.Component{render(){return o.createElement("div",null,o.createElement("h3",null,"Status"),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Mode")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:"Slave",disabled:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Status")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.props.status,disabled:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"GMID")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.props.gmid,disabled:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Delta")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.props.jitter,disabled:!0})," ")))))}}X(Sd,"propTypes",{status:A.string.isRequired,gmid:A.string.isRequired,jitter:A.number.isRequired});class hv extends z.exports.Component{constructor(t){super(t),this.state={domain:0,domainErr:!1,dscp:0,status:"",gmid:"",jitter:0,isConfigLoading:!1,isStatusLoading:!1}}fetchStatus(){this.setState({isStatusLoading:!0}),ce.getPTPStatus().then(t=>t.json()).then(t=>this.setState({status:t.status,gmid:t.gmid,jitter:parseInt(t.jitter,10),isStatusLoading:!1})).catch(t=>this.setState({isStatusLoading:!1}))}fetchConfig(){this.setState({isConfigLoading:!0}),ce.getPTPConfig().then(t=>t.json()).then(t=>this.setState({domain:parseInt(t.domain,10),dscp:parseInt(t.dscp,10),isConfigLoading:!1})).catch(t=>this.setState({isConfigLoading:!1}))}componentDidMount(){this.fetchStatus(),this.fetchConfig(),this.interval=setInterval(()=>{this.fetchStatus()},1e4)}componentWillUnmount(){clearInterval(this.interval)}render(){return o.createElement("div",{className:"ptp"},this.state.isConfigLoading?o.createElement(Ge,null):o.createElement(Ed,{domain:this.state.domain,dscp:this.state.dscp}),o.createElement("br",null),this.state.isStatusLoading?o.createElement(Ge,null):o.createElement(Sd,{status:this.state.status,gmid:this.state.gmid,jitter:this.state.jitter}))}}class Cd extends z.exports.Component{constructor(t){super(t),this.state={version:"",httpPort:"",rtspPort:"",rtspPortErr:!1,logSeverity:"",playoutDelay:"",playoutDelayErr:!1,ticFrameSizeAt1fs:"",maxTicFrameSize:"",maxTicFrameSizeErr:!1,sampleRate:"",rtpMcastBase:"",rtpMcastBaseErr:!1,rtpPort:"",rtpPortErr:!1,ptpDomain:"",ptpDscp:"",sapInterval:"",sapIntervalErr:!1,mdnsEnabled:!1,streamerEnabled:!1,streamerChannels:0,streamerChIntervalErr:!1,streamerFiles:0,streamerFilesIntervalErr:!1,streamerFileDuration:0,streamerFileDurationIntervalErr:!1,syslogProto:"",syslogServer:"",syslogServerErr:!1,statusFile:"",interfaceName:"",customNodeId:"",customNodeIdErr:!1,macAddr:"",ipAddr:"",errors:0,isConfigLoading:!1,isVersionLoading:!1,autoSinksUpdate:!1},this.onSubmit=this.onSubmit.bind(this),this.inputIsValid=this.inputIsValid.bind(this),this.setTitleExtras=this.setTitleExtras.bind(this)}componentDidMount(){this.setState({isConfigLoading:!0}),this.setState({isVersionLoading:!0}),ce.getVersion().then(t=>t.json()).then(t=>this.setState({version:t.version,isVersionLoading:!1})).catch(t=>this.setState({isVersionLoading:!1})),ce.getConfig().then(t=>t.json()).then(t=>this.setState({httpPort:t.http_port,rtspPort:t.rtsp_port,logSeverity:t.log_severity,playoutDelay:t.playout_delay,ticFrameSizeAt1fs:t.tic_frame_size_at_1fs,maxTicFrameSize:t.max_tic_frame_size,sampleRate:t.sample_rate,rtpMcastBase:t.rtp_mcast_base,rtpPort:t.rtp_port,ptpDomain:t.ptp_domain,ptpDscp:t.ptp_dscp,sapMcastAddr:t.sap_mcast_addr,sapInterval:t.sap_interval,mdnsEnabled:t.mdns_enabled,streamerEnabled:t.streamer_enabled,streamerChannels:t.streamer_channels,streamerFiles:t.streamer_files_num,streamerFileDuration:t.streamer_file_duration,streamerPlayerBufferFiles:t.streamer_player_buffer_files_num,syslogProto:t.syslog_proto,syslogServer:t.syslog_server,statusFile:t.status_file,interfaceName:t.interface_name,customNodeId:t.custom_node_id,macAddr:t.mac_addr,ipAddr:t.ip_addr,nodeId:t.node_id,autoSinksUpdate:t.auto_sinks_update,isConfigLoading:!1})).catch(t=>this.setState({isConfigLoading:!1}))}setTitleExtras(){if(!this.state.isConfigLoading){var t=this.state.customNodeId===""?this.state.nodeId:this.state.customNodeId;this.props.setTitleExtras(t+" - "+this.state.ipAddr)}}inputIsValid(){return!this.state.playoutDelayErr&&!this.state.maxTicFrameSizeErr&&!this.state.rtpMcastBaseErr&&!this.state.sapMcastAddrErr&&!this.state.rtpPortErr&&!this.state.rtspPortErr&&!this.state.sapIntervalErr&&!this.state.streamerChIntervalErr&&!this.state.streamerFilesIntervalErr&&!this.state.streamerFileDurationIntervalErr&&!this.state.syslogServerErr&&(!this.state.customNodeIdErr||this.state.customNodeId==="")&&!this.state.isVersionLoading&&!this.state.isConfigLoading}onSubmit(t){t.preventDefault(),ce.setConfig(this.state.logSeverity,this.state.syslogProto,this.state.syslogServer,this.state.rtpMcastBase,this.state.rtpPort,this.state.rtspPort,this.state.playoutDelay,this.state.ticFrameSizeAt1fs,this.state.sampleRate,this.state.maxTicFrameSize,this.state.sapMcastAddr,this.state.sapInterval,this.state.mdnsEnabled,this.state.customNodeId,this.state.autoSinksUpdate,this.state.streamerEnabled,this.state.streamerChannels,this.state.streamerFiles,this.state.streamerFileDuration,this.state.streamerPlayerBufferFiles).then(n=>q.success("Applying new configuration ..."))}render(){return o.createElement("div",{className:"config"},this.setTitleExtras(),this.state.isVersionLoading?o.createElement(Ge,null):o.createElement("h3",null,"Version"),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Daemon")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.state.version,disabled:!0})," ")))),o.createElement("br",null),this.state.isConfigLoading?o.createElement(Ge,null):o.createElement("h3",null,"Audio Config"),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Safety Playout delay (samples) ")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"0",max:"4000",className:"input-number",value:this.state.playoutDelay,onChange:t=>this.setState({playoutDelay:t.target.value,playoutDelayErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"TIC frame size @1FS (samples) ")," "),o.createElement("th",{align:"left"},o.createElement("select",{value:this.state.ticFrameSizeAt1fs,onChange:t=>this.setState({ticFrameSizeAt1fs:t.target.value})},o.createElement("option",{value:"48"},"48 - 1ms"),o.createElement("option",{value:"64"},"64 - 1.3ms"),o.createElement("option",{value:"96"},"96 - 2ms"),o.createElement("option",{value:"128"},"128 - 2.7ms"),o.createElement("option",{value:"192"},"192 - 4ms")))),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Max TIC frame size (samples) ")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"192",max:"8192",className:"input-number",value:this.state.maxTicFrameSize,onChange:t=>this.setState({maxTicFrameSize:t.target.value,maxTicFrameSizeErr:!t.currentTarget.checkValidity()}),disabled:!0,required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Initial Sample rate")," "),o.createElement("th",{align:"left"},o.createElement("select",{value:this.state.sampleRate,onChange:t=>this.setState({sampleRate:t.target.value})},o.createElement("option",{value:"44100"},"44.1 kHz"),o.createElement("option",{value:"48000"},"48 kHz"),o.createElement("option",{value:"88200"},"88.2 kHz"),o.createElement("option",{value:"96000"},"96 kHz"),o.createElement("option",{value:"192000"},"192 kHz"),o.createElement("option",{value:"384000"},"384 kHz")))))),o.createElement("br",null),this.state.isConfigLoading?o.createElement(Ge,null):o.createElement("h3",null,"HTTP Streamer Config"),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",{height:"35"},o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Streamer enabled")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"checkbox",onChange:t=>this.setState({streamerEnabled:t.target.checked}),checked:this.state.streamerEnabled?!0:void 0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Streamer channels")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"2",max:"16",className:"input-number",value:this.state.streamerChannels,onChange:t=>this.setState({streamerChannels:t.target.value,streamerChIntervalErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Streamer files")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"4",max:"16",className:"input-number",value:this.state.streamerFiles,onChange:t=>this.setState({streamerFiles:t.target.value,streamerFilesIntervalErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Streamer file duration (secs)")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"1",max:"4",className:"input-number",value:this.state.streamerFileDuration,onChange:t=>this.setState({streamerFileDuration:t.target.value,streamerFileDurationIntervalErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Streamer player buffer files")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"1",max:"2",className:"input-number",value:this.state.streamerPlayerBufferFiles,disabled:!0,required:!0})," ")))),o.createElement("br",null),this.state.isConfigLoading?o.createElement(Ge,null):o.createElement("h3",null,"Network Config"),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Current Node ID")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.state.nodeId,size:"32",disabled:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Custom Node ID")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{input:!0,type:"text",minLength:"5",maxLength:"48",size:"32",pattern:"[A-Za-z0-9 _]*",value:this.state.customNodeId,onChange:t=>this.setState({customNodeId:t.target.value,customNodeIdErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"HTTP port")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"1024",max:"65536",className:"input-number",value:this.state.httpPort,disabled:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"RTSP port")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"1024",max:"65536",className:"input-number",value:this.state.rtspPort,onChange:t=>this.setState({rtspPort:t.target.value,rtspPortErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"RTP base address")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"text",minLength:"7",maxLength:"15",size:"15",pattern:"^2(?:2[4-9]|3\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d?|0)){3}$",value:this.state.rtpMcastBase,onChange:t=>this.setState({rtpMcastBase:t.target.value,rtpMcastBaseErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"RTP port")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"1024",max:"65536",className:"input-number",value:this.state.rtpPort,onChange:t=>this.setState({rtpPort:t.target.value,rtpPortErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"SAP multicast address")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"text",minLength:"7",maxLength:"15",size:"15",pattern:"^2(?:2[4-9]|3\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d?|0)){3}$",value:this.state.sapMcastAddr,onChange:t=>this.setState({sapMcastAddr:t.target.value,sapMcastAddrErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"SAP interval (sec)")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"0",max:"255",className:"input-number",value:this.state.sapInterval,onChange:t=>this.setState({sapInterval:t.target.value,sapIntervalErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",{height:"35"},o.createElement("th",{align:"left"}," ",o.createElement("label",null,"mDNS enabled")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"checkbox",onChange:t=>this.setState({mdnsEnabled:t.target.checked}),checked:this.state.mdnsEnabled?!0:void 0})," ")),o.createElement("tr",{height:"35"},o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Auto Sinks update")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"checkbox",onChange:t=>this.setState({autoSinksUpdate:t.target.checked}),checked:this.state.autoSinksUpdate?!0:void 0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Network Interface")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.state.interfaceName,disabled:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"MAC address")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.state.macAddr,disabled:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"IP address")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.state.ipAddr,disabled:!0})," ")))),o.createElement("br",null),this.state.isConfigLoading?o.createElement(Ge,null):o.createElement("h3",null,"Logging Config"),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Syslog protocol")," "),o.createElement("th",{align:"left"},o.createElement("select",{value:this.state.syslogProto,onChange:t=>this.setState({syslogProto:t.target.value})},o.createElement("option",{value:"none"},"none"),o.createElement("option",{value:""},"local"),o.createElement("option",{value:"udp"},"UDP server")))),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Syslog server")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.state.syslogServer,onChange:t=>this.setState({syslogServer:t.target.value,syslogServerErr:!t.currentTarget.checkValidity()}),disabled:this.state.syslogProto==="udp"?void 0:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Log severity")," "),o.createElement("th",{align:"left"},o.createElement("select",{value:this.state.logSeverity,onChange:t=>this.setState({logSeverity:t.target.value})},o.createElement("option",{value:"1"},"debug"),o.createElement("option",{value:"2"},"info"),o.createElement("option",{value:"3"},"warning"),o.createElement("option",{value:"4"},"error"),o.createElement("option",{value:"5"},"fatal")))))),o.createElement("br",null),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("th",null," ",o.createElement("button",{disabled:this.inputIsValid()?void 0:!0,onClick:this.onSubmit},"Submit")," ")))))}}X(Cd,"propTypes",{setTitleExtras:A.func.isRequired});var ta={exports:{}},Gt={},na={exports:{}},Ke={},Yi={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;/*!
 * Adapted from jQuery UI core
 *
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/category/ui-core/
 */var n="none",r="contents",i=/input|select|textarea|button|object|iframe/;function l(v,p){return p.getPropertyValue("overflow")!=="visible"||v.scrollWidth<=0&&v.scrollHeight<=0}function a(v){var p=v.offsetWidth<=0&&v.offsetHeight<=0;if(p&&!v.innerHTML)return!0;try{var y=window.getComputedStyle(v),k=y.getPropertyValue("display");return p?k!==r&&l(v,y):k===n}catch{return console.warn("Failed to inspect element style"),!1}}function s(v){for(var p=v,y=v.getRootNode&&v.getRootNode();p&&p!==document.body;){if(y&&p===y&&(p=y.host.parentNode),a(p))return!1;p=p.parentNode}return!0}function u(v,p){var y=v.nodeName.toLowerCase(),k=i.test(y)&&!v.disabled||y==="a"&&v.href||p;return k&&s(v)}function c(v){var p=v.getAttribute("tabindex");p===null&&(p=void 0);var y=isNaN(p);return(y||p>=0)&&u(v,!y)}function d(v){var p=[].slice.call(v.querySelectorAll("*"),0).reduce(function(y,k){return y.concat(k.shadowRoot?d(k.shadowRoot):[k])},[]);return p.filter(c)}e.exports=t.default})(Yi,Yi.exports);Object.defineProperty(Ke,"__esModule",{value:!0});Ke.resetState=yv;Ke.log=Ev;Ke.handleBlur=$r;Ke.handleFocus=Hr;Ke.markForFocusLater=Sv;Ke.returnFocus=Cv;Ke.popWithoutFocus=kv;Ke.setupScopedFocus=wv;Ke.teardownScopedFocus=xv;var mv=Yi.exports,vv=gv(mv);function gv(e){return e&&e.__esModule?e:{default:e}}var Ln=[],hn=null,ra=!1;function yv(){Ln=[]}function Ev(){}function $r(){ra=!0}function Hr(){if(ra){if(ra=!1,!hn)return;setTimeout(function(){if(!hn.contains(document.activeElement)){var e=(0,vv.default)(hn)[0]||hn;e.focus()}},0)}}function Sv(){Ln.push(document.activeElement)}function Cv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,t=null;try{Ln.length!==0&&(t=Ln.pop(),t.focus({preventScroll:e}));return}catch{console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}}function kv(){Ln.length>0&&Ln.pop()}function wv(e){hn=e,window.addEventListener?(window.addEventListener("blur",$r,!1),document.addEventListener("focus",Hr,!0)):(window.attachEvent("onBlur",$r),document.attachEvent("onFocus",Hr))}function xv(){hn=null,window.addEventListener?(window.removeEventListener("blur",$r),document.removeEventListener("focus",Hr)):(window.detachEvent("onBlur",$r),document.detachEvent("onFocus",Hr))}var ia={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=Yi.exports,r=i(n);function i(s){return s&&s.__esModule?s:{default:s}}function l(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return s.activeElement.shadowRoot?l(s.activeElement.shadowRoot):s.activeElement}function a(s,u){var c=(0,r.default)(s);if(!c.length){u.preventDefault();return}var d=void 0,v=u.shiftKey,p=c[0],y=c[c.length-1],k=l();if(s===k){if(!v)return;d=y}if(y===k&&!v&&(d=p),p===k&&v&&(d=y),d){u.preventDefault(),d.focus();return}var T=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),h=T!=null&&T[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(!!h){var f=c.indexOf(k);if(f>-1&&(f+=v?-1:1),d=c[f],typeof d=="undefined"){u.preventDefault(),d=v?y:p,d.focus();return}u.preventDefault(),d.focus()}}e.exports=t.default})(ia,ia.exports);var Ye={},_v=function(){},Tv=_v,Qe={},kd={exports:{}};/*!
  Copyright (c) 2015 Jed Watson.
  Based on code that is Copyright 2013-2015, Facebook, Inc.
  All rights reserved.
*/(function(e){(function(){var t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),n={canUseDOM:t,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen};e.exports?e.exports=n:window.ExecutionEnvironment=n})()})(kd);Object.defineProperty(Qe,"__esModule",{value:!0});Qe.canUseDOM=Qe.SafeNodeList=Qe.SafeHTMLCollection=void 0;var Pv=kd.exports,Ov=Rv(Pv);function Rv(e){return e&&e.__esModule?e:{default:e}}var Pl=Ov.default,Iv=Pl.canUseDOM?window.HTMLElement:{};Qe.SafeHTMLCollection=Pl.canUseDOM?window.HTMLCollection:{};Qe.SafeNodeList=Pl.canUseDOM?window.NodeList:{};Qe.canUseDOM=Pl.canUseDOM;Qe.default=Iv;Object.defineProperty(Ye,"__esModule",{value:!0});Ye.resetState=Av;Ye.log=Dv;Ye.assertNodeList=wd;Ye.setElement=Fv;Ye.validateElement=ds;Ye.hide=Uv;Ye.show=jv;Ye.documentNotReadyOrSSRTesting=zv;var Nv=Tv,Lv=Mv(Nv),bv=Qe;function Mv(e){return e&&e.__esModule?e:{default:e}}var Ae=null;function Av(){Ae&&(Ae.removeAttribute?Ae.removeAttribute("aria-hidden"):Ae.length!=null?Ae.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(Ae).forEach(function(e){return e.removeAttribute("aria-hidden")})),Ae=null}function Dv(){}function wd(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function Fv(e){var t=e;if(typeof t=="string"&&bv.canUseDOM){var n=document.querySelectorAll(t);wd(n,t),t=n}return Ae=t||Ae,Ae}function ds(e){var t=e||Ae;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,Lv.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function Uv(e){var t=!0,n=!1,r=void 0;try{for(var i=ds(e)[Symbol.iterator](),l;!(t=(l=i.next()).done);t=!0){var a=l.value;a.setAttribute("aria-hidden","true")}}catch(s){n=!0,r=s}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}}function jv(e){var t=!0,n=!1,r=void 0;try{for(var i=ds(e)[Symbol.iterator](),l;!(t=(l=i.next()).done);t=!0){var a=l.value;a.removeAttribute("aria-hidden")}}catch(s){n=!0,r=s}finally{try{!t&&i.return&&i.return()}finally{if(n)throw r}}}function zv(){Ae=null}var $n={};Object.defineProperty($n,"__esModule",{value:!0});$n.resetState=$v;$n.log=Hv;var wr={},xr={};function Qu(e,t){e.classList.remove(t)}function $v(){var e=document.getElementsByTagName("html")[0];for(var t in wr)Qu(e,wr[t]);var n=document.body;for(var r in xr)Qu(n,xr[r]);wr={},xr={}}function Hv(){}var Bv=function(t,n){return t[n]||(t[n]=0),t[n]+=1,n},Vv=function(t,n){return t[n]&&(t[n]-=1),n},Wv=function(t,n,r){r.forEach(function(i){Bv(n,i),t.add(i)})},qv=function(t,n,r){r.forEach(function(i){Vv(n,i),n[i]===0&&t.remove(i)})};$n.add=function(t,n){return Wv(t.classList,t.nodeName.toLowerCase()=="html"?wr:xr,n.split(" "))};$n.remove=function(t,n){return qv(t.classList,t.nodeName.toLowerCase()=="html"?wr:xr,n.split(" "))};var Hn={};Object.defineProperty(Hn,"__esModule",{value:!0});Hn.log=Kv;Hn.resetState=Yv;function Qv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var xd=function e(){var t=this;Qv(this,e),this.register=function(n){t.openInstances.indexOf(n)===-1&&(t.openInstances.push(n),t.emit("register"))},this.deregister=function(n){var r=t.openInstances.indexOf(n);r!==-1&&(t.openInstances.splice(r,1),t.emit("deregister"))},this.subscribe=function(n){t.subscribers.push(n)},this.emit=function(n){t.subscribers.forEach(function(r){return r(n,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},Gi=new xd;function Kv(){console.log("portalOpenInstances ----------"),console.log(Gi.openInstances.length),Gi.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")}function Yv(){Gi=new xd}Hn.default=Gi;var ps={};Object.defineProperty(ps,"__esModule",{value:!0});ps.resetState=Jv;ps.log=eg;var Gv=Hn,Xv=Zv(Gv);function Zv(e){return e&&e.__esModule?e:{default:e}}var ve=void 0,Ve=void 0,Wt=[];function Jv(){for(var e=[ve,Ve],t=0;t<e.length;t++){var n=e[t];!n||n.parentNode&&n.parentNode.removeChild(n)}ve=Ve=null,Wt=[]}function eg(){console.log("bodyTrap ----------"),console.log(Wt.length);for(var e=[ve,Ve],t=0;t<e.length;t++){var n=e[t],r=n||{};console.log(r.nodeName,r.className,r.id)}console.log("edn bodyTrap ----------")}function Ku(){Wt.length!==0&&Wt[Wt.length-1].focusContent()}function tg(e,t){!ve&&!Ve&&(ve=document.createElement("div"),ve.setAttribute("data-react-modal-body-trap",""),ve.style.position="absolute",ve.style.opacity="0",ve.setAttribute("tabindex","0"),ve.addEventListener("focus",Ku),Ve=ve.cloneNode(),Ve.addEventListener("focus",Ku)),Wt=t,Wt.length>0?(document.body.firstChild!==ve&&document.body.insertBefore(ve,document.body.firstChild),document.body.lastChild!==Ve&&document.body.appendChild(Ve)):(ve.parentElement&&ve.parentElement.removeChild(ve),Ve.parentElement&&Ve.parentElement.removeChild(Ve))}Xv.default.subscribe(tg);(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(N){for(var L=1;L<arguments.length;L++){var V=arguments[L];for(var C in V)Object.prototype.hasOwnProperty.call(V,C)&&(N[C]=V[C])}return N},r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},i=function(){function N(L,V){for(var C=0;C<V.length;C++){var M=V[C];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(L,M.key,M)}}return function(L,V,C){return V&&N(L.prototype,V),C&&N(L,C),L}}(),l=z.exports,a=hl.exports,s=P(a),u=Ke,c=g(u),d=ia.exports,v=P(d),p=Ye,y=g(p),k=$n,T=g(k),h=Qe,f=P(h),m=Hn,E=P(m);function g(N){if(N&&N.__esModule)return N;var L={};if(N!=null)for(var V in N)Object.prototype.hasOwnProperty.call(N,V)&&(L[V]=N[V]);return L.default=N,L}function P(N){return N&&N.__esModule?N:{default:N}}function w(N,L){if(!(N instanceof L))throw new TypeError("Cannot call a class as a function")}function _(N,L){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:N}function S(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);N.prototype=Object.create(L&&L.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(N,L):N.__proto__=L)}var O={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},F=function(L){return L.code==="Tab"||L.keyCode===9},$=function(L){return L.code==="Escape"||L.keyCode===27},K=0,Q=function(N){S(L,N);function L(V){w(this,L);var C=_(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,V));return C.setOverlayRef=function(M){C.overlay=M,C.props.overlayRef&&C.props.overlayRef(M)},C.setContentRef=function(M){C.content=M,C.props.contentRef&&C.props.contentRef(M)},C.afterClose=function(){var M=C.props,U=M.appElement,D=M.ariaHideApp,x=M.htmlOpenClassName,R=M.bodyOpenClassName,b=M.parentSelector,W=b&&b().ownerDocument||document;R&&T.remove(W.body,R),x&&T.remove(W.getElementsByTagName("html")[0],x),D&&K>0&&(K-=1,K===0&&y.show(U)),C.props.shouldFocusAfterRender&&(C.props.shouldReturnFocusAfterClose?(c.returnFocus(C.props.preventScroll),c.teardownScopedFocus()):c.popWithoutFocus()),C.props.onAfterClose&&C.props.onAfterClose(),E.default.deregister(C)},C.open=function(){C.beforeOpen(),C.state.afterOpen&&C.state.beforeClose?(clearTimeout(C.closeTimer),C.setState({beforeClose:!1})):(C.props.shouldFocusAfterRender&&(c.setupScopedFocus(C.node),c.markForFocusLater()),C.setState({isOpen:!0},function(){C.openAnimationFrame=requestAnimationFrame(function(){C.setState({afterOpen:!0}),C.props.isOpen&&C.props.onAfterOpen&&C.props.onAfterOpen({overlayEl:C.overlay,contentEl:C.content})})}))},C.close=function(){C.props.closeTimeoutMS>0?C.closeWithTimeout():C.closeWithoutTimeout()},C.focusContent=function(){return C.content&&!C.contentHasFocus()&&C.content.focus({preventScroll:!0})},C.closeWithTimeout=function(){var M=Date.now()+C.props.closeTimeoutMS;C.setState({beforeClose:!0,closesAt:M},function(){C.closeTimer=setTimeout(C.closeWithoutTimeout,C.state.closesAt-Date.now())})},C.closeWithoutTimeout=function(){C.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},C.afterClose)},C.handleKeyDown=function(M){F(M)&&(0,v.default)(C.content,M),C.props.shouldCloseOnEsc&&$(M)&&(M.stopPropagation(),C.requestClose(M))},C.handleOverlayOnClick=function(M){C.shouldClose===null&&(C.shouldClose=!0),C.shouldClose&&C.props.shouldCloseOnOverlayClick&&(C.ownerHandlesClose()?C.requestClose(M):C.focusContent()),C.shouldClose=null},C.handleContentOnMouseUp=function(){C.shouldClose=!1},C.handleOverlayOnMouseDown=function(M){!C.props.shouldCloseOnOverlayClick&&M.target==C.overlay&&M.preventDefault()},C.handleContentOnClick=function(){C.shouldClose=!1},C.handleContentOnMouseDown=function(){C.shouldClose=!1},C.requestClose=function(M){return C.ownerHandlesClose()&&C.props.onRequestClose(M)},C.ownerHandlesClose=function(){return C.props.onRequestClose},C.shouldBeClosed=function(){return!C.state.isOpen&&!C.state.beforeClose},C.contentHasFocus=function(){return document.activeElement===C.content||C.content.contains(document.activeElement)},C.buildClassName=function(M,U){var D=(typeof U=="undefined"?"undefined":r(U))==="object"?U:{base:O[M],afterOpen:O[M]+"--after-open",beforeClose:O[M]+"--before-close"},x=D.base;return C.state.afterOpen&&(x=x+" "+D.afterOpen),C.state.beforeClose&&(x=x+" "+D.beforeClose),typeof U=="string"&&U?x+" "+U:x},C.attributesFromObject=function(M,U){return Object.keys(U).reduce(function(D,x){return D[M+"-"+x]=U[x],D},{})},C.state={afterOpen:!1,beforeClose:!1},C.shouldClose=null,C.moveFromContentToOverlay=null,C}return i(L,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(C,M){this.props.isOpen&&!C.isOpen?this.open():!this.props.isOpen&&C.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!M.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var C=this.props,M=C.appElement,U=C.ariaHideApp,D=C.htmlOpenClassName,x=C.bodyOpenClassName,R=C.parentSelector,b=R&&R().ownerDocument||document;x&&T.add(b.body,x),D&&T.add(b.getElementsByTagName("html")[0],D),U&&(K+=1,y.hide(M)),E.default.register(this)}},{key:"render",value:function(){var C=this.props,M=C.id,U=C.className,D=C.overlayClassName,x=C.defaultStyles,R=C.children,b=U?{}:x.content,W=D?{}:x.overlay;if(this.shouldBeClosed())return null;var Y={ref:this.setOverlayRef,className:this.buildClassName("overlay",D),style:n({},W,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},oe=n({id:M,ref:this.setContentRef,style:n({},b,this.props.style.content),className:this.buildClassName("content",U),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",n({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),re=this.props.contentElement(oe,R);return this.props.overlayElement(Y,re)}}]),L}(l.Component);Q.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},Q.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),parentSelector:s.default.func,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(f.default),s.default.instanceOf(h.SafeHTMLCollection),s.default.instanceOf(h.SafeNodeList),s.default.arrayOf(s.default.instanceOf(f.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=Q,e.exports=t.default})(na,na.exports);function _d(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Td(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r!=null?r:null}this.setState(t.bind(this))}function Pd(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}_d.__suppressDeprecationWarning=!0;Td.__suppressDeprecationWarning=!0;Pd.__suppressDeprecationWarning=!0;function ng(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,i=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),n!==null||r!==null||i!==null){var l=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.

`+l+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
  `+n:"")+(r!==null?`
  `+r:"")+(i!==null?`
  `+i:"")+`

The above lifecycles should be removed. Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=_d,t.componentWillReceiveProps=Td),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Pd;var s=t.componentDidUpdate;t.componentDidUpdate=function(c,d,v){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:v;s.call(this,c,d,p)}}return e}var rg=Object.freeze(Object.defineProperty({__proto__:null,polyfill:ng},Symbol.toStringTag,{value:"Module"})),ig=Bd(rg);Object.defineProperty(Gt,"__esModule",{value:!0});Gt.bodyOpenClassName=Gt.portalClassName=void 0;var Yu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lg=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Od=z.exports,Xi=Gr(Od),og=Ji.exports,Zi=Gr(og),ag=hl.exports,B=Gr(ag),sg=na.exports,Gu=Gr(sg),ug=Ye,cg=dg(ug),yt=Qe,Xu=Gr(yt),fg=ig;function dg(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function Gr(e){return e&&e.__esModule?e:{default:e}}function pg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zu(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function hg(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var mg=Gt.portalClassName="ReactModalPortal",vg=Gt.bodyOpenClassName="ReactModal__Body--open",Dt=yt.canUseDOM&&Zi.default.createPortal!==void 0,Ju=function(t){return document.createElement(t)},ec=function(){return Dt?Zi.default.createPortal:Zi.default.unstable_renderSubtreeIntoContainer};function fi(e){return e()}var Xr=function(e){hg(t,e);function t(){var n,r,i,l;pg(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return l=(r=(i=Zu(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),i),i.removePortal=function(){!Dt&&Zi.default.unmountComponentAtNode(i.node);var c=fi(i.props.parentSelector);c&&c.contains(i.node)?c.removeChild(i.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},i.portalRef=function(c){i.portal=c},i.renderPortal=function(c){var d=ec(),v=d(i,Xi.default.createElement(Gu.default,Yu({defaultStyles:t.defaultStyles},c)),i.node);i.portalRef(v)},r),Zu(i,l)}return lg(t,[{key:"componentDidMount",value:function(){if(!!yt.canUseDOM){Dt||(this.node=Ju("div")),this.node.className=this.props.portalClassName;var r=fi(this.props.parentSelector);r.appendChild(this.node),!Dt&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(r){var i=fi(r.parentSelector),l=fi(this.props.parentSelector);return{prevParent:i,nextParent:l}}},{key:"componentDidUpdate",value:function(r,i,l){if(!!yt.canUseDOM){var a=this.props,s=a.isOpen,u=a.portalClassName;r.portalClassName!==u&&(this.node.className=u);var c=l.prevParent,d=l.nextParent;d!==c&&(c.removeChild(this.node),d.appendChild(this.node)),!(!r.isOpen&&!s)&&!Dt&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!yt.canUseDOM||!this.node||!this.portal)){var r=this.portal.state,i=Date.now(),l=r.isOpen&&this.props.closeTimeoutMS&&(r.closesAt||i+this.props.closeTimeoutMS);l?(r.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,l-i)):this.removePortal()}}},{key:"render",value:function(){if(!yt.canUseDOM||!Dt)return null;!this.node&&Dt&&(this.node=Ju("div"));var r=ec();return r(Xi.default.createElement(Gu.default,Yu({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(r){cg.setElement(r)}}]),t}(Od.Component);Xr.propTypes={isOpen:B.default.bool.isRequired,style:B.default.shape({content:B.default.object,overlay:B.default.object}),portalClassName:B.default.string,bodyOpenClassName:B.default.string,htmlOpenClassName:B.default.string,className:B.default.oneOfType([B.default.string,B.default.shape({base:B.default.string.isRequired,afterOpen:B.default.string.isRequired,beforeClose:B.default.string.isRequired})]),overlayClassName:B.default.oneOfType([B.default.string,B.default.shape({base:B.default.string.isRequired,afterOpen:B.default.string.isRequired,beforeClose:B.default.string.isRequired})]),appElement:B.default.oneOfType([B.default.instanceOf(Xu.default),B.default.instanceOf(yt.SafeHTMLCollection),B.default.instanceOf(yt.SafeNodeList),B.default.arrayOf(B.default.instanceOf(Xu.default))]),onAfterOpen:B.default.func,onRequestClose:B.default.func,closeTimeoutMS:B.default.number,ariaHideApp:B.default.bool,shouldFocusAfterRender:B.default.bool,shouldCloseOnOverlayClick:B.default.bool,shouldReturnFocusAfterClose:B.default.bool,preventScroll:B.default.bool,parentSelector:B.default.func,aria:B.default.object,data:B.default.object,role:B.default.string,contentLabel:B.default.string,shouldCloseOnEsc:B.default.bool,overlayRef:B.default.func,contentRef:B.default.func,id:B.default.string,overlayElement:B.default.func,contentElement:B.default.func};Xr.defaultProps={isOpen:!1,portalClassName:mg,bodyOpenClassName:vg,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(t,n){return Xi.default.createElement("div",t,n)},contentElement:function(t,n){return Xi.default.createElement("div",t,n)}};Xr.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}};(0,fg.polyfill)(Xr);Gt.default=Xr;(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Gt,r=i(n);function i(l){return l&&l.__esModule?l:{default:l}}t.default=r.default,e.exports=t.default})(ta,ta.exports);var rt=Hd(ta.exports);const gg={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}},yg=1440;class Rd extends z.exports.Component{constructor(t){super(t),this.state={id:this.props.source.id,enabled:this.props.source.enabled,name:this.props.source.name,nameErr:!1,io:this.props.source.io,codec:this.props.source.codec,address:this.props.source.address,addressErr:!1,ttl:this.props.source.ttl,ttlErr:!1,payloadType:this.props.source.payload_type,payloadTypeErr:!1,dscp:this.props.source.dscp,refclkPtpTraceable:this.props.source.refclk_ptp_traceable,channels:this.props.source.map.length,channelsErr:!1,map:this.props.source.map,maxSamplesPerPacket:this.getMaxSamplesPerPacket(),maxChannels:this.getMaxChannels(this.props.source.codec,this.getMaxSamplesPerPacket()),audioMap:[]};let n;for(n=0;n<=64-this.state.channels;n+=1)this.state.audioMap.push(n);this.onSubmit=this.onSubmit.bind(this),this.onCancel=this.onCancel.bind(this),this.addSource=this.addSource.bind(this),this.onChangeChannels=this.onChangeChannels.bind(this),this.onChangeChannelsMap=this.onChangeChannelsMap.bind(this),this.onChangeMaxSamplesPerPacket=this.onChangeMaxSamplesPerPacket.bind(this),this.onChangeCodec=this.onChangeCodec.bind(this),this.inputIsValid=this.inputIsValid.bind(this),this.checkMaxSamplesPerPacket=this.checkMaxSamplesPerPacket.bind(this),this.getMaxSamplesPerPacket=this.getMaxSamplesPerPacket.bind(this),this.getnFS=this.getnFS.bind(this),this.getPacketDuration=this.getPacketDuration.bind(this),this.getMaxChannels=this.getMaxChannels.bind(this)}componentDidMount(){rt.setAppElement("body")}addSource(t){ce.addSource(this.state.id,this.state.enabled,this.state.name,this.state.io,this.state.maxSamplesPerPacket,this.state.codec,this.state.address?this.state.address:"",this.state.ttl,this.state.payloadType,this.state.dscp,this.state.refclkPtpTraceable,this.state.map,this.props.isEdit).then(function(n){q.success(t),this.props.applyEdit()}.bind(this))}onSubmit(){this.addSource("Source "+this.state.id+(this.props.isEdit?" updated ":" added"))}onCancel(){this.props.closeEdit()}getMaxChannels(t,n){let r=Math.floor(yg/(n*(t==="L16"?2:3)));return r>64?64:r}onChangeMaxSamplesPerPacket(t){let n=parseInt(t.target.value,10),r=this.getMaxChannels(this.state.codec,n);this.setState({maxSamplesPerPacket:n,maxChannels:r,channelsErr:this.state.channels>r})}onChangeCodec(t){let n=t.target.value,r=this.getMaxChannels(this.state.codec,this.state.maxSamplesPerPacket);this.setState({codec:n,maxChannels:r,channelsErr:this.state.channels>r})}onChangeChannels(t){if(t.currentTarget.checkValidity()){let n=parseInt(t.target.value,10),r=[],i=[],l;for(l=0;l<=64-n;l+=1)r.push(l);for(l=0;l<n;l++)i.push(l+this.state.map[0]);this.setState({map:i,channels:n,audioMap:r,channelsErr:!1})}}onChangeChannelsMap(t){let n=parseInt(t.target.value,10),r=[],i;for(i=0;i<this.state.channels;i++)r.push(i+n);this.setState({map:r})}getnFS(){switch(this.props.sampleRate){case 384e3:case 352800:return 8;case 192e3:case 176400:return 4;case 96e3:case 88200:return 2;case 48e3:case 44100:default:return 1}}checkMaxSamplesPerPacket(t){return t<=this.props.ticFrameSizeAt1fs*this.getnFS()}getMaxSamplesPerPacket(){return this.props.source.max_samples_per_packet>this.props.ticFrameSizeAt1fs*this.getnFS()?this.props.ticFrameSizeAt1fs*this.getnFS():this.props.source.max_samples_per_packet}getPacketDuration(t){let n=t*1e6/this.props.sampleRate;return n>=1e3?(n/=1e3,n==Math.round(n)?Math.round(n).toString()+"ms":(Math.round(n*1e3)/1e3).toString()+"ms"):Math.round(n).toString()+"\u03BCs"}inputIsValid(){return!this.state.nameErr&&!this.state.ttlErr&&!this.state.channelsErr&&!this.state.payloadTypeErr&&!this.state.addressErr}render(){return o.createElement("div",{id:"source-edit"},o.createElement(rt,{ariaHideApp:!1,isOpen:this.props.editIsOpen,onRequestClose:this.props.closeEdit,style:gg,contentLabel:"Source Edit"},o.createElement("h2",null,o.createElement("center",null,this.props.editTitle)),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("font",{color:"grey"},"ID")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"0",max:"63",className:"input-number",value:this.state.id,onChange:t=>this.setState({id:t.target.value}),disabled:!0,required:!0})," ")),o.createElement("tr",{height:"35"},o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Enabled")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"checkbox",defaultChecked:this.state.enabled,onChange:t=>this.setState({enabled:t.target.checked})})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Name")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.state.name,onChange:t=>this.setState({name:t.target.value,nameErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Max samples per packet ")," "),o.createElement("th",{align:"left"},o.createElement("select",{value:this.state.maxSamplesPerPacket,onChange:this.onChangeMaxSamplesPerPacket},o.createElement("option",{value:"6",disabled:this.checkMaxSamplesPerPacket(6)?void 0:!0},"6 - ",this.getPacketDuration(6)),o.createElement("option",{value:"12",disabled:this.checkMaxSamplesPerPacket(12)?void 0:!0},"12 - ",this.getPacketDuration(12)),o.createElement("option",{value:"16",disabled:this.checkMaxSamplesPerPacket(16)?void 0:!0},"16 - ",this.getPacketDuration(16)),o.createElement("option",{value:"48",disabled:this.checkMaxSamplesPerPacket(48)?void 0:!0},"48 - ",this.getPacketDuration(48)),o.createElement("option",{value:"96",disabled:this.checkMaxSamplesPerPacket(96)?void 0:!0},"96 - ",this.getPacketDuration(96)),o.createElement("option",{value:"192",disabled:this.checkMaxSamplesPerPacket(192)?void 0:!0},"192 - ",this.getPacketDuration(192))))),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Codec")," "),o.createElement("th",{align:"left"},o.createElement("select",{value:this.state.codec,onChange:this.onChangeCodec},o.createElement("option",{value:"L16"},"L16"),o.createElement("option",{value:"L24"},"L24"),o.createElement("option",{value:"AM824"},"AM824")))),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"RTP address")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"text",minLength:"7",maxLength:"15",size:"15",pattern:"^$|^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",value:this.state.address,onChange:t=>this.setState({address:t.target.value,addressErr:!t.currentTarget.checkValidity()}),optional:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Payload Type")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"77",max:"127",className:"input-number",value:this.state.payloadType,onChange:t=>this.setState({payloadType:t.target.value,payloadTypeErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"TTL")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"1",max:"255",className:"input-number",value:this.state.ttl,onChange:t=>this.setState({ttl:t.target.value,ttlErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"DSCP")," "),o.createElement("th",{align:"left"},o.createElement("select",{value:this.state.dscp,onChange:t=>this.setState({dscp:t.target.value})},o.createElement("option",{value:"56"},"56 (CS7)"),o.createElement("option",{value:"48"},"48 (CS6)"),o.createElement("option",{value:"46"},"46 (EF)"),o.createElement("option",{value:"36"},"36 (AF42)"),o.createElement("option",{value:"34"},"34 (AF41)"),o.createElement("option",{value:"0"},"0 (BE)")))),o.createElement("tr",{height:"35"},o.createElement("th",{align:"left"}," ",o.createElement("label",null,"RefClk PTP traceable")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"checkbox",defaultChecked:this.state.refclkPtpTraceable,onChange:t=>this.setState({refclkPtpTraceable:t.target.checked})})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Channels")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"1",max:this.state.maxChannels,className:"input-number",value:this.state.channels,onChange:this.onChangeChannels,required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"},"Audio Channels map"),o.createElement("th",{align:"left"},o.createElement("select",{value:this.state.map[0],onChange:this.onChangeChannelsMap},this.state.channels>1?this.state.audioMap.map(t=>o.createElement("option",{key:t,value:t},"ALSA Output "+parseInt(t+1,10)+" -> ALSA Output "+parseInt(t+this.state.channels,10))):this.state.audioMap.map(t=>o.createElement("option",{key:t,value:t},"ALSA Output "+parseInt(t+1,10)))))))),o.createElement("br",null),o.createElement("div",{style:{textAlign:"center"}},o.createElement("button",{onClick:this.onSubmit,disabled:this.inputIsValid()?void 0:!0},"Submit"),"\xA0\xA0\xA0\xA0",o.createElement("button",{onClick:this.onCancel},"Cancel"))))}}X(Rd,"propTypes",{source:A.object.isRequired,ticFrameSizeAt1fs:A.number.isRequired,sampleRate:A.number.isRequired,applyEdit:A.func.isRequired,closeEdit:A.func.isRequired,editIsOpen:A.bool.isRequired,isEdit:A.bool.isRequired,editTitle:A.string.isRequired});const Eg={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}};class Id extends z.exports.Component{constructor(t){super(t),this.onSubmit=this.onSubmit.bind(this),this.onCancel=this.onCancel.bind(this),this.removeSource=this.removeSource.bind(this)}componentDidMount(){rt.setAppElement("body")}removeSource(t){ce.removeSource(this.props.source.id).then(function(n){q.success(t),this.props.applyEdit()}.bind(this))}onSubmit(){this.removeSource("Source "+this.props.source.id+" removed")}onCancel(){this.props.closeEdit()}render(){return o.createElement("div",{id:"source-remove"},o.createElement(rt,{ariaHideApp:!1,isOpen:this.props.removeIsOpen,onRequestClose:this.props.closeEdit,style:Eg,contentLabel:"Source Remove"},o.createElement("h2",null,o.createElement("center",null,"Remove source "+this.props.source.id)),o.createElement("h3",null,o.createElement("center",null,"Do you want to proceed ?")),o.createElement("br",null),o.createElement("div",{style:{textAlign:"center"}},o.createElement("button",{onClick:this.onSubmit},"Submit"),"\xA0\xA0\xA0\xA0",o.createElement("button",{onClick:this.onCancel},"Cancel"))))}}X(Id,"propTypes",{source:A.object.isRequired,applyEdit:A.func.isRequired,closeEdit:A.func.isRequired,removeIsOpen:A.bool.isRequired});const Sg={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}};class hs extends z.exports.Component{constructor(t){super(t),this.onClose=this.onClose.bind(this)}componentDidMount(){rt.setAppElement("body")}onClose(){this.props.closeInfo()}render(){return o.createElement("div",{id:"source-info"},o.createElement(rt,{ariaHideApp:!1,isOpen:this.props.infoIsOpen,onRequestClose:this.props.closeInfo,style:Sg,contentLabel:"Srouce SDP Info"},o.createElement("h2",null,o.createElement("center",null,this.props.infoTitle)),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"ID")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.props.id,readOnly:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Source")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.props.source,readOnly:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Name")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.props.name,readOnly:!0})," ")),this.props.source=="mDNS"?o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Domain")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.props.domain,readOnly:!0})," ")):void 0,o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"SDP")," "),o.createElement("th",{align:"left"}," ",o.createElement("textarea",{rows:"15",cols:"55",value:this.props.sdp,readOnly:!0})," ")))),o.createElement("br",null),o.createElement("div",{style:{textAlign:"center"}},o.createElement("button",{onClick:this.onClose},"Close"))))}}X(hs,"propTypes",{id:A.string.isRequired,source:A.string.isRequired,name:A.string.isRequired,domain:A.string.isRequired,sdp:A.string.isRequired,closeInfo:A.func.isRequired,infoIsOpen:A.bool.isRequired,infoTitle:A.string.isRequired});class Nd extends z.exports.Component{constructor(n){super(n);X(this,"handleInfoClick",()=>{this.props.onInfoClick(this.props.id,this.state.sdp)});X(this,"handleEditClick",()=>{this.props.onEditClick(this.props.id)});X(this,"handleTrashClick",()=>{this.props.onTrashClick(this.props.id)});this.state={address:"n/a",port:"n/a",sdp:""}}componentDidMount(){ce.getSourceSDP(this.props.id).then(n=>n.text()).then(function(n){var r=n.match(/(c=IN IP4 )([0-9.]+)/g),i=n.match(/(m=audio )([0-9]+)/g);this.setState({sdp:n}),r&&i&&this.setState({address:r[0].substr(9),port:i[0].substr(8)})}.bind(this))}render(){return o.createElement("tr",{className:"tr-stream"},o.createElement("td",null," ",o.createElement("label",null,this.props.id)," "),o.createElement("td",null," ",o.createElement("label",null,this.props.name)," "),o.createElement("td",null," ",o.createElement("label",null,this.state.address)," "),o.createElement("td",null," ",o.createElement("label",null,this.state.port)," "),o.createElement("td",{align:"center"}," ",o.createElement("label",null,this.props.channels)," "),o.createElement("td",null," ",o.createElement("span",{className:"pointer-area",onClick:this.handleInfoClick}," ",o.createElement("img",{width:"20",height:"20",src:"/info.png",alt:""})," ")," "),o.createElement("td",null," ",o.createElement("span",{className:"pointer-area",onClick:this.handleEditClick}," ",o.createElement("img",{width:"20",height:"20",src:"/edit.png",alt:""})," ")," "),o.createElement("td",null," ",o.createElement("span",{className:"pointer-area",onClick:this.handleTrashClick}," ",o.createElement("img",{width:"20",height:"20",src:"/trash.png",alt:""})," ")," "))}}X(Nd,"propTypes",{id:A.number.isRequired,name:A.string.isRequired,channels:A.number.isRequired,onEditClick:A.func.isRequired,onInfoClick:A.func.isRequired,onTrashClick:A.func.isRequired});class Ld extends z.exports.Component{constructor(){super(...arguments);X(this,"handleAddClick",()=>{this.props.onAddClick()});X(this,"handleReloadClick",()=>{this.props.onReloadClick()})}render(){return o.createElement("div",{id:"sources-table"},o.createElement("table",{className:"table-stream"},o.createElement("tbody",null,this.props.sources.length>0?o.createElement("tr",{className:"tr-stream"},o.createElement("th",null,"ID"),o.createElement("th",null,"Name"),o.createElement("th",null,"Address"),o.createElement("th",null,"Port"),o.createElement("th",null,"Channels")):o.createElement("tr",null,o.createElement("th",null,"No sources configured")),this.props.sources)),"\xA0",o.createElement("span",{className:"pointer-area",onClick:this.handleReloadClick}," ",o.createElement("img",{width:"30",height:"30",src:"/reload.png",alt:""})," "),"\xA0\xA0",this.props.sources.length<64?o.createElement("span",{className:"pointer-area",onClick:this.handleAddClick}," ",o.createElement("img",{width:"30",height:"30",src:"/plus.png",alt:""})," "):void 0)}}X(Ld,"propTypes",{onAddClick:A.func.isRequired,onReloadClick:A.func.isRequired});class Cg extends z.exports.Component{constructor(t){super(t),this.state={sources:[],source:{},isLoading:!1,isConfigLoading:!1,isEdit:!1,isInfo:!1,editIsOpen:!1,infoIsOpen:!1,removeIsOpen:!1,ticFrameSizeAt1fs:"",sampleRate:"",editTitle:""},this.onInfoClick=this.onInfoClick.bind(this),this.onEditClick=this.onEditClick.bind(this),this.onTrashClick=this.onTrashClick.bind(this),this.onAddClick=this.onAddClick.bind(this),this.onReloadClick=this.onReloadClick.bind(this),this.openInfo=this.openInfo.bind(this),this.openEdit=this.openEdit.bind(this),this.closeEdit=this.closeEdit.bind(this),this.closeInfo=this.closeInfo.bind(this),this.applyEdit=this.applyEdit.bind(this),this.fetchSources=this.fetchSources.bind(this)}fetchSources(){this.setState({isLoading:!0,isConfigLoading:!0}),ce.getSources().then(t=>t.json()).then(t=>this.setState({sources:t.sources,isLoading:!1})).catch(t=>this.setState({isLoading:!1})),ce.getConfig().then(t=>t.json()).then(t=>this.setState({isConfigLoading:!1,ticFrameSizeAt1fs:t.tic_frame_size_at_1fs,sampleRate:t.sample_rate})).catch(t=>this.setState({isConfigLoading:!1}))}componentDidMount(){this.fetchSources()}openInfo(t,n,r,i){this.setState({infoIsOpen:!0,infoTitle:t,source:n,sdp:r,isInfo:i})}openEdit(t,n,r){this.setState({editIsOpen:!0,editTitle:t,source:n,isEdit:r})}applyEdit(){this.closeEdit(),this.fetchSources()}closeEdit(){this.setState({editIsOpen:!1}),this.setState({removeIsOpen:!1}),this.fetchSources()}closeInfo(){this.setState({infoIsOpen:!1})}onInfoClick(t,n){const r=this.state.sources.find(i=>i.id===t);this.openInfo("Local Source Info",r,n,!0)}onEditClick(t){const n=this.state.sources.find(r=>r.id===t);this.openEdit("Edit Source "+t,n,!0)}onTrashClick(t){const n=this.state.sources.find(r=>r.id===t);this.setState({removeIsOpen:!0,source:n})}onReloadClick(){this.fetchSources()}onAddClick(){let t;for(t=0;t<63&&!(this.state.sources[t]===void 0||this.state.sources[t].id!==t);t++);const n={id:t,enabled:!0,name:"ALSA Source "+t,io:"Audio Device",max_samples_per_packet:48,codec:"L16",ttl:15,payload_type:98,dscp:34,refclk_ptp_traceable:!1,map:[t*2%64,(t*2+1)%64]};this.openEdit("Add Source "+t,n,!1)}render(){this.state.sources.sort((n,r)=>n.id>r.id?1:-1);const t=this.state.sources.map(n=>o.createElement(Nd,{key:n.id,id:n.id,name:n.name,channels:n.map.length,onInfoClick:this.onInfoClick,onEditClick:this.onEditClick,onTrashClick:this.onTrashClick}));return o.createElement("div",{id:"sources"},this.state.isLoading||this.state.isConfigLoading?o.createElement(Ge,null):o.createElement(Ld,{onAddClick:this.onAddClick,onReloadClick:this.onReloadClick,sources:t}),this.state.infoIsOpen?o.createElement(hs,{infoIsOpen:this.state.infoIsOpen,closeInfo:this.closeInfo,infoTitle:this.state.infoTitle,isInfo:this.state.isInfo,id:this.state.source.id.toString(),name:this.state.source.name,source:"local",sdp:this.state.sdp}):void 0,this.state.editIsOpen?o.createElement(Rd,{editIsOpen:this.state.editIsOpen,closeEdit:this.closeEdit,applyEdit:this.applyEdit,editTitle:this.state.editTitle,isEdit:this.state.isEdit,ticFrameSizeAt1fs:this.state.ticFrameSizeAt1fs,sampleRate:this.state.sampleRate,source:this.state.source}):void 0,this.state.removeIsOpen?o.createElement(Id,{removeIsOpen:this.state.removeIsOpen,closeEdit:this.closeEdit,applyEdit:this.applyEdit,source:this.state.source,key:this.state.source.id}):void 0)}}const kg={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}};class bd extends z.exports.Component{constructor(t){super(t),this.state={sources:[],id:this.props.sink.id,name:this.props.sink.name,nameErr:!1,io:this.props.sink.io,delay:this.props.sink.delay,ignoreRefclkGmid:this.props.sink.ignore_refclk_gmid,useSdp:this.props.sink.use_sdp,source:this.props.sink.source,sourceErr:!1,sdp:this.props.sink.sdp,channels:this.props.sink.map.length,map:this.props.sink.map,audioMap:[]};let n;for(n=0;n<=64-this.state.channels;n+=1)this.state.audioMap.push(n);this.onSubmit=this.onSubmit.bind(this),this.onCancel=this.onCancel.bind(this),this.addSink=this.addSink.bind(this),this.onChangeChannels=this.onChangeChannels.bind(this),this.onChangeChannelsMap=this.onChangeChannelsMap.bind(this),this.inputIsValid=this.inputIsValid.bind(this),this.fetchRemoteSources=this.fetchRemoteSources.bind(this),this.onChangeRemoteSourceSDP=this.onChangeRemoteSourceSDP.bind(this)}fetchRemoteSources(){ce.getRemoteSources().then(t=>t.json()).then(t=>this.setState({sources:t.remote_sources}))}componentDidMount(){rt.setAppElement("body"),this.fetchRemoteSources()}addSink(t){ce.addSink(this.state.id,this.state.name,this.state.io,this.state.delay,this.state.useSdp,this.state.source?this.state.source:"",this.state.sdp?this.state.sdp:"",this.state.ignoreRefclkGmid,this.state.map,this.props.isEdit).then(function(n){this.props.applyEdit(),q.success(t)}.bind(this))}onSubmit(){this.addSink("Sink "+this.state.id+(this.props.isEdit?" updated ":" added"))}onCancel(){this.props.closeEdit()}onChangeChannels(t){if(t.currentTarget.checkValidity()){let n=parseInt(t.target.value,10),r=[],i=[],l;for(l=0;l<=64-n;l+=1)r.push(l);for(l=0;l<n;l++)i.push(l+this.state.map[0]);this.setState({map:i,channels:n,audioMap:r})}}onChangeChannelsMap(t){let n=parseInt(t.target.value,10),r=[],i;for(i=0;i<this.state.channels;i++)r.push(i+n);this.setState({map:r})}onChangeRemoteSourceSDP(t){t.target.value&&this.setState({sdp:t.target.value})}inputIsValid(){return!this.state.nameErr&&!this.state.sourceErr&&(this.state.useSdp||this.state.source)&&(!this.state.useSdp||this.state.sdp)}render(){return o.createElement("div",{id:"sink-edit"},o.createElement(rt,{ariaHideApp:!1,isOpen:this.props.editIsOpen,onRequestClose:this.props.closeEdit,style:kg,contentLabel:"Sink Edit"},o.createElement("h2",null,o.createElement("center",null,this.props.editTitle)),o.createElement("table",null,o.createElement("tbody",null,o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("font",{color:"grey"},"ID")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"0",max:"63",className:"input-number",value:this.state.id,onChange:t=>this.setState({id:t.target.value}),disabled:!0,required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Name")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{value:this.state.name,onChange:t=>this.setState({name:t.target.value,nameErr:!t.currentTarget.checkValidity()}),required:!0})," ")),o.createElement("tr",{height:"35"},o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Use SDP")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"checkbox",defaultChecked:this.state.useSdp,onChange:t=>this.setState({useSdp:t.target.checked})})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("font",{color:this.state.useSdp?"grey":"black"},"Source URL")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"url",size:"30",value:this.state.source,onChange:t=>this.setState({source:t.target.value,sourceErr:!t.currentTarget.checkValidity()}),disabled:this.state.useSdp?!0:void 0,required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("font",{color:this.state.useSdp?"black":"grey"},"Remote Source SDP")," "),o.createElement("th",{align:"left"},o.createElement("select",{value:this.state.sdp,onChange:this.onChangeRemoteSourceSDP,disabled:this.state.useSdp?void 0:!0},o.createElement("option",{key:"",value:""}," -- select a remote source SDP -- "),this.state.sources.map(t=>o.createElement("option",{key:t.id,value:t.sdp},t.source+" from "+t.address+" - "+t.name))))),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("font",{color:this.state.useSdp?"black":"grey"},"SDP")," "),o.createElement("th",{align:"left"}," ",o.createElement("textarea",{rows:"15",cols:"55",value:this.state.sdp,onChange:t=>this.setState({sdp:t.target.value}),disabled:this.state.useSdp?void 0:!0,required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Delay (samples) ")," "),o.createElement("th",{align:"left"},o.createElement("select",{value:this.state.delay,onChange:t=>this.setState({delay:t.target.value})},o.createElement("option",{value:"192"},"192 - 4ms@48kHz"),o.createElement("option",{value:"384"},"384 - 8ms@48kHz"),o.createElement("option",{value:"576"},"576 - 12ms@48kHz"),o.createElement("option",{value:"768"},"768 - 16ms@48kHz"),o.createElement("option",{value:"960"},"960 - 20ms@48kHz")))),o.createElement("tr",{height:"35"},o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Ignore RefClk GMID")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"checkbox",defaultChecked:this.state.ignoreRefclkGmid,onChange:t=>this.setState({ignoreRefclkGmid:t.target.checked})})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"}," ",o.createElement("label",null,"Channels")," "),o.createElement("th",{align:"left"}," ",o.createElement("input",{type:"number",min:"1",max:"64",className:"input-number",value:this.state.channels,onChange:this.onChangeChannels,required:!0})," ")),o.createElement("tr",null,o.createElement("th",{align:"left"},"Audio Channels map"),o.createElement("th",{align:"left"},o.createElement("select",{value:this.state.map[0],onChange:this.onChangeChannelsMap},this.state.channels>1?this.state.audioMap.map(t=>o.createElement("option",{key:t,value:t},"ALSA Input "+parseInt(t+1,10)+" -> ALSA Input "+parseInt(t+this.state.channels,10))):this.state.audioMap.map(t=>o.createElement("option",{key:t,value:t},"ALSA Input "+parseInt(t+1,10)))))))),o.createElement("br",null),o.createElement("div",{style:{textAlign:"center"}},o.createElement("button",{onClick:this.onSubmit,disabled:this.inputIsValid()?void 0:!0},"Submit"),"\xA0\xA0\xA0\xA0",o.createElement("button",{onClick:this.onCancel},"Cancel"))))}}X(bd,"propTypes",{sink:A.object.isRequired,applyEdit:A.func.isRequired,closeEdit:A.func.isRequired,editIsOpen:A.bool.isRequired,isEdit:A.bool.isRequired,editTitle:A.string.isRequired});const wg={content:{top:"50%",left:"50%",right:"auto",bottom:"auto",marginRight:"-50%",transform:"translate(-50%, -50%)"}};class Md extends z.exports.Component{constructor(t){super(t),this.onSubmit=this.onSubmit.bind(this),this.onCancel=this.onCancel.bind(this),this.removeSink=this.removeSink.bind(this)}componentDidMount(){rt.setAppElement("body")}removeSink(t){ce.removeSink(this.props.sink.id).then(function(n){q.success(t),this.props.applyEdit()}.bind(this))}onSubmit(){this.removeSink("Sink "+this.props.sink.id+" removed")}onCancel(){this.props.closeEdit()}render(){return o.createElement("div",{id:"sink-remove"},o.createElement(rt,{ariaHideApp:!1,isOpen:this.props.removeIsOpen,onRequestClose:this.props.closeEdit,style:wg,contentLabel:"Sink Remove"},o.createElement("h2",null,o.createElement("center",null,"Remove sink "+this.props.sink.id)),o.createElement("h3",null,o.createElement("center",null,"Do you want to proceed ?")),o.createElement("br",null),o.createElement("div",{style:{textAlign:"center"}},o.createElement("button",{onClick:this.onSubmit},"Submit"),"\xA0\xA0\xA0\xA0",o.createElement("button",{onClick:this.onCancel},"Cancel"))))}}X(Md,"propTypes",{sink:A.object.isRequired,applyEdit:A.func.isRequired,closeEdit:A.func.isRequired,removeIsOpen:A.bool.isRequired});class Ad extends z.exports.Component{constructor(n){super(n);X(this,"handleEditClick",()=>{this.props.onEditClick(this.props.id)});X(this,"handleTrashClick",()=>{this.props.onTrashClick(this.props.id)});this.state={min_time:"n/a",flags:"n/a",errors:"n/a"}}componentDidMount(){ce.getSinkStatus(this.props.id).then(n=>n.json()).then(function(n){let r="";n.sink_flags.rtp_seq_id_error&&(r+="SEQID"),n.sink_flags.rtp_ssrc_error&&(r+=(r?",":"")+"SSRC"),n.sink_flags.rtp_payload_type_error&&(r+=(r?",":"")+"payload type"),n.sink_flags.rtp_sac_error&&(r+=(r?",":"")+"SAC");let i="";n.sink_flags.receiving_rtp_packet&&(i+="receiving"),n.sink_flags._some_muted&&(i+=(i?",":"")+"some muted"),n.sink_flags._all_muted&&(i+=(i?",":"")+"all muted"),n.sink_flags._muted&&(i+=(i?",":"")+"muted"),this.setState({min_time:n.sink_min_time+" ms",flags:i||"idle",errors:r||"none"})}.bind(this))}render(){return o.createElement("tr",{className:"tr-stream"},o.createElement("td",null," ",o.createElement("label",null,this.props.id)," "),o.createElement("td",null," ",o.createElement("label",null,this.props.name)," "),o.createElement("td",{align:"center"}," ",o.createElement("label",null,this.props.channels)," "),o.createElement("td",{align:"center"}," ",o.createElement("label",null,this.state.flags)," "),o.createElement("td",{align:"center"}," ",o.createElement("label",null,this.state.errors)," "),o.createElement("td",{align:"center"}," ",o.createElement("label",null,this.state.min_time)," "),o.createElement("td",null," ",o.createElement("span",{className:"pointer-area",onClick:this.handleEditClick}," ",o.createElement("img",{width:"20",height:"20",src:"/edit.png",alt:""})," ")," "),o.createElement("td",null," ",o.createElement("span",{className:"pointer-area",onClick:this.handleTrashClick}," ",o.createElement("img",{width:"20",height:"20",src:"/trash.png",alt:""})," ")," "))}}X(Ad,"propTypes",{id:A.number.isRequired,name:A.string.isRequired,channels:A.number.isRequired,onEditClick:A.func.isRequired,onTrashClick:A.func.isRequired});class Dd extends z.exports.Component{constructor(){super(...arguments);X(this,"handleAddClick",()=>{this.props.onAddClick()});X(this,"handleReloadClick",()=>{this.props.onReloadClick()})}render(){return o.createElement("div",{id:"sinks-table"},o.createElement("table",{className:"table-stream"},o.createElement("tbody",null,this.props.sinks.length>0?o.createElement("tr",{className:"tr-stream"},o.createElement("th",null,"ID"),o.createElement("th",null,"Name"),o.createElement("th",null,"Channels"),o.createElement("th",null,"Status"),o.createElement("th",null,"Errors"),o.createElement("th",null,"Min. arrival time")):o.createElement("tr",null,o.createElement("th",null,"No sinks configured")),this.props.sinks)),"\xA0",o.createElement("span",{className:"pointer-area",onClick:this.handleReloadClick}," ",o.createElement("img",{width:"30",height:"30",src:"/reload.png",alt:""})," "),"\xA0\xA0",this.props.sinks.length<64?o.createElement("span",{className:"pointer-area",onClick:this.handleAddClick}," ",o.createElement("img",{width:"30",height:"30",src:"/plus.png",alt:""})," "):void 0)}}X(Dd,"propTypes",{onAddClick:A.func.isRequired,onReloadClick:A.func.isRequired});class xg extends z.exports.Component{constructor(t){super(t),this.state={sinks:[],sink:{},isLoading:!1,isEdit:!1,editIsOpen:!1,removeIsOpen:!1,editTitle:""},this.onEditClick=this.onEditClick.bind(this),this.onTrashClick=this.onTrashClick.bind(this),this.onAddClick=this.onAddClick.bind(this),this.onReloadClick=this.onReloadClick.bind(this),this.openEdit=this.openEdit.bind(this),this.closeEdit=this.closeEdit.bind(this),this.applyEdit=this.applyEdit.bind(this),this.fetchSinks=this.fetchSinks.bind(this)}fetchSinks(){this.setState({isLoading:!0}),ce.getSinks().then(t=>t.json()).then(t=>this.setState({sinks:t.sinks,isLoading:!1})).catch(t=>this.setState({isLoading:!1}))}componentDidMount(){this.fetchSinks()}openEdit(t,n,r){this.setState({editIsOpen:!0,editTitle:t,sink:n,isEdit:r})}applyEdit(){this.closeEdit(),this.fetchSinks()}onReloadClick(){this.fetchSinks()}closeEdit(){this.setState({editIsOpen:!1}),this.setState({removeIsOpen:!1}),this.fetchSinks()}onEditClick(t){const n=this.state.sinks.find(r=>r.id===t);this.openEdit("Edit Sink "+t,n,!0)}onTrashClick(t){const n=this.state.sinks.find(r=>r.id===t);this.setState({removeIsOpen:!0,sink:n})}onAddClick(){let t;for(t=0;t<63&&!(this.state.sinks[t]===void 0||this.state.sinks[t].id!==t);t++);const n={id:t,name:"ALSA Sink "+t,io:"Audio Device",delay:576,use_sdp:!1,source:ce.getBaseUrl()+"/api/source/sdp/"+t,sdp:"",ignore_refclk_gmid:!0,map:[t*2%64,(t*2+1)%64]};this.openEdit("Add Sink "+t,n,!1)}render(){this.state.sinks.sort((n,r)=>n.id>r.id?1:-1);const t=this.state.sinks.map(n=>o.createElement(Ad,{key:n.id,id:n.id,channels:n.map.length,name:n.name,onEditClick:this.onEditClick,onTrashClick:this.onTrashClick}));return o.createElement("div",{id:"sinks"},this.state.isLoading?o.createElement(Ge,null):o.createElement(Dd,{onAddClick:this.onAddClick,onReloadClick:this.onReloadClick,sinks:t}),this.state.editIsOpen?o.createElement(bd,{editIsOpen:this.state.editIsOpen,closeEdit:this.closeEdit,applyEdit:this.applyEdit,editTitle:this.state.editTitle,isEdit:this.state.isEdit,sink:this.state.sink}):void 0,this.state.removeIsOpen?o.createElement(Md,{removeIsOpen:this.state.removeIsOpen,closeEdit:this.closeEdit,applyEdit:this.applyEdit,sink:this.state.sink,key:this.state.sink.id}):void 0)}}class Fd extends z.exports.Component{constructor(n){super(n);X(this,"handleInfoClick",()=>{this.props.onInfoClick(this.props.id)});this.state={rtp_address:"n/a",port:"n/a"}}componentDidMount(){var n=this.props.sdp.match(/(c=IN IP4 )([0-9.]+)/g),r=this.props.sdp.match(/(m=audio )([0-9]+)/g);n&&r&&this.setState({rtp_address:n[0].substr(9),port:r[0].substr(8)})}render(){return o.createElement("tr",{className:"tr-browser"},o.createElement("td",null," ",o.createElement("label",null,this.props.source)," "),o.createElement("td",null," ",o.createElement("label",null,this.props.address)," "),o.createElement("td",null," ",o.createElement("label",null,this.props.name)," "),o.createElement("td",null," ",o.createElement("label",null,this.props.source=="mDNS"?this.props.domain:"N/A")," "),o.createElement("td",null," ",o.createElement("label",null,this.state.rtp_address)," "),o.createElement("td",{align:"center"}," ",o.createElement("label",null,this.state.port)," "),o.createElement("td",{align:"center"}," ",o.createElement("label",null,this.props.last_seen)," "),o.createElement("td",{align:"center"}," ",o.createElement("label",null,this.props.source=="SAP"?this.props.period:"N/A")," "),o.createElement("td",null," ",o.createElement("span",{className:"pointer-area",onClick:this.handleInfoClick}," ",o.createElement("img",{width:"20",height:"20",src:"/info.png",alt:""})," ")," "))}}X(Fd,"propTypes",{source:A.string.isRequired,id:A.string.isRequired,name:A.string.isRequired,domain:A.string.isRequired,address:A.string.isRequired,sdp:A.string.isRequired,last_seen:A.number.isRequired,period:A.number.isRequired,onInfoClick:A.func.isRequired});class Ud extends z.exports.Component{constructor(){super(...arguments);X(this,"handleReloadClick",()=>{this.props.onReloadClick()})}render(){return o.createElement("div",{id:"remote-sources-table"},o.createElement("table",{className:"table-stream"},o.createElement("tbody",null,this.props.sources.length>0?o.createElement("tr",{className:"tr-stream"},o.createElement("th",null,"Source"),o.createElement("th",null,"Address"),o.createElement("th",null,"Name"),o.createElement("th",null,"Domain"),o.createElement("th",null,"RTP Address"),o.createElement("th",null,"Port"),o.createElement("th",null,"Seen"),o.createElement("th",null,"Period")):o.createElement("tr",null,o.createElement("th",null,"No remote sources found.")),this.props.sources)),"\xA0",o.createElement("span",{className:"pointer-area",onClick:this.handleReloadClick}," ",o.createElement("img",{width:"30",height:"30",src:"/reload.png",alt:""})," "),"\xA0\xA0")}}X(Ud,"propTypes",{onReloadClick:A.func.isRequired});class _g extends z.exports.Component{constructor(t){super(t),this.state={sources:[],isLoading:!1,infoIsOpen:!1,infoTitle:""},this.onInfoClick=this.onInfoClick.bind(this),this.onReloadClick=this.onReloadClick.bind(this),this.openInfo=this.openInfo.bind(this),this.closeInfo=this.closeInfo.bind(this),this.fetchRemoteSources=this.fetchRemoteSources.bind(this)}fetchRemoteSources(){this.setState({isLoading:!0}),ce.getRemoteSources().then(t=>t.json()).then(t=>this.setState({sources:t.remote_sources,isLoading:!1})).catch(t=>this.setState({isLoading:!1}))}componentDidMount(){this.fetchRemoteSources()}openInfo(t,n){this.setState({infoIsOpen:!0,infoTitle:t,source:n})}closeInfo(){this.setState({infoIsOpen:!1}),this.fetchRemoteSources()}onInfoClick(t){const n=this.state.sources.find(r=>r.id===t);this.openInfo("Announced Source Info",n,!0)}onReloadClick(){this.fetchRemoteSources()}render(){const t=this.state.sources.map(n=>o.createElement(Fd,{key:n.id,source:n.source,id:n.id,address:n.address,name:n.name,domain:n.domain,sdp:n.sdp,last_seen:n.last_seen,period:n.announce_period,onInfoClick:this.onInfoClick}));return o.createElement("div",{id:"sources"},this.state.isLoading?o.createElement(Ge,null):o.createElement(Ud,{onReloadClick:this.onReloadClick,sources:t}),this.state.infoIsOpen?o.createElement(hs,{infoIsOpen:this.state.infoIsOpen,closeInfo:this.closeInfo,infoTitle:this.state.infoTitle,id:this.state.source.id,source:this.state.source.source,name:this.state.source.name,domain:this.state.source.domain,sdp:this.state.source.sdp}):void 0)}}class on extends z.exports.Component{constructor(t){super(t),this.state={titleExtras:""},this.setTitleExtras=this.setTitleExtras.bind(this)}setTitleExtras(t){this.state.titleExtras!=t&&this.setState({titleExtras:t})}render(){return o.createElement("div",null,o.createElement("h1",null,"AES67 Daemon"),o.createElement("h3",null,"Running on ",this.state.titleExtras),o.createElement(yd,{currentTab:this.props.currentTab},o.createElement("div",{label:"Config"},o.createElement(Cd,{setTitleExtras:this.setTitleExtras})),o.createElement("div",{label:"PTP"},o.createElement(hv,null)),o.createElement("div",{label:"Sources"},o.createElement(Cg,null)),o.createElement("div",{label:"Sinks"},o.createElement(xg,null)),o.createElement("div",{label:"Browser"},o.createElement(_g,null))))}}X(on,"propTypes",{currentTab:A.string.isRequired});q.configure();function Tg(){return o.createElement("div",null,o.createElement(Hm,null,o.createElement("div",null,o.createElement($m,null,o.createElement(nr,{exact:!0,path:"/PTP",component:()=>o.createElement(on,{key:"PTP",currentTab:"PTP"})}),o.createElement(nr,{exact:!0,path:"/Sources",component:()=>o.createElement(on,{key:"Sources",currentTab:"Sources"})}),o.createElement(nr,{exact:!0,path:"/Sinks",component:()=>o.createElement(on,{key:"Sinks",currentTab:"Sinks"})}),o.createElement(nr,{exact:!0,path:"/Browser",component:()=>o.createElement(on,{key:"Browser",currentTab:"Browser"})}),o.createElement(nr,{component:()=>o.createElement(on,{key:"Config",currentTab:"Config"})})))))}Qh.render(o.createElement(o.StrictMode,null,o.createElement(Tg,null)),document.getElementById("root"));
