From 1abd447cf9b34cd8f6087814fcb41a24a2852347 Mon Sep 17 00:00:00 2001 From: dvovk Date: Tue, 24 Oct 2023 18:46:30 +0300 Subject: [PATCH] updated UI, updated peer diagnostics data structure --- internal/erigon_node/types.go | 18 +- web/dist/assets/index-5fd7743c.css | 1 - web/dist/assets/index-9c571887.js | 702 ----------------------------- web/dist/index.html | 4 +- 4 files changed, 13 insertions(+), 712 deletions(-) delete mode 100644 web/dist/assets/index-5fd7743c.css delete mode 100644 web/dist/assets/index-9c571887.js diff --git a/internal/erigon_node/types.go b/internal/erigon_node/types.go index b09f384..b2065cd 100644 --- a/internal/erigon_node/types.go +++ b/internal/erigon_node/types.go @@ -10,11 +10,17 @@ type Versions struct { } type PeerNetworkInfo struct { - LocalAddress string `json:"localAddress"` // Local endpoint of the TCP data connection - RemoteAddress string `json:"remoteAddress"` // Remote endpoint of the TCP data connection - Inbound bool `json:"inbound"` - Trusted bool `json:"trusted"` - Static bool `json:"static"` + LocalAddress string `json:"localAddress"` // Local endpoint of the TCP data connection + RemoteAddress string `json:"remoteAddress"` // Remote endpoint of the TCP data connection + Inbound bool `json:"inbound"` + Trusted bool `json:"trusted"` + Static bool `json:"static"` + BytesIn int `json:"bytesIn"` // Number of bytes received from the peer + BytesOut int `json:"bytesOut"` // Number of bytes sent to the peer + CapBytesIn map[string]int `json:"capBytesIn"` + CapBytesOut map[string]int `json:"capBytesOut"` + TypeBytesIn map[string]int `json:"typeBytesIn"` + TypeBytesOut map[string]int `json:"typeBytesOut"` } type PeerInfo struct { @@ -28,8 +34,6 @@ type PeerInfo struct { Caps []string `json:"caps"` // Protocols advertised by this peer Network PeerNetworkInfo `json:"network"` Protocols map[string]interface{} `json:"protocols"` // Sub-protocol specific metadata fields - BytesIn int `json:"bytesIn"` // Number of bytes received from the peer - BytesOut int `json:"bytesOut"` // Number of bytes sent to the peer } type PeersInfo []PeerInfo diff --git a/web/dist/assets/index-5fd7743c.css b/web/dist/assets/index-5fd7743c.css deleted file mode 100644 index ef6978d..0000000 --- a/web/dist/assets/index-5fd7743c.css +++ /dev/null @@ -1 +0,0 @@ -.storybook-button{font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;border:0;border-radius:3em;cursor:pointer;display:inline-block;line-height:1;color:#fff;background-color:#1ea7fd}.storybook-button--primary{color:#fff;background-color:#1ea7fd}.storybook-button--secondary{color:#333;box-shadow:#00000026 0 0 0 1px inset}.storybook-button--small{font-size:12px;padding:10px 16px}.storybook-button--medium{font-size:14px;padding:11px 20px}.storybook-button--large{font-size:16px;padding:12px 24px}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-1{top:.25rem;right:.25rem;bottom:.25rem;left:.25rem}.z-40{z-index:40}.z-50{z-index:50}.float-right{float:right}.mx-auto{margin-left:auto;margin-right:auto}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-auto{margin-left:auto}.mr-2{margin-right:.5rem}.mt-10{margin-top:2.5rem}.mt-4{margin-top:1rem}.block{display:block}.flex{display:flex}.table{display:table}.contents{display:contents}.h-6{height:1.5rem}.min-h-\[40px\]{min-height:40px}.w-2{width:.5rem}.w-6{width:1.5rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.max-w-3xl{max-width:48rem}.max-w-\[1400px\]{max-width:1400px}.flex-auto{flex:1 1 auto}.table-auto{table-layout:auto}.cursor-pointer{cursor:pointer}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-solid{border-style:solid}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity: 1;border-color:rgb(226 232 240 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pr-2{padding-right:.5rem}.pr-8{padding-right:2rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.opacity-100{opacity:1}.opacity-25{opacity:.25}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}body{background-color:azure;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-500:hover{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.active\:bg-gray-500:active{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.active\:text-white:active{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}@media (prefers-color-scheme: dark){.dark\:border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.dark\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:focus\:bg-gray-700:focus{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}} diff --git a/web/dist/assets/index-9c571887.js b/web/dist/assets/index-9c571887.js deleted file mode 100644 index b47be6b..0000000 --- a/web/dist/assets/index-9c571887.js +++ /dev/null @@ -1,702 +0,0 @@ -function OE(e,t){for(var r=0;rn[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();var Uo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ka(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var db={exports:{}},Lc={},hb={exports:{}},Re={};/** - * @license React - * 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 cs=Symbol.for("react.element"),PE=Symbol.for("react.portal"),IE=Symbol.for("react.fragment"),zE=Symbol.for("react.strict_mode"),jE=Symbol.for("react.profiler"),AE=Symbol.for("react.provider"),ME=Symbol.for("react.context"),NE=Symbol.for("react.forward_ref"),LE=Symbol.for("react.suspense"),$E=Symbol.for("react.memo"),DE=Symbol.for("react.lazy"),Yy=Symbol.iterator;function FE(e){return e===null||typeof e!="object"?null:(e=Yy&&e[Yy]||e["@@iterator"],typeof e=="function"?e:null)}var pb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},mb=Object.assign,vb={};function Pa(e,t,r){this.props=e,this.context=t,this.refs=vb,this.updater=r||pb}Pa.prototype.isReactComponent={};Pa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Pa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function gb(){}gb.prototype=Pa.prototype;function _m(e,t,r){this.props=e,this.context=t,this.refs=vb,this.updater=r||pb}var Sm=_m.prototype=new gb;Sm.constructor=_m;mb(Sm,Pa.prototype);Sm.isPureReactComponent=!0;var Qy=Array.isArray,yb=Object.prototype.hasOwnProperty,bm={current:null},_b={key:!0,ref:!0,__self:!0,__source:!0};function Sb(e,t,r){var n,o={},i=null,a=null;if(t!=null)for(n in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)yb.call(t,n)&&!_b.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1>>1,Ee=Z[Se];if(0>>1;Seo(ye,fe))qo(V,ye)?(Z[Se]=V,Z[q]=fe,Se=q):(Z[Se]=ye,Z[tt]=fe,Se=tt);else if(qo(V,fe))Z[Se]=V,Z[q]=fe,Se=q;else break e}}return ie}function o(Z,ie){var fe=Z.sortIndex-ie.sortIndex;return fe!==0?fe:Z.id-ie.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var u=[],c=[],f=1,h=null,p=3,S=!1,_=!1,y=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(Z){for(var ie=r(c);ie!==null;){if(ie.callback===null)n(c);else if(ie.startTime<=Z)n(c),ie.sortIndex=ie.expirationTime,t(u,ie);else break;ie=r(c)}}function T(Z){if(y=!1,b(Z),!_)if(r(u)!==null)_=!0,se(k);else{var ie=r(c);ie!==null&&ge(T,ie.startTime-Z)}}function k(Z,ie){_=!1,y&&(y=!1,v(E),E=-1),S=!0;var fe=p;try{for(b(ie),h=r(u);h!==null&&(!(h.expirationTime>ie)||Z&&!M());){var Se=h.callback;if(typeof Se=="function"){h.callback=null,p=h.priorityLevel;var Ee=Se(h.expirationTime<=ie);ie=e.unstable_now(),typeof Ee=="function"?h.callback=Ee:h===r(u)&&n(u),b(ie)}else n(u);h=r(u)}if(h!==null)var xt=!0;else{var tt=r(c);tt!==null&&ge(T,tt.startTime-ie),xt=!1}return xt}finally{h=null,p=fe,S=!1}}var P=!1,w=null,E=-1,I=5,z=-1;function M(){return!(e.unstable_now()-zZ||125Se?(Z.sortIndex=fe,t(c,Z),r(u)===null&&Z===r(c)&&(y?(v(E),E=-1):y=!0,ge(T,fe-Se))):(Z.sortIndex=Ee,t(u,Z),_||S||(_=!0,se(k))),Z},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(Z){var ie=p;return function(){var fe=p;p=ie;try{return Z.apply(this,arguments)}finally{p=fe}}}})(Cb);xb.exports=Cb;var XE=xb.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Rb=N,wr=XE;function ee(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rp=Object.prototype.hasOwnProperty,JE=/^[: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]*$/,Jy={},Zy={};function ZE(e){return rp.call(Zy,e)?!0:rp.call(Jy,e)?!1:JE.test(e)?Zy[e]=!0:(Jy[e]=!0,!1)}function eO(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tO(e,t,r,n){if(t===null||typeof t>"u"||eO(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 Yt(e,t,r,n,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var Pt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pt[e]=new Yt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pt[t]=new Yt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pt[e]=new Yt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pt[e]=new Yt(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){Pt[e]=new Yt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pt[e]=new Yt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pt[e]=new Yt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pt[e]=new Yt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pt[e]=new Yt(e,5,!1,e.toLowerCase(),null,!1,!1)});var xm=/[\-:]([a-z])/g;function Cm(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(xm,Cm);Pt[t]=new Yt(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(xm,Cm);Pt[t]=new Yt(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(xm,Cm);Pt[t]=new Yt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pt[e]=new Yt(e,1,!1,e.toLowerCase(),null,!1,!1)});Pt.xlinkHref=new Yt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pt[e]=new Yt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rm(e,t,r,n){var o=Pt.hasOwnProperty(t)?Pt[t]:null;(o!==null?o.type!==0:n||!(2s||o[a]!==i[s]){var u=` -`+o[a].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=a&&0<=s);break}}}finally{Pd=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?cl(e):""}function rO(e){switch(e.tag){case 5:return cl(e.type);case 16:return cl("Lazy");case 13:return cl("Suspense");case 19:return cl("SuspenseList");case 0:case 2:case 15:return e=Id(e.type,!1),e;case 11:return e=Id(e.type.render,!1),e;case 1:return e=Id(e.type,!0),e;default:return""}}function ap(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 $i:return"Fragment";case Li:return"Portal";case np:return"Profiler";case Tm:return"StrictMode";case op:return"Suspense";case ip:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ob:return(e.displayName||"Context")+".Consumer";case Eb:return(e._context.displayName||"Context")+".Provider";case Em:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Om:return t=e.displayName||null,t!==null?t:ap(e.type)||"Memo";case eo:t=e._payload,e=e._init;try{return ap(e(t))}catch{}}return null}function nO(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ap(t);case 8:return t===Tm?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function wo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function oO(e){var t=Pb(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Us(e){e._valueTracker||(e._valueTracker=oO(e))}function Ib(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Pb(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Du(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function lp(e,t){var r=t.checked;return et({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function t0(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=wo(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function zb(e,t){t=t.checked,t!=null&&Rm(e,"checked",t,!1)}function sp(e,t){zb(e,t);var r=wo(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?up(e,t.type,r):t.hasOwnProperty("defaultValue")&&up(e,t.type,wo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function r0(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function up(e,t,r){(t!=="number"||Du(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var fl=Array.isArray;function Qi(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=qs.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ml(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Sl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iO=["Webkit","ms","Moz","O"];Object.keys(Sl).forEach(function(e){iO.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Sl[t]=Sl[e]})});function Nb(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Sl.hasOwnProperty(e)&&Sl[e]?(""+t).trim():t+"px"}function Lb(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Nb(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}var aO=et({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 dp(e,t){if(t){if(aO[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(ee(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(ee(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(ee(61))}if(t.style!=null&&typeof t.style!="object")throw Error(ee(62))}}function hp(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pp=null;function km(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mp=null,Xi=null,Ji=null;function i0(e){if(e=hs(e)){if(typeof mp!="function")throw Error(ee(280));var t=e.stateNode;t&&(t=Bc(t),mp(e.stateNode,e.type,t))}}function $b(e){Xi?Ji?Ji.push(e):Ji=[e]:Xi=e}function Db(){if(Xi){var e=Xi,t=Ji;if(Ji=Xi=null,i0(e),t)for(e=0;e>>=0,e===0?32:31-(gO(e)/yO|0)|0}var Hs=64,Gs=4194304;function dl(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Uu(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=dl(s):(i&=a,i!==0&&(n=dl(i)))}else a=r&~o,a!==0?n=dl(a):i!==0&&(n=dl(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&o)&&(o=n&-n,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function fs(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-en(t),e[t]=r}function wO(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=wl),p0=String.fromCharCode(32),m0=!1;function iw(e,t){switch(e){case"keyup":return QO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Di=!1;function JO(e,t){switch(e){case"compositionend":return aw(t);case"keypress":return t.which!==32?null:(m0=!0,p0);case"textInput":return e=t.data,e===p0&&m0?null:e;default:return null}}function ZO(e,t){if(Di)return e==="compositionend"||!Lm&&iw(e,t)?(e=nw(),_u=Am=io=null,Di=!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)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=_0(r)}}function cw(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cw(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fw(){for(var e=window,t=Du();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Du(e.document)}return t}function $m(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function sk(e){var t=fw(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&cw(r.ownerDocument.documentElement,r)){if(n!==null&&$m(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=S0(r,i);var a=S0(r,n);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Fi=null,bp=null,Cl=null,wp=!1;function b0(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;wp||Fi==null||Fi!==Du(n)||(n=Fi,"selectionStart"in n&&$m(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Cl&&Wl(Cl,n)||(Cl=n,n=Gu(bp,"onSelect"),0Ui||(e.current=Op[Ui],Op[Ui]=null,Ui--)}function Be(e,t){Ui++,Op[Ui]=e.current,e.current=t}var xo={},Wt=ko(xo),tr=ko(!1),ei=xo;function sa(e,t){var r=e.type.contextTypes;if(!r)return xo;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function rr(e){return e=e.childContextTypes,e!=null}function Ku(){Ge(tr),Ge(Wt)}function O0(e,t,r){if(Wt.current!==xo)throw Error(ee(168));Be(Wt,t),Be(tr,r)}function Sw(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in t))throw Error(ee(108,nO(e)||"Unknown",o));return et({},r,n)}function Yu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xo,ei=Wt.current,Be(Wt,e),Be(tr,tr.current),!0}function k0(e,t,r){var n=e.stateNode;if(!n)throw Error(ee(169));r?(e=Sw(e,t,ei),n.__reactInternalMemoizedMergedChildContext=e,Ge(tr),Ge(Wt),Be(Wt,e)):Ge(tr),Be(tr,r)}var zn=null,Uc=!1,Hd=!1;function bw(e){zn===null?zn=[e]:zn.push(e)}function Sk(e){Uc=!0,bw(e)}function Po(){if(!Hd&&zn!==null){Hd=!0;var e=0,t=Le;try{var r=zn;for(Le=1;e>=a,o-=a,Mn=1<<32-en(t)+o|r<E?(I=w,w=null):I=w.sibling;var z=p(v,w,b[E],T);if(z===null){w===null&&(w=I);break}e&&w&&z.alternate===null&&t(v,w),g=i(z,g,E),P===null?k=z:P.sibling=z,P=z,w=I}if(E===b.length)return r(v,w),Xe&&Do(v,E),k;if(w===null){for(;EE?(I=w,w=null):I=w.sibling;var M=p(v,w,z.value,T);if(M===null){w===null&&(w=I);break}e&&w&&M.alternate===null&&t(v,w),g=i(M,g,E),P===null?k=M:P.sibling=M,P=M,w=I}if(z.done)return r(v,w),Xe&&Do(v,E),k;if(w===null){for(;!z.done;E++,z=b.next())z=h(v,z.value,T),z!==null&&(g=i(z,g,E),P===null?k=z:P.sibling=z,P=z);return Xe&&Do(v,E),k}for(w=n(v,w);!z.done;E++,z=b.next())z=S(w,v,E,z.value,T),z!==null&&(e&&z.alternate!==null&&w.delete(z.key===null?E:z.key),g=i(z,g,E),P===null?k=z:P.sibling=z,P=z);return e&&w.forEach(function(F){return t(v,F)}),Xe&&Do(v,E),k}function C(v,g,b,T){if(typeof b=="object"&&b!==null&&b.type===$i&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Bs:e:{for(var k=b.key,P=g;P!==null;){if(P.key===k){if(k=b.type,k===$i){if(P.tag===7){r(v,P.sibling),g=o(P,b.props.children),g.return=v,v=g;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===eo&&N0(k)===P.type){r(v,P.sibling),g=o(P,b.props),g.ref=tl(v,P,b),g.return=v,v=g;break e}r(v,P);break}else t(v,P);P=P.sibling}b.type===$i?(g=Yo(b.props.children,v.mode,T,b.key),g.return=v,v=g):(T=Eu(b.type,b.key,b.props,null,v.mode,T),T.ref=tl(v,g,b),T.return=v,v=T)}return a(v);case Li:e:{for(P=b.key;g!==null;){if(g.key===P)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){r(v,g.sibling),g=o(g,b.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else t(v,g);g=g.sibling}g=Zd(b,v.mode,T),g.return=v,v=g}return a(v);case eo:return P=b._init,C(v,g,P(b._payload),T)}if(fl(b))return _(v,g,b,T);if(Qa(b))return y(v,g,b,T);Zs(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(r(v,g.sibling),g=o(g,b),g.return=v,v=g):(r(v,g),g=Jd(b,v.mode,T),g.return=v,v=g),a(v)):r(v,g)}return C}var ca=kw(!0),Pw=kw(!1),ps={},yn=ko(ps),Hl=ko(ps),Gl=ko(ps);function Go(e){if(e===ps)throw Error(ee(174));return e}function Vm(e,t){switch(Be(Gl,t),Be(Hl,e),Be(yn,ps),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fp(t,e)}Ge(yn),Be(yn,t)}function fa(){Ge(yn),Ge(Hl),Ge(Gl)}function Iw(e){Go(Gl.current);var t=Go(yn.current),r=fp(t,e.type);t!==r&&(Be(Hl,e),Be(yn,r))}function Km(e){Hl.current===e&&(Ge(yn),Ge(Hl))}var Je=ko(0);function tc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 Gd=[];function Ym(){for(var e=0;er?r:4,e(!0);var n=Vd.transition;Vd.transition={};try{e(!1),t()}finally{Le=r,Vd.transition=n}}function Vw(){return Nr().memoizedState}function Ck(e,t,r){var n=vo(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Kw(e))Yw(t,r);else if(r=Rw(e,t,r,n),r!==null){var o=Vt();tn(r,e,n,o),Qw(r,t,n)}}function Rk(e,t,r){var n=vo(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Kw(e))Yw(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,rn(s,a)){var u=t.interleaved;u===null?(o.next=o,Hm(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}r=Rw(e,t,o,n),r!==null&&(o=Vt(),tn(r,e,n,o),Qw(r,t,n))}}function Kw(e){var t=e.alternate;return e===Ze||t!==null&&t===Ze}function Yw(e,t){Rl=rc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Qw(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Im(e,r)}}var nc={readContext:Mr,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useInsertionEffect:At,useLayoutEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useMutableSource:At,useSyncExternalStore:At,useId:At,unstable_isNewReconciler:!1},Tk={readContext:Mr,useCallback:function(e,t){return cn().memoizedState=[e,t===void 0?null:t],e},useContext:Mr,useEffect:$0,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,xu(4194308,4,Bw.bind(null,t,e),r)},useLayoutEffect:function(e,t){return xu(4194308,4,e,t)},useInsertionEffect:function(e,t){return xu(4,2,e,t)},useMemo:function(e,t){var r=cn();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=cn();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=Ck.bind(null,Ze,e),[n.memoizedState,e]},useRef:function(e){var t=cn();return e={current:e},t.memoizedState=e},useState:L0,useDebugValue:ev,useDeferredValue:function(e){return cn().memoizedState=e},useTransition:function(){var e=L0(!1),t=e[0];return e=xk.bind(null,e[1]),cn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Ze,o=cn();if(Xe){if(r===void 0)throw Error(ee(407));r=r()}else{if(r=t(),St===null)throw Error(ee(349));ri&30||Aw(n,t,r)}o.memoizedState=r;var i={value:r,getSnapshot:t};return o.queue=i,$0(Nw.bind(null,n,i,e),[e]),n.flags|=2048,Yl(9,Mw.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=cn(),t=St.identifierPrefix;if(Xe){var r=Nn,n=Mn;r=(n&~(1<<32-en(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Vl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=a.createElement(r,{is:n.is}):(e=a.createElement(r),r==="select"&&(a=e,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):e=a.createElementNS(e,r),e[mn]=t,e[ql]=n,ix(e,t,!1,!1),t.stateNode=e;e:{switch(a=hp(r,n),r){case"dialog":He("cancel",e),He("close",e),o=n;break;case"iframe":case"object":case"embed":He("load",e),o=n;break;case"video":case"audio":for(o=0;oha&&(t.flags|=128,n=!0,rl(i,!1),t.lanes=4194304)}else{if(!n)if(e=tc(a),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),rl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Xe)return Mt(t),null}else 2*st()-i.renderingStartTime>ha&&r!==1073741824&&(t.flags|=128,n=!0,rl(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(r=i.last,r!==null?r.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=st(),t.sibling=null,r=Je.current,Be(Je,n?r&1|2:r&1),t):(Mt(t),null);case 22:case 23:return av(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?pr&1073741824&&(Mt(t),t.subtreeFlags&6&&(t.flags|=8192)):Mt(t),null;case 24:return null;case 25:return null}throw Error(ee(156,t.tag))}function Ak(e,t){switch(Fm(t),t.tag){case 1:return rr(t.type)&&Ku(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa(),Ge(tr),Ge(Wt),Ym(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Km(t),null;case 13:if(Ge(Je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(ee(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ge(Je),null;case 4:return fa(),null;case 10:return qm(t.type._context),null;case 22:case 23:return av(),null;case 24:return null;default:return null}}var tu=!1,Ft=!1,Mk=typeof WeakSet=="function"?WeakSet:Set,ce=null;function Vi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){ot(e,t,n)}else r.current=null}function Fp(e,t,r){try{r()}catch(n){ot(e,t,n)}}var V0=!1;function Nk(e,t){if(xp=qu,e=fw(),$m(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,u=-1,c=0,f=0,h=e,p=null;t:for(;;){for(var S;h!==r||o!==0&&h.nodeType!==3||(s=a+o),h!==i||n!==0&&h.nodeType!==3||(u=a+n),h.nodeType===3&&(a+=h.nodeValue.length),(S=h.firstChild)!==null;)p=h,h=S;for(;;){if(h===e)break t;if(p===r&&++c===o&&(s=a),p===i&&++f===n&&(u=a),(S=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=S}r=s===-1||u===-1?null:{start:s,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(Cp={focusedElem:e,selectionRange:r},qu=!1,ce=t;ce!==null;)if(t=ce,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ce=e;else for(;ce!==null;){t=ce;try{var _=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(_!==null){var y=_.memoizedProps,C=_.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?y:Yr(t.type,y),C);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ee(163))}}catch(T){ot(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,ce=e;break}ce=t.return}return _=V0,V0=!1,_}function Tl(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Fp(t,r,i)}o=o.next}while(o!==n)}}function Gc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Wp(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function sx(e){var t=e.alternate;t!==null&&(e.alternate=null,sx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[mn],delete t[ql],delete t[Ep],delete t[yk],delete t[_k])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ux(e){return e.tag===5||e.tag===3||e.tag===4}function K0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ux(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Bp(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Vu));else if(n!==4&&(e=e.child,e!==null))for(Bp(e,t,r),e=e.sibling;e!==null;)Bp(e,t,r),e=e.sibling}function Up(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Up(e,t,r),e=e.sibling;e!==null;)Up(e,t,r),e=e.sibling}var Tt=null,Qr=!1;function Zn(e,t,r){for(r=r.child;r!==null;)cx(e,t,r),r=r.sibling}function cx(e,t,r){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount($c,r)}catch{}switch(r.tag){case 5:Ft||Vi(r,t);case 6:var n=Tt,o=Qr;Tt=null,Zn(e,t,r),Tt=n,Qr=o,Tt!==null&&(Qr?(e=Tt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):Tt.removeChild(r.stateNode));break;case 18:Tt!==null&&(Qr?(e=Tt,r=r.stateNode,e.nodeType===8?qd(e.parentNode,r):e.nodeType===1&&qd(e,r),Dl(e)):qd(Tt,r.stateNode));break;case 4:n=Tt,o=Qr,Tt=r.stateNode.containerInfo,Qr=!0,Zn(e,t,r),Tt=n,Qr=o;break;case 0:case 11:case 14:case 15:if(!Ft&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&Fp(r,t,a),o=o.next}while(o!==n)}Zn(e,t,r);break;case 1:if(!Ft&&(Vi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){ot(r,t,s)}Zn(e,t,r);break;case 21:Zn(e,t,r);break;case 22:r.mode&1?(Ft=(n=Ft)||r.memoizedState!==null,Zn(e,t,r),Ft=n):Zn(e,t,r);break;default:Zn(e,t,r)}}function Y0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Mk),t.forEach(function(n){var o=Hk.bind(null,e,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Gr(e,t){var r=t.deletions;if(r!==null)for(var n=0;no&&(o=a),n&=~i}if(n=o,n=st()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*$k(n/1960))-n,10e?16:e,ao===null)var n=!1;else{if(e=ao,ao=null,ac=0,ke&6)throw Error(ee(331));var o=ke;for(ke|=4,ce=e.current;ce!==null;){var i=ce,a=i.child;if(ce.flags&16){var s=i.deletions;if(s!==null){for(var u=0;ust()-ov?Ko(e,0):nv|=r),nr(e,t)}function yx(e,t){t===0&&(e.mode&1?(t=Gs,Gs<<=1,!(Gs&130023424)&&(Gs=4194304)):t=1);var r=Vt();e=Un(e,t),e!==null&&(fs(e,t,r),nr(e,r))}function qk(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),yx(e,r)}function Hk(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(ee(314))}n!==null&&n.delete(t),yx(e,r)}var _x;_x=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||tr.current)er=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return er=!1,zk(e,t,r);er=!!(e.flags&131072)}else er=!1,Xe&&t.flags&1048576&&ww(t,Xu,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Cu(e,t),e=t.pendingProps;var o=sa(t,Wt.current);ea(t,r),o=Xm(null,t,n,e,o,r);var i=Jm();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,rr(n)?(i=!0,Yu(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Gm(t),o.updater=qc,t.stateNode=o,o._reactInternals=t,jp(t,n,e,r),t=Np(null,t,n,!0,i,r)):(t.tag=0,Xe&&i&&Dm(t),Ht(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Cu(e,t),e=t.pendingProps,o=n._init,n=o(n._payload),t.type=n,o=t.tag=Vk(n),e=Yr(n,e),o){case 0:t=Mp(null,t,n,e,r);break e;case 1:t=q0(null,t,n,e,r);break e;case 11:t=B0(null,t,n,e,r);break e;case 14:t=U0(null,t,n,Yr(n.type,e),r);break e}throw Error(ee(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Yr(n,o),Mp(e,t,n,o,r);case 1:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Yr(n,o),q0(e,t,n,o,r);case 3:e:{if(rx(t),e===null)throw Error(ee(387));n=t.pendingProps,i=t.memoizedState,o=i.element,Tw(e,t),ec(t,n,null,r);var a=t.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=da(Error(ee(423)),t),t=H0(e,t,n,r,o);break e}else if(n!==o){o=da(Error(ee(424)),t),t=H0(e,t,n,r,o);break e}else for(yr=ho(t.stateNode.containerInfo.firstChild),_r=t,Xe=!0,Xr=null,r=Pw(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ua(),n===o){t=qn(e,t,r);break e}Ht(e,t,n,r)}t=t.child}return t;case 5:return Iw(t),e===null&&Pp(t),n=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,Rp(n,o)?a=null:i!==null&&Rp(n,i)&&(t.flags|=32),tx(e,t),Ht(e,t,a,r),t.child;case 6:return e===null&&Pp(t),null;case 13:return nx(e,t,r);case 4:return Vm(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ca(t,null,n,r):Ht(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Yr(n,o),B0(e,t,n,o,r);case 7:return Ht(e,t,t.pendingProps,r),t.child;case 8:return Ht(e,t,t.pendingProps.children,r),t.child;case 12:return Ht(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Be(Ju,n._currentValue),n._currentValue=a,i!==null)if(rn(i.value,a)){if(i.children===o.children&&!tr.current){t=qn(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var u=s.firstContext;u!==null;){if(u.context===n){if(i.tag===1){u=Dn(-1,r&-r),u.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}i.lanes|=r,u=i.alternate,u!==null&&(u.lanes|=r),Ip(i.return,r,t),s.lanes|=r;break}u=u.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(ee(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Ip(a,r,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}Ht(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,ea(t,r),o=Mr(o),n=n(o),t.flags|=1,Ht(e,t,n,r),t.child;case 14:return n=t.type,o=Yr(n,t.pendingProps),o=Yr(n.type,o),U0(e,t,n,o,r);case 15:return Zw(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Yr(n,o),Cu(e,t),t.tag=1,rr(n)?(e=!0,Yu(t)):e=!1,ea(t,r),Ow(t,n,o),jp(t,n,o,r),Np(null,t,n,!0,e,r);case 19:return ox(e,t,r);case 22:return ex(e,t,r)}throw Error(ee(156,t.tag))};function Sx(e,t){return Gb(e,t)}function Gk(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zr(e,t,r,n){return new Gk(e,t,r,n)}function sv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Vk(e){if(typeof e=="function")return sv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Em)return 11;if(e===Om)return 14}return 2}function go(e,t){var r=e.alternate;return r===null?(r=zr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Eu(e,t,r,n,o,i){var a=2;if(n=e,typeof e=="function")sv(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case $i:return Yo(r.children,o,i,t);case Tm:a=8,o|=8;break;case np:return e=zr(12,r,t,o|2),e.elementType=np,e.lanes=i,e;case op:return e=zr(13,r,t,o),e.elementType=op,e.lanes=i,e;case ip:return e=zr(19,r,t,o),e.elementType=ip,e.lanes=i,e;case kb:return Kc(r,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Eb:a=10;break e;case Ob:a=9;break e;case Em:a=11;break e;case Om:a=14;break e;case eo:a=16,n=null;break e}throw Error(ee(130,e==null?e:typeof e,""))}return t=zr(a,r,t,o),t.elementType=e,t.type=n,t.lanes=i,t}function Yo(e,t,r,n){return e=zr(7,e,n,t),e.lanes=r,e}function Kc(e,t,r,n){return e=zr(22,e,n,t),e.elementType=kb,e.lanes=r,e.stateNode={isHidden:!1},e}function Jd(e,t,r){return e=zr(6,e,null,t),e.lanes=r,e}function Zd(e,t,r){return t=zr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Kk(e,t,r,n,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=jd(0),this.expirationTimes=jd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jd(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function uv(e,t,r,n,o,i,a,s,u){return e=new Kk(e,t,r,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=zr(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gm(i),e}function Yk(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cx)}catch(e){console.error(e)}}Cx(),wb.exports=Cr;var ms=wb.exports,n_=ms;tp.createRoot=n_.createRoot,tp.hydrateRoot=n_.hydrateRoot;/** - * @remix-run/router v1.8.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function hv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tP(){return Math.random().toString(36).substr(2,8)}function i_(e,t){return{usr:e.state,key:e.key,idx:t}}function Kp(e,t,r,n){return r===void 0&&(r=null),Xl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ja(t):t,{state:r,key:t&&t.key||n||tP()})}function uc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function ja(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function rP(e,t,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=lo.Pop,u=null,c=f();c==null&&(c=0,a.replaceState(Xl({},a.state,{idx:c}),""));function f(){return(a.state||{idx:null}).idx}function h(){s=lo.Pop;let C=f(),v=C==null?null:C-c;c=C,u&&u({action:s,location:y.location,delta:v})}function p(C,v){s=lo.Push;let g=Kp(y.location,C,v);r&&r(g,C),c=f()+1;let b=i_(g,c),T=y.createHref(g);try{a.pushState(b,"",T)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(T)}i&&u&&u({action:s,location:y.location,delta:1})}function S(C,v){s=lo.Replace;let g=Kp(y.location,C,v);r&&r(g,C),c=f();let b=i_(g,c),T=y.createHref(g);a.replaceState(b,"",T),i&&u&&u({action:s,location:y.location,delta:0})}function _(C){let v=o.location.origin!=="null"?o.location.origin:o.location.href,g=typeof C=="string"?C:uc(C);return mt(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let y={get action(){return s},get location(){return e(o,a)},listen(C){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(o_,h),u=C,()=>{o.removeEventListener(o_,h),u=null}},createHref(C){return t(o,C)},createURL:_,encodeLocation(C){let v=_(C);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:p,replace:S,go(C){return a.go(C)}};return y}var a_;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(a_||(a_={}));function nP(e,t,r){r===void 0&&(r="/");let n=typeof t=="string"?ja(t):t,o=pv(n.pathname||"/",r);if(o==null)return null;let i=Rx(e);oP(i);let a=null;for(let s=0;a==null&&s{let u={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(mt(u.relativePath.startsWith(n),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(n.length));let c=yo([n,u.relativePath]),f=r.concat(u);i.children&&i.children.length>0&&(mt(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Rx(i.children,t,f,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:fP(c,i.index),routesMeta:f})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let u of Tx(i.path))o(i,a,u)}),t}function Tx(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,o=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return o?[i,""]:[i];let a=Tx(n.join("/")),s=[];return s.push(...a.map(u=>u===""?i:[i,u].join("/"))),o&&s.push(...a),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function oP(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:dP(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const iP=/^:\w+$/,aP=3,lP=2,sP=1,uP=10,cP=-2,l_=e=>e==="*";function fP(e,t){let r=e.split("/"),n=r.length;return r.some(l_)&&(n+=cP),t&&(n+=lP),r.filter(o=>!l_(o)).reduce((o,i)=>o+(iP.test(i)?aP:i===""?sP:uP),n)}function dP(e,t){return e.length===t.length&&e.slice(0,-1).every((n,o)=>n===t[o])?e[e.length-1]-t[t.length-1]:0}function hP(e,t){let{routesMeta:r}=e,n={},o="/",i=[];for(let a=0;a{if(f==="*"){let p=s[h]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return c[f]=gP(s[h]||"",f),c},{}),pathname:i,pathnameBase:a,pattern:e}}function mP(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),hv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(n.push(s),"/([^\\/]+)"));return e.endsWith("*")?(n.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),n]}function vP(e){try{return decodeURI(e)}catch(t){return hv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function gP(e,t){try{return decodeURIComponent(e)}catch(r){return hv(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),e}}function pv(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}function yP(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:o=""}=typeof e=="string"?ja(e):e;return{pathname:r?r.startsWith("/")?r:_P(r,t):t,search:bP(n),hash:wP(o)}}function _P(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function eh(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Ex(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Ox(e,t,r,n){n===void 0&&(n=!1);let o;typeof e=="string"?o=ja(e):(o=Xl({},e),mt(!o.pathname||!o.pathname.includes("?"),eh("?","pathname","search",o)),mt(!o.pathname||!o.pathname.includes("#"),eh("#","pathname","hash",o)),mt(!o.search||!o.search.includes("#"),eh("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(n||a==null)s=r;else{let h=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),h-=1;o.pathname=p.join("/")}s=h>=0?t[h]:"/"}let u=yP(o,s),c=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&r.endsWith("/");return!u.pathname.endsWith("/")&&(c||f)&&(u.pathname+="/"),u}const yo=e=>e.join("/").replace(/\/\/+/g,"/"),SP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),bP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function xP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const kx=["post","put","patch","delete"];new Set(kx);const CP=["get",...kx];new Set(CP);/** - * React Router v6.15.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var t=1;tu.pathnameBase)),a=N.useRef(!1);return Ix(()=>{a.current=!0}),N.useCallback(function(u,c){if(c===void 0&&(c={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let f=Ox(u,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:yo([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,i,o,e])}const kP=N.createContext(null);function PP(e){let t=N.useContext(Io).outlet;return t&&N.createElement(kP.Provider,{value:e},t)}function zx(e,t){let{relative:r}=t===void 0?{}:t,{matches:n}=N.useContext(Io),{pathname:o}=ef(),i=JSON.stringify(Ex(n).map(a=>a.pathnameBase));return N.useMemo(()=>Ox(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function IP(e,t){return zP(e,t)}function zP(e,t,r){vs()||mt(!1);let{navigator:n}=N.useContext(Aa),{matches:o}=N.useContext(Io),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let u=ef(),c;if(t){var f;let y=typeof t=="string"?ja(t):t;s==="/"||(f=y.pathname)!=null&&f.startsWith(s)||mt(!1),c=y}else c=u;let h=c.pathname||"/",p=s==="/"?h:h.slice(s.length)||"/",S=nP(e,{pathname:p}),_=LP(S&&S.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:yo([s,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:yo([s,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,r);return t&&_?N.createElement(Zc.Provider,{value:{location:cc({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:lo.Pop}},_):_}function jP(){let e=WP(),t=xP(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),r?N.createElement("pre",{style:o},r):null,i)}const AP=N.createElement(jP,null);class MP extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error||r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error?N.createElement(Io.Provider,{value:this.props.routeContext},N.createElement(Px.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function NP(e){let{routeContext:t,match:r,children:n}=e,o=N.useContext(mv);return o&&o.static&&o.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=r.route.id),N.createElement(Io.Provider,{value:t},n)}function LP(e,t,r){var n;if(t===void 0&&(t=[]),r===void 0&&(r=null),e==null){var o;if((o=r)!=null&&o.errors)e=r.matches;else return null}let i=e,a=(n=r)==null?void 0:n.errors;if(a!=null){let s=i.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id]));s>=0||mt(!1),i=i.slice(0,Math.min(i.length,s+1))}return i.reduceRight((s,u,c)=>{let f=u.route.id?a==null?void 0:a[u.route.id]:null,h=null;r&&(h=u.route.errorElement||AP);let p=t.concat(i.slice(0,c+1)),S=()=>{let _;return f?_=h:u.route.Component?_=N.createElement(u.route.Component,null):u.route.element?_=u.route.element:_=s,N.createElement(NP,{match:u,routeContext:{outlet:s,matches:p,isDataRoute:r!=null},children:_})};return r&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?N.createElement(MP,{location:r.location,revalidation:r.revalidation,component:h,error:f,children:S(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):S()},null)}var jx=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(jx||{}),fc=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fc||{});function $P(e){let t=N.useContext(mv);return t||mt(!1),t}function DP(e){let t=N.useContext(RP);return t||mt(!1),t}function FP(e){let t=N.useContext(Io);return t||mt(!1),t}function Ax(e){let t=FP(),r=t.matches[t.matches.length-1];return r.route.id||mt(!1),r.route.id}function WP(){var e;let t=N.useContext(Px),r=DP(fc.UseRouteError),n=Ax(fc.UseRouteError);return t||((e=r.errors)==null?void 0:e[n])}function BP(){let{router:e}=$P(jx.UseNavigateStable),t=Ax(fc.UseNavigateStable),r=N.useRef(!1);return Ix(()=>{r.current=!0}),N.useCallback(function(o,i){i===void 0&&(i={}),r.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,cc({fromRouteId:t},i)))},[e,t])}function UP(e){return PP(e.context)}function hr(e){mt(!1)}function qP(e){let{basename:t="/",children:r=null,location:n,navigationType:o=lo.Pop,navigator:i,static:a=!1}=e;vs()&&mt(!1);let s=t.replace(/^\/*/,"/"),u=N.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof n=="string"&&(n=ja(n));let{pathname:c="/",search:f="",hash:h="",state:p=null,key:S="default"}=n,_=N.useMemo(()=>{let y=pv(c,s);return y==null?null:{location:{pathname:y,search:f,hash:h,state:p,key:S},navigationType:o}},[s,c,f,h,p,S,o]);return _==null?null:N.createElement(Aa.Provider,{value:u},N.createElement(Zc.Provider,{children:r,value:_}))}function HP(e){let{children:t,location:r}=e;return IP(Yp(t),r)}new Promise(()=>{});function Yp(e,t){t===void 0&&(t=[]);let r=[];return N.Children.forEach(e,(n,o)=>{if(!N.isValidElement(n))return;let i=[...t,o];if(n.type===N.Fragment){r.push.apply(r,Yp(n.props.children,i));return}n.type!==hr&&mt(!1),!n.props.index||!n.props.children||mt(!1);let a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(a.children=Yp(n.props.children,i)),r.push(a)}),r}/** - * React Router DOM v6.15.0 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(r[o]=e[o]);return r}function VP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function KP(e,t){return e.button===0&&(!t||t==="_self")&&!VP(e)}const YP=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],QP="startTransition",s_=aa[QP];function XP(e){let{basename:t,children:r,future:n,window:o}=e,i=N.useRef();i.current==null&&(i.current=eP({window:o,v5Compat:!0}));let a=i.current,[s,u]=N.useState({action:a.action,location:a.location}),{v7_startTransition:c}=n||{},f=N.useCallback(h=>{c&&s_?s_(()=>u(h)):u(h)},[u,c]);return N.useLayoutEffect(()=>a.listen(f),[a,f]),N.createElement(qP,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:a})}const JP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ZP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kr=N.forwardRef(function(t,r){let{onClick:n,relative:o,reloadDocument:i,replace:a,state:s,target:u,to:c,preventScrollReset:f}=t,h=GP(t,YP),{basename:p}=N.useContext(Aa),S,_=!1;if(typeof c=="string"&&ZP.test(c)&&(S=c,JP))try{let g=new URL(window.location.href),b=c.startsWith("//")?new URL(g.protocol+c):new URL(c),T=pv(b.pathname,p);b.origin===g.origin&&T!=null?c=T+b.search+b.hash:_=!0}catch{}let y=TP(c,{relative:o}),C=eI(c,{replace:a,state:s,target:u,preventScrollReset:f,relative:o});function v(g){n&&n(g),g.defaultPrevented||C(g)}return N.createElement("a",Qp({},h,{href:S||y,onClick:_||i?n:v,ref:r,target:u}))});var u_;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(u_||(u_={}));var c_;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(c_||(c_={}));function eI(e,t){let{target:r,replace:n,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=EP(),u=ef(),c=zx(e,{relative:a});return N.useCallback(f=>{if(KP(f,r)){f.preventDefault();let h=n!==void 0?n:uc(u)===uc(c);s(e,{replace:h,state:o,preventScrollReset:i,relative:a})}},[u,s,c,n,o,r,e,i,a])}/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var mr=function(){return mr=Object.assign||function(t){for(var r,n=1,o=arguments.length;n0?Et(Ma,--ar):0,pa--,dt===10&&(pa=1,rf--),dt}function Sr(){return dt=ar<$x?Et(Ma,ar++):0,pa++,dt===10&&(pa=1,rf++),dt}function _n(){return Et(Ma,ar)}function Ou(){return ar}function gs(e,t){return Jl(Ma,e,t)}function Zl(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Dx(e){return rf=pa=1,$x=fn(Ma=e),ar=0,[]}function Fx(e){return Ma="",e}function ku(e){return Lx(gs(ar-1,Zp(e===91?e+2:e===40?e+1:e)))}function pI(e){for(;(dt=_n())&&dt<33;)Sr();return Zl(e)>2||Zl(dt)>3?"":" "}function mI(e,t){for(;--t&&Sr()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return gs(e,Ou()+(t<6&&_n()==32&&Sr()==32))}function Zp(e){for(;Sr();)switch(dt){case e:return ar;case 34:case 39:e!==34&&e!==39&&Zp(dt);break;case 40:e===41&&Zp(e);break;case 92:Sr();break}return ar}function vI(e,t){for(;Sr()&&e+dt!==47+10;)if(e+dt===42+42&&_n()===47)break;return"/*"+gs(t,ar-1)+"*"+tf(e===47?e:Sr())}function gI(e){for(;!Zl(_n());)Sr();return gs(e,ar)}function f_(e){return Fx(Pu("",null,null,null,[""],e=Dx(e),0,[0],e))}function Pu(e,t,r,n,o,i,a,s,u){for(var c=0,f=0,h=a,p=0,S=0,_=0,y=1,C=1,v=1,g=0,b="",T=o,k=i,P=n,w=b;C;)switch(_=g,g=Sr()){case 40:if(_!=108&&Et(w,h-1)==58){Jp(w+=je(ku(g),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:w+=ku(g);break;case 9:case 10:case 13:case 32:w+=pI(_);break;case 92:w+=mI(Ou()-1,7);continue;case 47:switch(_n()){case 42:case 47:ou(yI(vI(Sr(),Ou()),t,r),u);break;default:w+="/"}break;case 123*y:s[c++]=fn(w)*v;case 125*y:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+f:S>0&&fn(w)-h&&ou(S>32?h_(w+";",n,r,h-1):h_(je(w," ","")+";",n,r,h-2),u);break;case 59:w+=";";default:if(ou(P=d_(w,t,r,c,f,o,s,b,T=[],k=[],h),i),g===123)if(f===0)Pu(w,t,P,P,T,i,h,s,k);else switch(p===99&&Et(w,3)===110?100:p){case 100:case 109:case 115:Pu(e,P,P,n&&ou(d_(e,P,P,0,0,o,s,b,o,T=[],h),k),o,k,h,s,n?T:k);break;default:Pu(w,P,P,P,[""],k,0,s,k)}}c=f=S=0,y=v=1,b=w="",h=a;break;case 58:h=1+fn(w),S=_;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&hI()==125)continue}switch(w+=tf(g),g*y){case 38:v=f>0?1:(w+="\f",-1);break;case 44:s[c++]=(fn(w)-1)*v,v=1;break;case 64:_n()===45&&(w+=ku(Sr())),p=_n(),f=h=fn(b=w+=gI(Ou())),g++;break;case 45:_===45&&fn(w)==2&&(y=0)}}return i}function d_(e,t,r,n,o,i,a,s,u,c,f){for(var h=o-1,p=o===0?i:[""],S=_v(p),_=0,y=0,C=0;_0?p[v]+" "+g:je(g,/&\f/g,p[v])))&&(u[C++]=b);return nf(e,t,r,o===0?gv:s,u,c,f)}function yI(e,t,r){return nf(e,t,r,Mx,tf(dI()),Jl(e,2,-2),0)}function h_(e,t,r,n){return nf(e,t,r,yv,Jl(e,0,n),Jl(e,n+1,-1),n)}function Qo(e,t){for(var r="",n=_v(e),o=0;o6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return je(e,/(.+:)(.+)-([^]+)/,"$1"+Pe+"$2-$3$1"+dc+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Jp(e,"stretch")?Wx(je(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,fn(e)-3-(~Jp(e,"!important")&&10))){case 107:return je(e,":",":"+Pe)+e;case 101:return je(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Pe+(Et(e,14)===45?"inline-":"")+"box$3$1"+Pe+"$2$3$1"+Lt+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return Pe+e+Lt+je(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pe+e+Lt+je(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pe+e+Lt+je(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Pe+e+Lt+e+e}return e}var TI=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case yv:t.return=Wx(t.value,t.length);break;case Nx:return Qo([ol(t,{value:je(t.value,"@","@"+Pe)})],o);case gv:if(t.length)return fI(t.props,function(i){switch(cI(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qo([ol(t,{props:[je(i,/:(read-\w+)/,":"+dc+"$1")]})],o);case"::placeholder":return Qo([ol(t,{props:[je(i,/:(plac\w+)/,":"+Pe+"input-$1")]}),ol(t,{props:[je(i,/:(plac\w+)/,":"+dc+"$1")]}),ol(t,{props:[je(i,/:(plac\w+)/,Lt+"input-$1")]})],o)}return""})}},Iu=typeof document<"u",EI=Iu?void 0:SI(function(){return vv(function(){var e={};return function(t){return e[t]}})}),OI=[TI],Bx=function(t){var r=t.key;if(Iu&&r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(T){var k=T.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(T),T.setAttribute("data-s",""))})}var o=t.stylisPlugins||OI,i={},a,s=[];Iu&&(a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(T){for(var k=T.getAttribute("data-emotion").split(" "),P=1;P=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var LI={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$I=/[A-Z]|^ms/g,DI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hx=function(t){return t.charCodeAt(1)===45},y_=function(t){return t!=null&&typeof t!="boolean"},th=vv(function(e){return Hx(e)?e:e.replace($I,"-$&").toLowerCase()}),__=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(DI,function(n,o,i){return dn={name:o,styles:i,next:dn},o})}return LI[t]!==1&&!Hx(t)&&typeof r=="number"&&r!==0?r+"px":r};function es(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return dn={name:r.name,styles:r.styles,next:dn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)dn={name:n.name,styles:n.styles,next:dn},n=n.next;var o=r.styles+";";return o}return FI(e,t,r)}case"function":{if(e!==void 0){var i=dn,a=r(e);return dn=i,es(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function FI(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?BI:UI},w_=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},qI=typeof document<"u",HI=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;qx(r,n,o);var i=II(function(){return MI(r,n,o)});if(!qI&&i!==void 0){for(var a,s=n.name,u=n.next;u!==void 0;)s+=" "+u.name,u=u.next;return N.createElement("style",(a={},a["data-emotion"]=r.key+" "+s,a.dangerouslySetInnerHTML={__html:i},a.nonce=r.sheet.nonce,a))}return null},GI=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=w_(t,r,n),u=s||b_(o),c=!u("as");return function(){var f=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,S=1;S"u")return!1;var t=Dr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function C2(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},i=t.elements[r];!Ar(i)||!Cn(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function R2(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],i=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(u,c){return u[c]="",u},{});!Ar(o)||!Cn(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}var T2={name:"applyStyles",enabled:!0,phase:"write",fn:C2,effect:R2,requires:["computeStyles"]};function Sn(e){return e.split("-")[0]}var Xo=Math.max,mc=Math.min,va=Math.round;function tm(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function tC(){return!/^((?!chrome|android).)*safari/i.test(tm())}function ga(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&Ar(e)&&(o=e.offsetWidth>0&&va(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&va(n.height)/e.offsetHeight||1);var a=ai(e)?Dr(e):window,s=a.visualViewport,u=!tC()&&r,c=(n.left+(u&&s?s.offsetLeft:0))/o,f=(n.top+(u&&s?s.offsetTop:0))/i,h=n.width/o,p=n.height/i;return{width:h,height:p,top:f,right:c+h,bottom:f+p,left:c,x:c,y:f}}function xv(e){var t=ga(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function rC(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&wv(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Hn(e){return Dr(e).getComputedStyle(e)}function E2(e){return["table","td","th"].indexOf(Cn(e))>=0}function zo(e){return((ai(e)?e.ownerDocument:e.document)||window.document).documentElement}function af(e){return Cn(e)==="html"?e:e.assignedSlot||e.parentNode||(wv(e)?e.host:null)||zo(e)}function $_(e){return!Ar(e)||Hn(e).position==="fixed"?null:e.offsetParent}function O2(e){var t=/firefox/i.test(tm()),r=/Trident/i.test(tm());if(r&&Ar(e)){var n=Hn(e);if(n.position==="fixed")return null}var o=af(e);for(wv(o)&&(o=o.host);Ar(o)&&["html","body"].indexOf(Cn(o))<0;){var i=Hn(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function _s(e){for(var t=Dr(e),r=$_(e);r&&E2(r)&&Hn(r).position==="static";)r=$_(r);return r&&(Cn(r)==="html"||Cn(r)==="body"&&Hn(r).position==="static")?t:r||O2(e)||t}function Cv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kl(e,t,r){return Xo(e,mc(t,r))}function k2(e,t,r){var n=kl(e,t,r);return n>r?r:n}function nC(){return{top:0,right:0,bottom:0,left:0}}function oC(e){return Object.assign({},nC(),e)}function iC(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var P2=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,oC(typeof t!="number"?t:iC(t,ys))};function I2(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Sn(r.placement),u=Cv(s),c=[ir,$r].indexOf(s)>=0,f=c?"height":"width";if(!(!i||!a)){var h=P2(o.padding,r),p=xv(i),S=u==="y"?or:ir,_=u==="y"?Lr:$r,y=r.rects.reference[f]+r.rects.reference[u]-a[u]-r.rects.popper[f],C=a[u]-r.rects.reference[u],v=_s(i),g=v?u==="y"?v.clientHeight||0:v.clientWidth||0:0,b=y/2-C/2,T=h[S],k=g-p[f]-h[_],P=g/2-p[f]/2+b,w=kl(T,P,k),E=u;r.modifiersData[n]=(t={},t[E]=w,t.centerOffset=w-P,t)}}function z2(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||rC(t.elements.popper,o)&&(t.elements.arrow=o))}var j2={name:"arrow",enabled:!0,phase:"main",fn:I2,effect:z2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ya(e){return e.split("-")[1]}var A2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function M2(e){var t=e.x,r=e.y,n=window,o=n.devicePixelRatio||1;return{x:va(t*o)/o||0,y:va(r*o)/o||0}}function D_(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=a.x,S=p===void 0?0:p,_=a.y,y=_===void 0?0:_,C=typeof f=="function"?f({x:S,y}):{x:S,y};S=C.x,y=C.y;var v=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),b=ir,T=or,k=window;if(c){var P=_s(r),w="clientHeight",E="clientWidth";if(P===Dr(r)&&(P=zo(r),Hn(P).position!=="static"&&s==="absolute"&&(w="scrollHeight",E="scrollWidth")),P=P,o===or||(o===ir||o===$r)&&i===ts){T=Lr;var I=h&&P===k&&k.visualViewport?k.visualViewport.height:P[w];y-=I-n.height,y*=u?1:-1}if(o===ir||(o===or||o===Lr)&&i===ts){b=$r;var z=h&&P===k&&k.visualViewport?k.visualViewport.width:P[E];S-=z-n.width,S*=u?1:-1}}var M=Object.assign({position:s},c&&A2),F=f===!0?M2({x:S,y}):{x:S,y};if(S=F.x,y=F.y,u){var H;return Object.assign({},M,(H={},H[T]=g?"0":"",H[b]=v?"0":"",H.transform=(k.devicePixelRatio||1)<=1?"translate("+S+"px, "+y+"px)":"translate3d("+S+"px, "+y+"px, 0)",H))}return Object.assign({},M,(t={},t[T]=g?y+"px":"",t[b]=v?S+"px":"",t.transform="",t))}function N2(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,a=i===void 0?!0:i,s=r.roundOffsets,u=s===void 0?!0:s,c={placement:Sn(t.placement),variation:ya(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,D_(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,D_(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var L2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:N2,data:{}},iu={passive:!0};function $2(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=o===void 0?!0:o,a=n.resize,s=a===void 0?!0:a,u=Dr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(f){f.addEventListener("scroll",r.update,iu)}),s&&u.addEventListener("resize",r.update,iu),function(){i&&c.forEach(function(f){f.removeEventListener("scroll",r.update,iu)}),s&&u.removeEventListener("resize",r.update,iu)}}var D2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$2,data:{}},F2={left:"right",right:"left",bottom:"top",top:"bottom"};function zu(e){return e.replace(/left|right|bottom|top/g,function(t){return F2[t]})}var W2={start:"end",end:"start"};function F_(e){return e.replace(/start|end/g,function(t){return W2[t]})}function Rv(e){var t=Dr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Tv(e){return ga(zo(e)).left+Rv(e).scrollLeft}function B2(e,t){var r=Dr(e),n=zo(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;var c=tC();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:s+Tv(e),y:u}}function U2(e){var t,r=zo(e),n=Rv(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Xo(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Xo(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+Tv(e),u=-n.scrollTop;return Hn(o||r).direction==="rtl"&&(s+=Xo(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:u}}function Ev(e){var t=Hn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function aC(e){return["html","body","#document"].indexOf(Cn(e))>=0?e.ownerDocument.body:Ar(e)&&Ev(e)?e:aC(af(e))}function Pl(e,t){var r;t===void 0&&(t=[]);var n=aC(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=Dr(n),a=o?[i].concat(i.visualViewport||[],Ev(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Pl(af(a)))}function rm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q2(e,t){var r=ga(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function W_(e,t,r){return t===Zx?rm(B2(e,r)):ai(t)?q2(t,r):rm(U2(zo(e)))}function H2(e){var t=Pl(af(e)),r=["absolute","fixed"].indexOf(Hn(e).position)>=0,n=r&&Ar(e)?_s(e):e;return ai(n)?t.filter(function(o){return ai(o)&&rC(o,n)&&Cn(o)!=="body"}):[]}function G2(e,t,r,n){var o=t==="clippingParents"?H2(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(u,c){var f=W_(e,c,n);return u.top=Xo(f.top,u.top),u.right=mc(f.right,u.right),u.bottom=mc(f.bottom,u.bottom),u.left=Xo(f.left,u.left),u},W_(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function lC(e){var t=e.reference,r=e.element,n=e.placement,o=n?Sn(n):null,i=n?ya(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,u;switch(o){case or:u={x:a,y:t.y-r.height};break;case Lr:u={x:a,y:t.y+t.height};break;case $r:u={x:t.x+t.width,y:s};break;case ir:u={x:t.x-r.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?Cv(o):null;if(c!=null){var f=c==="y"?"height":"width";switch(i){case ma:u[c]=u[c]-(t[f]/2-r[f]/2);break;case ts:u[c]=u[c]+(t[f]/2-r[f]/2);break}}return u}function rs(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,i=r.strategy,a=i===void 0?e.strategy:i,s=r.boundary,u=s===void 0?d2:s,c=r.rootBoundary,f=c===void 0?Zx:c,h=r.elementContext,p=h===void 0?il:h,S=r.altBoundary,_=S===void 0?!1:S,y=r.padding,C=y===void 0?0:y,v=oC(typeof C!="number"?C:iC(C,ys)),g=p===il?h2:il,b=e.rects.popper,T=e.elements[_?g:p],k=G2(ai(T)?T:T.contextElement||zo(e.elements.popper),u,f,a),P=ga(e.elements.reference),w=lC({reference:P,element:b,strategy:"absolute",placement:o}),E=rm(Object.assign({},b,w)),I=p===il?E:P,z={top:k.top-I.top+v.top,bottom:I.bottom-k.bottom+v.bottom,left:k.left-I.left+v.left,right:I.right-k.right+v.right},M=e.modifiersData.offset;if(p===il&&M){var F=M[o];Object.keys(z).forEach(function(H){var G=[$r,Lr].indexOf(H)>=0?1:-1,ue=[or,Lr].indexOf(H)>=0?"y":"x";z[H]+=F[ue]*G})}return z}function V2(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?eC:u,f=ya(n),h=f?s?L_:L_.filter(function(_){return ya(_)===f}):ys,p=h.filter(function(_){return c.indexOf(_)>=0});p.length===0&&(p=h);var S=p.reduce(function(_,y){return _[y]=rs(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[Sn(y)],_},{});return Object.keys(S).sort(function(_,y){return S[_]-S[y]})}function K2(e){if(Sn(e)===bv)return[];var t=zu(e);return[F_(e),t,F_(t)]}function Y2(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!0:a,u=r.fallbackPlacements,c=r.padding,f=r.boundary,h=r.rootBoundary,p=r.altBoundary,S=r.flipVariations,_=S===void 0?!0:S,y=r.allowedAutoPlacements,C=t.options.placement,v=Sn(C),g=v===C,b=u||(g||!_?[zu(C)]:K2(C)),T=[C].concat(b).reduce(function(tt,ye){return tt.concat(Sn(ye)===bv?V2(t,{placement:ye,boundary:f,rootBoundary:h,padding:c,flipVariations:_,allowedAutoPlacements:y}):ye)},[]),k=t.rects.reference,P=t.rects.popper,w=new Map,E=!0,I=T[0],z=0;z=0,ue=G?"width":"height",se=rs(t,{placement:M,boundary:f,rootBoundary:h,altBoundary:p,padding:c}),ge=G?H?$r:ir:H?Lr:or;k[ue]>P[ue]&&(ge=zu(ge));var Z=zu(ge),ie=[];if(i&&ie.push(se[F]<=0),s&&ie.push(se[ge]<=0,se[Z]<=0),ie.every(function(tt){return tt})){I=M,E=!1;break}w.set(M,ie)}if(E)for(var fe=_?3:1,Se=function(ye){var q=T.find(function(V){var U=w.get(V);if(U)return U.slice(0,ye).every(function(J){return J})});if(q)return I=q,"break"},Ee=fe;Ee>0;Ee--){var xt=Se(Ee);if(xt==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}var Q2={name:"flip",enabled:!0,phase:"main",fn:Y2,requiresIfExists:["offset"],data:{_skip:!1}};function B_(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function U_(e){return[or,$r,Lr,ir].some(function(t){return e[t]>=0})}function X2(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=rs(t,{elementContext:"reference"}),s=rs(t,{altBoundary:!0}),u=B_(a,n),c=B_(s,o,i),f=U_(u),h=U_(c);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}var J2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:X2};function Z2(e,t,r){var n=Sn(e),o=[ir,or].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ir,$r].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function ez(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=o===void 0?[0,0]:o,a=eC.reduce(function(f,h){return f[h]=Z2(h,t.rects,i),f},{}),s=a[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}var tz={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ez};function rz(e){var t=e.state,r=e.name;t.modifiersData[r]=lC({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var nz={name:"popperOffsets",enabled:!0,phase:"read",fn:rz,data:{}};function oz(e){return e==="x"?"y":"x"}function iz(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=o===void 0?!0:o,a=r.altAxis,s=a===void 0?!1:a,u=r.boundary,c=r.rootBoundary,f=r.altBoundary,h=r.padding,p=r.tether,S=p===void 0?!0:p,_=r.tetherOffset,y=_===void 0?0:_,C=rs(t,{boundary:u,rootBoundary:c,padding:h,altBoundary:f}),v=Sn(t.placement),g=ya(t.placement),b=!g,T=Cv(v),k=oz(T),P=t.modifiersData.popperOffsets,w=t.rects.reference,E=t.rects.popper,I=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,z=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(P){if(i){var H,G=T==="y"?or:ir,ue=T==="y"?Lr:$r,se=T==="y"?"height":"width",ge=P[T],Z=ge+C[G],ie=ge-C[ue],fe=S?-E[se]/2:0,Se=g===ma?w[se]:E[se],Ee=g===ma?-E[se]:-w[se],xt=t.elements.arrow,tt=S&&xt?xv(xt):{width:0,height:0},ye=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:nC(),q=ye[G],V=ye[ue],U=kl(0,w[se],tt[se]),J=b?w[se]/2-fe-U-q-z.mainAxis:Se-U-q-z.mainAxis,B=b?-w[se]/2+fe+U+V+z.mainAxis:Ee+U+V+z.mainAxis,de=t.elements.arrow&&_s(t.elements.arrow),ne=de?T==="y"?de.clientTop||0:de.clientLeft||0:0,te=(H=M==null?void 0:M[T])!=null?H:0,re=ge+J-te-ne,K=ge+B-te,X=kl(S?mc(Z,re):Z,ge,S?Xo(ie,K):ie);P[T]=X,F[T]=X-ge}if(s){var ae,pe=T==="x"?or:ir,me=T==="x"?Lr:$r,ve=P[k],be=k==="y"?"height":"width",Te=ve+C[pe],Me=ve-C[me],Ue=[or,ir].indexOf(v)!==-1,sr=(ae=M==null?void 0:M[k])!=null?ae:0,Er=Ue?Te:ve-w[be]-E[be]-sr+z.altAxis,Or=Ue?ve+w[be]+E[be]-sr-z.altAxis:Me,Jt=S&&Ue?k2(Er,ve,Or):kl(S?Er:Te,ve,S?Or:Me);P[k]=Jt,F[k]=Jt-ve}t.modifiersData[n]=F}}var az={name:"preventOverflow",enabled:!0,phase:"main",fn:iz,requiresIfExists:["offset"]};function lz(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sz(e){return e===Dr(e)||!Ar(e)?Rv(e):lz(e)}function uz(e){var t=e.getBoundingClientRect(),r=va(t.width)/e.offsetWidth||1,n=va(t.height)/e.offsetHeight||1;return r!==1||n!==1}function cz(e,t,r){r===void 0&&(r=!1);var n=Ar(t),o=Ar(t)&&uz(t),i=zo(t),a=ga(e,o,r),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Cn(t)!=="body"||Ev(i))&&(s=sz(t)),Ar(t)?(u=ga(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=Tv(i))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function fz(e){var t=new Map,r=new Set,n=[];e.forEach(function(i){t.set(i.name,i)});function o(i){r.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var u=t.get(s);u&&o(u)}}),n.push(i)}return e.forEach(function(i){r.has(i.name)||o(i)}),n}function dz(e){var t=fz(e);return x2.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function hz(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function pz(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var q_={placement:"bottom",modifiers:[],strategy:"absolute"};function H_(){for(var e=arguments.length,t=new Array(e),r=0;r .`,` { - `,`; - - `,`; - } -`],[` - position: relative; - width: 100%; - - `,`; - - `,`; - - > .`,` { - `,`; - - `,`; - } -`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Ne.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return sC({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),bz=function(e,t){var r,n=e.children,o=e.className,i=e.label,a=e.icon,s=e.title,u=e.prefix,c=e.suffix,f=e.open,h=e.defaultOpen,p=e.active,S=p===void 0?!1:p,_=e.disabled,y=_===void 0?!1:_,C=e.rootStyles,v=e.component,g=e.onOpenChange,b=e.onClick,T=e.onKeyUp,k=ii(e,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),P=oe.useContext(pc),w=oe.useContext(of),E=w.collapsed,I=w.rtl,z=w.transitionDuration,M=Sv(),F=M.renderExpandIcon,H=M.closeOnClick,G=M.menuItemStyles,ue=M.transitionDuration,se=oe.useState(!!h),ge=se[0],Z=se[1],ie=oe.useState(!1),fe=ie[0],Se=ie[1],Ee=oe.useState(!1),xt=Ee[0],tt=Ee[1],ye=oe.useRef(null),q=oe.useRef(null),V=oe.useRef(),U=yz({level:P,buttonRef:ye,contentRef:q}).popperInstance,J=function(){var X=q.current;if(X){X.style.display="block",X.style.overflow="hidden",X.style.height="auto";var ae=X.offsetHeight;X.style.height="0px",X.offsetHeight,X.style.height="".concat(ae,"px"),V.current=setTimeout(function(){X.style.overflow="auto",X.style.height="auto"},ue)}},B=function(){var X=q.current;X&&(X.style.overflow="hidden",X.style.height="".concat(X.offsetHeight,"px"),X.offsetHeight,X.style.height="0px",V.current=setTimeout(function(){X.style.overflow="auto",X.style.display="none"},ue))},de=function(){if(!(P===0&&E)){clearTimeout(Number(V.current));var X=f??ge;X?B():J(),g==null||g(!X),typeof f>"u"&&Z(!ge)}},ne=function(X){b==null||b(X),de()},te=function(X){T==null||T(X),X.key==="Enter"&&de()},re=function(X){if(G){var ae={level:P,disabled:y,active:S,isSubmenu:!0,open:f??ge},pe=G.root,me=G.button,ve=G.label,be=G.icon,Te=G.prefix,Me=G.suffix,Ue=G.subMenuContent,sr=G.SubMenuExpandIcon;switch(X){case"root":return typeof pe=="function"?pe(ae):pe;case"button":return typeof me=="function"?me(ae):me;case"label":return typeof ve=="function"?ve(ae):ve;case"icon":return typeof be=="function"?be(ae):be;case"prefix":return typeof Te=="function"?Te(ae):Te;case"suffix":return typeof Me=="function"?Me(ae):Me;case"SubMenuExpandIcon":return typeof sr=="function"?sr(ae):sr;case"subMenuContent":return typeof Ue=="function"?Ue(ae):Ue;default:return}}};oe.useEffect(function(){setTimeout(function(){return U==null?void 0:U.update()},z),E&&P===0&&Se(!1)},[E,P,I,z,U]),oe.useEffect(function(){var X=function(ve){var be,Te,Me;!fe&&(!((be=ye.current)===null||be===void 0)&&be.contains(ve))?Se(!0):(H&&!(!((Te=ve.closest(".".concat(Ne.menuItemRoot)))===null||Te===void 0)&&Te.classList.contains(Ne.subMenuRoot))||!(!((Me=q.current)===null||Me===void 0)&&Me.contains(ve))&&fe)&&Se(!1)},ae=function(ve){X(ve.target)},pe=function(ve){ve.key==="Enter"?X(ve.target):ve.key==="Escape"&&Se(!1)},me=function(){document.removeEventListener("click",ae),document.removeEventListener("keyup",pe)};return me(),E&&P===0&&(document.addEventListener("click",ae,!1),document.addEventListener("keyup",pe,!1)),function(){me()}},[E,P,H,fe]),oe.useEffect(function(){tt(!0)},[]);var K=(r={},r[Ne.active]=S,r[Ne.disabled]=y,r[Ne.open]=f??ge,r);return oe.createElement(Sz,{ref:t,className:gt(Ne.menuItemRoot,Ne.subMenuRoot,K,o),menuItemStyles:re("root"),level:P,collapsed:E,rtl:I,disabled:y,active:S,buttonStyles:re("button"),rootStyles:C},oe.createElement(uC,mr({"data-testid":"".concat(Ne.button,"-test-id"),ref:ye,title:s,className:gt(Ne.button,K),onClick:ne,onKeyUp:te,component:v,tabIndex:0},k),a&&oe.createElement(Qx,{rtl:I,className:gt(Ne.icon,K),rootStyles:re("icon")},a),u&&oe.createElement(Xx,{collapsed:E,transitionDuration:z,firstLevel:P===0,className:gt(Ne.prefix,K),rtl:I,rootStyles:re("prefix")},u),oe.createElement(Yx,{className:gt(Ne.label,K),rootStyles:re("label")},i),c&&oe.createElement(Jx,{collapsed:E,transitionDuration:z,firstLevel:P===0,className:gt(Ne.suffix,K),rootStyles:re("suffix")},c),oe.createElement(u2,{rtl:I,className:gt(Ne.SubMenuExpandIcon,K),collapsed:E,level:P,rootStyles:re("SubMenuExpandIcon")},F?F({level:P,disabled:y,active:S,open:f??ge}):E&&P===0?oe.createElement(f2,null):oe.createElement(c2,{rtl:I,open:f??ge}))),oe.createElement(s2,{ref:q,openWhenCollapsed:fe,open:f??ge,firstLevel:P===0,collapsed:E,defaultOpen:f&&!xt||h,className:gt(Ne.subMenuContent,K),rootStyles:re("subMenuContent")},oe.createElement(pc.Provider,{value:P+1},n)))};oe.forwardRef(bz);var G_,wz=bt.li(V_||(V_=Bt([` - width: 100%; - position: relative; - - `,`; - - `,`; - - > .`,` { - `,`; - - `,`; - } -`],[` - width: 100%; - position: relative; - - `,`; - - `,`; - - > .`,` { - `,`; - - `,`; - } -`])),function(e){var t=e.menuItemStyles;return t},function(e){var t=e.rootStyles;return t},Ne.button,function(e){var t=e.level,r=e.disabled,n=e.active,o=e.collapsed,i=e.rtl;return sC({level:t,disabled:r,active:n,collapsed:o,rtl:i})},function(e){var t=e.buttonStyles;return t}),xz=function(e,t){var r,n=e.children,o=e.icon,i=e.className,a=e.prefix,s=e.suffix,u=e.active,c=u===void 0?!1:u,f=e.disabled,h=f===void 0?!1:f,p=e.component,S=e.rootStyles,_=ii(e,["children","icon","className","prefix","suffix","active","disabled","component","rootStyles"]),y=oe.useContext(pc),C=oe.useContext(of),v=C.collapsed,g=C.rtl,b=C.transitionDuration,T=Sv().menuItemStyles,k=function(w){if(T){var E={level:y,disabled:h,active:c,isSubmenu:!1},I=T.root,z=T.button,M=T.label,F=T.icon,H=T.prefix,G=T.suffix;switch(w){case"root":return typeof I=="function"?I(E):I;case"button":return typeof z=="function"?z(E):z;case"label":return typeof M=="function"?M(E):M;case"icon":return typeof F=="function"?F(E):F;case"prefix":return typeof H=="function"?H(E):H;case"suffix":return typeof G=="function"?G(E):G;default:return}}},P=(r={},r[Ne.active]=c,r[Ne.disabled]=h,r);return oe.createElement(wz,{ref:t,className:gt(Ne.menuItemRoot,P,i),menuItemStyles:k("root"),level:y,collapsed:v,rtl:g,disabled:h,active:c,buttonStyles:k("button"),rootStyles:S},oe.createElement(uC,mr({className:gt(Ne.button,P),"data-testid":"".concat(Ne.button,"-test-id"),component:p,tabIndex:0},_),o&&oe.createElement(Qx,{rtl:g,className:gt(Ne.icon,P),rootStyles:k("icon")},o),a&&oe.createElement(Xx,{collapsed:v,transitionDuration:b,firstLevel:y===0,className:gt(Ne.prefix,P),rtl:g,rootStyles:k("prefix")},a),oe.createElement(Yx,{className:gt(Ne.label,P),rootStyles:k("label")},n),s&&oe.createElement(Jx,{collapsed:v,transitionDuration:b,firstLevel:y===0,className:gt(Ne.suffix,P),rootStyles:k("suffix")},s)))},Vr=oe.forwardRef(xz),V_,Ov={},cC={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(cC);var Fr=cC.exports,rh={};function _e(){return _e=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[r]=fC(e[r])}),t}function Fn(e,t,r={clone:!0}){const n=r.clone?_e({},e):e;return Mi(e)&&Mi(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(Mi(t[o])&&o in e&&Mi(e[o])?n[o]=Fn(e[o],t[o],r):r.clone?n[o]=Mi(t[o])?fC(t[o]):t[o]:n[o]=t[o])}),n}var nh={exports:{}},oh,K_;function Cz(){if(K_)return oh;K_=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return oh=e,oh}var ih,Y_;function Rz(){if(Y_)return ih;Y_=1;var e=Cz();function t(){}function r(){}return r.resetWarningCache=t,ih=function(){function n(a,s,u,c,f,h){if(h!==e){var p=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 p.name="Invariant Violation",p}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},ih}var Q_;function dC(){return Q_||(Q_=1,nh.exports=Rz()()),nh.exports}dC();function _a(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;rr==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function kz(e,t=166){let r;function n(...o){const i=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(i,t)}return n.clear=()=>{clearTimeout(r)},n}function Pz(e,t){return()=>null}function Iz(e,t){return N.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function pC(e){return e&&e.ownerDocument||document}function zz(e){return pC(e).defaultView||window}function jz(e,t){return()=>null}function mC(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Az=typeof window<"u"?N.useLayoutEffect:N.useEffect,vC=Az;let X_=0;function Mz(e){const[t,r]=N.useState(e),n=e||t;return N.useEffect(()=>{t==null&&(X_+=1,r(`mui-${X_}`))},[t]),n}const J_=aa["useId".toString()];function Nz(e){if(J_!==void 0){const t=J_();return e??t}return Mz(e)}function Lz(e,t,r,n,o){return null}function $z({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=N.useRef(e!==void 0),[i,a]=N.useState(t),s=o?e:i,u=N.useCallback(c=>{o||a(c)},[]);return[s,u]}function Dz(e){const t=N.useRef(e);return vC(()=>{t.current=e}),N.useCallback((...r)=>(0,t.current)(...r),[])}function Fz(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{mC(r,t)})},e)}let gf=!0,nm=!1,Z_;const Wz={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Bz(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Wz[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Uz(e){e.metaKey||e.altKey||e.ctrlKey||(gf=!0)}function ah(){gf=!1}function qz(){this.visibilityState==="hidden"&&nm&&(gf=!0)}function Hz(e){e.addEventListener("keydown",Uz,!0),e.addEventListener("mousedown",ah,!0),e.addEventListener("pointerdown",ah,!0),e.addEventListener("touchstart",ah,!0),e.addEventListener("visibilitychange",qz,!0)}function Gz(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return gf||Bz(t)}function Vz(){const e=N.useCallback(o=>{o!=null&&Hz(o.ownerDocument)},[]),t=N.useRef(!1);function r(){return t.current?(nm=!0,window.clearTimeout(Z_),Z_=window.setTimeout(()=>{nm=!1},100),t.current=!1,!0):!1}function n(o){return Gz(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function gC(e,t){const r=_e({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=_e({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},!i||!Object.keys(i)?r[n]=o:!o||!Object.keys(o)?r[n]=i:(r[n]=_e({},i),Object.keys(o).forEach(a=>{r[n][a]=gC(o[a],i[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Kz(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),r&&r[a]&&i.push(r[a])}return i},[]).join(" ")}),n}const eS=e=>e,Yz=()=>{let e=eS;return{configure(t){e=t},generate(t){return e(t)},reset(){e=eS}}},Qz=Yz(),yC=Qz,Xz={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function _C(e,t,r="Mui"){const n=Xz[t];return n?`${r}-${n}`:`${yC.generate(e)}-${t}`}function Jz(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=_C(e,o,r)}),n}function Rn(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i=0)&&(r[o]=e[o]);return r}function SC(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t0?Ot(Na,--lr):0,Sa--,ht===10&&(Sa=1,_f--),ht}function br(){return ht=lr2||os(ht)>3?"":" "}function mj(e,t){for(;--t&&br()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return Ss(e,ju()+(t<6&&wn()==32&&br()==32))}function im(e){for(;br();)switch(ht){case e:return lr;case 34:case 39:e!==34&&e!==39&&im(ht);break;case 40:e===41&&im(e);break;case 92:br();break}return lr}function vj(e,t){for(;br()&&e+ht!==47+10;)if(e+ht===42+42&&wn()===47)break;return"/*"+Ss(t,lr-1)+"*"+yf(e===47?e:br())}function gj(e){for(;!os(wn());)br();return Ss(e,lr)}function yj(e){return EC(Mu("",null,null,null,[""],e=TC(e),0,[0],e))}function Mu(e,t,r,n,o,i,a,s,u){for(var c=0,f=0,h=a,p=0,S=0,_=0,y=1,C=1,v=1,g=0,b="",T=o,k=i,P=n,w=b;C;)switch(_=g,g=br()){case 40:if(_!=108&&Ot(w,h-1)==58){om(w+=ze(Au(g),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:w+=Au(g);break;case 9:case 10:case 13:case 32:w+=pj(_);break;case 92:w+=mj(ju()-1,7);continue;case 47:switch(wn()){case 42:case 47:au(_j(vj(br(),ju()),t,r),u);break;default:w+="/"}break;case 123*y:s[c++]=hn(w)*v;case 125*y:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+f:v==-1&&(w=ze(w,/\f/g,"")),S>0&&hn(w)-h&&au(S>32?rS(w+";",n,r,h-1):rS(ze(w," ","")+";",n,r,h-2),u);break;case 59:w+=";";default:if(au(P=tS(w,t,r,c,f,o,s,b,T=[],k=[],h),i),g===123)if(f===0)Mu(w,t,P,P,T,i,h,s,k);else switch(p===99&&Ot(w,3)===110?100:p){case 100:case 108:case 109:case 115:Mu(e,P,P,n&&au(tS(e,P,P,0,0,o,s,b,o,T=[],h),k),o,k,h,s,n?T:k);break;default:Mu(w,P,P,P,[""],k,0,s,k)}}c=f=S=0,y=v=1,b=w="",h=a;break;case 58:h=1+hn(w),S=_;default:if(y<1){if(g==123)--y;else if(g==125&&y++==0&&hj()==125)continue}switch(w+=yf(g),g*y){case 38:v=f>0?1:(w+="\f",-1);break;case 44:s[c++]=(hn(w)-1)*v,v=1;break;case 64:wn()===45&&(w+=Au(br())),p=wn(),f=h=hn(b=w+=gj(ju())),g++;break;case 45:_===45&&hn(w)==2&&(y=0)}}return i}function tS(e,t,r,n,o,i,a,s,u,c,f){for(var h=o-1,p=o===0?i:[""],S=jv(p),_=0,y=0,C=0;_0?p[v]+" "+g:ze(g,/&\f/g,p[v])))&&(u[C++]=b);return Sf(e,t,r,o===0?Iv:s,u,c,f)}function _j(e,t,r){return Sf(e,t,r,wC,yf(dj()),ns(e,2,-2),0)}function rS(e,t,r,n){return Sf(e,t,r,zv,ns(e,0,n),ns(e,n+1,-1),n)}function ra(e,t){for(var r="",n=jv(e),o=0;o6)switch(Ot(e,t+1)){case 109:if(Ot(e,t+4)!==45)break;case 102:return ze(e,/(.+:)(.+)-([^]+)/,"$1"+Ie+"$2-$3$1"+vc+(Ot(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~om(e,"stretch")?OC(ze(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ot(e,t+1)!==115)break;case 6444:switch(Ot(e,hn(e)-3-(~om(e,"!important")&&10))){case 107:return ze(e,":",":"+Ie)+e;case 101:return ze(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ie+(Ot(e,14)===45?"inline-":"")+"box$3$1"+Ie+"$2$3$1"+$t+"$2box$3")+e}break;case 5936:switch(Ot(e,t+11)){case 114:return Ie+e+$t+ze(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ie+e+$t+ze(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ie+e+$t+ze(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ie+e+$t+e+e}return e}var Oj=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case zv:t.return=OC(t.value,t.length);break;case xC:return ra([al(t,{value:ze(t.value,"@","@"+Ie)})],o);case Iv:if(t.length)return fj(t.props,function(i){switch(cj(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ra([al(t,{props:[ze(i,/:(read-\w+)/,":"+vc+"$1")]})],o);case"::placeholder":return ra([al(t,{props:[ze(i,/:(plac\w+)/,":"+Ie+"input-$1")]}),al(t,{props:[ze(i,/:(plac\w+)/,":"+vc+"$1")]}),al(t,{props:[ze(i,/:(plac\w+)/,$t+"input-$1")]})],o)}return""})}},kj=[Oj],Pj=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var C=y.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||kj,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var C=y.getAttribute("data-emotion").split(" "),v=1;v=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Uj={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qj=/[A-Z]|^ms/g,Hj=/_EMO_([^_]+?)_([^]*?)_EMO_/g,AC=function(t){return t.charCodeAt(1)===45},oS=function(t){return t!=null&&typeof t!="boolean"},lh=bC(function(e){return AC(e)?e:e.replace(qj,"-$&").toLowerCase()}),iS=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Hj,function(n,o,i){return pn={name:o,styles:i,next:pn},o})}return Uj[t]!==1&&!AC(t)&&typeof r=="number"&&r!==0?r+"px":r};function is(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return pn={name:r.name,styles:r.styles,next:pn},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)pn={name:n.name,styles:n.styles,next:pn},n=n.next;var o=r.styles+";";return o}return Gj(e,t,r)}case"function":{if(e!==void 0){var i=pn,a=r(e);return pn=i,is(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function Gj(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o96?Jj:Zj},sS=function(t,r,n){var o;if(r){var i=r.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},eA=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return jC(r,n,o),Qj(function(){return Wj(r,n,o)}),null},tA=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,i,a;r!==void 0&&(i=r.label,a=r.target);var s=sS(t,r,n),u=s||lS(o),c=!u("as");return function(){var f=arguments,h=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&h.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,S=1;S{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},iA=["values","unit","step"],aA=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>_e({},r,{[n.key]:n.val}),{})};function lA(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Rn(e,iA),i=aA(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r})`}function u(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-n/100}${r})`}function c(p,S){const _=a.indexOf(S);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${r}) and (max-width:${(_!==-1&&typeof t[a[_]]=="number"?t[a[_]]:S)-n/100}${r})`}function f(p){return a.indexOf(p)+1`@media (min-width:${Lv[e]}px)`};function Gn(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const i=n.breakpoints||uS;return t.reduce((a,s,u)=>(a[i.up(i.keys[u])]=r(t[u]),a),{})}if(typeof t=="object"){const i=n.breakpoints||uS;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||Lv).indexOf(s)!==-1){const u=i.up(s);a[u]=r(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return r(t)}function cA(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const i=e.up(o);return n[i]={},n},{}))||{}}function fA(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function If(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function gc(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=If(e,r)||n,t&&(o=t(o,n,e)),o}function Ae(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],u=a.theme,c=If(u,n)||{};return Gn(a,s,h=>{let p=gc(c,o,h);return h===p&&typeof h=="string"&&(p=gc(c,o,`${t}${h==="default"?"":bn(h)}`,h)),r===!1?p:{[r]:p}})};return i.propTypes={},i.filterProps=[t],i}function dA(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const hA={m:"margin",p:"padding"},pA={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mA=dA(e=>{if(e.length>2)if(cS[e])e=cS[e];else return[e];const[t,r]=e.split(""),n=hA[t],o=pA[r]||"";return Array.isArray(o)?o.map(i=>n+i):[n+o]}),$v=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Dv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...$v,...Dv];function bs(e,t,r,n){var o;const i=(o=If(e,t,!1))!=null?o:r;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function LC(e){return bs(e,"spacing",8)}function ws(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function vA(e,t){return r=>e.reduce((n,o)=>(n[o]=ws(t,r),n),{})}function gA(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=mA(r),i=vA(o,n),a=e[r];return Gn(e,a,i)}function $C(e,t){const r=LC(e.theme);return Object.keys(e).map(n=>gA(e,t,n,r)).reduce(Il,{})}function rt(e){return $C(e,$v)}rt.propTypes={};rt.filterProps=$v;function nt(e){return $C(e,Dv)}nt.propTypes={};nt.filterProps=Dv;function yA(e=8){if(e.mui)return e;const t=LC({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function zf(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(i=>{n[i]=o}),n),{}),r=n=>Object.keys(n).reduce((o,i)=>t[i]?Il(o,t[i](n)):o,{});return r.propTypes={},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function vn(e){return typeof e!="number"?e:`${e}px solid`}const _A=Ae({prop:"border",themeKey:"borders",transform:vn}),SA=Ae({prop:"borderTop",themeKey:"borders",transform:vn}),bA=Ae({prop:"borderRight",themeKey:"borders",transform:vn}),wA=Ae({prop:"borderBottom",themeKey:"borders",transform:vn}),xA=Ae({prop:"borderLeft",themeKey:"borders",transform:vn}),CA=Ae({prop:"borderColor",themeKey:"palette"}),RA=Ae({prop:"borderTopColor",themeKey:"palette"}),TA=Ae({prop:"borderRightColor",themeKey:"palette"}),EA=Ae({prop:"borderBottomColor",themeKey:"palette"}),OA=Ae({prop:"borderLeftColor",themeKey:"palette"}),jf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=bs(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:ws(t,n)});return Gn(e,e.borderRadius,r)}return null};jf.propTypes={};jf.filterProps=["borderRadius"];zf(_A,SA,bA,wA,xA,CA,RA,TA,EA,OA,jf);const Af=e=>{if(e.gap!==void 0&&e.gap!==null){const t=bs(e.theme,"spacing",8),r=n=>({gap:ws(t,n)});return Gn(e,e.gap,r)}return null};Af.propTypes={};Af.filterProps=["gap"];const Mf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=bs(e.theme,"spacing",8),r=n=>({columnGap:ws(t,n)});return Gn(e,e.columnGap,r)}return null};Mf.propTypes={};Mf.filterProps=["columnGap"];const Nf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=bs(e.theme,"spacing",8),r=n=>({rowGap:ws(t,n)});return Gn(e,e.rowGap,r)}return null};Nf.propTypes={};Nf.filterProps=["rowGap"];const kA=Ae({prop:"gridColumn"}),PA=Ae({prop:"gridRow"}),IA=Ae({prop:"gridAutoFlow"}),zA=Ae({prop:"gridAutoColumns"}),jA=Ae({prop:"gridAutoRows"}),AA=Ae({prop:"gridTemplateColumns"}),MA=Ae({prop:"gridTemplateRows"}),NA=Ae({prop:"gridTemplateAreas"}),LA=Ae({prop:"gridArea"});zf(Af,Mf,Nf,kA,PA,IA,zA,jA,AA,MA,NA,LA);function na(e,t){return t==="grey"?t:e}const $A=Ae({prop:"color",themeKey:"palette",transform:na}),DA=Ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:na}),FA=Ae({prop:"backgroundColor",themeKey:"palette",transform:na});zf($A,DA,FA);function vr(e){return e<=1&&e!==0?`${e*100}%`:e}const WA=Ae({prop:"width",transform:vr}),Fv=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n;return{maxWidth:((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||Lv[r]||vr(r)}};return Gn(e,e.maxWidth,t)}return null};Fv.filterProps=["maxWidth"];const BA=Ae({prop:"minWidth",transform:vr}),UA=Ae({prop:"height",transform:vr}),qA=Ae({prop:"maxHeight",transform:vr}),HA=Ae({prop:"minHeight",transform:vr});Ae({prop:"size",cssProperty:"width",transform:vr});Ae({prop:"size",cssProperty:"height",transform:vr});const GA=Ae({prop:"boxSizing"});zf(WA,Fv,BA,UA,qA,HA,GA);const VA={border:{themeKey:"borders",transform:vn},borderTop:{themeKey:"borders",transform:vn},borderRight:{themeKey:"borders",transform:vn},borderBottom:{themeKey:"borders",transform:vn},borderLeft:{themeKey:"borders",transform:vn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jf},color:{themeKey:"palette",transform:na},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:na},backgroundColor:{themeKey:"palette",transform:na},p:{style:nt},pt:{style:nt},pr:{style:nt},pb:{style:nt},pl:{style:nt},px:{style:nt},py:{style:nt},padding:{style:nt},paddingTop:{style:nt},paddingRight:{style:nt},paddingBottom:{style:nt},paddingLeft:{style:nt},paddingX:{style:nt},paddingY:{style:nt},paddingInline:{style:nt},paddingInlineStart:{style:nt},paddingInlineEnd:{style:nt},paddingBlock:{style:nt},paddingBlockStart:{style:nt},paddingBlockEnd:{style:nt},m:{style:rt},mt:{style:rt},mr:{style:rt},mb:{style:rt},ml:{style:rt},mx:{style:rt},my:{style:rt},margin:{style:rt},marginTop:{style:rt},marginRight:{style:rt},marginBottom:{style:rt},marginLeft:{style:rt},marginX:{style:rt},marginY:{style:rt},marginInline:{style:rt},marginInlineStart:{style:rt},marginInlineEnd:{style:rt},marginBlock:{style:rt},marginBlockStart:{style:rt},marginBlockEnd:{style:rt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Af},rowGap:{style:Nf},columnGap:{style:Mf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vr},maxWidth:{style:Fv},minWidth:{transform:vr},height:{transform:vr},maxHeight:{transform:vr},minHeight:{transform:vr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Wv=VA;function KA(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function YA(e,t){return typeof e=="function"?e(t):e}function QA(){function e(r,n,o,i){const a={[r]:n,theme:o},s=i[r];if(!s)return{[r]:n};const{cssProperty:u=r,themeKey:c,transform:f,style:h}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const p=If(o,c)||{};return h?h(a):Gn(a,n,_=>{let y=gc(p,f,_);return _===y&&typeof _=="string"&&(y=gc(p,f,`${r}${_==="default"?"":bn(_)}`,_)),u===!1?y:{[u]:y}})}function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=(n=i.unstable_sxConfig)!=null?n:Wv;function s(u){let c=u;if(typeof u=="function")c=u(i);else if(typeof u!="object")return u;if(!c)return null;const f=cA(i.breakpoints),h=Object.keys(f);let p=f;return Object.keys(c).forEach(S=>{const _=YA(c[S],i);if(_!=null)if(typeof _=="object")if(a[S])p=Il(p,e(S,_,i,a));else{const y=Gn({theme:i},_,C=>({[S]:C}));KA(y,_)?p[S]=t({sx:_,theme:i}):p=Il(p,y)}else p=Il(p,e(S,_,i,a))}),fA(h,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const DC=QA();DC.filterProps=["sx"];const Bv=DC,XA=["breakpoints","palette","spacing","shape"];function Uv(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Rn(e,XA),s=lA(r),u=yA(o);let c=Fn({breakpoints:s,direction:"ltr",components:{},palette:_e({mode:"light"},n),spacing:u,shape:_e({},uA,i)},a);return c=t.reduce((f,h)=>Fn(f,h),c),c.unstable_sxConfig=_e({},Wv,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(h){return Bv({sx:h,theme:this})},c}function JA(e){return Object.keys(e).length===0}function ZA(e=null){const t=N.useContext(NC);return!t||JA(t)?e:t}const eM=Uv();function tM(e=eM){return ZA(e)}const rM=["variant"];function fS(e){return e.length===0}function FC(e){const{variant:t}=e,r=Rn(e,rM);let n=t||"";return Object.keys(r).sort().forEach(o=>{o==="color"?n+=fS(n)?e[o]:bn(e[o]):n+=`${fS(n)?o:bn(o)}${bn(e[o].toString())}`}),n}const nM=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function oM(e){return Object.keys(e).length===0}function iM(e){return typeof e=="string"&&e.charCodeAt(0)>96}const aM=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,lM=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(o=>{const i=FC(o.props);n[i]=o.style}),n},sM=(e,t,r,n)=>{var o;const{ownerState:i={}}=e,a=[],s=r==null||(o=r.components)==null||(o=o[n])==null?void 0:o.variants;return s&&s.forEach(u=>{let c=!0;Object.keys(u.props).forEach(f=>{i[f]!==u.props[f]&&e[f]!==u.props[f]&&(c=!1)}),c&&a.push(t[FC(u.props)])}),a};function Nu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const uM=Uv(),cM=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function ll({defaultTheme:e,theme:t,themeId:r}){return oM(t)?e:t[r]||t}function fM(e){return e?(t,r)=>r[e]:null}function dM(e={}){const{themeId:t,defaultTheme:r=uM,rootShouldForwardProp:n=Nu,slotShouldForwardProp:o=Nu}=e,i=a=>Bv(_e({},a,{theme:ll(_e({},a,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{oA(a,T=>T.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:u,slot:c,skipVariantsResolver:f,skipSx:h,overridesResolver:p=fM(cM(c))}=s,S=Rn(s,nM),_=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,y=h||!1;let C,v=Nu;c==="Root"||c==="root"?v=n:c?v=o:iM(a)&&(v=void 0);const g=nA(a,_e({shouldForwardProp:v,label:C},S)),b=(T,...k)=>{const P=k?k.map(z=>typeof z=="function"&&z.__emotion_real!==z?M=>z(_e({},M,{theme:ll(_e({},M,{defaultTheme:r,themeId:t}))})):z):[];let w=T;u&&p&&P.push(z=>{const M=ll(_e({},z,{defaultTheme:r,themeId:t})),F=aM(u,M);if(F){const H={};return Object.entries(F).forEach(([G,ue])=>{H[G]=typeof ue=="function"?ue(_e({},z,{theme:M})):ue}),p(z,H)}return null}),u&&!_&&P.push(z=>{const M=ll(_e({},z,{defaultTheme:r,themeId:t}));return sM(z,lM(u,M),M,u)}),y||P.push(i);const E=P.length-k.length;if(Array.isArray(T)&&E>0){const z=new Array(E).fill("");w=[...T,...z],w.raw=[...T.raw,...z]}else typeof T=="function"&&T.__emotion_real!==T&&(w=z=>T(_e({},z,{theme:ll(_e({},z,{defaultTheme:r,themeId:t}))})));const I=g(w,...P);return a.muiName&&(I.muiName=a.muiName),I};return g.withConfig&&(b.withConfig=g.withConfig),b}}function hM(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:gC(t.components[r].defaultProps,n)}function pM({props:e,name:t,defaultTheme:r,themeId:n}){let o=tM(r);return n&&(o=o[n]||o),hM({theme:o,name:t,props:e})}function WC(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function mM(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function ba(e){if(e.type)return e;if(e.charAt(0)==="#")return ba(mM(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(_a(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(_a(10,o))}else n=n.split(",");return n=n.map(i=>parseFloat(i)),{type:r,values:n,colorSpace:o}}function qv(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function vM(e){e=ba(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(c,f=(c+r/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),qv({type:s,values:u})}function dS(e){e=ba(e);let t=e.type==="hsl"||e.type==="hsla"?ba(vM(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function gM(e,t){const r=dS(e),n=dS(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function yM(e,t){if(e=ba(e),t=WC(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return qv(e)}function _M(e,t){if(e=ba(e),t=WC(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return qv(e)}function SM(e,t){return _e({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const bM={black:"#000",white:"#fff"},as=bM,wM={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},xM=wM,CM={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ei=CM,RM={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Oi=RM,TM={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},sl=TM,EM={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ki=EM,OM={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Pi=OM,kM={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Ii=kM,PM=["mode","contrastThreshold","tonalOffset"],hS={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:as.white,default:as.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},sh={text:{primary:as.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:as.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function pS(e,t,r,n){const o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=_M(e.main,o):t==="dark"&&(e.dark=yM(e.main,i)))}function IM(e="light"){return e==="dark"?{main:ki[200],light:ki[50],dark:ki[400]}:{main:ki[700],light:ki[400],dark:ki[800]}}function zM(e="light"){return e==="dark"?{main:Ei[200],light:Ei[50],dark:Ei[400]}:{main:Ei[500],light:Ei[300],dark:Ei[700]}}function jM(e="light"){return e==="dark"?{main:Oi[500],light:Oi[300],dark:Oi[700]}:{main:Oi[700],light:Oi[400],dark:Oi[800]}}function AM(e="light"){return e==="dark"?{main:Pi[400],light:Pi[300],dark:Pi[700]}:{main:Pi[700],light:Pi[500],dark:Pi[900]}}function MM(e="light"){return e==="dark"?{main:Ii[400],light:Ii[300],dark:Ii[700]}:{main:Ii[800],light:Ii[500],dark:Ii[900]}}function NM(e="light"){return e==="dark"?{main:sl[400],light:sl[300],dark:sl[700]}:{main:"#ed6c02",light:sl[500],dark:sl[900]}}function LM(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Rn(e,PM),i=e.primary||IM(t),a=e.secondary||zM(t),s=e.error||jM(t),u=e.info||AM(t),c=e.success||MM(t),f=e.warning||NM(t);function h(y){return gM(y,sh.text.primary)>=r?sh.text.primary:hS.text.primary}const p=({color:y,name:C,mainShade:v=500,lightShade:g=300,darkShade:b=700})=>{if(y=_e({},y),!y.main&&y[v]&&(y.main=y[v]),!y.hasOwnProperty("main"))throw new Error(_a(11,C?` (${C})`:"",v));if(typeof y.main!="string")throw new Error(_a(12,C?` (${C})`:"",JSON.stringify(y.main)));return pS(y,"light",g,n),pS(y,"dark",b,n),y.contrastText||(y.contrastText=h(y.main)),y},S={dark:sh,light:hS};return Fn(_e({common:_e({},as),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:u,name:"info"}),success:p({color:c,name:"success"}),grey:xM,contrastThreshold:r,getContrastText:h,augmentColor:p,tonalOffset:n},S[t]),o)}const $M=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function DM(e){return Math.round(e*1e5)/1e5}const mS={textTransform:"uppercase"},vS='"Roboto", "Helvetica", "Arial", sans-serif';function FM(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=vS,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:c=16,allVariants:f,pxToRem:h}=r,p=Rn(r,$M),S=o/14,_=h||(v=>`${v/c*S}rem`),y=(v,g,b,T,k)=>_e({fontFamily:n,fontWeight:v,fontSize:_(g),lineHeight:b},n===vS?{letterSpacing:`${DM(T/g)}em`}:{},k,f),C={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,mS),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,mS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Fn(_e({htmlFontSize:c,pxToRem:_,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},C),p,{clone:!1})}const WM=.2,BM=.14,UM=.12;function Ye(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${WM})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${BM})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${UM})`].join(",")}const qM=["none",Ye(0,2,1,-1,0,1,1,0,0,1,3,0),Ye(0,3,1,-2,0,2,2,0,0,1,5,0),Ye(0,3,3,-2,0,3,4,0,0,1,8,0),Ye(0,2,4,-1,0,4,5,0,0,1,10,0),Ye(0,3,5,-1,0,5,8,0,0,1,14,0),Ye(0,3,5,-1,0,6,10,0,0,1,18,0),Ye(0,4,5,-2,0,7,10,1,0,2,16,1),Ye(0,5,5,-3,0,8,10,1,0,3,14,2),Ye(0,5,6,-3,0,9,12,1,0,3,16,2),Ye(0,6,6,-3,0,10,14,1,0,4,18,3),Ye(0,6,7,-4,0,11,15,1,0,4,20,3),Ye(0,7,8,-4,0,12,17,2,0,5,22,4),Ye(0,7,8,-4,0,13,19,2,0,5,24,4),Ye(0,7,9,-4,0,14,21,2,0,5,26,4),Ye(0,8,9,-5,0,15,22,2,0,6,28,5),Ye(0,8,10,-5,0,16,24,2,0,6,30,5),Ye(0,8,11,-5,0,17,26,2,0,6,32,5),Ye(0,9,11,-5,0,18,28,2,0,7,34,6),Ye(0,9,12,-6,0,19,29,2,0,7,36,6),Ye(0,10,13,-6,0,20,31,3,0,8,38,7),Ye(0,10,13,-6,0,21,33,3,0,8,40,7),Ye(0,10,14,-6,0,22,35,3,0,8,42,7),Ye(0,11,14,-7,0,23,36,3,0,9,44,8),Ye(0,11,15,-7,0,24,38,3,0,9,46,8)],HM=qM,GM=["duration","easing","delay"],VM={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},KM={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gS(e){return`${Math.round(e)}ms`}function YM(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function QM(e){const t=_e({},VM,e.easing),r=_e({},KM,e.duration);return _e({getAutoHeightDuration:YM,create:(o=["all"],i={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:u=0}=i;return Rn(i,GM),(Array.isArray(o)?o:[o]).map(c=>`${c} ${typeof a=="string"?a:gS(a)} ${s} ${typeof u=="string"?u:gS(u)}`).join(",")}},e,{easing:t,duration:r})}const XM={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},JM=XM,ZM=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function eN(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Rn(e,ZM);if(e.vars)throw new Error(_a(18));const s=LM(n),u=Uv(e);let c=Fn(u,{mixins:SM(u.breakpoints,r),palette:s,shadows:HM.slice(),typography:FM(s,i),transitions:QM(o),zIndex:_e({},JM)});return c=Fn(c,a),c=t.reduce((f,h)=>Fn(f,h),c),c.unstable_sxConfig=_e({},Wv,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(h){return Bv({sx:h,theme:this})},c}const tN=eN(),BC=tN,UC="$$material";function rN({props:e,name:t}){return pM({props:e,name:t,defaultTheme:BC,themeId:UC})}const nN=e=>Nu(e)&&e!=="classes",oN=dM({themeId:UC,defaultTheme:BC,rootShouldForwardProp:nN}),iN=oN;function aN(e){return _C("MuiSvgIcon",e)}Jz("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lN=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],sN=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${bn(t)}`,`fontSize${bn(r)}`]};return Kz(o,aN,n)},uN=iN("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${bn(r.color)}`],t[`fontSize${bn(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,i,a,s,u,c,f,h,p,S,_;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(u=s.pxToRem)==null?void 0:u.call(s,24))||"1.5rem",large:((c=e.typography)==null||(f=c.pxToRem)==null?void 0:f.call(c,35))||"2.1875rem"}[t.fontSize],color:(h=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?h:{action:(S=(e.vars||e).palette)==null||(S=S.action)==null?void 0:S.active,disabled:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.disabled,inherit:void 0}[t.color]}}),qC=N.forwardRef(function(t,r){const n=rN({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:u="medium",htmlColor:c,inheritViewBox:f=!1,titleAccess:h,viewBox:p="0 0 24 24"}=n,S=Rn(n,lN),_=N.isValidElement(o)&&o.type==="svg",y=_e({},n,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:_}),C={};f||(C.viewBox=p);const v=sN(y);return O.jsxs(uN,_e({as:s,className:Zz(v.root,i),focusable:"false",color:c,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},C,S,_&&o.props,{ownerState:y,children:[_?o.props.children:o,h?O.jsx("title",{children:h}):null]}))});qC.muiName="SvgIcon";const yS=qC;function cN(e,t){function r(n,o){return O.jsx(yS,_e({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=yS.muiName,N.memo(N.forwardRef(r))}const fN={configure:e=>{yC.configure(e)}},dN=Object.freeze(Object.defineProperty({__proto__:null,capitalize:bn,createChainedFunction:Oz,createSvgIcon:cN,debounce:kz,deprecatedPropType:Pz,isMuiElement:Iz,ownerDocument:pC,ownerWindow:zz,requirePropFactory:jz,setRef:mC,unstable_ClassNameGenerator:fN,unstable_useEnhancedEffect:vC,unstable_useId:Nz,unsupportedProp:Lz,useControlled:$z,useEventCallback:Dz,useForkRef:Fz,useIsFocusVisible:Vz},Symbol.toStringTag,{value:"Module"})),hN=ka(dN);var _S;function Br(){return _S||(_S=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=hN}(rh)),rh}var pN=Fr;Object.defineProperty(Ov,"__esModule",{value:!0});var HC=Ov.default=void 0,mN=pN(Br()),vN=O,gN=(0,mN.default)((0,vN.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"MenuOutlined");HC=Ov.default=gN;var Hv={},yN=Fr;Object.defineProperty(Hv,"__esModule",{value:!0});var GC=Hv.default=void 0,_N=yN(Br()),SN=O,bN=(0,_N.default)((0,SN.jsx)("path",{d:"M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-.32l-1-1.73c-.06-.11-.19-.15-.31-.11l-1.24.5c-.26-.2-.54-.37-.85-.49l-.19-1.32c-.01-.12-.12-.21-.24-.21h-2c-.12 0-.23.09-.25.21l-.19 1.32c-.3.13-.59.29-.85.49l-1.24-.5c-.11-.04-.24 0-.31.11l-1 1.73c-.06.11-.04.24.06.32l1.06.83c-.02.16-.03.32-.03.49 0 .17.01.33.03.49l-1.06.83c-.09.08-.12.21-.06.32l1 1.73c.06.11.19.15.31.11l1.24-.5c.26.2.54.37.85.49l.19 1.32c.02.12.12.21.25.21h2c.12 0 .23-.09.25-.21l.19-1.32c.3-.13.59-.29.84-.49l1.25.5c.11.04.24 0 .31-.11l1-1.73c.06-.11.03-.24-.06-.32l-1.07-.83zm-3.71 1.01c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"}),"PermDataSetting");GC=Hv.default=bN;var Gv={},wN=Fr;Object.defineProperty(Gv,"__esModule",{value:!0});var VC=Gv.default=void 0,xN=wN(Br()),CN=O,RN=(0,xN.default)((0,CN.jsx)("path",{d:"M12 14.67 3.41 6.09 2 7.5l8.5 8.5H4v2h16v-2h-6.5l5.15-5.15c.26.1.55.15.85.15 1.38 0 2.5-1.12 2.5-2.5S20.88 6 19.5 6 17 7.12 17 8.5c0 .35.07.67.2.97l-5.2 5.2z"}),"NetworkPing");VC=Gv.default=RN;var Vv={},TN=Fr;Object.defineProperty(Vv,"__esModule",{value:!0});var KC=Vv.default=void 0,EN=TN(Br()),ON=O,kN=(0,EN.default)((0,ON.jsx)("path",{d:"M19 3H4.99C3.89 3 3 3.9 3 5l.01 14c0 1.1.89 2 1.99 2h10l6-6V5c0-1.1-.9-2-2-2zM7 8h10v2H7V8zm5 6H7v-2h5v2zm2 5.5V14h5.5L14 19.5z"}),"StickyNote2");KC=Vv.default=kN;var Kv={},PN=Fr;Object.defineProperty(Kv,"__esModule",{value:!0});var YC=Kv.default=void 0,IN=PN(Br()),zN=O,jN=(0,IN.default)((0,zN.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"}),"Link");YC=Kv.default=jN;var Yv={},AN=Fr;Object.defineProperty(Yv,"__esModule",{value:!0});var QC=Yv.default=void 0,MN=AN(Br()),NN=O,LN=(0,MN.default)((0,NN.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 14H7v-4h4v4zm0-6H7V7h4v4zm6 6h-4v-4h4v4zm0-6h-4V7h4v4z"}),"Dataset");QC=Yv.default=LN;var Qv={},$N=Fr;Object.defineProperty(Qv,"__esModule",{value:!0});var XC=Qv.default=void 0,DN=$N(Br()),FN=O,WN=(0,DN.default)((0,FN.jsx)("path",{d:"M21 15v-2h-3.07c-.05-.39-.12-.77-.22-1.14l2.58-1.49-1-1.73L16.92 10c-.28-.48-.62-.91-.99-1.29.04-.23.07-.46.07-.71 0-.8-.24-1.55-.65-2.18L17 4.17l-1.41-1.41-1.72 1.72c-1.68-.89-3.1-.33-3.73 0L8.41 2.76 7 4.17l1.65 1.65C8.24 6.45 8 7.2 8 8c0 .25.03.48.07.72-.37.38-.71.81-.99 1.28L4.71 8.63l-1 1.73 2.58 1.49c-.1.37-.17.75-.22 1.14H3v2h3.07c.05.39.12.77.22 1.14l-2.58 1.49 1 1.73L7.08 18c1.08 1.81 2.88 3 4.92 3s3.84-1.19 4.92-3l2.37 1.37 1-1.73-2.58-1.49c.1-.37.17-.75.22-1.14H21zm-8 2h-2v-6h2v6z"}),"PestControl");XC=Qv.default=WN;var Xv={},BN=Fr;Object.defineProperty(Xv,"__esModule",{value:!0});var JC=Xv.default=void 0,UN=BN(Br()),uh=O,qN=(0,UN.default)([(0,uh.jsx)("path",{d:"M7 19c-1.1 0-2 .9-2 2h14c0-1.1-.9-2-2-2h-4v-2h3c1.1 0 2-.9 2-2h-8c-1.66 0-3-1.34-3-3 0-1.09.59-2.04 1.46-2.56C8.17 9.03 8 8.54 8 8c0-.21.04-.42.09-.62C6.28 8.13 5 9.92 5 12c0 2.76 2.24 5 5 5v2H7z"},"0"),(0,uh.jsx)("path",{d:"M10.56 5.51C11.91 5.54 13 6.64 13 8c0 .75-.33 1.41-.85 1.87l.59 1.62.94-.34.34.94 1.88-.68-.34-.94.94-.34-2.74-7.53-.94.34-.34-.94-1.88.68.34.94-.94.35.56 1.54z"},"1"),(0,uh.jsx)("circle",{cx:"10.5",cy:"8",r:"1.5"},"2")],"Biotech");JC=Xv.default=qN;var Jv={},HN=Fr;Object.defineProperty(Jv,"__esModule",{value:!0});var ZC=Jv.default=void 0,GN=HN(Br()),VN=O,KN=(0,GN.default)((0,VN.jsx)("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83z"}),"Speed");ZC=Jv.default=KN;var Zv={},YN=Fr;Object.defineProperty(Zv,"__esModule",{value:!0});var eR=Zv.default=void 0,QN=YN(Br()),XN=O,JN=(0,QN.default)((0,XN.jsx)("path",{d:"M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9l-6-6zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm6 1V4.5l5.5 5.5H14z"}),"Summarize");eR=Zv.default=JN;var eg={},ZN=Fr;Object.defineProperty(eg,"__esModule",{value:!0});var tR=eg.default=void 0,eL=ZN(Br()),SS=O,tL=(0,eL.default)([(0,SS.jsx)("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6z"},"0"),(0,SS.jsx)("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12zm0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17z"},"1")],"AdminPanelSettings");tR=eg.default=tL;var rR={exports:{}},nR={};/** - * @license React - * use-sync-external-store-shim.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 wa=N;function rL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nL=typeof Object.is=="function"?Object.is:rL,oL=wa.useState,iL=wa.useEffect,aL=wa.useLayoutEffect,lL=wa.useDebugValue;function sL(e,t){var r=t(),n=oL({inst:{value:r,getSnapshot:t}}),o=n[0].inst,i=n[1];return aL(function(){o.value=r,o.getSnapshot=t,ch(o)&&i({inst:o})},[e,r,t]),iL(function(){return ch(o)&&i({inst:o}),e(function(){ch(o)&&i({inst:o})})},[e]),lL(r),r}function ch(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!nL(e,r)}catch{return!0}}function uL(e,t){return t()}var cL=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?uL:sL;nR.useSyncExternalStore=wa.useSyncExternalStore!==void 0?wa.useSyncExternalStore:cL;rR.exports=nR;var fL=rR.exports,oR={exports:{}},iR={};/** - * @license React - * use-sync-external-store-shim/with-selector.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 Lf=N,dL=fL;function hL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pL=typeof Object.is=="function"?Object.is:hL,mL=dL.useSyncExternalStore,vL=Lf.useRef,gL=Lf.useEffect,yL=Lf.useMemo,_L=Lf.useDebugValue;iR.useSyncExternalStoreWithSelector=function(e,t,r,n,o){var i=vL(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=yL(function(){function u(S){if(!c){if(c=!0,f=S,S=n(S),o!==void 0&&a.hasValue){var _=a.value;if(o(_,S))return h=_}return h=S}if(_=h,pL(f,S))return _;var y=n(S);return o!==void 0&&o(_,y)?_:(f=S,h=y)}var c=!1,f,h,p=r===void 0?null:r;return[function(){return u(t())},p===null?void 0:function(){return u(p())}]},[t,r,n,o]);var s=mL(e,i[0],i[1]);return gL(function(){a.hasValue=!0,a.value=s},[s]),_L(s),s};oR.exports=iR;var SL=oR.exports;function bL(e){e()}let aR=bL;const wL=e=>aR=e,xL=()=>aR,bS=Symbol.for("react-redux-context"),wS=typeof globalThis<"u"?globalThis:{};function CL(){var e;if(!N.createContext)return{};const t=(e=wS[bS])!=null?e:wS[bS]=new Map;let r=t.get(N.createContext);return r||(r=N.createContext(null),t.set(N.createContext,r)),r}const Co=CL();function tg(e=Co){return function(){return N.useContext(e)}}const lR=tg(),RL=()=>{throw new Error("uSES not initialized!")};let sR=RL;const TL=e=>{sR=e},EL=(e,t)=>e===t;function OL(e=Co){const t=e===Co?lR:tg(e);return function(n,o={}){const{equalityFn:i=EL,stabilityCheck:a=void 0,noopCheck:s=void 0}=typeof o=="function"?{equalityFn:o}:o,{store:u,subscription:c,getServerState:f,stabilityCheck:h,noopCheck:p}=t();N.useRef(!0);const S=N.useCallback({[n.name](y){return n(y)}}[n.name],[n,h,a]),_=sR(c.addNestedSub,u.getState,f||u.getState,S,i);return N.useDebugValue(_),_}}const gr=OL();function kL(){const e=xL();let t=null,r=null;return{clear(){t=null,r=null},notify(){e(()=>{let n=t;for(;n;)n.callback(),n=n.next})},get(){let n=[],o=t;for(;o;)n.push(o),o=o.next;return n},subscribe(n){let o=!0,i=r={callback:n,next:null,prev:r};return i.prev?i.prev.next=i:t=i,function(){!o||t===null||(o=!1,i.next?i.next.prev=i.prev:r=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}const xS={notify(){},get:()=>[]};function PL(e,t){let r,n=xS;function o(h){return u(),n.subscribe(h)}function i(){n.notify()}function a(){f.onStateChange&&f.onStateChange()}function s(){return!!r}function u(){r||(r=t?t.addNestedSub(a):e.subscribe(a),n=kL())}function c(){r&&(r(),r=void 0,n.clear(),n=xS)}const f={addNestedSub:o,notifyNestedSubs:i,handleChangeWrapper:a,isSubscribed:s,trySubscribe:u,tryUnsubscribe:c,getListeners:()=>n};return f}const IL=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",zL=IL?N.useLayoutEffect:N.useEffect;function jL({store:e,context:t,children:r,serverState:n,stabilityCheck:o="once",noopCheck:i="once"}){const a=N.useMemo(()=>{const c=PL(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:o,noopCheck:i}},[e,n,o,i]),s=N.useMemo(()=>e.getState(),[e]);zL(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const u=t||Co;return N.createElement(u.Provider,{value:a},r)}function uR(e=Co){const t=e===Co?lR:tg(e);return function(){const{store:n}=t();return n}}const AL=uR();function ML(e=Co){const t=e===Co?AL:uR(e);return function(){return t().dispatch}}const rg=ML();TL(SL.useSyncExternalStoreWithSelector);wL(ms.unstable_batchedUpdates);function Zr(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n3?t.i-4:t.i:Array.isArray(e)?1:ng(e)?2:og(e)?3:0}function oa(e,t){return La(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function NL(e,t){return La(e)===2?e.get(t):e[t]}function cR(e,t,r){var n=La(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function fR(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function ng(e){return BL&&e instanceof Map}function og(e){return UL&&e instanceof Set}function Wo(e){return e.o||e.t}function ig(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hR(e);delete t[Qe];for(var r=ia(t),n=0;n1&&(e.set=e.add=e.clear=e.delete=LL),Object.freeze(e),t&&li(e,function(r,n){return ag(n,!0)},!0)),e}function LL(){Zr(2)}function lg(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function xn(e){var t=cm[e];return t||Zr(18,e),t}function $L(e,t){cm[e]||(cm[e]=t)}function lm(){return ls}function fh(e,t){t&&(xn("Patches"),e.u=[],e.s=[],e.v=t)}function yc(e){sm(e),e.p.forEach(DL),e.p=null}function sm(e){e===ls&&(ls=e.l)}function CS(e){return ls={p:[],l:ls,h:e,m:!0,_:0}}function DL(e){var t=e[Qe];t.i===0||t.i===1?t.j():t.g=!0}function dh(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||xn("ES5").S(t,e,n),n?(r[Qe].P&&(yc(t),Zr(4)),Vn(e)&&(e=_c(t,e),t.l||Sc(t,e)),t.u&&xn("Patches").M(r[Qe].t,e,t.u,t.s)):e=_c(t,r,[]),yc(t),t.u&&t.v(t.u,t.s),e!==dR?e:void 0}function _c(e,t,r){if(lg(t))return t;var n=t[Qe];if(!n)return li(t,function(s,u){return RS(e,n,t,s,u,r)},!0),t;if(n.A!==e)return t;if(!n.P)return Sc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=ig(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),li(i,function(s,u){return RS(e,n,o,s,u,r,a)}),Sc(e,o,!1),r&&e.u&&xn("Patches").N(n,r,e.u,e.s)}return n.o}function RS(e,t,r,n,o,i,a){if(Ro(o)){var s=_c(e,o,i&&t&&t.i!==3&&!oa(t.R,n)?i.concat(n):void 0);if(cR(r,n,s),!Ro(s))return;e.m=!1}else a&&r.add(o);if(Vn(o)&&!lg(o)){if(!e.h.D&&e._<1)return;_c(e,o),t&&t.A.l||Sc(e,o)}}function Sc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&ag(t,r)}function hh(e,t){var r=e[Qe];return(r?Wo(r):e)[t]}function TS(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function oo(e){e.P||(e.P=!0,e.l&&oo(e.l))}function ph(e){e.o||(e.o=ig(e.t))}function um(e,t,r){var n=ng(t)?xn("MapSet").F(t,r):og(t)?xn("MapSet").T(t,r):e.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:lm(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,c=ss;a&&(u=[s],c=pl);var f=Proxy.revocable(u,c),h=f.revoke,p=f.proxy;return s.k=p,s.j=h,p}(t,r):xn("ES5").J(t,r);return(r?r.A:lm()).p.push(n),n}function FL(e){return Ro(e)||Zr(22,e),function t(r){if(!Vn(r))return r;var n,o=r[Qe],i=La(r);if(o){if(!o.P&&(o.i<4||!xn("ES5").K(o)))return o.t;o.I=!0,n=ES(r,i),o.I=!1}else n=ES(r,i);return li(n,function(a,s){o&&NL(o.t,a)===s||cR(n,a,t(s))}),i===3?new Set(n):n}(e)}function ES(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ig(e)}function WL(){function e(i,a){var s=o[i];return s?s.enumerable=a:o[i]=s={configurable:!0,enumerable:a,get:function(){var u=this[Qe];return ss.get(u,i)},set:function(u){var c=this[Qe];ss.set(c,i,u)}},s}function t(i){for(var a=i.length-1;a>=0;a--){var s=i[a][Qe];if(!s.P)switch(s.i){case 5:n(s)&&oo(s);break;case 4:r(s)&&oo(s)}}}function r(i){for(var a=i.t,s=i.k,u=ia(s),c=u.length-1;c>=0;c--){var f=u[c];if(f!==Qe){var h=a[f];if(h===void 0&&!oa(a,f))return!0;var p=s[f],S=p&&p[Qe];if(S?S.t!==h:!fR(p,h))return!0}}var _=!!a[Qe];return u.length!==ia(a).length+(_?0:1)}function n(i){var a=i.k;if(a.length!==i.t.length)return!0;var s=Object.getOwnPropertyDescriptor(a,a.length-1);if(s&&!s.get)return!0;for(var u=0;u1?v-1:0),b=1;b1?f-1:0),p=1;p=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=xn("Patches").$;return Ro(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},e}(),xr=new HL,pR=xr.produce;xr.produceWithPatches.bind(xr);xr.setAutoFreeze.bind(xr);xr.setUseProxies.bind(xr);xr.applyPatches.bind(xr);xr.createDraft.bind(xr);xr.finishDraft.bind(xr);function xa(e){"@babel/helpers - typeof";return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xa(e)}function GL(e,t){if(xa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mR(e){var t=GL(e,"string");return xa(t)==="symbol"?t:String(t)}function $(e,t,r){return t=mR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function zS(e){for(var t=1;t"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Dt(1));return r(vR)(e,t)}if(typeof e!="function")throw new Error(Dt(2));var o=e,i=t,a=[],s=a,u=!1;function c(){s===a&&(s=a.slice())}function f(){if(u)throw new Error(Dt(3));return i}function h(y){if(typeof y!="function")throw new Error(Dt(4));if(u)throw new Error(Dt(5));var C=!0;return c(),s.push(y),function(){if(C){if(u)throw new Error(Dt(6));C=!1,c();var g=s.indexOf(y);s.splice(g,1),a=null}}}function p(y){if(!VL(y))throw new Error(Dt(7));if(typeof y.type>"u")throw new Error(Dt(8));if(u)throw new Error(Dt(9));try{u=!0,i=o(i,y)}finally{u=!1}for(var C=a=s,v=0;v"u")throw new Error(Dt(12));if(typeof r(void 0,{type:bc.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Dt(13))})}function YL(e){for(var t=Object.keys(e),r={},n=0;n"u")throw c&&c.type,new Error(Dt(14));h[S]=C,f=f||C!==y}return f=f||i.length!==Object.keys(u).length,f?h:u}}function wc(){for(var e=arguments.length,t=new Array(e),r=0;r-1){var c=r[u];return u>0&&(r.splice(u,1),r.unshift(c)),c.value}return xc}function o(s,u){n(s)===xc&&(r.unshift({key:s,value:u}),r.length>e&&r.pop())}function i(){return r}function a(){r=[]}return{get:n,put:o,getEntries:i,clear:a}}var ZL=function(t,r){return t===r};function e4(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var o=r.length,i=0;i1?t-1:0),n=1;n0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]{let r=e.sessions.findIndex(i=>i.pin===t.payload.pin);r!==-1?e.sessions[r]=t.payload:e.sessions.push(t.payload),e.activeSessionPin=t.payload.pin;let n=localStorage.getItem("sessions"),o=[];n!==null&&(o=JSON.parse(n)),o.push(t.payload),localStorage.setItem("sessions",JSON.stringify(o))},setSessionsArray:(e,t)=>{e.sessions=t.payload},setActiveSessionPin:(e,t)=>{e.activeSessionPin=t.payload,e.activeNodeId=""},addOrUpdateNode:(e,t)=>{let r=e.nodes.findIndex(n=>n.sessionPin===e.activeSessionPin);if(r!==-1){let n=e.nodes[r].nodes.findIndex(o=>o.id===t.payload.id);n!==-1?e.nodes[r].nodes[n]=t.payload:e.nodes[r].nodes.push(t.payload),e.activeNodeId=t.payload.id}else e.nodes.push({sessionPin:e.activeSessionPin,nodes:[t.payload]}),e.activeNodeId=t.payload.id},setActiveNodeId:(e,t)=>{e.activeNodeId=t.payload},addOrUpdateNodeVersion:(e,t)=>{let r=e.nodeVersions.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.nodeVersions[r]=t.payload:e.nodeVersions.push(t.payload)},addOrUpdateNodeFlags:(e,t)=>{let r=e.flags.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.flags[r]=t.payload:e.flags.push(t.payload)},addOrUpdateCmdLineArgs:(e,t)=>{let r=e.cmdLineArgs.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.cmdLineArgs[r]=t.payload:e.cmdLineArgs.push(t.payload)},addOrUpdateNodeLogs:(e,t)=>{let r=e.nodeLogs.findIndex(n=>n.nodeId===e.activeNodeId);r!==-1?e.nodeLogs[r]=t.payload:e.nodeLogs.push(t.payload)},addOrUpdateSyncStages:(e,t)=>{let r=e.syncStages.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.syncStages[r]=t.payload:e.syncStages.push(t.payload)},setLogWithNameSelected:(e,t)=>{let r=e.nodeLogs.findIndex(n=>n.nodeId===e.activeNodeId);if(r!==-1){e.nodeLogs[r].logFiles.forEach(o=>{o.selected=!1});let n=e.nodeLogs[r].logFiles.findIndex(o=>o.name===t.payload);n!==-1&&(e.nodeLogs[r].logFiles[n].selected=!0)}},addOrUpdateDBs:(e,t)=>{let r=e.dbs.findIndex(n=>n.nodeId===t.payload.nodeId);r!==-1?e.dbs[r]=t.payload:e.dbs.push(t.payload)},addOrUpdateDBTable:(e,t)=>{let r=e.dbs.findIndex(n=>n.nodeId===t.payload.nodeId);if(r!==-1){let n=e.dbs[r].dbs.findIndex(o=>o.path===t.payload.path);n!==-1?e.dbs[r].dbs[n].tables=t.payload.tables:e.dbs[r].dbs.push({path:t.payload.path,tables:t.payload.tables})}}}}),{addOrUpdateSession:I4,setSessionsArray:z4,setActiveSessionPin:wR,addOrUpdateNode:j4,setActiveNodeId:A4,addOrUpdateNodeVersion:M4,addOrUpdateNodeFlags:N4,addOrUpdateCmdLineArgs:L4,addOrUpdateNodeLogs:$4,addOrUpdateSyncStages:D4,setLogWithNameSelected:F4,addOrUpdateDBs:W4,addOrUpdateDBTable:B4}=bR.actions,U4=e=>e.app.sessions,cg=e=>e.app.activeSessionPin,q4=e=>e.app.nodes,Tn=e=>e.app.activeNodeId,H4=e=>e.app.nodeVersions,G4=e=>e.app.flags,V4=e=>e.app.cmdLineArgs,K4=e=>e.app.nodeLogs,Y4=e=>e.app.syncStages,Q4=e=>e.app.dbs,xR=Yn([q4,cg],(e,t)=>{if(t==="")return[];let r=[];return e.forEach(n=>{n.sessionPin===t&&(r=n.nodes)}),r}),X4=Yn([U4,cg],(e,t)=>{let r=[];return t!=""&&e.forEach(n=>{r.push({pin:n.pin,name:n.name,active:n.pin===t})}),r}),J4=Yn([xR,Tn],(e,t)=>{let r=e[0];return e.forEach(n=>{n.id===t&&(r=n)}),r}),Z4=Yn([xR,Tn,H4],(e,t,r)=>{let n=[];return e.forEach(o=>{let i="";r.forEach(a=>{a.nodeId===o.id&&(i=a.version.nodeVersion)}),n.push({active:o.id===t,name:o.name,id:o.id,version:i,chain:o.protocols.eth.config.ChainName,block:o.protocols.eth.config.londonBlock,address:""})}),n}),e3=Yn([G4,Tn],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.flags)}),r}),t3=Yn([V4,Tn],(e,t)=>{let r="";return e.forEach(n=>{n.nodeId===t&&(r=n.args)}),r}),r3=Yn([K4,Tn],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.logFiles)}),r}),n3=Yn([Y4,Tn],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.syncStages)}),r}),CR=Yn([Q4,Tn],(e,t)=>{let r=[];return e.forEach(n=>{n.nodeId===t&&(r=n.dbs)}),r}),o3=bR.reducer,i3=({flag:e})=>{function t(o){return o&&typeof o=="object"&&o.constructor===Array}const r=o=>t(o)?n(o):O.jsx("td",{className:"px-4 py-2",children:String(o)}),n=o=>O.jsx(O.Fragment,{children:o.map(i=>O.jsx("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:O.jsx("td",{className:"px-4 py-2",children:i+""})},i))});return O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onMouseOver:o=>{const i=o.target,a=e.usage;a&&i.setAttribute("title",a)},children:[O.jsx("td",{className:"px-4 py-2",children:e.flag}),r(e.value),O.jsx("td",{className:"px-4 py-2",children:String(e.default)})]},e.flag)},a3=({flags:e})=>{const[t,r]=oe.useState([]);N.useEffect(()=>{r(n(e))},[e]);const n=o=>o===void 0?[]:o.filter(i=>i.value!==void 0&&i.value!==""&&i.value!==null);return O.jsxs("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:[O.jsx("thead",{children:O.jsxs("tr",{className:"border-b",children:[O.jsx("th",{className:"px-4 py-2",children:"Flag"}),O.jsx("th",{className:"px-4 py-2",children:"Value"}),O.jsx("th",{className:"px-4 py-2",children:"Default"})]})}),O.jsx("tbody",{children:t.map(o=>O.jsx(i3,{flag:o}))})]})},l3=({nodeInfo:e})=>O.jsx("table",{className:"table-auto rounded-lg bg-white text-left","data-testid":"details_section_flags_table",children:O.jsxs("tbody",{children:[O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"id:"}),O.jsx("td",{className:"px-4 py-2",children:e.id})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"name:"}),O.jsx("td",{className:"px-4 py-2",children:e.name})]}),O.jsxs("tr",{className:"border-b border-gray-200 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"eth protocol:"}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"difficulty:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.difficulty})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"genesis:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.genesis})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"network:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.network})]}),O.jsxs("tr",{className:"border-b border-gray-200 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"config:"}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"ChainName:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.ChainName})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"chainId:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.chainId})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"consensus:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.consensus})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"homesteadBlock:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.homesteadBlock})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"eip150Block:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.eip150Block})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"eip155Block:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.eip155Block})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"byzantiumBlock:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.byzantiumBlock})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"constantinopleBlock:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.constantinopleBlock})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"petersburgBlock:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.petersburgBlock})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"istanbulBlock:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.istanbulBlock})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"berlinBlock:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.berlinBlock})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"londonBlock:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.londonBlock})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"terminalTotalDifficulty:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.terminalTotalDifficulty})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"terminalTotalDifficultyPassed:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.terminalTotalDifficultyPassed})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"shanghaiTime:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.shanghaiTime})]}),O.jsxs("tr",{className:"border-b border-gray-200 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"clique:"}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"period:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.clique.period})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"epoch:"}),O.jsx("td",{className:"px-4 py-2",children:e.protocols.eth.config.clique.epoch})]})]})]})]}),O.jsxs("tr",{className:"border-b border-gray-200 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"enodes:"}),e.enodes.map((t,r)=>O.jsxs(O.Fragment,{children:[O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"enode:"}),O.jsx("td",{className:"px-4 py-2",children:t.enode})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"enr:"}),O.jsx("td",{className:"px-4 py-2",children:t.enr})]}),O.jsxs("tr",{className:"border-b border-gray-200 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"ports:"}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"discovery:"}),O.jsx("td",{className:"px-4 py-2",children:t.ports.discovery})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"listener:"}),O.jsx("td",{className:"px-4 py-2",children:t.ports.listener})]})]}),O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 ",children:[O.jsx("td",{className:"px-4 py-2 font-bold",children:"listener_addr:"}),O.jsx("td",{className:"px-4 py-2",children:t.listener_addr})]})]}))]})]})}),Ur=_4({reducer:{app:o3}}),s3="sessions",u3="nodes",c3="versions",f3="flags",d3="cmdline",h3="logs",p3="sync-stages",RR="dbs",m3="tables",v3=()=>Ur.getState().app.activeSessionPin,fg=()=>{const e=v3();return`https://localhost:8080/${s3}/${e}`},fi=()=>{const e=fg(),t=Ur.getState().app.activeNodeId;return`${e}/${u3}/${t}`},g3=()=>`${fi()}/${c3}`,TR=()=>`${fi()}/${f3}`,ER=()=>`${fi()}/${d3}`,OR=()=>`${fi()}/${h3}`,kR=()=>`${fi()}/${p3}`,y3=()=>`${fi()}/${RR}`,_3=e=>`${fi()}/${RR}/${e}/${m3}`,S3=()=>{{const e=jo(fg(),"GET");return fetch(e).then(t=>t.json())}},b3=()=>{{const e=jo(g3(),"GET");return fetch(e).then(t=>t.json())}},w3=()=>{{const e=jo(TR(),"GET");return fetch(e).then(t=>t.json())}},x3=()=>{{const e=jo(ER(),"GET");return fetch(e).then(t=>t.json())}},C3=()=>{{const e=jo(OR(),"GET");return fetch(e).then(t=>t.json())}},R3=()=>{{const e=jo(kR(),"GET");return fetch(e).then(t=>t.json())}},T3=()=>{{const e=jo(y3(),"GET");return fetch(e).then(t=>t.json())}},E3=e=>{{const t=jo(_3(e),"GET");return fetch(t).then(r=>r.json())}};function jo(e,t,r){return new Request(e,{method:t,body:r})}const O3=({cmdLine:e,flags:t,nodeDetails:r,syncStages:n})=>{let o;(C=>{C.Command="Command",C.Flags="Flags",C.NodeInfo="Node Info",C.SyncStages="Stages"})(o||(o={}));const[i,a]=oe.useState("Command"),[s,u]=oe.useState(!1),c=C=>{let v="px-4 py-2 text-sm font-medium text-gray-900 bg-white-100 border-gray-900 hover:bg-gray-500 hover:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700";const g="bg-gray-900 text-white";return C==="Command"?v=v+" border-l border-r border-t rounded-tl-md":C==="Stages"?v=v+" border-r border-t rounded-tr-md":(C==="Flags"||C==="Node Info")&&(v=v+" border-t border-r"),C===i?v+" "+g:v};async function f(C){return"clipboard"in navigator?await navigator.clipboard.writeText(C):document.execCommand("copy",!0,C)}const h=C=>{f(C).then(()=>{u(!0),setTimeout(()=>{u(!1)},1500)}).catch(v=>{console.log(v)})},p=()=>e===void 0?null:O.jsxs("div",{className:"flex flex-col",children:[O.jsx("span",{className:"mb-2",children:e}),O.jsx("button",{className:"px-4 py-2 mr-2 mt-10 mb-2 text-sm font-medium text-gray-900 bg-white-100 border-gray-900 active:bg-gray-500 active:text-white border rounded-md w-fit",onClick:()=>h(ER()),children:s?"Copied":"Copy curl"})]}),S=()=>t===void 0?null:O.jsxs("div",{className:"flex flex-col",children:[O.jsx(a3,{flags:t}),O.jsx("button",{className:"px-4 py-2 mr-2 mt-10 mb-2 text-sm font-medium text-gray-900 bg-white-100 border-gray-900 active:bg-gray-500 active:text-white border rounded-md w-fit",onClick:()=>h(TR()),children:s?"Copied":"Copy curl"})]}),_=()=>r===void 0?null:O.jsxs("div",{className:"flex flex-col",children:[O.jsx(l3,{nodeInfo:r}),O.jsx("button",{className:"px-4 py-2 mr-2 mt-10 mb-2 text-sm font-medium text-gray-900 bg-white-100 border-gray-900 active:bg-gray-500 active:text-white border rounded-md w-fit",onClick:()=>h(fg()),children:s?"Copied":"Copy curl"})]}),y=()=>n===void 0?null:O.jsxs("div",{className:"flex flex-col",children:[O.jsx("table",{className:"table-auto rounded-lg bg-white text-left",children:O.jsx("tbody",{children:n.map(C=>O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100",children:[O.jsx("td",{className:"px-4 py-2",children:C.key}),O.jsx("td",{className:"px-4 py-2",children:C.value})]},C.key))})}),O.jsx("button",{className:"px-4 py-2 mr-2 mt-10 mb-2 text-sm font-medium text-gray-900 bg-white-100 border-gray-900 active:bg-gray-500 active:text-white border rounded-md w-fit",onClick:()=>h(kR()),children:s?"Copied":"Copy curl"})]});return O.jsxs("div",{className:"flex flex-col",children:[O.jsxs("div",{className:"flex flex-row",children:[O.jsx("button",{className:c("Command"),onClick:()=>a("Command"),"data-testid":"command_button",children:"Command"}),O.jsx("button",{className:c("Flags"),onClick:()=>a("Flags"),"data-testid":"flags_button",children:"Flags"}),O.jsx("button",{className:c("Node Info"),onClick:()=>a("Node Info"),"data-testid":"node_info_button",children:"Node Info"}),O.jsx("button",{className:c("Stages"),onClick:()=>a("Stages"),"data-testid":"sync_stages_button",children:"Sync Stages"})]}),O.jsxs("div",{className:"flex flex-col border border-gray-900 rounded-bl-md rounded-br-md rounded-tr-md pl-2 pr-2 bg-white min-h-[40px] max-w-[1400px] overflow-auto","data-testid":"test_details_section_content",children:[i==="Command"&&p(),i==="Flags"&&S(),i==="Node Info"&&_(),i==="Stages"&&y()]})]})},k3=()=>{const e=gr(Tn),t=gr(e3),r=gr(t3),n=gr(J4),o=gr(n3);return O.jsx("div",{className:"mt-4",children:e!==""&&O.jsx(O3,{cmdLine:r,flags:t,nodeDetails:n,syncStages:o})})},P3=e=>({id:e.id,name:e.name,protocols:I3(e.protocols),enodes:M3(e.enodes)}),I3=e=>({eth:z3(e.eth)}),z3=e=>({network:e.network,difficulty:e.difficulty,genesis:e.genesis,config:j3(e.config)}),j3=e=>({ChainName:e.ChainName,chainId:e.chainId,consensus:e.consensus,homesteadBlock:e.homesteadBlock,eip150Block:e.eip150Block,eip155Block:e.eip155Block,byzantiumBlock:e.byzantiumBlock,constantinopleBlock:e.constantinopleBlock,petersburgBlock:e.petersburgBlock,istanbulBlock:e.istanbulBlock,berlinBlock:e.berlinBlock,londonBlock:e.londonBlock,terminalTotalDifficulty:e.terminalTotalDifficulty,terminalTotalDifficultyPassed:e.terminalTotalDifficultyPassed,shanghaiTime:e.shanghaiTime,clique:A3(e.clique)}),A3=e=>({period:e.period,epoch:e.epoch}),M3=e=>{let t=[];return e.forEach(r=>{t.push({enode:r.enode,enr:r.enr,ports:r.ports,listener_addr:r.listener_addr})}),t},N3=["boolean","string","number"],L3=e=>{let t=[];for(let r in e)t.push($3(r,e[r]));return t},$3=(e,t)=>({flag:e,default:t.default,usage:t.usage,value:D3(t.value)}),D3=e=>{let t=typeof e;return N3.includes(t)||F3(e)||W3(e)?e:""};function F3(e){return Array.isArray(e)&&e.every(t=>typeof t=="string")}function W3(e){return Array.isArray(e)&&e.every(t=>typeof t=="number")}const B3=e=>({nodeVersion:e.nodeVersion,supportVersion:e.supportVersion,codeVersion:e.codeVersion,gitCommit:e.gitCommit}),U3=e=>{let t=Object.keys(e),r=[];return t.forEach(n=>{r.push({key:n,value:e[n]})}),r},di=()=>Ur.getState().app.activeNodeId,q3=()=>{S3().then(e=>{e.nodes.forEach(t=>{Ur.dispatch(j4(P3(t)))})})},H3=()=>{b3().then(e=>{let t=B3(e);Ur.dispatch(M4({nodeId:di(),version:t}))})},G3=()=>{w3().then(e=>{let t=L3(e);Ur.dispatch(N4({nodeId:di(),flags:t}))})},V3=()=>{x3().then(e=>{Ur.dispatch(L4({nodeId:di(),args:e}))})},K3=()=>{R3().then(e=>{Ur.dispatch(D4({nodeId:di(),syncStages:U3(e)}))})},PR=()=>{C3().then(e=>{let t=[];e.forEach(r=>{if(r.name.endsWith(".log")){const o=`${OR()}/${r.name}`;t.push({name:r.name,size:r.size,url:o,selected:!1})}}),Ur.dispatch($4({nodeId:di(),logFiles:t}))})},Y3=()=>{T3().then(e=>{let t=[];e.forEach(r=>{t.push({path:r,tables:[]})}),Ur.dispatch(W4({nodeId:di(),dbs:t}))})},Q3=e=>{E3(e).then(t=>{let r=[];t.forEach(n=>{r.push({name:n.name,count:n.count,size:n.size})}),Ur.dispatch(B4({nodeId:di(),path:e,tables:r}))})};var IR={exports:{}},yh={exports:{}},DS;function X3(){return DS||(DS=1,function(e,t){(function(r,n){e.exports=n()})(Uo,function(){var r=Array.prototype.slice;function n(l,d){d&&(l.prototype=Object.create(d.prototype)),l.prototype.constructor=l}function o(l){return u(l)?l:te(l)}n(i,o);function i(l){return c(l)?l:re(l)}n(a,o);function a(l){return f(l)?l:K(l)}n(s,o);function s(l){return u(l)&&!h(l)?l:X(l)}function u(l){return!!(l&&l[S])}function c(l){return!!(l&&l[_])}function f(l){return!!(l&&l[y])}function h(l){return c(l)||f(l)}function p(l){return!!(l&&l[C])}o.isIterable=u,o.isKeyed=c,o.isIndexed=f,o.isAssociative=h,o.isOrdered=p,o.Keyed=i,o.Indexed=a,o.Set=s;var S="@@__IMMUTABLE_ITERABLE__@@",_="@@__IMMUTABLE_KEYED__@@",y="@@__IMMUTABLE_INDEXED__@@",C="@@__IMMUTABLE_ORDERED__@@",v="delete",g=5,b=1<>>0;if(""+m!==d||m===4294967295)return NaN;d=m}return d<0?F(l)+d:d}function G(){return!0}function ue(l,d,m){return(l===0||m!==void 0&&l<=-m)&&(d===void 0||m!==void 0&&d>=m)}function se(l,d){return Z(l,d,0)}function ge(l,d){return Z(l,d,d)}function Z(l,d,m){return l===void 0?m:l<0?Math.max(0,d+l):d===void 0?l:Math.min(d,l)}var ie=0,fe=1,Se=2,Ee=typeof Symbol=="function"&&Symbol.iterator,xt="@@iterator",tt=Ee||xt;function ye(l){this.next=l}ye.prototype.toString=function(){return"[Iterator]"},ye.KEYS=ie,ye.VALUES=fe,ye.ENTRIES=Se,ye.prototype.inspect=ye.prototype.toSource=function(){return this.toString()},ye.prototype[tt]=function(){return this};function q(l,d,m,x){var R=l===0?d:l===1?m:[d,m];return x?x.value=R:x={value:R,done:!1},x}function V(){return{value:void 0,done:!0}}function U(l){return!!de(l)}function J(l){return l&&typeof l.next=="function"}function B(l){var d=de(l);return d&&d.call(l)}function de(l){var d=l&&(Ee&&l[Ee]||l[xt]);if(typeof d=="function")return d}function ne(l){return l&&typeof l.length=="number"}n(te,o);function te(l){return l==null?Ue():u(l)?l.toSeq():Or(l)}te.of=function(){return te(arguments)},te.prototype.toSeq=function(){return this},te.prototype.toString=function(){return this.__toString("Seq {","}")},te.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},te.prototype.__iterate=function(l,d){return mi(this,l,d,!0)},te.prototype.__iterator=function(l,d){return ks(this,l,d,!0)},n(re,te);function re(l){return l==null?Ue().toKeyedSeq():u(l)?c(l)?l.toSeq():l.fromEntrySeq():sr(l)}re.prototype.toKeyedSeq=function(){return this},n(K,te);function K(l){return l==null?Ue():u(l)?c(l)?l.entrySeq():l.toIndexedSeq():Er(l)}K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(l,d){return mi(this,l,d,!1)},K.prototype.__iterator=function(l,d){return ks(this,l,d,!1)},n(X,te);function X(l){return(l==null?Ue():u(l)?c(l)?l.entrySeq():l:Er(l)).toSetSeq()}X.of=function(){return X(arguments)},X.prototype.toSetSeq=function(){return this},te.isSeq=Te,te.Keyed=re,te.Set=X,te.Indexed=K;var ae="@@__IMMUTABLE_SEQ__@@";te.prototype[ae]=!0,n(pe,K);function pe(l){this._array=l,this.size=l.length}pe.prototype.get=function(l,d){return this.has(l)?this._array[H(this,l)]:d},pe.prototype.__iterate=function(l,d){for(var m=this._array,x=m.length-1,R=0;R<=x;R++)if(l(m[d?x-R:R],R,this)===!1)return R+1;return R},pe.prototype.__iterator=function(l,d){var m=this._array,x=m.length-1,R=0;return new ye(function(){return R>x?V():q(l,R,m[d?x-R++:R++])})},n(me,re);function me(l){var d=Object.keys(l);this._object=l,this._keys=d,this.size=d.length}me.prototype.get=function(l,d){return d!==void 0&&!this.has(l)?d:this._object[l]},me.prototype.has=function(l){return this._object.hasOwnProperty(l)},me.prototype.__iterate=function(l,d){for(var m=this._object,x=this._keys,R=x.length-1,j=0;j<=R;j++){var A=x[d?R-j:j];if(l(m[A],A,this)===!1)return j+1}return j},me.prototype.__iterator=function(l,d){var m=this._object,x=this._keys,R=x.length-1,j=0;return new ye(function(){var A=x[d?R-j:j];return j++>R?V():q(l,A,m[A])})},me.prototype[C]=!0,n(ve,K);function ve(l){this._iterable=l,this.size=l.length||l.size}ve.prototype.__iterateUncached=function(l,d){if(d)return this.cacheResult().__iterate(l,d);var m=this._iterable,x=B(m),R=0;if(J(x))for(var j;!(j=x.next()).done&&l(j.value,R++,this)!==!1;);return R},ve.prototype.__iteratorUncached=function(l,d){if(d)return this.cacheResult().__iterator(l,d);var m=this._iterable,x=B(m);if(!J(x))return new ye(V);var R=0;return new ye(function(){var j=x.next();return j.done?j:q(l,R++,j.value)})},n(be,K);function be(l){this._iterator=l,this._iteratorCache=[]}be.prototype.__iterateUncached=function(l,d){if(d)return this.cacheResult().__iterate(l,d);for(var m=this._iterator,x=this._iteratorCache,R=0;R=x.length){var j=m.next();if(j.done)return j;x[R]=j.value}return q(l,R,x[R++])})};function Te(l){return!!(l&&l[ae])}var Me;function Ue(){return Me||(Me=new pe([]))}function sr(l){var d=Array.isArray(l)?new pe(l).fromEntrySeq():J(l)?new be(l).fromEntrySeq():U(l)?new ve(l).fromEntrySeq():typeof l=="object"?new me(l):void 0;if(!d)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+l);return d}function Er(l){var d=Jt(l);if(!d)throw new TypeError("Expected Array or iterable object of values: "+l);return d}function Or(l){var d=Jt(l)||typeof l=="object"&&new me(l);if(!d)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+l);return d}function Jt(l){return ne(l)?new pe(l):J(l)?new be(l):U(l)?new ve(l):void 0}function mi(l,d,m,x){var R=l._cache;if(R){for(var j=R.length-1,A=0;A<=j;A++){var L=R[m?j-A:A];if(d(L[1],x?L[0]:A,l)===!1)return A+1}return A}return l.__iterateUncached(d,m)}function ks(l,d,m,x){var R=l._cache;if(R){var j=R.length-1,A=0;return new ye(function(){var L=R[m?j-A:A];return A++>j?V():q(d,x?L[0]:A-1,L[1])})}return l.__iteratorUncached(d,m)}function Wa(l,d){return d?vi(d,l,"",{"":l}):Zf(l)}function vi(l,d,m,x){return Array.isArray(d)?l.call(x,m,K(d).map(function(R,j){return vi(l,R,j,d)})):ry(d)?l.call(x,m,re(d).map(function(R,j){return vi(l,R,j,d)})):d}function Zf(l){return Array.isArray(l)?K(l).map(Zf).toList():ry(l)?re(l).map(Zf).toMap():l}function ry(l){return l&&(l.constructor===Object||l.constructor===void 0)}function ct(l,d){if(l===d||l!==l&&d!==d)return!0;if(!l||!d)return!1;if(typeof l.valueOf=="function"&&typeof d.valueOf=="function"){if(l=l.valueOf(),d=d.valueOf(),l===d||l!==l&&d!==d)return!0;if(!l||!d)return!1}return!!(typeof l.equals=="function"&&typeof d.equals=="function"&&l.equals(d))}function ed(l,d){if(l===d)return!0;if(!u(d)||l.size!==void 0&&d.size!==void 0&&l.size!==d.size||l.__hash!==void 0&&d.__hash!==void 0&&l.__hash!==d.__hash||c(l)!==c(d)||f(l)!==f(d)||p(l)!==p(d))return!1;if(l.size===0&&d.size===0)return!0;var m=!h(l);if(p(l)){var x=l.entries();return d.every(function(D,W){var Q=x.next().value;return Q&&ct(Q[1],D)&&(m||ct(Q[0],W))})&&x.next().done}var R=!1;if(l.size===void 0)if(d.size===void 0)typeof l.cacheResult=="function"&&l.cacheResult();else{R=!0;var j=l;l=d,d=j}var A=!0,L=d.__iterate(function(D,W){if(m?!l.has(D):R?!ct(D,l.get(W,k)):!ct(l.get(W,k),D))return A=!1,!1});return A&&l.size===L}n(jt,K);function jt(l,d){if(!(this instanceof jt))return new jt(l,d);if(this._value=l,this.size=d===void 0?1/0:Math.max(0,d),this.size===0){if(td)return td;td=this}}jt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},jt.prototype.get=function(l,d){return this.has(l)?this._value:d},jt.prototype.includes=function(l){return ct(this._value,l)},jt.prototype.slice=function(l,d){var m=this.size;return ue(l,d,m)?this:new jt(this._value,ge(d,m)-se(l,m))},jt.prototype.reverse=function(){return this},jt.prototype.indexOf=function(l){return ct(this._value,l)?0:-1},jt.prototype.lastIndexOf=function(l){return ct(this._value,l)?this.size:-1},jt.prototype.__iterate=function(l,d){for(var m=0;m=0&&d=0&&mm?V():q(l,j++,A)})},Ct.prototype.equals=function(l){return l instanceof Ct?this._start===l._start&&this._end===l._end&&this._step===l._step:ed(this,l)};var rd;n(Qn,o);function Qn(){throw TypeError("Abstract")}n(Ba,Qn);function Ba(){}n(gi,Qn);function gi(){}n(Is,Qn);function Is(){}Qn.Keyed=Ba,Qn.Indexed=gi,Qn.Set=Is;var Ua=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(d,m){d=d|0,m=m|0;var x=d&65535,R=m&65535;return x*R+((d>>>16)*R+x*(m>>>16)<<16>>>0)|0};function nd(l){return l>>>1&1073741824|l&3221225471}function ur(l){if(l===!1||l===null||l===void 0||typeof l.valueOf=="function"&&(l=l.valueOf(),l===!1||l===null||l===void 0))return 0;if(l===!0)return 1;var d=typeof l;if(d==="number"){if(l!==l||l===1/0)return 0;var m=l|0;for(m!==l&&(m^=l*4294967295);l>4294967295;)l/=4294967295,m^=l;return nd(m)}if(d==="string")return l.length>nE?eE(l):od(l);if(typeof l.hashCode=="function")return l.hashCode();if(d==="object")return tE(l);if(typeof l.toString=="function")return od(l.toString());throw new Error("Value type "+d+" cannot be hashed.")}function eE(l){var d=ud[l];return d===void 0&&(d=od(l),sd===oE&&(sd=0,ud={}),sd++,ud[l]=d),d}function od(l){for(var d=0,m=0;m0)switch(l.nodeType){case 1:return l.uniqueID;case 9:return l.documentElement&&l.documentElement.uniqueID}}var id=typeof WeakMap=="function",ad;id&&(ad=new WeakMap);var ld=0,Mo="__immutablehash__";typeof Symbol=="function"&&(Mo=Symbol(Mo));var nE=16,oE=255,sd=0,ud={};function cr(l){Ps(l!==1/0,"Cannot perform this action with an infinite size.")}n(Oe,Ba);function Oe(l){return l==null?qr():cd(l)&&!p(l)?l:qr().withMutations(function(d){var m=i(l);cr(m.size),m.forEach(function(x,R){return d.set(R,x)})})}Oe.of=function(){var l=r.call(arguments,0);return qr().withMutations(function(d){for(var m=0;m=l.length)throw new Error("Missing value for key: "+l[m]);d.set(l[m],l[m+1])}})},Oe.prototype.toString=function(){return this.__toString("Map {","}")},Oe.prototype.get=function(l,d){return this._root?this._root.get(0,void 0,l,d):d},Oe.prototype.set=function(l,d){return sy(this,l,d)},Oe.prototype.setIn=function(l,d){return this.updateIn(l,k,function(){return d})},Oe.prototype.remove=function(l){return sy(this,l,k)},Oe.prototype.deleteIn=function(l){return this.updateIn(l,function(){return k})},Oe.prototype.update=function(l,d,m){return arguments.length===1?l(this):this.updateIn([l],d,m)},Oe.prototype.updateIn=function(l,d,m){m||(m=d,d=void 0);var x=hy(this,Ay(l),d,m);return x===k?void 0:x},Oe.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):qr()},Oe.prototype.merge=function(){return zs(this,void 0,arguments)},Oe.prototype.mergeWith=function(l){var d=r.call(arguments,1);return zs(this,l,d)},Oe.prototype.mergeIn=function(l){var d=r.call(arguments,1);return this.updateIn(l,qr(),function(m){return typeof m.merge=="function"?m.merge.apply(m,d):d[d.length-1]})},Oe.prototype.mergeDeep=function(){return zs(this,cy,arguments)},Oe.prototype.mergeDeepWith=function(l){var d=r.call(arguments,1);return zs(this,fy(l),d)},Oe.prototype.mergeDeepIn=function(l){var d=r.call(arguments,1);return this.updateIn(l,qr(),function(m){return typeof m.mergeDeep=="function"?m.mergeDeep.apply(m,d):d[d.length-1]})},Oe.prototype.sort=function(l){return at(Ci(this,l))},Oe.prototype.sortBy=function(l,d){return at(Ci(this,d,l))},Oe.prototype.withMutations=function(l){var d=this.asMutable();return l(d),d.wasAltered()?d.__ensureOwner(this.__ownerID):this},Oe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new z)},Oe.prototype.asImmutable=function(){return this.__ensureOwner()},Oe.prototype.wasAltered=function(){return this.__altered},Oe.prototype.__iterator=function(l,d){return new fd(this,l,d)},Oe.prototype.__iterate=function(l,d){var m=this,x=0;return this._root&&this._root.iterate(function(R){return x++,l(R[1],R[0],m)},d),x},Oe.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?hd(this.size,this._root,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)};function cd(l){return!!(l&&l[iy])}Oe.isMap=cd;var iy="@@__IMMUTABLE_MAP__@@",Ce=Oe.prototype;Ce[iy]=!0,Ce[v]=Ce.remove,Ce.removeIn=Ce.deleteIn;function qa(l,d){this.ownerID=l,this.entries=d}qa.prototype.get=function(l,d,m,x){for(var R=this.entries,j=0,A=R.length;j=cE)return iE(l,D,x,R);var he=l&&l===this.ownerID,we=he?D:M(D);return le?L?W===Q-1?we.pop():we[W]=we.pop():we[W]=[x,R]:we.push([x,R]),he?(this.entries=we,this):new qa(l,we)}};function yi(l,d,m){this.ownerID=l,this.bitmap=d,this.nodes=m}yi.prototype.get=function(l,d,m,x){d===void 0&&(d=ur(m));var R=1<<((l===0?d:d>>>l)&T),j=this.bitmap;return j&R?this.nodes[py(j&R-1)].get(l+g,d,m,x):x},yi.prototype.update=function(l,d,m,x,R,j,A){m===void 0&&(m=ur(x));var L=(d===0?m:m>>>d)&T,D=1<=fE)return lE(l,he,W,L,xe);if(Q&&!xe&&he.length===2&&uy(he[le^1]))return he[le^1];if(Q&&xe&&he.length===1&&uy(xe))return xe;var Ke=l&&l===this.ownerID,Hr=Q?xe?W:W^D:W|D,sn=Q?xe?my(he,le,xe,Ke):uE(he,le,Ke):sE(he,le,xe,Ke);return Ke?(this.bitmap=Hr,this.nodes=sn,this):new yi(l,Hr,sn)};function Ha(l,d,m){this.ownerID=l,this.count=d,this.nodes=m}Ha.prototype.get=function(l,d,m,x){d===void 0&&(d=ur(m));var R=(l===0?d:d>>>l)&T,j=this.nodes[R];return j?j.get(l+g,d,m,x):x},Ha.prototype.update=function(l,d,m,x,R,j,A){m===void 0&&(m=ur(x));var L=(d===0?m:m>>>d)&T,D=R===k,W=this.nodes,Q=W[L];if(D&&!Q)return this;var le=pd(Q,l,d+g,m,x,R,j,A);if(le===Q)return this;var he=this.count;if(!Q)he++;else if(!le&&(he--,he>>m)&T,A=(m===0?x:x>>>m)&T,L,D=j===A?[md(l,d,m+g,x,R)]:(L=new On(d,x,R),j>>=1)A[L]=m&1?d[j++]:void 0;return A[x]=R,new Ha(l,j+1,A)}function zs(l,d,m){for(var x=[],R=0;R>1&1431655765),l=(l&858993459)+(l>>2&858993459),l=l+(l>>4)&252645135,l=l+(l>>8),l=l+(l>>16),l&127}function my(l,d,m,x){var R=x?l:M(l);return R[d]=m,R}function sE(l,d,m,x){var R=l.length+1;if(x&&d+1===R)return l[d]=m,l;for(var j=new Array(R),A=0,L=0;L0&&x=0&&l>>d&T;if(x>=this.array.length)return new Xn([],l);var R=x===0,j;if(d>0){var A=this.array[x];if(j=A&&A.removeBefore(l,d-g,m),j===A&&R)return this}if(R&&!j)return this;var L=Si(this,l);if(!R)for(var D=0;D>>d&T;if(x>=this.array.length)return this;var R;if(d>0){var j=this.array[x];if(R=j&&j.removeAfter(l,d-g,m),R===j&&x===this.array.length-1)return this}var A=Si(this,l);return A.array.splice(x+1),R&&(A.array[x]=R),A};var Ga={};function yy(l,d){var m=l._origin,x=l._capacity,R=Ka(x),j=l._tail;return A(l._root,l._level,0);function A(W,Q,le){return Q===0?L(W,le):D(W,Q,le)}function L(W,Q){var le=Q===R?j&&j.array:W&&W.array,he=Q>m?0:m-Q,we=x-Q;return we>b&&(we=b),function(){if(he===we)return Ga;var xe=d?--we:he++;return le&&le[xe]}}function D(W,Q,le){var he,we=W&&W.array,xe=le>m?0:m-le>>Q,Ke=(x-le>>Q)+1;return Ke>b&&(Ke=b),function(){do{if(he){var Hr=he();if(Hr!==Ga)return Hr;he=null}if(xe===Ke)return Ga;var sn=d?--Ke:xe++;he=A(we&&we[sn],Q-g,le+(sn<=l.size||d<0)return l.withMutations(function(A){d<0?Jn(A,d).set(0,m):Jn(A,0,d+1).set(d,m)});d+=l._origin;var x=l._tail,R=l._root,j=E(w);return d>=Ka(l._capacity)?x=gd(x,l.__ownerID,0,d,m,j):R=gd(R,l.__ownerID,l._level,d,m,j),j.value?l.__ownerID?(l._root=R,l._tail=x,l.__hash=void 0,l.__altered=!0,l):Va(l._origin,l._capacity,l._level,R,x):l}function gd(l,d,m,x,R,j){var A=x>>>m&T,L=l&&A0){var W=l&&l.array[A],Q=gd(W,d,m-g,x,R,j);return Q===W?l:(D=Si(l,d),D.array[A]=Q,D)}return L&&l.array[A]===R?l:(I(j),D=Si(l,d),R===void 0&&A===D.array.length-1?D.array.pop():D.array[A]=R,D)}function Si(l,d){return d&&l&&d===l.ownerID?l:new Xn(l?l.array.slice():[],d)}function Sy(l,d){if(d>=Ka(l._capacity))return l._tail;if(d<1<0;)m=m.array[d>>>x&T],x-=g;return m}}function Jn(l,d,m){d!==void 0&&(d=d|0),m!==void 0&&(m=m|0);var x=l.__ownerID||new z,R=l._origin,j=l._capacity,A=R+d,L=m===void 0?j:m<0?j+m:R+m;if(A===R&&L===j)return l;if(A>=L)return l.clear();for(var D=l._level,W=l._root,Q=0;A+Q<0;)W=new Xn(W&&W.array.length?[void 0,W]:[],x),D+=g,Q+=1<=1<le?new Xn([],x):we;if(we&&he>le&&Ag;Hr-=g){var sn=le>>>Hr&T;Ke=Ke.array[sn]=Si(Ke.array[sn],x)}Ke.array[le>>>g&T]=we}if(L=he)A-=he,L-=he,D=g,W=null,xe=xe&&xe.removeBefore(x,0,A);else if(A>R||he>>D&T;if(Fs!==he>>>D&T)break;Fs&&(Q+=(1<R&&(W=W.removeBefore(x,D,A-Q)),W&&heR&&(R=L.size),u(A)||(L=L.map(function(D){return Wa(D)})),x.push(L)}return R>l.size&&(l=l.setSize(R)),dy(l,d,x)}function Ka(l){return l>>g<=b&&R.size>=x.size*2?(D=R.filter(function(W,Q){return W!==void 0&&j!==Q}),L=D.toKeyedSeq().map(function(W){return W[0]}).flip().toMap(),l.__ownerID&&(L.__ownerID=D.__ownerID=l.__ownerID)):(L=x.remove(d),D=j===R.size-1?R.pop():R.set(j,void 0))}else if(A){if(m===R.get(j)[1])return l;L=x,D=R.set(j,[d,m])}else L=x.set(d,R.size),D=R.set(R.size,[d,m]);return l.__ownerID?(l.size=L.size,l._map=L,l._list=D,l.__hash=void 0,l):yd(L,D)}n(kr,re);function kr(l,d){this._iter=l,this._useKeys=d,this.size=l.size}kr.prototype.get=function(l,d){return this._iter.get(l,d)},kr.prototype.has=function(l){return this._iter.has(l)},kr.prototype.valueSeq=function(){return this._iter.valueSeq()},kr.prototype.reverse=function(){var l=this,d=_d(this,!0);return this._useKeys||(d.valueSeq=function(){return l._iter.toSeq().reverse()}),d},kr.prototype.map=function(l,d){var m=this,x=Ry(this,l,d);return this._useKeys||(x.valueSeq=function(){return m._iter.toSeq().map(l,d)}),x},kr.prototype.__iterate=function(l,d){var m=this,x;return this._iter.__iterate(this._useKeys?function(R,j){return l(R,j,m)}:(x=d?Iy(this):0,function(R){return l(R,d?--x:x++,m)}),d)},kr.prototype.__iterator=function(l,d){if(this._useKeys)return this._iter.__iterator(l,d);var m=this._iter.__iterator(fe,d),x=d?Iy(this):0;return new ye(function(){var R=m.next();return R.done?R:q(l,d?--x:x++,R.value,R)})},kr.prototype[C]=!0,n(bi,K);function bi(l){this._iter=l,this.size=l.size}bi.prototype.includes=function(l){return this._iter.includes(l)},bi.prototype.__iterate=function(l,d){var m=this,x=0;return this._iter.__iterate(function(R){return l(R,x++,m)},d)},bi.prototype.__iterator=function(l,d){var m=this._iter.__iterator(fe,d),x=0;return new ye(function(){var R=m.next();return R.done?R:q(l,x++,R.value,R)})},n(wi,X);function wi(l){this._iter=l,this.size=l.size}wi.prototype.has=function(l){return this._iter.includes(l)},wi.prototype.__iterate=function(l,d){var m=this;return this._iter.__iterate(function(x){return l(x,x,m)},d)},wi.prototype.__iterator=function(l,d){var m=this._iter.__iterator(fe,d);return new ye(function(){var x=m.next();return x.done?x:q(l,x.value,x.value,x)})},n(xi,re);function xi(l){this._iter=l,this.size=l.size}xi.prototype.entrySeq=function(){return this._iter.toSeq()},xi.prototype.__iterate=function(l,d){var m=this;return this._iter.__iterate(function(x){if(x){Py(x);var R=u(x);return l(R?x.get(1):x[1],R?x.get(0):x[0],m)}},d)},xi.prototype.__iterator=function(l,d){var m=this._iter.__iterator(fe,d);return new ye(function(){for(;;){var x=m.next();if(x.done)return x;var R=x.value;if(R){Py(R);var j=u(R);return q(l,j?R.get(0):R[0],j?R.get(1):R[1],x)}}})},bi.prototype.cacheResult=kr.prototype.cacheResult=wi.prototype.cacheResult=xi.prototype.cacheResult=wd;function Cy(l){var d=on(l);return d._iter=l,d.size=l.size,d.flip=function(){return l},d.reverse=function(){var m=l.reverse.apply(this);return m.flip=function(){return l.reverse()},m},d.has=function(m){return l.includes(m)},d.includes=function(m){return l.has(m)},d.cacheResult=wd,d.__iterateUncached=function(m,x){var R=this;return l.__iterate(function(j,A){return m(A,j,R)!==!1},x)},d.__iteratorUncached=function(m,x){if(m===Se){var R=l.__iterator(m,x);return new ye(function(){var j=R.next();if(!j.done){var A=j.value[0];j.value[0]=j.value[1],j.value[1]=A}return j})}return l.__iterator(m===fe?ie:fe,x)},d}function Ry(l,d,m){var x=on(l);return x.size=l.size,x.has=function(R){return l.has(R)},x.get=function(R,j){var A=l.get(R,k);return A===k?j:d.call(m,A,R,l)},x.__iterateUncached=function(R,j){var A=this;return l.__iterate(function(L,D,W){return R(d.call(m,L,D,W),D,A)!==!1},j)},x.__iteratorUncached=function(R,j){var A=l.__iterator(Se,j);return new ye(function(){var L=A.next();if(L.done)return L;var D=L.value,W=D[0];return q(R,W,d.call(m,D[1],W,l),L)})},x}function _d(l,d){var m=on(l);return m._iter=l,m.size=l.size,m.reverse=function(){return l},l.flip&&(m.flip=function(){var x=Cy(l);return x.reverse=function(){return l.flip()},x}),m.get=function(x,R){return l.get(d?x:-1-x,R)},m.has=function(x){return l.has(d?x:-1-x)},m.includes=function(x){return l.includes(x)},m.cacheResult=wd,m.__iterate=function(x,R){var j=this;return l.__iterate(function(A,L){return x(A,L,j)},!R)},m.__iterator=function(x,R){return l.__iterator(x,!R)},m}function Ty(l,d,m,x){var R=on(l);return x&&(R.has=function(j){var A=l.get(j,k);return A!==k&&!!d.call(m,A,j,l)},R.get=function(j,A){var L=l.get(j,k);return L!==k&&d.call(m,L,j,l)?L:A}),R.__iterateUncached=function(j,A){var L=this,D=0;return l.__iterate(function(W,Q,le){if(d.call(m,W,Q,le))return D++,j(W,x?Q:D-1,L)},A),D},R.__iteratorUncached=function(j,A){var L=l.__iterator(Se,A),D=0;return new ye(function(){for(;;){var W=L.next();if(W.done)return W;var Q=W.value,le=Q[0],he=Q[1];if(d.call(m,he,le,l))return q(j,x?le:D++,he,W)}})},R}function pE(l,d,m){var x=Oe().asMutable();return l.__iterate(function(R,j){x.update(d.call(m,R,j,l),0,function(A){return A+1})}),x.asImmutable()}function mE(l,d,m){var x=c(l),R=(p(l)?at():Oe()).asMutable();l.__iterate(function(A,L){R.update(d.call(m,A,L,l),function(D){return D=D||[],D.push(x?[L,A]:A),D})});var j=zy(l);return R.map(function(A){return We(l,j(A))})}function Sd(l,d,m,x){var R=l.size;if(d!==void 0&&(d=d|0),m!==void 0&&(m===1/0?m=R:m=m|0),ue(d,m,R))return l;var j=se(d,R),A=ge(m,R);if(j!==j||A!==A)return Sd(l.toSeq().cacheResult(),d,m,x);var L=A-j,D;L===L&&(D=L<0?0:L);var W=on(l);return W.size=D===0?D:l.size&&D||void 0,!x&&Te(l)&&D>=0&&(W.get=function(Q,le){return Q=H(this,Q),Q>=0&&QD)return V();var Ke=he.next();return x||Q===fe?Ke:Q===ie?q(Q,xe-1,void 0,Ke):q(Q,xe-1,Ke.value[1],Ke)})},W}function vE(l,d,m){var x=on(l);return x.__iterateUncached=function(R,j){var A=this;if(j)return this.cacheResult().__iterate(R,j);var L=0;return l.__iterate(function(D,W,Q){return d.call(m,D,W,Q)&&++L&&R(D,W,A)}),L},x.__iteratorUncached=function(R,j){var A=this;if(j)return this.cacheResult().__iterator(R,j);var L=l.__iterator(Se,j),D=!0;return new ye(function(){if(!D)return V();var W=L.next();if(W.done)return W;var Q=W.value,le=Q[0],he=Q[1];return d.call(m,he,le,A)?R===Se?W:q(R,le,he,W):(D=!1,V())})},x}function Ey(l,d,m,x){var R=on(l);return R.__iterateUncached=function(j,A){var L=this;if(A)return this.cacheResult().__iterate(j,A);var D=!0,W=0;return l.__iterate(function(Q,le,he){if(!(D&&(D=d.call(m,Q,le,he))))return W++,j(Q,x?le:W-1,L)}),W},R.__iteratorUncached=function(j,A){var L=this;if(A)return this.cacheResult().__iterator(j,A);var D=l.__iterator(Se,A),W=!0,Q=0;return new ye(function(){var le,he,we;do{if(le=D.next(),le.done)return x||j===fe?le:j===ie?q(j,Q++,void 0,le):q(j,Q++,le.value[1],le);var xe=le.value;he=xe[0],we=xe[1],W&&(W=d.call(m,we,he,L))}while(W);return j===Se?le:q(j,he,we,le)})},R}function gE(l,d){var m=c(l),x=[l].concat(d).map(function(A){return u(A)?m&&(A=i(A)):A=m?sr(A):Er(Array.isArray(A)?A:[A]),A}).filter(function(A){return A.size!==0});if(x.length===0)return l;if(x.length===1){var R=x[0];if(R===l||m&&c(R)||f(l)&&f(R))return R}var j=new pe(x);return m?j=j.toKeyedSeq():f(l)||(j=j.toSetSeq()),j=j.flatten(!0),j.size=x.reduce(function(A,L){if(A!==void 0){var D=L.size;if(D!==void 0)return A+D}},0),j}function Oy(l,d,m){var x=on(l);return x.__iterateUncached=function(R,j){var A=0,L=!1;function D(W,Q){var le=this;W.__iterate(function(he,we){return(!d||Q0}function bd(l,d,m){var x=on(l);return x.size=new pe(m).map(function(R){return R.size}).min(),x.__iterate=function(R,j){for(var A=this.__iterator(fe,j),L,D=0;!(L=A.next()).done&&R(L.value,D++,this)!==!1;);return D},x.__iteratorUncached=function(R,j){var A=m.map(function(W){return W=o(W),B(j?W.reverse():W)}),L=0,D=!1;return new ye(function(){var W;return D||(W=A.map(function(Q){return Q.next()}),D=W.some(function(Q){return Q.done})),D?V():q(R,L++,d.apply(null,W.map(function(Q){return Q.value})))})},x}function We(l,d){return Te(l)?d:l.constructor(d)}function Py(l){if(l!==Object(l))throw new TypeError("Expected [K, V] tuple: "+l)}function Iy(l){return cr(l.size),F(l)}function zy(l){return c(l)?i:f(l)?a:s}function on(l){return Object.create((c(l)?re:f(l)?K:X).prototype)}function wd(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):te.prototype.cacheResult.call(this)}function jy(l,d){return l>d?1:l=0;m--)d={value:arguments[m],next:d};return this.__ownerID?(this.size=l,this._head=d,this.__hash=void 0,this.__altered=!0,this):Ya(l,d)},ft.prototype.pushAll=function(l){if(l=a(l),l.size===0)return this;cr(l.size);var d=this.size,m=this._head;return l.reverse().forEach(function(x){d++,m={value:x,next:m}}),this.__ownerID?(this.size=d,this._head=m,this.__hash=void 0,this.__altered=!0,this):Ya(d,m)},ft.prototype.pop=function(){return this.slice(1)},ft.prototype.unshift=function(){return this.push.apply(this,arguments)},ft.prototype.unshiftAll=function(l){return this.pushAll(l)},ft.prototype.shift=function(){return this.pop.apply(this,arguments)},ft.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Ed()},ft.prototype.slice=function(l,d){if(ue(l,d,this.size))return this;var m=se(l,this.size),x=ge(d,this.size);if(x!==this.size)return gi.prototype.slice.call(this,l,d);for(var R=this.size-m,j=this._head;m--;)j=j.next;return this.__ownerID?(this.size=R,this._head=j,this.__hash=void 0,this.__altered=!0,this):Ya(R,j)},ft.prototype.__ensureOwner=function(l){return l===this.__ownerID?this:l?Ya(this.size,this._head,l,this.__hash):(this.__ownerID=l,this.__altered=!1,this)},ft.prototype.__iterate=function(l,d){if(d)return this.reverse().__iterate(l);for(var m=0,x=this._head;x&&l(x.value,m++,this)!==!1;)x=x.next;return m},ft.prototype.__iterator=function(l,d){if(d)return this.reverse().__iterator(l);var m=0,x=this._head;return new ye(function(){if(x){var R=x.value;return x=x.next,q(l,m++,R)}return V()})};function By(l){return!!(l&&l[Uy])}ft.isStack=By;var Uy="@@__IMMUTABLE_STACK__@@",Ri=ft.prototype;Ri[Uy]=!0,Ri.withMutations=Ce.withMutations,Ri.asMutable=Ce.asMutable,Ri.asImmutable=Ce.asImmutable,Ri.wasAltered=Ce.wasAltered;function Ya(l,d,m,x){var R=Object.create(Ri);return R.size=l,R._head=d,R.__ownerID=m,R.__hash=x,R.__altered=!1,R}var qy;function Ed(){return qy||(qy=Ya(0))}function ln(l,d){var m=function(x){l.prototype[x]=d[x]};return Object.keys(d).forEach(m),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(d).forEach(m),l}o.Iterator=ye,ln(o,{toArray:function(){cr(this.size);var l=new Array(this.size||0);return this.valueSeq().__iterate(function(d,m){l[m]=d}),l},toIndexedSeq:function(){return new bi(this)},toJS:function(){return this.toSeq().map(function(l){return l&&typeof l.toJS=="function"?l.toJS():l}).__toJS()},toJSON:function(){return this.toSeq().map(function(l){return l&&typeof l.toJSON=="function"?l.toJSON():l}).__toJS()},toKeyedSeq:function(){return new kr(this,!0)},toMap:function(){return Oe(this.toKeyedSeq())},toObject:function(){cr(this.size);var l={};return this.__iterate(function(d,m){l[m]=d}),l},toOrderedMap:function(){return at(this.toKeyedSeq())},toOrderedSet:function(){return an(c(this)?this.valueSeq():this)},toSet:function(){return Ve(c(this)?this.valueSeq():this)},toSetSeq:function(){return new wi(this)},toSeq:function(){return f(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return ft(c(this)?this.valueSeq():this)},toList:function(){return qe(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(l,d){return this.size===0?l+d:l+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+d},concat:function(){var l=r.call(arguments,0);return We(this,gE(this,l))},includes:function(l){return this.some(function(d){return ct(d,l)})},entries:function(){return this.__iterator(Se)},every:function(l,d){cr(this.size);var m=!0;return this.__iterate(function(x,R,j){if(!l.call(d,x,R,j))return m=!1,!1}),m},filter:function(l,d){return We(this,Ty(this,l,d,!0))},find:function(l,d,m){var x=this.findEntry(l,d);return x?x[1]:m},forEach:function(l,d){return cr(this.size),this.__iterate(d?l.bind(d):l)},join:function(l){cr(this.size),l=l!==void 0?""+l:",";var d="",m=!0;return this.__iterate(function(x){m?m=!1:d+=l,d+=x!=null?x.toString():""}),d},keys:function(){return this.__iterator(ie)},map:function(l,d){return We(this,Ry(this,l,d))},reduce:function(l,d,m){cr(this.size);var x,R;return arguments.length<2?R=!0:x=d,this.__iterate(function(j,A,L){R?(R=!1,x=j):x=l.call(m,x,j,A,L)}),x},reduceRight:function(l,d,m){var x=this.toKeyedSeq().reverse();return x.reduce.apply(x,arguments)},reverse:function(){return We(this,_d(this,!0))},slice:function(l,d){return We(this,Sd(this,l,d,!0))},some:function(l,d){return!this.every(Ds(l),d)},sort:function(l){return We(this,Ci(this,l))},values:function(){return this.__iterator(fe)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(l,d){return F(l?this.toSeq().filter(l,d):this)},countBy:function(l,d){return pE(this,l,d)},equals:function(l){return ed(this,l)},entrySeq:function(){var l=this;if(l._cache)return new pe(l._cache);var d=l.toSeq().map(xE).toIndexedSeq();return d.fromEntrySeq=function(){return l.toSeq()},d},filterNot:function(l,d){return this.filter(Ds(l),d)},findEntry:function(l,d,m){var x=m;return this.__iterate(function(R,j,A){if(l.call(d,R,j,A))return x=[j,R],!1}),x},findKey:function(l,d){var m=this.findEntry(l,d);return m&&m[0]},findLast:function(l,d,m){return this.toKeyedSeq().reverse().find(l,d,m)},findLastEntry:function(l,d,m){return this.toKeyedSeq().reverse().findEntry(l,d,m)},findLastKey:function(l,d){return this.toKeyedSeq().reverse().findKey(l,d)},first:function(){return this.find(G)},flatMap:function(l,d){return We(this,yE(this,l,d))},flatten:function(l){return We(this,Oy(this,l,!0))},fromEntrySeq:function(){return new xi(this)},get:function(l,d){return this.find(function(m,x){return ct(x,l)},void 0,d)},getIn:function(l,d){for(var m=this,x=Ay(l),R;!(R=x.next()).done;){var j=R.value;if(m=m&&m.get?m.get(j,k):k,m===k)return d}return m},groupBy:function(l,d){return mE(this,l,d)},has:function(l){return this.get(l,k)!==k},hasIn:function(l){return this.getIn(l,k)!==k},isSubset:function(l){return l=typeof l.includes=="function"?l:o(l),this.every(function(d){return l.includes(d)})},isSuperset:function(l){return l=typeof l.isSubset=="function"?l:o(l),l.isSubset(this)},keyOf:function(l){return this.findKey(function(d){return ct(d,l)})},keySeq:function(){return this.toSeq().map(wE).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(l){return this.toKeyedSeq().reverse().keyOf(l)},max:function(l){return Ms(this,l)},maxBy:function(l,d){return Ms(this,d,l)},min:function(l){return Ms(this,l?Hy(l):Vy)},minBy:function(l,d){return Ms(this,d?Hy(d):Vy,l)},rest:function(){return this.slice(1)},skip:function(l){return this.slice(Math.max(0,l))},skipLast:function(l){return We(this,this.toSeq().reverse().skip(l).reverse())},skipWhile:function(l,d){return We(this,Ey(this,l,d,!0))},skipUntil:function(l,d){return this.skipWhile(Ds(l),d)},sortBy:function(l,d){return We(this,Ci(this,d,l))},take:function(l){return this.slice(0,Math.max(0,l))},takeLast:function(l){return We(this,this.toSeq().reverse().take(l).reverse())},takeWhile:function(l,d){return We(this,vE(this,l,d))},takeUntil:function(l,d){return this.takeWhile(Ds(l),d)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=RE(this))}});var qt=o.prototype;qt[S]=!0,qt[tt]=qt.values,qt.__toJS=qt.toArray,qt.__toStringMapper=Gy,qt.inspect=qt.toSource=function(){return this.toString()},qt.chain=qt.flatMap,qt.contains=qt.includes,ln(i,{flip:function(){return We(this,Cy(this))},mapEntries:function(l,d){var m=this,x=0;return We(this,this.toSeq().map(function(R,j){return l.call(d,[j,R],x++,m)}).fromEntrySeq())},mapKeys:function(l,d){var m=this;return We(this,this.toSeq().flip().map(function(x,R){return l.call(d,x,R,m)}).flip())}});var $s=i.prototype;$s[_]=!0,$s[tt]=qt.entries,$s.__toJS=qt.toObject,$s.__toStringMapper=function(l,d){return JSON.stringify(d)+": "+Gy(l)},ln(a,{toKeyedSeq:function(){return new kr(this,!1)},filter:function(l,d){return We(this,Ty(this,l,d,!1))},findIndex:function(l,d){var m=this.findEntry(l,d);return m?m[0]:-1},indexOf:function(l){var d=this.keyOf(l);return d===void 0?-1:d},lastIndexOf:function(l){var d=this.lastKeyOf(l);return d===void 0?-1:d},reverse:function(){return We(this,_d(this,!1))},slice:function(l,d){return We(this,Sd(this,l,d,!1))},splice:function(l,d){var m=arguments.length;if(d=Math.max(d|0,0),m===0||m===2&&!d)return this;l=se(l,l<0?this.count():this.size);var x=this.slice(0,l);return We(this,m===1?x:x.concat(M(arguments,2),this.slice(l+d)))},findLastIndex:function(l,d){var m=this.findLastEntry(l,d);return m?m[0]:-1},first:function(){return this.get(0)},flatten:function(l){return We(this,Oy(this,l,!1))},get:function(l,d){return l=H(this,l),l<0||this.size===1/0||this.size!==void 0&&l>this.size?d:this.find(function(m,x){return x===l},void 0,d)},has:function(l){return l=H(this,l),l>=0&&(this.size!==void 0?this.size===1/0||ld?-1:0}function RE(l){if(l.size===1/0)return 0;var d=p(l),m=c(l),x=d?1:0,R=l.__iterate(m?d?function(j,A){x=31*x+Ky(ur(j),ur(A))|0}:function(j,A){x=x+Ky(ur(j),ur(A))|0}:d?function(j){x=31*x+ur(j)|0}:function(j){x=x+ur(j)|0});return TE(R,x)}function TE(l,d){return d=Ua(d,3432918353),d=Ua(d<<15|d>>>-15,461845907),d=Ua(d<<13|d>>>-13,5),d=(d+3864292196|0)^l,d=Ua(d^d>>>16,2246822507),d=Ua(d^d>>>13,3266489909),d=nd(d^d>>>16),d}function Ky(l,d){return l^d+2654435769+(l<<6)+(l>>2)|0}var EE={Iterable:o,Seq:te,Collection:Qn,Map:Oe,OrderedMap:at,List:qe,Stack:ft,Set:Ve,OrderedSet:an,Record:fr,Range:Ct,Repeat:jt,is:ct,fromJS:Wa};return EE})}(yh)),yh.exports}function J3(e){return e=e||Object.create(null),{on:function(r,n){(e[r]||(e[r]=[])).push(n)},off:function(r,n){e[r]&&e[r].splice(e[r].indexOf(n)>>>0,1)},emit:function(r,n){(e[r]||[]).slice().map(function(o){o(n)}),(e["*"]||[]).slice().map(function(o){o(r,n)})}}}const Z3=Object.freeze(Object.defineProperty({__proto__:null,default:J3},Symbol.toStringTag,{value:"Module"})),e5=ka(Z3);var _h,FS;function zR(){if(FS)return _h;FS=1;var e=typeof Uo=="object"&&Uo&&Uo.Object===Object&&Uo;return _h=e,_h}var Sh,WS;function t5(){if(WS)return Sh;WS=1;var e=zR(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Sh=r,Sh}var bh,BS;function $f(){if(BS)return bh;BS=1;var e=t5(),t=e.Symbol;return bh=t,bh}var wh,US;function r5(){if(US)return wh;US=1;var e=$f(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=r.call(a,o),u=a[o];try{a[o]=void 0;var c=!0}catch{}var f=n.call(a);return c&&(s?a[o]=u:delete a[o]),f}return wh=i,wh}var xh,qS;function n5(){if(qS)return xh;qS=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return xh=r,xh}var Ch,HS;function Df(){if(HS)return Ch;HS=1;var e=$f(),t=r5(),r=n5(),n="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?o:n:i&&i in Object(s)?t(s):r(s)}return Ch=a,Ch}var Rh,GS;function xs(){if(GS)return Rh;GS=1;function e(t){return t!=null&&typeof t=="object"}return Rh=e,Rh}var Th,VS;function o5(){if(VS)return Th;VS=1;var e=Df(),t=xs(),r="[object RegExp]";function n(o){return t(o)&&e(o)==r}return Th=n,Th}var Eh,KS;function i5(){if(KS)return Eh;KS=1;function e(t){return function(r){return t(r)}}return Eh=e,Eh}var ml={exports:{}};ml.exports;var YS;function a5(){return YS||(YS=1,function(e,t){var r=zR(),n=t&&!t.nodeType&&t,o=n&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s}(ml,ml.exports)),ml.exports}var Oh,QS;function l5(){if(QS)return Oh;QS=1;var e=o5(),t=i5(),r=a5(),n=r&&r.isRegExp,o=n?t(n):e;return Oh=o,Oh}var kh,XS;function s5(){if(XS)return kh;XS=1;function e(t,r){for(var n=-1,o=t==null?0:t.length,i=Array(o);++n0&&i(f)?o>1?r(f,o-1,i,a,s):e(s,f):a||(s[s.length]=f)}return s}return Fh=r,Fh}var Wh,u1;function _5(){if(u1)return Wh;u1=1;var e=y5();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Wh=t,Wh}var Bh,c1;function S5(){if(c1)return Bh;c1=1;var e=l5(),t=d5(),r=h5(),n=_5();function o(i,a,s){var u=0,c=0;if(i==="")return i;if(!i||!r(i))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var f=a;e(f)||(f=new RegExp("("+t(f)+")","gi"));for(var h=i.split(f),p=1,S=h.length;p=0&&u===s&&c())}function vl(e,t){if(e==null)return{};var r=Rn(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var b5=function(){function e(t){var r=t.cellCount,n=t.cellSizeGetter,o=t.estimatedCellSize;it(this,e),$(this,"_cellSizeAndPositionData",{}),$(this,"_lastMeasuredIndex",-1),$(this,"_lastBatchedIndex",-1),$(this,"_cellCount",void 0),$(this,"_cellSizeGetter",void 0),$(this,"_estimatedCellSize",void 0),this._cellSizeGetter=n,this._cellCount=r,this._estimatedCellSize=o}return ut(e,[{key:"areOffsetsAdjusted",value:function(){return!1}},{key:"configure",value:function(r){var n=r.cellCount,o=r.estimatedCellSize,i=r.cellSizeGetter;this._cellCount=n,this._estimatedCellSize=o,this._cellSizeGetter=i}},{key:"getCellCount",value:function(){return this._cellCount}},{key:"getEstimatedCellSize",value:function(){return this._estimatedCellSize}},{key:"getLastMeasuredIndex",value:function(){return this._lastMeasuredIndex}},{key:"getOffsetAdjustment",value:function(){return 0}},{key:"getSizeAndPositionOfCell",value:function(r){if(r<0||r>=this._cellCount)throw Error("Requested index ".concat(r," is outside of range 0..").concat(this._cellCount));if(r>this._lastMeasuredIndex)for(var n=this.getSizeAndPositionOfLastMeasuredCell(),o=n.offset+n.size,i=this._lastMeasuredIndex+1;i<=r;i++){var a=this._cellSizeGetter({index:i});if(a===void 0||isNaN(a))throw Error("Invalid size returned for cell ".concat(i," of value ").concat(a));a===null?(this._cellSizeAndPositionData[i]={offset:o,size:0},this._lastBatchedIndex=r):(this._cellSizeAndPositionData[i]={offset:o,size:a},o+=a,this._lastMeasuredIndex=r)}return this._cellSizeAndPositionData[r]}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._lastMeasuredIndex>=0?this._cellSizeAndPositionData[this._lastMeasuredIndex]:{offset:0,size:0}}},{key:"getTotalSize",value:function(){var r=this.getSizeAndPositionOfLastMeasuredCell(),n=r.offset+r.size,o=this._cellCount-this._lastMeasuredIndex-1,i=o*this._estimatedCellSize;return n+i}},{key:"getUpdatedOffsetForIndex",value:function(r){var n=r.align,o=n===void 0?"auto":n,i=r.containerSize,a=r.currentOffset,s=r.targetIndex;if(i<=0)return 0;var u=this.getSizeAndPositionOfCell(s),c=u.offset,f=c-i+u.size,h;switch(o){case"start":h=c;break;case"end":h=f;break;case"center":h=c-(i-u.size)/2;break;default:h=Math.max(f,Math.min(c,a));break}var p=this.getTotalSize();return Math.max(0,Math.min(p-i,h))}},{key:"getVisibleCellRange",value:function(r){var n=r.containerSize,o=r.offset,i=this.getTotalSize();if(i===0)return{};var a=o+n,s=this._findNearestCell(o),u=this.getSizeAndPositionOfCell(s);o=u.offset+u.size;for(var c=s;oo&&(r=i-1)}return n>0?n-1:0}},{key:"_exponentialSearch",value:function(r,n){for(var o=1;r=r?this._binarySearch(o,0,r):this._exponentialSearch(o,r)}}]),e}(),w5=15e5,x5=16777100,C5=function(){return typeof window<"u"},R5=function(){return!!window.chrome},T5=function(){return C5()&&R5()?x5:w5},h1=function(){function e(t){var r=t.maxScrollSize,n=r===void 0?T5():r,o=vl(t,["maxScrollSize"]);it(this,e),$(this,"_cellSizeAndPositionManager",void 0),$(this,"_maxScrollSize",void 0),this._cellSizeAndPositionManager=new b5(o),this._maxScrollSize=n}return ut(e,[{key:"areOffsetsAdjusted",value:function(){return this._cellSizeAndPositionManager.getTotalSize()>this._maxScrollSize}},{key:"configure",value:function(r){this._cellSizeAndPositionManager.configure(r)}},{key:"getCellCount",value:function(){return this._cellSizeAndPositionManager.getCellCount()}},{key:"getEstimatedCellSize",value:function(){return this._cellSizeAndPositionManager.getEstimatedCellSize()}},{key:"getLastMeasuredIndex",value:function(){return this._cellSizeAndPositionManager.getLastMeasuredIndex()}},{key:"getOffsetAdjustment",value:function(r){var n=r.containerSize,o=r.offset,i=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize(),s=this._getOffsetPercentage({containerSize:n,offset:o,totalSize:a});return Math.round(s*(a-i))}},{key:"getSizeAndPositionOfCell",value:function(r){return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(r)}},{key:"getSizeAndPositionOfLastMeasuredCell",value:function(){return this._cellSizeAndPositionManager.getSizeAndPositionOfLastMeasuredCell()}},{key:"getTotalSize",value:function(){return Math.min(this._maxScrollSize,this._cellSizeAndPositionManager.getTotalSize())}},{key:"getUpdatedOffsetForIndex",value:function(r){var n=r.align,o=n===void 0?"auto":n,i=r.containerSize,a=r.currentOffset,s=r.targetIndex;a=this._safeOffsetToOffset({containerSize:i,offset:a});var u=this._cellSizeAndPositionManager.getUpdatedOffsetForIndex({align:o,containerSize:i,currentOffset:a,targetIndex:s});return this._offsetToSafeOffset({containerSize:i,offset:u})}},{key:"getVisibleCellRange",value:function(r){var n=r.containerSize,o=r.offset;return o=this._safeOffsetToOffset({containerSize:n,offset:o}),this._cellSizeAndPositionManager.getVisibleCellRange({containerSize:n,offset:o})}},{key:"resetCell",value:function(r){this._cellSizeAndPositionManager.resetCell(r)}},{key:"_getOffsetPercentage",value:function(r){var n=r.containerSize,o=r.offset,i=r.totalSize;return i<=n?0:o/(i-n)}},{key:"_offsetToSafeOffset",value:function(r){var n=r.containerSize,o=r.offset,i=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(i===a)return o;var s=this._getOffsetPercentage({containerSize:n,offset:o,totalSize:i});return Math.round(s*(a-n))}},{key:"_safeOffsetToOffset",value:function(r){var n=r.containerSize,o=r.offset,i=this._cellSizeAndPositionManager.getTotalSize(),a=this.getTotalSize();if(i===a)return o;var s=this._getOffsetPercentage({containerSize:n,offset:o,totalSize:a});return Math.round(s*(i-n))}}]),e}();function Ra(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t={};return function(r){var n=r.callback,o=r.indices,i=Object.keys(o),a=!e||i.every(function(u){var c=o[u];return Array.isArray(c)?c.length>0:c>=0}),s=i.length!==Object.keys(t).length||i.some(function(u){var c=t[u],f=o[u];return Array.isArray(f)?c.join(",")!==f.join(","):c!==f});t=o,a&&s&&n(o)}}var lu=-1,kn=1;function LR(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return n===kn?{overscanStartIndex:Math.max(0,o),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i)}}function p1(e){var t=e.cellSize,r=e.cellSizeAndPositionManager,n=e.previousCellsCount,o=e.previousCellSize,i=e.previousScrollToAlignment,a=e.previousScrollToIndex,s=e.previousSize,u=e.scrollOffset,c=e.scrollToAlignment,f=e.scrollToIndex,h=e.size,p=e.sizeJustIncreasedFromZero,S=e.updateScrollIndexCallback,_=r.getCellCount(),y=f>=0&&f<_,C=h!==s||p||!o||typeof t=="number"&&t!==o;y&&(C||c!==i||f!==a)?S(f):!y&&_>0&&(hr.getTotalSize()-h&&S(_-1)}function $R(e){for(var t=e.cellCache,r=e.cellRenderer,n=e.columnSizeAndPositionManager,o=e.columnStartIndex,i=e.columnStopIndex,a=e.deferredMeasurementCache,s=e.horizontalOffsetAdjustment,u=e.isScrolling,c=e.isScrollingOptOut,f=e.parent,h=e.rowSizeAndPositionManager,p=e.rowStartIndex,S=e.rowStopIndex,_=e.styleCache,y=e.verticalOffsetAdjustment,C=e.visibleColumnIndices,v=e.visibleRowIndices,g=[],b=n.areOffsetsAdjusted()||h.areOffsetsAdjusted(),T=!u&&!b,k=p;k<=S;k++)for(var P=h.getSizeAndPositionOfCell(k),w=o;w<=i;w++){var E=n.getSizeAndPositionOfCell(w),I=w>=C.start&&w<=C.stop&&k>=v.start&&k<=v.stop,z="".concat(k,"-").concat(w),M=void 0;T&&_[z]?M=_[z]:a&&!a.has(k,w)?M={height:"auto",left:0,position:"absolute",top:0,width:"auto"}:(M={height:P.size,left:E.offset+s,position:"absolute",top:P.offset+y,width:E.size},_[z]=M);var F={columnIndex:w,isScrolling:u,isVisible:I,key:z,parent:f,rowIndex:k,style:M},H=void 0;(c||u)&&!s&&!y?(t[z]||(t[z]=r(F)),H=t[z]):H=r(F),!(H==null||H===!1)&&g.push(H)}return g}const E5=!!(typeof window<"u"&&window.document&&window.document.createElement);var su;function hm(e){if((!su&&su!==0||e)&&E5){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),su=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return su}var Gt;typeof window<"u"?Gt=window:typeof self<"u"?Gt=self:Gt={};var O5=Gt.requestAnimationFrame||Gt.webkitRequestAnimationFrame||Gt.mozRequestAnimationFrame||Gt.oRequestAnimationFrame||Gt.msRequestAnimationFrame||function(e){return Gt.setTimeout(e,1e3/60)},k5=Gt.cancelAnimationFrame||Gt.webkitCancelAnimationFrame||Gt.mozCancelAnimationFrame||Gt.oCancelAnimationFrame||Gt.msCancelAnimationFrame||function(e){Gt.clearTimeout(e)},m1=O5,P5=k5,Ta=function(t){return P5(t.id)},hg=function(t,r){var n;Promise.resolve().then(function(){n=Date.now()});var o=function a(){Date.now()-n>=r?t.call():i.id=m1(a)},i={id:m1(o)};return i},v1,g1;function y1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function No(e){for(var t=1;t0&&(n._initialScrollTop=n._getCalculatedScrollTop(r,n.state)),r.scrollToColumn>0&&(n._initialScrollLeft=n._getCalculatedScrollLeft(r,n.state)),n}return ut(t,[{key:"getOffsetForCell",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.alignment,i=o===void 0?this.props.scrollToAlignment:o,a=n.columnIndex,s=a===void 0?this.props.scrollToColumn:a,u=n.rowIndex,c=u===void 0?this.props.scrollToRow:u,f=No({},this.props,{scrollToAlignment:i,scrollToColumn:s,scrollToRow:c});return{scrollLeft:this._getCalculatedScrollLeft(f),scrollTop:this._getCalculatedScrollTop(f)}}},{key:"getTotalRowsHeight",value:function(){return this.state.instanceProps.rowSizeAndPositionManager.getTotalSize()}},{key:"getTotalColumnsWidth",value:function(){return this.state.instanceProps.columnSizeAndPositionManager.getTotalSize()}},{key:"handleScrollEvent",value:function(n){var o=n.scrollLeft,i=o===void 0?0:o,a=n.scrollTop,s=a===void 0?0:a;if(!(s<0)){this._debounceScrollEnded();var u=this.props,c=u.autoHeight,f=u.autoWidth,h=u.height,p=u.width,S=this.state.instanceProps,_=S.scrollbarSize,y=S.rowSizeAndPositionManager.getTotalSize(),C=S.columnSizeAndPositionManager.getTotalSize(),v=Math.min(Math.max(0,C-p+_),i),g=Math.min(Math.max(0,y-h+_),s);if(this.state.scrollLeft!==v||this.state.scrollTop!==g){var b=v!==this.state.scrollLeft?v>this.state.scrollLeft?kn:lu:this.state.scrollDirectionHorizontal,T=g!==this.state.scrollTop?g>this.state.scrollTop?kn:lu:this.state.scrollDirectionVertical,k={isScrolling:!0,scrollDirectionHorizontal:b,scrollDirectionVertical:T,scrollPositionChangeReason:Uh.OBSERVED};c||(k.scrollTop=g),f||(k.scrollLeft=v),k.needToResetStyleCache=!1,this.setState(k)}this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:g,totalColumnsWidth:C,totalRowsHeight:y})}}},{key:"invalidateCellSizeAfterRender",value:function(n){var o=n.columnIndex,i=n.rowIndex;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,o):o,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,i):i}},{key:"measureAllCells",value:function(){var n=this.props,o=n.columnCount,i=n.rowCount,a=this.state.instanceProps;a.columnSizeAndPositionManager.getSizeAndPositionOfCell(o-1),a.rowSizeAndPositionManager.getSizeAndPositionOfCell(i-1)}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a,u=this.props,c=u.scrollToColumn,f=u.scrollToRow,h=this.state.instanceProps;h.columnSizeAndPositionManager.resetCell(i),h.rowSizeAndPositionManager.resetCell(s),this._recomputeScrollLeftFlag=c>=0&&(this.state.scrollDirectionHorizontal===kn?i<=c:i>=c),this._recomputeScrollTopFlag=f>=0&&(this.state.scrollDirectionVertical===kn?s<=f:s>=f),this._styleCache={},this._cellCache={},this.forceUpdate()}},{key:"scrollToCell",value:function(n){var o=n.columnIndex,i=n.rowIndex,a=this.props.columnCount,s=this.props;a>1&&o!==void 0&&this._updateScrollLeftForScrollToColumn(No({},s,{scrollToColumn:o})),i!==void 0&&this._updateScrollTopForScrollToRow(No({},s,{scrollToRow:i}))}},{key:"componentDidMount",value:function(){var n=this.props,o=n.getScrollbarSize,i=n.height,a=n.scrollLeft,s=n.scrollToColumn,u=n.scrollTop,c=n.scrollToRow,f=n.width,h=this.state.instanceProps;if(this._initialScrollTop=0,this._initialScrollLeft=0,this._handleInvalidatedGridSize(),h.scrollbarSizeMeasured||this.setState(function(_){var y=No({},_,{needToResetStyleCache:!1});return y.instanceProps.scrollbarSize=o(),y.instanceProps.scrollbarSizeMeasured=!0,y}),typeof a=="number"&&a>=0||typeof u=="number"&&u>=0){var p=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:a,scrollTop:u});p&&(p.needToResetStyleCache=!1,this.setState(p))}this._scrollingContainer&&(this._scrollingContainer.scrollLeft!==this.state.scrollLeft&&(this._scrollingContainer.scrollLeft=this.state.scrollLeft),this._scrollingContainer.scrollTop!==this.state.scrollTop&&(this._scrollingContainer.scrollTop=this.state.scrollTop));var S=i>0&&f>0;s>=0&&S&&this._updateScrollLeftForScrollToColumn(),c>=0&&S&&this._updateScrollTopForScrollToRow(),this._invokeOnGridRenderedHelper(),this._invokeOnScrollMemoizer({scrollLeft:a||0,scrollTop:u||0,totalColumnsWidth:h.columnSizeAndPositionManager.getTotalSize(),totalRowsHeight:h.rowSizeAndPositionManager.getTotalSize()}),this._maybeCallOnScrollbarPresenceChange()}},{key:"componentDidUpdate",value:function(n,o){var i=this,a=this.props,s=a.autoHeight,u=a.autoWidth,c=a.columnCount,f=a.height,h=a.rowCount,p=a.scrollToAlignment,S=a.scrollToColumn,_=a.scrollToRow,y=a.width,C=this.state,v=C.scrollLeft,g=C.scrollPositionChangeReason,b=C.scrollTop,T=C.instanceProps;this._handleInvalidatedGridSize();var k=c>0&&n.columnCount===0||h>0&&n.rowCount===0;g===Uh.REQUESTED&&(!u&&v>=0&&(v!==this._scrollingContainer.scrollLeft||k)&&(this._scrollingContainer.scrollLeft=v),!s&&b>=0&&(b!==this._scrollingContainer.scrollTop||k)&&(this._scrollingContainer.scrollTop=b));var P=(n.width===0||n.height===0)&&f>0&&y>0;if(this._recomputeScrollLeftFlag?(this._recomputeScrollLeftFlag=!1,this._updateScrollLeftForScrollToColumn(this.props)):p1({cellSizeAndPositionManager:T.columnSizeAndPositionManager,previousCellsCount:n.columnCount,previousCellSize:n.columnWidth,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToColumn,previousSize:n.width,scrollOffset:v,scrollToAlignment:p,scrollToIndex:S,size:y,sizeJustIncreasedFromZero:P,updateScrollIndexCallback:function(){return i._updateScrollLeftForScrollToColumn(i.props)}}),this._recomputeScrollTopFlag?(this._recomputeScrollTopFlag=!1,this._updateScrollTopForScrollToRow(this.props)):p1({cellSizeAndPositionManager:T.rowSizeAndPositionManager,previousCellsCount:n.rowCount,previousCellSize:n.rowHeight,previousScrollToAlignment:n.scrollToAlignment,previousScrollToIndex:n.scrollToRow,previousSize:n.height,scrollOffset:b,scrollToAlignment:p,scrollToIndex:_,size:f,sizeJustIncreasedFromZero:P,updateScrollIndexCallback:function(){return i._updateScrollTopForScrollToRow(i.props)}}),this._invokeOnGridRenderedHelper(),v!==o.scrollLeft||b!==o.scrollTop){var w=T.rowSizeAndPositionManager.getTotalSize(),E=T.columnSizeAndPositionManager.getTotalSize();this._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:b,totalColumnsWidth:E,totalRowsHeight:w})}this._maybeCallOnScrollbarPresenceChange()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&Ta(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,o=n.autoContainerWidth,i=n.autoHeight,a=n.autoWidth,s=n.className,u=n.containerProps,c=n.containerRole,f=n.containerStyle,h=n.height,p=n.id,S=n.noContentRenderer,_=n.role,y=n.style,C=n.tabIndex,v=n.width,g=this.state,b=g.instanceProps,T=g.needToResetStyleCache,k=this._isScrolling(),P={boxSizing:"border-box",direction:"ltr",height:i?"auto":h,position:"relative",width:a?"auto":v,WebkitOverflowScrolling:"touch",willChange:"transform"};T&&(this._styleCache={}),this.state.isScrolling||this._resetStyleCache(),this._calculateChildrenToRender(this.props,this.state);var w=b.columnSizeAndPositionManager.getTotalSize(),E=b.rowSizeAndPositionManager.getTotalSize(),I=E>h?b.scrollbarSize:0,z=w>v?b.scrollbarSize:0;(z!==this._horizontalScrollBarSize||I!==this._verticalScrollBarSize)&&(this._horizontalScrollBarSize=z,this._verticalScrollBarSize=I,this._scrollbarPresenceChanged=!0),P.overflowX=w+I<=v?"hidden":"auto",P.overflowY=E+z<=h?"hidden":"auto";var M=this._childrenToDisplay,F=M.length===0&&h>0&&v>0;return N.createElement("div",_e({ref:this._setScrollingContainerRef},u,{"aria-label":this.props["aria-label"],"aria-readonly":this.props["aria-readonly"],className:Jr("ReactVirtualized__Grid",s),id:p,onScroll:this._onScroll,role:_,style:No({},P,{},y),tabIndex:C}),M.length>0&&N.createElement("div",{className:"ReactVirtualized__Grid__innerScrollContainer",role:c,style:No({width:o?"auto":w,height:E,maxWidth:w,maxHeight:E,overflow:"hidden",pointerEvents:k?"none":"",position:"relative"},f)},M),F&&S())}},{key:"_calculateChildrenToRender",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,i=n.cellRenderer,a=n.cellRangeRenderer,s=n.columnCount,u=n.deferredMeasurementCache,c=n.height,f=n.overscanColumnCount,h=n.overscanIndicesGetter,p=n.overscanRowCount,S=n.rowCount,_=n.width,y=n.isScrollingOptOut,C=o.scrollDirectionHorizontal,v=o.scrollDirectionVertical,g=o.instanceProps,b=this._initialScrollTop>0?this._initialScrollTop:o.scrollTop,T=this._initialScrollLeft>0?this._initialScrollLeft:o.scrollLeft,k=this._isScrolling(n,o);if(this._childrenToDisplay=[],c>0&&_>0){var P=g.columnSizeAndPositionManager.getVisibleCellRange({containerSize:_,offset:T}),w=g.rowSizeAndPositionManager.getVisibleCellRange({containerSize:c,offset:b}),E=g.columnSizeAndPositionManager.getOffsetAdjustment({containerSize:_,offset:T}),I=g.rowSizeAndPositionManager.getOffsetAdjustment({containerSize:c,offset:b});this._renderedColumnStartIndex=P.start,this._renderedColumnStopIndex=P.stop,this._renderedRowStartIndex=w.start,this._renderedRowStopIndex=w.stop;var z=h({direction:"horizontal",cellCount:s,overscanCellsCount:f,scrollDirection:C,startIndex:typeof P.start=="number"?P.start:0,stopIndex:typeof P.stop=="number"?P.stop:-1}),M=h({direction:"vertical",cellCount:S,overscanCellsCount:p,scrollDirection:v,startIndex:typeof w.start=="number"?w.start:0,stopIndex:typeof w.stop=="number"?w.stop:-1}),F=z.overscanStartIndex,H=z.overscanStopIndex,G=M.overscanStartIndex,ue=M.overscanStopIndex;if(u){if(!u.hasFixedHeight()){for(var se=G;se<=ue;se++)if(!u.has(se,0)){F=0,H=s-1;break}}if(!u.hasFixedWidth()){for(var ge=F;ge<=H;ge++)if(!u.has(0,ge)){G=0,ue=S-1;break}}}this._childrenToDisplay=a({cellCache:this._cellCache,cellRenderer:i,columnSizeAndPositionManager:g.columnSizeAndPositionManager,columnStartIndex:F,columnStopIndex:H,deferredMeasurementCache:u,horizontalOffsetAdjustment:E,isScrolling:k,isScrollingOptOut:y,parent:this,rowSizeAndPositionManager:g.rowSizeAndPositionManager,rowStartIndex:G,rowStopIndex:ue,scrollLeft:T,scrollTop:b,styleCache:this._styleCache,verticalOffsetAdjustment:I,visibleColumnIndices:P,visibleRowIndices:w}),this._columnStartIndex=F,this._columnStopIndex=H,this._rowStartIndex=G,this._rowStopIndex=ue}}},{key:"_debounceScrollEnded",value:function(){var n=this.props.scrollingResetTimeInterval;this._disablePointerEventsTimeoutId&&Ta(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=hg(this._debounceScrollEndedCallback,n)}},{key:"_handleInvalidatedGridSize",value:function(){if(typeof this._deferredInvalidateColumnIndex=="number"&&typeof this._deferredInvalidateRowIndex=="number"){var n=this._deferredInvalidateColumnIndex,o=this._deferredInvalidateRowIndex;this._deferredInvalidateColumnIndex=null,this._deferredInvalidateRowIndex=null,this.recomputeGridSize({columnIndex:n,rowIndex:o})}}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalColumnsWidth,u=n.totalRowsHeight;this._onScrollMemoizer({callback:function(f){var h=f.scrollLeft,p=f.scrollTop,S=o.props,_=S.height,y=S.onScroll,C=S.width;y({clientHeight:_,clientWidth:C,scrollHeight:u,scrollLeft:h,scrollTop:p,scrollWidth:s})},indices:{scrollLeft:i,scrollTop:a}})}},{key:"_isScrolling",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return Object.hasOwnProperty.call(n,"isScrolling")?!!n.isScrolling:!!o.isScrolling}},{key:"_maybeCallOnScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var n=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,n({horizontal:this._horizontalScrollBarSize>0,size:this.state.instanceProps.scrollbarSize,vertical:this._verticalScrollBarSize>0})}}},{key:"scrollToPosition",value:function(n){var o=n.scrollLeft,i=n.scrollTop,a=t._getScrollToPositionStateUpdate({prevState:this.state,scrollLeft:o,scrollTop:i});a&&(a.needToResetStyleCache=!1,this.setState(a))}},{key:"_getCalculatedScrollLeft",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollLeft(n,o)}},{key:"_updateScrollLeftForScrollToColumn",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,i=t._getScrollLeftForScrollToColumnStateUpdate(n,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}},{key:"_getCalculatedScrollTop",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state;return t._getCalculatedScrollTop(n,o)}},{key:"_resetStyleCache",value:function(){var n=this._styleCache,o=this._cellCache,i=this.props.isScrollingOptOut;this._cellCache={},this._styleCache={};for(var a=this._rowStartIndex;a<=this._rowStopIndex;a++)for(var s=this._columnStartIndex;s<=this._columnStopIndex;s++){var u="".concat(a,"-").concat(s);this._styleCache[u]=n[u],i&&(this._cellCache[u]=o[u])}}},{key:"_updateScrollTopForScrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.state,i=t._getScrollTopForScrollToRowStateUpdate(n,o);i&&(i.needToResetStyleCache=!1,this.setState(i))}}],[{key:"getDerivedStateFromProps",value:function(n,o){var i={};n.columnCount===0&&o.scrollLeft!==0||n.rowCount===0&&o.scrollTop!==0?(i.scrollLeft=0,i.scrollTop=0):(n.scrollLeft!==o.scrollLeft&&n.scrollToColumn<0||n.scrollTop!==o.scrollTop&&n.scrollToRow<0)&&Object.assign(i,t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}));var a=o.instanceProps;i.needToResetStyleCache=!1,(n.columnWidth!==a.prevColumnWidth||n.rowHeight!==a.prevRowHeight)&&(i.needToResetStyleCache=!0),a.columnSizeAndPositionManager.configure({cellCount:n.columnCount,estimatedCellSize:t._getEstimatedColumnSize(n),cellSizeGetter:t._wrapSizeGetter(n.columnWidth)}),a.rowSizeAndPositionManager.configure({cellCount:n.rowCount,estimatedCellSize:t._getEstimatedRowSize(n),cellSizeGetter:t._wrapSizeGetter(n.rowHeight)}),(a.prevColumnCount===0||a.prevRowCount===0)&&(a.prevColumnCount=0,a.prevRowCount=0),n.autoHeight&&n.isScrolling===!1&&a.prevIsScrolling===!0&&Object.assign(i,{isScrolling:!1});var s,u;return d1({cellCount:a.prevColumnCount,cellSize:typeof a.prevColumnWidth=="number"?a.prevColumnWidth:null,computeMetadataCallback:function(){return a.columnSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:n,nextCellsCount:n.columnCount,nextCellSize:typeof n.columnWidth=="number"?n.columnWidth:null,nextScrollToIndex:n.scrollToColumn,scrollToIndex:a.prevScrollToColumn,updateScrollOffsetForScrollToIndex:function(){s=t._getScrollLeftForScrollToColumnStateUpdate(n,o)}}),d1({cellCount:a.prevRowCount,cellSize:typeof a.prevRowHeight=="number"?a.prevRowHeight:null,computeMetadataCallback:function(){return a.rowSizeAndPositionManager.resetCell(0)},computeMetadataCallbackProps:n,nextCellsCount:n.rowCount,nextCellSize:typeof n.rowHeight=="number"?n.rowHeight:null,nextScrollToIndex:n.scrollToRow,scrollToIndex:a.prevScrollToRow,updateScrollOffsetForScrollToIndex:function(){u=t._getScrollTopForScrollToRowStateUpdate(n,o)}}),a.prevColumnCount=n.columnCount,a.prevColumnWidth=n.columnWidth,a.prevIsScrolling=n.isScrolling===!0,a.prevRowCount=n.rowCount,a.prevRowHeight=n.rowHeight,a.prevScrollToColumn=n.scrollToColumn,a.prevScrollToRow=n.scrollToRow,a.scrollbarSize=n.getScrollbarSize(),a.scrollbarSize===void 0?(a.scrollbarSizeMeasured=!1,a.scrollbarSize=0):a.scrollbarSizeMeasured=!0,i.instanceProps=a,No({},i,{},s,{},u)}},{key:"_getEstimatedColumnSize",value:function(n){return typeof n.columnWidth=="number"?n.columnWidth:n.estimatedColumnSize}},{key:"_getEstimatedRowSize",value:function(n){return typeof n.rowHeight=="number"?n.rowHeight:n.estimatedRowSize}},{key:"_getScrollToPositionStateUpdate",value:function(n){var o=n.prevState,i=n.scrollLeft,a=n.scrollTop,s={scrollPositionChangeReason:Uh.REQUESTED};return typeof i=="number"&&i>=0&&(s.scrollDirectionHorizontal=i>o.scrollLeft?kn:lu,s.scrollLeft=i),typeof a=="number"&&a>=0&&(s.scrollDirectionVertical=a>o.scrollTop?kn:lu,s.scrollTop=a),typeof i=="number"&&i>=0&&i!==o.scrollLeft||typeof a=="number"&&a>=0&&a!==o.scrollTop?s:{}}},{key:"_wrapSizeGetter",value:function(n){return typeof n=="function"?n:function(){return n}}},{key:"_getCalculatedScrollLeft",value:function(n,o){var i=n.columnCount,a=n.height,s=n.scrollToAlignment,u=n.scrollToColumn,c=n.width,f=o.scrollLeft,h=o.instanceProps;if(i>0){var p=i-1,S=u<0?p:Math.min(p,u),_=h.rowSizeAndPositionManager.getTotalSize(),y=h.scrollbarSizeMeasured&&_>a?h.scrollbarSize:0;return h.columnSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:c-y,currentOffset:f,targetIndex:S})}return 0}},{key:"_getScrollLeftForScrollToColumnStateUpdate",value:function(n,o){var i=o.scrollLeft,a=t._getCalculatedScrollLeft(n,o);return typeof a=="number"&&a>=0&&i!==a?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:a,scrollTop:-1}):{}}},{key:"_getCalculatedScrollTop",value:function(n,o){var i=n.height,a=n.rowCount,s=n.scrollToAlignment,u=n.scrollToRow,c=n.width,f=o.scrollTop,h=o.instanceProps;if(a>0){var p=a-1,S=u<0?p:Math.min(p,u),_=h.columnSizeAndPositionManager.getTotalSize(),y=h.scrollbarSizeMeasured&&_>c?h.scrollbarSize:0;return h.rowSizeAndPositionManager.getUpdatedOffsetForIndex({align:s,containerSize:i-y,currentOffset:f,targetIndex:S})}return 0}},{key:"_getScrollTopForScrollToRowStateUpdate",value:function(n,o){var i=o.scrollTop,a=t._getCalculatedScrollTop(n,o);return typeof a=="number"&&a>=0&&i!==a?t._getScrollToPositionStateUpdate({prevState:o,scrollLeft:-1,scrollTop:a}):{}}}]),t}(N.PureComponent),$(v1,"propTypes",null),g1);$(Ln,"defaultProps",{"aria-label":"grid","aria-readonly":!0,autoContainerWidth:!1,autoHeight:!1,autoWidth:!1,cellRangeRenderer:$R,containerRole:"rowgroup",containerStyle:{},estimatedColumnSize:100,estimatedRowSize:30,getScrollbarSize:hm,noContentRenderer:z5,onScroll:function(){},onScrollbarPresenceChange:function(){},onSectionRendered:function(){},overscanColumnCount:0,overscanIndicesGetter:LR,overscanRowCount:10,role:"grid",scrollingResetTimeInterval:I5,scrollToAlignment:"auto",scrollToColumn:-1,scrollToRow:-1,style:{},tabIndex:0,isScrollingOptOut:!1});Cs(Ln);var j5=1;function pg(e){var t=e.cellCount,r=e.overscanCellsCount,n=e.scrollDirection,o=e.startIndex,i=e.stopIndex;return r=Math.max(1,r),n===j5?{overscanStartIndex:Math.max(0,o-1),overscanStopIndex:Math.min(t-1,i+r)}:{overscanStartIndex:Math.max(0,o-r),overscanStopIndex:Math.min(t-1,i+1)}}var _1,S1;function b1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function A5(e){for(var t=1;t div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',z=E.head||E.getElementsByTagName("head")[0],M=E.createElement("style");M.id="detectElementResize",M.type="text/css",e!=null&&M.setAttribute("nonce",e),M.styleSheet?M.styleSheet.cssText=I:M.appendChild(E.createTextNode(I)),z.appendChild(M)}},k=function(E,I){if(n)E.attachEvent("onresize",I);else{if(!E.__resizeTriggers__){var z=E.ownerDocument,M=r.getComputedStyle(E);M&&M.position=="static"&&(E.style.position="relative"),T(z),E.__resizeLast__={},E.__resizeListeners__=[],(E.__resizeTriggers__=z.createElement("div")).className="resize-triggers";var F='
';if(window.trustedTypes){var H=trustedTypes.createPolicy("react-virtualized-auto-sizer",{createHTML:function(){return F}});E.__resizeTriggers__.innerHTML=H.createHTML("")}else E.__resizeTriggers__.innerHTML=F;E.appendChild(E.__resizeTriggers__),a(E),E.addEventListener("scroll",u,!0),h&&(E.__resizeTriggers__.__animationListener__=function(ue){ue.animationName==v&&a(E)},E.__resizeTriggers__.addEventListener(h,E.__resizeTriggers__.__animationListener__))}E.__resizeListeners__.push(I)}},P=function(E,I){if(n)E.detachEvent("onresize",I);else if(E.__resizeListeners__.splice(E.__resizeListeners__.indexOf(I),1),!E.__resizeListeners__.length){E.removeEventListener("scroll",u,!0),E.__resizeTriggers__.__animationListener__&&(E.__resizeTriggers__.removeEventListener(h,E.__resizeTriggers__.__animationListener__),E.__resizeTriggers__.__animationListener__=null);try{E.__resizeTriggers__=!E.removeChild(E.__resizeTriggers__)}catch{}}};return{addResizeListener:k,removeResizeListener:P}}var w1,x1;function C1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function M5(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};it(this,e),$(this,"_cellHeightCache",{}),$(this,"_cellWidthCache",{}),$(this,"_columnWidthCache",{}),$(this,"_rowHeightCache",{}),$(this,"_defaultHeight",void 0),$(this,"_defaultWidth",void 0),$(this,"_minHeight",void 0),$(this,"_minWidth",void 0),$(this,"_keyMapper",void 0),$(this,"_hasFixedHeight",void 0),$(this,"_hasFixedWidth",void 0),$(this,"_columnCount",0),$(this,"_rowCount",0),$(this,"columnWidth",function(f){var h=f.index,p=t._keyMapper(0,h);return t._columnWidthCache[p]!==void 0?t._columnWidthCache[p]:t._defaultWidth}),$(this,"rowHeight",function(f){var h=f.index,p=t._keyMapper(h,0);return t._rowHeightCache[p]!==void 0?t._rowHeightCache[p]:t._defaultHeight});var n=r.defaultHeight,o=r.defaultWidth,i=r.fixedHeight,a=r.fixedWidth,s=r.keyMapper,u=r.minHeight,c=r.minWidth;this._hasFixedHeight=i===!0,this._hasFixedWidth=a===!0,this._minHeight=u||0,this._minWidth=c||0,this._keyMapper=s||D5,this._defaultHeight=Math.max(this._minHeight,typeof n=="number"?n:N5),this._defaultWidth=Math.max(this._minWidth,typeof o=="number"?o:L5)}return ut(e,[{key:"clear",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this._keyMapper(r,n);delete this._cellHeightCache[o],delete this._cellWidthCache[o],this._updateCachedColumnAndRowSizes(r,n)}},{key:"clearAll",value:function(){this._cellHeightCache={},this._cellWidthCache={},this._columnWidthCache={},this._rowHeightCache={},this._rowCount=0,this._columnCount=0}},{key:"hasFixedHeight",value:function(){return this._hasFixedHeight}},{key:"hasFixedWidth",value:function(){return this._hasFixedWidth}},{key:"getHeight",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this._hasFixedHeight)return this._defaultHeight;var o=this._keyMapper(r,n);return this._cellHeightCache[o]!==void 0?Math.max(this._minHeight,this._cellHeightCache[o]):this._defaultHeight}},{key:"getWidth",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(this._hasFixedWidth)return this._defaultWidth;var o=this._keyMapper(r,n);return this._cellWidthCache[o]!==void 0?Math.max(this._minWidth,this._cellWidthCache[o]):this._defaultWidth}},{key:"has",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=this._keyMapper(r,n);return this._cellHeightCache[o]!==void 0}},{key:"set",value:function(r,n,o,i){var a=this._keyMapper(r,n);n>=this._columnCount&&(this._columnCount=n+1),r>=this._rowCount&&(this._rowCount=r+1),this._cellHeightCache[a]=i,this._cellWidthCache[a]=o,this._updateCachedColumnAndRowSizes(r,n)}},{key:"_updateCachedColumnAndRowSizes",value:function(r,n){if(!this._hasFixedWidth){for(var o=0,i=0;i=0){var C=u.getScrollPositionForCell({align:f,cellIndex:h,height:c,scrollLeft:_,scrollTop:y,width:p});(C.scrollLeft!==_||C.scrollTop!==y)&&n._setScrollPosition(C)}}),$(Y(n),"_onScroll",function(s){if(s.target===n._scrollingContainer){n._enablePointerEventsAfterDelay();var u=n.props,c=u.cellLayoutManager,f=u.height,h=u.isScrollingChange,p=u.width,S=n._scrollbarSize,_=c.getTotalSize(),y=_.height,C=_.width,v=Math.max(0,Math.min(C-p+S,s.target.scrollLeft)),g=Math.max(0,Math.min(y-f+S,s.target.scrollTop));if(n.state.scrollLeft!==v||n.state.scrollTop!==g){var b=s.cancelable?zi.OBSERVED:zi.REQUESTED;n.state.isScrolling||h(!0),n.setState({isScrolling:!0,scrollLeft:v,scrollPositionChangeReason:b,scrollTop:g})}n._invokeOnScrollMemoizer({scrollLeft:v,scrollTop:g,totalWidth:C,totalHeight:y})}}),n._scrollbarSize=hm(),n._scrollbarSize===void 0?(n._scrollbarSizeMeasured=!1,n._scrollbarSize=0):n._scrollbarSizeMeasured=!0,n}return ut(t,[{key:"recomputeCellSizesAndPositions",value:function(){this._calculateSizeAndPositionDataOnNextUpdate=!0,this.forceUpdate()}},{key:"componentDidMount",value:function(){var n=this.props,o=n.cellLayoutManager,i=n.scrollLeft,a=n.scrollToCell,s=n.scrollTop;this._scrollbarSizeMeasured||(this._scrollbarSize=hm(),this._scrollbarSizeMeasured=!0,this.setState({})),a>=0?this._updateScrollPositionForScrollToCell():(i>=0||s>=0)&&this._setScrollPosition({scrollLeft:i,scrollTop:s}),this._invokeOnSectionRenderedHelper();var u=o.getTotalSize(),c=u.height,f=u.width;this._invokeOnScrollMemoizer({scrollLeft:i||0,scrollTop:s||0,totalHeight:c,totalWidth:f})}},{key:"componentDidUpdate",value:function(n,o){var i=this.props,a=i.height,s=i.scrollToAlignment,u=i.scrollToCell,c=i.width,f=this.state,h=f.scrollLeft,p=f.scrollPositionChangeReason,S=f.scrollTop;p===zi.REQUESTED&&(h>=0&&h!==o.scrollLeft&&h!==this._scrollingContainer.scrollLeft&&(this._scrollingContainer.scrollLeft=h),S>=0&&S!==o.scrollTop&&S!==this._scrollingContainer.scrollTop&&(this._scrollingContainer.scrollTop=S)),(a!==n.height||s!==n.scrollToAlignment||u!==n.scrollToCell||c!==n.width)&&this._updateScrollPositionForScrollToCell(),this._invokeOnSectionRenderedHelper()}},{key:"componentWillUnmount",value:function(){this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId)}},{key:"render",value:function(){var n=this.props,o=n.autoHeight,i=n.cellCount,a=n.cellLayoutManager,s=n.className,u=n.height,c=n.horizontalOverscanSize,f=n.id,h=n.noContentRenderer,p=n.style,S=n.verticalOverscanSize,_=n.width,y=this.state,C=y.isScrolling,v=y.scrollLeft,g=y.scrollTop;(this._lastRenderedCellCount!==i||this._lastRenderedCellLayoutManager!==a||this._calculateSizeAndPositionDataOnNextUpdate)&&(this._lastRenderedCellCount=i,this._lastRenderedCellLayoutManager=a,this._calculateSizeAndPositionDataOnNextUpdate=!1,a.calculateSizeAndPositionData());var b=a.getTotalSize(),T=b.height,k=b.width,P=Math.max(0,v-c),w=Math.max(0,g-S),E=Math.min(k,v+_+c),I=Math.min(T,g+u+S),z=u>0&&_>0?a.cellRenderers({height:I-w,isScrolling:C,width:E-P,x:P,y:w}):[],M={boxSizing:"border-box",direction:"ltr",height:o?"auto":u,position:"relative",WebkitOverflowScrolling:"touch",width:_,willChange:"transform"},F=T>u?this._scrollbarSize:0,H=k>_?this._scrollbarSize:0;return M.overflowX=k+F<=_?"hidden":"auto",M.overflowY=T+H<=u?"hidden":"auto",N.createElement("div",{ref:this._setScrollingContainerRef,"aria-label":this.props["aria-label"],className:Jr("ReactVirtualized__Collection",s),id:f,onScroll:this._onScroll,role:"grid",style:F5({},M,{},p),tabIndex:0},i>0&&N.createElement("div",{className:"ReactVirtualized__Collection__innerScrollContainer",style:{height:T,maxHeight:T,maxWidth:k,overflow:"hidden",pointerEvents:C?"none":"",width:k}},z),i===0&&h())}},{key:"_enablePointerEventsAfterDelay",value:function(){var n=this;this._disablePointerEventsTimeoutId&&clearTimeout(this._disablePointerEventsTimeoutId),this._disablePointerEventsTimeoutId=setTimeout(function(){var o=n.props.isScrollingChange;o(!1),n._disablePointerEventsTimeoutId=null,n.setState({isScrolling:!1})},W5)}},{key:"_invokeOnScrollMemoizer",value:function(n){var o=this,i=n.scrollLeft,a=n.scrollTop,s=n.totalHeight,u=n.totalWidth;this._onScrollMemoizer({callback:function(f){var h=f.scrollLeft,p=f.scrollTop,S=o.props,_=S.height,y=S.onScroll,C=S.width;y({clientHeight:_,clientWidth:C,scrollHeight:s,scrollLeft:h,scrollTop:p,scrollWidth:u})},indices:{scrollLeft:i,scrollTop:a}})}},{key:"_setScrollPosition",value:function(n){var o=n.scrollLeft,i=n.scrollTop,a={scrollPositionChangeReason:zi.REQUESTED};o>=0&&(a.scrollLeft=o),i>=0&&(a.scrollTop=i),(o>=0&&o!==this.state.scrollLeft||i>=0&&i!==this.state.scrollTop)&&this.setState(a)}}],[{key:"getDerivedStateFromProps",value:function(n,o){return n.cellCount===0&&(o.scrollLeft!==0||o.scrollTop!==0)?{scrollLeft:0,scrollTop:0,scrollPositionChangeReason:zi.REQUESTED}:n.scrollLeft!==o.scrollLeft||n.scrollTop!==o.scrollTop?{scrollLeft:n.scrollLeft!=null?n.scrollLeft:o.scrollLeft,scrollTop:n.scrollTop!=null?n.scrollTop:o.scrollTop,scrollPositionChangeReason:zi.REQUESTED}:null}}]),t}(N.PureComponent);$(Ff,"defaultProps",{"aria-label":"grid",horizontalOverscanSize:0,noContentRenderer:function(){return null},onScroll:function(){return null},onSectionRendered:function(){return null},scrollToAlignment:"auto",scrollToCell:-1,style:{},verticalOverscanSize:0});Ff.propTypes={};Cs(Ff);var B5=function(){function e(t){var r=t.height,n=t.width,o=t.x,i=t.y;it(this,e),this.height=r,this.width=n,this.x=o,this.y=i,this._indexMap={},this._indices=[]}return ut(e,[{key:"addCellIndex",value:function(r){var n=r.index;this._indexMap[n]||(this._indexMap[n]=!0,this._indices.push(n))}},{key:"getCellIndices",value:function(){return this._indices}},{key:"toString",value:function(){return"".concat(this.x,",").concat(this.y," ").concat(this.width,"x").concat(this.height)}}]),e}(),U5=100,q5=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:U5;it(this,e),this._sectionSize=t,this._cellMetadata=[],this._sections={}}return ut(e,[{key:"getCellIndices",value:function(r){var n=r.height,o=r.width,i=r.x,a=r.y,s={};return this.getSections({height:n,width:o,x:i,y:a}).forEach(function(u){return u.getCellIndices().forEach(function(c){s[c]=c})}),Object.keys(s).map(function(u){return s[u]})}},{key:"getCellMetadata",value:function(r){var n=r.index;return this._cellMetadata[n]}},{key:"getSections",value:function(r){for(var n=r.height,o=r.width,i=r.x,a=r.y,s=Math.floor(i/this._sectionSize),u=Math.floor((i+o-1)/this._sectionSize),c=Math.floor(a/this._sectionSize),f=Math.floor((a+n-1)/this._sectionSize),h=[],p=s;p<=u;p++)for(var S=c;S<=f;S++){var _="".concat(p,".").concat(S);this._sections[_]||(this._sections[_]=new B5({height:this._sectionSize,width:this._sectionSize,x:p*this._sectionSize,y:S*this._sectionSize})),h.push(this._sections[_])}return h}},{key:"getTotalSectionCount",value:function(){return Object.keys(this._sections).length}},{key:"toString",value:function(){var r=this;return Object.keys(this._sections).map(function(n){return r._sections[n].toString()})}},{key:"registerCell",value:function(r){var n=r.cellMetadatum,o=r.index;this._cellMetadata[o]=n,this.getSections(n).forEach(function(i){return i.addCellIndex({index:o})})}}]),e}();function H5(e){for(var t=e.cellCount,r=e.cellSizeAndPositionGetter,n=e.sectionSize,o=[],i=new q5(n),a=0,s=0,u=0;u=0&&ie.length)&&(t=e.length);for(var r=0,n=new Array(t);rr||o0;){var _=S.startIndex-1;if(!t({index:_}))S.startIndex=_;else break}return a}function Z5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=typeof e.recomputeGridSize=="function"?e.recomputeGridSize:e.recomputeRowHeights;r?r.call(e,t):e.forceUpdate()}var k1,P1,qR=(P1=k1=function(e){Xt(t,e);function t(){var r,n;it(this,t);for(var o=arguments.length,i=new Array(o),a=0;a0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:i})}},{key:"recomputeRowHeights",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n,columnIndex:0})}},{key:"scrollToPosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:n})}},{key:"scrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:n})}},{key:"render",value:function(){var n=this.props,o=n.className,i=n.noRowsRenderer,a=n.scrollToIndex,s=n.width,u=Jr("ReactVirtualized__List",o);return N.createElement(Ln,_e({},this.props,{autoContainerWidth:!0,cellRenderer:this._cellRenderer,className:u,columnWidth:s,columnCount:1,noContentRenderer:i,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,scrollToRow:a}))}}]),t}(N.PureComponent),$(k1,"propTypes",null),P1);$(qR,"defaultProps",{autoHeight:!1,estimatedRowSize:30,onScroll:function(){},noRowsRenderer:function(){return null},onRowsRendered:function(){},overscanIndicesGetter:pg,overscanRowCount:10,scrollToAlignment:"auto",scrollToIndex:-1,style:{}});function e$(e){if(Array.isArray(e))return e}function t$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(f){c=!0,o=f}finally{try{if(!u&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function r$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n$(e,t){return e$(e)||t$(e,t)||UR(e,t)||r$()}function o$(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1,a=e[i];a>=n?(o=i,r=i-1):t=i+1}return o}function i$(e,t,r,n,o){for(var i=r+1;t<=r;){var a=t+r>>>1,s=e[a];o(s,n)>=0?(i=a,r=a-1):t=a+1}return i}function a$(e,t,r,n,o){return typeof r=="function"?i$(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):o$(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function l$(e,t,r,n){for(var o=r+1;t<=r;){var i=t+r>>>1,a=e[i];a>n?(o=i,r=i-1):t=i+1}return o}function s$(e,t,r,n,o){for(var i=r+1;t<=r;){var a=t+r>>>1,s=e[a];o(s,n)>0?(i=a,r=a-1):t=a+1}return i}function u$(e,t,r,n,o){return typeof r=="function"?s$(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):l$(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function c$(e,t,r,n){for(var o=t-1;t<=r;){var i=t+r>>>1,a=e[i];a>>1,s=e[a];o(s,n)<0?(i=a,t=a+1):r=a-1}return i}function d$(e,t,r,n,o){return typeof r=="function"?f$(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):c$(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function h$(e,t,r,n){for(var o=t-1;t<=r;){var i=t+r>>>1,a=e[i];a<=n?(o=i,t=i+1):r=i-1}return o}function p$(e,t,r,n,o){for(var i=t-1;t<=r;){var a=t+r>>>1,s=e[a];o(s,n)<=0?(i=a,t=a+1):r=a-1}return i}function m$(e,t,r,n,o){return typeof r=="function"?p$(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):h$(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}function v$(e,t,r,n){for(;t<=r;){var o=t+r>>>1,i=e[o];if(i===n)return o;i<=n?t=o+1:r=o-1}return-1}function g$(e,t,r,n,o){for(;t<=r;){var i=t+r>>>1,a=e[i],s=o(a,n);if(s===0)return i;s<=0?t=i+1:r=i-1}return-1}function y$(e,t,r,n,o){return typeof r=="function"?g$(e,n===void 0?0:n|0,o===void 0?e.length-1:o|0,t,r):v$(e,r===void 0?0:r|0,n===void 0?e.length-1:n|0,t)}const Cc={ge:a$,gt:u$,lt:d$,le:m$,eq:y$};var Yi=0,Bo=1,Lu=2;function yg(e,t,r,n,o){this.mid=e,this.left=t,this.right=r,this.leftPoints=n,this.rightPoints=o,this.count=(t?t.count:0)+(r?r.count:0)+n.length}var Rs=yg.prototype;function qh(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function HR(e,t){var r=Ea(t);e.mid=r.mid,e.left=r.left,e.right=r.right,e.leftPoints=r.leftPoints,e.rightPoints=r.rightPoints,e.count=r.count}function I1(e,t){var r=e.intervals([]);r.push(t),HR(e,r)}function z1(e,t){var r=e.intervals([]),n=r.indexOf(t);return n<0?Yi:(r.splice(n,1),HR(e,r),Bo)}Rs.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e};Rs.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]3*(t+1)?I1(this,e):this.left.insert(e):this.left=Ea([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?I1(this,e):this.right.insert(e):this.right=Ea([e]);else{var r=Cc.ge(this.leftPoints,e,_g),n=Cc.ge(this.rightPoints,e,Sg);this.leftPoints.splice(r,0,e),this.rightPoints.splice(n,0,e)}};Rs.remove=function(e){var t=this.count-this.leftPoints;if(e[1]3*(t-1))return z1(this,e);var n=this.left.remove(e);return n===Lu?(this.left=null,this.count-=1,Bo):(n===Bo&&(this.count-=1),n)}else if(e[0]>this.mid){if(!this.right)return Yi;var o=this.left?this.left.count:0;if(4*o>3*(t-1))return z1(this,e);var n=this.right.remove(e);return n===Lu?(this.right=null,this.count-=1,Bo):(n===Bo&&(this.count-=1),n)}else{if(this.count===1)return this.leftPoints[0]===e?Lu:Yi;if(this.leftPoints.length===1&&this.leftPoints[0]===e){if(this.left&&this.right){for(var i=this,a=this.left;a.right;)i=a,a=a.right;if(i===this)a.right=this.right;else{var s=this.left,n=this.right;i.count-=a.count,i.right=a.left,a.left=s,a.right=n}qh(this,a),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?qh(this,this.left):qh(this,this.right);return Bo}for(var s=Cc.ge(this.leftPoints,e,_g);s=0&&e[n][1]>=t;--n){var o=r(e[n]);if(o)return o}}function KR(e,t){for(var r=0;rthis.mid){if(this.right){var r=this.right.queryPoint(e,t);if(r)return r}return VR(this.rightPoints,e,t)}else return KR(this.leftPoints,t)};Rs.queryInterval=function(e,t,r){if(ethis.mid&&this.right){var n=this.right.queryInterval(e,t,r);if(n)return n}return tthis.mid?VR(this.rightPoints,e,r):KR(this.leftPoints,r)};function _$(e,t){return e-t}function _g(e,t){var r=e[0]-t[0];return r||e[1]-t[1]}function Sg(e,t){var r=e[1]-t[1];return r||e[0]-t[0]}function Ea(e){if(e.length===0)return null;for(var t=[],r=0;r>1],o=[],i=[],a=[],r=0;r"u"?(z=G,M=G):(z=Math.min(z,G),M=Math.max(M,G)),P.push(u({index:G,isScrolling:T,key:p(G),parent:n,style:(ge={height:s.getHeight(G)},$(ge,g==="ltr"?"left":"right",ue),$(ge,"position","absolute"),$(ge,"top",se),$(ge,"width",s.getWidth(G)),ge)}))}),E0&&arguments[0]!==void 0?arguments[0]:{};it(this,e),$(this,"_cellMeasurerCache",void 0),$(this,"_columnIndexOffset",void 0),$(this,"_rowIndexOffset",void 0),$(this,"columnWidth",function(u){var c=u.index;t._cellMeasurerCache.columnWidth({index:c+t._columnIndexOffset})}),$(this,"rowHeight",function(u){var c=u.index;t._cellMeasurerCache.rowHeight({index:c+t._rowIndexOffset})});var n=r.cellMeasurerCache,o=r.columnIndexOffset,i=o===void 0?0:o,a=r.rowIndexOffset,s=a===void 0?0:a;this._cellMeasurerCache=n,this._columnIndexOffset=i,this._rowIndexOffset=s}return ut(e,[{key:"clear",value:function(r,n){this._cellMeasurerCache.clear(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"clearAll",value:function(){this._cellMeasurerCache.clearAll()}},{key:"hasFixedHeight",value:function(){return this._cellMeasurerCache.hasFixedHeight()}},{key:"hasFixedWidth",value:function(){return this._cellMeasurerCache.hasFixedWidth()}},{key:"getHeight",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getHeight(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"getWidth",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.getWidth(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"has",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._cellMeasurerCache.has(r+this._rowIndexOffset,n+this._columnIndexOffset)}},{key:"set",value:function(r,n,o,i){this._cellMeasurerCache.set(r+this._rowIndexOffset,n+this._columnIndexOffset,o,i)}},{key:"defaultHeight",get:function(){return this._cellMeasurerCache.defaultHeight}},{key:"defaultWidth",get:function(){return this._cellMeasurerCache.defaultWidth}}]),e}();function L1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t0?new Gh({cellMeasurerCache:i,columnIndexOffset:0,rowIndexOffset:s}):i,o._deferredMeasurementCacheBottomRightGrid=a>0||s>0?new Gh({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:s}):i,o._deferredMeasurementCacheTopRightGrid=a>0?new Gh({cellMeasurerCache:i,columnIndexOffset:a,rowIndexOffset:0}):i),o}return ut(t,[{key:"forceUpdateGrids",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.forceUpdate(),this._bottomRightGrid&&this._bottomRightGrid.forceUpdate(),this._topLeftGrid&&this._topLeftGrid.forceUpdate(),this._topRightGrid&&this._topRightGrid.forceUpdate()}},{key:"invalidateCellSizeAfterRender",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a;this._deferredInvalidateColumnIndex=typeof this._deferredInvalidateColumnIndex=="number"?Math.min(this._deferredInvalidateColumnIndex,i):i,this._deferredInvalidateRowIndex=typeof this._deferredInvalidateRowIndex=="number"?Math.min(this._deferredInvalidateRowIndex,s):s}},{key:"measureAllCells",value:function(){this._bottomLeftGrid&&this._bottomLeftGrid.measureAllCells(),this._bottomRightGrid&&this._bottomRightGrid.measureAllCells(),this._topLeftGrid&&this._topLeftGrid.measureAllCells(),this._topRightGrid&&this._topRightGrid.measureAllCells()}},{key:"recomputeGridSize",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a,u=this.props,c=u.fixedColumnCount,f=u.fixedRowCount,h=Math.max(0,i-c),p=Math.max(0,s-f);this._bottomLeftGrid&&this._bottomLeftGrid.recomputeGridSize({columnIndex:i,rowIndex:p}),this._bottomRightGrid&&this._bottomRightGrid.recomputeGridSize({columnIndex:h,rowIndex:p}),this._topLeftGrid&&this._topLeftGrid.recomputeGridSize({columnIndex:i,rowIndex:s}),this._topRightGrid&&this._topRightGrid.recomputeGridSize({columnIndex:h,rowIndex:s}),this._leftGridWidth=null,this._topGridHeight=null,this._maybeCalculateCachedStyles(!0)}},{key:"componentDidMount",value:function(){var n=this.props,o=n.scrollLeft,i=n.scrollTop;if(o>0||i>0){var a={};o>0&&(a.scrollLeft=o),i>0&&(a.scrollTop=i),this.setState(a)}this._handleInvalidatedGridSize()}},{key:"componentDidUpdate",value:function(){this._handleInvalidatedGridSize()}},{key:"render",value:function(){var n=this.props,o=n.onScroll,i=n.onSectionRendered;n.onScrollbarPresenceChange,n.scrollLeft;var a=n.scrollToColumn;n.scrollTop;var s=n.scrollToRow,u=vl(n,["onScroll","onSectionRendered","onScrollbarPresenceChange","scrollLeft","scrollToColumn","scrollTop","scrollToRow"]);if(this._prepareForRender(),this.props.width===0||this.props.height===0)return null;var c=this.state,f=c.scrollLeft,h=c.scrollTop;return N.createElement("div",{style:this._containerOuterStyle},N.createElement("div",{style:this._containerTopStyle},this._renderTopLeftGrid(u),this._renderTopRightGrid(Nt({},u,{onScroll:o,scrollLeft:f}))),N.createElement("div",{style:this._containerBottomStyle},this._renderBottomLeftGrid(Nt({},u,{onScroll:o,scrollTop:h})),this._renderBottomRightGrid(Nt({},u,{onScroll:o,onSectionRendered:i,scrollLeft:f,scrollToColumn:a,scrollToRow:s,scrollTop:h}))))}},{key:"_getBottomGridHeight",value:function(n){var o=n.height,i=this._getTopGridHeight(n);return o-i}},{key:"_getLeftGridWidth",value:function(n){var o=n.fixedColumnCount,i=n.columnWidth;if(this._leftGridWidth==null)if(typeof i=="function"){for(var a=0,s=0;s=0?n.scrollLeft:o.scrollLeft,scrollTop:n.scrollTop!=null&&n.scrollTop>=0?n.scrollTop:o.scrollTop}:null}}]),t}(N.PureComponent);$(Wf,"defaultProps",{classNameBottomLeftGrid:"",classNameBottomRightGrid:"",classNameTopLeftGrid:"",classNameTopRightGrid:"",enableFixedColumnScroll:!1,enableFixedRowScroll:!1,fixedColumnCount:0,fixedRowCount:0,scrollToColumn:-1,scrollToRow:-1,style:{},styleBottomLeftGrid:{},styleBottomRightGrid:{},styleTopLeftGrid:{},styleTopRightGrid:{},hideTopRightGridScrollbar:!1,hideBottomLeftGridScrollbar:!1});Wf.propTypes={};Cs(Wf);var YR=function(e){Xt(t,e);function t(r,n){var o;return it(this,t),o=Qt(this,It(t).call(this,r,n)),o.state={clientHeight:0,clientWidth:0,scrollHeight:0,scrollLeft:0,scrollTop:0,scrollWidth:0},o._onScroll=o._onScroll.bind(Y(o)),o}return ut(t,[{key:"render",value:function(){var n=this.props.children,o=this.state,i=o.clientHeight,a=o.clientWidth,s=o.scrollHeight,u=o.scrollLeft,c=o.scrollTop,f=o.scrollWidth;return n({clientHeight:i,clientWidth:a,onScroll:this._onScroll,scrollHeight:s,scrollLeft:u,scrollTop:c,scrollWidth:f})}},{key:"_onScroll",value:function(n){var o=n.clientHeight,i=n.clientWidth,a=n.scrollHeight,s=n.scrollLeft,u=n.scrollTop,c=n.scrollWidth;this.setState({clientHeight:o,clientWidth:i,scrollHeight:a,scrollLeft:s,scrollTop:u,scrollWidth:c})}}]),t}(N.PureComponent);YR.propTypes={};function T$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.defaultSortBy,n=t.defaultSortDirection,o=n===void 0?{}:n;if(!e)throw Error('Required parameter "sortCallback" not specified');var i=r||[],a={};i.forEach(function(u){a[u]=o[u]!==void 0?o[u]:"ASC"});function s(u){var c=u.defaultSortDirection,f=u.event,h=u.sortBy;if(f.shiftKey)a[h]!==void 0?a[h]=a[h]==="ASC"?"DESC":"ASC":(a[h]=c,i.push(h));else if(f.ctrlKey||f.metaKey){var p=i.indexOf(h);p>=0&&(i.splice(p,1),delete a[h])}else{i.length=0,i.push(h);var S=Object.keys(a);S.forEach(function(_){_!==h&&delete a[_]}),a[h]!==void 0?a[h]=a[h]==="ASC"?"DESC":"ASC":a[h]=c}e({sortBy:i,sortDirection:a})}return{sort:s,sortBy:i,sortDirection:a}}function QR(e){var t=e.dataKey,r=e.rowData;return typeof r.get=="function"?r.get(t):r[t]}function XR(e){var t=e.cellData;return t==null?"":String(t)}function wg(e){var t=e.className,r=e.columns,n=e.style;return N.createElement("div",{className:t,role:"row",style:n},r)}wg.propTypes=null;var $n={ASC:"ASC",DESC:"DESC"};function xg(e){var t=e.sortDirection,r=Jr("ReactVirtualized__Table__sortableHeaderIcon",{"ReactVirtualized__Table__sortableHeaderIcon--ASC":t===$n.ASC,"ReactVirtualized__Table__sortableHeaderIcon--DESC":t===$n.DESC});return N.createElement("svg",{className:r,width:18,height:18,viewBox:"0 0 24 24"},t===$n.ASC?N.createElement("path",{d:"M7 14l5-5 5 5z"}):N.createElement("path",{d:"M7 10l5 5 5-5z"}),N.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}xg.propTypes={};function Cg(e){var t=e.dataKey,r=e.label,n=e.sortBy,o=e.sortDirection,i=n===t,a=[N.createElement("span",{className:"ReactVirtualized__Table__headerTruncatedText",key:"label",title:typeof r=="string"?r:null},r)];return i&&a.push(N.createElement(xg,{key:"SortIndicator",sortDirection:o})),a}Cg.propTypes=null;function Rg(e){var t=e.className,r=e.columns,n=e.index,o=e.key,i=e.onRowClick,a=e.onRowDoubleClick,s=e.onRowMouseOut,u=e.onRowMouseOver,c=e.onRowRightClick,f=e.rowData,h=e.style,p={"aria-rowindex":n+1};return(i||a||s||u||c)&&(p["aria-label"]="row",p.tabIndex=0,i&&(p.onClick=function(S){return i({event:S,index:n,rowData:f})}),a&&(p.onDoubleClick=function(S){return a({event:S,index:n,rowData:f})}),s&&(p.onMouseOut=function(S){return s({event:S,index:n,rowData:f})}),u&&(p.onMouseOver=function(S){return u({event:S,index:n,rowData:f})}),c&&(p.onContextMenu=function(S){return c({event:S,index:n,rowData:f})})),N.createElement("div",_e({},p,{className:t,key:o,role:"row",style:h}),r)}Rg.propTypes=null;var Tg=function(e){Xt(t,e);function t(){return it(this,t),Qt(this,It(t).apply(this,arguments))}return t}(N.Component);$(Tg,"defaultProps",{cellDataGetter:QR,cellRenderer:XR,defaultSortDirection:$n.ASC,flexGrow:0,flexShrink:1,headerRenderer:Cg,style:{}});Tg.propTypes={};function D1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ji(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{},o=n.columnIndex,i=o===void 0?0:o,a=n.rowIndex,s=a===void 0?0:a;this.Grid&&this.Grid.recomputeGridSize({rowIndex:s,columnIndex:i})}},{key:"recomputeRowHeights",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.recomputeGridSize({rowIndex:n})}},{key:"scrollToPosition",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToPosition({scrollTop:n})}},{key:"scrollToRow",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.Grid&&this.Grid.scrollToCell({columnIndex:0,rowIndex:n})}},{key:"getScrollbarWidth",value:function(){if(this.Grid){var n=ms.findDOMNode(this.Grid),o=n.clientWidth||0,i=n.offsetWidth||0;return i-o}return 0}},{key:"componentDidMount",value:function(){this._setScrollbarWidth()}},{key:"componentDidUpdate",value:function(){this._setScrollbarWidth()}},{key:"render",value:function(){var n=this,o=this.props,i=o.children,a=o.className,s=o.disableHeader,u=o.gridClassName,c=o.gridStyle,f=o.headerHeight,h=o.headerRowRenderer,p=o.height,S=o.id,_=o.noRowsRenderer,y=o.rowClassName,C=o.rowStyle,v=o.scrollToIndex,g=o.style,b=o.width,T=this.state.scrollbarWidth,k=s?p:p-f,P=typeof y=="function"?y({index:-1}):y,w=typeof C=="function"?C({index:-1}):C;return this._cachedColumnStyles=[],N.Children.toArray(i).forEach(function(E,I){var z=n._getFlexStyleForColumn(E,E.props.style);n._cachedColumnStyles[I]=ji({overflow:"hidden"},z)}),N.createElement("div",{"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-colcount":N.Children.toArray(i).length,"aria-rowcount":this.props.rowCount,className:Jr("ReactVirtualized__Table",a),id:S,role:"grid",style:g},!s&&h({className:Jr("ReactVirtualized__Table__headerRow",P),columns:this._getHeaderColumns(),style:ji({height:f,overflow:"hidden",paddingRight:T,width:b},w)}),N.createElement(Ln,_e({},this.props,{"aria-readonly":null,autoContainerWidth:!0,className:Jr("ReactVirtualized__Table__Grid",u),cellRenderer:this._createRow,columnWidth:b,columnCount:1,height:k,id:void 0,noContentRenderer:_,onScroll:this._onScroll,onSectionRendered:this._onSectionRendered,ref:this._setRef,role:"rowgroup",scrollbarWidth:T,scrollToRow:v,style:ji({},c,{overflowX:"hidden"})})))}},{key:"_createColumn",value:function(n){var o=n.column,i=n.columnIndex,a=n.isScrolling,s=n.parent,u=n.rowData,c=n.rowIndex,f=this.props.onColumnClick,h=o.props,p=h.cellDataGetter,S=h.cellRenderer,_=h.className,y=h.columnData,C=h.dataKey,v=h.id,g=p({columnData:y,dataKey:C,rowData:u}),b=S({cellData:g,columnData:y,columnIndex:i,dataKey:C,isScrolling:a,parent:s,rowData:u,rowIndex:c}),T=function(E){f&&f({columnData:y,dataKey:C,event:E})},k=this._cachedColumnStyles[i],P=typeof b=="string"?b:null;return N.createElement("div",{"aria-colindex":i+1,"aria-describedby":v,className:Jr("ReactVirtualized__Table__rowColumn",_),key:"Row"+c+"-Col"+i,onClick:T,role:"gridcell",style:k,title:P},b)}},{key:"_createHeader",value:function(n){var o=n.column,i=n.index,a=this.props,s=a.headerClassName,u=a.headerStyle,c=a.onHeaderClick,f=a.sort,h=a.sortBy,p=a.sortDirection,S=o.props,_=S.columnData,y=S.dataKey,C=S.defaultSortDirection,v=S.disableSort,g=S.headerRenderer,b=S.id,T=S.label,k=!v&&f,P=Jr("ReactVirtualized__Table__headerColumn",s,o.props.headerClassName,{ReactVirtualized__Table__sortableHeaderColumn:k}),w=this._getFlexStyleForColumn(o,ji({},u,{},o.props.headerStyle)),E=g({columnData:_,dataKey:y,disableSort:v,label:T,sortBy:h,sortDirection:p}),I,z,M,F,H;if(k||c){var G=h!==y,ue=G?C:p===$n.DESC?$n.ASC:$n.DESC,se=function(ie){k&&f({defaultSortDirection:C,event:ie,sortBy:y,sortDirection:ue}),c&&c({columnData:_,dataKey:y,event:ie})},ge=function(ie){(ie.key==="Enter"||ie.key===" ")&&se(ie)};H=o.props["aria-label"]||T||y,F="none",M=0,I=se,z=ge}return h===y&&(F=p===$n.ASC?"ascending":"descending"),N.createElement("div",{"aria-label":H,"aria-sort":F,className:P,id:b,key:"Header-Col"+i,onClick:I,onKeyDown:z,role:"columnheader",style:w,tabIndex:M},E)}},{key:"_createRow",value:function(n){var o=this,i=n.rowIndex,a=n.isScrolling,s=n.key,u=n.parent,c=n.style,f=this.props,h=f.children,p=f.onRowClick,S=f.onRowDoubleClick,_=f.onRowRightClick,y=f.onRowMouseOver,C=f.onRowMouseOut,v=f.rowClassName,g=f.rowGetter,b=f.rowRenderer,T=f.rowStyle,k=this.state.scrollbarWidth,P=typeof v=="function"?v({index:i}):v,w=typeof T=="function"?T({index:i}):T,E=g({index:i}),I=N.Children.toArray(h).map(function(F,H){return o._createColumn({column:F,columnIndex:H,isScrolling:a,parent:u,rowData:E,rowIndex:i,scrollbarWidth:k})}),z=Jr("ReactVirtualized__Table__row",P),M=ji({},c,{height:this._getRowHeight(i),overflow:"hidden",paddingRight:k},w);return b({className:z,columns:I,index:i,isScrolling:a,key:s,onRowClick:p,onRowDoubleClick:S,onRowRightClick:_,onRowMouseOver:y,onRowMouseOut:C,rowData:E,style:M})}},{key:"_getFlexStyleForColumn",value:function(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i="".concat(n.props.flexGrow," ").concat(n.props.flexShrink," ").concat(n.props.width,"px"),a=ji({},o,{flex:i,msFlex:i,WebkitFlex:i});return n.props.maxWidth&&(a.maxWidth=n.props.maxWidth),n.props.minWidth&&(a.minWidth=n.props.minWidth),a}},{key:"_getHeaderColumns",value:function(){var n=this,o=this.props,i=o.children,a=o.disableHeader,s=a?[]:N.Children.toArray(i);return s.map(function(u,c){return n._createHeader({column:u,index:c})})}},{key:"_getRowHeight",value:function(n){var o=this.props.rowHeight;return typeof o=="function"?o({index:n}):o}},{key:"_onScroll",value:function(n){var o=n.clientHeight,i=n.scrollHeight,a=n.scrollTop,s=this.props.onScroll;s({clientHeight:o,scrollHeight:i,scrollTop:a})}},{key:"_onSectionRendered",value:function(n){var o=n.rowOverscanStartIndex,i=n.rowOverscanStopIndex,a=n.rowStartIndex,s=n.rowStopIndex,u=this.props.onRowsRendered;u({overscanStartIndex:o,overscanStopIndex:i,startIndex:a,stopIndex:s})}},{key:"_setRef",value:function(n){this.Grid=n}},{key:"_setScrollbarWidth",value:function(){var n=this.getScrollbarWidth();this.setState({scrollbarWidth:n})}}]),t}(N.PureComponent);$(Eg,"defaultProps",{disableHeader:!1,estimatedRowSize:30,headerHeight:0,headerStyle:{},noRowsRenderer:function(){return null},onRowsRendered:function(){return null},onScroll:function(){return null},overscanIndicesGetter:pg,overscanRowCount:10,rowRenderer:Rg,headerRowRenderer:wg,rowStyle:{},scrollToAlignment:"auto",scrollToIndex:-1,style:{}});Eg.propTypes={};var bo=[],zl=null,Jo=null;function JR(){Jo&&(Jo=null,document.body&&zl!=null&&(document.body.style.pointerEvents=zl),zl=null)}function E$(){JR(),bo.forEach(function(e){return e.__resetIsScrolling()})}function O$(){Jo&&Ta(Jo);var e=0;bo.forEach(function(t){e=Math.max(e,t.props.scrollingResetTimeInterval)}),Jo=hg(E$,e)}function ZR(e){e.currentTarget===window&&zl==null&&document.body&&(zl=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),O$(),bo.forEach(function(t){t.props.scrollElement===e.currentTarget&&t.__handleWindowScrollEvent()})}function F1(e,t){bo.some(function(r){return r.props.scrollElement===t})||t.addEventListener("scroll",ZR),bo.push(e)}function W1(e,t){bo=bo.filter(function(r){return r!==e}),bo.length||(t.removeEventListener("scroll",ZR),Jo&&(Ta(Jo),JR()))}var Og=function(t){return t===window},gl=function(t){return t.getBoundingClientRect()};function B1(e,t){if(e)if(Og(e)){var r=window,n=r.innerHeight,o=r.innerWidth;return{height:typeof n=="number"?n:0,width:typeof o=="number"?o:0}}else return gl(e);else return{height:t.serverHeight,width:t.serverWidth}}function k$(e,t){if(Og(t)&&document.documentElement){var r=document.documentElement,n=gl(e),o=gl(r);return{top:n.top-o.top,left:n.left-o.left}}else{var i=eT(t),a=gl(e),s=gl(t);return{top:a.top+i.top-s.top,left:a.left+i.left-s.left}}}function eT(e){return Og(e)&&document.documentElement?{top:"scrollY"in window?window.scrollY:document.documentElement.scrollTop,left:"scrollX"in window?window.scrollX:document.documentElement.scrollLeft}:{top:e.scrollTop,left:e.scrollLeft}}var U1,q1;function H1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function P$(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:this.props.scrollElement,o=this.props.onResize,i=this.state,a=i.height,s=i.width,u=this._child||ms.findDOMNode(this);if(u instanceof Element&&n){var c=k$(u,n);this._positionFromTop=c.top,this._positionFromLeft=c.left}var f=B1(n,this.props);(a!==f.height||s!==f.width)&&(this.setState({height:f.height,width:f.width}),o({height:f.height,width:f.width}))}},{key:"componentDidMount",value:function(){var n=this.props.scrollElement;this._detectElementResize=DR(),this.updatePosition(n),n&&(F1(this,n),this._registerResizeListener(n)),this._isMounted=!0}},{key:"componentDidUpdate",value:function(n,o){var i=this.props.scrollElement,a=n.scrollElement;a!==i&&a!=null&&i!=null&&(this.updatePosition(i),W1(this,a),F1(this,i),this._unregisterResizeListener(a),this._registerResizeListener(i))}},{key:"componentWillUnmount",value:function(){var n=this.props.scrollElement;n&&(W1(this,n),this._unregisterResizeListener(n)),this._isMounted=!1}},{key:"render",value:function(){var n=this.props.children,o=this.state,i=o.isScrolling,a=o.scrollTop,s=o.scrollLeft,u=o.height,c=o.width;return n({onChildScroll:this._onChildScroll,registerChild:this._registerChild,height:u,isScrolling:i,scrollLeft:s,scrollTop:a,width:c})}}]),t}(N.PureComponent),$(U1,"propTypes",null),q1);$(rT,"defaultProps",{onResize:function(){},onScroll:function(){},scrollingResetTimeInterval:I$,scrollElement:tT(),serverHeight:0,serverWidth:0});const z$=Object.freeze(Object.defineProperty({__proto__:null,ArrowKeyStepper:mg,AutoSizer:FR,CellMeasurer:WR,CellMeasurerCache:$5,Collection:vg,Column:Tg,ColumnSizer:BR,Grid:Ln,InfiniteLoader:gg,List:qR,Masonry:bg,MultiGrid:Wf,ScrollSync:YR,SortDirection:$n,SortIndicator:xg,Table:Eg,WindowScroller:rT,accessibilityOverscanIndicesGetter:pg,createMasonryCellPositioner:R$,createTableMultiSort:T$,defaultCellRangeRenderer:$R,defaultOverscanIndicesGetter:LR,defaultTableCellDataGetter:QR,defaultTableCellRenderer:XR,defaultTableHeaderRenderer:Cg,defaultTableHeaderRowRenderer:wg,defaultTableRowRenderer:Rg},Symbol.toStringTag,{value:"Module"})),j$=ka(z$);function jn(e,t,r){return t<=e&&e<=r}function Bf(e){if(e===void 0)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function A$(e){for(var t=String(e),r=t.length,n=0,o=[];n57343)o.push(i);else if(56320<=i&&i<=57343)o.push(65533);else if(55296<=i&&i<=56319)if(n===r-1)o.push(65533);else{var a=e.charCodeAt(n+1);if(56320<=a&&a<=57343){var s=i&1023,u=a&1023;o.push(65536+(s<<10)+u),n+=1}else o.push(65533)}n+=1}return o}function M$(e){for(var t="",r=0;r>10)+55296,(n&1023)+56320))}return t}var Rc=-1;function kg(e){this.tokens=[].slice.call(e)}kg.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():Rc},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var Oa=-1;function Vh(e,t){if(e)throw TypeError("Decoder error");return t||65533}var Tc="utf-8";function Ec(e,t){if(!(this instanceof Ec))return new Ec(e,t);if(e=e!==void 0?String(e).toLowerCase():Tc,e!==Tc)throw new Error("Encoding not supported. Only utf-8 is supported");t=Bf(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=!!t.fatal,this._ignoreBOM=!!t.ignoreBOM,Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}Ec.prototype={decode:function(t,r){var n;typeof t=="object"&&t instanceof ArrayBuffer?n=new Uint8Array(t):typeof t=="object"&&"buffer"in t&&t.buffer instanceof ArrayBuffer?n=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):n=new Uint8Array(0),r=Bf(r),this._streaming||(this._decoder=new N$({fatal:this._fatal}),this._BOMseen=!1),this._streaming=!!r.stream;for(var o=new kg(n),i=[],a;!o.endOfStream()&&(a=this._decoder.handler(o,o.read()),a!==Oa);)a!==null&&(Array.isArray(a)?i.push.apply(i,a):i.push(a));if(!this._streaming){do{if(a=this._decoder.handler(o,o.read()),a===Oa)break;a!==null&&(Array.isArray(a)?i.push.apply(i,a):i.push(a))}while(!o.endOfStream());this._decoder=null}return i.length&&["utf-8"].indexOf(this.encoding)!==-1&&!this._ignoreBOM&&!this._BOMseen&&(i[0]===65279?(this._BOMseen=!0,i.shift()):this._BOMseen=!0),M$(i)}};function Oc(e,t){if(!(this instanceof Oc))return new Oc(e,t);if(e=e!==void 0?String(e).toLowerCase():Tc,e!==Tc)throw new Error("Encoding not supported. Only utf-8 is supported");t=Bf(t),this._streaming=!1,this._encoder=null,this._options={fatal:!!t.fatal},Object.defineProperty(this,"encoding",{value:"utf-8"})}Oc.prototype={encode:function(t,r){t=t?String(t):"",r=Bf(r),this._streaming||(this._encoder=new L$(this._options)),this._streaming=!!r.stream;for(var n=[],o=new kg(A$(t)),i;!o.endOfStream()&&(i=this._encoder.handler(o,o.read()),i!==Oa);)Array.isArray(i)?n.push.apply(n,i):n.push(i);if(!this._streaming){for(;i=this._encoder.handler(o,o.read()),i!==Oa;)Array.isArray(i)?n.push.apply(n,i):n.push(i);this._encoder=null}return new Uint8Array(n)}};function N$(e){var t=e.fatal,r=0,n=0,o=0,i=128,a=191;this.handler=function(s,u){if(u===Rc&&o!==0)return o=0,Vh(t);if(u===Rc)return Oa;if(o===0){if(jn(u,0,127))return u;if(jn(u,194,223))o=1,r=u-192;else if(jn(u,224,239))u===224&&(i=160),u===237&&(a=159),o=2,r=u-224;else if(jn(u,240,244))u===240&&(i=144),u===244&&(a=143),o=3,r=u-240;else return Vh(t);return r=r<<6*o,null}if(!jn(u,i,a))return r=o=n=0,i=128,a=191,s.prepend(u),Vh(t);if(i=128,a=191,n+=1,r+=u-128<<6*(o-n),n!==o)return null;var c=r;return r=o=n=0,c}}function L$(e){e.fatal,this.handler=function(t,r){if(r===Rc)return Oa;if(jn(r,0,127))return r;var n,o;jn(r,128,2047)?(n=1,o=192):jn(r,2048,65535)?(n=2,o=224):jn(r,65536,1114111)&&(n=3,o=240);for(var i=[(r>>6*n)+o];n>0;){var a=r>>6*(n-1);i.push(128|a&63),n-=1}return i}}const $$=Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:Ec,TextEncoder:Oc},Symbol.toStringTag,{value:"Module"})),D$=ka($$);var G1={},V1;function F$(){return V1||(V1=1,function(e){if(e.fetch)return;var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=function(w){return w&&DataView.prototype.isPrototypeOf(w)},o=ArrayBuffer.isView||function(w){return w&&r.indexOf(Object.prototype.toString.call(w))>-1};function i(w){if(typeof w!="string"&&(w=String(w)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(w))throw new TypeError("Invalid character in header field name");return w.toLowerCase()}function a(w){return typeof w!="string"&&(w=String(w)),w}function s(w){var E={next:function(){var I=w.shift();return{done:I===void 0,value:I}}};return t.iterable&&(E[Symbol.iterator]=function(){return E}),E}function u(w){this.map={},w instanceof u?w.forEach(function(E,I){this.append(I,E)},this):Array.isArray(w)?w.forEach(function(E){this.append(E[0],E[1])},this):w&&Object.getOwnPropertyNames(w).forEach(function(E){this.append(E,w[E])},this)}u.prototype.append=function(w,E){w=i(w),E=a(E);var I=this.map[w];this.map[w]=I?I+","+E:E},u.prototype.delete=function(w){delete this.map[i(w)]},u.prototype.get=function(w){return w=i(w),this.has(w)?this.map[w]:null},u.prototype.has=function(w){return this.map.hasOwnProperty(i(w))},u.prototype.set=function(w,E){this.map[i(w)]=a(E)},u.prototype.forEach=function(w,E){for(var I in this.map)this.map.hasOwnProperty(I)&&w.call(E,this.map[I],I,this)},u.prototype.keys=function(){var w=[];return this.forEach(function(E,I){w.push(I)}),s(w)},u.prototype.values=function(){var w=[];return this.forEach(function(E){w.push(E)}),s(w)},u.prototype.entries=function(){var w=[];return this.forEach(function(E,I){w.push([I,E])}),s(w)},t.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function c(w){if(w.bodyUsed)return Promise.reject(new TypeError("Already read"));w.bodyUsed=!0}function f(w){return new Promise(function(E,I){w.onload=function(){E(w.result)},w.onerror=function(){I(w.error)}})}function h(w){var E=new FileReader,I=f(E);return E.readAsArrayBuffer(w),I}function p(w){var E=new FileReader,I=f(E);return E.readAsText(w),I}function S(w){for(var E=new Uint8Array(w),I=new Array(E.length),z=0;z-1?E:w}function g(w,E){E=E||{};var I=E.body;if(w instanceof g){if(w.bodyUsed)throw new TypeError("Already read");this.url=w.url,this.credentials=w.credentials,E.headers||(this.headers=new u(w.headers)),this.method=w.method,this.mode=w.mode,!I&&w._bodyInit!=null&&(I=w._bodyInit,w.bodyUsed=!0)}else this.url=String(w);if(this.credentials=E.credentials||this.credentials||"omit",(E.headers||!this.headers)&&(this.headers=new u(E.headers)),this.method=v(E.method||this.method||"GET"),this.mode=E.mode||this.mode||null,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&I)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(I)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})};function b(w){var E=new FormData;return w.trim().split("&").forEach(function(I){if(I){var z=I.split("="),M=z.shift().replace(/\+/g," "),F=z.join("=").replace(/\+/g," ");E.append(decodeURIComponent(M),decodeURIComponent(F))}}),E}function T(w){var E=new u,I=w.replace(/\r?\n[\t ]+/g," ");return I.split(/\r?\n/).forEach(function(z){var M=z.split(":"),F=M.shift().trim();if(F){var H=M.join(":").trim();E.append(F,H)}}),E}y.call(g.prototype);function k(w,E){E||(E={}),this.type="default",this.status=E.status===void 0?200:E.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in E?E.statusText:"OK",this.headers=new u(E.headers),this.url=E.url||"",this._initBody(w)}y.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},k.error=function(){var w=new k(null,{status:0,statusText:""});return w.type="error",w};var P=[301,302,303,307,308];k.redirect=function(w,E){if(P.indexOf(E)===-1)throw new RangeError("Invalid status code");return new k(null,{status:E,headers:{location:w}})},e.Headers=u,e.Request=g,e.Response=k,e.fetch=function(w,E){return new Promise(function(I,z){var M=new g(w,E),F=new XMLHttpRequest;F.onload=function(){var H={status:F.status,statusText:F.statusText,headers:T(F.getAllResponseHeaders()||"")};H.url="responseURL"in F?F.responseURL:H.headers.get("X-Request-URL");var G="response"in F?F.response:F.responseText;I(new k(G,H))},F.onerror=function(){z(new TypeError("Network request failed"))},F.ontimeout=function(){z(new TypeError("Network request failed"))},F.open(M.method,M.url,!0),M.credentials==="include"?F.withCredentials=!0:M.credentials==="omit"&&(F.withCredentials=!1),"responseType"in F&&t.blob&&(F.responseType="blob"),M.headers.forEach(function(H,G){F.setRequestHeader(G,H)}),F.send(typeof M._bodyInit>"u"?null:M._bodyInit)})},e.fetch.polyfill=!0}(typeof self<"u"?self:Uo)),G1}function K1(e,t){for(var r=0;r0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Vg(this)}},En(e,[{key:"closed",get:function(){return Vo(this)===!1?Promise.reject(fu("closed")):this._closedPromise}}]),e}(),hF=function(){function e(r){if(!In(r))throw new TypeError("ReadableStreamBYOBReader can only be constructed with a ReadableStream instance given a byte source");if(Ni(r._readableStreamController)===!1)throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");if(so(r))throw new TypeError("This stream has already been locked for exclusive reading by another reader");kT(this,r),this._readIntoRequests=[]}var t=e.prototype;return t.cancel=function(n){return _l(this)?this._ownerReadableStream===void 0?Promise.reject(Nc("cancel")):PT(this,n):Promise.reject(du("cancel"))},t.read=function(n){return _l(this)?this._ownerReadableStream===void 0?Promise.reject(Nc("read from")):ArrayBuffer.isView(n)?Ic(n.buffer)===!0?Promise.reject(new TypeError("Cannot read into a view onto a detached ArrayBuffer")):n.byteLength===0?Promise.reject(new TypeError("view must have non-zero byteLength")):pF(this,n,!0):Promise.reject(new TypeError("view must be an array buffer view")):Promise.reject(du("read"))},t.releaseLock=function(){if(!_l(this))throw du("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");Vg(this)}},En(e,[{key:"closed",get:function(){return _l(this)?this._closedPromise:Promise.reject(du("closed"))}}]),e}();function _l(e){return!(!Da(e)||!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests"))}function Vo(e){return!(!Da(e)||!Object.prototype.hasOwnProperty.call(e,"_readRequests"))}function kT(e,t){e._ownerReadableStream=t,t._reader=e,t._state==="readable"?OF(e):t._state==="closed"?PF(e):(kF(e,t._storedError),e._closedPromise.catch(function(){}))}function PT(e,t){var r=e._ownerReadableStream;return Zo(r,t)}function Vg(e){e._ownerReadableStream._state==="readable"?qT(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):IF(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),e._closedPromise.catch(function(){}),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function pF(e,t,r){r===void 0&&(r=!1);var n=e._ownerReadableStream;return n._disturbed=!0,n._state==="errored"?Promise.reject(n._storedError):yF(n._readableStreamController,t,r)}function Kg(e,t){t===void 0&&(t=!1);var r=e._ownerReadableStream;return r._disturbed=!0,r._state==="closed"?Promise.resolve(To(void 0,!0,t)):r._state==="errored"?Promise.reject(r._storedError):r._readableStreamController[Wg](t)}var IT=function(){function e(){throw new TypeError}var t=e.prototype;return t.close=function(){if(cu(this)===!1)throw hu("close");if(Mc(this)===!1)throw new TypeError("The stream is not in a state that permits close");jc(this)},t.enqueue=function(n){if(cu(this)===!1)throw hu("enqueue");if(Mc(this)===!1)throw new TypeError("The stream is not in a state that permits enqueue");return Ac(this,n)},t.error=function(n){if(cu(this)===!1)throw hu("error");Eo(this,n)},t[Fg]=function(r){Fa(this);var n=this._cancelAlgorithm(r);return zc(this),n},t[Wg]=function(r){var n=this._controlledReadableStream;if(this._queue.length>0){var o=tF(this);return this._closeRequested===!0&&this._queue.length===0?(zc(this),Es(n)):us(this),Promise.resolve(To(o,!1,r))}var i=RT(n,r);return us(this),i},En(e,[{key:"desiredSize",get:function(){if(cu(this)===!1)throw hu("desiredSize");return Yg(this)}}]),e}();function cu(e){return!(!Da(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream"))}function us(e){var t=zT(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();r.then(function(){if(e._pulling=!1,e._pullAgain===!0)return e._pullAgain=!1,us(e)},function(n){Eo(e,n)}).catch(An)}}function zT(e){var t=e._controlledReadableStream;if(Mc(e)===!1||e._started===!1)return!1;if(so(t)===!0&&Vf(t)>0)return!0;var r=Yg(e);return r>0}function zc(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function jc(e){var t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(zc(e),Es(t))}function Ac(e,t){var r=e._controlledReadableStream;if(so(r)===!0&&Vf(r)>0)Hg(r,t,!1);else{var n;try{n=e._strategySizeAlgorithm(t)}catch(o){throw Eo(e,o),o}try{rF(e,t,n)}catch(o){throw Eo(e,o),o}}us(e)}function Eo(e,t){var r=e._controlledReadableStream;r._state==="readable"&&(Fa(e),zc(e),TT(r,t))}function Yg(e){var t=e._controlledReadableStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function mF(e){return zT(e)!==!0}function Mc(e){var t=e._controlledReadableStream._state;return e._closeRequested===!1&&t==="readable"}function jT(e,t,r,n,o,i,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Fa(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=i,t._pullAlgorithm=n,t._cancelAlgorithm=o,e._readableStreamController=t;var s=r();Promise.resolve(s).then(function(){t._started=!0,us(t)},function(u){Eo(t,u)}).catch(An)}function vF(e,t,r,n){var o=Object.create(IT.prototype);function i(){return CT(t,"start",[o])}var a=Pc(t,"pull",0,[o]),s=Pc(t,"cancel",1,[]);jT(e,o,i,a,s,r,n)}var gF=function(){function e(){throw new TypeError("ReadableStreamBYOBRequest cannot be used directly")}var t=e.prototype;return t.respond=function(n){if(Xh(this)===!1)throw Jh("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(Ic(this._view.buffer)===!0)throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");CF(this._associatedReadableByteStreamController,n)},t.respondWithNewView=function(n){if(Xh(this)===!1)throw Jh("respond");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(!ArrayBuffer.isView(n))throw new TypeError("You can only respond with array buffer views");if(Ic(n.buffer)===!0)throw new TypeError("The supplied view's buffer has been detached and so cannot be used as a response");RF(this._associatedReadableByteStreamController,n)},En(e,[{key:"view",get:function(){if(Xh(this)===!1)throw Jh("view");return this._view}}]),e}(),AT=function(){function e(){throw new TypeError("ReadableByteStreamController constructor cannot be used directly")}var t=e.prototype;return t.close=function(){if(Ni(this)===!1)throw ul("close");if(this._closeRequested===!0)throw new TypeError("The stream has already been closed; do not close it again!");var n=this._controlledReadableByteStream._state;if(n!=="readable")throw new TypeError("The stream (in "+n+" state) is not in the readable state and cannot be closed");wF(this)},t.enqueue=function(n){if(Ni(this)===!1)throw ul("enqueue");if(this._closeRequested===!0)throw new TypeError("stream is closed or draining");var o=this._controlledReadableByteStream._state;if(o!=="readable")throw new TypeError("The stream (in "+o+" state) is not in the readable state and cannot be enqueued to");if(!ArrayBuffer.isView(n))throw new TypeError("You can only enqueue array buffer views when using a ReadableByteStreamController");if(Ic(n.buffer)===!0)throw new TypeError("Cannot enqueue a view onto a detached ArrayBuffer");xF(this,n)},t.error=function(n){if(Ni(this)===!1)throw ul("error");Os(this,n)},t[Fg]=function(r){if(this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0];n.bytesFilled=0}Fa(this);var o=this._cancelAlgorithm(r);return Kf(this),o},t[Wg]=function(r){var n=this._controlledReadableByteStream;if(this._queueTotalSize>0){var o=this._queue.shift();this._queueTotalSize-=o.byteLength,DT(this);var i;try{i=new Uint8Array(o.buffer,o.byteOffset,o.byteLength)}catch(f){return Promise.reject(f)}return Promise.resolve(To(i,!1,r))}var a=this._autoAllocateChunkSize;if(a!==void 0){var s;try{s=new ArrayBuffer(a)}catch(f){return Promise.reject(f)}var u={buffer:s,byteOffset:0,byteLength:a,bytesFilled:0,elementSize:1,ctor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(u)}var c=RT(n,r);return pi(this),c},En(e,[{key:"byobRequest",get:function(){if(Ni(this)===!1)throw ul("byobRequest");if(this._byobRequest===void 0&&this._pendingPullIntos.length>0){var n=this._pendingPullIntos[0],o=new Uint8Array(n.buffer,n.byteOffset+n.bytesFilled,n.byteLength-n.bytesFilled),i=Object.create(gF.prototype);EF(i,this,o),this._byobRequest=i}return this._byobRequest}},{key:"desiredSize",get:function(){if(Ni(this)===!1)throw ul("desiredSize");return BT(this)}}]),e}();function Ni(e){return!(!Da(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream"))}function Xh(e){return!(!Da(e)||!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController"))}function pi(e){var t=bF(e);if(t!==!1){if(e._pulling===!0){e._pullAgain=!0;return}e._pulling=!0;var r=e._pullAlgorithm();r.then(function(){e._pulling=!1,e._pullAgain===!0&&(e._pullAgain=!1,pi(e))},function(n){Os(e,n)}).catch(An)}}function MT(e){Xg(e),e._pendingPullIntos=[]}function Qg(e,t){var r=!1;e._state==="closed"&&(r=!0);var n=NT(t);t.readerType==="default"?Hg(e,n,r):fF(e,n,r)}function NT(e){var t=e.bytesFilled,r=e.elementSize;return new e.ctor(e.buffer,e.byteOffset,t/r)}function $u(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function LT(e,t){var r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,o=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),i=t.bytesFilled+o,a=i-i%r,s=o,u=!1;a>n&&(s=a-t.bytesFilled,u=!0);for(var c=e._queue;s>0;){var f=c[0],h=Math.min(s,f.byteLength),p=t.byteOffset+t.bytesFilled;XD(t.buffer,p,f.buffer,f.byteOffset,h),f.byteLength===h?c.shift():(f.byteOffset+=h,f.byteLength-=h),e._queueTotalSize-=h,$T(e,h,t),s-=h}return u}function $T(e,t,r){Xg(e),r.bytesFilled+=t}function DT(e){e._queueTotalSize===0&&e._closeRequested===!0?(Kf(e),Es(e._controlledReadableByteStream)):pi(e)}function Xg(e){e._byobRequest!==void 0&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=void 0,e._byobRequest=void 0)}function FT(e){for(;e._pendingPullIntos.length>0;){if(e._queueTotalSize===0)return;var t=e._pendingPullIntos[0];LT(e,t)===!0&&(Jg(e),Qg(e._controlledReadableByteStream,t))}}function yF(e,t,r){var n=e._controlledReadableByteStream,o=1;t.constructor!==DataView&&(o=t.constructor.BYTES_PER_ELEMENT);var i=t.constructor,a=Gf(t.buffer),s={buffer:a,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:o,ctor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),nb(n,r);if(n._state==="closed"){var u=new t.constructor(s.buffer,s.byteOffset,0);return Promise.resolve(To(u,!0,r))}if(e._queueTotalSize>0){if(LT(e,s)===!0){var c=NT(s);return DT(e),Promise.resolve(To(c,!1,r))}if(e._closeRequested===!0){var f=new TypeError("Insufficient bytes to fill elements in the given buffer");return Os(e,f),Promise.reject(f)}}e._pendingPullIntos.push(s);var h=nb(n,r);return pi(e),h}function _F(e,t){t.buffer=Gf(t.buffer);var r=e._controlledReadableByteStream;if(Gg(r)===!0)for(;ET(r)>0;){var n=Jg(e);Qg(r,n)}}function SF(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if($T(e,t,r),!(r.bytesFilled0){var o=r.byteOffset+r.bytesFilled,i=r.buffer.slice(o-n,o);$u(e,i,0,i.byteLength)}r.buffer=Gf(r.buffer),r.bytesFilled-=n,Qg(e._controlledReadableByteStream,r),FT(e)}}function WT(e,t){var r=e._pendingPullIntos[0],n=e._controlledReadableByteStream;if(n._state==="closed"){if(t!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");_F(e,r)}else SF(e,t,r);pi(e)}function Jg(e){var t=e._pendingPullIntos.shift();return Xg(e),t}function bF(e){var t=e._controlledReadableByteStream;if(t._state!=="readable"||e._closeRequested===!0||e._started===!1)return!1;if(OT(t)===!0&&Vf(t)>0||Gg(t)===!0&&ET(t)>0)return!0;var r=BT(e);return r>0}function Kf(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function wF(e){var t=e._controlledReadableByteStream;if(e._queueTotalSize>0){e._closeRequested=!0;return}if(e._pendingPullIntos.length>0){var r=e._pendingPullIntos[0];if(r.bytesFilled>0){var n=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Os(e,n),n}}Kf(e),Es(t)}function xF(e,t){var r=e._controlledReadableByteStream,n=t.buffer,o=t.byteOffset,i=t.byteLength,a=Gf(n);if(OT(r)===!0)if(Vf(r)===0)$u(e,a,o,i);else{var s=new Uint8Array(a,o,i);Hg(r,s,!1)}else Gg(r)===!0?($u(e,a,o,i),FT(e)):$u(e,a,o,i);pi(e)}function Os(e,t){var r=e._controlledReadableByteStream;r._state==="readable"&&(MT(e),Fa(e),Kf(e),TT(r,t))}function BT(e){var t=e._controlledReadableByteStream,r=t._state;return r==="errored"?null:r==="closed"?0:e._strategyHWM-e._queueTotalSize}function CF(e,t){if(t=Number(t),JD(t)===!1)throw new RangeError("bytesWritten must be a finite");WT(e,t)}function RF(e,t){var r=e._pendingPullIntos[0];if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,WT(e,t.byteLength)}function UT(e,t,r,n,o,i,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,MT(t),t._queue=t._queueTotalSize=void 0,Fa(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=vm(i),t._pullAlgorithm=n,t._cancelAlgorithm=o,t._autoAllocateChunkSize=a,t._pendingPullIntos=[],e._readableStreamController=t;var s=r();Promise.resolve(s).then(function(){t._started=!0,pi(t)},function(u){Os(t,u)}).catch(An)}function TF(e,t,r){var n=Object.create(AT.prototype);function o(){return CT(t,"start",[n])}var i=Pc(t,"pull",0,[n]),a=Pc(t,"cancel",1,[]),s=t.autoAllocateChunkSize;if(s!==void 0&&(s=Number(s),W$(s)===!1||s<=0))throw new RangeError("autoAllocateChunkSize must be a positive integer");UT(e,n,o,i,a,r,s)}function EF(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}function ob(e){if(typeof e!="object"||e===null)return!1;var t=Object.getOwnPropertyDescriptor(AbortSignal.prototype,"aborted").get;try{return t.call(e),!0}catch{return!1}}function Ai(e){return new TypeError("ReadableStream.prototype."+e+" can only be used on a ReadableStream")}function Nc(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function fu(e){return new TypeError("ReadableStreamDefaultReader.prototype."+e+" can only be used on a ReadableStreamDefaultReader")}function OF(e){e._closedPromise=new Promise(function(t,r){e._closedPromise_resolve=t,e._closedPromise_reject=r})}function kF(e,t){e._closedPromise=Promise.reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function PF(e){e._closedPromise=Promise.resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function qT(e,t){e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function IF(e,t){e._closedPromise=Promise.reject(t)}function zF(e){e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0}function du(e){return new TypeError("ReadableStreamBYOBReader.prototype."+e+" can only be used on a ReadableStreamBYOBReader")}function hu(e){return new TypeError("ReadableStreamDefaultController.prototype."+e+" can only be used on a ReadableStreamDefaultController")}function Jh(e){return new TypeError("ReadableStreamBYOBRequest.prototype."+e+" can only be used on a ReadableStreamBYOBRequest")}function ul(e){return new TypeError("ReadableByteStreamController.prototype."+e+" can only be used on a ReadableByteStreamController")}var jF=Ao.ReadableStream,AF=Fe.createDataProperty,MF=function(){function e(r){var n=r.highWaterMark;AF(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(n){return n.byteLength},e}(),NF=Fe.createDataProperty,LF=function(){function e(r){var n=r.highWaterMark;NF(this,"highWaterMark",n)}var t=e.prototype;return t.size=function(){return 1},e}();iT("streams:transform-stream:verbose");var $F=Fe.InvokeOrNoop,DF=Fe.CreateAlgorithmFromUnderlyingMethod,FF=Fe.PromiseCall,HT=Fe.typeIsObject,ib=Fe.ValidateAndNormalizeHighWaterMark;Fe.IsNonNegativeNumber;var ab=Fe.MakeSizeAlgorithmFromSizeFunction,WF=Ao.CreateReadableStream,GT=Ao.ReadableStreamDefaultControllerClose,BF=Ao.ReadableStreamDefaultControllerEnqueue,UF=Ao.ReadableStreamDefaultControllerError,qF=Ao.ReadableStreamDefaultControllerGetDesiredSize,HF=Ao.ReadableStreamDefaultControllerHasBackpressure,Zg=Ao.ReadableStreamDefaultControllerCanCloseOrEnqueue,GF=nn.CreateWritableStream,VF=nn.WritableStreamDefaultControllerErrorIfNeeded,VT=function(){function e(t,r,n){t===void 0&&(t={}),r===void 0&&(r={}),n===void 0&&(n={});var o=r.size,i=r.highWaterMark,a=n.size,s=n.highWaterMark,u=t.writableType;if(u!==void 0)throw new RangeError("Invalid writable type specified");var c=ab(o);i===void 0&&(i=1),i=ib(i);var f=t.readableType;if(f!==void 0)throw new RangeError("Invalid readable type specified");var h=ab(a);s===void 0&&(s=0),s=ib(s);var p,S=new Promise(function(y){p=y});KT(this,S,i,c,s,h),YF(this,t);var _=$F(t,"start",[this._transformStreamController]);p(_)}return En(e,[{key:"readable",get:function(){if(lb(this)===!1)throw ub("readable");return this._readable}},{key:"writable",get:function(){if(lb(this)===!1)throw ub("writable");return this._writable}}]),e}();function KF(e,t,r,n,o,i,a){n===void 0&&(n=1),o===void 0&&(o=function(){return 1}),i===void 0&&(i=0),a===void 0&&(a=function(){return 1});var s=Object.create(VT.prototype),u,c=new Promise(function(p){u=p});KT(s,c,n,o,i,a);var f=Object.create(YT.prototype);QT(s,f,t,r);var h=e();return u(h),s}function KT(e,t,r,n,o,i){function a(){return t}function s(p){return JF(e,p)}function u(p){return ZF(e,p)}function c(){return eW(e)}e._writable=GF(a,s,c,u,r,n);function f(){return tW(e)}function h(p){return Qf(e,p),Promise.resolve()}e._readable=WF(a,f,h,o,i),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,Xf(e,!0),e._transformStreamController=void 0}function lb(e){return!(!HT(e)||!Object.prototype.hasOwnProperty.call(e,"_transformStreamController"))}function Yf(e,t){UF(e._readable._readableStreamController,t),Qf(e,t)}function Qf(e,t){XT(e._transformStreamController),VF(e._writable._writableStreamController,t),e._backpressure===!0&&Xf(e,!1)}function Xf(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=new Promise(function(r){e._backpressureChangePromise_resolve=r}),e._backpressure=t}var YT=function(){function e(){throw new TypeError("TransformStreamDefaultController instances cannot be created directly")}var t=e.prototype;return t.enqueue=function(n){if(pu(this)===!1)throw mu("enqueue");JT(this,n)},t.error=function(n){if(pu(this)===!1)throw mu("error");QF(this,n)},t.terminate=function(){if(pu(this)===!1)throw mu("terminate");XF(this)},En(e,[{key:"desiredSize",get:function(){if(pu(this)===!1)throw mu("desiredSize");var n=this._controlledTransformStream._readable._readableStreamController;return qF(n)}}]),e}();function pu(e){return!(!HT(e)||!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream"))}function QT(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}function YF(e,t){var r=Object.create(YT.prototype),n=function(s){try{return JT(r,s),Promise.resolve()}catch(u){return Promise.reject(u)}},o=t.transform;if(o!==void 0){if(typeof o!="function")throw new TypeError("transform is not a method");n=function(s){return FF(o,t,[s,r])}}var i=DF(t,"flush",0,[r]);QT(e,r,n,i)}function XT(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function JT(e,t){var r=e._controlledTransformStream,n=r._readable._readableStreamController;if(Zg(n)===!1)throw new TypeError("Readable side is not in a state that permits enqueue");try{BF(n,t)}catch(i){throw Qf(r,i),r._readable._storedError}var o=HF(n);o!==r._backpressure&&Xf(r,!0)}function QF(e,t){Yf(e._controlledTransformStream,t)}function sb(e,t){var r=e._transformAlgorithm(t);return r.catch(function(n){throw Yf(e._controlledTransformStream,n),n})}function XF(e){var t=e._controlledTransformStream,r=t._readable._readableStreamController;Zg(r)===!0&>(r);var n=new TypeError("TransformStream terminated");Qf(t,n)}function JF(e,t){var r=e._transformStreamController;if(e._backpressure===!0){var n=e._backpressureChangePromise;return n.then(function(){var o=e._writable,i=o._state;if(i==="erroring")throw o._storedError;return sb(r,t)})}return sb(r,t)}function ZF(e,t){return Yf(e,t),Promise.resolve()}function eW(e){var t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return XT(r),n.then(function(){if(t._state==="errored")throw t._storedError;var o=t._readableStreamController;Zg(o)===!0&>(o)}).catch(function(o){throw Yf(e,o),t._storedError})}function tW(e){return Xf(e,!1),e._backpressureChangePromise}var rW={CreateTransformStream:KF,TransformStream:VT};function mu(e){return new TypeError("TransformStreamDefaultController.prototype."+e+" can only be used on a TransformStreamDefaultController")}function ub(e){return new TypeError("TransformStream.prototype."+e+" can only be used on a TransformStream")}var nW=rW.TransformStream;const oW=Object.freeze(Object.defineProperty({__proto__:null,ByteLengthQueuingStrategy:MF,CountQueuingStrategy:LF,ReadableStream:jF,TransformStream:nW,WritableStream:QD},Symbol.toStringTag,{value:"Module"})),iW=ka(oW);function aW(e,t){return fetch(e,t).then(r=>({body:r.body,headers:r.headers,ok:r.ok,status:r.status,statusText:r.statusText,url:r.url}))}let lW=class ZT{constructor(t={}){this.h={},t instanceof ZT&&t.forEach((r,n)=>this.append(n,r)),Object.getOwnPropertyNames(t).forEach(r=>this.append(r,t[r]))}append(t,r){t=t.toLowerCase(),Array.isArray(this.h[t])||(this.h[t]=[]),this.h[t].push(r)}set(t,r){this.h[t.toLowerCase()]=[r]}has(t){return Array.isArray(this.h[t.toLowerCase()])}get(t){if(t=t.toLowerCase(),Array.isArray(this.h[t]))return this.h[t][0]}getAll(t){return this.h[t.toLowerCase()].concat()}entries(){const t=[];return this.forEach((r,n)=>{t.push([n,r])}),sW(t)}forEach(t,r){Object.getOwnPropertyNames(this.h).forEach(n=>{this.h[n].forEach(o=>t.call(r,o,n,this))},this)}};function sW(e){return{next(){const t=e.shift();return{done:t===void 0,value:t}},[Symbol.iterator](){return this}}}function Zh(){try{return new DOMException("Aborted","AbortError")}catch{const t=new Error("Aborted");return t.name="AbortError",t}}function cb({responseType:e,responseParserFactory:t}){return function(n,o){const i=new XMLHttpRequest,a=t();let s,u=!1;const c=new ReadableStream({start(p){s=p},cancel(){u=!0,i.abort()}}),{method:f="GET",signal:h}=o;if(i.open(f,n),i.responseType=e,i.withCredentials=o.credentials!=="omit",o.headers)for(const p of o.headers.entries())i.setRequestHeader(p[0],p[1]);return new Promise((p,S)=>{if(o.body&&(f==="GET"||f==="HEAD")&&S(new TypeError("Failed to execute 'fetchStream' on 'Window': Request with GET/HEAD method cannot have body")),h)if(h.aborted){S(Zh());return}else h.addEventListener("abort",()=>{i.abort(),s&&s.error(Zh()),S(Zh())},{once:!0});i.onreadystatechange=function(){if(i.readyState===i.HEADERS_RECEIVED)return p({body:c,headers:fW(i.getAllResponseHeaders()),ok:i.status>=200&&i.status<300,status:i.status,statusText:i.statusText,url:cW(i.responseURL,n)})},i.onerror=function(){return S(new TypeError("Network request failed"))},i.ontimeout=function(){S(new TypeError("Network request failed"))},i.onprogress=function(){if(!u){const _=a(i.response);s.enqueue(_)}},i.onload=function(){s.close()},i.send(o.body)})}}function uW(){return typeof Headers<"u"?new Headers:new lW}function cW(e,t){return e||(t.substring(0,4)!=="http"?location.origin+t:t)}function fW(e){const t=uW();if(e){const r=e.split(`\r -`);for(let n=0;n0){const a=o.substring(0,i),s=o.substring(i+2);t.append(a,s)}}}return t}let ep=null;function dW(){return ep||(ep=hW()),ep}function hW(){if(typeof Response<"u"&&Response.prototype.hasOwnProperty("body"))return aW;const e="moz-chunked-arraybuffer";return pW(e)?cb({responseType:e,responseParserFactory:function(){return t=>new Uint8Array(t)}}):cb({responseType:"text",responseParserFactory:function(){const t=new TextEncoder;let r=0;return function(n){const o=n.substr(r);return r=n.length,t.encode(o,{stream:!0})}}})}function pW(e){try{const t=new XMLHttpRequest;return t.responseType=e,t.responseType===e}catch{}return!1}function ey(e,t={}){let r=t.transport;return r||(r=ey.transportFactory()),r(e,t)}ey.transportFactory=dW;const mW=Object.freeze(Object.defineProperty({__proto__:null,default:ey},Symbol.toStringTag,{value:"Module"})),vW=ka(mW);(function(e,t){(function(r,n){e.exports=n()})(typeof self>"u"?Uo:self,function(){return function(r){function n(i){if(o[i])return o[i].exports;var a=o[i]={i,l:!1,exports:{}};return r[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}var o={};return n.m=r,n.c=o,n.d=function(i,a,s){n.o(i,a)||Object.defineProperty(i,a,{configurable:!1,enumerable:!0,get:s})},n.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(a,"a",a),a},n.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},n.p="./",n(n.s=46)}([function(r){r.exports=N},function(r){function n(i,a){var s=i[1]||"",u=i[3];if(!u)return s;if(a&&typeof btoa=="function"){var c=o(u),f=u.sources.map(function(h){return"/*# sourceURL="+u.sourceRoot+h+" */"});return[s].concat(f).concat([c]).join(` -`)}return[s].join(` -`)}function o(i){var a=btoa(unescape(encodeURIComponent(JSON.stringify(i))));return"/*# "+("sourceMappingURL=data:application/json;charset=utf-8;base64,"+a)+" */"}r.exports=function(i){var a=[];return a.toString=function(){return this.map(function(s){var u=n(s,i);return s[2]?"@media "+s[2]+"{"+u+"}":u}).join("")},a.i=function(s,u){typeof s=="string"&&(s=[[null,s,""]]);for(var c,f={},h=0;h"u"&&(z=I.apply(this,arguments)),z}}(function(){return window&&document&&document.all&&!window.atob}),g=function(I){return document.querySelector(I)},b=function(){var I={};return function(z){if(typeof z=="function")return z();if(typeof I[z]>"u"){var M=g.call(this,z);if(window.HTMLIFrameElement&&M instanceof window.HTMLIFrameElement)try{M=M.contentDocument.head}catch{M=null}I[z]=M}return I[z]}}(),T=null,k=0,P=[],w=o(5);r.exports=function(I,z){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");z=z||{},z.attrs=typeof z.attrs=="object"?z.attrs:{},z.singleton||typeof z.singleton=="boolean"||(z.singleton=v()),z.insertInto||(z.insertInto="head"),z.insertAt||(z.insertAt="bottom");var M=a(I,z);return i(M,z),function(F){for(var H=[],G=0;GP?-1:P?P-1-F:-1},_=function(b){return b?Array.isArray(b)?b.length===1?Object(i.Range)(b[0],b[0]+1):Object(i.Range)(b[0],b[1]+1):Object(i.Range)(b,b+1):Object(i.Range)(0,0)},y=function(b,T){var k=new Uint8Array(b.length+T.length);return k.set(b,0),k.set(T,b.length),k},C=function(b,T){var k=T?y(T,b):b,P=k.length,w=0,E=0,I=Object(i.List)().withMutations(function(z){for(;EC.b?ge(ue):Z()}}),I),c(z,M)}return f(w,P),T(w,[{key:"render",value:function(){var E=this.props,I=E.resultsCount,z=E.filterActive,M=E.disabled,F="match"+(I===1?"":"es"),H=z?v.active:v.inactive;return Object(h.createElement)("div",{className:"react-lazylog-searchbar "+v.searchBar},Object(h.createElement)("input",{autoComplete:"off",type:"text",name:"search",placeholder:"Search",className:"react-lazylog-searchbar-input "+v.searchInput,onChange:this.handleSearchChange,onKeyPress:this.handleSearchKeyPress,value:this.state.keywords,disabled:M}),Object(h.createElement)("button",{disabled:M,className:"react-lazylog-searchbar-filter "+(z?"active":"inactive")+" "+v.button+" "+H,onClick:this.handleFilterToggle},Object(h.createElement)(y,null)),Object(h.createElement)("span",{className:"react-lazylog-searchbar-matches "+(I?"active":"inactive")+" "+(I?v.active:v.inactive)},I," ",F))}}]),w}(h.Component),Object.defineProperty(g,"propTypes",{enumerable:!0,writable:!0,value:{onSearch:p.func,onClearSearch:p.func,onFilterLinesWithMatches:p.func,resultsCount:p.number,filterActive:p.bool,disabled:p.bool}}),Object.defineProperty(g,"defaultProps",{enumerable:!0,writable:!0,value:{onSearch:function(){},onClearSearch:function(){},onFilterLinesWithMatches:function(){},resultsCount:0,filterActive:!1,disabled:!1}}),b)},function(r,n,o){var i=o(26);typeof i=="string"&&(i=[[r.i,i,""]]);var a,s={hmr:!0};s.transform=a,s.insertInto=void 0,o(2)(i,s),i.locals&&(r.exports=i.locals)},function(r,n,o){n=r.exports=o(1)(!1),n.push([r.i,`._1lq6olr9h2p7MJDCA8c-aL { - height: 15px; - cursor: pointer; -} -`,""]),n.locals={filterLinesIcon:"_1lq6olr9h2p7MJDCA8c-aL"}},function(r,n,o){var i=o(28);typeof i=="string"&&(i=[[r.i,i,""]]);var a,s={hmr:!0};s.transform=a,s.insertInto=void 0,o(2)(i,s),i.locals&&(r.exports=i.locals)},function(r,n,o){n=r.exports=o(1)(!1),n.push([r.i,`._3hsz3SFOTsWryCiRA9Mjtq { - display: flex; - align-items: center; - justify-content: flex-end; - font-family: "Monaco", monospace; - font-size: 12px; - background-color: #222222; - color: #d6d6d6; - padding: 10px; -} - -._2JObJsQyVcVoB1YD6078ip { - background-color: #464646; - color: #d6d6d6; - height: 20px; - min-width: 200px; - font-size: 12px; - padding: 2px 5px; - border: 1px solid #4e4e4e; - margin-right: 10px; -} - -._1NGepveS5BPffleJYyamDk { - color: #d6d6d6; - fill: #d6d6d6; -} - -._3cXa-36GYrmnrGIXEg46cX { - color: #464646; - fill: #464646; -} - -.qZaVIaYTJWY-GaoXJJ2Cp { - background: none; - border: none; - margin-right: 10px; -} -`,""]),n.locals={searchBar:"_3hsz3SFOTsWryCiRA9Mjtq",searchInput:"_2JObJsQyVcVoB1YD6078ip",active:"_1NGepveS5BPffleJYyamDk",inactive:"_3cXa-36GYrmnrGIXEg46cX",button:"qZaVIaYTJWY-GaoXJJ2Cp"}},function(r,n,o){function i(q){if(Array.isArray(q)){for(var V=0,U=Array(q.length);VUe&&(Er=Jt-Ue,Or=Or.slice(-Ue),Jt=Or.count());var mi=Object(P.g)({follow:ve,scrollToLine:me,previousCount:sr,count:Jt,offset:Er});B.setState({lines:Or,offset:Er,count:Jt,scrollToIndex:mi}),(be||Te)&&B.forceSearch()}}),Object.defineProperty(B,"handleEnd",{enumerable:!0,writable:!0,value:function(K){B.encodedLog=K,B.setState({loaded:!0}),B.props.onLoad&&B.props.onLoad()}}),Object.defineProperty(B,"handleError",{enumerable:!0,writable:!0,value:function(K){B.setState({error:K}),B.props.onError&&B.props.onError(K)}}),Object.defineProperty(B,"handleHighlight",{enumerable:!0,writable:!0,value:function(K){var X=B.props.onHighlight,ae=B.state.isFilteringLinesWithMatches;if(K.target.id){var pe=+K.target.id;if(pe){var me=B.state.highlight.first(),ve=B.state.highlight.last(),be=void 0;be=me===pe?null:K.shiftKey&&me?pe>me?[me,pe]:[pe,ve]:pe;var Te=Object(P.e)(be),Me={highlight:Te};ae&&Object.assign(Me,{scrollToIndex:Object(P.g)({scrollToLine:pe})}),B.setState(Me,function(){X&&X(Te),ae&&B.handleFilterLinesWithMatches(!1)})}}}}),Object.defineProperty(B,"handleSearch",{enumerable:!0,writable:!0,value:function(K){var X=B.state,ae=X.resultLines,pe=X.searchKeywords,me=B.props,ve=me.caseInsensitive,be=me.stream,Te=me.websocket,Me=be||Te||K!==pe?ie(K,B.encodedLog,ve):ae;B.setState({resultLines:Me,isSearching:!0,searchKeywords:K},B.filterLinesWithMatches)}}),Object.defineProperty(B,"forceSearch",{enumerable:!0,writable:!0,value:function(){var K=B.state.searchKeywords;K&&K.length>P.b&&B.handleSearch(B.state.searchKeywords)}}),Object.defineProperty(B,"handleClearSearch",{enumerable:!0,writable:!0,value:function(){B.setState({isSearching:!1,searchKeywords:"",resultLines:[],filteredLines:Object(p.List)(),resultLineUniqueIndexes:[],isFilteringLinesWithMatches:B.state.isFilteringLinesWithMatches,scrollToIndex:0})}}),Object.defineProperty(B,"handleFilterLinesWithMatches",{enumerable:!0,writable:!0,value:function(K){B.setState({isFilteringLinesWithMatches:K,filteredLines:Object(p.List)(),resultLineUniqueIndexes:[]},B.filterLinesWithMatches)}}),Object.defineProperty(B,"filterLinesWithMatches",{enumerable:!0,writable:!0,value:function(){var K=B.state,X=K.resultLines,ae=K.lines,pe=K.isFilteringLinesWithMatches;if(0{const n=a=>{t(a)},o=a=>{const s=["Bytes","KB","MB","GB","TB"];if(a===0)return"0 Byte";const u=Math.floor(Math.log(a)/Math.log(1024));return(a/Math.pow(1024,u)).toFixed(2)+" "+s[u]},i=()=>O.jsxs("table",{className:"table-auto w-fit text-left border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none",children:[O.jsx("thead",{children:O.jsxs("tr",{className:"border-b",children:[O.jsx("th",{}),O.jsx("th",{className:"px-4 py-2",children:"Name"}),O.jsx("th",{className:"px-4 py-2",children:"Size"})]})}),O.jsx("tbody",{children:e.map((a,s)=>O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>n(a.name),children:[O.jsx("td",{className:"pl-2",children:a.selected&&O.jsx(Jf,{})}),O.jsx("td",{className:"px-4 py-2",children:a.name}),O.jsx("td",{className:"px-4 py-2",children:o(a.size)})]},s))})]});return O.jsx(O.Fragment,{children:i()})},xW=()=>{const e=rg(),t=gr(Tn),r=gr(r3),[n,o]=N.useState(""),[i,a]=N.useState("Head");N.useEffect(()=>{r.forEach(u=>{if(u.selected){const c=Math.round(u.size/10);let f=u.url;i==="Head"?f=u.url+"?offset=0&limit="+c:i==="Tail"&&(f=u.url+"?offset="+(u.size-c)+"&limit="+c),o(f)}})},[i,r]),N.useEffect(()=>{let u=!1;r.forEach(c=>{c.selected&&(u=!0)}),u||o("")},[r]),N.useEffect(()=>{t!==""&&PR()},[t]);const s=u=>{let c="px-4 py-2 mr-2 text-sm font-medium text-gray-900 bg-white-100 border-gray-900 hover:bg-gray-500 hover:text-white dark:border-white dark:text-white dark:hover:text-white dark:hover:bg-gray-700 dark:focus:bg-gray-700 border";const f="bg-gray-900 text-white";return u===i?c+" "+f:c};return O.jsxs("div",{className:"flex flex-col w-full pt-4 pb-4",children:[O.jsx(wW,{logs:r,onLogSelected:u=>{e(F4(u))}}),n!==""?O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"flex flex-row pb-2 pt-2",children:[O.jsx("button",{className:s("Head"),onClick:()=>a("Head"),children:"Head"}),O.jsx("button",{className:s("Tail"),onClick:()=>a("Tail"),children:"Tail"}),O.jsx("button",{className:s("All"),onClick:()=>a("All"),children:"All"})]}),O.jsx(gW.LazyLog,{extraLines:1,enableSearch:!0,caseInsensitive:!0,url:n,height:window.innerHeight*.7,width:"auto"})]}):null]})},CW=({nodes:e=[],onNodeSelected:t,...r})=>{const n=i=>{t(i)},o=()=>O.jsxs("table",{className:"table-auto w-fit border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none",children:[O.jsx("thead",{children:O.jsxs("tr",{className:"border-b",children:[O.jsx("th",{}),O.jsx("th",{className:"px-4 py-2",children:"Name"}),O.jsx("th",{className:"px-4 py-2",children:"Version"}),O.jsx("th",{className:"px-4 py-2",children:"Chain"}),O.jsx("th",{className:"px-4 py-2",children:"Block"}),O.jsx("th",{className:"px-4 py-2",children:"Address"})]})}),O.jsx("tbody",{children:e.map((i,a)=>O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>n(i.id),children:[O.jsx("td",{className:"pl-2",children:i.active&&O.jsx(Jf,{})}),O.jsx("td",{className:"px-4 py-2",children:i.name}),O.jsx("td",{className:"px-4 py-2",children:i.version}),O.jsx("td",{className:"px-4 py-2",children:i.chain}),O.jsx("td",{className:"px-4 py-2",children:i.block}),O.jsx("td",{className:"px-4 py-2",children:i.address})]},a))})]});return O.jsx(O.Fragment,{children:e.length>0&&o()})},RW=()=>{const e=gr(CR),[t,r]=N.useState(!0);function n(){r(!t)}const o=()=>O.jsx(O.Fragment,{children:e.map(s=>O.jsxs("div",{className:"py2 pr-8",children:[O.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Data base - "+s.path}),O.jsxs("table",{className:"table-auto text-left border-0 rounded-lg shadow-lg relative bg-white outline-none focus:outline-none",children:[O.jsx("thead",{children:O.jsxs("tr",{className:"border-b",children:[O.jsx("th",{className:"px-4 py-2",children:"Name"}),O.jsx("th",{className:"px-4 py-2",children:"Size"}),O.jsx("th",{className:"px-4 py-2",children:"Count"})]})}),O.jsx("tbody",{children:s.tables.map(u=>O.jsxs("tr",{className:"border-b",children:[O.jsx("td",{className:"px-4 py-2",children:u.name}),O.jsx("td",{className:"px-4 py-2",children:u.size}),O.jsx("td",{className:"px-4 py-2",children:u.count})]}))})]})]}))}),i=()=>O.jsx("div",{className:"flex w-full flex-row",children:o()}),a=()=>O.jsx("div",{className:"flex w-full flex-col",children:o()});return O.jsxs("div",{className:"flex flex-col w-full py-4",children:[O.jsx("button",{className:"w-fit px-4 py-2 mr-2 text-sm font-medium text-gray-900 bg-white-100 border-gray-900 hover:bg-gray-500 hover:text-white border",onClick:n,children:"Toggle orientation"}),t?i():a()]})};const fb=({primary:e=!1,size:t="medium",backgroundColor:r,label:n,...o})=>{const i=e?"storybook-button--primary":"storybook-button--secondary";return O.jsx("button",{type:"button",className:["storybook-button",`storybook-button--${t}`,i].join(" "),style:{backgroundColor:r},...o,children:n})},TW=({onClose:e,onCreate:t,...r})=>{const[n,o]=oe.useState(""),i=a=>{o(a.target.value)};return O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"justify-center items-center flex overflow-x-hidden overflow-y-auto inset-1 z-50 outline-none focus:outline-none",children:O.jsx("div",{className:"relative w-auto my-6 mx-auto max-w-3xl",children:O.jsxs("div",{className:"border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none",children:[O.jsxs("div",{className:"flex items-start justify-between p-5 border-b border-solid border-slate-200 rounded-t",children:[O.jsx("h3",{className:"text-3xl font-semibold",children:"Create Session"}),O.jsx("button",{className:"p-1 ml-auto bg-transparent border-0 text-black opacity-100 float-right text-3xl leading-none font-semibold outline-none focus:outline-none",onClick:()=>e(),children:O.jsx("span",{className:"bg-transparent text-black opacity-100 h-6 w-6 text-2xl block outline-none focus:outline-none",children:"×"})})]}),O.jsxs("div",{className:"flex flex-col relative p-6 flex-auto justify-center",children:[O.jsx("p",{className:"my-4 text-slate-500 text-lg leading-relaxed",children:"To create a new session, enter a name."}),O.jsx("input",{type:"text",placeholder:"Enter Session Name",className:"border-2 border-slate-200 rounded-md p-2",value:n,onChange:i})]}),O.jsxs("div",{className:"flex items-center justify-end p-6 border-t border-solid border-slate-200 rounded-b",children:[O.jsx(fb,{backgroundColor:"red",label:"Close",onClick:()=>e(),primary:!0}),O.jsx("div",{className:"w-2"}),O.jsx(fb,{backgroundColor:"#1ea7fd",label:"Create",onClick:()=>{t(n)},primary:!0})]})]})})}),O.jsx("div",{className:"opacity-25 inset-0 z-40 bg-black"})]})},EW=()=>{const e=rg(),t=gr(X4),[r,n]=N.useState(!1);function o(a,s){return Math.floor(Math.random()*(s-a)+a)}const i=a=>{e(wR(a))};return O.jsxs("div",{className:"flex flex-col",children:[O.jsx("h3",{className:"py-2 text-xl font-semibold",children:"Sessions List"}),O.jsxs("table",{className:"table-auto rounded-lg bg-white text-left w-fit mb-4",children:[O.jsx("thead",{children:O.jsxs("tr",{className:"border-b",children:[O.jsx("th",{}),O.jsx("th",{className:"px-4 py-2",children:"Name"}),O.jsx("th",{className:"px-4 py-2",children:"PIN"})]})}),O.jsx("tbody",{children:t.map((a,s)=>O.jsxs("tr",{className:"border-b border-gray-200 hover:bg-gray-100 cursor-pointer",onClick:()=>i(a.pin),children:[O.jsx("td",{className:"pl-2",children:a.active&&O.jsx(Jf,{})}),O.jsx("td",{className:"px-4 py-2",children:a.name}),O.jsx("td",{className:"px-4 py-2",children:a.pin})]},s))})]}),r?O.jsx(TW,{onClose:()=>n(!1),onCreate:a=>{let s=o(1e7,99999999).toString();e(I4({name:a,pin:s})),n(!1)}}):O.jsx("button",{className:"w-fit px-4 py-2 mr-2 text-sm font-medium text-gray-900 bg-white-100 border-gray-900 hover:bg-gray-500 hover:text-white border",disabled:t.length>=1,onClick:()=>{n(!0)},children:"Create Session"})]})};function OW(){return O.jsx("div",{children:O.jsx(HP,{children:O.jsxs(hr,{path:"/",element:O.jsx(kW,{}),children:[O.jsx(hr,{index:!0,element:O.jsx(k3,{})}),O.jsx(hr,{path:"network",element:O.jsx(PW,{})}),O.jsx(hr,{path:"logs",element:O.jsx(xW,{})}),O.jsx(hr,{path:"chain",element:O.jsx(IW,{})}),O.jsx(hr,{path:"data",element:O.jsx(RW,{})}),O.jsx(hr,{path:"debug",element:O.jsx(zW,{})}),O.jsx(hr,{path:"testing",element:O.jsx(jW,{})}),O.jsx(hr,{path:"performance",element:O.jsx(AW,{})}),O.jsx(hr,{path:"documentation",element:O.jsx(MW,{})}),O.jsx(hr,{path:"admin",element:O.jsx(EW,{})}),O.jsx(hr,{path:"*",element:O.jsx(NW,{})})]})})})}function kW(){const e=rg(),t=gr(Z4),r=gr(Tn),n=gr(CR),o=gr(cg),[i,a]=N.useState(!1);return N.useEffect(()=>{if(o!=="")q3();else{let s=localStorage.getItem("sessions");if(s!==null){let u=JSON.parse(s);e(z4(u)),u.length>0&&e(wR(u[0].pin))}}},[o]),N.useEffect(()=>{r!==""&&o!==""&&(V3(),G3(),H3(),PR(),K3(),Y3())},[r]),N.useEffect(()=>{r!==""&&n.length>0&&n.forEach(s=>{s.tables.length===0&&Q3(s.path)})},[n]),O.jsxs("div",{className:"flex",children:[O.jsx(r2,{collapsed:i,style:{height:"100vh"},children:O.jsxs(i2,{menuItemStyles:{button:{"&:hover":{backgroundColor:"#6b7280",color:"#fff"}}},children:[O.jsx(Vr,{icon:O.jsx(HC,{}),onClick:()=>{a(!i)}}),O.jsx(Vr,{component:O.jsx(Kr,{to:"/"}),icon:O.jsx(GC,{}),children:"Process"}),O.jsx(Vr,{component:O.jsx(Kr,{to:"/network"}),icon:O.jsx(VC,{}),children:"Network"}),O.jsx(Vr,{component:O.jsx(Kr,{to:"/logs"}),icon:O.jsx(KC,{}),children:"Logs"}),O.jsx(Vr,{component:O.jsx(Kr,{to:"/chain"}),icon:O.jsx(YC,{}),children:"Chain"}),O.jsx(Vr,{component:O.jsx(Kr,{to:"/data"}),icon:O.jsx(QC,{}),children:"Data"}),O.jsx(Vr,{component:O.jsx(Kr,{to:"/debug"}),icon:O.jsx(XC,{}),children:"Debug"}),O.jsx(Vr,{component:O.jsx(Kr,{to:"/testing"}),icon:O.jsx(JC,{}),children:"Testing"}),O.jsx(Vr,{component:O.jsx(Kr,{to:"/performance"}),icon:O.jsx(ZC,{}),children:"Performance"}),O.jsx(Vr,{component:O.jsx(Kr,{to:"/documentation"}),icon:O.jsx(eR,{}),children:"Documentation"}),O.jsx(Vr,{component:O.jsx(Kr,{to:"/admin"}),icon:O.jsx(tR,{}),children:"Admin"})]})}),O.jsxs("div",{className:"flex flex-col w-full p-4",children:[O.jsx(CW,{nodes:t,onNodeSelected:s=>{e(A4(s))}}),O.jsx(UP,{})]})]})}function PW(){return O.jsx("div",{children:O.jsx("h2",{children:"Network"})})}function IW(){return O.jsx("div",{children:O.jsx("h2",{children:"Chain"})})}function zW(){return O.jsx("div",{children:O.jsx("h2",{children:"Debug"})})}function jW(){return O.jsx("div",{children:O.jsx("h2",{children:"Testing"})})}function AW(){return O.jsx("div",{children:O.jsx("h2",{children:"Performance"})})}function MW(){return O.jsx("div",{children:O.jsx("h2",{children:"Documentation"})})}function NW(){return O.jsxs("div",{children:[O.jsx("h2",{children:"Nothing to see here!"}),O.jsx("p",{children:O.jsx(Kr,{to:"/",children:"Go to the home page"})})]})}tp.createRoot(document.getElementById("root")).render(O.jsx(oe.StrictMode,{children:O.jsx(jL,{store:Ur,children:O.jsx(XP,{children:O.jsx(OW,{})})})})); diff --git a/web/dist/index.html b/web/dist/index.html index f108c92..d7b9393 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -5,8 +5,8 @@ Vite App - - + +